diff --git a/.github/event-processor.config b/.github/event-processor.config index 3cecb54ae77d..52e731644b0f 100644 --- a/.github/event-processor.config +++ b/.github/event-processor.config @@ -22,5 +22,5 @@ "IdentifyStalePullRequests": "On", "CloseAddressedIssues": "On", "LockClosedIssues": "On", - "EnforceMaxLifeOfIssues": "Off" + "EnforceMaxLifeOfIssues": "On" } diff --git a/.github/workflows/event-processor.yml b/.github/workflows/event-processor.yml index 649b211e9254..c913b90cca8a 100644 --- a/.github/workflows/event-processor.yml +++ b/.github/workflows/event-processor.yml @@ -17,26 +17,29 @@ on: permissions: {} jobs: - event-handler: + # This event requires the Azure CLI to get the LABEL_SERVICE_API_KEY from the vault. + # Because the azure/login step adds time costly pre/post Az CLI commands to any every job + # it's used in, split this into its own job so only the event that needs the Az CLI pays + # the cost. + event-handler-with-azure: permissions: issues: write pull-requests: write # For OIDC auth id-token: write contents: read - name: Handle ${{ github.event_name }} ${{ github.event.action }} event + name: Handle ${{ github.event_name }} ${{ github.event.action }} event with azure login runs-on: ubuntu-latest + if: ${{ github.event_name == 'issues' && github.event.action == 'opened' }} steps: - name: 'Az CLI login' - if: ${{ github.event_name == 'issues' && github.event.action == 'opened' }} - uses: azure/login@v1.5.1 + uses: azure/login@v1 with: client-id: ${{ secrets.AZURE_CLIENT_ID }} tenant-id: ${{ secrets.AZURE_TENANT_ID }} subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - name: 'Run Azure CLI commands' - if: ${{ github.event_name == 'issues' && github.event.action == 'opened' }} run: | LABEL_SERVICE_API_KEY=$(az keyvault secret show \ --vault-name issue-labeler \ @@ -55,7 +58,7 @@ jobs: run: > dotnet tool install Azure.Sdk.Tools.GitHubEventProcessor - --version 1.0.0-dev.20240229.2 + --version 1.0.0-dev.20240311.2 --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json --global shell: bash @@ -94,3 +97,58 @@ jobs: # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LABEL_SERVICE_API_KEY: ${{ env.LABEL_SERVICE_API_KEY }} + + event-handler: + permissions: + issues: write + pull-requests: write + name: Handle ${{ github.event_name }} ${{ github.event.action }} event + runs-on: ubuntu-latest + if: ${{ github.event_name != 'issues' || github.event.action != 'opened' }} + steps: + # To run github-event-processor built from source, for testing purposes, uncomment everything + # in between the Start/End-Build From Source comments and comment everything in between the + # Start/End-Install comments + # Start-Install + - name: Install GitHub Event Processor + run: > + dotnet tool install + Azure.Sdk.Tools.GitHubEventProcessor + --version 1.0.0-dev.20240311.2 + --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json + --global + shell: bash + # End-Install + + # Testing checkout of sources from the Azure/azure-sdk-tools repository + # The ref: is the SHA from the pull request in that repository or the + # refs/pull//merge for the latest on any given PR. If the repository + # is a fork eg. /azure-sdk-tools then the repository down below will + # need to point to that fork + # Start-Build + # - name: Checkout tools repo for GitHub Event Processor sources + # uses: actions/checkout@v3 + # with: + # repository: Azure/azure-sdk-tools + # path: azure-sdk-tools + # ref: /merge> or + + # - name: Build and install GitHubEventProcessor from sources + # run: | + # dotnet pack + # dotnet tool install --global --prerelease --add-source ../../../artifacts/packages/Debug Azure.Sdk.Tools.GitHubEventProcessor + # shell: bash + # working-directory: azure-sdk-tools/tools/github-event-processor/Azure.Sdk.Tools.GitHubEventProcessor + # End-Build + + - name: Process Action Event + run: | + cat > payload.json << 'EOF' + ${{ toJson(github.event) }} + EOF + github-event-processor ${{ github.event_name }} payload.json + shell: bash + env: + # This is a temporary secret generated by github + # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/scheduled-event-processor.yml b/.github/workflows/scheduled-event-processor.yml index 361c959bc82d..120531ac3d5b 100644 --- a/.github/workflows/scheduled-event-processor.yml +++ b/.github/workflows/scheduled-event-processor.yml @@ -2,6 +2,7 @@ name: GitHub Scheduled Event Processor on: schedule: + # These are generated/confirmed using https://crontab.cronhub.io/ # Close stale issues, runs every day at 1am - CloseStaleIssues - cron: '0 1 * * *' # Identify stale pull requests, every Friday at 5am - IdentifyStalePullRequests @@ -14,9 +15,10 @@ on: - cron: '30 4,10,16,22 * * *' # Lock closed issues, every 6 hours at 05:30 AM, 11:30 AM, 05:30 PM and 11:30 PM - LockClosedIssues - cron: '30 5,11,17,23 * * *' - # Enforce max life of issues, every Monday at 10:00 AM - EnforceMaxLifeOfIssues + # Enforce max life of issues, every M,W,F at 10:00 AM PST - EnforceMaxLifeOfIssues # Note: GitHub uses UTC, to run at 10am PST, the cron task needs to be 6pm (1800 hours) UTC - - cron: '0 18 * * MON' + # When scheduling for multiple days the numeric days 0-6 (0=Sunday) must be used. + - cron: '0 18 * * 1,3,5' # This removes all unnecessary permissions, the ones needed will be set below. # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token permissions: {} @@ -37,7 +39,7 @@ jobs: run: > dotnet tool install Azure.Sdk.Tools.GitHubEventProcessor - --version 1.0.0-dev.20240229.2 + --version 1.0.0-dev.20240311.2 --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json --global shell: bash @@ -131,7 +133,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Enforce Max Life of Issues Scheduled Event - if: github.event.schedule == '0 18 * * MON' + if: github.event.schedule == '0 18 * * 1,3,5' run: | cat > payload.json << 'EOF' ${{ toJson(github.event) }} diff --git a/.gitignore b/.gitignore index cadfa4fd91ed..e966622f3d04 100644 --- a/.gitignore +++ b/.gitignore @@ -186,3 +186,7 @@ sdk/template/template-dpg/src/src # tshy .tshy-build-tmp + +# sshkey +sdk/**/sshkey +sdk/**/sshkey.pub diff --git a/.vscode/cspell.json b/.vscode/cspell.json index 9bdf994dbca7..2b55b1a3ea11 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -2,61 +2,99 @@ "version": "0.2", "language": "en", "languageId": "typescript,javascript", - "dictionaries": [ - "powershell", - "typescript", - "node" - ], + "dictionaries": ["node", "powershell", "typescript"], "ignorePaths": [ + "**/*-lintReport.html", "**/node_modules/**", - "**/recordings/**", "**/pnpm-lock.yaml", - "common/temp/**", - "**/*-lintReport.html", + "**/recordings/**", "*.avro", - "*.tgz", - "*.png", + "*.crt", "*.jpg", + "*.key", "*.pdf", - "*.tiff", + "*.png", "*.svg", - "*.crt", - "*.key", - ".vscode/cspell.json", + "*.tgz", + "*.tiff", ".github/CODEOWNERS", + ".vscode/cspell.json", + "common/temp/**", "sdk/**/arm-*/**", - "sdk/test-utils/**", "sdk/agrifood/agrifood-farming-rest/review/*.md", "sdk/confidentialledger/confidential-ledger-rest/review/*.md", "sdk/core/core-client-lro-rest/review/*.md", "sdk/core/core-client-paging-rest/review/*.md", "sdk/core/core-client-rest/review/*.md", "sdk/documenttranslator/ai-document-translator-rest/review/*.md", + "sdk/openai/openai-rest/review/*.md", + "sdk/openai/openai/review/*.md", "sdk/purview/purview-account-rest/review/*.md", "sdk/purview/purview-administration-rest/review/*.md", "sdk/purview/purview-catalog-rest/review/*.md", "sdk/purview/purview-scanning-rest/review/*.md", "sdk/purview/purview-sharing-rest/review/*.md", "sdk/quantum/quantum-jobs/review/*.md", - "sdk/synapse/synapse-access-control/review/*.md", "sdk/synapse/synapse-access-control-rest/review/*.md", + "sdk/synapse/synapse-access-control/review/*.md", "sdk/synapse/synapse-artifacts/review/*.md", "sdk/synapse/synapse-managed-private-endpoints/review/*.md", "sdk/synapse/synapse-monitoring/review/*.md", "sdk/synapse/synapse-spark/review/*.md", - "sdk/translation/ai-translation-text-rest/review/*.md", - "sdk/openai/openai/review/*.md", - "sdk/openai/openai-rest/review/*.md" + "sdk/test-utils/**", + "sdk/translation/ai-translation-text-rest/review/*.md" ], "words": [ + "AMQP", + "BRCPF", + "Brcpf", + "CONTOSO", + "DTDL", + "ECONNRESET", + "ESDNI", + "EUGPS", + "Eloqua", + "Esdni", + "Eugps", + "Fhir", + "Fnhr", + "Guids", + "Hana", + "IDRG", + "IMDS", + "Idrg", + "Kubernetes", + "Localizable", + "Lucene", + "MPNS", + "MSRC", + "Mibps", + "ODATA", + "OTLP", + "Odbc", + "Onco", + "PLREGON", + "Personalizer", + "Petabit", + "Picometer", + "Plregon", + "Rasterize", + "Resourceid", + "Rollup", + "Rtsp", + "Sybase", + "Teradata", + "USUK", + "Uncapitalize", + "Unencrypted", + "Unprocessable", + "Usuk", + "Vertica", + "Xiaomi", "adfs", "agrifood", - "AMQP", "azsdk", - "Brcpf", - "BRCPF", "centralus", - "CONTOSO", "deps", "deserialization", "deserializers", @@ -65,183 +103,113 @@ "devdeps", "dicom", "dotenv", - "DTDL", "dtmi", "dtmis", "eastus", - "ECONNRESET", - "Eloqua", "entra", - "Esdni", - "ESDNI", "etags", - "Eugps", - "EUGPS", - "Fhir", - "Fnhr", - "Guids", - "Hana", "hnsw", - "Idrg", - "IDRG", - "IMDS", - "OTLP", - "Kubernetes", "kusto", "lcov", "lcovonly", - "Localizable", "loinc", - "Lucene", - "Mibps", "mkdir", "mkdirp", "mongodb", - "MPNS", "msal", - "MSRC", "nise", "northcentralus", "npmjs", - "ODATA", - "Odbc", - "Onco", "oncophenotype", "openai", "perfstress", "personalizer", - "Personalizer", - "Petabit", - "Picometer", - "Plregon", - "PLREGON", "pnpm", "prettierrc", "pstn", "pwsh", - "Rasterize", "reoffer", - "Resourceid", - "Rollup", "rrggbb", - "Rtsp", - "reoffer", "rushx", "soundex", "southcentralus", "struct", "structdef", - "Sybase", - "Teradata", "tmpdir", + "tshy", "uaecentral", "uksouth", "ukwest", "unassignment", - "Uncapitalize", "undelete", - "Unencrypted", "unpartitioned", - "Unprocessable", "unref", "usdodcentral", "usdodeast", "usgovarizona", "usgovtexas", "usgovvirginia", - "Usuk", - "USUK", - "Vertica", - "westus", - "Xiaomi" + "vectorizer", + "westus" ], "allowCompoundWords": true, "overrides": [ { "filename": "eng/pipelines", - "words": [ - "azuresdkartifacts", - "policheck", - "gdnbaselines" - ] + "words": ["azuresdkartifacts", "gdnbaselines", "policheck"] }, { - "filename": "sdk/videoanalyzer/video-analyzer-edge/review/**/*.md", - "words": [ - "abgr", - "Abgr", - "argb", - "Argb", - "bgra", - "Bgra", - "Grpc", - "onvif", - "Onvif" - ] + "filename": "sdk/apimanagement/api-management-custom-widgets-scaffolder/review/api-management-custom-widgets-scaffolder.api.md", + "words": ["APIM", "scaffolder"] }, { - "filename": "sdk/storage/storage-blob/review/**/*.md", - "words": [ - "RAGRS" - ] + "filename": "sdk/apimanagement/api-management-custom-widgets-tools/review/api-management-custom-widgets-tools.api.md", + "words": ["APIM", "MSAPIM"] }, { - "filename": "sdk/search/search-documents/review/**/*.md", + "filename": "sdk/attestation/attestation/review/**/*.md", "words": [ - "Adls", - "adlsgen", - "bangla", - "beider", - "Bokmaal", - "Decompounder", - "haase", - "koelner", - "kstem", - "kstem", - "lovins", - "nysiis", - "odatatype", - "Phonetik", - "Piqd", - "reranker", - "Rslp", - "sorani", - "Sorani", - "Vectorizable", - "vectorizer", - "vectorizers" + "qeidcertshash", + "qeidcrlhash", + "qeidhash", + "tcbinfocertshash", + "tcbinfocrlhash", + "tcbinfohash" ] }, { - "filename": "sdk/keyvault/keyvault-keys/review/**/*.md", + "filename": "sdk/communication/communication-call-automation/review/**/*.md", "words": [ - "ECHSM", - "OKPHSM", - "RSAHSM", - "RSNULL", - "Rsnull" + "Ssml", + "answeredby", + "playsourcacheid", + "playsourcecacheid", + "sipuui", + "sipx", + "ssml" ] }, { - "filename": "sdk/keyvault/keyvault-certificates/review/**/*.md", - "words": [ - "ECHSM", - "ekus", - "RSAHSM", - "upns" - ] + "filename": "sdk/communication/communication-common/review/**/*.md", + "words": ["gcch"] }, { - "filename": "sdk/digitaltwins/digital-twins-core/review/**/*.md", - "words": [ - "dtdl" - ] + "filename": "sdk/communication/communication-email/review/**/*.md", + "words": ["rpmsg", "xlsb"] + }, + { + "filename": "sdk/containerregistry/container-registry/review/**/*.md", + "words": ["Illumos", "illumos", "mipsle", "riscv"] + }, + { + "filename": "sdk/core/core-amqp/review/**/*.md", + "words": ["EHOSTDOWN", "ENONET", "sastoken"] }, { "filename": "sdk/cosmosdb/cosmos/review/**/*.md", "words": [ - "colls", "Parition", + "colls", "pkranges", "sproc", "sprocs", @@ -253,233 +221,181 @@ ] }, { - "filename": "sdk/attestation/attestation/review/**/*.md", - "words": [ - "qeidcertshash", - "qeidcrlhash", - "qeidhash", - "tcbinfocertshash", - "tcbinfocrlhash", - "tcbinfohash" - ] + "filename": "sdk/cosmosdb/cosmos/review/cosmos.api.md", + "words": ["Funtion"] }, { - "filename": "sdk/formrecognizer/ai-form-recognizer/README.md", - "words": [ - "iddocument" - ] + "filename": "sdk/digitaltwins/digital-twins-core/review/**/*.md", + "words": ["dtdl"] }, { - "filename": "sdk/formrecognizer/ai-form-recognizer/review/**/*.md", - "words": [ - "WDLABCD", - "presentationml", - "spreadsheetml", - "wordprocessingml", - "heif", - "copays", - "Upca", - "Upce" - ] + "filename": "sdk/digitaltwins/digital-twins-core/review/digital-twins-core.api.md", + "words": ["dependecies"] }, { - "filename": "sdk/core/core-amqp/review/**/*.md", - "words": [ - "EHOSTDOWN", - "ENONET", - "sastoken" - ] + "filename": "sdk/documentintelligence/ai-document-intelligence-rest/review/ai-document-intelligence.api.md", + "words": ["presentationml", "spreadsheetml", "wordprocessingml"] }, { - "filename": "sdk/containerregistry/container-registry/review/**/*.md", + "filename": "sdk/easm/defender-easm-rest/review/defender-easm.api.md", "words": [ - "illumos", - "Illumos", - "mipsle", - "riscv" + "Alexa", + "Asns", + "Easm", + "Whois", + "alexa", + "asns", + "cnames", + "easm", + "nxdomain", + "whois" ] }, { - "filename": "sdk/communication/communication-call-automation/review/**/*.md", - "words": [ - "ssml", - "Ssml", - "answeredby", - "playsourcacheid", - "playsourcecacheid", - "sipx", - "sipuui" - ] + "filename": "sdk/eventgrid/eventgrid/review/**/*.md", + "words": ["Dicom", "Gcch", "gcch"] }, { - "filename": "sdk/communication/communication-common/review/**/*.md", - "words": [ - "gcch" - ] + "filename": "sdk/formrecognizer/ai-form-recognizer/README.md", + "words": ["iddocument"] }, { - "filename": "sdk/communication/communication-email/review/**/*.md", + "filename": "sdk/formrecognizer/ai-form-recognizer/review/**/*.md", "words": [ - "rpmsg", - "xlsb" + "Upca", + "Upce", + "WDLABCD", + "copays", + "heif", + "presentationml", + "spreadsheetml", + "wordprocessingml" ] }, { - "filename": "sdk/eventgrid/eventgrid/review/**/*.md", - "words": [ - "Dicom", - "Gcch", - "gcch" - ] + "filename": "sdk/healthinsights/azure-healthinsights-radiologyinsights/**", + "words": ["ctxt", "mros", "nify"] }, { "filename": "sdk/identity/**/*.md", - "words": [ - "MSAL", - "PKCE" - ] + "words": ["MSAL", "PKCE"] }, { "filename": "sdk/iot/iot-modelsrepository/review/**/*.md", - "words": [ - "Dtmi", - "dtmis" - ] - }, - { - "filename": "sdk/storage/storage-blob/review/storage-blob.api.md", - "words": [ - "Uncommited" - ] + "words": ["Dtmi", "dtmis"] }, { - "filename": "sdk/search/search-documents/review/search-documents.api.md", - "words": [ - "Createor" - ] - }, - { - "filename": "sdk/monitor/monitor-query/review/monitor-query.api.md", - "words": [ - "fourty", - "Milli" - ] + "filename": "sdk/keyvault/keyvault-certificates/review/**/*.md", + "words": ["ECHSM", "RSAHSM", "ekus", "upns"] }, { - "filename": "sdk/digitaltwins/digital-twins-core/review/digital-twins-core.api.md", - "words": [ - "dependecies" - ] + "filename": "sdk/keyvault/keyvault-keys/review/**/*.md", + "words": ["ECHSM", "OKPHSM", "RSAHSM", "RSNULL", "Rsnull"] }, { - "filename": "sdk/cosmosdb/cosmos/review/cosmos.api.md", - "words": [ - "Funtion" - ] + "filename": "sdk/loadtestservice/load-testing-rest/review/load-testing.api.md", + "words": ["vusers"] }, { - "filename": "sdk/apimanagement/api-management-custom-widgets-scaffolder/review/api-management-custom-widgets-scaffolder.api.md", - "words": [ - "scaffolder", - "APIM" - ] + "filename": "sdk/maps/maps-common/review/maps-common.api.md", + "words": ["bbox"] }, { - "filename": "sdk/apimanagement/api-management-custom-widgets-tools/review/api-management-custom-widgets-tools.api.md", - "words": [ - "MSAPIM", - "APIM" - ] + "filename": "sdk/maps/maps-render-rest/review/maps-render.api.md", + "words": ["bbox"] }, { - "filename": "sdk/maps/maps-common/review/maps-common.api.md", - "words": [ - "bbox" - ] + "filename": "sdk/maps/maps-route-rest/review/maps-route.api.md", + "words": ["Hundredkm", "UTURN", "bbox"] }, { - "filename": "sdk/maps/maps-route-rest/review/maps-route.api.md", - "words": [ - "bbox", - "UTURN", - "Hundredkm" - ] + "filename": "sdk/maps/maps-search-rest/review/maps-search.api.md", + "words": ["Neighbourhood", "Xstr", "bbox"] }, { - "filename": "sdk/maps/maps-render-rest/review/maps-render.api.md", - "words": [ - "bbox" - ] + "filename": "sdk/monitor/monitor-query/review/monitor-query.api.md", + "words": ["Milli", "fourty"] }, { - "filename": "sdk/maps/maps-search-rest/review/maps-search.api.md", - "words": [ - "Neighbourhood", - "Xstr", - "bbox" - ] + "filename": "sdk/notificationhubs/notification-hubs/review/notification-hubs.api.md", + "words": ["fcmv"] }, { - "filename": "sdk/apimanagement/api-management-custom-widgets-scaffolder/review/api-management-custom-widgets-scaffolder.api.md", + "filename": "sdk/search/search-documents/review/**/*.md", "words": [ - "scaffolder", - "APIM" + "Adls", + "Bokmaal", + "Decompounder", + "Phonetik", + "Piqd", + "Rslp", + "Sorani", + "Vectorizable", + "adlsgen", + "bangla", + "beider", + "haase", + "koelner", + "kstem", + "lovins", + "nysiis", + "odatatype", + "rerank", + "reranker", + "sorani", + "vectorizer", + "vectorizers" ] }, { - "filename": "sdk/loadtestservice/load-testing-rest/review/load-testing.api.md", + "filename": "sdk/search/search-documents/review/**/*.md", "words": [ - "vusers" + "Adls", + "Bokmaal", + "Decompounder", + "Phonetik", + "Piqd", + "Rslp", + "Sorani", + "Vectorizable", + "adlsgen", + "bangla", + "beider", + "haase", + "koelner", + "kstem", + "lovins", + "nysiis", + "odatatype", + "reranker", + "sorani", + "vectorizer", + "vectorizers" ] }, { - "filename": "sdk/web-pubsub/web-pubsub-client/review/web-pubsub-client.api.md", - "words": [ - "protobuf" - ] + "filename": "sdk/search/search-documents/review/search-documents.api.md", + "words": ["Createor"] }, { - "filename": "sdk/web-pubsub/web-pubsub-client-protobuf/review/web-pubsub-client-protobuf.api.md", - "words": [ - "protobuf" - ] + "filename": "sdk/storage/storage-blob/review/**/*.md", + "words": ["RAGRS"] }, { - "filename": "sdk/easm/defender-easm-rest/review/defender-easm.api.md", - "words": [ - "Alexa", - "alexa", - "Asns", - "asns", - "cnames", - "Easm", - "easm", - "nxdomain", - "Whois", - "whois" - ] + "filename": "sdk/storage/storage-blob/review/storage-blob.api.md", + "words": ["Uncommited"] }, { - "filename": "sdk/documentintelligence/ai-document-intelligence-rest/review/ai-document-intelligence.api.md", - "words": [ - "wordprocessingml", - "spreadsheetml", - "presentationml" - ] + "filename": "sdk/videoanalyzer/video-analyzer-edge/review/**/*.md", + "words": ["Abgr", "Argb", "Bgra", "Grpc", "Onvif", "abgr", "argb", "bgra", "onvif"] }, { - "filename": "sdk/healthinsights/azure-healthinsights-radiologyinsights/**", - "words": [ - "ctxt", - "mros", - "nify" - ] + "filename": "sdk/web-pubsub/web-pubsub-client-protobuf/review/web-pubsub-client-protobuf.api.md", + "words": ["protobuf"] }, { - "filename": "sdk/notificationhubs/notification-hubs/review/notification-hubs.api.md", - "words": [ - "fcmv" - ] + "filename": "sdk/web-pubsub/web-pubsub-client/review/web-pubsub-client.api.md", + "words": ["protobuf"] } ] } diff --git a/common/config/rush/build-cache.json b/common/config/rush/build-cache.json index dbef1dca77e6..f989935aec52 100644 --- a/common/config/rush/build-cache.json +++ b/common/config/rush/build-cache.json @@ -1,5 +1,5 @@ { - "buildCacheEnabled": true, + "buildCacheEnabled": false, // Follow instructions at // https://rushjs.io/pages/maintainer/build_cache/#user-authentication // to authenticate. diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index c2736327ab5a..7b5911a2d858 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1165,12 +1165,12 @@ packages: engines: {node: '>=0.10.0'} dev: false - /@ampproject/remapping@2.2.1: - resolution: {integrity: sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==} + /@ampproject/remapping@2.3.0: + resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} engines: {node: '>=6.0.0'} dependencies: - '@jridgewell/gen-mapping': 0.3.4 - '@jridgewell/trace-mapping': 0.3.23 + '@jridgewell/gen-mapping': 0.3.5 + '@jridgewell/trace-mapping': 0.3.25 dev: false /@azure/abort-controller@1.1.0: @@ -1180,8 +1180,8 @@ packages: tslib: 2.6.2 dev: false - /@azure/abort-controller@2.0.0: - resolution: {integrity: sha512-RP/mR/WJchR+g+nQFJGOec+nzeN/VvjlwbinccoqfhTsTHbb8X5+mLDp48kHT0ueyum0BNSwGm0kX0UZuIqTGg==} + /@azure/abort-controller@2.1.0: + resolution: {integrity: sha512-SYtcG13aiV7znycu6plCClWUzD9BBtfnsbIxT89nkkRvQRB4n0kuZyJJvJ7hqdKOn7x7YoGKZ9lVStLJpLnOFw==} engines: {node: '>=18.0.0'} dependencies: tslib: 2.6.2 @@ -1192,15 +1192,15 @@ packages: engines: {node: '>=16.0.0'} dependencies: '@azure/abort-controller': 1.1.0 - '@azure/core-auth': 1.6.0 - '@azure/core-client': 1.8.0 - '@azure/core-http-compat': 2.0.1 - '@azure/core-lro': 2.6.0 - '@azure/core-paging': 1.5.0 - '@azure/core-rest-pipeline': 1.14.0 - '@azure/core-tracing': 1.0.1 - '@azure/core-util': 1.7.0 - '@azure/logger': 1.0.4 + '@azure/core-auth': 1.7.0 + '@azure/core-client': 1.9.0 + '@azure/core-http-compat': 2.1.0 + '@azure/core-lro': 2.7.0 + '@azure/core-paging': 1.6.0 + '@azure/core-rest-pipeline': 1.15.0 + '@azure/core-tracing': 1.1.0 + '@azure/core-util': 1.8.0 + '@azure/logger': 1.1.0 tslib: 2.6.2 transitivePeerDependencies: - supports-color @@ -1211,11 +1211,11 @@ packages: engines: {node: '>=14.0.0'} dependencies: '@azure/abort-controller': 1.1.0 - '@azure/core-auth': 1.6.0 - '@azure/core-client': 1.8.0 - '@azure/core-lro': 2.6.0 - '@azure/core-paging': 1.5.0 - '@azure/core-rest-pipeline': 1.14.0 + '@azure/core-auth': 1.7.0 + '@azure/core-client': 1.9.0 + '@azure/core-lro': 2.7.0 + '@azure/core-paging': 1.6.0 + '@azure/core-rest-pipeline': 1.15.0 tslib: 2.6.2 transitivePeerDependencies: - supports-color @@ -1226,16 +1226,52 @@ packages: engines: {node: '>=14.0.0'} dependencies: '@azure/abort-controller': 1.1.0 - '@azure/core-auth': 1.6.0 - '@azure/core-client': 1.8.0 - '@azure/core-lro': 2.6.0 - '@azure/core-paging': 1.5.0 - '@azure/core-rest-pipeline': 1.14.0 + '@azure/core-auth': 1.7.0 + '@azure/core-client': 1.9.0 + '@azure/core-lro': 2.7.0 + '@azure/core-paging': 1.6.0 + '@azure/core-rest-pipeline': 1.15.0 + tslib: 2.6.2 + transitivePeerDependencies: + - supports-color + dev: false + + /@azure/communication-common@2.3.1: + resolution: {integrity: sha512-6ZQt20iMZbyckQn4m1TDwiDv3Fzyt1h4lnQ1szBBns2x3VQY9XHbnskPtvUdwK/HT+c/1PoUwof3toy1AIznbQ==} + engines: {node: '>=18.0.0'} + dependencies: + '@azure/abort-controller': 1.1.0 + '@azure/core-auth': 1.7.0 + '@azure/core-rest-pipeline': 1.15.0 + '@azure/core-tracing': 1.1.0 + '@azure/core-util': 1.8.0 + events: 3.3.0 + jwt-decode: 4.0.0 tslib: 2.6.2 transitivePeerDependencies: - supports-color dev: false + /@azure/communication-phone-numbers@1.2.0: + resolution: {integrity: sha512-fuCtFFSJb8fZohEJmy3rdD6yohCCirlVzSiebJ8JIX2wrzw44/JEP0jd9V+vtGZUCyDk5Xj2ackb4FI/kH7wUQ==} + engines: {node: '>=14.0.0'} + dependencies: + '@azure/abort-controller': 1.1.0 + '@azure/communication-common': 2.3.1 + '@azure/core-auth': 1.7.0 + '@azure/core-client': 1.9.0 + '@azure/core-lro': 2.7.0 + '@azure/core-paging': 1.6.0 + '@azure/core-rest-pipeline': 1.15.0 + '@azure/core-tracing': 1.1.0 + '@azure/logger': 1.1.0 + events: 3.3.0 + tslib: 2.6.2 + uuid: 8.3.2 + transitivePeerDependencies: + - supports-color + dev: false + /@azure/communication-signaling@1.0.0-beta.22: resolution: {integrity: sha512-0ispnIoRERypuNck90C+QaMTRC4v8owOOV+MbNec72HWCuPz+ndribcc8kIfCgplgwXDFsghskHkD6CaPyYdsA==} engines: {node: '>=8.0.0'} @@ -1249,37 +1285,37 @@ packages: - encoding dev: false - /@azure/core-auth@1.6.0: - resolution: {integrity: sha512-3X9wzaaGgRaBCwhLQZDtFp5uLIXCPrGbwJNWPPugvL4xbIGgScv77YzzxToKGLAKvG9amDoofMoP+9hsH1vs1w==} + /@azure/core-auth@1.7.0: + resolution: {integrity: sha512-OuDVn9z2LjyYbpu6e7crEwSipa62jX7/ObV/pmXQfnOG8cHwm363jYtg3FSX3GB1V7jsIKri1zgq7mfXkFk/qw==} engines: {node: '>=18.0.0'} dependencies: - '@azure/abort-controller': 2.0.0 - '@azure/core-util': 1.7.0 + '@azure/abort-controller': 2.1.0 + '@azure/core-util': 1.8.0 tslib: 2.6.2 dev: false - /@azure/core-client@1.8.0: - resolution: {integrity: sha512-+gHS3gEzPlhyQBMoqVPOTeNH031R5DM/xpCvz72y38C09rg4Hui/1sJS/ujoisDZbbSHyuRLVWdFlwL0pIFwbg==} + /@azure/core-client@1.9.0: + resolution: {integrity: sha512-x50SSD7bbG5wen3tMDI2oWVSAjt1K1xw6JZSnc6239RmBwqLJF9dPsKsh9w0Rzh5+mGpsu9FDu3DlsT0lo1+Uw==} engines: {node: '>=18.0.0'} dependencies: - '@azure/abort-controller': 2.0.0 - '@azure/core-auth': 1.6.0 - '@azure/core-rest-pipeline': 1.14.0 - '@azure/core-tracing': 1.0.1 - '@azure/core-util': 1.7.0 - '@azure/logger': 1.0.4 + '@azure/abort-controller': 2.1.0 + '@azure/core-auth': 1.7.0 + '@azure/core-rest-pipeline': 1.15.0 + '@azure/core-tracing': 1.1.0 + '@azure/core-util': 1.8.0 + '@azure/logger': 1.1.0 tslib: 2.6.2 transitivePeerDependencies: - supports-color dev: false - /@azure/core-http-compat@2.0.1: - resolution: {integrity: sha512-xpQZz/q7E0jSW4rckrTo2mDFDQgo6I69hBU4voMQi7REi6JRW5a+KfVkbJCFCWnkFmP6cAJ0IbuudTdf/MEBOQ==} - engines: {node: '>=14.0.0'} + /@azure/core-http-compat@2.1.0: + resolution: {integrity: sha512-FMGEmHaxpeLNdt7hw+i3V4VkFLCMi8y9zF/eiIV5EK1vt/1Ra5Olc1mSY9m9plxKjSp0kVvgc/uZVsdO1YNvzQ==} + engines: {node: '>=18.0.0'} dependencies: - '@azure/abort-controller': 1.1.0 - '@azure/core-client': 1.8.0 - '@azure/core-rest-pipeline': 1.14.0 + '@azure/abort-controller': 2.1.0 + '@azure/core-client': 1.9.0 + '@azure/core-rest-pipeline': 1.15.0 transitivePeerDependencies: - supports-color dev: false @@ -1289,9 +1325,9 @@ packages: engines: {node: '>=14.0.0'} dependencies: '@azure/abort-controller': 1.1.0 - '@azure/core-auth': 1.6.0 + '@azure/core-auth': 1.7.0 '@azure/core-tracing': 1.0.0-preview.13 - '@azure/core-util': 1.7.0 + '@azure/core-util': 1.8.0 '@azure/logger': 1.0.4 '@types/node-fetch': 2.6.11 '@types/tunnel': 0.0.3 @@ -1312,10 +1348,10 @@ packages: engines: {node: '>=14.0.0'} dependencies: '@azure/abort-controller': 1.1.0 - '@azure/core-auth': 1.6.0 + '@azure/core-auth': 1.7.0 '@azure/core-tracing': 1.0.0-preview.13 - '@azure/core-util': 1.7.0 - '@azure/logger': 1.0.4 + '@azure/core-util': 1.8.0 + '@azure/logger': 1.1.0 '@types/node-fetch': 2.6.11 '@types/tunnel': 0.0.3 form-data: 4.0.0 @@ -1329,34 +1365,34 @@ packages: - encoding dev: false - /@azure/core-lro@2.6.0: - resolution: {integrity: sha512-PyRNcaIOfMgoUC01/24NoG+k8O81VrKxYARnDlo+Q2xji0/0/j2nIt8BwQh294pb1c5QnXTDPbNR4KzoDKXEoQ==} + /@azure/core-lro@2.7.0: + resolution: {integrity: sha512-oj7d8vWEvOREIByH1+BnoiFwszzdE7OXUEd6UTv+cmx5HvjBBlkVezm3uZgpXWaxDj5ATL/k89+UMeGx1Ou9TQ==} engines: {node: '>=18.0.0'} dependencies: - '@azure/abort-controller': 2.0.0 - '@azure/core-util': 1.7.0 - '@azure/logger': 1.0.4 + '@azure/abort-controller': 2.1.0 + '@azure/core-util': 1.8.0 + '@azure/logger': 1.1.0 tslib: 2.6.2 dev: false - /@azure/core-paging@1.5.0: - resolution: {integrity: sha512-zqWdVIt+2Z+3wqxEOGzR5hXFZ8MGKK52x4vFLw8n58pR6ZfKRx3EXYTxTaYxYHc/PexPUTyimcTWFJbji9Z6Iw==} - engines: {node: '>=14.0.0'} + /@azure/core-paging@1.6.0: + resolution: {integrity: sha512-W8eRv7MVFx/jbbYfcRT5+pGnZ9St/P1UvOi+63vxPwuQ3y+xj+wqWTGxpkXUETv3szsqGu0msdxVtjszCeB4zA==} + engines: {node: '>=18.0.0'} dependencies: tslib: 2.6.2 dev: false - /@azure/core-rest-pipeline@1.14.0: - resolution: {integrity: sha512-Tp4M6NsjCmn9L5p7HsW98eSOS7A0ibl3e5ntZglozT0XuD/0y6i36iW829ZbBq0qihlGgfaeFpkLjZ418KDm1Q==} + /@azure/core-rest-pipeline@1.15.0: + resolution: {integrity: sha512-6kBQwE75ZVlOjBbp0/PX0fgNLHxoMDxHe3aIPV/RLVwrIDidxTbsHtkSbPNTkheMset3v9s1Z08XuMNpWRK/7w==} engines: {node: '>=18.0.0'} dependencies: - '@azure/abort-controller': 2.0.0 - '@azure/core-auth': 1.6.0 - '@azure/core-tracing': 1.0.1 - '@azure/core-util': 1.7.0 - '@azure/logger': 1.0.4 - http-proxy-agent: 5.0.0 - https-proxy-agent: 5.0.1 + '@azure/abort-controller': 2.1.0 + '@azure/core-auth': 1.7.0 + '@azure/core-tracing': 1.1.0 + '@azure/core-util': 1.8.0 + '@azure/logger': 1.1.0 + http-proxy-agent: 7.0.0 + https-proxy-agent: 7.0.2 tslib: 2.6.2 transitivePeerDependencies: - supports-color @@ -1366,22 +1402,22 @@ packages: resolution: {integrity: sha512-KxDlhXyMlh2Jhj2ykX6vNEU0Vou4nHr025KoSEiz7cS3BNiHNaZcdECk/DmLkEB0as5T7b/TpRcehJ5yV6NeXQ==} engines: {node: '>=12.0.0'} dependencies: - '@opentelemetry/api': 1.7.0 + '@opentelemetry/api': 1.8.0 tslib: 2.6.2 dev: false - /@azure/core-tracing@1.0.1: - resolution: {integrity: sha512-I5CGMoLtX+pI17ZdiFJZgxMJApsK6jjfm85hpgp3oazCdq5Wxgh4wMr7ge/TTWW1B5WBuvIOI1fMU/FrOAMKrw==} - engines: {node: '>=12.0.0'} + /@azure/core-tracing@1.1.0: + resolution: {integrity: sha512-MVeJvGHB4jmF7PeHhyr72vYJsBJ3ff1piHikMgRaabPAC4P3rxhf9fm42I+DixLysBunskJWhsDQD2A+O+plkQ==} + engines: {node: '>=18.0.0'} dependencies: tslib: 2.6.2 dev: false - /@azure/core-util@1.7.0: - resolution: {integrity: sha512-Zq2i3QO6k9DA8vnm29mYM4G8IE9u1mhF1GUabVEqPNX8Lj833gdxQ2NAFxt2BZsfAL+e9cT8SyVN7dFVJ/Hf0g==} + /@azure/core-util@1.8.0: + resolution: {integrity: sha512-w8NrGnrlGDF7fj36PBnJhGXDK2Y3kpTOgL7Ksb5snEHXq/3EAbKYOp1yqme0yWCUlSDq5rjqvxSBAJmsqYac3w==} engines: {node: '>=18.0.0'} dependencies: - '@azure/abort-controller': 2.0.0 + '@azure/abort-controller': 2.1.0 tslib: 2.6.2 dev: false @@ -1398,12 +1434,12 @@ packages: engines: {node: '>=14.0.0'} dependencies: '@azure/abort-controller': 1.1.0 - '@azure/core-auth': 1.6.0 - '@azure/core-client': 1.8.0 - '@azure/core-rest-pipeline': 1.14.0 - '@azure/core-tracing': 1.0.1 - '@azure/core-util': 1.7.0 - '@azure/logger': 1.0.4 + '@azure/core-auth': 1.7.0 + '@azure/core-client': 1.9.0 + '@azure/core-rest-pipeline': 1.15.0 + '@azure/core-tracing': 1.1.0 + '@azure/core-util': 1.8.0 + '@azure/logger': 1.1.0 '@azure/msal-browser': 3.10.0 '@azure/msal-node': 2.6.4 events: 3.3.0 @@ -1420,12 +1456,12 @@ packages: engines: {node: '>=18.0.0'} dependencies: '@azure/abort-controller': 1.1.0 - '@azure/core-auth': 1.6.0 - '@azure/core-client': 1.8.0 - '@azure/core-rest-pipeline': 1.14.0 - '@azure/core-tracing': 1.0.1 - '@azure/core-util': 1.7.0 - '@azure/logger': 1.0.4 + '@azure/core-auth': 1.7.0 + '@azure/core-client': 1.9.0 + '@azure/core-rest-pipeline': 1.15.0 + '@azure/core-tracing': 1.1.0 + '@azure/core-util': 1.8.0 + '@azure/logger': 1.1.0 '@azure/msal-browser': 3.10.0 '@azure/msal-node': 2.6.4 events: 3.3.0 @@ -1442,15 +1478,15 @@ packages: engines: {node: '>=18.0.0'} dependencies: '@azure/abort-controller': 1.1.0 - '@azure/core-auth': 1.6.0 - '@azure/core-client': 1.8.0 - '@azure/core-http-compat': 2.0.1 - '@azure/core-lro': 2.6.0 - '@azure/core-paging': 1.5.0 - '@azure/core-rest-pipeline': 1.14.0 - '@azure/core-tracing': 1.0.1 - '@azure/core-util': 1.7.0 - '@azure/logger': 1.0.4 + '@azure/core-auth': 1.7.0 + '@azure/core-client': 1.9.0 + '@azure/core-http-compat': 2.1.0 + '@azure/core-lro': 2.7.0 + '@azure/core-paging': 1.6.0 + '@azure/core-rest-pipeline': 1.15.0 + '@azure/core-tracing': 1.1.0 + '@azure/core-util': 1.8.0 + '@azure/logger': 1.1.0 tslib: 2.6.2 transitivePeerDependencies: - supports-color @@ -1463,15 +1499,22 @@ packages: tslib: 2.6.2 dev: false + /@azure/logger@1.1.0: + resolution: {integrity: sha512-BnfkfzVEsrgbVCtqq0RYRMePSH2lL/cgUUR5sYRF4yNN10zJZq/cODz0r89k3ykY83MqeM3twR292a3YBNgC3w==} + engines: {node: '>=18.0.0'} + dependencies: + tslib: 2.6.2 + dev: false + /@azure/maps-common@1.0.0-beta.2: resolution: {integrity: sha512-PB9GlnfojcQ4nf9WXdQvWeAk7gm8P74o+Z5IHz5YLK/W+3vrNrmVVVuFpGOvCPrLjag50UinaZsMBtPtxoiobg==} engines: {node: '>=14.0.0'} dependencies: '@azure/abort-controller': 1.1.0 - '@azure/core-auth': 1.6.0 - '@azure/core-client': 1.8.0 - '@azure/core-lro': 2.6.0 - '@azure/core-rest-pipeline': 1.14.0 + '@azure/core-auth': 1.7.0 + '@azure/core-client': 1.9.0 + '@azure/core-lro': 2.7.0 + '@azure/core-rest-pipeline': 1.15.0 transitivePeerDependencies: - supports-color dev: false @@ -1488,11 +1531,6 @@ packages: engines: {node: '>=0.8.0'} dev: false - /@azure/msal-common@14.5.0: - resolution: {integrity: sha512-Gx5rZbiZV/HiZ2nEKfjfAF/qDdZ4/QWxMvMo2jhIFVz528dVKtaZyFAOtsX2Ak8+TQvRsGCaEfuwJFuXB6tu1A==} - engines: {node: '>=0.8.0'} - dev: false - /@azure/msal-common@14.7.1: resolution: {integrity: sha512-v96btzjM7KrAu4NSEdOkhQSTGOuNUIIsUdB8wlyB9cdgl5KqEKnTonHUZ8+khvZ6Ap542FCErbnTyDWl8lZ2rA==} engines: {node: '>=0.8.0'} @@ -1507,15 +1545,6 @@ packages: keytar: 7.9.0 dev: false - /@azure/msal-node-extensions@1.0.8: - resolution: {integrity: sha512-h7YxOroWRY/Y5B5NEvLhiwhG2tmOiqiDC91EC4CmtNpkMgH/pbr6Ln0iOJXVhDhz9dzBRCKLUL1Afj5MzHHg1g==} - engines: {node: 16 || 18 || 20} - dependencies: - '@azure/msal-common': 14.5.0 - '@azure/msal-node-runtime': 0.13.6-alpha.0 - keytar: 7.9.0 - dev: false - /@azure/msal-node-runtime@0.13.6-alpha.0: resolution: {integrity: sha512-Tu5e4wBFiaiBLrOu7bsJF7FYknFH9XIOvUyCqCnmLJFMMOUnYULZ7fOFYuintFFcNPMOT2u8BVfSCPxETri5ng==} requiresBuild: true @@ -1544,11 +1573,11 @@ packages: resolution: {integrity: sha512-c0941sREjSPE6/KMVd3vrLYKwwjrKZabOP/i1YOoBS4RquFIi3aA4wUPBvsVhOs4JzN79Ztcn7/ZvO4HyzrSVQ==} engines: {node: '>=12.0.0'} dependencies: - '@azure/core-auth': 1.6.0 - '@azure/core-client': 1.8.0 - '@azure/core-rest-pipeline': 1.14.0 - '@azure/core-tracing': 1.0.1 - '@azure/logger': 1.0.4 + '@azure/core-auth': 1.7.0 + '@azure/core-client': 1.9.0 + '@azure/core-rest-pipeline': 1.15.0 + '@azure/core-tracing': 1.1.0 + '@azure/logger': 1.1.0 tslib: 2.6.2 transitivePeerDependencies: - supports-color @@ -1560,10 +1589,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/core-http': 3.0.4 - '@azure/core-lro': 2.6.0 - '@azure/core-paging': 1.5.0 + '@azure/core-lro': 2.7.0 + '@azure/core-paging': 1.6.0 '@azure/core-tracing': 1.0.0-preview.13 - '@azure/logger': 1.0.4 + '@azure/logger': 1.1.0 events: 3.3.0 tslib: 2.6.2 transitivePeerDependencies: @@ -1576,9 +1605,9 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/core-http': 3.0.4 - '@azure/core-paging': 1.5.0 + '@azure/core-paging': 1.6.0 '@azure/core-tracing': 1.0.0-preview.13 - '@azure/logger': 1.0.4 + '@azure/logger': 1.1.0 '@azure/storage-blob': 12.17.0 events: 3.3.0 tslib: 2.6.2 @@ -1592,9 +1621,9 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/core-http': 3.0.4 - '@azure/core-paging': 1.5.0 + '@azure/core-paging': 1.6.0 '@azure/core-tracing': 1.0.0-preview.13 - '@azure/logger': 1.0.4 + '@azure/logger': 1.1.0 events: 3.3.0 tslib: 2.6.2 transitivePeerDependencies: @@ -1606,8 +1635,8 @@ packages: engines: {node: '>=14.0.0'} dependencies: '@azure/abort-controller': 1.1.0 - '@azure/core-util': 1.7.0 - '@azure/logger': 1.0.4 + '@azure/core-util': 1.8.0 + '@azure/logger': 1.1.0 buffer: 6.0.3 tslib: 2.6.2 ws: 7.5.9 @@ -1629,20 +1658,20 @@ packages: engines: {node: '>=6.9.0'} dev: false - /@babel/core@7.23.9: - resolution: {integrity: sha512-5q0175NOjddqpvvzU+kDiSOAk4PfdO6FvwCWoQ6RO7rTzEe8vlo+4HVfcnAREhD4npMs0e9uZypjTwzZPCf/cw==} + /@babel/core@7.24.0: + resolution: {integrity: sha512-fQfkg0Gjkza3nf0c7/w6Xf34BW4YvzNfACRLmmb7XRLa6XHdR+K9AlJlxneFfWYf6uhOzuzZVTjF/8KfndZANw==} engines: {node: '>=6.9.0'} dependencies: - '@ampproject/remapping': 2.2.1 + '@ampproject/remapping': 2.3.0 '@babel/code-frame': 7.23.5 '@babel/generator': 7.23.6 '@babel/helper-compilation-targets': 7.23.6 - '@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.9) - '@babel/helpers': 7.23.9 - '@babel/parser': 7.23.9 - '@babel/template': 7.23.9 - '@babel/traverse': 7.23.9 - '@babel/types': 7.23.9 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.24.0) + '@babel/helpers': 7.24.0 + '@babel/parser': 7.24.0 + '@babel/template': 7.24.0 + '@babel/traverse': 7.24.0 + '@babel/types': 7.24.0 convert-source-map: 2.0.0 debug: 4.3.4(supports-color@8.1.1) gensync: 1.0.0-beta.2 @@ -1656,9 +1685,9 @@ packages: resolution: {integrity: sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.9 - '@jridgewell/gen-mapping': 0.3.4 - '@jridgewell/trace-mapping': 0.3.23 + '@babel/types': 7.24.0 + '@jridgewell/gen-mapping': 0.3.5 + '@jridgewell/trace-mapping': 0.3.25 jsesc: 2.5.2 dev: false @@ -1682,31 +1711,31 @@ packages: resolution: {integrity: sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/template': 7.23.9 - '@babel/types': 7.23.9 + '@babel/template': 7.24.0 + '@babel/types': 7.24.0 dev: false /@babel/helper-hoist-variables@7.22.5: resolution: {integrity: sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.9 + '@babel/types': 7.24.0 dev: false /@babel/helper-module-imports@7.22.15: resolution: {integrity: sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.9 + '@babel/types': 7.24.0 dev: false - /@babel/helper-module-transforms@7.23.3(@babel/core@7.23.9): + /@babel/helper-module-transforms@7.23.3(@babel/core@7.24.0): resolution: {integrity: sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/core': 7.23.9 + '@babel/core': 7.24.0 '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-module-imports': 7.22.15 '@babel/helper-simple-access': 7.22.5 @@ -1718,14 +1747,14 @@ packages: resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.9 + '@babel/types': 7.24.0 dev: false /@babel/helper-split-export-declaration@7.22.6: resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.9 + '@babel/types': 7.24.0 dev: false /@babel/helper-string-parser@7.23.4: @@ -1743,13 +1772,13 @@ packages: engines: {node: '>=6.9.0'} dev: false - /@babel/helpers@7.23.9: - resolution: {integrity: sha512-87ICKgU5t5SzOT7sBMfCOZQ2rHjRU+Pcb9BoILMYz600W6DkVRLFBPwQ18gwUVvggqXivaUakpnxWQGbpywbBQ==} + /@babel/helpers@7.24.0: + resolution: {integrity: sha512-ulDZdc0Aj5uLc5nETsa7EPx2L7rM0YJM8r7ck7U73AXi7qOV44IHHRAYZHY6iU1rr3C5N4NtTmMRUJP6kwCWeA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/template': 7.23.9 - '@babel/traverse': 7.23.9 - '@babel/types': 7.23.9 + '@babel/template': 7.24.0 + '@babel/traverse': 7.24.0 + '@babel/types': 7.24.0 transitivePeerDependencies: - supports-color dev: false @@ -1763,30 +1792,30 @@ packages: js-tokens: 4.0.0 dev: false - /@babel/parser@7.23.9: - resolution: {integrity: sha512-9tcKgqKbs3xGJ+NtKF2ndOBBLVwPjl1SHxPQkd36r3Dlirw3xWUeGaTbqr7uGZcTaxkVNwc+03SVP7aCdWrTlA==} + /@babel/parser@7.24.0: + resolution: {integrity: sha512-QuP/FxEAzMSjXygs8v4N9dvdXzEHN4W1oF3PxuWAtPo08UdM17u89RDMgjLn/mlc56iM0HlLmVkO/wgR+rDgHg==} engines: {node: '>=6.0.0'} hasBin: true dev: false - /@babel/runtime@7.23.9: - resolution: {integrity: sha512-0CX6F+BI2s9dkUqr08KFrAIZgNFj75rdBU/DjCyYLIaV/quFjkk6T+EJ2LkZHyZTbEV4L5p97mNkUsHl2wLFAw==} + /@babel/runtime@7.24.0: + resolution: {integrity: sha512-Chk32uHMg6TnQdvw2e9IlqPpFX/6NLuK0Ys2PqLb7/gL5uFn9mXvK715FGLlOLQrcO4qIkNHkvPGktzzXexsFw==} engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.14.1 dev: false - /@babel/template@7.23.9: - resolution: {integrity: sha512-+xrD2BWLpvHKNmX2QbpdpsBaWnRxahMwJjO+KZk2JOElj5nSmKezyS1B4u+QbHMTX69t4ukm6hh9lsYQ7GHCKA==} + /@babel/template@7.24.0: + resolution: {integrity: sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==} engines: {node: '>=6.9.0'} dependencies: '@babel/code-frame': 7.23.5 - '@babel/parser': 7.23.9 - '@babel/types': 7.23.9 + '@babel/parser': 7.24.0 + '@babel/types': 7.24.0 dev: false - /@babel/traverse@7.23.9: - resolution: {integrity: sha512-I/4UJ9vs90OkBtY6iiiTORVMyIhJ4kAVmsKo9KFc8UOxMeUfi2hvtIBsET5u9GizXE6/GFSuKCTNfgCswuEjRg==} + /@babel/traverse@7.24.0: + resolution: {integrity: sha512-HfuJlI8qq3dEDmNU5ChzzpZRWq+oxCZQyMzIMEqLho+AQnhMnKQUzH6ydo3RBl/YjPCuk68Y6s0Gx0AeyULiWw==} engines: {node: '>=6.9.0'} dependencies: '@babel/code-frame': 7.23.5 @@ -1795,16 +1824,16 @@ packages: '@babel/helper-function-name': 7.23.0 '@babel/helper-hoist-variables': 7.22.5 '@babel/helper-split-export-declaration': 7.22.6 - '@babel/parser': 7.23.9 - '@babel/types': 7.23.9 + '@babel/parser': 7.24.0 + '@babel/types': 7.24.0 debug: 4.3.4(supports-color@8.1.1) globals: 11.12.0 transitivePeerDependencies: - supports-color dev: false - /@babel/types@7.23.9: - resolution: {integrity: sha512-dQjSq/7HaSjRM43FFGnv5keM2HsxpmyV1PfaSVm0nzzjwwTmjOe6J4bC8e3+pTEIgHaHj+1ZlLThRJ2auc/w1Q==} + /@babel/types@7.24.0: + resolution: {integrity: sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==} engines: {node: '>=6.9.0'} dependencies: '@babel/helper-string-parser': 7.23.4 @@ -2072,17 +2101,12 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: false - /@fastify/busboy@2.1.0: - resolution: {integrity: sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==} - engines: {node: '>=14'} - dev: false - - /@grpc/grpc-js@1.10.1: - resolution: {integrity: sha512-55ONqFytZExfOIjF1RjXPcVmT/jJqFzbbDqxK9jmRV4nxiYWtL9hENSW1Jfx0SdZfrvoqd44YJ/GJTqfRrawSQ==} - engines: {node: ^8.13.0 || >=10.10.0} + /@grpc/grpc-js@1.10.3: + resolution: {integrity: sha512-qiO9MNgYnwbvZ8MK0YLWbnGrNX3zTcj6/Ef7UHu5ZofER3e2nF3Y35GaPo9qNJJ/UJQKa4KL+z/F4Q8Q+uCdUQ==} + engines: {node: '>=12.10.0'} dependencies: '@grpc/proto-loader': 0.7.10 - '@types/node': 20.10.8 + '@js-sdsl/ordered-map': 4.4.2 dev: false /@grpc/proto-loader@0.7.10: @@ -2151,13 +2175,13 @@ packages: '@sinclair/typebox': 0.27.8 dev: false - /@jridgewell/gen-mapping@0.3.4: - resolution: {integrity: sha512-Oud2QPM5dHviZNn4y/WhhYKSXksv+1xLEIsNrAbGcFzUN3ubqWRFT5gwPchNc5NuzILOU4tPBDTZ4VwhL8Y7cw==} + /@jridgewell/gen-mapping@0.3.5: + resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==} engines: {node: '>=6.0.0'} dependencies: - '@jridgewell/set-array': 1.1.2 + '@jridgewell/set-array': 1.2.1 '@jridgewell/sourcemap-codec': 1.4.15 - '@jridgewell/trace-mapping': 0.3.23 + '@jridgewell/trace-mapping': 0.3.25 dev: false /@jridgewell/resolve-uri@3.1.2: @@ -2165,8 +2189,8 @@ packages: engines: {node: '>=6.0.0'} dev: false - /@jridgewell/set-array@1.1.2: - resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==} + /@jridgewell/set-array@1.2.1: + resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} engines: {node: '>=6.0.0'} dev: false @@ -2174,8 +2198,8 @@ packages: resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} dev: false - /@jridgewell/trace-mapping@0.3.23: - resolution: {integrity: sha512-9/4foRoUKp8s96tSkh8DlAAc5A0Ty8vLXld+l9gjKKY6ckwI8G15f0hskGmuLZu78ZlGa1vtsfOa+lnB4vG6Jg==} + /@jridgewell/trace-mapping@0.3.25: + resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} dependencies: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.4.15 @@ -2188,6 +2212,10 @@ packages: '@jridgewell/sourcemap-codec': 1.4.15 dev: false + /@js-sdsl/ordered-map@4.4.2: + resolution: {integrity: sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==} + dev: false + /@jsdoc/salty@0.2.7: resolution: {integrity: sha512-mh8LbS9d4Jq84KLw8pzho7XC2q2/IJGiJss3xwRoLD1A+EE16SjN4PfaG4jRCzKegTFLlN0Zd8SdUPE6XdoPFg==} engines: {node: '>=v12.0.0'} @@ -2195,22 +2223,22 @@ packages: lodash: 4.17.21 dev: false - /@microsoft/api-extractor-model@7.28.13(@types/node@16.18.83): + /@microsoft/api-extractor-model@7.28.13(@types/node@16.18.89): resolution: {integrity: sha512-39v/JyldX4MS9uzHcdfmjjfS6cYGAoXV+io8B5a338pkHiSt+gy2eXQ0Q7cGFJ7quSa1VqqlMdlPrB6sLR/cAw==} dependencies: '@microsoft/tsdoc': 0.14.2 '@microsoft/tsdoc-config': 0.16.2 - '@rushstack/node-core-library': 4.0.2(@types/node@16.18.83) + '@rushstack/node-core-library': 4.0.2(@types/node@16.18.89) transitivePeerDependencies: - '@types/node' dev: false - /@microsoft/api-extractor-model@7.28.13(@types/node@18.19.18): + /@microsoft/api-extractor-model@7.28.13(@types/node@18.19.24): resolution: {integrity: sha512-39v/JyldX4MS9uzHcdfmjjfS6cYGAoXV+io8B5a338pkHiSt+gy2eXQ0Q7cGFJ7quSa1VqqlMdlPrB6sLR/cAw==} dependencies: '@microsoft/tsdoc': 0.14.2 '@microsoft/tsdoc-config': 0.16.2 - '@rushstack/node-core-library': 4.0.2(@types/node@18.19.18) + '@rushstack/node-core-library': 4.0.2(@types/node@18.19.24) transitivePeerDependencies: - '@types/node' dev: false @@ -2245,18 +2273,19 @@ packages: - '@types/node' dev: false - /@microsoft/api-extractor@7.41.0(@types/node@16.18.83): - resolution: {integrity: sha512-Wk4fcSqO1i32FspStEm4ak+cfdo2xGsWk/K9uZoYIRQxjQH/roLU78waP+g+GhoAg5OxH63BfY37h6ISkNfQEQ==} + /@microsoft/api-extractor@7.42.3(@types/node@16.18.89): + resolution: {integrity: sha512-JNLJFpGHz6ekjS6bvYXxUBeRGnSHeCMFNvRbCQ+7XXB/ZFrgLSMPwWtEq40AiWAy+oyG5a4RSNwdJTp0B2USvQ==} hasBin: true dependencies: - '@microsoft/api-extractor-model': 7.28.13(@types/node@16.18.83) + '@microsoft/api-extractor-model': 7.28.13(@types/node@16.18.89) '@microsoft/tsdoc': 0.14.2 '@microsoft/tsdoc-config': 0.16.2 - '@rushstack/node-core-library': 4.0.2(@types/node@16.18.83) + '@rushstack/node-core-library': 4.0.2(@types/node@16.18.89) '@rushstack/rig-package': 0.5.2 - '@rushstack/terminal': 0.10.0(@types/node@16.18.83) - '@rushstack/ts-command-line': 4.17.4(@types/node@16.18.83) + '@rushstack/terminal': 0.10.0(@types/node@16.18.89) + '@rushstack/ts-command-line': 4.19.1(@types/node@16.18.89) lodash: 4.17.21 + minimatch: 3.0.8 resolve: 1.22.8 semver: 7.5.4 source-map: 0.6.1 @@ -2265,18 +2294,19 @@ packages: - '@types/node' dev: false - /@microsoft/api-extractor@7.41.0(@types/node@18.19.18): - resolution: {integrity: sha512-Wk4fcSqO1i32FspStEm4ak+cfdo2xGsWk/K9uZoYIRQxjQH/roLU78waP+g+GhoAg5OxH63BfY37h6ISkNfQEQ==} + /@microsoft/api-extractor@7.42.3(@types/node@18.19.24): + resolution: {integrity: sha512-JNLJFpGHz6ekjS6bvYXxUBeRGnSHeCMFNvRbCQ+7XXB/ZFrgLSMPwWtEq40AiWAy+oyG5a4RSNwdJTp0B2USvQ==} hasBin: true dependencies: - '@microsoft/api-extractor-model': 7.28.13(@types/node@18.19.18) + '@microsoft/api-extractor-model': 7.28.13(@types/node@18.19.24) '@microsoft/tsdoc': 0.14.2 '@microsoft/tsdoc-config': 0.16.2 - '@rushstack/node-core-library': 4.0.2(@types/node@18.19.18) + '@rushstack/node-core-library': 4.0.2(@types/node@18.19.24) '@rushstack/rig-package': 0.5.2 - '@rushstack/terminal': 0.10.0(@types/node@18.19.18) - '@rushstack/ts-command-line': 4.17.4(@types/node@18.19.18) + '@rushstack/terminal': 0.10.0(@types/node@18.19.24) + '@rushstack/ts-command-line': 4.19.1(@types/node@18.19.24) lodash: 4.17.21 + minimatch: 3.0.8 resolve: 1.22.8 semver: 7.5.4 source-map: 0.6.1 @@ -2285,8 +2315,8 @@ packages: - '@types/node' dev: false - /@microsoft/applicationinsights-web-snippet@1.0.1: - resolution: {integrity: sha512-2IHAOaLauc8qaAitvWS+U931T+ze+7MNWrDHY47IENP5y2UA0vqJDu67kWZDdpCN1fFC77sfgfB+HV7SrKshnQ==} + /@microsoft/applicationinsights-web-snippet@1.1.2: + resolution: {integrity: sha512-qPoOk3MmEx3gS6hTc1/x8JWQG5g4BvRdH7iqZMENBsKCL927b7D7Mvl19bh3sW9Ucrg1fVrF+4hqShwQNdqLxQ==} dev: false /@microsoft/tsdoc-config@0.16.2: @@ -2323,279 +2353,280 @@ packages: fastq: 1.17.1 dev: false - /@opentelemetry/api-logs@0.48.0: - resolution: {integrity: sha512-1/aMiU4Eqo3Zzpfwu51uXssp5pzvHFObk8S9pKAiXb1ne8pvg1qxBQitYL1XUiAMEXFzgjaidYG2V6624DRhhw==} + /@opentelemetry/api-logs@0.49.1: + resolution: {integrity: sha512-kaNl/T7WzyMUQHQlVq7q0oV4Kev6+0xFwqzofryC66jgGMacd0QH5TwfpbUwSTby+SdAdprAe5UKMvBw4tKS5Q==} engines: {node: '>=14'} dependencies: - '@opentelemetry/api': 1.7.0 + '@opentelemetry/api': 1.8.0 dev: false - /@opentelemetry/api@1.7.0: - resolution: {integrity: sha512-AdY5wvN0P2vXBi3b29hxZgSFvdhdxPB9+f0B6s//P9Q8nibRWeA3cHm8UmLpio9ABigkVHJ5NMPk+Mz8VCCyrw==} + /@opentelemetry/api@1.8.0: + resolution: {integrity: sha512-I/s6F7yKUDdtMsoBWXJe8Qz40Tui5vsuKCWJEWVL+5q9sSWRzzx6v2KeNsOBEwd94j0eWkpWCH4yB6rZg9Mf0w==} engines: {node: '>=8.0.0'} dev: false - /@opentelemetry/context-async-hooks@1.21.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-t0iulGPiMjG/NrSjinPQoIf8ST/o9V0dGOJthfrFporJlNdlKIQPfC7lkrV+5s2dyBThfmSbJlp/4hO1eOcDXA==} + /@opentelemetry/context-async-hooks@1.22.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-Nfdxyg8YtWqVWkyrCukkundAjPhUXi93JtVQmqDT1mZRVKqA7e2r7eJCrI+F651XUBMp0hsOJSGiFk3QSpaIJw==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.8.0' + '@opentelemetry/api': '>=1.0.0 <1.9.0' dependencies: - '@opentelemetry/api': 1.7.0 + '@opentelemetry/api': 1.8.0 dev: false - /@opentelemetry/core@1.21.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-KP+OIweb3wYoP7qTYL/j5IpOlu52uxBv5M4+QhSmmUfLyTgu1OIS71msK3chFo1D6Y61BIH3wMiMYRCxJCQctA==} + /@opentelemetry/core@1.22.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-0VoAlT6x+Xzik1v9goJ3pZ2ppi6+xd3aUfg4brfrLkDBHRIVjMP0eBHrKrhB+NKcDyMAg8fAbGL3Npg/F6AwWA==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.8.0' + '@opentelemetry/api': '>=1.0.0 <1.9.0' dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/semantic-conventions': 1.21.0 + '@opentelemetry/api': 1.8.0 + '@opentelemetry/semantic-conventions': 1.22.0 dev: false - /@opentelemetry/exporter-trace-otlp-grpc@0.48.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-+qRQXUbdRW6aNRT5yWOG3G6My1VxxKeqgUyLkkdIjkT20lvymjiN2RpBfGMtAf/oqnuRknf9snFl9VSIO2gniw==} + /@opentelemetry/exporter-trace-otlp-grpc@0.49.1(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-Zbd7f3zF7fI2587MVhBizaW21cO/SordyrZGtMtvhoxU6n4Qb02Gx71X4+PzXH620e0+JX+Pcr9bYb1HTeVyJA==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.0.0 dependencies: - '@grpc/grpc-js': 1.10.1 - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/otlp-grpc-exporter-base': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/otlp-transformer': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-base': 1.21.0(@opentelemetry/api@1.7.0) + '@grpc/grpc-js': 1.10.3 + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-grpc-exporter-base': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-transformer': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.22.0(@opentelemetry/api@1.8.0) dev: false - /@opentelemetry/exporter-trace-otlp-http@0.48.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-QEZKbfWqXrbKVpr2PHd4KyKI0XVOhUYC+p2RPV8s+2K5QzZBE3+F9WlxxrXDfkrvGmpQAZytBoHQQYA3AGOtpw==} + /@opentelemetry/exporter-trace-otlp-http@0.49.1(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-KOLtZfZvIrpGZLVvblKsiVQT7gQUZNKcUUH24Zz6Xbi7LJb9Vt6xtUZFYdR5IIjvt47PIqBKDWUQlU0o1wAsRw==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.0.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/otlp-exporter-base': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/otlp-transformer': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-base': 1.21.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-exporter-base': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-transformer': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.22.0(@opentelemetry/api@1.8.0) dev: false - /@opentelemetry/exporter-trace-otlp-proto@0.48.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-hVXr/8DYlAKAzQYMsCf3ZsGweS6NTK3IHIEqmLokJZYcvJQBEEazeAdISfrL/utWnapg1Qnpw8u+W6SpxNzmTw==} + /@opentelemetry/exporter-trace-otlp-proto@0.49.1(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-n8ON/c9pdMyYAfSFWKkgsPwjYoxnki+6Olzo+klKfW7KqLWoyEkryNkbcMIYnGGNXwdkMIrjoaP0VxXB26Oxcg==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.0.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/otlp-exporter-base': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/otlp-proto-exporter-base': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/otlp-transformer': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-base': 1.21.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-exporter-base': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-proto-exporter-base': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-transformer': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.22.0(@opentelemetry/api@1.8.0) dev: false - /@opentelemetry/exporter-zipkin@1.21.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-J0ejrOx52s1PqvjNalIHvY/4v9ZxR2r7XS7WZbwK3qpVYZlGVq5V1+iCNweqsKnb/miUt/4TFvJBc9f5Q/kGcA==} + /@opentelemetry/exporter-zipkin@1.22.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-XcFs6rGvcTz0qW5uY7JZDYD0yNEXdekXAb6sFtnZgY/cHY6BQ09HMzOjv9SX+iaXplRDcHr1Gta7VQKM1XXM6g==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.0.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-base': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/semantic-conventions': 1.21.0 + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.22.0 dev: false - /@opentelemetry/instrumentation-bunyan@0.35.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-bQ8OzV7nVTA+oGiTzLjUmRFAbnXi0U/Z4VJCpj+1DRsaAaMT17eRpAOh22LQR0JBnv2vBm8CvIQl4CcAnsB46g==} + /@opentelemetry/instrumentation-bunyan@0.36.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-sHD5BSiqSrgWow7VmugEFzV8vGdsz5m+w1v9tK6YwRzuAD7vbo57chluq+UBzIqStoCH+0yOzRzSALH7hrfffg==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/api-logs': 0.48.0 - '@opentelemetry/instrumentation': 0.48.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/api-logs': 0.49.1 + '@opentelemetry/instrumentation': 0.49.1(@opentelemetry/api@1.8.0) '@types/bunyan': 1.8.9 transitivePeerDependencies: - supports-color dev: false - /@opentelemetry/instrumentation-http@0.48.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-uXqOsLhW9WC3ZlGm6+PSX0xjSDTCfy4CMjfYj6TPWusOO8dtdx040trOriF24y+sZmS3M+5UQc6/3/ZxBJh4Mw==} + /@opentelemetry/instrumentation-http@0.49.1(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-Yib5zrW2s0V8wTeUK/B3ZtpyP4ldgXj9L3Ws/axXrW1dW0/mEFKifK50MxMQK9g5NNJQS9dWH7rvcEGZdWdQDA==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/semantic-conventions': 1.21.0 + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.22.0 semver: 7.6.0 transitivePeerDependencies: - supports-color dev: false - /@opentelemetry/instrumentation-mongodb@0.39.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-m9dMj39pcCshzlfCEn2lGrlNo7eV5fb9pGBnPyl/Am9Crh7Or8vOqvByCNd26Dgf5J978zTdLGF+6tM8j1WOew==} + /@opentelemetry/instrumentation-mongodb@0.40.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-ldlJUW/1UlnGtIWBt7fIUl+7+TGOKxIU+0Js5ukpXfQc07ENYFeck5TdbFjvYtF8GppPErnsZJiFiRdYm6Pv/Q==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/instrumentation': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-metrics': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/semantic-conventions': 1.21.0 + '@opentelemetry/api': 1.8.0 + '@opentelemetry/instrumentation': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-metrics': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.22.0 transitivePeerDependencies: - supports-color dev: false - /@opentelemetry/instrumentation-mysql@0.35.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-QKRHd3aFA2vKOPzIZ9Q3UIxYeNPweB62HGlX2l3shOKrUhrtTg2/BzaKpHQBy2f2nO2mxTF/mOFeVEDeANnhig==} + /@opentelemetry/instrumentation-mysql@0.36.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-2mt/032SLkiuddzMrq3YwM0bHksXRep69EzGRnBfF+bCbwYvKLpqmSFqJZ9T3yY/mBWj+tvdvc1+klXGrh2QnQ==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/instrumentation': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/semantic-conventions': 1.21.0 + '@opentelemetry/api': 1.8.0 + '@opentelemetry/instrumentation': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.22.0 '@types/mysql': 2.15.22 transitivePeerDependencies: - supports-color dev: false - /@opentelemetry/instrumentation-pg@0.38.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-Q7V/OJ1OZwaWYNOP/E9S6sfS03Z+PNU1SAjdAoXTj5j4u4iJSMSieLRWXFaHwsbefIOMkYvA00EBKF9IgbgbLA==} + /@opentelemetry/instrumentation-pg@0.39.1(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-pX5ujDOyGpPcrZlzaD3LJzmyaSMMMKAP+ffTHJp9vasvZJr+LifCk53TMPVUafcXKV/xX/IIkvADO+67M1Z25g==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/instrumentation': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/semantic-conventions': 1.21.0 - '@opentelemetry/sql-common': 0.40.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/instrumentation': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.22.0 + '@opentelemetry/sql-common': 0.40.0(@opentelemetry/api@1.8.0) '@types/pg': 8.6.1 '@types/pg-pool': 2.0.4 transitivePeerDependencies: - supports-color dev: false - /@opentelemetry/instrumentation-redis-4@0.36.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-XO0EV2TxUsaRdcp79blyLGG5JWWl7NWVd/XNbU8vY7CuYUfRhWiTXYoM4PI+lwkAnUPvPtyiOzYs9px23GnibA==} + /@opentelemetry/instrumentation-redis-4@0.37.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-WNO+HALvPPvjbh7UEEIuay0Z0d2mIfSCkBZbPRwZttDGX6LYGc2WnRgJh3TnYqjp7/y9IryWIbajAFIebj1OBA==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/instrumentation': 0.48.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/instrumentation': 0.49.1(@opentelemetry/api@1.8.0) '@opentelemetry/redis-common': 0.36.1 - '@opentelemetry/semantic-conventions': 1.21.0 + '@opentelemetry/semantic-conventions': 1.22.0 transitivePeerDependencies: - supports-color dev: false - /@opentelemetry/instrumentation-redis@0.36.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-rKFylIacEBwLxKFrPvxpVi8hHY9qXfQSybYnYNyF/VxUWMGYDPMpbCnTQkiVR5u+tIhwSvhSDG2YQEq6syHUIQ==} + /@opentelemetry/instrumentation-redis@0.37.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-9G0T74kheu37k+UvyBnAcieB5iowxska3z2rhUcSTL8Cl0y/CvMn7sZ7txkUbXt0rdX6qeEUdMLmbsY2fPUM7Q==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/instrumentation': 0.48.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/instrumentation': 0.49.1(@opentelemetry/api@1.8.0) '@opentelemetry/redis-common': 0.36.1 - '@opentelemetry/semantic-conventions': 1.21.0 + '@opentelemetry/semantic-conventions': 1.22.0 transitivePeerDependencies: - supports-color dev: false - /@opentelemetry/instrumentation@0.48.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-sjtZQB5PStIdCw5ovVTDGwnmQC+GGYArJNgIcydrDSqUTdYBnMrN9P4pwQZgS3vTGIp+TU1L8vMXGe51NVmIKQ==} + /@opentelemetry/instrumentation@0.49.1(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-0DLtWtaIppuNNRRllSD4bjU8ZIiLp1cDXvJEbp752/Zf+y3gaLNaoGRGIlX4UHhcsrmtL+P2qxi3Hodi8VuKiQ==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: - '@opentelemetry/api': 1.7.0 + '@opentelemetry/api': 1.8.0 + '@opentelemetry/api-logs': 0.49.1 '@types/shimmer': 1.0.5 import-in-the-middle: 1.7.1 - require-in-the-middle: 7.2.0 + require-in-the-middle: 7.2.1 semver: 7.6.0 shimmer: 1.2.1 transitivePeerDependencies: - supports-color dev: false - /@opentelemetry/otlp-exporter-base@0.48.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-T4LJND+Ugl87GUONoyoQzuV9qCn4BFIPOnCH1biYqdGhc2JahjuLqVD9aefwLzGBW638iLAo88Lh68h2F1FLiA==} + /@opentelemetry/otlp-exporter-base@0.49.1(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-z6sHliPqDgJU45kQatAettY9/eVF58qVPaTuejw9YWfSRqid9pXPYeegDCSdyS47KAUgAtm+nC28K3pfF27HWg==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.0.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) dev: false - /@opentelemetry/otlp-grpc-exporter-base@0.48.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-Vdp56RK9OU+Oeoy3YQC/UMOWglKQ9qvgGr49FgF4r8vk5DlcTUgVS0m3KG8pykmRPA+5ZKaDuqwPw5aTvWmHFw==} + /@opentelemetry/otlp-grpc-exporter-base@0.49.1(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-DNDNUWmOqtKTFJAyOyHHKotVox0NQ/09ETX8fUOeEtyNVHoGekAVtBbvIA3AtK+JflP7LC0PTjlLfruPM3Wy6w==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.0.0 dependencies: - '@grpc/grpc-js': 1.10.1 - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/otlp-exporter-base': 0.48.0(@opentelemetry/api@1.7.0) + '@grpc/grpc-js': 1.10.3 + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-exporter-base': 0.49.1(@opentelemetry/api@1.8.0) protobufjs: 7.2.6 dev: false - /@opentelemetry/otlp-proto-exporter-base@0.48.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-14GSTvPZPfrWsB54fYMGb8v+Uge5xGXyz0r2rf4SzcRnO2hXCPHEuL3yyL50emaKPAY+fj29Dm0bweawe8UA6A==} + /@opentelemetry/otlp-proto-exporter-base@0.49.1(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-x1qB4EUC7KikUl2iNuxCkV8yRzrSXSyj4itfpIO674H7dhI7Zv37SFaOJTDN+8Z/F50gF2ISFH9CWQ4KCtGm2A==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.0.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/otlp-exporter-base': 0.48.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-exporter-base': 0.49.1(@opentelemetry/api@1.8.0) protobufjs: 7.2.6 dev: false - /@opentelemetry/otlp-transformer@0.48.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-yuoS4cUumaTK/hhxW3JUy3wl2U4keMo01cFDrUOmjloAdSSXvv1zyQ920IIH4lymp5Xd21Dj2/jq2LOro56TJg==} + /@opentelemetry/otlp-transformer@0.49.1(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-Z+koA4wp9L9e3jkFacyXTGphSWTbOKjwwXMpb0CxNb0kjTHGUxhYRN8GnkLFsFo5NbZPjP07hwAqeEG/uCratQ==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.3.0 <1.8.0' + '@opentelemetry/api': '>=1.3.0 <1.9.0' dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/api-logs': 0.48.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-logs': 0.48.0(@opentelemetry/api-logs@0.48.0)(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-metrics': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-base': 1.21.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/api-logs': 0.49.1 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-logs': 0.49.1(@opentelemetry/api-logs@0.49.1)(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-metrics': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.22.0(@opentelemetry/api@1.8.0) dev: false - /@opentelemetry/propagator-b3@1.21.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-3ZTobj2VDIOzLsIvvYCdpw6tunxUVElPxDvog9lS49YX4hohHeD84A8u9Ns/6UYUcaN5GSoEf891lzhcBFiOLA==} + /@opentelemetry/propagator-b3@1.22.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-qBItJm9ygg/jCB5rmivyGz1qmKZPsL/sX715JqPMFgq++Idm0x+N9sLQvWFHFt2+ZINnCSojw7FVBgFW6izcXA==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.8.0' + '@opentelemetry/api': '>=1.0.0 <1.9.0' dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) dev: false - /@opentelemetry/propagator-jaeger@1.21.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-8TQSwXjBmaDx7JkxRD7hdmBmRK2RGRgzHX1ArJfJhIc5trzlVweyorzqQrXOvqVEdEg+zxUMHkL5qbGH/HDTPA==} + /@opentelemetry/propagator-jaeger@1.22.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-pMLgst3QIwrUfepraH5WG7xfpJ8J3CrPKrtINK0t7kBkuu96rn+HDYQ8kt3+0FXvrZI8YJE77MCQwnJWXIrgpA==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.8.0' + '@opentelemetry/api': '>=1.0.0 <1.9.0' dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) dev: false /@opentelemetry/redis-common@0.36.1: @@ -2603,116 +2634,117 @@ packages: engines: {node: '>=14'} dev: false - /@opentelemetry/resource-detector-azure@0.2.4(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-H1xXOqF87Ps57cGnGFsMf3+Fj5VdeVlBA6Hl8f0DRQ32eD7+5szx53/qvpvES90o+e+fHGr42KCz8MP+ow6MpQ==} + /@opentelemetry/resource-detector-azure@0.2.5(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-O/s4MW9UhLtOebNcdtM5sXm2tZ7O8Ow0avkuFqwwZYTeBcI7ipJs9L8mv8q4bP8K9AQabLLBYw+vOOpN7aH/dA==} engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': ^1.0.0 dependencies: - '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/semantic-conventions': 1.21.0 - transitivePeerDependencies: - - '@opentelemetry/api' + '@opentelemetry/api': 1.8.0 + '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.22.0 dev: false - /@opentelemetry/resources@1.21.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-1Z86FUxPKL6zWVy2LdhueEGl9AHDJcx+bvHStxomruz6Whd02mE3lNUMjVJ+FGRoktx/xYQcxccYb03DiUP6Yw==} + /@opentelemetry/resources@1.22.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-+vNeIFPH2hfcNL0AJk/ykJXoUCtR1YaDUZM+p3wZNU4Hq98gzq+7b43xbkXjadD9VhWIUQqEwXyY64q6msPj6A==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.8.0' + '@opentelemetry/api': '>=1.0.0 <1.9.0' dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/semantic-conventions': 1.21.0 + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.22.0 dev: false - /@opentelemetry/sdk-logs@0.48.0(@opentelemetry/api-logs@0.48.0)(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-lRcA5/qkSJuSh4ItWCddhdn/nNbVvnzM+cm9Fg1xpZUeTeozjJDBcHnmeKoOaWRnrGYBdz6UTY6bynZR9aBeAA==} + /@opentelemetry/sdk-logs@0.49.1(@opentelemetry/api-logs@0.49.1)(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-gCzYWsJE0h+3cuh3/cK+9UwlVFyHvj3PReIOCDOmdeXOp90ZjKRoDOJBc3mvk1LL6wyl1RWIivR8Rg9OToyesw==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.4.0 <1.8.0' + '@opentelemetry/api': '>=1.4.0 <1.9.0' '@opentelemetry/api-logs': '>=0.39.1' dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/api-logs': 0.48.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/api-logs': 0.49.1 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) dev: false - /@opentelemetry/sdk-metrics@1.21.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-on1jTzIHc5DyWhRP+xpf+zrgrREXcHBH4EDAfaB5mIG7TWpKxNXooQ1JCylaPsswZUv4wGnVTinr4HrBdGARAQ==} + /@opentelemetry/sdk-metrics@1.22.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-k6iIx6H3TZ+BVMr2z8M16ri2OxWaljg5h8ihGJxi/KQWcjign6FEaEzuigXt5bK9wVEhqAcWLCfarSftaNWkkg==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.3.0 <1.8.0' + '@opentelemetry/api': '>=1.3.0 <1.9.0' dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) lodash.merge: 4.6.2 dev: false - /@opentelemetry/sdk-node@0.48.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-3o3GS6t+VLGVFCV5bqfGOcWIgOdkR/UE6Qz7hHksP5PXrVBeYsPqts7cPma5YXweaI3r3h26mydg9PqQIcqksg==} + /@opentelemetry/sdk-node@0.49.1(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-feBIT85ndiSHXsQ2gfGpXC/sNeX4GCHLksC4A9s/bfpUbbgbCSl0RvzZlmEpCHarNrkZMwFRi4H0xFfgvJEjrg==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.3.0 <1.8.0' + '@opentelemetry/api': '>=1.3.0 <1.9.0' dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/api-logs': 0.48.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/exporter-trace-otlp-grpc': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/exporter-trace-otlp-http': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/exporter-trace-otlp-proto': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/exporter-zipkin': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-logs': 0.48.0(@opentelemetry/api-logs@0.48.0)(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-metrics': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-base': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-node': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/semantic-conventions': 1.21.0 + '@opentelemetry/api': 1.8.0 + '@opentelemetry/api-logs': 0.49.1 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/exporter-trace-otlp-grpc': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/exporter-trace-otlp-http': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/exporter-trace-otlp-proto': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/exporter-zipkin': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-logs': 0.49.1(@opentelemetry/api-logs@0.49.1)(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-metrics': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-node': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.22.0 transitivePeerDependencies: - supports-color dev: false - /@opentelemetry/sdk-trace-base@1.21.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-yrElGX5Fv0umzp8Nxpta/XqU71+jCAyaLk34GmBzNcrW43nqbrqvdPs4gj4MVy/HcTjr6hifCDCYA3rMkajxxA==} + /@opentelemetry/sdk-trace-base@1.22.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-pfTuSIpCKONC6vkTpv6VmACxD+P1woZf4q0K46nSUvXFvOFqjBYKFaAMkKD3M1mlKUUh0Oajwj35qNjMl80m1Q==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.8.0' + '@opentelemetry/api': '>=1.0.0 <1.9.0' dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/semantic-conventions': 1.21.0 + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.22.0 dev: false - /@opentelemetry/sdk-trace-node@1.21.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-1pdm8jnqs+LuJ0Bvx6sNL28EhC8Rv7NYV8rnoXq3GIQo7uOHBDAFSj7makAfbakrla7ecO1FRfI8emnR4WvhYA==} + /@opentelemetry/sdk-trace-node@1.22.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-gTGquNz7ue8uMeiWPwp3CU321OstQ84r7PCDtOaCicjbJxzvO8RZMlEC4geOipTeiF88kss5n6w+//A0MhP1lQ==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.8.0' - dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/context-async-hooks': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/propagator-b3': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/propagator-jaeger': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-base': 1.21.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': '>=1.0.0 <1.9.0' + dependencies: + '@opentelemetry/api': 1.8.0 + '@opentelemetry/context-async-hooks': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/propagator-b3': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/propagator-jaeger': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.22.0(@opentelemetry/api@1.8.0) semver: 7.6.0 dev: false - /@opentelemetry/semantic-conventions@1.21.0: - resolution: {integrity: sha512-lkC8kZYntxVKr7b8xmjCVUgE0a8xgDakPyDo9uSWavXPyYqLgYYGdEd2j8NxihRyb6UwpX3G/hFUF4/9q2V+/g==} + /@opentelemetry/semantic-conventions@1.22.0: + resolution: {integrity: sha512-CAOgFOKLybd02uj/GhCdEeeBjOS0yeoDeo/CA7ASBSmenpZHAKGB3iDm/rv3BQLcabb/OprDEsSQ1y0P8A7Siw==} engines: {node: '>=14'} dev: false - /@opentelemetry/sql-common@0.40.0(@opentelemetry/api@1.7.0): + /@opentelemetry/sql-common@0.40.0(@opentelemetry/api@1.8.0): resolution: {integrity: sha512-vSqRJYUPJVjMFQpYkQS3ruexCPSZJ8esne3LazLwtCPaPRvzZ7WG3tX44RouAn7w4wMp8orKguBqtt+ng2UTnw==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.1.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) dev: false /@pkgjs/parseargs@0.11.0: @@ -2722,8 +2754,8 @@ packages: dev: false optional: true - /@polka/url@1.0.0-next.24: - resolution: {integrity: sha512-2LuNTFBIO0m7kKIQvvPHN6UE63VjpmL9rnEEaOOaiSPbZK+zUOYIzBAWcED+3XYzhYsd/0mD57VdxAEqqV52CQ==} + /@polka/url@1.0.0-next.25: + resolution: {integrity: sha512-j7P6Rgr3mmtdkeDGTe0E/aYyWEWVtc5yFXtHCRHs28/jptDEWfaVOc5T7cblqy1XKPPfCxJc/8DwQ5YgLOZOVQ==} dev: false /@protobufjs/aspromise@1.1.2: @@ -2769,8 +2801,8 @@ packages: resolution: {integrity: sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==} dev: false - /@puppeteer/browsers@2.1.0: - resolution: {integrity: sha512-xloWvocjvryHdUjDam/ZuGMh7zn4Sn3ZAaV4Ah2e2EwEt90N3XphZlSsU3n0VDc1F7kggCjMuH0UuxfPQ5mD9w==} + /@puppeteer/browsers@2.2.0: + resolution: {integrity: sha512-MC7LxpcBtdfTbzwARXIkqGZ1Osn3nnZJlm+i0+VqHl72t//Xwl9wICrXT8BwtgC6s1xJNHsxOpvzISUqe92+sw==} engines: {node: '>=18'} hasBin: true dependencies: @@ -2786,7 +2818,7 @@ packages: - supports-color dev: false - /@rollup/plugin-commonjs@25.0.7(rollup@4.12.0): + /@rollup/plugin-commonjs@25.0.7(rollup@4.13.0): resolution: {integrity: sha512-nEvcR+LRjEjsaSsc4x3XZfCCvZIaSMenZu/OiwOKGN2UhQpAYI7ru7czFvyWbErlpoGjnSX3D5Ch5FcMA3kRWQ==} engines: {node: '>=14.0.0'} peerDependencies: @@ -2795,16 +2827,16 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.12.0) + '@rollup/pluginutils': 5.1.0(rollup@4.13.0) commondir: 1.0.1 estree-walker: 2.0.2 glob: 8.1.0 is-reference: 1.2.1 - magic-string: 0.30.7 - rollup: 4.12.0 + magic-string: 0.30.8 + rollup: 4.13.0 dev: false - /@rollup/plugin-inject@5.0.5(rollup@4.12.0): + /@rollup/plugin-inject@5.0.5(rollup@4.13.0): resolution: {integrity: sha512-2+DEJbNBoPROPkgTDNe8/1YXWcqxbN5DTjASVIOx8HS+pITXushyNiBV56RB08zuptzz8gT3YfkqriTBVycepg==} engines: {node: '>=14.0.0'} peerDependencies: @@ -2813,13 +2845,13 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.12.0) + '@rollup/pluginutils': 5.1.0(rollup@4.13.0) estree-walker: 2.0.2 - magic-string: 0.30.7 - rollup: 4.12.0 + magic-string: 0.30.8 + rollup: 4.13.0 dev: false - /@rollup/plugin-json@6.1.0(rollup@4.12.0): + /@rollup/plugin-json@6.1.0(rollup@4.13.0): resolution: {integrity: sha512-EGI2te5ENk1coGeADSIwZ7G2Q8CJS2sF120T7jLw4xFw9n7wIOXHo+kIYRAoVpJAN+kmqZSoO3Fp4JtoNF4ReA==} engines: {node: '>=14.0.0'} peerDependencies: @@ -2828,11 +2860,11 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.12.0) - rollup: 4.12.0 + '@rollup/pluginutils': 5.1.0(rollup@4.13.0) + rollup: 4.13.0 dev: false - /@rollup/plugin-multi-entry@6.0.1(rollup@4.12.0): + /@rollup/plugin-multi-entry@6.0.1(rollup@4.13.0): resolution: {integrity: sha512-AXm6toPyTSfbYZWghQGbom1Uh7dHXlrGa+HoiYNhQtDUE3Q7LqoUYdVQx9E1579QWS1uOiu+cZRSE4okO7ySgw==} engines: {node: '>=14.0.0'} peerDependencies: @@ -2841,12 +2873,12 @@ packages: rollup: optional: true dependencies: - '@rollup/plugin-virtual': 3.0.2(rollup@4.12.0) + '@rollup/plugin-virtual': 3.0.2(rollup@4.13.0) matched: 5.0.1 - rollup: 4.12.0 + rollup: 4.13.0 dev: false - /@rollup/plugin-node-resolve@15.2.3(rollup@4.12.0): + /@rollup/plugin-node-resolve@15.2.3(rollup@4.13.0): resolution: {integrity: sha512-j/lym8nf5E21LwBT4Df1VD6hRO2L2iwUeUmP7litikRsVp1H6NWx20NEp0Y7su+7XGc476GnXXc4kFeZNGmaSQ==} engines: {node: '>=14.0.0'} peerDependencies: @@ -2855,16 +2887,16 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.12.0) + '@rollup/pluginutils': 5.1.0(rollup@4.13.0) '@types/resolve': 1.20.2 deepmerge: 4.3.1 is-builtin-module: 3.2.1 is-module: 1.0.0 resolve: 1.22.8 - rollup: 4.12.0 + rollup: 4.13.0 dev: false - /@rollup/plugin-virtual@3.0.2(rollup@4.12.0): + /@rollup/plugin-virtual@3.0.2(rollup@4.13.0): resolution: {integrity: sha512-10monEYsBp3scM4/ND4LNH5Rxvh3e/cVeL3jWTgZ2SrQ+BmUoQcopVQvnaMcOnykb1VkxUFuDAN+0FnpTFRy2A==} engines: {node: '>=14.0.0'} peerDependencies: @@ -2873,10 +2905,10 @@ packages: rollup: optional: true dependencies: - rollup: 4.12.0 + rollup: 4.13.0 dev: false - /@rollup/pluginutils@5.1.0(rollup@4.12.0): + /@rollup/pluginutils@5.1.0(rollup@4.13.0): resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==} engines: {node: '>=14.0.0'} peerDependencies: @@ -2888,107 +2920,107 @@ packages: '@types/estree': 1.0.5 estree-walker: 2.0.2 picomatch: 2.3.1 - rollup: 4.12.0 + rollup: 4.13.0 dev: false - /@rollup/rollup-android-arm-eabi@4.12.0: - resolution: {integrity: sha512-+ac02NL/2TCKRrJu2wffk1kZ+RyqxVUlbjSagNgPm94frxtr+XDL12E5Ll1enWskLrtrZ2r8L3wED1orIibV/w==} + /@rollup/rollup-android-arm-eabi@4.13.0: + resolution: {integrity: sha512-5ZYPOuaAqEH/W3gYsRkxQATBW3Ii1MfaT4EQstTnLKViLi2gLSQmlmtTpGucNP3sXEpOiI5tdGhjdE111ekyEg==} cpu: [arm] os: [android] requiresBuild: true dev: false optional: true - /@rollup/rollup-android-arm64@4.12.0: - resolution: {integrity: sha512-OBqcX2BMe6nvjQ0Nyp7cC90cnumt8PXmO7Dp3gfAju/6YwG0Tj74z1vKrfRz7qAv23nBcYM8BCbhrsWqO7PzQQ==} + /@rollup/rollup-android-arm64@4.13.0: + resolution: {integrity: sha512-BSbaCmn8ZadK3UAQdlauSvtaJjhlDEjS5hEVVIN3A4bbl3X+otyf/kOJV08bYiRxfejP3DXFzO2jz3G20107+Q==} cpu: [arm64] os: [android] requiresBuild: true dev: false optional: true - /@rollup/rollup-darwin-arm64@4.12.0: - resolution: {integrity: sha512-X64tZd8dRE/QTrBIEs63kaOBG0b5GVEd3ccoLtyf6IdXtHdh8h+I56C2yC3PtC9Ucnv0CpNFJLqKFVgCYe0lOQ==} + /@rollup/rollup-darwin-arm64@4.13.0: + resolution: {integrity: sha512-Ovf2evVaP6sW5Ut0GHyUSOqA6tVKfrTHddtmxGQc1CTQa1Cw3/KMCDEEICZBbyppcwnhMwcDce9ZRxdWRpVd6g==} cpu: [arm64] os: [darwin] requiresBuild: true dev: false optional: true - /@rollup/rollup-darwin-x64@4.12.0: - resolution: {integrity: sha512-cc71KUZoVbUJmGP2cOuiZ9HSOP14AzBAThn3OU+9LcA1+IUqswJyR1cAJj3Mg55HbjZP6OLAIscbQsQLrpgTOg==} + /@rollup/rollup-darwin-x64@4.13.0: + resolution: {integrity: sha512-U+Jcxm89UTK592vZ2J9st9ajRv/hrwHdnvyuJpa5A2ngGSVHypigidkQJP+YiGL6JODiUeMzkqQzbCG3At81Gg==} cpu: [x64] os: [darwin] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-arm-gnueabihf@4.12.0: - resolution: {integrity: sha512-a6w/Y3hyyO6GlpKL2xJ4IOh/7d+APaqLYdMf86xnczU3nurFTaVN9s9jOXQg97BE4nYm/7Ga51rjec5nfRdrvA==} + /@rollup/rollup-linux-arm-gnueabihf@4.13.0: + resolution: {integrity: sha512-8wZidaUJUTIR5T4vRS22VkSMOVooG0F4N+JSwQXWSRiC6yfEsFMLTYRFHvby5mFFuExHa/yAp9juSphQQJAijQ==} cpu: [arm] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-arm64-gnu@4.12.0: - resolution: {integrity: sha512-0fZBq27b+D7Ar5CQMofVN8sggOVhEtzFUwOwPppQt0k+VR+7UHMZZY4y+64WJ06XOhBTKXtQB/Sv0NwQMXyNAA==} + /@rollup/rollup-linux-arm64-gnu@4.13.0: + resolution: {integrity: sha512-Iu0Kno1vrD7zHQDxOmvweqLkAzjxEVqNhUIXBsZ8hu8Oak7/5VTPrxOEZXYC1nmrBVJp0ZcL2E7lSuuOVaE3+w==} cpu: [arm64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-arm64-musl@4.12.0: - resolution: {integrity: sha512-eTvzUS3hhhlgeAv6bfigekzWZjaEX9xP9HhxB0Dvrdbkk5w/b+1Sxct2ZuDxNJKzsRStSq1EaEkVSEe7A7ipgQ==} + /@rollup/rollup-linux-arm64-musl@4.13.0: + resolution: {integrity: sha512-C31QrW47llgVyrRjIwiOwsHFcaIwmkKi3PCroQY5aVq4H0A5v/vVVAtFsI1nfBngtoRpeREvZOkIhmRwUKkAdw==} cpu: [arm64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-riscv64-gnu@4.12.0: - resolution: {integrity: sha512-ix+qAB9qmrCRiaO71VFfY8rkiAZJL8zQRXveS27HS+pKdjwUfEhqo2+YF2oI+H/22Xsiski+qqwIBxVewLK7sw==} + /@rollup/rollup-linux-riscv64-gnu@4.13.0: + resolution: {integrity: sha512-Oq90dtMHvthFOPMl7pt7KmxzX7E71AfyIhh+cPhLY9oko97Zf2C9tt/XJD4RgxhaGeAraAXDtqxvKE1y/j35lA==} cpu: [riscv64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-x64-gnu@4.12.0: - resolution: {integrity: sha512-TenQhZVOtw/3qKOPa7d+QgkeM6xY0LtwzR8OplmyL5LrgTWIXpTQg2Q2ycBf8jm+SFW2Wt/DTn1gf7nFp3ssVA==} + /@rollup/rollup-linux-x64-gnu@4.13.0: + resolution: {integrity: sha512-yUD/8wMffnTKuiIsl6xU+4IA8UNhQ/f1sAnQebmE/lyQ8abjsVyDkyRkWop0kdMhKMprpNIhPmYlCxgHrPoXoA==} cpu: [x64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-x64-musl@4.12.0: - resolution: {integrity: sha512-LfFdRhNnW0zdMvdCb5FNuWlls2WbbSridJvxOvYWgSBOYZtgBfW9UGNJG//rwMqTX1xQE9BAodvMH9tAusKDUw==} + /@rollup/rollup-linux-x64-musl@4.13.0: + resolution: {integrity: sha512-9RyNqoFNdF0vu/qqX63fKotBh43fJQeYC98hCaf89DYQpv+xu0D8QFSOS0biA7cGuqJFOc1bJ+m2rhhsKcw1hw==} cpu: [x64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-win32-arm64-msvc@4.12.0: - resolution: {integrity: sha512-JPDxovheWNp6d7AHCgsUlkuCKvtu3RB55iNEkaQcf0ttsDU/JZF+iQnYcQJSk/7PtT4mjjVG8N1kpwnI9SLYaw==} + /@rollup/rollup-win32-arm64-msvc@4.13.0: + resolution: {integrity: sha512-46ue8ymtm/5PUU6pCvjlic0z82qWkxv54GTJZgHrQUuZnVH+tvvSP0LsozIDsCBFO4VjJ13N68wqrKSeScUKdA==} cpu: [arm64] os: [win32] requiresBuild: true dev: false optional: true - /@rollup/rollup-win32-ia32-msvc@4.12.0: - resolution: {integrity: sha512-fjtuvMWRGJn1oZacG8IPnzIV6GF2/XG+h71FKn76OYFqySXInJtseAqdprVTDTyqPxQOG9Exak5/E9Z3+EJ8ZA==} + /@rollup/rollup-win32-ia32-msvc@4.13.0: + resolution: {integrity: sha512-P5/MqLdLSlqxbeuJ3YDeX37srC8mCflSyTrUsgbU1c/U9j6l2g2GiIdYaGD9QjdMQPMSgYm7hgg0551wHyIluw==} cpu: [ia32] os: [win32] requiresBuild: true dev: false optional: true - /@rollup/rollup-win32-x64-msvc@4.12.0: - resolution: {integrity: sha512-ZYmr5mS2wd4Dew/JjT0Fqi2NPB/ZhZ2VvPp7SmvPZb4Y1CG/LRcS6tcRo2cYU7zLK5A7cdbhWnnWmUjoI4qapg==} + /@rollup/rollup-win32-x64-msvc@4.13.0: + resolution: {integrity: sha512-UKXUQNbO3DOhzLRwHSpa0HnhhCgNODvfoPWv2FCXme8N/ANFfhIPMGuOT+QuKd16+B5yxZ0HdpNlqPvTMS1qfw==} cpu: [x64] os: [win32] requiresBuild: true @@ -3013,7 +3045,7 @@ packages: z-schema: 5.0.5 dev: false - /@rushstack/node-core-library@4.0.2(@types/node@16.18.83): + /@rushstack/node-core-library@4.0.2(@types/node@16.18.89): resolution: {integrity: sha512-hyES82QVpkfQMeBMteQUnrhASL/KHPhd7iJ8euduwNJG4mu2GSOKybf0rOEjOm1Wz7CwJEUm9y0yD7jg2C1bfg==} peerDependencies: '@types/node': '*' @@ -3021,7 +3053,7 @@ packages: '@types/node': optional: true dependencies: - '@types/node': 16.18.83 + '@types/node': 16.18.89 fs-extra: 7.0.1 import-lazy: 4.0.0 jju: 1.4.0 @@ -3030,7 +3062,7 @@ packages: z-schema: 5.0.5 dev: false - /@rushstack/node-core-library@4.0.2(@types/node@18.19.18): + /@rushstack/node-core-library@4.0.2(@types/node@18.19.24): resolution: {integrity: sha512-hyES82QVpkfQMeBMteQUnrhASL/KHPhd7iJ8euduwNJG4mu2GSOKybf0rOEjOm1Wz7CwJEUm9y0yD7jg2C1bfg==} peerDependencies: '@types/node': '*' @@ -3038,7 +3070,7 @@ packages: '@types/node': optional: true dependencies: - '@types/node': 18.19.18 + '@types/node': 18.19.24 fs-extra: 7.0.1 import-lazy: 4.0.0 jju: 1.4.0 @@ -3061,7 +3093,7 @@ packages: strip-json-comments: 3.1.1 dev: false - /@rushstack/terminal@0.10.0(@types/node@16.18.83): + /@rushstack/terminal@0.10.0(@types/node@16.18.89): resolution: {integrity: sha512-UbELbXnUdc7EKwfH2sb8ChqNgapUOdqcCIdQP4NGxBpTZV2sQyeekuK3zmfQSa/MN+/7b4kBogl2wq0vpkpYGw==} peerDependencies: '@types/node': '*' @@ -3069,12 +3101,12 @@ packages: '@types/node': optional: true dependencies: - '@rushstack/node-core-library': 4.0.2(@types/node@16.18.83) - '@types/node': 16.18.83 + '@rushstack/node-core-library': 4.0.2(@types/node@16.18.89) + '@types/node': 16.18.89 supports-color: 8.1.1 dev: false - /@rushstack/terminal@0.10.0(@types/node@18.19.18): + /@rushstack/terminal@0.10.0(@types/node@18.19.24): resolution: {integrity: sha512-UbELbXnUdc7EKwfH2sb8ChqNgapUOdqcCIdQP4NGxBpTZV2sQyeekuK3zmfQSa/MN+/7b4kBogl2wq0vpkpYGw==} peerDependencies: '@types/node': '*' @@ -3082,8 +3114,8 @@ packages: '@types/node': optional: true dependencies: - '@rushstack/node-core-library': 4.0.2(@types/node@18.19.18) - '@types/node': 18.19.18 + '@rushstack/node-core-library': 4.0.2(@types/node@18.19.24) + '@types/node': 18.19.24 supports-color: 8.1.1 dev: false @@ -3096,10 +3128,10 @@ packages: string-argv: 0.3.2 dev: false - /@rushstack/ts-command-line@4.17.4(@types/node@16.18.83): - resolution: {integrity: sha512-XPQQDaxgFqRHFRgt7jjCKnr0vrC75s/+ISU6kGhWpDlGzWl4vig6ZfZTs3HgM6Kh1Bb3wUKSyKQOV+G36cyZfg==} + /@rushstack/ts-command-line@4.19.1(@types/node@16.18.89): + resolution: {integrity: sha512-J7H768dgcpG60d7skZ5uSSwyCZs/S2HrWP1Ds8d1qYAyaaeJmpmmLr9BVw97RjFzmQPOYnoXcKA4GkqDCkduQg==} dependencies: - '@rushstack/terminal': 0.10.0(@types/node@16.18.83) + '@rushstack/terminal': 0.10.0(@types/node@16.18.89) '@types/argparse': 1.0.38 argparse: 1.0.10 string-argv: 0.3.2 @@ -3107,10 +3139,10 @@ packages: - '@types/node' dev: false - /@rushstack/ts-command-line@4.17.4(@types/node@18.19.18): - resolution: {integrity: sha512-XPQQDaxgFqRHFRgt7jjCKnr0vrC75s/+ISU6kGhWpDlGzWl4vig6ZfZTs3HgM6Kh1Bb3wUKSyKQOV+G36cyZfg==} + /@rushstack/ts-command-line@4.19.1(@types/node@18.19.24): + resolution: {integrity: sha512-J7H768dgcpG60d7skZ5uSSwyCZs/S2HrWP1Ds8d1qYAyaaeJmpmmLr9BVw97RjFzmQPOYnoXcKA4GkqDCkduQg==} dependencies: - '@rushstack/terminal': 0.10.0(@types/node@18.19.18) + '@rushstack/terminal': 0.10.0(@types/node@18.19.24) '@types/argparse': 1.0.38 argparse: 1.0.10 string-argv: 0.3.2 @@ -3156,17 +3188,12 @@ packages: resolution: {integrity: sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg==} dev: false - /@tootallnate/once@2.0.0: - resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==} - engines: {node: '>= 10'} - dev: false - /@tootallnate/quickjs-emscripten@0.23.0: resolution: {integrity: sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==} dev: false - /@ts-morph/common@0.22.0: - resolution: {integrity: sha512-HqNBuV/oIlMKdkLshXd1zKBqNQCsuPEsgQOkfFQ/eUKjRlwndXW1AjN9LVkBEIukm00gGXSRmfkl0Wv5VXLnlw==} + /@ts-morph/common@0.23.0: + resolution: {integrity: sha512-m7Lllj9n/S6sOkCkRftpM7L24uvmfXQFedlW/4hENcuJH1HHm9u5EgxZb9uVjQSCGrbBWBkOGgcTxNg36r6ywA==} dependencies: fast-glob: 3.3.2 minimatch: 9.0.3 @@ -3208,13 +3235,13 @@ packages: resolution: {integrity: sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==} dependencies: '@types/connect': 3.4.38 - '@types/node': 20.10.8 + '@types/node': 18.19.24 dev: false /@types/bunyan@1.8.9: resolution: {integrity: sha512-ZqS9JGpBxVOvsawzmVt30sP++gSQMTejCkIAQ3VdadOcRE8izTyW66hufvwLeH+YEGP6Js2AW7Gz+RMyvrEbmw==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.24 dev: false /@types/chai-as-promised@7.1.8: @@ -3236,7 +3263,7 @@ packages: /@types/connect@3.4.38: resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.24 dev: false /@types/cookie@0.4.1: @@ -3246,7 +3273,7 @@ packages: /@types/cors@2.8.17: resolution: {integrity: sha512-8CGDvrBj1zgo2qE+oS3pOCyYNqCPryMWY2bGfwA0dcfopWGgxs+78df0Rs3rc9THP4JkOhLsAa+15VdpAqkcUA==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.24 dev: false /@types/debug@4.1.12: @@ -3258,7 +3285,7 @@ packages: /@types/decompress@4.2.7: resolution: {integrity: sha512-9z+8yjKr5Wn73Pt17/ldnmQToaFHZxK0N1GHysuk/JIPT8RIdQeoInM01wWPgypRcvb6VH1drjuFpQ4zmY437g==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.24 dev: false /@types/eslint@8.44.9: @@ -3275,8 +3302,8 @@ packages: /@types/express-serve-static-core@4.17.43: resolution: {integrity: sha512-oaYtiBirUOPQGSWNGPWnzyAFJ0BP3cwvN4oWZQY+zUBwpVIGsKUkpBpSztp74drYcjavs7SKFZ4DX1V2QeN8rg==} dependencies: - '@types/node': 20.10.8 - '@types/qs': 6.9.11 + '@types/node': 18.19.24 + '@types/qs': 6.9.12 '@types/range-parser': 1.2.7 '@types/send': 0.17.4 dev: false @@ -3286,7 +3313,7 @@ packages: dependencies: '@types/body-parser': 1.19.5 '@types/express-serve-static-core': 4.17.43 - '@types/qs': 6.9.11 + '@types/qs': 6.9.12 '@types/serve-static': 1.15.5 dev: false @@ -3294,19 +3321,19 @@ packages: resolution: {integrity: sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==} dependencies: '@types/jsonfile': 6.1.4 - '@types/node': 20.10.8 + '@types/node': 18.19.24 dev: false /@types/fs-extra@8.1.5: resolution: {integrity: sha512-0dzKcwO+S8s2kuF5Z9oUWatQJj5Uq/iqphEtE3GQJVRRYm/tD1LglU2UnXi2A8jLq5umkGouOXOR9y0n613ZwQ==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.24 dev: false /@types/fs-extra@9.0.13: resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==} dependencies: - '@types/node': 18.19.18 + '@types/node': 18.19.24 dev: false /@types/http-errors@2.0.4: @@ -3323,7 +3350,7 @@ packages: /@types/is-buffer@2.0.2: resolution: {integrity: sha512-G6OXy83Va+xEo8XgqAJYOuvOMxeey9xM5XKkvwJNmN8rVdcB+r15HvHsG86hl86JvU0y1aa7Z2ERkNFYWw9ySg==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.24 dev: false /@types/istanbul-lib-coverage@2.0.6: @@ -3341,19 +3368,19 @@ packages: /@types/jsonfile@6.1.4: resolution: {integrity: sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.24 dev: false - /@types/jsonwebtoken@9.0.5: - resolution: {integrity: sha512-VRLSGzik+Unrup6BsouBeHsf4d1hOEgYWTm/7Nmw1sXoN1+tRly/Gy/po3yeahnP4jfnQWWAhQAqcNfH7ngOkA==} + /@types/jsonwebtoken@9.0.6: + resolution: {integrity: sha512-/5hndP5dCjloafCXns6SZyESp3Ldq7YjH3zwzwczYnjxIT0Fqzk5ROSYVGfFyczIue7IUEj8hkvLbPoLQ18vQw==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.24 dev: false /@types/jws@3.2.9: resolution: {integrity: sha512-xAqC7PI7QSBY3fXV1f2pbcdbBFoR4dF8+lH2z6MfZQVcGe14twYVfjzJ3CHhLS1NHxE+DnjUR5xaHu2/U9GGaQ==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.24 dev: false /@types/linkify-it@3.0.5: @@ -3404,22 +3431,22 @@ packages: /@types/mysql@2.15.22: resolution: {integrity: sha512-wK1pzsJVVAjYCSZWQoWHziQZbNggXFDUEIGf54g4ZM/ERuP86uGdWeKZWMYlqTPMZfHJJvLPyogXGvCOg87yLQ==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.24 dev: false /@types/node-fetch@2.6.11: resolution: {integrity: sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.24 form-data: 4.0.0 dev: false - /@types/node@16.18.83: - resolution: {integrity: sha512-TmBqzDY/GeCEmLob/31SunOQnqYE3ZiiuEh1U9o3HqE1E2cqKZQA5RQg4krEguCY3StnkXyDmCny75qyFLx/rA==} + /@types/node@16.18.89: + resolution: {integrity: sha512-QlrE8QI5z62nfnkiUZysUsAaxWaTMoGqFVcB3PvK1WxJ0c699bacErV4Fabe9Hki6ZnaHalgzihLbTl2d34XfQ==} dev: false - /@types/node@18.19.18: - resolution: {integrity: sha512-80CP7B8y4PzZF0GWx15/gVWRrB5y/bIjNI84NK3cmQJu0WZwvmj2WMA5LcofQFVfLqqCSp545+U2LsrVzX36Zg==} + /@types/node@18.19.24: + resolution: {integrity: sha512-eghAz3gnbQbvnHqB+mgB2ZR3aH6RhdEmHGS48BnV75KceQPHqabkxKI0BbUSsqhqy2Ddhc2xD/VAR9ySZd57Lw==} dependencies: undici-types: 5.26.5 dev: false @@ -3443,7 +3470,7 @@ packages: /@types/pg@8.6.1: resolution: {integrity: sha512-1Kc4oAGzAl7uqUStZCDvaLFqZrW9qWSjXOmBfdgyBP5La7Us6Mg4GBvRlSoaZMhQF/zSj1C8CtKMBkoiT8eL8w==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.24 pg-protocol: 1.6.0 pg-types: 2.2.0 dev: false @@ -3452,8 +3479,8 @@ packages: resolution: {integrity: sha512-LqAAiGnUqQvBZW0hTGl0pIaL+UeN7KvcxkLyt8+H++WBA1hucdu463mVfGCXmXvJ+uGyW3SyCyW0D6ANNcmB6g==} dev: false - /@types/qs@6.9.11: - resolution: {integrity: sha512-oGk0gmhnEJK4Yyk+oI7EfXsLayXatCWPHary1MtcmbAifkobT9cM9yutG/hZKIseOU0MqbIwQ/u2nn/Gb+ltuQ==} + /@types/qs@6.9.12: + resolution: {integrity: sha512-bZcOkJ6uWrL0Qb2NAWKa7TBU+mJHPzhx9jjLL1KHF+XpzEcR7EXHvjbHlGtR/IsP1vyPrehuS6XqkmaePy//mg==} dev: false /@types/range-parser@1.2.7: @@ -3463,7 +3490,7 @@ packages: /@types/readdir-glob@1.1.5: resolution: {integrity: sha512-raiuEPUYqXu+nvtY2Pe8s8FEmZ3x5yAH4VkLdihcPdalvsHltomrRC9BzuStrJ9yk06470hS0Crw0f1pXqD+Hg==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.24 dev: false /@types/resolve@1.20.2: @@ -3482,7 +3509,7 @@ packages: resolution: {integrity: sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==} dependencies: '@types/mime': 1.3.5 - '@types/node': 20.10.8 + '@types/node': 18.19.24 dev: false /@types/serve-static@1.15.5: @@ -3490,7 +3517,7 @@ packages: dependencies: '@types/http-errors': 2.0.4 '@types/mime': 3.0.4 - '@types/node': 20.10.8 + '@types/node': 18.19.24 dev: false /@types/shimmer@1.0.5: @@ -3510,13 +3537,13 @@ packages: /@types/stoppable@1.1.3: resolution: {integrity: sha512-7wGKIBJGE4ZxFjk9NkjAxZMLlIXroETqP1FJCdoSvKmEznwmBxQFmTB1dsCkAvVcNemuSZM5qkkd9HE/NL2JTw==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.24 dev: false /@types/through@0.0.33: resolution: {integrity: sha512-HsJ+z3QuETzP3cswwtzt2vEIiHBk/dCcHGhbmG5X3ecnwFD/lPrMpliGXxSCg03L9AhrdwA4Oz/qfspkDW+xGQ==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.24 dev: false /@types/trusted-types@2.0.7: @@ -3526,7 +3553,7 @@ packages: /@types/tunnel@0.0.3: resolution: {integrity: sha512-sOUTGn6h1SfQ+gbgqC364jLFBw2lnFqkgF3q0WovEHRLMrVD1sd5aufqi/aJObLekJO+Aq5z646U4Oxy6shXMA==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.24 dev: false /@types/underscore@1.11.15: @@ -3544,13 +3571,13 @@ packages: /@types/ws@7.4.7: resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.24 dev: false /@types/ws@8.5.10: resolution: {integrity: sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.24 dev: false /@types/wtfnode@0.7.2: @@ -3571,7 +3598,7 @@ packages: resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} requiresBuild: true dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.24 dev: false optional: true @@ -3722,12 +3749,12 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: false - /@vitest/browser@1.3.1(playwright@1.41.2)(vitest@1.3.1): - resolution: {integrity: sha512-pRof8G8nqRWwg3ouyIctyhfIVk5jXgF056uF//sqdi37+pVtDz9kBI/RMu0xlc8tgCyJ2aEMfbgJZPUydlEVaQ==} + /@vitest/browser@1.4.0(playwright@1.42.1)(vitest@1.4.0): + resolution: {integrity: sha512-kC44DzuqPZZrqe2P7SX2a3zHDAt919WtpkUMAxzv9eP5uPfVXtpk2Ipms2NXJGY5190aJc1uY+ambfJ3rwDJRA==} peerDependencies: playwright: '*' safaridriver: '*' - vitest: 1.3.1 + vitest: 1.4.0 webdriverio: '*' peerDependenciesMeta: playwright: @@ -3737,64 +3764,64 @@ packages: webdriverio: optional: true dependencies: - '@vitest/utils': 1.3.1 - magic-string: 0.30.7 - playwright: 1.41.2 + '@vitest/utils': 1.4.0 + magic-string: 0.30.8 + playwright: 1.42.1 sirv: 2.0.4 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) dev: false - /@vitest/coverage-istanbul@1.3.1(vitest@1.3.1): - resolution: {integrity: sha512-aBVgQ2eY9gzrxBJjGKbWgatTU2w1CacEx0n8OMctPzl9836KqoM5X/WigJpjM7wZEtX2N0ZTE5KDGPmVM+o2Wg==} + /@vitest/coverage-istanbul@1.4.0(vitest@1.4.0): + resolution: {integrity: sha512-39TjURYyAY6CLDx8M1RNYGoAuWicPWoofk+demJbAZROLCwUgGPgMRSg51GN+snbmQRTpSizuS9XC3cMSdQH2Q==} peerDependencies: - vitest: 1.3.1 + vitest: 1.4.0 dependencies: debug: 4.3.4(supports-color@8.1.1) istanbul-lib-coverage: 3.2.2 istanbul-lib-instrument: 6.0.2 istanbul-lib-report: 3.0.1 - istanbul-lib-source-maps: 4.0.1 + istanbul-lib-source-maps: 5.0.4 istanbul-reports: 3.1.7 magicast: 0.3.3 picocolors: 1.0.0 test-exclude: 6.0.0 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - supports-color dev: false - /@vitest/expect@1.3.1: - resolution: {integrity: sha512-xofQFwIzfdmLLlHa6ag0dPV8YsnKOCP1KdAeVVh34vSjN2dcUiXYCD9htu/9eM7t8Xln4v03U9HLxLpPlsXdZw==} + /@vitest/expect@1.4.0: + resolution: {integrity: sha512-Jths0sWCJZ8BxjKe+p+eKsoqev1/T8lYcrjavEaz8auEJ4jAVY0GwW3JKmdVU4mmNPLPHixh4GNXP7GFtAiDHA==} dependencies: - '@vitest/spy': 1.3.1 - '@vitest/utils': 1.3.1 + '@vitest/spy': 1.4.0 + '@vitest/utils': 1.4.0 chai: 4.3.10 dev: false - /@vitest/runner@1.3.1: - resolution: {integrity: sha512-5FzF9c3jG/z5bgCnjr8j9LNq/9OxV2uEBAITOXfoe3rdZJTdO7jzThth7FXv/6b+kdY65tpRQB7WaKhNZwX+Kg==} + /@vitest/runner@1.4.0: + resolution: {integrity: sha512-EDYVSmesqlQ4RD2VvWo3hQgTJ7ZrFQ2VSJdfiJiArkCerDAGeyF1i6dHkmySqk573jLp6d/cfqCN+7wUB5tLgg==} dependencies: - '@vitest/utils': 1.3.1 + '@vitest/utils': 1.4.0 p-limit: 5.0.0 pathe: 1.1.2 dev: false - /@vitest/snapshot@1.3.1: - resolution: {integrity: sha512-EF++BZbt6RZmOlE3SuTPu/NfwBF6q4ABS37HHXzs2LUVPBLx2QoY/K0fKpRChSo8eLiuxcbCVfqKgx/dplCDuQ==} + /@vitest/snapshot@1.4.0: + resolution: {integrity: sha512-saAFnt5pPIA5qDGxOHxJ/XxhMFKkUSBJmVt5VgDsAqPTX6JP326r5C/c9UuCMPoXNzuudTPsYDZCoJ5ilpqG2A==} dependencies: - magic-string: 0.30.7 + magic-string: 0.30.8 pathe: 1.1.2 pretty-format: 29.7.0 dev: false - /@vitest/spy@1.3.1: - resolution: {integrity: sha512-xAcW+S099ylC9VLU7eZfdT9myV67Nor9w9zhf0mGCYJSO+zM2839tOeROTdikOi/8Qeusffvxb/MyBSOja1Uig==} + /@vitest/spy@1.4.0: + resolution: {integrity: sha512-Ywau/Qs1DzM/8Uc+yA77CwSegizMlcgTJuYGAi0jujOteJOUf1ujunHThYo243KG9nAyWT3L9ifPYZ5+As/+6Q==} dependencies: tinyspy: 2.2.1 dev: false - /@vitest/utils@1.3.1: - resolution: {integrity: sha512-d3Waie/299qqRyHTm2DjADeTaNdNSVsnwHPWrs20JMpjh6eiVq7ggggweO8rc4arhf6rRkWuHKwvxGvejUXZZQ==} + /@vitest/utils@1.4.0: + resolution: {integrity: sha512-mx3Yd1/6e2Vt/PUC98DcqTirtfxUyAZ32uK82r8rZzbtBeBo+nqgnjx/LvqQdWsrvNtm14VmurNgcf4nqY5gJg==} dependencies: diff-sequences: 29.6.3 estree-walker: 3.0.3 @@ -3844,15 +3871,6 @@ packages: hasBin: true dev: false - /agent-base@6.0.2: - resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==} - engines: {node: '>= 6.0.0'} - dependencies: - debug: 4.3.4(supports-color@8.1.1) - transitivePeerDependencies: - - supports-color - dev: false - /agent-base@7.1.0: resolution: {integrity: sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==} engines: {node: '>= 14'} @@ -3954,29 +3972,30 @@ packages: default-require-extensions: 3.0.1 dev: false - /archiver-utils@5.0.1: - resolution: {integrity: sha512-MMAoLdMvT/nckofX1tCLrf7uJce4jTNkiT6smA2u57AOImc1nce7mR3EDujxL5yv6/MnILuQH4sAsPtDS8kTvg==} + /archiver-utils@5.0.2: + resolution: {integrity: sha512-wuLJMmIBQYCsGZgYLTy5FIB2pF6Lfb6cXMSF8Qywwk3t20zWnAi7zLcQFdKQmIB8wyZpY5ER38x08GbwtR2cLA==} engines: {node: '>= 14'} dependencies: glob: 10.3.10 graceful-fs: 4.2.11 + is-stream: 2.0.1 lazystream: 1.0.1 lodash: 4.17.21 normalize-path: 3.0.0 - readable-stream: 3.6.2 + readable-stream: 4.5.2 dev: false - /archiver@7.0.0: - resolution: {integrity: sha512-R9HM9egs8FfktSqUqyjlKmvF4U+CWNqm/2tlROV+lOFg79MLdT67ae1l3hU47pGy8twSXxHoiefMCh43w0BriQ==} + /archiver@7.0.1: + resolution: {integrity: sha512-ZcbTaIqJOfCc03QwD468Unz/5Ir8ATtvAHsK+FdXbDIbGfihqh9mrvdcYunQzqn4HrvWWaFyaxJhGZagaJJpPQ==} engines: {node: '>= 14'} dependencies: - archiver-utils: 5.0.1 + archiver-utils: 5.0.2 async: 3.2.5 buffer-crc32: 1.0.0 readable-stream: 4.5.2 readdir-glob: 1.1.3 tar-stream: 3.1.7 - zip-stream: 6.0.0 + zip-stream: 6.0.1 dev: false /archy@1.0.0: @@ -4015,7 +4034,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.22.5 get-intrinsic: 1.2.4 is-string: 1.0.7 dev: false @@ -4031,7 +4050,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.22.5 es-array-method-boxes-properly: 1.0.0 is-string: 1.0.7 dev: false @@ -4042,7 +4061,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.22.5 es-errors: 1.3.0 es-shim-unscopables: 1.0.2 dev: false @@ -4053,7 +4072,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.22.5 es-shim-unscopables: 1.0.2 dev: false @@ -4063,7 +4082,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.22.5 es-shim-unscopables: 1.0.2 dev: false @@ -4074,7 +4093,7 @@ packages: array-buffer-byte-length: 1.0.1 call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.22.5 es-errors: 1.3.0 get-intrinsic: 1.2.4 is-array-buffer: 3.0.4 @@ -4131,25 +4150,25 @@ packages: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} dev: false - /bare-events@2.2.0: - resolution: {integrity: sha512-Yyyqff4PIFfSuthCZqLlPISTWHmnQxoPuAvkmgzsJEmG3CesdIv6Xweayl0JkCZJSB2yYIdJyEz97tpxNhgjbg==} + /bare-events@2.2.1: + resolution: {integrity: sha512-9GYPpsPFvrWBkelIhOhTWtkeZxVxZOdb3VnFTCzlOo3OjvmTvzLoZFUT8kNFACx0vJej6QPney1Cf9BvzCNE/A==} requiresBuild: true dev: false optional: true - /bare-fs@2.2.0: - resolution: {integrity: sha512-+VhW202E9eTVGkX7p+TNXtZC4RTzj9JfJW7PtfIbZ7mIQ/QT9uOafQTx7lx2n9ERmWsXvLHF4hStAFn4gl2mQw==} + /bare-fs@2.2.2: + resolution: {integrity: sha512-X9IqgvyB0/VA5OZJyb5ZstoN62AzD7YxVGog13kkfYWYqJYcK0kcqLZ6TrmH5qr4/8//ejVcX4x/a0UvaogXmA==} requiresBuild: true dependencies: - bare-events: 2.2.0 - bare-os: 2.2.0 + bare-events: 2.2.1 + bare-os: 2.2.1 bare-path: 2.1.0 streamx: 2.16.1 dev: false optional: true - /bare-os@2.2.0: - resolution: {integrity: sha512-hD0rOPfYWOMpVirTACt4/nK8mC55La12K5fY1ij8HAdfQakD62M+H4o4tpfKzVGLgRDTuk3vjA4GqGXXCeFbag==} + /bare-os@2.2.1: + resolution: {integrity: sha512-OwPyHgBBMkhC29Hl3O4/YfxW9n7mdTr2+SsO29XBWKKJsbgj3mnorDB80r5TiCQgQstgE5ga1qNYrpes6NvX2w==} requiresBuild: true dev: false optional: true @@ -4158,7 +4177,7 @@ packages: resolution: {integrity: sha512-DIIg7ts8bdRKwJRJrUMy/PICEaQZaPGZ26lsSx9MJSwIhSrcdHn7/C8W+XmnG/rKi6BaRcz+JO00CjZteybDtw==} requiresBuild: true dependencies: - bare-os: 2.2.0 + bare-os: 2.2.1 dev: false optional: true @@ -4171,13 +4190,13 @@ packages: engines: {node: ^4.5.0 || >= 5.9} dev: false - /basic-ftp@5.0.4: - resolution: {integrity: sha512-8PzkB0arJFV4jJWSGOYR+OEic6aeKMu/osRhBULN6RY0ykby6LKhbmuQ5ublvaas5BOwboah5D87nrHyuh8PPA==} + /basic-ftp@5.0.5: + resolution: {integrity: sha512-4Bcg1P8xhUuqcii/S0Z9wiHIrQVPMermM1any+MX5GeGD7faD3/msQUDGLol9wOcz4/jbg/WJnGqoJF6LiBdtg==} engines: {node: '>=10.0.0'} dev: false - /binary-extensions@2.2.0: - resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==} + /binary-extensions@2.3.0: + resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} engines: {node: '>=8'} dev: false @@ -4200,24 +4219,6 @@ packages: resolution: {integrity: sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==} dev: false - /body-parser@1.20.1: - resolution: {integrity: sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==} - engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} - dependencies: - bytes: 3.1.2 - content-type: 1.0.5 - debug: 2.6.9 - depd: 2.0.0 - destroy: 1.2.0 - http-errors: 2.0.0 - iconv-lite: 0.4.24 - on-finished: 2.4.1 - qs: 6.11.0 - raw-body: 2.5.1 - type-is: 1.6.18 - unpipe: 1.0.0 - dev: false - /body-parser@1.20.2: resolution: {integrity: sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==} engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} @@ -4265,8 +4266,8 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true dependencies: - caniuse-lite: 1.0.30001589 - electron-to-chromium: 1.4.681 + caniuse-lite: 1.0.30001599 + electron-to-chromium: 1.4.708 node-releases: 2.0.14 update-browserslist-db: 1.0.13(browserslist@4.23.0) dev: false @@ -4369,7 +4370,7 @@ packages: es-errors: 1.3.0 function-bind: 1.1.2 get-intrinsic: 1.2.4 - set-function-length: 1.2.1 + set-function-length: 1.2.2 dev: false /callsites@3.1.0: @@ -4387,8 +4388,8 @@ packages: engines: {node: '>=10'} dev: false - /caniuse-lite@1.0.30001589: - resolution: {integrity: sha512-vNQWS6kI+q6sBlHbh71IIeC+sRwK2N3EDySc/updIGhIee2x5z00J4c1242/5/d6EpEMdOnk/m+6tuk4/tcsqg==} + /caniuse-lite@1.0.30001599: + resolution: {integrity: sha512-LRAQHZ4yT1+f9LemSMeqdMpMxZcc4RMWdj4tiFe3G8tNkWK+E58g+/tzotb5cU6TbcVJLr4fySiAW7XmxQvZQA==} dev: false /catharsis@0.9.0: @@ -4515,14 +4516,15 @@ packages: resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==} dev: false - /chromium-bidi@0.5.10(devtools-protocol@0.0.1249869): - resolution: {integrity: sha512-4hsPE1VaLLM/sgNK/SlLbI24Ra7ZOuWAjA3rhw1lVCZ8ZiUgccS6cL5L/iqo4hjRcl5vwgYJ8xTtbXdulA9b6Q==} + /chromium-bidi@0.5.13(devtools-protocol@0.0.1249869): + resolution: {integrity: sha512-OHbYCetDxdW/xmlrafgOiLsIrw4Sp1BEeolbZ1UGJO5v/nekQOJBj/Kzyw6sqKcAVabUTo0GS3cTYgr6zIf00g==} peerDependencies: devtools-protocol: '*' dependencies: devtools-protocol: 0.0.1249869 mitt: 3.0.1 urlpattern-polyfill: 10.0.0 + zod: 3.22.4 dev: false /cjs-module-lexer@1.2.3: @@ -4581,8 +4583,8 @@ packages: engines: {node: '>=0.8'} dev: false - /code-block-writer@12.0.0: - resolution: {integrity: sha512-q4dMFMlXtKR3XNBHyMHt/3pwYNA69EDk00lloMOaaUMKPUXBw6lpXtbu3MMVG6/uOihGnRDOlkyqsONEUj60+w==} + /code-block-writer@13.0.1: + resolution: {integrity: sha512-c5or4P6erEA69TxaxTNcHUNcIn+oyxSRTOWV+pSYF+z4epXqNvwvJ70XPGjPNgue83oAFAPBRQYwpAJ/Hpe/Sg==} dev: false /color-convert@1.9.3: @@ -4633,12 +4635,13 @@ packages: resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==} dev: false - /compress-commons@6.0.1: - resolution: {integrity: sha512-l7occIJn8YwlCEbWUCrG6gPms9qnJTCZSaznCa5HaV+yJMH4kM8BDc7q9NyoQuoiB2O6jKgTcTeY462qw6MyHw==} + /compress-commons@6.0.2: + resolution: {integrity: sha512-6FqVXeETqWPoGcfzrXb37E50NP0LXT8kAMu5ooZayhWWdgEY4lBEEcbQNXtkuKQsGduxiIcI4gOTsxTmuq/bSg==} engines: {node: '>= 14'} dependencies: crc-32: 1.2.2 crc32-stream: 6.0.0 + is-stream: 2.0.1 normalize-path: 3.0.0 readable-stream: 4.5.2 dev: false @@ -4774,14 +4777,6 @@ packages: cross-spawn: 7.0.3 dev: false - /cross-fetch@4.0.0: - resolution: {integrity: sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==} - dependencies: - node-fetch: 2.7.0 - transitivePeerDependencies: - - encoding - dev: false - /cross-spawn@7.0.3: resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} engines: {node: '>= 8'} @@ -4791,8 +4786,8 @@ packages: which: 2.0.2 dev: false - /csv-parse@5.5.3: - resolution: {integrity: sha512-v0KW6C0qlZzoGjk6u5tLmVfyZxNgPGXZsWTXshpAgKVGmGXzaVWGdlCFxNx5iuzcXT/oJN1HHM9DZKwtAtYa+A==} + /csv-parse@5.5.5: + resolution: {integrity: sha512-erCk7tyU3yLWAhk6wvKxnyPtftuy/6Ak622gOO7BCJ05+TYffnPCJF905wmOQm+BpkX54OdAl8pveJwUdpnCXQ==} dev: false /custom-event@1.0.1: @@ -4804,11 +4799,38 @@ packages: engines: {node: '>= 14'} dev: false + /data-view-buffer@1.0.1: + resolution: {integrity: sha512-0lht7OugA5x3iJLOWFhWK/5ehONdprk0ISXqVFn/NFrDu+cuc8iADFrGQz5BnRK7LLU3JmkbXSxaqX+/mXYtUA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + is-data-view: 1.0.1 + dev: false + + /data-view-byte-length@1.0.1: + resolution: {integrity: sha512-4J7wRJD3ABAzr8wP+OcIcqq2dlUKp4DVflx++hs5h5ZKydWMI6/D/fAot+yh6g2tHh8fLFTvNOaVN357NvSrOQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + is-data-view: 1.0.1 + dev: false + + /data-view-byte-offset@1.0.0: + resolution: {integrity: sha512-t/Ygsytq+R995EJ5PZlD4Cu56sWa8InXySaViRzw9apusqsOO2bQP+SbYzAhR0pFKoB+43lYy8rWban9JSuXnA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + is-data-view: 1.0.1 + dev: false + /date-fns@2.30.0: resolution: {integrity: sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==} engines: {node: '>=0.11'} dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.24.0 dev: false /date-format@4.0.14: @@ -5082,8 +5104,8 @@ packages: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} dev: false - /electron-to-chromium@1.4.681: - resolution: {integrity: sha512-1PpuqJUFWoXZ1E54m8bsLPVYwIVCRzvaL+n5cjigGga4z854abDnFRc+cTa2th4S79kyGqya/1xoR7h+Y5G5lg==} + /electron-to-chromium@1.4.708: + resolution: {integrity: sha512-iWgEEvREL4GTXXHKohhh33+6Y8XkPI5eHihDmm8zUk5Zo7HICEW+wI/j5kJ2tbuNUCXJ/sNXa03ajW635DiJXA==} dev: false /emitter-component@1.1.2: @@ -5120,7 +5142,7 @@ packages: dependencies: '@types/cookie': 0.4.1 '@types/cors': 2.8.17 - '@types/node': 20.10.8 + '@types/node': 18.19.24 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.4.2 @@ -5153,8 +5175,8 @@ packages: is-arrayish: 0.2.1 dev: false - /es-abstract@1.22.4: - resolution: {integrity: sha512-vZYJlk2u6qHYxBOTjAeg7qUxHdNfih64Uu2J8QqWgXZ2cri0ZpJAkzDUK/q593+mvKwlxyaxr6F1Q+3LKoQRgg==} + /es-abstract@1.22.5: + resolution: {integrity: sha512-oW69R+4q2wG+Hc3KZePPZxOiisRIqfKBVo/HLx94QcJeWGU/8sZhCvc829rd1kS366vlJbzBfXf9yWwf0+Ko7w==} engines: {node: '>= 0.4'} dependencies: array-buffer-byte-length: 1.0.1 @@ -5173,7 +5195,7 @@ packages: has-property-descriptors: 1.0.2 has-proto: 1.0.3 has-symbols: 1.0.3 - hasown: 2.0.1 + hasown: 2.0.2 internal-slot: 1.0.7 is-array-buffer: 3.0.4 is-callable: 1.2.7 @@ -5187,17 +5209,69 @@ packages: object-keys: 1.1.1 object.assign: 4.1.5 regexp.prototype.flags: 1.5.2 - safe-array-concat: 1.1.0 + safe-array-concat: 1.1.2 safe-regex-test: 1.0.3 - string.prototype.trim: 1.2.8 - string.prototype.trimend: 1.0.7 + string.prototype.trim: 1.2.9 + string.prototype.trimend: 1.0.8 string.prototype.trimstart: 1.0.7 typed-array-buffer: 1.0.2 typed-array-byte-length: 1.0.1 typed-array-byte-offset: 1.0.2 typed-array-length: 1.0.5 unbox-primitive: 1.0.2 - which-typed-array: 1.1.14 + which-typed-array: 1.1.15 + dev: false + + /es-abstract@1.23.2: + resolution: {integrity: sha512-60s3Xv2T2p1ICykc7c+DNDPLDMm9t4QxCOUU0K9JxiLjM3C1zB9YVdN7tjxrFd4+AkZ8CdX1ovUga4P2+1e+/w==} + engines: {node: '>= 0.4'} + dependencies: + array-buffer-byte-length: 1.0.1 + arraybuffer.prototype.slice: 1.0.3 + available-typed-arrays: 1.0.7 + call-bind: 1.0.7 + data-view-buffer: 1.0.1 + data-view-byte-length: 1.0.1 + data-view-byte-offset: 1.0.0 + es-define-property: 1.0.0 + es-errors: 1.3.0 + es-object-atoms: 1.0.0 + es-set-tostringtag: 2.0.3 + es-to-primitive: 1.2.1 + function.prototype.name: 1.1.6 + get-intrinsic: 1.2.4 + get-symbol-description: 1.0.2 + globalthis: 1.0.3 + gopd: 1.0.1 + has-property-descriptors: 1.0.2 + has-proto: 1.0.3 + has-symbols: 1.0.3 + hasown: 2.0.2 + internal-slot: 1.0.7 + is-array-buffer: 3.0.4 + is-callable: 1.2.7 + is-data-view: 1.0.1 + is-negative-zero: 2.0.3 + is-regex: 1.1.4 + is-shared-array-buffer: 1.0.3 + is-string: 1.0.7 + is-typed-array: 1.1.13 + is-weakref: 1.0.2 + object-inspect: 1.13.1 + object-keys: 1.1.1 + object.assign: 4.1.5 + regexp.prototype.flags: 1.5.2 + safe-array-concat: 1.1.2 + safe-regex-test: 1.0.3 + string.prototype.trim: 1.2.9 + string.prototype.trimend: 1.0.8 + string.prototype.trimstart: 1.0.7 + typed-array-buffer: 1.0.2 + typed-array-byte-length: 1.0.1 + typed-array-byte-offset: 1.0.2 + typed-array-length: 1.0.5 + unbox-primitive: 1.0.2 + which-typed-array: 1.1.15 dev: false /es-array-method-boxes-properly@1.0.0: @@ -5216,19 +5290,26 @@ packages: engines: {node: '>= 0.4'} dev: false + /es-object-atoms@1.0.0: + resolution: {integrity: sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==} + engines: {node: '>= 0.4'} + dependencies: + es-errors: 1.3.0 + dev: false + /es-set-tostringtag@2.0.3: resolution: {integrity: sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ==} engines: {node: '>= 0.4'} dependencies: get-intrinsic: 1.2.4 has-tostringtag: 1.0.2 - hasown: 2.0.1 + hasown: 2.0.2 dev: false /es-shim-unscopables@1.0.2: resolution: {integrity: sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==} dependencies: - hasown: 2.0.1 + hasown: 2.0.2 dev: false /es-to-primitive@1.2.1: @@ -5345,8 +5426,8 @@ packages: resolve: 1.22.8 dev: false - /eslint-module-utils@2.8.0(eslint@8.57.0): - resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==} + /eslint-module-utils@2.8.1(eslint@8.57.0): + resolution: {integrity: sha512-rXDXR3h7cs7dy9RNpUlQf80nX31XWJEyGq1tRMo+6GsO5VmTe4UTwtmonAD4ZkAsrfMVDA2wlGJ3790Ys+D49Q==} engines: {node: '>=4'} peerDependencies: eslint: '*' @@ -5383,8 +5464,8 @@ packages: doctrine: 2.1.0 eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.8.0(eslint@8.57.0) - hasown: 2.0.1 + eslint-module-utils: 2.8.1(eslint@8.57.0) + hasown: 2.0.2 is-core-module: 2.13.1 is-glob: 4.0.3 minimatch: 3.1.2 @@ -5651,13 +5732,13 @@ packages: engines: {node: '>=6'} dev: false - /express@4.18.2: - resolution: {integrity: sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==} + /express@4.18.3: + resolution: {integrity: sha512-6VyCijWQ+9O7WuVMTRBTl+cjNNIzD5cY5mQ1WM8r/LEkI2u8EYpOotESNwzNlyCn3g+dmjKYI6BmNneSr/FSRw==} engines: {node: '>= 0.10.0'} dependencies: accepts: 1.3.8 array-flatten: 1.1.1 - body-parser: 1.20.1 + body-parser: 1.20.2 content-disposition: 0.5.4 content-type: 1.0.5 cookie: 0.5.0 @@ -5742,8 +5823,8 @@ packages: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} dev: false - /fast-xml-parser@4.3.5: - resolution: {integrity: sha512-sWvP1Pl8H03B8oFJpFR3HE31HUfwtX7Rlf9BNsvdpujD4n7WMhfmu8h9wOV2u+c1k0ZilTADhPqypzx2J690ZQ==} + /fast-xml-parser@4.3.6: + resolution: {integrity: sha512-M2SovcRxD4+vC493Uc2GZVcZaj66CCJhWurC4viynVSTvrpErCShNcDz1lAho6n9REQKvL/ll4A4/fw6Y9z8nw==} hasBin: true dependencies: strnum: 1.0.5 @@ -5870,8 +5951,8 @@ packages: resolution: {integrity: sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==} dev: false - /follow-redirects@1.15.5(debug@4.3.4): - resolution: {integrity: sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==} + /follow-redirects@1.15.6(debug@4.3.4): + resolution: {integrity: sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==} engines: {node: '>=4.0'} peerDependencies: debug: '*' @@ -5997,7 +6078,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.22.5 functions-have-names: 1.2.3 dev: false @@ -6027,7 +6108,7 @@ packages: function-bind: 1.1.2 has-proto: 1.0.3 has-symbols: 1.0.3 - hasown: 2.0.1 + hasown: 2.0.2 dev: false /get-package-type@0.1.0: @@ -6069,8 +6150,8 @@ packages: get-intrinsic: 1.2.4 dev: false - /get-tsconfig@4.7.2: - resolution: {integrity: sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A==} + /get-tsconfig@4.7.3: + resolution: {integrity: sha512-ZvkrzoUA0PQZM6fy6+/Hce561s+faD1rsNwhnO5FelNjyy7EMGJ3Rz1AQ8GYDWjhRs/7dBLOEJvhK8MiEJOAFg==} dependencies: resolve-pkg-maps: 1.0.0 dev: false @@ -6079,7 +6160,7 @@ packages: resolution: {integrity: sha512-BzUrJBS9EcUb4cFol8r4W3v1cPsSyajLSthNkz5BxbpDcHN5tIrM10E2eNvfnvBn3DaT3DUgx0OpsBKkaOpanw==} engines: {node: '>= 14'} dependencies: - basic-ftp: 5.0.4 + basic-ftp: 5.0.5 data-uri-to-buffer: 6.0.2 debug: 4.3.4(supports-color@8.1.1) fs-extra: 11.2.0 @@ -6247,8 +6328,8 @@ packages: type-fest: 0.8.1 dev: false - /hasown@2.0.1: - resolution: {integrity: sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA==} + /hasown@2.0.2: + resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} engines: {node: '>= 0.4'} dependencies: function-bind: 1.1.2 @@ -6274,17 +6355,6 @@ packages: toidentifier: 1.0.1 dev: false - /http-proxy-agent@5.0.0: - resolution: {integrity: sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==} - engines: {node: '>= 6'} - dependencies: - '@tootallnate/once': 2.0.0 - agent-base: 6.0.2 - debug: 4.3.4(supports-color@8.1.1) - transitivePeerDependencies: - - supports-color - dev: false - /http-proxy-agent@7.0.0: resolution: {integrity: sha512-+ZT+iBxVUQ1asugqnD6oWoRiS25AkjNfG085dKJGtGxkdwLQrMKU5wJr2bOOFAXzKcTuqq+7fZlTMgG3SRfIYQ==} engines: {node: '>= 14'} @@ -6310,22 +6380,12 @@ packages: engines: {node: '>=8.0.0'} dependencies: eventemitter3: 4.0.7 - follow-redirects: 1.15.5(debug@4.3.4) + follow-redirects: 1.15.6(debug@4.3.4) requires-port: 1.0.0 transitivePeerDependencies: - debug dev: false - /https-proxy-agent@5.0.1: - resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==} - engines: {node: '>= 6'} - dependencies: - agent-base: 6.0.2 - debug: 4.3.4(supports-color@8.1.1) - transitivePeerDependencies: - - supports-color - dev: false - /https-proxy-agent@7.0.2: resolution: {integrity: sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA==} engines: {node: '>= 14'} @@ -6457,8 +6517,8 @@ packages: engines: {node: '>= 0.4'} dependencies: es-errors: 1.3.0 - hasown: 2.0.1 - side-channel: 1.0.5 + hasown: 2.0.2 + side-channel: 1.0.6 dev: false /ip-address@9.0.5: @@ -6515,7 +6575,7 @@ packages: resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} engines: {node: '>=8'} dependencies: - binary-extensions: 2.2.0 + binary-extensions: 2.3.0 dev: false /is-boolean-object@1.1.2: @@ -6546,7 +6606,14 @@ packages: /is-core-module@2.13.1: resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==} dependencies: - hasown: 2.0.1 + hasown: 2.0.2 + dev: false + + /is-data-view@1.0.1: + resolution: {integrity: sha512-AHkaJrsUVW6wq6JS8y3JnM/GJF/9cf+k20+iDzlSaJrinEo5+7vRiteOSwBhHRiAyQATN1AmY4hwzxJKPmYf+w==} + engines: {node: '>= 0.4'} + dependencies: + is-typed-array: 1.1.13 dev: false /is-date-object@1.0.5: @@ -6688,7 +6755,7 @@ packages: resolution: {integrity: sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==} engines: {node: '>= 0.4'} dependencies: - which-typed-array: 1.1.14 + which-typed-array: 1.1.15 dev: false /is-typedarray@1.0.0: @@ -6755,7 +6822,7 @@ packages: resolution: {integrity: sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==} engines: {node: '>=8'} dependencies: - '@babel/core': 7.23.9 + '@babel/core': 7.24.0 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.2 semver: 6.3.1 @@ -6767,8 +6834,8 @@ packages: resolution: {integrity: sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==} engines: {node: '>=8'} dependencies: - '@babel/core': 7.23.9 - '@babel/parser': 7.23.9 + '@babel/core': 7.24.0 + '@babel/parser': 7.24.0 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.2 semver: 6.3.1 @@ -6780,8 +6847,8 @@ packages: resolution: {integrity: sha512-1WUsZ9R1lA0HtBSohTkm39WTPlNKSJ5iFk7UwqXkBLoHQT+hfqPsfsTDVuZdKGaBwn7din9bS7SsnoAr943hvw==} engines: {node: '>=10'} dependencies: - '@babel/core': 7.23.9 - '@babel/parser': 7.23.9 + '@babel/core': 7.24.0 + '@babel/parser': 7.24.0 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.2 semver: 7.6.0 @@ -6821,6 +6888,17 @@ packages: - supports-color dev: false + /istanbul-lib-source-maps@5.0.4: + resolution: {integrity: sha512-wHOoEsNJTVltaJp8eVkm8w+GVkVNHT2YDYo53YdzQEL2gWm1hBX5cGFR9hQJtuGLebidVX7et3+dmDZrmclduw==} + engines: {node: '>=10'} + dependencies: + '@jridgewell/trace-mapping': 0.3.25 + debug: 4.3.4(supports-color@8.1.1) + istanbul-lib-coverage: 3.2.2 + transitivePeerDependencies: + - supports-color + dev: false + /istanbul-reports@3.1.7: resolution: {integrity: sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==} engines: {node: '>=8'} @@ -6884,7 +6962,7 @@ packages: engines: {node: '>=12.0.0'} hasBin: true dependencies: - '@babel/parser': 7.23.9 + '@babel/parser': 7.24.0 '@jsdoc/salty': 0.2.7 '@types/markdown-it': 12.2.3 bluebird: 3.7.2 @@ -7069,11 +7147,11 @@ packages: is-wsl: 2.2.0 dev: false - /karma-firefox-launcher@2.1.2: - resolution: {integrity: sha512-VV9xDQU1QIboTrjtGVD4NCfzIH7n01ZXqy/qpBhnOeGVOkG5JYPEm8kuSd7psHE6WouZaQ9Ool92g8LFweSNMA==} + /karma-firefox-launcher@2.1.3: + resolution: {integrity: sha512-LMM2bseebLbYjODBOVt7TCPP9OI2vZIXCavIXhkO9m+10Uj5l7u/SKoeRmYx8FYHTVGZSpk6peX+3BMHC1WwNw==} dependencies: is-wsl: 2.2.0 - which: 2.0.2 + which: 3.0.1 dev: false /karma-ie-launcher@1.0.0(karma@6.4.3): @@ -7169,9 +7247,9 @@ packages: qjobs: 1.2.0 range-parser: 1.2.1 rimraf: 3.0.2 - socket.io: 4.7.4 + socket.io: 4.7.5 source-map: 0.6.1 - tmp: 0.2.1 + tmp: 0.2.3 ua-parser-js: 0.7.37 yargs: 16.2.0 transitivePeerDependencies: @@ -7186,7 +7264,7 @@ packages: requiresBuild: true dependencies: node-addon-api: 4.3.0 - prebuild-install: 7.1.1 + prebuild-install: 7.1.2 dev: false /keyv@4.5.4: @@ -7380,8 +7458,8 @@ packages: '@jridgewell/sourcemap-codec': 1.4.15 dev: false - /magic-string@0.30.7: - resolution: {integrity: sha512-8vBuFF/I/+OSLRmdf2wwFCJCz+nSn0m6DPvGH1fS/KiQoSaR+sETbov0eIk9KhEKy8CYqIkIAnbohxT/4H0kuA==} + /magic-string@0.30.8: + resolution: {integrity: sha512-ISQTe55T2ao7XtlAStud6qwYPZjE4GK1S/BeVPus4jrq6JuOnQ00YKQC581RWhR122W7msZV263KzVeLoqidyQ==} engines: {node: '>=12'} dependencies: '@jridgewell/sourcemap-codec': 1.4.15 @@ -7390,9 +7468,9 @@ packages: /magicast@0.3.3: resolution: {integrity: sha512-ZbrP1Qxnpoes8sz47AM0z08U+jW6TyRgZzcWy3Ma3vDhJttwMwAFDMMQFobwdBxByBD46JYmxRzeF7w2+wJEuw==} dependencies: - '@babel/parser': 7.23.9 - '@babel/types': 7.23.9 - source-map-js: 1.0.2 + '@babel/parser': 7.24.0 + '@babel/types': 7.24.0 + source-map-js: 1.1.0 dev: false /make-dir@1.3.0: @@ -7560,6 +7638,12 @@ packages: engines: {node: '>=10'} dev: false + /minimatch@3.0.8: + resolution: {integrity: sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==} + dependencies: + brace-expansion: 1.1.11 + dev: false + /minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} dependencies: @@ -7647,7 +7731,7 @@ packages: acorn: 8.11.3 pathe: 1.1.2 pkg-types: 1.0.3 - ufo: 1.4.0 + ufo: 1.5.2 dev: false /mocha@10.3.0: @@ -7900,7 +7984,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.22.5 dev: false /object.groupby@1.0.2: @@ -7909,7 +7993,7 @@ packages: array.prototype.filter: 1.0.3 call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.22.5 es-errors: 1.3.0 dev: false @@ -7919,7 +8003,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.22.5 dev: false /on-finished@2.3.0: @@ -8254,18 +8338,18 @@ packages: pathe: 1.1.2 dev: false - /playwright-core@1.41.2: - resolution: {integrity: sha512-VaTvwCA4Y8kxEe+kfm2+uUUw5Lubf38RxF7FpBxLPmGe5sdNkSg5e3ChEigaGrX7qdqT3pt2m/98LiyvU2x6CA==} + /playwright-core@1.42.1: + resolution: {integrity: sha512-mxz6zclokgrke9p1vtdy/COWBH+eOZgYUVVU34C73M+4j4HLlQJHtfcqiqqxpP0o8HhMkflvfbquLX5dg6wlfA==} engines: {node: '>=16'} hasBin: true dev: false - /playwright@1.41.2: - resolution: {integrity: sha512-v0bOa6H2GJChDL8pAeLa/LZC4feoAMbSQm1/jF/ySsWWoaNItvrMP7GEkvEEFyCTUYKMxjQKaTSg5up7nR6/8A==} + /playwright@1.42.1: + resolution: {integrity: sha512-PgwB03s2DZBcNRoW+1w9E+VkLBxweib6KTXM0M3tkiT4jVxKSi6PmVJ591J+0u10LUrgxB7dLRbiJqO5s2QPMg==} engines: {node: '>=16'} hasBin: true dependencies: - playwright-core: 1.41.2 + playwright-core: 1.42.1 optionalDependencies: fsevents: 2.3.2 dev: false @@ -8280,13 +8364,13 @@ packages: engines: {node: '>= 0.4'} dev: false - /postcss@8.4.35: - resolution: {integrity: sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA==} + /postcss@8.4.36: + resolution: {integrity: sha512-/n7eumA6ZjFHAsbX30yhHup/IMkOmlmvtEi7P+6RMYf+bGJSUHc3geH4a0NSZxAz/RJfiS9tooCTs9LAVYUZKw==} engines: {node: ^10 || ^12 || >=14} dependencies: nanoid: 3.3.7 picocolors: 1.0.0 - source-map-js: 1.0.2 + source-map-js: 1.1.0 dev: false /postgres-array@2.0.0: @@ -8311,8 +8395,8 @@ packages: xtend: 4.0.2 dev: false - /prebuild-install@7.1.1: - resolution: {integrity: sha512-jAXscXWMcCK8GgCoHOfIr0ODh5ai8mj63L2nWrjuAgXE6tDyYGnx4/8o/rCgU+B4JSyZBKbeZqzhtwtC3ovxjw==} + /prebuild-install@7.1.2: + resolution: {integrity: sha512-UnNke3IQb6sgarcZIDU3gbMeTp/9SSU1DAIkil7PrqG1vZlBtY5msYccSKSHDqa3hNg436IXK+SNImReuA1wEQ==} engines: {node: '>=10'} hasBin: true dependencies: @@ -8413,7 +8497,7 @@ packages: minimist: 1.2.8 protobufjs: 7.2.6 semver: 7.6.0 - tmp: 0.2.1 + tmp: 0.2.3 uglify-js: 3.17.4 dev: false @@ -8432,7 +8516,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 20.10.8 + '@types/node': 18.19.24 long: 5.2.3 dev: false @@ -8480,35 +8564,32 @@ packages: engines: {node: '>=6'} dev: false - /puppeteer-core@22.3.0: - resolution: {integrity: sha512-Ho5Vdpdro05ZyCx/l5Hkc5vHiibKTaY37fIAD9NF9Gi/vDxkVTeX40U/mFnEmeoxyuYALvWCJfi7JTT82R6Tuw==} + /puppeteer-core@22.5.0: + resolution: {integrity: sha512-bcfmM1nNSysjnES/ZZ1KdwFAFFGL3N76qRpisBb4WL7f4UAD4vPDxlhKZ1HJCDgMSWeYmeder4kftyp6lKqMYg==} engines: {node: '>=18'} dependencies: - '@puppeteer/browsers': 2.1.0 - chromium-bidi: 0.5.10(devtools-protocol@0.0.1249869) - cross-fetch: 4.0.0 + '@puppeteer/browsers': 2.2.0 + chromium-bidi: 0.5.13(devtools-protocol@0.0.1249869) debug: 4.3.4(supports-color@8.1.1) devtools-protocol: 0.0.1249869 ws: 8.16.0 transitivePeerDependencies: - bufferutil - - encoding - supports-color - utf-8-validate dev: false - /puppeteer@22.3.0(typescript@5.3.3): - resolution: {integrity: sha512-GC+tyjzYKjaNjhlDAuqRgDM+IOsqOG75Da4L28G4eULNLLxKDt+79x2OOSQ47HheJBgGq7ATSExNE6gayxP6cg==} + /puppeteer@22.5.0(typescript@5.3.3): + resolution: {integrity: sha512-PNVflixb6w3FMhehYhLcaQHTCcNKVkjxekzyvWr0n0yBnhUYF0ZhiG4J1I14Mzui2oW8dGvUD8kbXj0GiN1pFg==} engines: {node: '>=18'} hasBin: true requiresBuild: true dependencies: - '@puppeteer/browsers': 2.1.0 + '@puppeteer/browsers': 2.2.0 cosmiconfig: 9.0.0(typescript@5.3.3) - puppeteer-core: 22.3.0 + puppeteer-core: 22.5.0 transitivePeerDependencies: - bufferutil - - encoding - supports-color - typescript - utf-8-validate @@ -8523,7 +8604,7 @@ packages: resolution: {integrity: sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==} engines: {node: '>=0.6'} dependencies: - side-channel: 1.0.5 + side-channel: 1.0.6 dev: false /querystringify@2.2.0: @@ -8536,7 +8617,6 @@ packages: /queue-tick@1.0.1: resolution: {integrity: sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==} - requiresBuild: true dev: false /randombytes@2.1.0: @@ -8550,16 +8630,6 @@ packages: engines: {node: '>= 0.6'} dev: false - /raw-body@2.5.1: - resolution: {integrity: sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==} - engines: {node: '>= 0.8'} - dependencies: - bytes: 3.1.2 - http-errors: 2.0.0 - iconv-lite: 0.4.24 - unpipe: 1.0.0 - dev: false - /raw-body@2.5.2: resolution: {integrity: sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==} engines: {node: '>= 0.8'} @@ -8674,8 +8744,8 @@ packages: engines: {node: '>=0.10.0'} dev: false - /require-in-the-middle@7.2.0: - resolution: {integrity: sha512-3TLx5TGyAY6AOqLBoXmHkNql0HIf2RGbuMgCDT2WO/uGVAPJs6h7Kl+bN6TIZGd9bWhWPwnDnTHGtW8Iu77sdw==} + /require-in-the-middle@7.2.1: + resolution: {integrity: sha512-u5XngygsJ+XV2dBV/Pl4SrcNpUXQfmYmXtuFeHDXfzk4i4NnGnret6xKWkkJHjMHS/16yMV9pEAlAunqmjllkA==} engines: {node: '>=8.6.0'} dependencies: debug: 4.3.4(supports-color@8.1.1) @@ -8793,16 +8863,16 @@ packages: glob: 10.3.10 dev: false - /rollup-plugin-polyfill-node@0.13.0(rollup@4.12.0): + /rollup-plugin-polyfill-node@0.13.0(rollup@4.13.0): resolution: {integrity: sha512-FYEvpCaD5jGtyBuBFcQImEGmTxDTPbiHjJdrYIp+mFIwgXiXabxvKUK7ZT9P31ozu2Tqm9llYQMRWsfvTMTAOw==} peerDependencies: rollup: ^1.20.0 || ^2.0.0 || ^3.0.0 || ^4.0.0 dependencies: - '@rollup/plugin-inject': 5.0.5(rollup@4.12.0) - rollup: 4.12.0 + '@rollup/plugin-inject': 5.0.5(rollup@4.13.0) + rollup: 4.13.0 dev: false - /rollup-plugin-visualizer@5.12.0(rollup@4.12.0): + /rollup-plugin-visualizer@5.12.0(rollup@4.13.0): resolution: {integrity: sha512-8/NU9jXcHRs7Nnj07PF2o4gjxmm9lXIrZ8r175bT9dK8qoLlvKTwRMArRCMgpMGlq8CTLugRvEmyMeMXIU2pNQ==} engines: {node: '>=14'} hasBin: true @@ -8814,31 +8884,31 @@ packages: dependencies: open: 8.4.2 picomatch: 2.3.1 - rollup: 4.12.0 + rollup: 4.13.0 source-map: 0.7.4 yargs: 17.7.2 dev: false - /rollup@4.12.0: - resolution: {integrity: sha512-wz66wn4t1OHIJw3+XU7mJJQV/2NAfw5OAk6G6Hoo3zcvz/XOfQ52Vgi+AN4Uxoxi0KBBwk2g8zPrTDA4btSB/Q==} + /rollup@4.13.0: + resolution: {integrity: sha512-3YegKemjoQnYKmsBlOHfMLVPPA5xLkQ8MHLLSw/fBrFaVkEayL51DilPpNNLq1exr98F2B1TzrV0FUlN3gWRPg==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true dependencies: '@types/estree': 1.0.5 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.12.0 - '@rollup/rollup-android-arm64': 4.12.0 - '@rollup/rollup-darwin-arm64': 4.12.0 - '@rollup/rollup-darwin-x64': 4.12.0 - '@rollup/rollup-linux-arm-gnueabihf': 4.12.0 - '@rollup/rollup-linux-arm64-gnu': 4.12.0 - '@rollup/rollup-linux-arm64-musl': 4.12.0 - '@rollup/rollup-linux-riscv64-gnu': 4.12.0 - '@rollup/rollup-linux-x64-gnu': 4.12.0 - '@rollup/rollup-linux-x64-musl': 4.12.0 - '@rollup/rollup-win32-arm64-msvc': 4.12.0 - '@rollup/rollup-win32-ia32-msvc': 4.12.0 - '@rollup/rollup-win32-x64-msvc': 4.12.0 + '@rollup/rollup-android-arm-eabi': 4.13.0 + '@rollup/rollup-android-arm64': 4.13.0 + '@rollup/rollup-darwin-arm64': 4.13.0 + '@rollup/rollup-darwin-x64': 4.13.0 + '@rollup/rollup-linux-arm-gnueabihf': 4.13.0 + '@rollup/rollup-linux-arm64-gnu': 4.13.0 + '@rollup/rollup-linux-arm64-musl': 4.13.0 + '@rollup/rollup-linux-riscv64-gnu': 4.13.0 + '@rollup/rollup-linux-x64-gnu': 4.13.0 + '@rollup/rollup-linux-x64-musl': 4.13.0 + '@rollup/rollup-win32-arm64-msvc': 4.13.0 + '@rollup/rollup-win32-ia32-msvc': 4.13.0 + '@rollup/rollup-win32-x64-msvc': 4.13.0 fsevents: 2.3.3 dev: false @@ -8859,8 +8929,8 @@ packages: tslib: 2.6.2 dev: false - /safe-array-concat@1.1.0: - resolution: {integrity: sha512-ZdQ0Jeb9Ofti4hbt5lX3T2JcAamT9hfzYU1MNB+z/jaEbB6wfFfPIR/zEORmZqobkCCJhSjodobH6WHNmJ97dg==} + /safe-array-concat@1.1.2: + resolution: {integrity: sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q==} engines: {node: '>=0.4'} dependencies: call-bind: 1.0.7 @@ -8966,8 +9036,8 @@ packages: resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} dev: false - /set-function-length@1.2.1: - resolution: {integrity: sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g==} + /set-function-length@1.2.2: + resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==} engines: {node: '>= 0.4'} dependencies: define-data-property: 1.1.4 @@ -9012,8 +9082,8 @@ packages: resolution: {integrity: sha512-sQTKC1Re/rM6XyFM6fIAGHRPVGvyXfgzIDvzoq608vM+jeyVD0Tu1E6Np0Kc2zAIFWIj963V2800iF/9LPieQw==} dev: false - /side-channel@1.0.5: - resolution: {integrity: sha512-QcgiIWV4WV7qWExbN5llt6frQB/lBven9pqliLXfGPB+K9ZYXxDozp0wLkHS24kWCm+6YXH/f0HhnObZnZOBnQ==} + /side-channel@1.0.6: + resolution: {integrity: sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==} engines: {node: '>= 0.4'} dependencies: call-bind: 1.0.7 @@ -9062,7 +9132,7 @@ packages: resolution: {integrity: sha512-94Bdh3cC2PKrbgSOUqTiGPWVZeSiXfKOVZNJniWoqrWrRkB1CJzBU3NEbiTsPcYy1lDsANA/THzS+9WBiy5nfQ==} engines: {node: '>= 10'} dependencies: - '@polka/url': 1.0.0-next.24 + '@polka/url': 1.0.0-next.25 mrmime: 2.0.0 totalist: 3.0.1 dev: false @@ -9098,8 +9168,8 @@ packages: - supports-color dev: false - /socket.io@4.7.4: - resolution: {integrity: sha512-DcotgfP1Zg9iP/dH9zvAQcWrE0TtbMVwXmlV4T4mqsvY+gw+LqUGPfx2AoVyRk0FLME+GQhufDMyacFmw7ksqw==} + /socket.io@4.7.5: + resolution: {integrity: sha512-DmeAkF6cwM9jSfmp6Dr/5/mfMwb5Z5qRrSXLpo3Fq5SqyU8CMF15jIN4ZhfSwu35ksM1qmHZDQ/DK5XTccSTvA==} engines: {node: '>=10.2.0'} dependencies: accepts: 1.3.8 @@ -9134,8 +9204,8 @@ packages: smart-buffer: 4.2.0 dev: false - /source-map-js@1.0.2: - resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==} + /source-map-js@1.1.0: + resolution: {integrity: sha512-9vC2SfsJzlej6MAaMPLu8HiBSHGdRAJ9hVFYN1ibZoNkeanmDmLUcIrj6G9DGL7XMJ54AKg/G75akXl1/izTOw==} engines: {node: '>=0.10.0'} dev: false @@ -9226,7 +9296,7 @@ packages: fast-fifo: 1.3.2 queue-tick: 1.0.1 optionalDependencies: - bare-events: 2.2.0 + bare-events: 2.2.1 dev: false /string-argv@0.3.2: @@ -9252,21 +9322,22 @@ packages: strip-ansi: 7.1.0 dev: false - /string.prototype.trim@1.2.8: - resolution: {integrity: sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==} + /string.prototype.trim@1.2.9: + resolution: {integrity: sha512-klHuCNxiMZ8MlsOihJhJEBJAiMVqU3Z2nEXWfWnIqjN0gEFS9J9+IxKozWWtQGcgoa1WUZzLjKPTr4ZHNFTFxw==} engines: {node: '>= 0.4'} dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.23.2 + es-object-atoms: 1.0.0 dev: false - /string.prototype.trimend@1.0.7: - resolution: {integrity: sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==} + /string.prototype.trimend@1.0.8: + resolution: {integrity: sha512-p73uL5VCHCO2BZZ6krwwQE3kCzM7NKmis8S//xEC6fQonchbum4eP6kR4DLEjQFO3Wnj3Fuo8NM0kOSjVdHjZQ==} dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-object-atoms: 1.0.0 dev: false /string.prototype.trimstart@1.0.7: @@ -9274,7 +9345,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.22.5 dev: false /string_decoder@0.10.31: @@ -9417,7 +9488,7 @@ packages: pump: 3.0.0 tar-stream: 3.1.7 optionalDependencies: - bare-fs: 2.2.0 + bare-fs: 2.2.2 bare-path: 2.1.0 dev: false @@ -9498,11 +9569,9 @@ packages: os-tmpdir: 1.0.2 dev: false - /tmp@0.2.1: - resolution: {integrity: sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==} - engines: {node: '>=8.17.0'} - dependencies: - rimraf: 3.0.2 + /tmp@0.2.3: + resolution: {integrity: sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w==} + engines: {node: '>=14.14'} dev: false /to-buffer@1.1.1: @@ -9550,14 +9619,14 @@ packages: hasBin: true dev: false - /ts-morph@21.0.1: - resolution: {integrity: sha512-dbDtVdEAncKctzrVZ+Nr7kHpHkv+0JDJb2MjjpBaj8bFeCkePU9rHfMklmhuLFnpeq/EJZk2IhStY6NzqgjOkg==} + /ts-morph@22.0.0: + resolution: {integrity: sha512-M9MqFGZREyeb5fTl6gNHKZLqBQA0TjA1lea+CR48R8EBTDuWrNqW6ccC5QvjNR4s6wDumD3LTCjOFSp9iwlzaw==} dependencies: - '@ts-morph/common': 0.22.0 - code-block-writer: 12.0.0 + '@ts-morph/common': 0.23.0 + code-block-writer: 13.0.1 dev: false - /ts-node@10.9.2(@types/node@16.18.83)(typescript@5.3.3): + /ts-node@10.9.2(@types/node@16.18.89)(typescript@5.3.3): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: @@ -9576,7 +9645,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 16.18.83 + '@types/node': 16.18.89 acorn: 8.11.3 acorn-walk: 8.3.2 arg: 4.1.3 @@ -9588,7 +9657,7 @@ packages: yn: 3.1.1 dev: false - /ts-node@10.9.2(@types/node@18.19.18)(typescript@5.2.2): + /ts-node@10.9.2(@types/node@18.19.24)(typescript@5.2.2): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: @@ -9607,7 +9676,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 18.19.18 + '@types/node': 18.19.24 acorn: 8.11.3 acorn-walk: 8.3.2 arg: 4.1.3 @@ -9619,7 +9688,7 @@ packages: yn: 3.1.1 dev: false - /ts-node@10.9.2(@types/node@18.19.18)(typescript@5.3.3): + /ts-node@10.9.2(@types/node@18.19.24)(typescript@5.3.3): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: @@ -9638,7 +9707,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 18.19.18 + '@types/node': 18.19.24 acorn: 8.11.3 acorn-walk: 8.3.2 arg: 4.1.3 @@ -9690,8 +9759,8 @@ packages: strip-bom: 3.0.0 dev: false - /tshy@1.11.1: - resolution: {integrity: sha512-AzATR8weBaUW46Nh4B1k5cfxVuADKJTXe95xHh7BzcI1RjQQy6HeUXQDY+erGEGTLpiv6N6xMFmtEsMMc7x40Q==} + /tshy@1.12.0: + resolution: {integrity: sha512-WooNSTc+uyjLseTdzUFa4Lx3KYMcwxdrJMsWacl39BlfKZKhr30gLjAJkTQWHFkmAO+dj0L4P2jxiIrOo81V3w==} engines: {node: 16 >=16.17 || 18 >=18.15.0 || >=20.6.1} hasBin: true dependencies: @@ -9731,7 +9800,7 @@ packages: hasBin: true dependencies: esbuild: 0.19.12 - get-tsconfig: 4.7.2 + get-tsconfig: 4.7.3 optionalDependencies: fsevents: 2.3.3 dev: false @@ -9871,8 +9940,8 @@ packages: resolution: {integrity: sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==} dev: false - /ufo@1.4.0: - resolution: {integrity: sha512-Hhy+BhRBleFjpJ2vchUNN40qgkh0366FWJGqVLYBHev0vpHTrXSA0ryT+74UiW6KWsldNurQMKGqCm1M2zBciQ==} + /ufo@1.5.2: + resolution: {integrity: sha512-eiutMaL0J2MKdhcOM1tUy13pIrYnyR87fEd8STJQFrrAwImwvlXkxlZEjaKah8r2viPohld08lt73QfLG1NxMg==} dev: false /uglify-js@3.17.4: @@ -9905,11 +9974,9 @@ packages: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} dev: false - /undici@6.6.2: - resolution: {integrity: sha512-vSqvUE5skSxQJ5sztTZ/CdeJb1Wq0Hf44hlYMciqHghvz+K88U0l7D6u1VsndoFgskDcnU+nG3gYmMzJVzd9Qg==} + /undici@6.9.0: + resolution: {integrity: sha512-XPWfXzJedevUziHwun70EKNvGnxv4CnfraFZ4f/JV01+fcvMYzHE26r/j8AY/9c/70nkN4B1zX7E2Oyuqwz4+Q==} engines: {node: '>=18.0'} - dependencies: - '@fastify/busboy': 2.1.0 dev: false /unist-util-stringify-position@2.0.3: @@ -9986,7 +10053,7 @@ packages: is-arguments: 1.1.1 is-generator-function: 1.0.10 is-typed-array: 1.1.13 - which-typed-array: 1.1.14 + which-typed-array: 1.1.15 dev: false /utils-merge@1.0.1: @@ -10012,7 +10079,7 @@ packages: resolution: {integrity: sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==} engines: {node: '>=10.12.0'} dependencies: - '@jridgewell/trace-mapping': 0.3.23 + '@jridgewell/trace-mapping': 0.3.25 '@types/istanbul-lib-coverage': 2.0.6 convert-source-map: 2.0.0 dev: false @@ -10027,8 +10094,8 @@ packages: engines: {node: '>= 0.8'} dev: false - /vite-node@1.3.1(@types/node@18.19.18): - resolution: {integrity: sha512-azbRrqRxlWTJEVbzInZCTchx0X69M/XPTCz4H+TLvlTcR/xH/3hkRqhOakT41fMJCMzXTu4UvegkZiEoJAWvng==} + /vite-node@1.4.0(@types/node@18.19.24): + resolution: {integrity: sha512-VZDAseqjrHgNd4Kh8icYHWzTKSCZMhia7GyHfhtzLW33fZlG9SwsB6CEhgyVOWkJfJ2pFLrp/Gj1FSfAiqH9Lw==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true dependencies: @@ -10036,7 +10103,7 @@ packages: debug: 4.3.4(supports-color@8.1.1) pathe: 1.1.2 picocolors: 1.0.0 - vite: 5.1.4(@types/node@18.19.18) + vite: 5.1.6(@types/node@18.19.24) transitivePeerDependencies: - '@types/node' - less @@ -10048,8 +10115,8 @@ packages: - terser dev: false - /vite@5.1.4(@types/node@18.19.18): - resolution: {integrity: sha512-n+MPqzq+d9nMVTKyewqw6kSt+R3CkvF9QAKY8obiQn8g1fwTscKxyfaYnC632HtBXAQGc1Yjomphwn1dtwGAHg==} + /vite@5.1.6(@types/node@18.19.24): + resolution: {integrity: sha512-yYIAZs9nVfRJ/AiOLCA91zzhjsHUgMjB+EigzFb6W2XTLO8JixBCKCjvhKZaye+NKYHCrkv3Oh50dH9EdLU2RA==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: @@ -10076,23 +10143,23 @@ packages: terser: optional: true dependencies: - '@types/node': 18.19.18 + '@types/node': 18.19.24 esbuild: 0.19.12 - postcss: 8.4.35 - rollup: 4.12.0 + postcss: 8.4.36 + rollup: 4.13.0 optionalDependencies: fsevents: 2.3.3 dev: false - /vitest@1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1): - resolution: {integrity: sha512-/1QJqXs8YbCrfv/GPQ05wAZf2eakUPLPa18vkJAKE7RXOKfVHqMZZ1WlTjiwl6Gcn65M5vpNUB6EFLnEdRdEXQ==} + /vitest@1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0): + resolution: {integrity: sha512-gujzn0g7fmwf83/WzrDTnncZt2UiXP41mHuFYFrdwaLRVQ6JYQEiME2IfEjU3vcFL3VKa75XhI3lFgn+hfVsQw==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' '@types/node': ^18.0.0 || >=20.0.0 - '@vitest/browser': 1.3.1 - '@vitest/ui': 1.3.1 + '@vitest/browser': 1.4.0 + '@vitest/ui': 1.4.0 happy-dom: '*' jsdom: '*' peerDependenciesMeta: @@ -10109,27 +10176,27 @@ packages: jsdom: optional: true dependencies: - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) - '@vitest/expect': 1.3.1 - '@vitest/runner': 1.3.1 - '@vitest/snapshot': 1.3.1 - '@vitest/spy': 1.3.1 - '@vitest/utils': 1.3.1 + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/expect': 1.4.0 + '@vitest/runner': 1.4.0 + '@vitest/snapshot': 1.4.0 + '@vitest/spy': 1.4.0 + '@vitest/utils': 1.4.0 acorn-walk: 8.3.2 chai: 4.3.10 debug: 4.3.4(supports-color@8.1.1) execa: 8.0.1 local-pkg: 0.5.0 - magic-string: 0.30.7 + magic-string: 0.30.8 pathe: 1.1.2 picocolors: 1.0.0 std-env: 3.7.0 strip-literal: 2.0.0 tinybench: 2.6.0 tinypool: 0.8.2 - vite: 5.1.4(@types/node@18.19.18) - vite-node: 1.3.1(@types/node@18.19.18) + vite: 5.1.6(@types/node@18.19.24) + vite-node: 1.4.0(@types/node@18.19.24) why-is-node-running: 2.2.2 transitivePeerDependencies: - less @@ -10181,8 +10248,8 @@ packages: resolution: {integrity: sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==} dev: false - /which-typed-array@1.1.14: - resolution: {integrity: sha512-VnXFiIW8yNn9kIHN88xvZ4yOWchftKDsRJ8fEPacX/wl1lOvBrhsJ/OeJCXq7B0AaijRuqgzSKalJoPk+D8MPg==} + /which-typed-array@1.1.15: + resolution: {integrity: sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==} engines: {node: '>= 0.4'} dependencies: available-typed-arrays: 1.0.7 @@ -10207,6 +10274,14 @@ packages: isexe: 2.0.0 dev: false + /which@3.0.1: + resolution: {integrity: sha512-XA1b62dzQzLfaEOSQFTCOd5KFf/1VSzZo7/7TUjnya6u0vGGKzU96UQBZTAThCb2j4/xjBAyii1OhRLJEivHvg==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + hasBin: true + dependencies: + isexe: 2.0.0 + dev: false + /why-is-node-running@2.2.2: resolution: {integrity: sha512-6tSwToZxTOcotxHeA+qGCq1mVzKR3CwcJGmVcY+QE8SHy6TnpFnh8PAvPNHYr7EcuVeG0QSMxtYCuO1ta/G/oA==} engines: {node: '>=8'} @@ -10353,8 +10428,8 @@ packages: resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} dev: false - /yaml@2.4.0: - resolution: {integrity: sha512-j9iR8g+/t0lArF4V6NE/QCfT+CO7iLqrXAHZbJdo+LfjqP1vR8Fg5bSiaq6Q2lOD1AUEVrEVIgABvBFYojJVYQ==} + /yaml@2.4.1: + resolution: {integrity: sha512-pIXzoImaqmfOrL7teGUBt/T7ZDnyeGBWyXQBvOVhLkWLN37GXv8NMLK406UY6dS51JfcQHsmcW5cJ441bHg6Lg==} engines: {node: '>= 14'} hasBin: true dev: false @@ -10469,32 +10544,36 @@ packages: commander: 9.5.0 dev: false - /zip-stream@6.0.0: - resolution: {integrity: sha512-X0WFquRRDtL9HR9hc1OrabOP/VKJEX7gAr2geayt3b7dLgXgSXI6ucC4CphLQP/aQt2GyHIYgmXxtC+dVdghAQ==} + /zip-stream@6.0.1: + resolution: {integrity: sha512-zK7YHHz4ZXpW89AHXUPbQVGKI7uvkd3hzusTdotCg1UxyaVtg0zFJSTfW/Dq5f7OBBVnq6cZIaC8Ti4hb6dtCA==} engines: {node: '>= 14'} dependencies: - archiver-utils: 5.0.1 - compress-commons: 6.0.1 + archiver-utils: 5.0.2 + compress-commons: 6.0.2 readable-stream: 4.5.2 dev: false + /zod@3.22.4: + resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==} + dev: false + file:projects/abort-controller.tgz: - resolution: {integrity: sha512-6KmwcmAc6Zw8aAD3MJMfxMFu/eU1by4j5WCbNbMnTh+SAEBmhRppxYLE57CHk/4zJEAr+ssjbLGmiSDO9XWAqg==, tarball: file:projects/abort-controller.tgz} + resolution: {integrity: sha512-iNr+bUFLjcImxSkKGfTvrMXdvN+Xr2uo0pe1VAQ5yxDLRwekMIoD0LJTgxqbMH9X+0ZTQdvANRTXKGf0Vg5gMQ==, tarball: file:projects/abort-controller.tgz} name: '@rush-temp/abort-controller' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) - '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) eslint: 8.57.0 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -10512,15 +10591,15 @@ packages: dev: false file:projects/agrifood-farming.tgz: - resolution: {integrity: sha512-1gJtIqsdb3A7n3iKVYX+cO9GlxwAx98jKfiFw+9rOmBZzyH3+AVNwCR5y/qego33s7BOEtVBYTBfE+RE2g+u7A==, tarball: file:projects/agrifood-farming.tgz} + resolution: {integrity: sha512-wAQvtrrdmX+2Bva2/aeO1N4UYS/nOcPQrPdBDFE6ZWAOzeOF7/EozfYF/754AYKYjmWhJ1eVKk6fwkDsPZvqEQ==, tarball: file:projects/agrifood-farming.tgz} name: '@rush-temp/agrifood-farming' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -10543,7 +10622,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10556,20 +10635,20 @@ packages: dev: false file:projects/ai-anomaly-detector.tgz: - resolution: {integrity: sha512-4RFMxeQv1SvqJCIIXuHWetqcaZypgMXBD4y5KRpyYJTn5IqgypkpxQDlU5Fzau51QjuGovlngIFGYhUK6ChHZw==, tarball: file:projects/ai-anomaly-detector.tgz} + resolution: {integrity: sha512-1D5XNSIsMuHod/Ga1MvLOMSZ7SnsmJ1C1QQps7z/Lu3Bn2HeE/PaprRY6oLdG0lpFv2QImE5IXWffLrL6VG08g==, tarball: file:projects/ai-anomaly-detector.tgz} name: '@rush-temp/ai-anomaly-detector' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 - csv-parse: 5.5.3 + csv-parse: 5.5.5 dotenv: 16.4.5 eslint: 8.57.0 esm: 3.2.25 @@ -10587,7 +10666,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10600,15 +10679,15 @@ packages: dev: false file:projects/ai-content-safety.tgz: - resolution: {integrity: sha512-6lwZLHLgH7pSNwF2YBkR18lySMvokaRLXby1EOj1ARxHwO1txv3VJzB4MkbITljyQAwwf0LBy7FZWGq++7wHKQ==, tarball: file:projects/ai-content-safety.tgz} + resolution: {integrity: sha512-pKa4o99jHH5JO9Y0rzBJC9xekW78nEjxZ549EGZAum2Ro6+cUR3x3l/EGL5Re5dHyhfljfxpX2MYvNFIBAMvkw==, tarball: file:projects/ai-content-safety.tgz} name: '@rush-temp/ai-content-safety' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -10620,7 +10699,7 @@ packages: karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.2 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.3) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.3) @@ -10630,7 +10709,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10643,16 +10722,16 @@ packages: dev: false file:projects/ai-document-intelligence.tgz: - resolution: {integrity: sha512-BzeiADIeoIIlJ8LRyX4rq6JouqAj7vz9S+/YE9KQXRP9URaP0ke8pY0Wzi4mOEW7dIrecN0ePd0TJqxrImmrdQ==, tarball: file:projects/ai-document-intelligence.tgz} + resolution: {integrity: sha512-K1pn4bMflvrhHSOp2OIfBXRZaHGszteFE7TxUJQW1yv6OsRM02nnclIcKavqg9fboSWrDg5cWjyPBgzC2hKrvA==, tarball: file:projects/ai-document-intelligence.tgz} name: '@rush-temp/ai-document-intelligence' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -10664,7 +10743,7 @@ packages: karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.2 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.3) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.3) @@ -10674,7 +10753,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10687,15 +10766,15 @@ packages: dev: false file:projects/ai-document-translator.tgz: - resolution: {integrity: sha512-nJmJTeS99cjSGz7F593eBVWe9e8z5MlBcL/RPYc1X7GqLarVvQDy8CRvNotVwlKqZXIDFU5SZQfm79ariToNEA==, tarball: file:projects/ai-document-translator.tgz} + resolution: {integrity: sha512-dWR4dFSVukPRd0wgny/m2a0LUBL1vlLQHpVTzjunyoM71gap1ZUGhPiSZ+6HVEu9KgEEp65QtUYp4Oic2fsXdA==, tarball: file:projects/ai-document-translator.tgz} name: '@rush-temp/ai-document-translator' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -10717,7 +10796,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10730,17 +10809,17 @@ packages: dev: false file:projects/ai-form-recognizer.tgz: - resolution: {integrity: sha512-diW8HFTJtQYPHtBCCTcY5ijE8lH5+MrWF36K19IFl6McafkYs8mh5/oXLXV/PBTnXtUk00gDT58b2X6iC4mrXA==, tarball: file:projects/ai-form-recognizer.tgz} + resolution: {integrity: sha512-obvG9Pyeh3oCfjyjfZIdiWnUUh3QHYdQ+oWUO9bE4ZT+Nqa3Ix7v4UJnm70eedgqTtK1/QNQDQXTqc2ANnXUJg==, tarball: file:projects/ai-form-recognizer.tgz} name: '@rush-temp/ai-form-recognizer' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@rollup/plugin-node-resolve': 15.2.3(rollup@4.12.0) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@rollup/plugin-node-resolve': 15.2.3(rollup@4.13.0) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -10762,9 +10841,9 @@ packages: mocha: 10.3.0 prettier: 3.2.5 rimraf: 5.0.5 - rollup: 4.12.0 + rollup: 4.13.0 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10777,17 +10856,17 @@ packages: dev: false file:projects/ai-language-conversations.tgz: - resolution: {integrity: sha512-zgE5BUWLB90nEH+Nd+UHPHz7t08SHyUzrjQ/EgBiUuoHTBkP2q7cHziIl7AlO9LjBIU1zMe+zQyYPihhvP0SNw==, tarball: file:projects/ai-language-conversations.tgz} + resolution: {integrity: sha512-SmlaqC8pKs7sb67AsLVRmaIn0+f3npLN63yN7BHhFdpf+Rth+DLDhZ1dzhLjqXUZQdPkFqriSrWJkV0ROs5iMQ==, tarball: file:projects/ai-language-conversations.tgz} name: '@rush-temp/ai-language-conversations' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -10811,7 +10890,7 @@ packages: rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -10825,17 +10904,17 @@ packages: dev: false file:projects/ai-language-text.tgz: - resolution: {integrity: sha512-qnXx4I2V8KgR+lYOuTi6Ku4zWlgMz8WmYssVtNG3LDQtrcDmi8eqHQhCYuz51S2LebSDT0e4HOX0QVsNibqHEw==, tarball: file:projects/ai-language-text.tgz} + resolution: {integrity: sha512-Xxb9oGASDhz+Qjv4Lmb1oyjsToKVg0s+vXlaizxhh/t6q1lZaADyNAa/vOdKz8ycOcGbuBNY4mE1G4nudGrLQg==, tarball: file:projects/ai-language-text.tgz} name: '@rush-temp/ai-language-text' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/decompress': 4.2.7 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -10859,7 +10938,7 @@ packages: rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10872,13 +10951,13 @@ packages: dev: false file:projects/ai-language-textauthoring.tgz: - resolution: {integrity: sha512-L55Jdp4pix57yOZRUz3E61njkW4SsdSaxP7pTkl37rWvz0uWdz7hngTuxyiVNkq0ILjlMsI9nEdce5cZOkl64Q==, tarball: file:projects/ai-language-textauthoring.tgz} + resolution: {integrity: sha512-+t8Q7pUW63hRFCgAA14Kg2ypyBKvBH9fI/Zta/k1fegdI78goRNjsExAMBGrk/fV18C6qHIzON8C6GGhJTjPfA==, tarball: file:projects/ai-language-textauthoring.tgz} name: '@rush-temp/ai-language-textauthoring' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 dotenv: 16.4.5 @@ -10887,7 +10966,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10897,15 +10976,15 @@ packages: dev: false file:projects/ai-metrics-advisor.tgz: - resolution: {integrity: sha512-ywS2xkL3j+OT/TGdNqEnlS3sn6dCjDmjdc7Tq0S6WG5UWtP7jJxV+xViqzVI/ND4MB7YpZDSdaw4J49XttTxDA==, tarball: file:projects/ai-metrics-advisor.tgz} + resolution: {integrity: sha512-LHiJRXI1Y8vFpannHomfmMKM10Amp/vSzyZoIF+NwHc2ZJdsmsqWdctyXNmOYTFVNIogKt0CryjLZpiGp534YQ==, tarball: file:projects/ai-metrics-advisor.tgz} name: '@rush-temp/ai-metrics-advisor' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -10927,7 +11006,7 @@ packages: rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10940,15 +11019,15 @@ packages: dev: false file:projects/ai-personalizer.tgz: - resolution: {integrity: sha512-1YSdKuRqIO9U6bdAngcYXnJAqg1sFvk+fNl0D/2cOL56RV0lNrbTaxnJEo4yvM7/aQ4/JojgOP4i48BnP1fQWg==, tarball: file:projects/ai-personalizer.tgz} + resolution: {integrity: sha512-8pWBjymcvSVHxWk4tougH/CzuZYnHVWNeFDGkMpMX3u34GMs4EqoTCTZZxz8cGt66RmJND3A08pOmtVwkaK+yA==, tarball: file:projects/ai-personalizer.tgz} name: '@rush-temp/ai-personalizer' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -10970,7 +11049,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10983,17 +11062,17 @@ packages: dev: false file:projects/ai-text-analytics.tgz: - resolution: {integrity: sha512-xIVLnFsYlJw7fjbKeTAjnneKWoeSgvcEK7QPZG6LLZfQpoErjPDJh/1VinYhM+kfuuDFkddCtZ9IGK2uZ1o9Dw==, tarball: file:projects/ai-text-analytics.tgz} + resolution: {integrity: sha512-z21IyncrTycb7fJSyH486fdoc3bfSICN5efEkp+/N1Ed26rKd2HSw9HUgEbqJXUyMAkFlD+XzbhIc2LGs/a6rw==, tarball: file:projects/ai-text-analytics.tgz} name: '@rush-temp/ai-text-analytics' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -11016,7 +11095,7 @@ packages: rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -11029,15 +11108,15 @@ packages: dev: false file:projects/ai-translation-text.tgz: - resolution: {integrity: sha512-ETbxAv2PSXMdT9s2t6fy84Th7wl4mon7K0lOInT5nWAMd9MeqdjPxQ1ivqW9jDA1vovsKQ8qUaPIuBYn5QrnhQ==, tarball: file:projects/ai-translation-text.tgz} + resolution: {integrity: sha512-PwMYx4S6HQOcwVprsWOXUQcIy13EeJm7xcDNfd4VShU6STuGTgNdf0F5+pp24+LLfZ5fcOWxfqOxfGemcwettw==, tarball: file:projects/ai-translation-text.tgz} name: '@rush-temp/ai-translation-text' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -11059,7 +11138,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -11072,7 +11151,7 @@ packages: dev: false file:projects/ai-vision-image-analysis.tgz: - resolution: {integrity: sha512-tKgHLBvnEh7Q9FyyOC6WnpAFb4NJxOK2LFfaAWiZSEVwi1vlfkdAckelu0lPxqSiY7rwllrC8VsBGAWcQ415/Q==, tarball: file:projects/ai-vision-image-analysis.tgz} + resolution: {integrity: sha512-BTGRoZOmU+cmrNgx8b5wgrZ3PqbiO0rSQ+8jGNwVZP6TUcBN1Ne9nYHnIQxZCaGB2vf+4uKJ6NCMCw2TkLsu0Q==, tarball: file:projects/ai-vision-image-analysis.tgz} name: '@rush-temp/ai-vision-image-analysis' version: 0.0.0 dependencies: @@ -11092,7 +11171,7 @@ packages: karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.2 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.3) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.3) @@ -11115,17 +11194,17 @@ packages: dev: false file:projects/api-management-custom-widgets-scaffolder.tgz: - resolution: {integrity: sha512-4Rktgk3WHldMSBL7EMvssgkC2lds/H6eF789SNkPmwvTv8lrk/BQhpO3gkltFpJ4MNolcsuLVfs47kgqFndM3g==, tarball: file:projects/api-management-custom-widgets-scaffolder.tgz} + resolution: {integrity: sha512-ILWxIgL8Fu+WN9uD8SqwoDsJGBAKDKlgXHhB0ggTzXayZ/890ADv+LJxN65P+TvxfAlzsE9NMg/JrtsU2DCvsg==, tarball: file:projects/api-management-custom-widgets-scaffolder.tgz} name: '@rush-temp/api-management-custom-widgets-scaffolder' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@rollup/plugin-node-resolve': 15.2.3(rollup@4.12.0) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@rollup/plugin-node-resolve': 15.2.3(rollup@4.13.0) '@types/chai': 4.3.12 '@types/inquirer': 8.2.10 '@types/mocha': 10.0.6 '@types/mustache': 4.2.5 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/yargs': 17.0.32 '@types/yargs-parser': 21.0.3 @@ -11142,9 +11221,9 @@ packages: mustache: 4.2.0 prettier: 3.2.5 rimraf: 5.0.5 - rollup: 4.12.0 + rollup: 4.13.0 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -11157,18 +11236,18 @@ packages: dev: false file:projects/api-management-custom-widgets-tools.tgz: - resolution: {integrity: sha512-Wyj3HbKSuoSY7eNvMUldvhnMqi5kKO8QXcP5Kab2D+RI76V1TYiDNB/1ffC+jN96ZsLOvaOH1xpFeGIcRfnjgw==, tarball: file:projects/api-management-custom-widgets-tools.tgz} + resolution: {integrity: sha512-ryd7sqfaOWJhxOOsThaBeSvhi2vuX6n4budqkOZyjeTNTYHhvme7eK+BZYSuB8EPjTr27FcsT3QkB5oSadhnIg==, tarball: file:projects/api-management-custom-widgets-tools.tgz} name: '@rush-temp/api-management-custom-widgets-tools' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 '@azure/storage-blob': 12.17.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mime': 3.0.4 '@types/mocha': 10.0.6 '@types/mustache': 4.2.5 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/yargs': 17.0.32 '@types/yargs-parser': 21.0.3 @@ -11193,7 +11272,7 @@ packages: prettier: 3.2.5 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -11208,23 +11287,21 @@ packages: dev: false file:projects/app-configuration.tgz: - resolution: {integrity: sha512-yZ5eoxFyedjpLHPzgkwFAv2HhPvIWNHm1yn/sa8fqSp+SLfb/D2gOciNlANeEiiUgy9xldH4WXfTONmn+Wsf4w==, tarball: file:projects/app-configuration.tgz} + resolution: {integrity: sha512-hdktXjbcBGvA0FHTn22UDjSVXhFlQU56GwYbHaqj+rphRrYSM4gply8nms7Ob6wguO7YPdwkFlkXIFcVmX/AtQ==, tarball: file:projects/app-configuration.tgz} name: '@rush-temp/app-configuration' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 - cross-env: 7.0.3 dotenv: 16.4.5 eslint: 8.57.0 - esm: 3.2.25 karma: 6.4.3(debug@4.3.4) karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 @@ -11238,11 +11315,9 @@ packages: nock: 12.0.3 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) tslib: 2.6.2 tsx: 4.7.1 typescript: 5.3.3 - uglify-js: 3.17.4 transitivePeerDependencies: - bufferutil - debug @@ -11251,22 +11326,22 @@ packages: dev: false file:projects/arm-advisor.tgz: - resolution: {integrity: sha512-ROD8jk3cSov/vE48keG4Nu0rftlbMlbMwQbuL8cw564ZjyxcYvmKwW/mj+dyWtjYbuCj27/MTG11+baciBUgEw==, tarball: file:projects/arm-advisor.tgz} + resolution: {integrity: sha512-OTfKEJPA4yb4uvJh4k/vEuleTC8VFATTm6fufuGRo/tfZzh1sl4h7YXjBvr4UbSUOeNxHEwV/xsVJHGh1jvXbA==, tarball: file:projects/arm-advisor.tgz} name: '@rush-temp/arm-advisor' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11277,22 +11352,22 @@ packages: dev: false file:projects/arm-agrifood.tgz: - resolution: {integrity: sha512-Eq8GFhNd/oJociPIg1rktInQeN9SNAGJzOhamq2MgkU56XwmS6wcBn1JOti8JJeKaE/QXO3yKpewSyct3g+Qjg==, tarball: file:projects/arm-agrifood.tgz} + resolution: {integrity: sha512-KHlACz3MiXabvxhbQZNVZ76eLFAPV8hlyR9XYb3vpYJ0rC8o+oFVimtXtjIvS/5t77FUwscIeIq6VmHDRKlGxQ==, tarball: file:projects/arm-agrifood.tgz} name: '@rush-temp/arm-agrifood' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11303,22 +11378,22 @@ packages: dev: false file:projects/arm-analysisservices.tgz: - resolution: {integrity: sha512-K60F16ABp0NPA67efoMfwVPIevG22mZLc9IDlRWUsF1sEI+r0j87PM1XpcvxyPaBwdj/m9hJlA1YncxM7iNxJg==, tarball: file:projects/arm-analysisservices.tgz} + resolution: {integrity: sha512-gKdDM68eaEu4Lxc2m/MZBfsrYuve36VXh36B8GkQhr2Fy74fkB0hxVIaybXwRkBQe+NFheOV2nR2eWjU8VkCOQ==, tarball: file:projects/arm-analysisservices.tgz} name: '@rush-temp/arm-analysisservices' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11329,16 +11404,16 @@ packages: dev: false file:projects/arm-apicenter.tgz: - resolution: {integrity: sha512-+pRFPielS0gDX8JVCaOPr0hufVi5RDa6CVbp3lRglARFGjy3zK2Cf6/QJUZXmoxEdYTFqKjwgIcJdkCJk+bwFQ==, tarball: file:projects/arm-apicenter.tgz} + resolution: {integrity: sha512-I7XVaUB5zLRaozqNoPd0XDmfpMBMbEicQxn8lFbAe5pm1C9l3C07LLk6jU6UkwO7XMZ6KHmtvvGmsdP/83W4IQ==, tarball: file:projects/arm-apicenter.tgz} name: '@rush-temp/arm-apicenter' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -11346,7 +11421,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11357,23 +11432,24 @@ packages: dev: false file:projects/arm-apimanagement.tgz: - resolution: {integrity: sha512-JzZWr0hc/ZNg1TekAQAKyht82tdhGnk+NZG0fJ36AqsfwWP3xm9la0zFq2S6OdhG/pEzmFW32Gt/ewJ2No6zWg==, tarball: file:projects/arm-apimanagement.tgz} + resolution: {integrity: sha512-svxUqCfRZlZBudJHMGDq6AVFGXaCPgpFLiOzSNuEnDoghYh8tvaHA4fkG4L87c+NOVd4rXG73+qJIb64cxdeiA==, tarball: file:projects/arm-apimanagement.tgz} name: '@rush-temp/arm-apimanagement' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 + esm: 3.2.25 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11384,22 +11460,22 @@ packages: dev: false file:projects/arm-appcomplianceautomation.tgz: - resolution: {integrity: sha512-maN4MPboagaxwfe8eh2nHyfAicYFfJGj3qAcGGKNEQ86MCXL6cC00xIdUT08QO5Mu2AF/u17gCs6znuDHwKDvw==, tarball: file:projects/arm-appcomplianceautomation.tgz} + resolution: {integrity: sha512-NtiILsjaOd0fwgZhEL7+SaP2a02m4zETgRa8/34N9PNcn8MN/tZFmvmDh6ZjROqIg1X/GIxyKIpwnQSfhE/+/w==, tarball: file:projects/arm-appcomplianceautomation.tgz} name: '@rush-temp/arm-appcomplianceautomation' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11410,23 +11486,23 @@ packages: dev: false file:projects/arm-appconfiguration.tgz: - resolution: {integrity: sha512-gtrl3Hqq0gmpifajc4RgLdCXIH7sT72oPGIklzYW37Y4fssGQNeoWMXwvP5d4vLG/Apz3WXyPyxs4rcPCNQwBA==, tarball: file:projects/arm-appconfiguration.tgz} + resolution: {integrity: sha512-4v96saBHfbHekdsUuRpNLycDOlo+7v5dYJCPOaomud0XrAdl5c2hbpPNag7Mu5FxywXPMyc3NiCdi5etZY8WAQ==, tarball: file:projects/arm-appconfiguration.tgz} name: '@rush-temp/arm-appconfiguration' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11437,23 +11513,23 @@ packages: dev: false file:projects/arm-appcontainers.tgz: - resolution: {integrity: sha512-7WPgejLGKgOh2vPVgdi0dMKg+iBkbUeoopTskBmNemYPZv/IbY2L07kru2erL0s11m3teLBDro/ssrPrqDboCA==, tarball: file:projects/arm-appcontainers.tgz} + resolution: {integrity: sha512-IvoH/GAa4+uOxQ54m9x2GHYy/18gIvzXH6tZmbH4IHkMn9BiBIDq3Z0Bg0RoQ3fnf79sRjhN4TpNq9jW1rD0EQ==, tarball: file:projects/arm-appcontainers.tgz} name: '@rush-temp/arm-appcontainers' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11464,21 +11540,21 @@ packages: dev: false file:projects/arm-appinsights.tgz: - resolution: {integrity: sha512-I34zQkAWNFmMo89ZFt2EM4nUwIymNs3zAmF640abJkJh/L+GNu2fMfy2dI5IrOhj/f1+KTrpGRpDPTz/IrnnDQ==, tarball: file:projects/arm-appinsights.tgz} + resolution: {integrity: sha512-WveWOZAHZWF58vZvK3pdvIx84fyR4VWrcCydr3F/UStxrXcgPVpW5qZYEucy6sdsql1keOff0i5QEpvySgvT9A==, tarball: file:projects/arm-appinsights.tgz} name: '@rush-temp/arm-appinsights' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11489,16 +11565,16 @@ packages: dev: false file:projects/arm-appplatform.tgz: - resolution: {integrity: sha512-+qvA56xDmFhYVyBkJSMPw5rssZ7dcUPhEsdUoENLA6hLLgauw7hoyagObPLVJrEGXNCgkABSR5V8+bTf3uWtQQ==, tarball: file:projects/arm-appplatform.tgz} + resolution: {integrity: sha512-kWl3JeqgYBz4K19XI76Pq2kdLSwC8yG+PtqruJng/HadLD47zI49erNs4te6JNytsobVRzc9GLcXwL7G1xSdPQ==, tarball: file:projects/arm-appplatform.tgz} name: '@rush-temp/arm-appplatform' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -11506,7 +11582,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11517,16 +11593,16 @@ packages: dev: false file:projects/arm-appservice-1.tgz: - resolution: {integrity: sha512-n9SiDwWNM6NvRyxLXP85XacmYutdry1HFVz14/Ku6TF6yvZ5/VLx9unSPUKd1kKaG/GiwcrXn4v/xlKfAqi+Wg==, tarball: file:projects/arm-appservice-1.tgz} + resolution: {integrity: sha512-oCf1w1dQgRqUaU8CuQI+35t3/VOmv9NqUnRe4kKetJWZNDj2BsOeqOnLLewVUsYYwSCowOeX3L+zOiyxQvbpqw==, tarball: file:projects/arm-appservice-1.tgz} name: '@rush-temp/arm-appservice-1' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -11534,7 +11610,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11545,23 +11621,23 @@ packages: dev: false file:projects/arm-appservice-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-mkO1V5mAXU3DXRK51F/22W8UVpQtDdbq8T7Eqa0yOdByJjdBLB4FBnqwJmcYKTIdyUT7vmS3FqT6kQuOOzEPcg==, tarball: file:projects/arm-appservice-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-TwZgQgk0vsQbAgaGZjjA9QH+89/zcVRTkZqB/8BMnYP4CyjGWj46pRc92Aj9ef03vC5/I6sxyZUhfZZtZ0mZfw==, tarball: file:projects/arm-appservice-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-appservice-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11572,15 +11648,15 @@ packages: dev: false file:projects/arm-appservice.tgz: - resolution: {integrity: sha512-njmusO6mmbSKbVWfPaO5s8ZxhbVPJdCUBSqrB32Zz1XGljPg1TyEwNoYxVEaN12vcwvSmcwQBqnhx/2/9D2/hQ==, tarball: file:projects/arm-appservice.tgz} + resolution: {integrity: sha512-/QFWX/YoXfT4/nIu3WtRXEWrCHYS4rIyFHhm76cNjBIBWjONfbQQZt+jKkrmd7dlUik5t3CUF632KC9zn8vcAA==, tarball: file:projects/arm-appservice.tgz} name: '@rush-temp/arm-appservice' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -11602,7 +11678,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -11615,16 +11691,16 @@ packages: dev: false file:projects/arm-astro.tgz: - resolution: {integrity: sha512-pfLYFPuJdkULAxrnj9El8VyRO+vaLNJgInb0OAgAWYtrvXpn5IUO2uSSrnAFHcQbi405BS+X6gCMQDZhmPC+DA==, tarball: file:projects/arm-astro.tgz} + resolution: {integrity: sha512-9WhXfWQ2IRgbLqxa1ZPCCpAHEIgBGTbEGhQDzaF6tiaOb8iBnU4o2Tjk2WhoN7opuV+opjcsYQOmMfOGsH0iFg==, tarball: file:projects/arm-astro.tgz} name: '@rush-temp/arm-astro' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -11632,7 +11708,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11643,21 +11719,21 @@ packages: dev: false file:projects/arm-attestation.tgz: - resolution: {integrity: sha512-W9YXfJPtPSHsFheKhG9b0Z6mwPLgf0W//VXP/Y6WmgUwddcKGxG4ltBYSvVGIsweYmCgblAAQ2QeLb9rbR4JmA==, tarball: file:projects/arm-attestation.tgz} + resolution: {integrity: sha512-CC5FeafaJaQQUVap3hU16FnRfk/dH+MQstKPMluYUN3yOSwoSnzOYpUhE2A8A/X3ntd5ZayS3eCQ8KQoDttPqQ==, tarball: file:projects/arm-attestation.tgz} name: '@rush-temp/arm-attestation' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11668,22 +11744,22 @@ packages: dev: false file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-4YEuNADyUOVmwESJbnO5v1amsCokgIjVBv1+7JDeFyeVOHwYIsI5CBWBccu40Y5lXa+OuuinEf6SyRF8+hFq6Q==, tarball: file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-SE+y4mqIuScTDDH6hBlhT41I+8QTNBR9wA9540ymYjYAlchKpYGojSrxiTZnxKGnQ9ioWaikEWPkoKY9eALJdA==, tarball: file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-authorization-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11694,23 +11770,23 @@ packages: dev: false file:projects/arm-authorization.tgz: - resolution: {integrity: sha512-UAaYVqdL+QU7UGdM4HnWbie2G6uofI3o9ATwno6B8gPQoWXO6u77l7yXPVX79p84dqt9HnJxMFwwjQXfm6wkVw==, tarball: file:projects/arm-authorization.tgz} + resolution: {integrity: sha512-y3ID88BoTobWQ90d8h8i21UIMdjhhjnCfkIaHG4XYDzucNddjyvRl1LYHCRIheUBgbp6sKuUsIUymAmOh8870w==, tarball: file:projects/arm-authorization.tgz} name: '@rush-temp/arm-authorization' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11721,22 +11797,22 @@ packages: dev: false file:projects/arm-automanage.tgz: - resolution: {integrity: sha512-WZJfe67gslSRoYPk6z6Qfoi1fwxp2GEwDB8elkicB5wKc7o10NsgpKrPHJr180zGEaqgP5AVjDXU4i9qDMox4g==, tarball: file:projects/arm-automanage.tgz} + resolution: {integrity: sha512-TrPitisx+wX1fn+WDN5+Imn4wpDYRRki5hMTk2AxNwAVSTekGwdrgahKvchCEybBAw+Ow6UVvpBnxtCddFQ6bw==, tarball: file:projects/arm-automanage.tgz} name: '@rush-temp/arm-automanage' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11747,23 +11823,23 @@ packages: dev: false file:projects/arm-automation.tgz: - resolution: {integrity: sha512-fU4K8Q56JPN5PdbmdhCozG+AxiyjQnD2yV3AQC4UmhSYtQqnf5iw+98MMNS2Rv3fybvvFJ6gBKF/O0am/EhX4A==, tarball: file:projects/arm-automation.tgz} + resolution: {integrity: sha512-ZYcv8NIFOEDa/+Hr6hyv6D411e5d6jgSvcDP3R4o+XPXVYeBgHnfJuFkHiawfZ9lsfupgr4jZvXodhkB+MCe1Q==, tarball: file:projects/arm-automation.tgz} name: '@rush-temp/arm-automation' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11774,23 +11850,23 @@ packages: dev: false file:projects/arm-avs.tgz: - resolution: {integrity: sha512-vvOMpwBsj6dUZhJa2p8KBuZ76OXRloJt9IzrwLN3OduAcirG/1kXWajm7ttOKv7kbgdkgYosdoVW/y5K3+ZdUg==, tarball: file:projects/arm-avs.tgz} + resolution: {integrity: sha512-LK0uvecM2hEjGv0O4sWN3GU2z/Aq5IuFulZuA4/GBWMeKaLG26v15677xEJ9aTVSOHttQG5A7VubPKPy2hhnjg==, tarball: file:projects/arm-avs.tgz} name: '@rush-temp/arm-avs' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11801,22 +11877,22 @@ packages: dev: false file:projects/arm-azureadexternalidentities.tgz: - resolution: {integrity: sha512-rjtKIBKvq6ND8N2gDtElANgFd5mLw7fQFEA8cC+7OomaKl5R5QvAjeeLv6fAKgMZK5qpFIGFVzb3yhBrduc34g==, tarball: file:projects/arm-azureadexternalidentities.tgz} + resolution: {integrity: sha512-D2DwhGegbgi6zoaZVoPaiWck6nevz5Nr5XjYDXCEneOhKC5yXdC4d+tJ2RVGHO7lXqmQD0CXbpnm+VZoHHxKaA==, tarball: file:projects/arm-azureadexternalidentities.tgz} name: '@rush-temp/arm-azureadexternalidentities' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11827,21 +11903,21 @@ packages: dev: false file:projects/arm-azurestack.tgz: - resolution: {integrity: sha512-wrt99LenEOf4kvtZZgZ0KjUceMo53uXxApffabcRTHH+Ld/YJuj+Mc3O7n8VE4nrQm7XkBrNotHyZ5o0WBBqKQ==, tarball: file:projects/arm-azurestack.tgz} + resolution: {integrity: sha512-hK5vGbD/wzs92bRHzjfoiMgmtULUmvBX/Dy4glEGxjdB2nVJj2YJQnHrEJEGqXsxsrAKCi4HLkPN7JOgzS+uIQ==, tarball: file:projects/arm-azurestack.tgz} name: '@rush-temp/arm-azurestack' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11852,23 +11928,23 @@ packages: dev: false file:projects/arm-azurestackhci.tgz: - resolution: {integrity: sha512-GsBAUCcQuPH/hPNL/XTrlL2Z9og7Em4vq/WV2UL54qxKYd9CPCyHr8hm30qhvLDVoe9OB6Nf5emR0FEbdpzm3A==, tarball: file:projects/arm-azurestackhci.tgz} + resolution: {integrity: sha512-wnd5b+JTHJgKEzDePeSWPoY+ff9OT9kOF8KTRhjLNDQzuXvkt6fBpQujQ2DxsPazK2eT0jC6WFff4Bn5qd67Og==, tarball: file:projects/arm-azurestackhci.tgz} name: '@rush-temp/arm-azurestackhci' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11879,16 +11955,16 @@ packages: dev: false file:projects/arm-baremetalinfrastructure.tgz: - resolution: {integrity: sha512-KurIkPZ2lUf3lMlZ4lNcbkzxlmTtzgoENoiODXck+4dtqb1FvRFugG35AOdhIH9F+gblOhQV6faOpVq/N00bDw==, tarball: file:projects/arm-baremetalinfrastructure.tgz} + resolution: {integrity: sha512-kFoYePU/3fnaxe08ofujx8mhP9UXbkLl78TUGykAWG68KD66Q5lMFfhKxbu3tL34Q/h13YSKCqETwwHk4Yq1Kw==, tarball: file:projects/arm-baremetalinfrastructure.tgz} name: '@rush-temp/arm-baremetalinfrastructure' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -11896,7 +11972,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11907,16 +11983,16 @@ packages: dev: false file:projects/arm-batch.tgz: - resolution: {integrity: sha512-fdcZKOWwbBbDHqIbe0j8phG0vzRbjF1ZqKG1d/9FafYnu5l3QtPaCboBY/RYlw+CRarYp9yxdFrEnM8IcrJRSQ==, tarball: file:projects/arm-batch.tgz} + resolution: {integrity: sha512-V6C++GjFY5KAp/hFheQfC9oNTOAVRQL9/Rl6ENTAb4UvPp2+Vu+7UQD01g+dwjQln3AcO/Kyf+clRUoFyXH4/g==, tarball: file:projects/arm-batch.tgz} name: '@rush-temp/arm-batch' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -11924,7 +12000,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11935,22 +12011,22 @@ packages: dev: false file:projects/arm-billing.tgz: - resolution: {integrity: sha512-GEUeAL6i+mZgPNLvk9zwai9NrPtFdscZzU1L/CeLqcKntRJQeYYZWU31LlbwaLQsoiwJm1u2Z4ESqXswcHqsQg==, tarball: file:projects/arm-billing.tgz} + resolution: {integrity: sha512-8Ar2AtBLcmHBiIqIcd0WaKxupb6+mw5/2dV01aDSOELTcJiUesXoPCWHXBeNlOCsp0ozacWvBcs7my/kOCt/2Q==, tarball: file:projects/arm-billing.tgz} name: '@rush-temp/arm-billing' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11961,22 +12037,22 @@ packages: dev: false file:projects/arm-billingbenefits.tgz: - resolution: {integrity: sha512-A65JYJp+n/aj/DdNeMs3KEE1iPkRUbVk4L2dCidglVInOSYGdvCv8tAyBxEbJo82KcN4lpRUlXl/T95na3nNDw==, tarball: file:projects/arm-billingbenefits.tgz} + resolution: {integrity: sha512-mnDKuxl54/MRRwmaR2neH1bb23gs8aMaZOwCPOIsALGwGAvoGyWJFH5TbSMo+eVhkfMSlvgVSB7pxpwFWV2PTw==, tarball: file:projects/arm-billingbenefits.tgz} name: '@rush-temp/arm-billingbenefits' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11987,23 +12063,23 @@ packages: dev: false file:projects/arm-botservice.tgz: - resolution: {integrity: sha512-0J61YSYrnqNHnwt+3iVjsB7P8iw6OfCyp+jAKIAE6QMciS0iVzTAXepo6yQdTTgPUOhKyD5a9nZnBVRfStofAg==, tarball: file:projects/arm-botservice.tgz} + resolution: {integrity: sha512-TEuEGBl+SWiYAmnrlhJbDiF0cYhEjQ700OYM/bk5Ol0Wepc0hEF7vGqDthzObsjy6MSvNhbKzQEWWEieliC5Sg==, tarball: file:projects/arm-botservice.tgz} name: '@rush-temp/arm-botservice' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12014,23 +12090,23 @@ packages: dev: false file:projects/arm-cdn.tgz: - resolution: {integrity: sha512-G2My3ELDLnMAu1hU1+U8cWflO3o4jnvXZoRl5tc7kbzjKk2/olbkV79sTEHsFWDzn6B6OWtXCE422YKUD89Vrw==, tarball: file:projects/arm-cdn.tgz} + resolution: {integrity: sha512-hdoZpJkxaB/yaRxVRdvNAraroDsYzLyO+glVTjNQ1AMaxOmTBt/Lh7QGjbqRlOLViXBCom9kBxoJ8L3NHTqfMw==, tarball: file:projects/arm-cdn.tgz} name: '@rush-temp/arm-cdn' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12041,21 +12117,21 @@ packages: dev: false file:projects/arm-changeanalysis.tgz: - resolution: {integrity: sha512-DsaCiFJEbPuBwYg10wpaeEdE3xRlpV73CgAEi8nWif9kv+JRH+AiYndpFgazGrJcnHbXoWy1HRoihs4uSRqlkQ==, tarball: file:projects/arm-changeanalysis.tgz} + resolution: {integrity: sha512-wr+WPh67FWR2NRQKgrbkqsy/U4CvwO7/gbotwbxLolAiDKZxPmVw+OV8UHihBcgaJ2l80xeHbOvTlg8KAwH/8Q==, tarball: file:projects/arm-changeanalysis.tgz} name: '@rush-temp/arm-changeanalysis' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12066,21 +12142,21 @@ packages: dev: false file:projects/arm-changes.tgz: - resolution: {integrity: sha512-b9VZ25FT7P33XmmdcqIuurof8/qlDCefvuFzJZcP5W8vww54laviQp3OZMe21gZNoTF0tJCAsisUwCRFtGkfaQ==, tarball: file:projects/arm-changes.tgz} + resolution: {integrity: sha512-n3UKJZpU3gfZLABS+bNjCW0zmXeYr49am/B9uSITckGvuhu/JqN8O+MqSKG2yhZ+0+rcH68DRD1+xN4EfTObEg==, tarball: file:projects/arm-changes.tgz} name: '@rush-temp/arm-changes' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12091,17 +12167,17 @@ packages: dev: false file:projects/arm-chaos.tgz: - resolution: {integrity: sha512-AYe2IRqlS5udUUwHLB+nBpfwEGN+g3f+4mU3aYzFq4VPJa0+sn4WyhR9uq1kH2ZM1N7mHyMOwqmbF16k95RXrA==, tarball: file:projects/arm-chaos.tgz} + resolution: {integrity: sha512-D/9pHkYWHNIGglI/J6hu38+kHRLQI9k+XjIhJBi4LcFHzCKJ8vrF3lbO05y+p338a2mteTddG749eNGnfpRDQA==, tarball: file:projects/arm-chaos.tgz} name: '@rush-temp/arm-chaos' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/arm-cosmosdb': 16.0.0-beta.6 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12109,7 +12185,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12120,23 +12196,23 @@ packages: dev: false file:projects/arm-cognitiveservices.tgz: - resolution: {integrity: sha512-9v35I+3xKtYLWq9DIAQqu5k0btXBqcThaBewMC4E5FjwyNUb8eEHi2c/602OiAx8MP7UgxJm05ZTmxCOkamXYw==, tarball: file:projects/arm-cognitiveservices.tgz} + resolution: {integrity: sha512-ceoamDcbMZIYDtblhTT5SzwQB/f/ZfOeZTKmgCrIWOgRqq7EblaCWEsPgE81I8b5xs6If+DdhtgT+Ihysyz+Pw==, tarball: file:projects/arm-cognitiveservices.tgz} name: '@rush-temp/arm-cognitiveservices' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12147,22 +12223,22 @@ packages: dev: false file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-KtJEFzp8CujGIy5qfF93himm77C3TyZBSIWoYy+S3Blenj+D7Sx4IRCSG18goRF2MZPzBk8+DaADJ9jysCci2g==, tarball: file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-cuP9Lj6fq8aOX+H2Gb/o7cKZQ+IOaADcMQ19mgt5epCNgWsNZeXqYm0ypDcyAo1D5FdU2NbQ8576vKXphvX39w==, tarball: file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-commerce-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12173,21 +12249,21 @@ packages: dev: false file:projects/arm-commerce.tgz: - resolution: {integrity: sha512-rDkddX2oFvwSl3L1L46ftJvLhW889lRV9x814MVYX3SPzba70rjRpF9i/WtgcePpk/GO50bly0HEhSRA+5+g4g==, tarball: file:projects/arm-commerce.tgz} + resolution: {integrity: sha512-YBAusB0+e3cjkTEQMfr3Q8xAxRRS0JbcnVmnt9cyB3MC02XeXGB+oIjKP/TY08cq1IT9HHTKosMrWfKKStGf9g==, tarball: file:projects/arm-commerce.tgz} name: '@rush-temp/arm-commerce' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12198,21 +12274,21 @@ packages: dev: false file:projects/arm-commitmentplans.tgz: - resolution: {integrity: sha512-8E4bEbSKH3YBk46CzI7NvKJMvaydAv8IPy8jGbu8MoLoDjp2RiGVWu2VyExx6Fw99kt1AGk+V46xF0e4PTwtcg==, tarball: file:projects/arm-commitmentplans.tgz} + resolution: {integrity: sha512-JJ0/r61xKy+uCmtVCD0p+dATwjU3ygUHe93NgfBnGqM6n5k2+Ai3qKIJqz3Wi44e2XEDEFywK6aN76zOZZToBw==, tarball: file:projects/arm-commitmentplans.tgz} name: '@rush-temp/arm-commitmentplans' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12223,16 +12299,16 @@ packages: dev: false file:projects/arm-communication.tgz: - resolution: {integrity: sha512-uPS2+p1oI2HYbDoM/nIA24Zp4g4luf44EwFtnc/IcqJbC5WXGUyw5XpP521K/LRjqrhcpvYnJUTXvsihMjAXGg==, tarball: file:projects/arm-communication.tgz} + resolution: {integrity: sha512-28goF7jU56MIHXDocfXRU5JuIZswJWtgWggniRkeihyxhqHlKZ8C/piQs9oz4H66tkJT1hZJyNfBdUZTXIOjKg==, tarball: file:projects/arm-communication.tgz} name: '@rush-temp/arm-communication' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12240,7 +12316,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12251,17 +12327,17 @@ packages: dev: false file:projects/arm-compute-1.tgz: - resolution: {integrity: sha512-2pDKAUFh7gYxN+AxznwxTdgYakg6UZrlVhES6ckbX0YlQnf4DeDXa8Pa6HUMK9ubYaaVjuH8KQOLN/cJoeIDiA==, tarball: file:projects/arm-compute-1.tgz} + resolution: {integrity: sha512-GmSc4au3ItOwRPZuFTvlOQ405FH/44+FrzSso66b7gXaoDiVs2WpB4lEtjJsiPkL88hmErJG+H8zyBj4dfIGpQ==, tarball: file:projects/arm-compute-1.tgz} name: '@rush-temp/arm-compute-1' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/arm-network': 32.2.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12269,7 +12345,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12280,23 +12356,23 @@ packages: dev: false file:projects/arm-compute-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-sugpl9M5blLaRNbg6GQn76g7xom9iu1jKejYj5KeNhn5iHgbpHPXjo4OQcs8IRmwd2tRnkLwksIuAxm2W6QuYw==, tarball: file:projects/arm-compute-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-wSxjWtY7Gayq5u+Vrbc5SF8S65rlr/heUQBVi59n/ceKQ9wwSmFFIANjvHGBCVjeEV8h/STQRyo9ohorR1BqGA==, tarball: file:projects/arm-compute-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-compute-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12307,16 +12383,16 @@ packages: dev: false file:projects/arm-compute.tgz: - resolution: {integrity: sha512-nnxE+DnW6deUaCiJsb6Vdz1zOTzv6uoW3B0vNx42bn8LVf7O84d/0k60ls7Nbp77vr2C97NnkISLcLPWhUmzwg==, tarball: file:projects/arm-compute.tgz} + resolution: {integrity: sha512-rfM24fKeGnO3k+9xouP8VC9tZO37dejzMq69JJfgX+QQ03NhhI0+7W1Sfydq6z+nHpvT0rZ5dq55sG24fSouGA==, tarball: file:projects/arm-compute.tgz} name: '@rush-temp/arm-compute' version: 0.0.0 dependencies: '@azure/arm-network': 32.2.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -12338,7 +12414,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -12351,23 +12427,23 @@ packages: dev: false file:projects/arm-confidentialledger.tgz: - resolution: {integrity: sha512-3wcjT0JV7C63qdIAx0daBkxtRYAD86cGgwmM8bUNhScppREhP+LDLpAQKr07Dc+CNmtDTZyIf1+CvOlChK3NYw==, tarball: file:projects/arm-confidentialledger.tgz} + resolution: {integrity: sha512-pBzv+N2QSgppOXMHAJzMkaE/qaiUmi/ecnoLl+UGY6ejTy3yIhiM2pgeAULdLqwe2J7L8R+LIzhAbNz+tv1O6Q==, tarball: file:projects/arm-confidentialledger.tgz} name: '@rush-temp/arm-confidentialledger' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12378,16 +12454,16 @@ packages: dev: false file:projects/arm-confluent.tgz: - resolution: {integrity: sha512-2vzIrVRG8t/kToRBElJNytrUk5YKVVhc1c0boPHZ/FZzHvRT6cLvfpXN1XTyNQdUWde5jpLMPe6vSC1w9fkHUQ==, tarball: file:projects/arm-confluent.tgz} + resolution: {integrity: sha512-4y6dOLhKtG2MSxZ2bmgTHIzUVjrQ0PwFxsTqjIOBbkfGtp814bTA++xOgnrE9vmVEaC+ZkdAMNBd1FmBfq001g==, tarball: file:projects/arm-confluent.tgz} name: '@rush-temp/arm-confluent' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12395,7 +12471,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12406,23 +12482,23 @@ packages: dev: false file:projects/arm-connectedvmware.tgz: - resolution: {integrity: sha512-w1gIubjRTzBHfnaTbZz/c1dP5955JMMUqizIoyNLeoTWTDWehQxSVqZNYnch91imOTmzB+TxU7GlIsntOJwL+g==, tarball: file:projects/arm-connectedvmware.tgz} + resolution: {integrity: sha512-T5BQynIcWR+pR0OBRmCgiNLPARef7bQptKTgvCsnPfsewfWLV3YMa85iAcoPLMduQ5/JtR5DCET5pyDFPjKoEA==, tarball: file:projects/arm-connectedvmware.tgz} name: '@rush-temp/arm-connectedvmware' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12433,22 +12509,22 @@ packages: dev: false file:projects/arm-consumption.tgz: - resolution: {integrity: sha512-2FDsNPauBwRkdMElXzq9rWo4XkrVxbLu9qqIOG6riyhoLTT+LgA0TJEV+iG6gu/NgRng840zTpNo8yuPQGGWQA==, tarball: file:projects/arm-consumption.tgz} + resolution: {integrity: sha512-gIGza2f9pMwhSMoWvuoOMowtkiBRZ4FLs4eo3jWkQOdfUV8yW7Aqs4pcve0CLxCtD7juxoQ+VsCyAbJNwiPIag==, tarball: file:projects/arm-consumption.tgz} name: '@rush-temp/arm-consumption' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12459,23 +12535,23 @@ packages: dev: false file:projects/arm-containerinstance.tgz: - resolution: {integrity: sha512-xJAXM2Ld+QXlUS+lRl2h8kvvABj5+B04QH+tBPup9lHEzMW058av9Zg1Q2FTerpNTXl9AtrIY7fiOLzPoS/UaA==, tarball: file:projects/arm-containerinstance.tgz} + resolution: {integrity: sha512-Jh00YMt5IjPlB570BSjOupuw8nrDwcPaRinDvCspv1XfVTn8ca64lljJkn6YVvg7Ewka5vm+k2xjgje+wgHJug==, tarball: file:projects/arm-containerinstance.tgz} name: '@rush-temp/arm-containerinstance' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12486,16 +12562,16 @@ packages: dev: false file:projects/arm-containerregistry.tgz: - resolution: {integrity: sha512-UtNY5pFfILJVY5uKq3grSAj/eX8knsdw/pjkfvOgFOUMLn+Zc2KTgJ4sX1fqUGLFz4o1OJ4NAc9uSbOIdBd5Cw==, tarball: file:projects/arm-containerregistry.tgz} + resolution: {integrity: sha512-eGal/cz0lUPpDx7YSpPlprQK9yKIV0jJ52YANdbKgTKQi11dEyXhB+NFfUmBxpk/hGAYSCYdQRtXEij3gUSDWg==, tarball: file:projects/arm-containerregistry.tgz} name: '@rush-temp/arm-containerregistry' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12503,7 +12579,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12514,16 +12590,16 @@ packages: dev: false file:projects/arm-containerservice-1.tgz: - resolution: {integrity: sha512-CgE1+0qzGsKIGBfvZjAaeQ3jI+BkFnyy2s1J2hS/GDxqqS6ONXukQkR+wtq8chLjG5/Rkp3E7vNw8UO/iYLsAw==, tarball: file:projects/arm-containerservice-1.tgz} + resolution: {integrity: sha512-6T0lGGJ3XCcGfzzlWPbJImUGNvh0mPDht6imcPFhw/LHb4eLsVi53/Kp6JLQKbAS8UTpXuWtQwGAHP3blgWguA==, tarball: file:projects/arm-containerservice-1.tgz} name: '@rush-temp/arm-containerservice-1' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12531,7 +12607,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12542,15 +12618,15 @@ packages: dev: false file:projects/arm-containerservice.tgz: - resolution: {integrity: sha512-mnoUjEOVqAMufPECqy+8yqBMX/PI8zFX8yfgbPgXC6vtxk26pLTAqEo9NfVkzboai86QG1zLE8Bjy98RhV4gOw==, tarball: file:projects/arm-containerservice.tgz} + resolution: {integrity: sha512-EEAj4QAchBgQ5gEyUXlyVFbt6rYVQlyQsmNDEl/xF/4/9fZe25OPTHhbQqBjg3BhyCzPI/vzVpFu6PxaKHBKVQ==, tarball: file:projects/arm-containerservice.tgz} name: '@rush-temp/arm-containerservice' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -12572,7 +12648,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -12585,16 +12661,16 @@ packages: dev: false file:projects/arm-containerservicefleet.tgz: - resolution: {integrity: sha512-/O2LUTrmXAZhj+9FnT4Ai7koBQY/Mjl6hgjFNcIvWhv/DZV/sOUAdGUE+1L6X37a/NMegSmFEzrvwA/7w1Zvsw==, tarball: file:projects/arm-containerservicefleet.tgz} + resolution: {integrity: sha512-L7FZF+zECSYP3h0lGOxlcba5MIoAaS4cLDcLw9uI7OgkNOeXvwVp3AIyVM0gY0zQtqMMV8yOHSdMnb0aBGNa5w==, tarball: file:projects/arm-containerservicefleet.tgz} name: '@rush-temp/arm-containerservicefleet' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12602,7 +12678,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12613,16 +12689,16 @@ packages: dev: false file:projects/arm-cosmosdb.tgz: - resolution: {integrity: sha512-ZLOw/zxspfcaDH8PvlS0yHmTEUeyQZ4JAW3tBxOgiAoLllY0qXvrfYEYH/WY8bq8dL5elf1Krb9WuKe0IH3PxQ==, tarball: file:projects/arm-cosmosdb.tgz} + resolution: {integrity: sha512-D1OaeYIGlvVSBRKL77fzRSsc7CLEJfB/VT+MeX7zxhr04M6LNfpT8M3Gxs19IFYtRy3V069aQ0MbeSLQ2nyHBw==, tarball: file:projects/arm-cosmosdb.tgz} name: '@rush-temp/arm-cosmosdb' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12630,7 +12706,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12641,23 +12717,23 @@ packages: dev: false file:projects/arm-cosmosdbforpostgresql.tgz: - resolution: {integrity: sha512-1kFWZx86s/1MB7d50kKIqEXOd20/HYaa76Vr6znMZ1oi7VhNM82bwcFXhqr/Ha8QJp7+tp95dRGyOkZPX4Q6OQ==, tarball: file:projects/arm-cosmosdbforpostgresql.tgz} + resolution: {integrity: sha512-oolLtC+bh7x7BChJYnlqD3JM5TOeiyN4KMITqWQnVrzp4kL8W9CSGoT3eCJptWWGLIIdDds5pUx07PbB2VyK2w==, tarball: file:projects/arm-cosmosdbforpostgresql.tgz} name: '@rush-temp/arm-cosmosdbforpostgresql' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12668,23 +12744,23 @@ packages: dev: false file:projects/arm-costmanagement.tgz: - resolution: {integrity: sha512-tU2jx2ArM2PKoHgCaJni2AJbDbwV6tUw5nsXggsmpilbQrbIrbgkiyj5NqHpsH82QI1Y+SE9R0hPPVtotb6JQQ==, tarball: file:projects/arm-costmanagement.tgz} + resolution: {integrity: sha512-RnC0T5i0CFwhUqicfDmIHEAcGBzNptHyVaS3nWy9Cm1l5+Up5PUf63HnwYcDtIn+E/BZZFFRQa4f5mBJ1eWzSw==, tarball: file:projects/arm-costmanagement.tgz} name: '@rush-temp/arm-costmanagement' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12695,22 +12771,22 @@ packages: dev: false file:projects/arm-customerinsights.tgz: - resolution: {integrity: sha512-DaJqL0jm0XwPs/tGBQilxBHgPGeQSxZOP20x3p5LYEE6M+cX0BFf7KPt+aI9ORzB0VFehMh+c2HNMepUy8ksjA==, tarball: file:projects/arm-customerinsights.tgz} + resolution: {integrity: sha512-7oyjRjn4wwCMSoO2yAYUGqE35HvvvmD+b1b72A/XlCjKky+i0yJBhx49yXxOttek4WzzoaOxDA+CMNaRZKTfwg==, tarball: file:projects/arm-customerinsights.tgz} name: '@rush-temp/arm-customerinsights' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12721,16 +12797,16 @@ packages: dev: false file:projects/arm-dashboard.tgz: - resolution: {integrity: sha512-FUpsLqJ868RBg6ZQlqON83WYnD0bGYjQbMUrRS4Gj5qM6W2oU6+ne/9ixmbnWm5Ol7MjkM/C/yo5HFpKKELZCw==, tarball: file:projects/arm-dashboard.tgz} + resolution: {integrity: sha512-CkZcQ41MBIbPmZsddog4V7xZvYQmGMNe5bJ26IBeELZMLvZdC1U+CEteUQCd+bWEIhm+3SHZeoPohmgvbyHqRQ==, tarball: file:projects/arm-dashboard.tgz} name: '@rush-temp/arm-dashboard' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12738,7 +12814,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12749,23 +12825,23 @@ packages: dev: false file:projects/arm-databox.tgz: - resolution: {integrity: sha512-95x+lKer6oJ/LYK5mUj//gdCQO3LciDM45igpyBCF0nkTXEddLM2MfM7Puiiozs0FfyykLUwVBxpnoLHE7IdvQ==, tarball: file:projects/arm-databox.tgz} + resolution: {integrity: sha512-9Ho7a21W7lc5nfCXQMrjEatGfcwGbA4n+tEiRUwhFc5iF6BCdw5yP+qU192soLinMW1WHagom40zXT3/suIJ4w==, tarball: file:projects/arm-databox.tgz} name: '@rush-temp/arm-databox' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12776,23 +12852,23 @@ packages: dev: false file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-aUw/CoDH0URZhZMkb1n15XCPdGJ6kMIZTRxR3Aiio1FEy+s02GYAmtiwWDybhHtfy89U1x2deFaqmMmN5ggDiw==, tarball: file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-2KU2P7WPFDddoatPMuhvDwICItynOhnR0YGUzONCXjgcyZ5nwmA/Nb/X9T5NHrjLxP72sOSMHnhwVu47fHoPTQ==, tarball: file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-databoxedge-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12803,22 +12879,22 @@ packages: dev: false file:projects/arm-databoxedge.tgz: - resolution: {integrity: sha512-qoayTHHIiQQzO5sYgATMJ/TdqpfGaInAWAwUa4RB12pw19AhyrcUj19X0F4npIHhWcA1E8W40sg+xPO0j4K4Ig==, tarball: file:projects/arm-databoxedge.tgz} + resolution: {integrity: sha512-DWu7ADx8EkbeH9DsufkkjANTx0p+g301D4mFVpbJMXC0MarD64knAGX8Q9PTD3Hb8TdNRK5GRkwnRPyR1Eygvg==, tarball: file:projects/arm-databoxedge.tgz} name: '@rush-temp/arm-databoxedge' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12829,16 +12905,16 @@ packages: dev: false file:projects/arm-databricks.tgz: - resolution: {integrity: sha512-n/SMNzAiyfN/lFpt5YJzd32fES9ze8jGLUbLkIxNW7w6TdqkPVXTMB7B6EcLuqmxFJPfek4A2LMJu2dBx+UhcA==, tarball: file:projects/arm-databricks.tgz} + resolution: {integrity: sha512-WAtAXKJCfNKF/uJy3vZmZ+CE/PXZa8uOReOOz0NbfHdUo9ompAUAH291ZpBMP/oyMavRNBCIqrHFcUbnLVnHdw==, tarball: file:projects/arm-databricks.tgz} name: '@rush-temp/arm-databricks' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12846,7 +12922,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12857,22 +12933,22 @@ packages: dev: false file:projects/arm-datacatalog.tgz: - resolution: {integrity: sha512-iG9whd+FoDBL6MT9pzGFw7LY7lhcOx8OOZR6WzTzzkxD/PPfJDSNxMICeWrIwseaUKHEQ9urN2FhDCkAnTQ7tQ==, tarball: file:projects/arm-datacatalog.tgz} + resolution: {integrity: sha512-G3ZU/CjjEMr60xcEIdmS9mKFc0xdvut+pWl3VouNsC564gB21KvYoyzay77yUzbBJlU99fAmkWyUovFoO5fdSA==, tarball: file:projects/arm-datacatalog.tgz} name: '@rush-temp/arm-datacatalog' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12883,16 +12959,16 @@ packages: dev: false file:projects/arm-datadog.tgz: - resolution: {integrity: sha512-m7YpvxhygnEI2hacwst8DGNvAY77ZK1NpYENUa1210NPWMZgEl1HKQOKJ1yL6vLwC0x5i99k7cOhiSVVU/qZJw==, tarball: file:projects/arm-datadog.tgz} + resolution: {integrity: sha512-zdSyPOGITXN9mRdxHC+LFI4f3ZOh+hP/ZckLNl84YXRVqSQoB1QQKawY2SCvqJ0tncIqBASHXMfRUt3KzC7gdQ==, tarball: file:projects/arm-datadog.tgz} name: '@rush-temp/arm-datadog' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12900,7 +12976,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12911,16 +12987,16 @@ packages: dev: false file:projects/arm-datafactory.tgz: - resolution: {integrity: sha512-QKVsn1q48eaGWWjThiViemDuRkhUPRV7LbClKMNFHVQ34AvGNqq0MudYx9QuAqXOKtYelXwZb5fjlPcNDRolxA==, tarball: file:projects/arm-datafactory.tgz} + resolution: {integrity: sha512-8AsJuc9IpOlfzJlkgk4zIABqvfio4qXh9YvPN5WlC/QBaB7U0/5fWXq1dzrZcLJvOGo8ePvJo79dZg2uDdvTcQ==, tarball: file:projects/arm-datafactory.tgz} name: '@rush-temp/arm-datafactory' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12928,7 +13004,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12939,22 +13015,22 @@ packages: dev: false file:projects/arm-datalake-analytics.tgz: - resolution: {integrity: sha512-QL5xwYAg2Qkccprt0iBNs1d9gQmavTnls/LgX+lQlCDTafSagMzKyRkLU/5xFFtNaDK0O/cAo/JePDAxi7lD+g==, tarball: file:projects/arm-datalake-analytics.tgz} + resolution: {integrity: sha512-yzVw8Q2+JxjUvyeRTbq/j0vQhkEHW8t6TR3fZ9mECDlaG8Q+N+NKmrbTAomwbRbNPlgFKukLP7r+rHjXunD69w==, tarball: file:projects/arm-datalake-analytics.tgz} name: '@rush-temp/arm-datalake-analytics' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12965,22 +13041,22 @@ packages: dev: false file:projects/arm-datamigration.tgz: - resolution: {integrity: sha512-2tfaY9yVh5aJuPz8eS1/PbLP9E3nJIbyWHVanL347BOpqPIQkYe2zHSsxoUahOBqJqB90g36FOQWNo/m6Eiu7w==, tarball: file:projects/arm-datamigration.tgz} + resolution: {integrity: sha512-kv/yjdIuPAYgY/6GWaiPjnu31bSTCwHvfHaqsZVaKR/4+4b7AauMO3KuDdr8UkkWRyhIkUFI2RvxjHmi2b5+Gg==, tarball: file:projects/arm-datamigration.tgz} name: '@rush-temp/arm-datamigration' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12991,16 +13067,16 @@ packages: dev: false file:projects/arm-dataprotection.tgz: - resolution: {integrity: sha512-RqdUOXE/gW+7zXfFneqfQFn9j7PgM9AsXFc0n8xMzrRGrCz+Uqh6ia4cGW3A4wehnQpz2gYXDW9wJHMLQeT7Rw==, tarball: file:projects/arm-dataprotection.tgz} + resolution: {integrity: sha512-JtJ/t64GsctvAnLtCM4/55fMH379WeaFMASG1sW5DJ3x2C+n02sPVRM8Z6Mu/T32JXZwJf0KSj+7wzXBQhAjIQ==, tarball: file:projects/arm-dataprotection.tgz} name: '@rush-temp/arm-dataprotection' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -13008,7 +13084,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13019,23 +13095,23 @@ packages: dev: false file:projects/arm-defendereasm.tgz: - resolution: {integrity: sha512-cgw3iDKW2y2/oMPVBzv5NqsaTleca6OtAVz8eE2oNT+F9oQqPazDj4faSRDacLp5f6KqK6xFic6QjskNxXjcqA==, tarball: file:projects/arm-defendereasm.tgz} + resolution: {integrity: sha512-ivDbQzCDJKN8hQwxYGFMkn+vJAjxdvzQ8lYzHqyMxBc/3qifsKwEPAOcZ+TUiD8+c8hsKTmRPaHu4UZKaJHsIA==, tarball: file:projects/arm-defendereasm.tgz} name: '@rush-temp/arm-defendereasm' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13046,22 +13122,22 @@ packages: dev: false file:projects/arm-deploymentmanager.tgz: - resolution: {integrity: sha512-L1tbQid0NzP48zct5cpTnU7J/5GrGMKoQFjx/pvenb9fY8mSPQre8CHc73Y5zyerehemv6eRjKy7eU8NDcV1zg==, tarball: file:projects/arm-deploymentmanager.tgz} + resolution: {integrity: sha512-tfRJMGzxOftlogx/5EpDXnGQCHTYaHfKmkt4VKXB3LI5phOLpybJQt3GwHzErp5a3xz/TcpYT2otMdZBGoNLlA==, tarball: file:projects/arm-deploymentmanager.tgz} name: '@rush-temp/arm-deploymentmanager' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13072,22 +13148,22 @@ packages: dev: false file:projects/arm-desktopvirtualization.tgz: - resolution: {integrity: sha512-L7sX1Hp5EvvKokbHuNAvLkgBkFbo915Y+RGdasvN1LT81KW0AceqnoWLIQksovU/wM6I7FN0OGIEFisODYzsIg==, tarball: file:projects/arm-desktopvirtualization.tgz} + resolution: {integrity: sha512-zV09nRqplUpK5w5By61XKVG/v70haO0z+1yA3ZtgMinQyV6qwGyRf8BQAt1VPWV5sgUiL6MtkFPKrJe3oNgctA==, tarball: file:projects/arm-desktopvirtualization.tgz} name: '@rush-temp/arm-desktopvirtualization' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13098,23 +13174,23 @@ packages: dev: false file:projects/arm-devcenter.tgz: - resolution: {integrity: sha512-CSmAgzjlR+IZFb5bp67z2SVFs9NQ9LS0VRLKZzpwCRkplrQBfMMPeu7/z/5vlc2QaHUyj5GEXWcUl3tqa3Yk0A==, tarball: file:projects/arm-devcenter.tgz} + resolution: {integrity: sha512-J2lsKIst4SNdWTPVT4yPLwK8a/PL+6OBYrjvqM6kqp/MTpGbVppzDEgpjYLyf2F/YGMT0vKsCx2OZmdfz3TTvQ==, tarball: file:projects/arm-devcenter.tgz} name: '@rush-temp/arm-devcenter' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13125,22 +13201,22 @@ packages: dev: false file:projects/arm-devhub.tgz: - resolution: {integrity: sha512-aCEH3Yr5kA48YQh5EE7OIP0hieQ37FXMh7vNdh7xvd45KAI1e77Q99uhvqvNAam+mNYNo8jo+nn3Rl7cpqv4mg==, tarball: file:projects/arm-devhub.tgz} + resolution: {integrity: sha512-0OwGVUxeTCi2Z67hUZA+iIq2OcgIaU8R0S+EGFKN3DZ/tQlkV0iLLcXHPO3BNl5Qjc42eLPPIvlUbCa94hSQ9Q==, tarball: file:projects/arm-devhub.tgz} name: '@rush-temp/arm-devhub' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13151,23 +13227,23 @@ packages: dev: false file:projects/arm-deviceprovisioningservices.tgz: - resolution: {integrity: sha512-mL5ybtkui/g7nDHobTu3HbF5JqO4Z6MjqZaWUuvR0OnDCTqOsHdS835yDQ5tQeKHLwlZjQF4YexqsrD49yZVkA==, tarball: file:projects/arm-deviceprovisioningservices.tgz} + resolution: {integrity: sha512-95AnQnzoBbVQSuQVQqWUOiZc43cePOTKXhWpdg5G3Ve65GIdqhBhkV8c5DuHMPMJl4Cr+5PNpiEjmMqn04uTqg==, tarball: file:projects/arm-deviceprovisioningservices.tgz} name: '@rush-temp/arm-deviceprovisioningservices' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13178,16 +13254,16 @@ packages: dev: false file:projects/arm-deviceupdate.tgz: - resolution: {integrity: sha512-qmHGIRkfxEpsumb3kK5HiS61itFrmyxboJ5AYdNG8gmprcTfyyZ8GQxQz+yh9JkdCoEE1tI/K0O5PmGnIBtEZg==, tarball: file:projects/arm-deviceupdate.tgz} + resolution: {integrity: sha512-7Y0eayeF8+fcdXu5cybX7y411bbB2aD21zJAhQmui4/1i1x/VS95rRsUd5L0KgZbl9axpafTRqbho/m1W4EphQ==, tarball: file:projects/arm-deviceupdate.tgz} name: '@rush-temp/arm-deviceupdate' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -13195,7 +13271,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13206,22 +13282,22 @@ packages: dev: false file:projects/arm-devspaces.tgz: - resolution: {integrity: sha512-9iJ3t2A5kZDOfeDbN//2WclIOfqc47Ys6GOkIThF9UrcMcT4T9UKsun8jG9qATAciA98dOUgczW0QAiPH1K8bQ==, tarball: file:projects/arm-devspaces.tgz} + resolution: {integrity: sha512-t2kMrMDwxJGkX+Cm5qWFejx4SsnEO34Dmgema+0z3FcNXpawASFceufwbyfWuy4Ub3dTqK8N3x5TW5qWK2sKGw==, tarball: file:projects/arm-devspaces.tgz} name: '@rush-temp/arm-devspaces' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13232,22 +13308,22 @@ packages: dev: false file:projects/arm-devtestlabs.tgz: - resolution: {integrity: sha512-se54K80CkdLHAtjR5pbWbWxJnpmHkHvG8/n9d9b5/16ROIXe1IpZzFVO6HAtSEPZgDClzhLwYKcZIBCO+HuS5g==, tarball: file:projects/arm-devtestlabs.tgz} + resolution: {integrity: sha512-7Zzxwb9A/reKClHoux8ig3fRjvmHzNFmAvMYmbz6hc/gK9cbdQ08CeAaT+juiwIdscGYQVaNdWj1ELzhxb37xA==, tarball: file:projects/arm-devtestlabs.tgz} name: '@rush-temp/arm-devtestlabs' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13258,23 +13334,23 @@ packages: dev: false file:projects/arm-digitaltwins.tgz: - resolution: {integrity: sha512-nAmmiAhrzWJJ8jWgSXh8cWEbGYaHQd6aOnAWjzjK9Tkq2mJ+3JOWDNhuVb0gIWu0dFQl1S7FQ3Vl1gOgI2NEug==, tarball: file:projects/arm-digitaltwins.tgz} + resolution: {integrity: sha512-3nmEXmnL1Uwz8iFOjAlKHXxewcyB4vWwTdjDlgI/pv3getqmbI2iv/kQhv6TQTI6sUeVo4s4+HAho7Dc2+6Eow==, tarball: file:projects/arm-digitaltwins.tgz} name: '@rush-temp/arm-digitaltwins' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13285,23 +13361,23 @@ packages: dev: false file:projects/arm-dns-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-Ci2u7IAGUdydHCe2wmCAROKWx7T97dNixQuMMRDfRUNcOqnSaVHljSUcZPtBehVzkzDP+bNsvAhkIdBsjTGzGA==, tarball: file:projects/arm-dns-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-d1Amw85hvHEi/fTzEtmnf75J/sbvzr8FTa9dot50CZR1l43/LMX0k0TS0bWsQ7j61uRJNYjGsShJdpu1aSGzzw==, tarball: file:projects/arm-dns-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-dns-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13312,22 +13388,22 @@ packages: dev: false file:projects/arm-dns.tgz: - resolution: {integrity: sha512-IB9vkq0I4UsJ8zRn5BmXyLzCuKzl3cPQIGa/cBw2hRdOrv7RZd3NjArVx5AMlCGli2KZGd1R+yFc3CyRKK+Z8g==, tarball: file:projects/arm-dns.tgz} + resolution: {integrity: sha512-BhOUzgZYYDM/0qGf0/B2G8VQRK7fvaRdojljK9iRXReGDUrPGGjNDmDEFh3gjHzmjIQllwvOdmatLSf7FmjHyg==, tarball: file:projects/arm-dns.tgz} name: '@rush-temp/arm-dns' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13338,23 +13414,23 @@ packages: dev: false file:projects/arm-dnsresolver.tgz: - resolution: {integrity: sha512-wB8nKJdqPLraKxFYvDlWZWIZSQHuwm0kvnly/tEntmuwJmTx3Z4vYCJyCSvoJ1FXFqsf7A4IrlZXP7E3ynOKQw==, tarball: file:projects/arm-dnsresolver.tgz} + resolution: {integrity: sha512-3xFMt7gl5l4keq9+6rGly8556taKv/ZLgtXzRbcTibxkP/1OiyPEQ/+77Q0P01I/c45VW9NioiyKz9D8W8br6w==, tarball: file:projects/arm-dnsresolver.tgz} name: '@rush-temp/arm-dnsresolver' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13365,22 +13441,22 @@ packages: dev: false file:projects/arm-domainservices.tgz: - resolution: {integrity: sha512-nOFIdKFHWkJiat01An1GtkiOo5zpzhr2q4ZIm8wjPi0rBAVhoMA3pk7iJLacN0DfsSkw2/WWjBpLIReXRoTp9w==, tarball: file:projects/arm-domainservices.tgz} + resolution: {integrity: sha512-DLla3k4VcNjF3GugA2DkkwdrqrBU4w+VyNQYn2pNBlsYZFaqnVCtv4dv4lyKf485Y01n+HfcH/Ca5Hatmseudg==, tarball: file:projects/arm-domainservices.tgz} name: '@rush-temp/arm-domainservices' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13391,23 +13467,23 @@ packages: dev: false file:projects/arm-dynatrace.tgz: - resolution: {integrity: sha512-Aj7evbmiifblx0tOWQ7wU1HUeoYcuWE2M+aemxezXhfnFGmyUCMOS2UBbSUJpOToJXH7zuh+LPM0VcLaCBKyfw==, tarball: file:projects/arm-dynatrace.tgz} + resolution: {integrity: sha512-AB3PZ5K/JTl3MC2yI6ya929462uDf1rcl9TStJ5OAn+lMOGwiMZN2jBbBYZvuzG3827jYUfjS3BglFpE++rd5A==, tarball: file:projects/arm-dynatrace.tgz} name: '@rush-temp/arm-dynatrace' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13418,22 +13494,22 @@ packages: dev: false file:projects/arm-education.tgz: - resolution: {integrity: sha512-mlkeCAjcXwuHm0TrydOWkbReaCgch+H9eUV6MByE4Fex73ndrHtZ+eH2b4WdtOwxgV9SaIiVilqNbLZ7MqT/eQ==, tarball: file:projects/arm-education.tgz} + resolution: {integrity: sha512-bIEvXOy/NdGOKIIjzI8zDrrtBg+Qop15BbWcuEtvThiFjqMmHnVvl+vkwe2atDsGemd5fVxGN1mHh+E/lKgz/Q==, tarball: file:projects/arm-education.tgz} name: '@rush-temp/arm-education' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13444,23 +13520,23 @@ packages: dev: false file:projects/arm-elastic.tgz: - resolution: {integrity: sha512-OMj/8g2mHmFPvJ4nvNgV1BK9Rd1Zg1jY9z3rL0iyVGdzMyCXPcM5oWUUALKDGv8o1bdcZzB03PQAQxPHeAdxsA==, tarball: file:projects/arm-elastic.tgz} + resolution: {integrity: sha512-OrQ9rRDwqORmRGVNe6r7BiUadq9NM8FbNVLLLTdeIAdjZsA7iwnIHefGOWfpNwh73E9tSXqqsEfqFEHddi0Ipw==, tarball: file:projects/arm-elastic.tgz} name: '@rush-temp/arm-elastic' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13471,16 +13547,16 @@ packages: dev: false file:projects/arm-elasticsan.tgz: - resolution: {integrity: sha512-EAUd2c4BeOeBXQ89uLiqr+PY5EVB2DFZ5PBaRUdUkk+uRa0xQBikVl/SNur7Xv+l29yMfxqnNYc5OSbiAoeolA==, tarball: file:projects/arm-elasticsan.tgz} + resolution: {integrity: sha512-vmNI5cI19QbV3WiP6J23i7VSh8K+hglsYTvs7l6p9s/sgdSCMobVPvdfCihIfQ2DgGnPYthVVajHhmT1Jm/DYA==, tarball: file:projects/arm-elasticsan.tgz} name: '@rush-temp/arm-elasticsan' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -13488,7 +13564,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13499,16 +13575,16 @@ packages: dev: false file:projects/arm-eventgrid.tgz: - resolution: {integrity: sha512-pjBiFum5B8TaJzHGpvGCKvAoOKORPC1LVWvdsNMXjXHMynJOGKP+Ve+W1yI9pOBb6mMLArsYK4kpx4Fzwp5Hgg==, tarball: file:projects/arm-eventgrid.tgz} + resolution: {integrity: sha512-fWLIetf7dckzxUe5esh6TNETTQ0XfcKoZIqRfRTPq6n/lRjLshLxpSlMNZJri6eBjMZZoVFCCbAMhca9UA6MyA==, tarball: file:projects/arm-eventgrid.tgz} name: '@rush-temp/arm-eventgrid' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -13516,7 +13592,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13527,23 +13603,23 @@ packages: dev: false file:projects/arm-eventhub-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-CCLqoFVy77SjW2XxQWJkTpISynFVFrdyMhOJAglpXoPkZ/5cDrNTcxGIcsi7TaHVmnEzPpOH3jwr4sGgwuZ8kQ==, tarball: file:projects/arm-eventhub-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-JAaJGD1tnTE0ly7rneoYftcgHWBC64ka+7joqNSggH+TH3XRml7r5pVvhaYfbCAyivAAuIK6YPwrziNFSkW0ew==, tarball: file:projects/arm-eventhub-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-eventhub-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13554,24 +13630,24 @@ packages: dev: false file:projects/arm-eventhub.tgz: - resolution: {integrity: sha512-yGdta9jk/Vv76SSabezPlh12nUpX1Jt3FBfknm7qjO5/58bdTbUOJ7NM+EGKaMxtBTbChFClqJmMueUb/3mcVQ==, tarball: file:projects/arm-eventhub.tgz} + resolution: {integrity: sha512-0mmGr7D+JOpiJmS4UXxLghHuH96mMVP+3ad9lHIoIWhmySSHg8KHa218RFech9nrMoH6tE/0ETFsBit0XMbTLg==, tarball: file:projects/arm-eventhub.tgz} name: '@rush-temp/arm-eventhub' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/arm-network': 32.2.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13582,23 +13658,23 @@ packages: dev: false file:projects/arm-extendedlocation.tgz: - resolution: {integrity: sha512-6yXtaEcYAXCnPk0yNAQGCfB4NK2NZea1Gbu0UuPWLdHEAcHPzKS3tGvz4NtTj9QsQw02RgTK8QU465Jlf/XVWg==, tarball: file:projects/arm-extendedlocation.tgz} + resolution: {integrity: sha512-K25YK0qmvnTcoNnQ80TAqKTbaGV1kHFLsjH0TF4Ed4UT0kyntsECs/3qRcadj8ODgTxmEl1sQV33khegU1IZoA==, tarball: file:projects/arm-extendedlocation.tgz} name: '@rush-temp/arm-extendedlocation' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13609,21 +13685,21 @@ packages: dev: false file:projects/arm-features.tgz: - resolution: {integrity: sha512-fVMZ3HspsXWI4G4RiWvzZ7wzL5eKJKCI3v8px+tJN5FWi4Eoy32qVrjqVtNn77IzE0JyWwe6DugT3sRu9JrkCw==, tarball: file:projects/arm-features.tgz} + resolution: {integrity: sha512-9f1c5YSs+FnI8FP18n/TY9yv2Qt9s9yXnLVIOJx4NAbmwCgbSA8qORK+hw9tmKrt8yLKxFg3tRKZXPyqAse4Jw==, tarball: file:projects/arm-features.tgz} name: '@rush-temp/arm-features' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13634,22 +13710,22 @@ packages: dev: false file:projects/arm-fluidrelay.tgz: - resolution: {integrity: sha512-mu/7lmKqtBZiHUmLgoRX+DUNMGli60POYBkX/oInW/lhte2lDMpUwT2CfNwaIsa5lIzcmukdPs8pyPCZkFYs9A==, tarball: file:projects/arm-fluidrelay.tgz} + resolution: {integrity: sha512-cxV8lGIc6qBho8Z/P9SDEfvPT7QkEHkcqTrAQBnm7XEyUR90jXUumTais+DGwYd9TuUOaySAE3Cq9TOtsD8n3Q==, tarball: file:projects/arm-fluidrelay.tgz} name: '@rush-temp/arm-fluidrelay' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13660,23 +13736,23 @@ packages: dev: false file:projects/arm-frontdoor.tgz: - resolution: {integrity: sha512-izX2d+tCBAsTArlKXWZPE7dC+JZBwf6RzZexfi2O8YH4SEGaWKE7Z5+ufBxxlM03MhE36tvrdZozWb0hjGDICA==, tarball: file:projects/arm-frontdoor.tgz} + resolution: {integrity: sha512-WiPoeP0wmVQm+wF3/1No2z4+1dhaNHMpIczIEj2lgvSqDZOUg7Vsky2Ypwf6ayRCyWG1xMqxkHn8VSsxSGjhrA==, tarball: file:projects/arm-frontdoor.tgz} name: '@rush-temp/arm-frontdoor' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13687,23 +13763,23 @@ packages: dev: false file:projects/arm-graphservices.tgz: - resolution: {integrity: sha512-lVSPNDsTFpmn+0NfABQU2ulAqE1fDBeW4at7Yo+/1dbqblsyiYQxRKsfhMcS3bmcVMo7/F5TLrzcbY3PnSs33A==, tarball: file:projects/arm-graphservices.tgz} + resolution: {integrity: sha512-TwgY8kp0XnjxyGXghLjmT7SQTJGtSWEZlccxWvN5Kizah5FW0QaoVFqrT2KGq1efS40TUxbUUJ/wD9fvxq0crw==, tarball: file:projects/arm-graphservices.tgz} name: '@rush-temp/arm-graphservices' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13714,22 +13790,22 @@ packages: dev: false file:projects/arm-hanaonazure.tgz: - resolution: {integrity: sha512-HgPgdOYD0GC1VbSniyOKV+k8NQP+Nf4Y8gUcQgmvkpd4GmKGOYWIOJLAGRVkXJcP1JUhHn7XxsR0XGAiWNKu4Q==, tarball: file:projects/arm-hanaonazure.tgz} + resolution: {integrity: sha512-ws5mhvxHYC6HQl5DHRne0d5IWSVunp5PZ10NqYgl0hA+Kx3X4gVPg5/6olxJapbpymXfUAbms09JK56bSdk6Tw==, tarball: file:projects/arm-hanaonazure.tgz} name: '@rush-temp/arm-hanaonazure' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13740,16 +13816,16 @@ packages: dev: false file:projects/arm-hardwaresecuritymodules.tgz: - resolution: {integrity: sha512-nA6QiHAbJBIynUYqo4VaqLyU9i5lp3F+yUocs6dmVSuhohHAx7bfe0FAnCDl/UezrO71wAykb5moe276qXWXsw==, tarball: file:projects/arm-hardwaresecuritymodules.tgz} + resolution: {integrity: sha512-wTxwkOtBLi68wc50lodK3gaUoHAEEDM/UumdXLQJGzV0GzJi2nzWqJvHlDBMuOJ14paiEwYfUeqEwAncAqm4nw==, tarball: file:projects/arm-hardwaresecuritymodules.tgz} name: '@rush-temp/arm-hardwaresecuritymodules' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -13757,7 +13833,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13768,23 +13844,23 @@ packages: dev: false file:projects/arm-hdinsight.tgz: - resolution: {integrity: sha512-NPqD1UGqFAN0iiYxgzsD+5UYekqhoKTquGDR/5AlUB2wJYIebyhSzCelZvqbn+xhrBELw+MsVhNYwVJmK+LXyA==, tarball: file:projects/arm-hdinsight.tgz} + resolution: {integrity: sha512-AC1nlOLofqoFh7fIxslrXKueMzH9NBzsDBagOJirMUvR2561t8SOiZQJ99hOechNEzV9rYi5jL7hMJHU2rc9UA==, tarball: file:projects/arm-hdinsight.tgz} name: '@rush-temp/arm-hdinsight' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13795,23 +13871,23 @@ packages: dev: false file:projects/arm-hdinsightcontainers.tgz: - resolution: {integrity: sha512-MKVqAlcqZxOros4bknf/8NHB4o2X21VtvvBZ0byeh1/Or/OB9rlp0FqUC9A8KEPLWXyV/ddYOhJ/rAyYnbT54w==, tarball: file:projects/arm-hdinsightcontainers.tgz} + resolution: {integrity: sha512-rss20Yb178oeAFD0Se5k6req3ISEo18wahvChMulBOBrxgLuWIe5M0YGHwGAOFPDgF75jyiS6MoKcQylsviBqA==, tarball: file:projects/arm-hdinsightcontainers.tgz} name: '@rush-temp/arm-hdinsightcontainers' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13822,22 +13898,22 @@ packages: dev: false file:projects/arm-healthbot.tgz: - resolution: {integrity: sha512-5FFjCGmPTl6jhVc22w++BvTUb2LwQaR+/exnnJCnQBf7GGRpJOeTcpmBm2rlmS2wbyr1T6Qzih2q9w4eyqxCAw==, tarball: file:projects/arm-healthbot.tgz} + resolution: {integrity: sha512-VMLVDqZrBva4XSc96fyZ+yEc6gPnmw3MGVaXEvCQZAtaT+kyOQQfE+QGIIbCFCAUX5UfWk8nHE6wS8QzdT1Dpw==, tarball: file:projects/arm-healthbot.tgz} name: '@rush-temp/arm-healthbot' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13848,16 +13924,16 @@ packages: dev: false file:projects/arm-healthcareapis.tgz: - resolution: {integrity: sha512-3DAcFCisgyQlaYSKkCZyYAOLHl51ed8wiK+2FsTcObuCx7Fq7/K86fl2Btoy6/Lhx5TntW74MHB2dSnkknSFxQ==, tarball: file:projects/arm-healthcareapis.tgz} + resolution: {integrity: sha512-yiiLuQ9PmrsGf1M8W+ZROkF2y+egwrM0Cv0Yct9fRk/lE28ZJjVxofNp64nDZBEVULtRy8uexYek5rTIcHERKA==, tarball: file:projects/arm-healthcareapis.tgz} name: '@rush-temp/arm-healthcareapis' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -13865,7 +13941,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13876,16 +13952,16 @@ packages: dev: false file:projects/arm-hybridcompute.tgz: - resolution: {integrity: sha512-t6yBBcu+y9ZiyK7+HgWwHELlBzDvihFx3gVys1hfo+5iF3p/DxqYWBVsEwJIEMYl7T27WwzL7ddt5JlKoPeBXA==, tarball: file:projects/arm-hybridcompute.tgz} + resolution: {integrity: sha512-dp7VY5hqr4kKMHm8E8voKdabfPeIvwHqpt3/v2t/hdvnrnNFkAh6e4Ktipn+NGfw4icTjtFjy2ePN5l1SZCoZQ==, tarball: file:projects/arm-hybridcompute.tgz} name: '@rush-temp/arm-hybridcompute' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -13893,7 +13969,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13904,22 +13980,22 @@ packages: dev: false file:projects/arm-hybridconnectivity.tgz: - resolution: {integrity: sha512-UoXd//VD88eyTFXh7pK2KjKfWCN9iJgKuAJpTiJlOPjtNsyGKBKrrBCNFjPpsZ+cbBGJ72C9+03J49tpcXDb6w==, tarball: file:projects/arm-hybridconnectivity.tgz} + resolution: {integrity: sha512-ei3dXbw0SPBO7472e5Lc2k2U4zGgoVaLnKd3Cj6jTia88sTZW/GkmmZHfRChOthiaU/skOzZ/Nmlvj6DFoah6w==, tarball: file:projects/arm-hybridconnectivity.tgz} name: '@rush-temp/arm-hybridconnectivity' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13930,16 +14006,16 @@ packages: dev: false file:projects/arm-hybridcontainerservice.tgz: - resolution: {integrity: sha512-Sy5p8Gfs1IANvvG1j35dRubNwpi2rK4VlhhlLhXRN6f3Laxxy6f0KR9wz658HF/AOYA/SEkt703waCeBfyYlyw==, tarball: file:projects/arm-hybridcontainerservice.tgz} + resolution: {integrity: sha512-jaQ9mOdgkp1Q0iioQI3CH4Vd96kQQICbN61iuDmabjybD9YDPkkcGsgs9s3k+DLLy2z00nHtugf2NngsUqmCmA==, tarball: file:projects/arm-hybridcontainerservice.tgz} name: '@rush-temp/arm-hybridcontainerservice' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -13947,7 +14023,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13958,22 +14034,22 @@ packages: dev: false file:projects/arm-hybridkubernetes.tgz: - resolution: {integrity: sha512-QhFL8mPuYVp9XnRzSKBav++afPgp0MkdhTaB14//IOFCS6yaY6XOmVKQhshoHk7lPeBw+XcxiMGZvbn9hrlKYw==, tarball: file:projects/arm-hybridkubernetes.tgz} + resolution: {integrity: sha512-eOGMj0hE798uQgwsFhk07Tlv+X5v3J5CHViZcVkP3T5Q3PDwAGWKImRY5KoNCVRn5OhlNaqP1jfASv75hAsTPg==, tarball: file:projects/arm-hybridkubernetes.tgz} name: '@rush-temp/arm-hybridkubernetes' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13984,16 +14060,16 @@ packages: dev: false file:projects/arm-hybridnetwork.tgz: - resolution: {integrity: sha512-xqfMYQWliSpAFgm11vF2rQSeJhfxgUiTcXSarj2PKbb+IQ+3nH21YDs/ftJuyOOLihLFbmxlQvT8eKuQStRoeQ==, tarball: file:projects/arm-hybridnetwork.tgz} + resolution: {integrity: sha512-dgmRfWg1hnBn5L4dbm0/A55CP747c1U6ut/GG2FeUHQ+fiHB94z0CrCknyX6cer3nUI44R1WntdRtR03JG9vPw==, tarball: file:projects/arm-hybridnetwork.tgz} name: '@rush-temp/arm-hybridnetwork' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -14001,7 +14077,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14012,16 +14088,16 @@ packages: dev: false file:projects/arm-imagebuilder.tgz: - resolution: {integrity: sha512-jtoCXQudxlOMVFYekAyBSLImoRlpAvAFvXFEgBb/GVXscEzSeDsTd5VCUH1Zvrs8B9CTqy7U2nA0NaveCXa06A==, tarball: file:projects/arm-imagebuilder.tgz} + resolution: {integrity: sha512-EDPsPyOrfkNm5eGS2F0IhirUBQidpeOBlKVDj/uByJzVznz56yxIAuRTRxWbNYUZfC2fLSgRmdgTN+q6ahd6cA==, tarball: file:projects/arm-imagebuilder.tgz} name: '@rush-temp/arm-imagebuilder' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -14029,7 +14105,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14040,22 +14116,22 @@ packages: dev: false file:projects/arm-iotcentral.tgz: - resolution: {integrity: sha512-+d/6wcGG3OeAnrexKwryshVou4efDM5mhgKeICKfzTozbGhN1osPZREFQKN8cBa5X9WATQ7kVyTPyUlIfwv7SQ==, tarball: file:projects/arm-iotcentral.tgz} + resolution: {integrity: sha512-EzFNFoH25ciLltRS5mTnby6xKHJxrPqArc8bizMXffyEkUioNgMQPehlooRg2YTXa1DwQGeoOBDW1Zr2R16JRw==, tarball: file:projects/arm-iotcentral.tgz} name: '@rush-temp/arm-iotcentral' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14066,22 +14142,22 @@ packages: dev: false file:projects/arm-iotfirmwaredefense.tgz: - resolution: {integrity: sha512-WjogQNEjuVkfiAN9gnaphl5L0qQxUQQeHY9TIv1ntiGFcHFuK4X5irE3erwuZa8aBPCE3lBEnFWIGTfk/ix7Jw==, tarball: file:projects/arm-iotfirmwaredefense.tgz} + resolution: {integrity: sha512-TVCRaGPO1/PFRav4n7v79oTPfBsAUROLR/IAhd/zuhPM9eVfXFjB2yzPzpbtKEe+GxREpOgCEy4qxpbBTYpE/g==, tarball: file:projects/arm-iotfirmwaredefense.tgz} name: '@rush-temp/arm-iotfirmwaredefense' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14092,23 +14168,23 @@ packages: dev: false file:projects/arm-iothub-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-ndygVizo0cHx1f9cVvkvxX0NSLNi1b03leE9VYaa4ZL6YWG0FcpldvUyWXjXtqnXfT8Gt1pYvxde74aSj/XgOA==, tarball: file:projects/arm-iothub-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-ap+Z6OrBcTh8HXomCKUgo84XPUgrCbp4GSxGaXRqIeU/pT+yjcB8hL+xz3Qy4VODIqnEiGiq5i37BCWxqo9I3g==, tarball: file:projects/arm-iothub-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-iothub-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14119,23 +14195,23 @@ packages: dev: false file:projects/arm-iothub.tgz: - resolution: {integrity: sha512-Fv0lEr32w1wHSr/++mppG8Usw+fDCsdWCd3L3n3nXd05meGuVEjlNbrUGj7orLoFQE5v839JlAUec5uPIGxL7Q==, tarball: file:projects/arm-iothub.tgz} + resolution: {integrity: sha512-IK93gDYqcxLAd5/fprkJBfMYWTwFE+jKSZTY8+CkfWrx8v8sFEUMndDu9C8wkylqpZ9ahvqe560fsI7/WDoTGw==, tarball: file:projects/arm-iothub.tgz} name: '@rush-temp/arm-iothub' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14146,23 +14222,23 @@ packages: dev: false file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-srfYMkQo+2vzcw1FuYDN4ygHKff8u0p5DmS8/WQme9KmSrnoXSebMFYNfWlLhESHwI3TZoq7jngKYriebz/C/Q==, tarball: file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-lT/DvF/9sFj5AUJnqnxHx13A+C+KGWWdg1oTPTE5YcVSyvCiMANU/0kVsi5llBXbgvjR5iE0ZLNertZGj0bjVg==, tarball: file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-keyvault-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14173,16 +14249,16 @@ packages: dev: false file:projects/arm-keyvault.tgz: - resolution: {integrity: sha512-CxgUmA5b8mNXEHzxim6ap/evv1p6YZIAdfmet9qsbu74tcwSb+ty+Fkit7xwvyqlEZ3XAggzmkuH8g8qUPZjQw==, tarball: file:projects/arm-keyvault.tgz} + resolution: {integrity: sha512-5J26dX52OdiglGFO2C5HEYBHJ/cAglmw0+6C0/h5GI0K9i991TwZyhu2drE/InXY0Bye+DafznjMfbworbcHRQ==, tarball: file:projects/arm-keyvault.tgz} name: '@rush-temp/arm-keyvault' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -14190,7 +14266,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14201,23 +14277,23 @@ packages: dev: false file:projects/arm-kubernetesconfiguration.tgz: - resolution: {integrity: sha512-FzzUjDedwl6PgApeoOoQPbh9TRWMq5pfolQ3g1C5Xa/VGPz/Qdy0HvFswt00uHSeyuoAi4+aQZvr2VI9M0Wb1w==, tarball: file:projects/arm-kubernetesconfiguration.tgz} + resolution: {integrity: sha512-UCuOUS8jLbg9fqrFldv65BoWTCv7zUtY7GcAsPmWjktn5avFyR1CVa25VrzmEwI7Kz3MAe4NQ4kd+5yeSd38tg==, tarball: file:projects/arm-kubernetesconfiguration.tgz} name: '@rush-temp/arm-kubernetesconfiguration' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14228,23 +14304,23 @@ packages: dev: false file:projects/arm-kusto.tgz: - resolution: {integrity: sha512-+S9nWXmKnozmTEeevAyzGORODSi4S4kUjzZe+m2101+ualinDLfkkBjRHy635Y0pHmJ1i7ywNv0BcfhMHiH7og==, tarball: file:projects/arm-kusto.tgz} + resolution: {integrity: sha512-ZGcWF+8qoEOWnZt2LVMCrlOAlPkHlWG+icwN+7HgD0GWrhp2aQbk2FQxyXEcM5KZ/xFyC+Usl9YYUbCJRuiibQ==, tarball: file:projects/arm-kusto.tgz} name: '@rush-temp/arm-kusto' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14255,23 +14331,23 @@ packages: dev: false file:projects/arm-labservices.tgz: - resolution: {integrity: sha512-i64F2+sfyinjeI6+7ZM+hJfYeF075HeRGm43IPoMmYILG/GY06SMB/4oelcoTDd+Ct8eboNVQB3iRCWd3c1NDA==, tarball: file:projects/arm-labservices.tgz} + resolution: {integrity: sha512-5B7F/ARVRCMje4lEBtAYKO2cchl/bCdYxsEe1UzVx2LC9dH5oKFSehKkMBUIb5VVI5lUOZ0WwQ/FeG8O1DOQSg==, tarball: file:projects/arm-labservices.tgz} name: '@rush-temp/arm-labservices' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14282,16 +14358,16 @@ packages: dev: false file:projects/arm-largeinstance.tgz: - resolution: {integrity: sha512-lO9Q5RIVa9eIxfL1ni3r8h27ysSkSdC+KH9mcgBsRJkhSZywAvepIqnn+aPtnRxyx4L25Ca9FRJTdTHOttlgnA==, tarball: file:projects/arm-largeinstance.tgz} + resolution: {integrity: sha512-sdpJjnXZnSAusOEmdMUO8AKVbVh1efEc0pv+nmGJrlqgv5Ky6h+elrHR2FwrAtdZsodoubh0owGBeqCccqA4Kg==, tarball: file:projects/arm-largeinstance.tgz} name: '@rush-temp/arm-largeinstance' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -14299,7 +14375,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14310,21 +14386,21 @@ packages: dev: false file:projects/arm-links.tgz: - resolution: {integrity: sha512-McQK4lLqTDACdrIbX2PQoRk/AAJDDcFYBzGhsUhPSkhAPXQHJNG3iP3L3kstgzBYfYRlNGPHXMhV9wbn0XMOwg==, tarball: file:projects/arm-links.tgz} + resolution: {integrity: sha512-0MrD1N27J/zHy0WuJWhDnH5yigl/7ideSPOq8jvphElPaf63WPsKt/y+zZA6yX85LwTs5xW9dlMTZ1GCHrgHFg==, tarball: file:projects/arm-links.tgz} name: '@rush-temp/arm-links' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14335,23 +14411,23 @@ packages: dev: false file:projects/arm-loadtesting.tgz: - resolution: {integrity: sha512-yYDAiubQWvh5dv2HkaSZkXBnPUGgmu2bppWeY+OctiD0kdWuziv3+dlQJTcsYHJYbIXak8mRgp8D+fOpOIUpUw==, tarball: file:projects/arm-loadtesting.tgz} + resolution: {integrity: sha512-3mNR1SA2SXx+lyCzHchx0WGoDaGhN0HN/hLwql+FWr0YbBWO38ys0TVsRhJWYyE9Sd+2NkgnSVVLUwINmcDzrg==, tarball: file:projects/arm-loadtesting.tgz} name: '@rush-temp/arm-loadtesting' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14362,22 +14438,22 @@ packages: dev: false file:projects/arm-locks-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-aP3BKP6x6VloB97Z64xb5PGsb41pzAHamL8fD6lj2EyKKxoBW1Fo4GgUw6gvRELhSl0KbDg3n7TmAGlu2furgw==, tarball: file:projects/arm-locks-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-MM1YQWv+Djqo44GlUOaVms1ry8pZN/XdPPXF1UTnGy5T/Z+rPHHX/9cpSBjKVzdOnhfBnbIDh8BhLamBGvDB6w==, tarball: file:projects/arm-locks-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-locks-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14388,21 +14464,21 @@ packages: dev: false file:projects/arm-locks.tgz: - resolution: {integrity: sha512-3gK+FF8jTwpVOwgkkgdPqTNmFL+txflMo4lPDggW4M0u1vnOqa5+wCoi/RihWA8lhjhPTMwBmqIk1KgCau2P6w==, tarball: file:projects/arm-locks.tgz} + resolution: {integrity: sha512-NvQ3Z1c6s2jwz+1CCF/Soh6x1iaBCUR3sK6PbLQXyUBOMEAZ0TvjiMrk3SsTq5Ib04nNDnBAGTNECI+/txCtQw==, tarball: file:projects/arm-locks.tgz} name: '@rush-temp/arm-locks' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14413,23 +14489,23 @@ packages: dev: false file:projects/arm-logic.tgz: - resolution: {integrity: sha512-MOQTVkl5V1eisNyW/TEDd8g2pHY9PdnPxyQ15+cZhdOlVx8JrptUVrgr1UUeEYSUqMK03eT9bouUa71zzipIbQ==, tarball: file:projects/arm-logic.tgz} + resolution: {integrity: sha512-a/dJxaYa/V4zraMumW+JUERMqiWJRJmCADrtAi8vN534bHzFD2bpOPrnqRs7+IhTtqSpS3y6AHSFry0krduxow==, tarball: file:projects/arm-logic.tgz} name: '@rush-temp/arm-logic' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14440,22 +14516,22 @@ packages: dev: false file:projects/arm-machinelearning.tgz: - resolution: {integrity: sha512-75hb8WOyINOoDc38e7gYKDr/Sz8SrFz10wxhWkQ7DHoZ9FQLCH3j41TwEBCnuXy27mzedozklcZxVbE189VgZQ==, tarball: file:projects/arm-machinelearning.tgz} + resolution: {integrity: sha512-R6LzfhCCd2XgsGzXan+Ah1PjWvAVBKrK16boVBCJq0baPh+zamTG8CxBrMrvrY1xsFQfoHh98qnb/7FfpS1O+w==, tarball: file:projects/arm-machinelearning.tgz} name: '@rush-temp/arm-machinelearning' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14466,22 +14542,22 @@ packages: dev: false file:projects/arm-machinelearningcompute.tgz: - resolution: {integrity: sha512-I9FNymQpc2olKVXL9gws1OZ/MAPvu1IYEnYyEHeTI0PJTUTOaLAimaitGRPvUGS6VSiERUPMP8ZVK8WqwMJw3Q==, tarball: file:projects/arm-machinelearningcompute.tgz} + resolution: {integrity: sha512-clysHmuJIoRN6GLbav2Ef0LbI/9Kgg+AJbuzndElf6okICaBW709mzH9q95y/kU8xLA1Pv+6VK5+kKGUQs8JQA==, tarball: file:projects/arm-machinelearningcompute.tgz} name: '@rush-temp/arm-machinelearningcompute' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14492,22 +14568,22 @@ packages: dev: false file:projects/arm-machinelearningexperimentation.tgz: - resolution: {integrity: sha512-GHFW6M81BuG7EZUBBrSUNvnhiwmu0MonuTL2iBFC4wHOo1FCFrD+zeJzMhb3PGoWqVmjRrwC9XRr4ZXRtLAytw==, tarball: file:projects/arm-machinelearningexperimentation.tgz} + resolution: {integrity: sha512-zzTrdQzKuDO7WB7aZSDSj82VDrf4+ampa4FaZIkKjnvXPqZ/8RG5oZUSfhKt6IGu38i/lkFmEw9i5zVT08YeEA==, tarball: file:projects/arm-machinelearningexperimentation.tgz} name: '@rush-temp/arm-machinelearningexperimentation' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14518,15 +14594,15 @@ packages: dev: false file:projects/arm-maintenance.tgz: - resolution: {integrity: sha512-9dEsnfcOz/nNTOcpaoekSTPdI2wIes9gC7r3dI2xU6LbEx980+RAVnK5hPWgnQ75w9PMbbHEWESKauF1gOEZoQ==, tarball: file:projects/arm-maintenance.tgz} + resolution: {integrity: sha512-yuidOEP7AWn1zvqUEAM7WI8rTRCKeQAPmzfZ3NZMRK5SK/kbfHd31ckhcG6FUPQX33lj8QA2d4TI5+1PqMzqGg==, tarball: file:projects/arm-maintenance.tgz} name: '@rush-temp/arm-maintenance' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -14541,23 +14617,23 @@ packages: dev: false file:projects/arm-managedapplications.tgz: - resolution: {integrity: sha512-xcC2gXy4yMak1dsAQZ90+L15G7r5c3yFMkyh9OKosi8wG87lhAc55k1jk+nWS2B6WoqIwKWbWdF3xAuQLTjurw==, tarball: file:projects/arm-managedapplications.tgz} + resolution: {integrity: sha512-x45e4cSI4uAh1K8TZKBjIEBa8ONrS2pndGLkNJALxeCF0WnPfnjnin9ievz0SEn33vCQYHDWhA0mTa9T1j71SA==, tarball: file:projects/arm-managedapplications.tgz} name: '@rush-temp/arm-managedapplications' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14568,23 +14644,23 @@ packages: dev: false file:projects/arm-managednetworkfabric.tgz: - resolution: {integrity: sha512-p7RcdA+wL3TCKxLeVjpurjFLU7ETSE6NZJbSst/2SDe85kIRjxNa0v9oZL/c6Bwxjk3ABOcxiM87qPXVHhW2Kg==, tarball: file:projects/arm-managednetworkfabric.tgz} + resolution: {integrity: sha512-UpgMeaPtnHKpfIJveCbCBFBvALedwS5J1ZmylwfWWnVk8Fk4wJkBphLdCbPP9VtJrcG7+7mopGb9gNMuinGdog==, tarball: file:projects/arm-managednetworkfabric.tgz} name: '@rush-temp/arm-managednetworkfabric' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14595,22 +14671,22 @@ packages: dev: false file:projects/arm-managementgroups.tgz: - resolution: {integrity: sha512-B7O4vAu0ZU9NLnrC+9XEoEnaCqZsofKWeeJBJf4iqLBNpXPyEr9S4vegeinuponSHgkPX7K3VMWoJGl9u52a4Q==, tarball: file:projects/arm-managementgroups.tgz} + resolution: {integrity: sha512-naErVuF6NP7dUvNRnLnQyQLAxhBrG4vClYWBBeBcue01sG1H+yPsKTMHRWF0FvrNKkhJ2QXJ7cUE3bBfIDwdkw==, tarball: file:projects/arm-managementgroups.tgz} name: '@rush-temp/arm-managementgroups' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14621,22 +14697,22 @@ packages: dev: false file:projects/arm-managementpartner.tgz: - resolution: {integrity: sha512-RnwjZkNbDxsLU7STx1Wjie0EcbmMzKLQsef/yx5VrilY/pa7kKLerawjMVYn1iM7rOYV/itMxBOzEnXM7Umu+w==, tarball: file:projects/arm-managementpartner.tgz} + resolution: {integrity: sha512-V/5vfpNX3DzXMWL1Doz+af2hWGrnRM+5vO7FOTK86appRUuPA3CDBza8uYQFsGvTJFdbeDhJNYo7rbYbV2IK9w==, tarball: file:projects/arm-managementpartner.tgz} name: '@rush-temp/arm-managementpartner' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14647,22 +14723,22 @@ packages: dev: false file:projects/arm-maps.tgz: - resolution: {integrity: sha512-LBFxDOR4MDgM8ER2PIIvO4v48K+xhHLFwr4agj29JVtWGnP+qU3NiUtBIYcCjzF2P9yh3K0l2WVuxOIRcmgX/w==, tarball: file:projects/arm-maps.tgz} + resolution: {integrity: sha512-iyevSHmaCF3/3r0HnXyLeD+UDAnu0eFFC7l+B+6KS7w6002PbA8qI3wZKIKtkNJ3EjD00Jl/KjiZszXPqLJ4fg==, tarball: file:projects/arm-maps.tgz} name: '@rush-temp/arm-maps' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14673,22 +14749,22 @@ packages: dev: false file:projects/arm-mariadb.tgz: - resolution: {integrity: sha512-vE2H9yszk8Fsmt6okk93OVMRjd2TaPLGhVlbQn7MaQiXI2qxQmIN76gmmuTWph50SiWT+FmUNqJniY0aD9M67A==, tarball: file:projects/arm-mariadb.tgz} + resolution: {integrity: sha512-MWtCbkD8+NPqz7gEONslSXEIAZistS7cxUuk5IcobtAre+TCY0r5ePIIto9A1J4Ry2E1kI4PgbJoKyzzlo2T8A==, tarball: file:projects/arm-mariadb.tgz} name: '@rush-temp/arm-mariadb' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14699,22 +14775,22 @@ packages: dev: false file:projects/arm-marketplaceordering.tgz: - resolution: {integrity: sha512-mvbBWVanivDkhML7A+B7Ajhc9viR+MWRsejF0xf3vLJCtHC7uZ8oHUDEc9f6PRf71jnrCdNMe8t7onC4rZpmww==, tarball: file:projects/arm-marketplaceordering.tgz} + resolution: {integrity: sha512-BFieCiiReWqBU4Bn90MT/nct9TfLeElIIWVJRvM350z7is07/Zhj7EiKkGL7w/iT+lZhfE9LwiKXd9ooU8WqrQ==, tarball: file:projects/arm-marketplaceordering.tgz} name: '@rush-temp/arm-marketplaceordering' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14725,23 +14801,23 @@ packages: dev: false file:projects/arm-mediaservices.tgz: - resolution: {integrity: sha512-7QLoLg9/16IN1LvSC4Rg4l8ZVz5teMzswqgyy5OXwrTv645DTrO1Uscm3ghbiE6yG6po17T+ElxlwmF3Q5HyQQ==, tarball: file:projects/arm-mediaservices.tgz} + resolution: {integrity: sha512-CDOlz7BXiXRyWt8iUyf4eVpx3NEErWajEeIQABkPjeIWyoIvv8D0pAMQNzl+niGGkgGLTsBfVKby3Sl+GHP96w==, tarball: file:projects/arm-mediaservices.tgz} name: '@rush-temp/arm-mediaservices' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14752,22 +14828,22 @@ packages: dev: false file:projects/arm-migrate.tgz: - resolution: {integrity: sha512-LsBo7tCSvyNR+fMaTJfJ3+tEm28s2yDvosgL/AcDjZCuxDaEnH8NI1k7NVTmBnXJx+5TuZ3mK3/VjNlSyFZW7A==, tarball: file:projects/arm-migrate.tgz} + resolution: {integrity: sha512-v8R/vweVHlHPNNLDAoQvKfeRVQ7oXpt4YEeV8G7PylAKGAJVG4tKpsiG6Kkg5xAWUwF+5CQjIrsFgyU8SV+23g==, tarball: file:projects/arm-migrate.tgz} name: '@rush-temp/arm-migrate' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14778,21 +14854,21 @@ packages: dev: false file:projects/arm-mixedreality.tgz: - resolution: {integrity: sha512-Q+psd8EPbLB0M9BQ0/FhxytuM9rslkjHw0NXLagRgQ0wIIsdOAKtupBgnkaXN/dqu7hRxTMkvkaUqQCFXnakzw==, tarball: file:projects/arm-mixedreality.tgz} + resolution: {integrity: sha512-sYBluPy2FMEuhw35LFzDGCUBt5tRNZ+s32SdZQ4X4lZxTgyYunBA8u8XOaZNM4fKGdkRFwLg6EjLIvDp4cTwfQ==, tarball: file:projects/arm-mixedreality.tgz} name: '@rush-temp/arm-mixedreality' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14803,16 +14879,16 @@ packages: dev: false file:projects/arm-mobilenetwork.tgz: - resolution: {integrity: sha512-vFnMCn9qVBX91fybM9i+Grl1zb9IvgR/SbdqrpsS0K3edmMJVahXhR44CSBI/bD2zrzFlZnCnibVWDIq3Um2fQ==, tarball: file:projects/arm-mobilenetwork.tgz} + resolution: {integrity: sha512-szV/QySx5b2H7nf86GrReqVlXdKlnnwJ/I6RYZvbJSC+0m/4VKwjh91uUPls/8lJeKNikrJ9JwSO3dewJREKpA==, tarball: file:projects/arm-mobilenetwork.tgz} name: '@rush-temp/arm-mobilenetwork' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@16.18.83) + '@microsoft/api-extractor': 7.42.3(@types/node@16.18.89) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 16.18.83 + '@types/node': 16.18.89 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -14820,7 +14896,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@16.18.83)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@16.18.89)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14831,22 +14907,22 @@ packages: dev: false file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-HWAbTdMI2a3v/HGSyijai42JPgzaSxRgspUTGnIIxw5f+8w+50s1IyVFQHNJeQKkxg01eu2ue0MHnziLnv37DA==, tarball: file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-cofYNg0UFFy+EfxpFwqzS3po2NIGuMeY5658PhcuwFK4JrF3B6KqtIx5PFFaMiZlnv6nTB9W0yXqKrnnxaQLUA==, tarball: file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-monitor-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14857,23 +14933,23 @@ packages: dev: false file:projects/arm-monitor.tgz: - resolution: {integrity: sha512-LGe1iNUoZQYZrNM4/RNoR1/+EF8IbcjoApmtx/watdJQTkPGiiGJoZCf4s6VitBSLdthc+xSJ9+72cKXFvPLEw==, tarball: file:projects/arm-monitor.tgz} + resolution: {integrity: sha512-Efshfh+xTjfC56URQqDUCrE4Uz4CXRgP+O22PnXhrrmtufY52ttt0ChaeKHzhFIcliTi2BIKbWNPc5dBAppl9g==, tarball: file:projects/arm-monitor.tgz} name: '@rush-temp/arm-monitor' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14884,22 +14960,22 @@ packages: dev: false file:projects/arm-msi.tgz: - resolution: {integrity: sha512-Lwn16GKLfnJfDlPBpQQ3S7AVMHDUZABIS+e1mWDYgukN4ZPVPn0pXNuc9WoT970JtF8eaVdKJwjzzRLfB+UUXA==, tarball: file:projects/arm-msi.tgz} + resolution: {integrity: sha512-wdc183yCbS5B1hWay56jl87v8C15ofpipmg/LkjC/96X05HiBgCE6mo0JXtUi01lyqMV55sJshDIan7SCF1U1w==, tarball: file:projects/arm-msi.tgz} name: '@rush-temp/arm-msi' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14910,23 +14986,23 @@ packages: dev: false file:projects/arm-mysql-flexible.tgz: - resolution: {integrity: sha512-8ct3yqJVZgtDf4RG5p0cEoWq3Diu67dixpHz/vJT6XppTF9LFC9Eg6phTc2Mdv/R5KqE6fas1XrbhT0YiVsHeQ==, tarball: file:projects/arm-mysql-flexible.tgz} + resolution: {integrity: sha512-2OWuTKr2dm2jloyaQUujNd02bDOpBxP/mFFlYz3b9Om6U+6LHk96HbnNawaFE0r/i/ni+JhdedEqx1bgJuUkdQ==, tarball: file:projects/arm-mysql-flexible.tgz} name: '@rush-temp/arm-mysql-flexible' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14937,22 +15013,22 @@ packages: dev: false file:projects/arm-mysql.tgz: - resolution: {integrity: sha512-h+BTVXYteK0CeDUVTBqwDmwB1ZpRjOftvYOtLgwwt1K0GU8n0RNNANLYQLCpV3I5QchUFHZDMWpgMzFschmzhw==, tarball: file:projects/arm-mysql.tgz} + resolution: {integrity: sha512-ezWS1P7whjPMUjyfb6m9BSZbKg7kCA874ldLoYbNytscFviQn2p8StF4pBLwxqD6m2GGKQxeaHo38Pn1r0nWmg==, tarball: file:projects/arm-mysql.tgz} name: '@rush-temp/arm-mysql' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14963,16 +15039,16 @@ packages: dev: false file:projects/arm-netapp.tgz: - resolution: {integrity: sha512-NRbSU4tJHEd86VfwKHMbcal8t80wxgIPUPDqTeSleNgMA45Ri9gMA2nly60ouqM7yEO4OdIF9GTPflKSfSMPIg==, tarball: file:projects/arm-netapp.tgz} + resolution: {integrity: sha512-r2Q3T+zB4OP3xTp35awwA/+10x27Uls+byjxe83O7ZYRlXoBGmDwnB4WgbBUnBIOpYB3k28AFbomSYupmKQeyA==, tarball: file:projects/arm-netapp.tgz} name: '@rush-temp/arm-netapp' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -14980,7 +15056,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14991,16 +15067,16 @@ packages: dev: false file:projects/arm-network-1.tgz: - resolution: {integrity: sha512-+/uTgvdvzxGR+YCty75Sy6WOIEQArVbrpD6ZzEfrxrRpqW36HQjs72d77+73qPVQ08fpigR5eCASUK5H0DsCGA==, tarball: file:projects/arm-network-1.tgz} + resolution: {integrity: sha512-kcCcRRDpCucKA17wiiYbOvna84m4alTq68FhRTv6QtZa5OGACaE/se+vJokITCz1d5toOujUCyZ6jjkdbrWSPA==, tarball: file:projects/arm-network-1.tgz} name: '@rush-temp/arm-network-1' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15008,7 +15084,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15019,23 +15095,23 @@ packages: dev: false file:projects/arm-network-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-LCineChGQdQRI2T/DTEtrG+i/A+XZrp7h/j8/2CxbveH94qQpxWrqVnCLlPgEEG9jXAlu2Q/unYxGu5o2OK7VQ==, tarball: file:projects/arm-network-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-tSqD3NQBVDjJ+3SxQNTPVkexM1HlO5maMeh7wYvJD42PMPni4uH7ojYnTtDXoUu7KlkQ66laBwSvr/XNDiYHng==, tarball: file:projects/arm-network-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-network-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15046,15 +15122,15 @@ packages: dev: false file:projects/arm-network.tgz: - resolution: {integrity: sha512-JoKUmprfuOrjFxiY68Y8NQlfVMoMGjoxRmQokRHL4mxgPkO1vcm/1o0r5+9JHnN9y+rYta/43v/eluNHt0c2WQ==, tarball: file:projects/arm-network.tgz} + resolution: {integrity: sha512-jI23ki0LYxtwy59OFvnMY3sYBbrtpuJZP84Rdyv3R7JzlyB3LVfaoT7PsPkQcdjCs6OfiNBbpI48qMK/DgG95Q==, tarball: file:projects/arm-network.tgz} name: '@rush-temp/arm-network' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -15076,7 +15152,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -15089,16 +15165,16 @@ packages: dev: false file:projects/arm-networkanalytics.tgz: - resolution: {integrity: sha512-eVa07skT/98o2bwqgqQbEN1y/UwzoFOOIfUg/YWFWz8w7iYzktIN8GyeblJMnmB2J2/Lo8hQdgD8mfK3XVu9AA==, tarball: file:projects/arm-networkanalytics.tgz} + resolution: {integrity: sha512-C379kFhClyqTlThUmNlHIfBUkJ/D7Bpz8FpPPH/VxT9PFHeBOBRugg8DETWzEFhPjgFTB6GbV2YiXE5dGkApkQ==, tarball: file:projects/arm-networkanalytics.tgz} name: '@rush-temp/arm-networkanalytics' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15106,7 +15182,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15117,23 +15193,23 @@ packages: dev: false file:projects/arm-networkcloud.tgz: - resolution: {integrity: sha512-NCBJCvly9qFhObxV7wLo7M/LaYkwfSx1Aw4mXzOYDNsukmrH3pHUnwZi80tUh4+oiAVd4NSa9MEiTqDlZd9llQ==, tarball: file:projects/arm-networkcloud.tgz} + resolution: {integrity: sha512-/jywTEuTPqjudCfBCxEYW/HQdRkNeifVdr4jPMhulVTRwsMRLBRijaAuf2gWNlDb61k5Wwyx3lvLpneaQJy/WQ==, tarball: file:projects/arm-networkcloud.tgz} name: '@rush-temp/arm-networkcloud' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15144,22 +15220,22 @@ packages: dev: false file:projects/arm-networkfunction.tgz: - resolution: {integrity: sha512-Z34SPZJ2yJ6iyU2XhNtss2so3u9r700aK+jrSIBHDlHUi7SCVr+srrWXHViolEwnARFFTCjkFPcGICjr9S7ccw==, tarball: file:projects/arm-networkfunction.tgz} + resolution: {integrity: sha512-W0xCa7YjUaJ8KWL48v+dSChszFcpar9VYJkckqzrqqtr+rVpXA+Qlghmmq4UwuFPSKpzdWCQztTz3tMxuTv38A==, tarball: file:projects/arm-networkfunction.tgz} name: '@rush-temp/arm-networkfunction' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15170,23 +15246,23 @@ packages: dev: false file:projects/arm-newrelicobservability.tgz: - resolution: {integrity: sha512-OX7qpyv3z9EQxyDSzQt4K0iwOacNu/o0r58CHC8k5kHRHquAVDia5sE6j0tN5Q+odhvdxZKUooXw4LRQC8FG5g==, tarball: file:projects/arm-newrelicobservability.tgz} + resolution: {integrity: sha512-fSwUreQRzyD3E2QvkZ7RHVaq++ZpZHYwV4igjsiBXi/xKjbtGOgxjABDnUimkTz5kHjBAGpNmNy1wQG3znpwkw==, tarball: file:projects/arm-newrelicobservability.tgz} name: '@rush-temp/arm-newrelicobservability' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15197,16 +15273,16 @@ packages: dev: false file:projects/arm-nginx.tgz: - resolution: {integrity: sha512-LoqehVB1afT29IOfLh7Qk5tO0L+Shm6R2NDTuhARtR741dNCcFgJGvcwfG15h9SoMvNE0r9dToFU1gMloGTLsw==, tarball: file:projects/arm-nginx.tgz} + resolution: {integrity: sha512-ibwBKi+/Pt3cP4scMWlcVEaA14r1X+oqcDI8345otBnEh1FKRl66vf2BNFUPgxNKJUZU5bb6tCmNF+hW2l2s5w==, tarball: file:projects/arm-nginx.tgz} name: '@rush-temp/arm-nginx' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15214,7 +15290,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15225,22 +15301,24 @@ packages: dev: false file:projects/arm-notificationhubs.tgz: - resolution: {integrity: sha512-jKI293g20PoBmUCOGlCyMaqSELaMO10wwcclQyqOwdJJrophygB6lLXXFW8APhhlo8DhtAOv1/jIf9OWzodipQ==, tarball: file:projects/arm-notificationhubs.tgz} + resolution: {integrity: sha512-6J7SD9nMrxf+v9tCWvY3b/KbdSrksFSgMHp7Efr9q1G5wgNp0KNTUWPXy0Fp15lG3FU9b1p/I0D0pHodGycAsw==, tarball: file:projects/arm-notificationhubs.tgz} name: '@rush-temp/arm-notificationhubs' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 - mkdirp: 1.0.4 + dotenv: 16.4.5 + esm: 3.2.25 + mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15251,22 +15329,22 @@ packages: dev: false file:projects/arm-oep.tgz: - resolution: {integrity: sha512-gxo797QyCyQe7orCyMnvnzy7u436O0VJn71cbCBolurYom8f8ljS0PWt9hfT8NQ+dYvnWncGkHRALMAwaGdm+w==, tarball: file:projects/arm-oep.tgz} + resolution: {integrity: sha512-uEx7/GpRn6UiRy0iVP38og9AaR6FB9yQES8mDcS21TuazUwMYteEONiHCz5snmQiLTSG8eqD6Q1naHUo7Sq/OA==, tarball: file:projects/arm-oep.tgz} name: '@rush-temp/arm-oep' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15277,23 +15355,23 @@ packages: dev: false file:projects/arm-operationalinsights.tgz: - resolution: {integrity: sha512-Wyb7Eb0ySdtcocGGKaKgFkednNki++RMfltXBtWGvyC097tud2IQz/QxM26dqlIzLkHhgpRR+BbZBzAi0wHvuw==, tarball: file:projects/arm-operationalinsights.tgz} + resolution: {integrity: sha512-LnXw8KN1Xetot9SxduGDGub5SJlIHcZVAfvHYknMEK7laeFsthbDtaJhMLBnDVmuhWSGv0Pp35c91zEdPf+iYQ==, tarball: file:projects/arm-operationalinsights.tgz} name: '@rush-temp/arm-operationalinsights' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15304,22 +15382,22 @@ packages: dev: false file:projects/arm-operations.tgz: - resolution: {integrity: sha512-dpgWL0kDJp4/hfPNsEYozAAg6YMwwi6cXfHn7wsmv7R+qktlTa2PEQyuirfoDQIFD1chTEgquQ7WtpwI+KN7nw==, tarball: file:projects/arm-operations.tgz} + resolution: {integrity: sha512-hXOQDmMAllVkylM7KYMMgtQIZUJ12DH/6RowMWU961RYR1Q/E0ilHMu7Y2tdT/TIzBpS+8ksmF7giXlFsiStpA==, tarball: file:projects/arm-operations.tgz} name: '@rush-temp/arm-operations' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15330,23 +15408,23 @@ packages: dev: false file:projects/arm-orbital.tgz: - resolution: {integrity: sha512-i4wi1IyjC0rtnSs3znILZx+jLnUHejlGb9wB0SGRr8hWCRMhlUqLnYmA19ex923NQwU/Vc53Z6mSNTSe/WeEVQ==, tarball: file:projects/arm-orbital.tgz} + resolution: {integrity: sha512-tXA9+IdDIWnwYyeoe6bUpNT3Q5rcPnA7BsBtGaIsdW6oN+nqpbg9098U6BT5Q8ak36o0TBiT+dx/Tu6dEWhL8w==, tarball: file:projects/arm-orbital.tgz} name: '@rush-temp/arm-orbital' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15357,16 +15435,16 @@ packages: dev: false file:projects/arm-paloaltonetworksngfw.tgz: - resolution: {integrity: sha512-+s2/hTPQ+ei20+UDdn8CBJQzWlXSJvPHr3Bg4OuBmN1MVrpQXVDOHYCWWiNTNX2slbijSSYxFj92QWohThNHXQ==, tarball: file:projects/arm-paloaltonetworksngfw.tgz} + resolution: {integrity: sha512-SaodGf9bzBLZLfAkVcSdAodHHLKlf3LHYIN2WpwkAdXKzm4OPV/+MD7F+IMZmQRDH8jY8pfipka6l5UBUFbLbA==, tarball: file:projects/arm-paloaltonetworksngfw.tgz} name: '@rush-temp/arm-paloaltonetworksngfw' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15374,7 +15452,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15385,21 +15463,21 @@ packages: dev: false file:projects/arm-peering.tgz: - resolution: {integrity: sha512-nwxqfuEt8kAizeFNun74U6uy9qPQRHbNIkGqAIEmcjcw141TAaSdPe5vYH1pyoxaO4WajA1b6cH5FqC5aMV4dQ==, tarball: file:projects/arm-peering.tgz} + resolution: {integrity: sha512-bMJcA6Z2q0AZlFEFmf3swnCUS9Uh+SzdjCFhkrNbLtb4uhvCUrzzuf5bvfXxR/sDz9Hltv7lHIev3DigcFc8aA==, tarball: file:projects/arm-peering.tgz} name: '@rush-temp/arm-peering' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15410,16 +15488,16 @@ packages: dev: false file:projects/arm-playwrighttesting.tgz: - resolution: {integrity: sha512-uvMCb4UDoIroxhOOohR+imdakfekXiJkBk0ltX3gJ7i+as7tkqfauzRGRzpSTJCaEVDXSW50P2nBUFZp63xKtQ==, tarball: file:projects/arm-playwrighttesting.tgz} + resolution: {integrity: sha512-CJf33p9Vv7ylIvsbdEzMuXFikIrP2QojqX601qJoHwFanjrU05ADROulvioErYQgMjafcnUV2TaxQRv7e89mbA==, tarball: file:projects/arm-playwrighttesting.tgz} name: '@rush-temp/arm-playwrighttesting' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15427,7 +15505,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15438,22 +15516,22 @@ packages: dev: false file:projects/arm-policy-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-Wa8k5UqQgrp4U/+GrOitGrrx3hiG+b8O3t3wc2d1ijEMSyKSyuFYg56HQlGWsbZBIJpz0lQxL5l1nU9nEnAUlQ==, tarball: file:projects/arm-policy-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-ScDB/DBpaVYtx/VyVsUvIlGLL38Ob0vFMj6kOdTvwtBz3GBW8YK76hHbwzq5p9UY+3CWNFlGdWBPM3ogPqzU/Q==, tarball: file:projects/arm-policy-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-policy-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15464,22 +15542,22 @@ packages: dev: false file:projects/arm-policy.tgz: - resolution: {integrity: sha512-aB2FSfveainXfLvZI6RowqO90yRj2xCFke52+mVFnXAwv03jGxQ6ewsf+MKp3ALHsSrIDfMcSOX/sWwfbSABaA==, tarball: file:projects/arm-policy.tgz} + resolution: {integrity: sha512-AEZgoj/i7SNLMWguRNvmLssudvwgZ0S6IiPxj/EKZrFJjIYgQdWuQA2RlzjIIB2jz217+VolAwO9XRXSZfylyA==, tarball: file:projects/arm-policy.tgz} name: '@rush-temp/arm-policy' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15490,23 +15568,23 @@ packages: dev: false file:projects/arm-policyinsights.tgz: - resolution: {integrity: sha512-KRYQKocGsCeJ+CDRWzkV4vweX0Qxgil7Y7lrTNhsWdBXLYmMIEn4IBmDb6uTOao+klGCGhqZp9R+Sa7EecLJ+Q==, tarball: file:projects/arm-policyinsights.tgz} + resolution: {integrity: sha512-qvjuosuqlOAfGzKH5kr3XKzeDrE1zmd/u2c0gML81dz3Cah1tSdeZaXED4uziqro4WLTdrn5PSN6m6XvVUDfiA==, tarball: file:projects/arm-policyinsights.tgz} name: '@rush-temp/arm-policyinsights' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15517,22 +15595,22 @@ packages: dev: false file:projects/arm-portal.tgz: - resolution: {integrity: sha512-OT6lsn37reuBJ5wweEPXg+Sx4K0Q7Vz0qhnzVETQutPDn/h7TzRtc5XW/znrdI1cmelSl+nJaY4FLAxGc4eBSw==, tarball: file:projects/arm-portal.tgz} + resolution: {integrity: sha512-2/pAo489o9F6JvBw1qjuFgPRxbNqM/LqqvH2N3eCuHF+o6jPWCaFrnUaduvRvITU+90e7wnKy0ma1xpNYHzKug==, tarball: file:projects/arm-portal.tgz} name: '@rush-temp/arm-portal' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15543,16 +15621,16 @@ packages: dev: false file:projects/arm-postgresql-flexible.tgz: - resolution: {integrity: sha512-l0Hc7dJBOdXsPU6AZ4XQwmwsq9bjfTIm4CLaCTTbS9wrvs3lJn/HshqsF+shfCdRhQPCX9zkLOIhKutTsWr3QQ==, tarball: file:projects/arm-postgresql-flexible.tgz} + resolution: {integrity: sha512-l0vG6NpEp/wDV8Fotsu59mf16K2gelt+zcA4oj2F0rlCR/LPDYIs29GS0P6hbBz8cvJhbeYGxLENs6r1RVKIXw==, tarball: file:projects/arm-postgresql-flexible.tgz} name: '@rush-temp/arm-postgresql-flexible' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15560,7 +15638,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15571,22 +15649,22 @@ packages: dev: false file:projects/arm-postgresql.tgz: - resolution: {integrity: sha512-M5ds2idICzu8Gw/+v6o/xYvp+2UaYke3IJtoyy11KRvqmT/DF4v4VZTAw5INVRx5nFbtQN/lp72ZvLWGOI/K5g==, tarball: file:projects/arm-postgresql.tgz} + resolution: {integrity: sha512-LBmz0Y4Rka9qVxtNekE7hUZHzSJ1Wak5pvO7qAps4xrRGVJ3D35Q5FUSDQOxtb44FxX5i+z7a2LyfREpI+MhnA==, tarball: file:projects/arm-postgresql.tgz} name: '@rush-temp/arm-postgresql' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15597,23 +15675,23 @@ packages: dev: false file:projects/arm-powerbidedicated.tgz: - resolution: {integrity: sha512-5Qa8t92V81IOeEsn/1yi4cDf9lxui561+EnV2MezUq247fD8P3UFhb4ocRMIWsQ2AWawtCPvOsBOeAG6FVXWxw==, tarball: file:projects/arm-powerbidedicated.tgz} + resolution: {integrity: sha512-ajCMyddRyk4S7o5Dg51r82VCn7kiC7w6CUWJLjceafh+4eU3vkSERS8Gatw9JWS6vyP3quxJzh0J7SiJnH8XAA==, tarball: file:projects/arm-powerbidedicated.tgz} name: '@rush-temp/arm-powerbidedicated' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15624,22 +15702,22 @@ packages: dev: false file:projects/arm-powerbiembedded.tgz: - resolution: {integrity: sha512-yZSYyun5j0/HNDTHSfmHp6ox5vHB1zRvVfqfKkLUUBay2wVhMbo26tK0dkHUB5easM8bxI9NfrAjp/deGVPg1A==, tarball: file:projects/arm-powerbiembedded.tgz} + resolution: {integrity: sha512-dbkP9c/pUaT6jXZOv2usIoT8Vcd6HRfVFu/GzZbGZiMENqRBdMQ/bXMNtPRSExqpP1y6AsNNVUTPSBSNJO4p9A==, tarball: file:projects/arm-powerbiembedded.tgz} name: '@rush-temp/arm-powerbiembedded' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15650,23 +15728,23 @@ packages: dev: false file:projects/arm-privatedns.tgz: - resolution: {integrity: sha512-iaQLjspd71wTIt4eSsvbIAP45CTozAm5paQyI7fWVcJzWrIGC6mFOTz+OBeeuupKzUcoAR0X8VMCUMWvlde7uw==, tarball: file:projects/arm-privatedns.tgz} + resolution: {integrity: sha512-Go/oNw0Y+VzYySaXVplOaAjQ808KKCytP2QRoJoad34bj7SIF1PzpzX0G0nGAQTMimCUD8KjeY5QbKrVXHfYiw==, tarball: file:projects/arm-privatedns.tgz} name: '@rush-temp/arm-privatedns' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15677,22 +15755,22 @@ packages: dev: false file:projects/arm-purview.tgz: - resolution: {integrity: sha512-x+zC/tSdWxGQIAXh4IQtQygsK+VO7Z+ndKNFvHighw+pDeyCOqabJ/EDBfYRiUbKKsHG9cZZ9dHrBpD/8eAldg==, tarball: file:projects/arm-purview.tgz} + resolution: {integrity: sha512-vGftQJy9mWyJQ/wL92XNBfHK9njHJ1u7FY1UNMBpVIVOF2plh2ueErK3XZZ63AJQKMzJnJ8aKEkUaUjQSLZPGg==, tarball: file:projects/arm-purview.tgz} name: '@rush-temp/arm-purview' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15703,23 +15781,24 @@ packages: dev: false file:projects/arm-quantum.tgz: - resolution: {integrity: sha512-Yyur1awjPnsHv9Pna5PtMZysZFEfci39iDAJdfw4gg7WGdRYjx8HeXocX6MKSiM5/qb544MV98arZAaE+Ar3tA==, tarball: file:projects/arm-quantum.tgz} + resolution: {integrity: sha512-bGBbMsjSYeByQCF5oOH8xkJ0h+q9kwy+h/22rHe4GMEbPleiWO4w+BQq255ehROKxcvmt3vwp6xsr5mta+wNAw==, tarball: file:projects/arm-quantum.tgz} name: '@rush-temp/arm-quantum' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 + esm: 3.2.25 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15730,23 +15809,23 @@ packages: dev: false file:projects/arm-qumulo.tgz: - resolution: {integrity: sha512-g3rgrE9ZtbElbL8Te8fKtmIQAhZWqVTaXEV6FW9vTlCGspjh1zTV7IYIE+Poc12Agg4IOeLKWM/UOVvmyGPNbg==, tarball: file:projects/arm-qumulo.tgz} + resolution: {integrity: sha512-GNfb2C0thI6BztiDRxWxekFhaNMrxfr49TUTM6I8FqAcQX3TZ7+Xn6not89GXiMWVathvrFf8TMkoJ7ZGrYKKg==, tarball: file:projects/arm-qumulo.tgz} name: '@rush-temp/arm-qumulo' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15757,16 +15836,16 @@ packages: dev: false file:projects/arm-quota.tgz: - resolution: {integrity: sha512-SliWaIN+Rcv9IO/Jg5OpZ8rxNzffNfZJOa375V45hPzipbZhzW0s+9MaxYzA3zFcbuiL7UMLpoOVYxWMQejEzQ==, tarball: file:projects/arm-quota.tgz} + resolution: {integrity: sha512-NCB8Nen24P4lV4Wy+a95Sw4HrMVkqcklyfs3HMOb0IxFrpThJiOJhS1rXkvD5Ec1okfBfNPcwzWQLvt3HOEjWA==, tarball: file:projects/arm-quota.tgz} name: '@rush-temp/arm-quota' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15774,7 +15853,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15785,16 +15864,16 @@ packages: dev: false file:projects/arm-recoveryservices-siterecovery.tgz: - resolution: {integrity: sha512-oHs4BOulQEkaG3QFPJe0IyomjAZEinjir0bYx2s68YRO+rGj0A+Sv/Qnm8LoB/6BTjUl42nLBCS7eJUpYe4WmQ==, tarball: file:projects/arm-recoveryservices-siterecovery.tgz} + resolution: {integrity: sha512-b/d81K7IFPOaKtope73jrqBUNX3I3gT8DCJD2gFLWxwmkkjD0CJLFOmMUhAxlIO0RSyvOakXpwYaKwsc1BF7nA==, tarball: file:projects/arm-recoveryservices-siterecovery.tgz} name: '@rush-temp/arm-recoveryservices-siterecovery' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15802,7 +15881,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15813,23 +15892,23 @@ packages: dev: false file:projects/arm-recoveryservices.tgz: - resolution: {integrity: sha512-iqNtY8YcvXuQYIeUxhbhCvkji454xHj9UjfVM9r6N3akRvT+oVW7sjpNmm6Gw589QjHwdQgR5EGJnRrTsUrMMg==, tarball: file:projects/arm-recoveryservices.tgz} + resolution: {integrity: sha512-OzGxbqydzboTjE7i/WUZZuPcWWP5hrWN1Y5sz51julbp5mrrCEsbAfLJ77/AcS2C8tjFQjkpoHNXbUkJ3QoJ7A==, tarball: file:projects/arm-recoveryservices.tgz} name: '@rush-temp/arm-recoveryservices' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15840,16 +15919,16 @@ packages: dev: false file:projects/arm-recoveryservicesbackup.tgz: - resolution: {integrity: sha512-CgDiJWEfBie5uPa9+Dm/wsTvLuvtJjhMB41s1uiteo4ApKDyqJhEEaSONEdpQG6LIgfrJiywobzqGUjNIfMEAg==, tarball: file:projects/arm-recoveryservicesbackup.tgz} + resolution: {integrity: sha512-vJd7uw+vO2EWOgb4Q2VS1w730vcEK4IKXWEdHKeULLiKQkOMC2R5yv+ScT4W5qLrpPWxofVGdtvlTChaVFuxNQ==, tarball: file:projects/arm-recoveryservicesbackup.tgz} name: '@rush-temp/arm-recoveryservicesbackup' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15857,7 +15936,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15868,23 +15947,23 @@ packages: dev: false file:projects/arm-recoveryservicesdatareplication.tgz: - resolution: {integrity: sha512-24kYQGbM58lv5R/61dogsGUC0izDyJKrMTR3KWJKYQH76CtODDn71J0E90qeyXrjRuwGqw+b34eZCaUqyUHX5Q==, tarball: file:projects/arm-recoveryservicesdatareplication.tgz} + resolution: {integrity: sha512-+BeQXBTf7kqyP76WWTlQv4QWnH7jTEp5YeFTlLmFPqNmW0Bc/Eo3A1CwWk5vXlax+CluToqUJWWwOlY0t+2djw==, tarball: file:projects/arm-recoveryservicesdatareplication.tgz} name: '@rush-temp/arm-recoveryservicesdatareplication' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15895,24 +15974,24 @@ packages: dev: false file:projects/arm-rediscache.tgz: - resolution: {integrity: sha512-mqMdKd0YceLk1s62hkd4wG7WdHbH+lAHLHvzg27AHCgw24bq2y9C1WuVSkhxVKk1TRx1zBihrxPy8Xb3fzEaYQ==, tarball: file:projects/arm-rediscache.tgz} + resolution: {integrity: sha512-4n8ys1OvtE9/Glu+R82iq1RAXAy8bQCdqfKCnmpi/XBBBTQy09gCxa2oaFd2gz2cvWpaQ+9iPEztdy4j/Vi5ng==, tarball: file:projects/arm-rediscache.tgz} name: '@rush-temp/arm-rediscache' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/arm-network': 32.2.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15923,16 +16002,16 @@ packages: dev: false file:projects/arm-redisenterprisecache.tgz: - resolution: {integrity: sha512-sI/vErh7yDc9Oufx+TIXMwNp1EH8DEznIA3832PJ9TeG+Z+dS6e2+b96N86cfm6KrXbRfGHnONJfp6BEH+3B8g==, tarball: file:projects/arm-redisenterprisecache.tgz} + resolution: {integrity: sha512-s+JbUbQxJxp9Xp8Em9GYV0o7ngPo55Mg97VaiwgBe6l9vu5LMcTTD383xdtwO7UDGkSfXEFUoNbNw+G4jKGtDw==, tarball: file:projects/arm-redisenterprisecache.tgz} name: '@rush-temp/arm-redisenterprisecache' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15940,7 +16019,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15951,23 +16030,23 @@ packages: dev: false file:projects/arm-relay.tgz: - resolution: {integrity: sha512-xnKnpIHxEpsKfRhulihBggq//JkicyBaY7eyKIFi1utQ7H3qO33ZdCaQSVpNULOUdnfwoGhS3lZeMvlrkIYFSw==, tarball: file:projects/arm-relay.tgz} + resolution: {integrity: sha512-JlXpIV1zrOr+LpiWchISq1AlyNe8NpFmbnd8Us1TNJ5UrYOv942PP25GjqjOTIPt9dfmvx7+WyvxT11YPK+Mag==, tarball: file:projects/arm-relay.tgz} name: '@rush-temp/arm-relay' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15978,23 +16057,23 @@ packages: dev: false file:projects/arm-reservations.tgz: - resolution: {integrity: sha512-3iRs3Rasp6wqQReALavxv1Dyn08akPMzF72PJYYtLT6n9w0h+OhrmqJ93kkZlWbkY/yujmqHGI12z17zVahvuA==, tarball: file:projects/arm-reservations.tgz} + resolution: {integrity: sha512-vasJSz66UVx6WHC/riLzubuHEUXbZjRdSb4tWNUW3Tn6tflQE53bzn1ItzFVZwdGYkIqjAesNhiVIA9tmrogCQ==, tarball: file:projects/arm-reservations.tgz} name: '@rush-temp/arm-reservations' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16005,23 +16084,23 @@ packages: dev: false file:projects/arm-resourceconnector.tgz: - resolution: {integrity: sha512-B9lagXZTe7K5PZ8NejCd5z8k3+7ZGwbdqlaHPH5RBrX55bV1IS4qhq3AJ6CuXVM8wejBdQYdu8wIdRc4KZsvdw==, tarball: file:projects/arm-resourceconnector.tgz} + resolution: {integrity: sha512-gy7eAtkdZt738VAx8eTfHQa5lc8Fj2FQjAk6W/uUVAAbmXLZ3ASm370F4gVOsRVUzxcZKVMKVgtx79xjiw6YxQ==, tarball: file:projects/arm-resourceconnector.tgz} name: '@rush-temp/arm-resourceconnector' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16032,21 +16111,21 @@ packages: dev: false file:projects/arm-resourcegraph.tgz: - resolution: {integrity: sha512-zUH7LG2pwzVDPlZCI4VhBJre2Df2c33s7NV+ux4ZRc6MSlt1mcxtXxEYvfMXNf7+Zr+sZBXmfcMiVs8+VuhQCA==, tarball: file:projects/arm-resourcegraph.tgz} + resolution: {integrity: sha512-xQzcEpIRXN7JoZUW1lA8YasKIzAb8R53i9pJxiKq+OKSLqYl5h5Vk6Zbi2+LbPYRM0C+NlHm04r/gpE+eThJdg==, tarball: file:projects/arm-resourcegraph.tgz} name: '@rush-temp/arm-resourcegraph' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16057,22 +16136,22 @@ packages: dev: false file:projects/arm-resourcehealth.tgz: - resolution: {integrity: sha512-QKYu1rCesMdlYKEKRHiTU1UeDDxNFERyKyXDh2847lxymwPP/D1MRzCP//Ctri6pe2jvXNUIZQ7fGV9ufLdtyQ==, tarball: file:projects/arm-resourcehealth.tgz} + resolution: {integrity: sha512-Z51b5HFcWWH29xEmIXXHHtKVUfQypZzALV6iTjCdD0qXITxApCxJLFse21nYLA48sBUbt088A9GHYCIBD/m2SQ==, tarball: file:projects/arm-resourcehealth.tgz} name: '@rush-temp/arm-resourcehealth' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16083,23 +16162,23 @@ packages: dev: false file:projects/arm-resourcemover.tgz: - resolution: {integrity: sha512-GfCk+cFykR+OoOwOAK4sETZulOSenwWMKQFKXow28F1TOsR7nWWRONcKMB0WOqsl4Os0XxMPF5y4uSSnAxx94w==, tarball: file:projects/arm-resourcemover.tgz} + resolution: {integrity: sha512-k7+ll78u2TfVXKR/W7UCIbPeSxCCrX8KSU+NEvUGgxNK+aygpqTmXUM8meudXQetPCcDa4TgMH/LbYA2ybzthw==, tarball: file:projects/arm-resourcemover.tgz} name: '@rush-temp/arm-resourcemover' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16110,23 +16189,23 @@ packages: dev: false file:projects/arm-resources-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-nMgyss1eb62firJEw9NM09/3z5YvqP7giS46NZ5e9ll9yHX4cJ3NWT3wHrNtwDpvb9lrV84laOv1RI5gScxpGQ==, tarball: file:projects/arm-resources-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-bmv6pnZKwvc1JpOIRG0VLSIUFOsU3d1X9SzP2+a6PEdaDEHgPQCxT7esdcfW78m788GB2IX+eJAZ7/ftw5Nvpw==, tarball: file:projects/arm-resources-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-resources-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16137,22 +16216,22 @@ packages: dev: false file:projects/arm-resources-subscriptions.tgz: - resolution: {integrity: sha512-ZLi8oi6cLlSk+Oc7Crje7aaZRCpFhQrTIRfH3p9Y0UbxM2uNB2C3DkTw2IYyNqezxrhPZfHg+3OHmm1b+U0qEA==, tarball: file:projects/arm-resources-subscriptions.tgz} + resolution: {integrity: sha512-aQa+zQmiVvqTjQNxtLs23aDqz6HvjnuhasprXgO/HC3URmZHryBN9B5fFO1RquR5xkgPWdE11518gFpBNu+m0w==, tarball: file:projects/arm-resources-subscriptions.tgz} name: '@rush-temp/arm-resources-subscriptions' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16163,23 +16242,23 @@ packages: dev: false file:projects/arm-resources.tgz: - resolution: {integrity: sha512-Qmu9lAuw2ebF6CJejpXYRp6msY9Tm80FEOUXCstYv1HTeuMT/XHWE51uiKtlzRX8mXIzEtKWqTLJbnA29HWAsw==, tarball: file:projects/arm-resources.tgz} + resolution: {integrity: sha512-VcsfgszOelIZOoH/4FhhWsUTtjFl2pvOLcQ3z2njGu5B8zkoIK1M1b7xu8kGp8b0iTnJUzcJHniFpXrb+9Ij7w==, tarball: file:projects/arm-resources.tgz} name: '@rush-temp/arm-resources' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16190,23 +16269,23 @@ packages: dev: false file:projects/arm-resourcesdeploymentstacks.tgz: - resolution: {integrity: sha512-JYfii9hNv1nNo/MVURWinVZLvStXzUhgAFwWGhwda9MEVnGqWxC2chsUZmB4SGjnsIQITuH/ValmCIPrRI6ZhQ==, tarball: file:projects/arm-resourcesdeploymentstacks.tgz} + resolution: {integrity: sha512-lcPYLyrvFVCkBL19YeAJOCcUyfKqX6Nn2gKUsgvy29vISakXeveFY21qqBINa8/VgTCHOURhZ67CP8fDZ1umAQ==, tarball: file:projects/arm-resourcesdeploymentstacks.tgz} name: '@rush-temp/arm-resourcesdeploymentstacks' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16217,23 +16296,23 @@ packages: dev: false file:projects/arm-scvmm.tgz: - resolution: {integrity: sha512-IXoHjgmuDT6lZv//NRYrQorGCNV4qvQZMw3nqZa+TVETc7SXtZ1XUJoChT7hIIFnAbvYBZx+9trbunaB8a7Y3A==, tarball: file:projects/arm-scvmm.tgz} + resolution: {integrity: sha512-6dtp0PZjlfSwh/I+Qf/R4nUjW0BF6kY6I4LNSbGSdk+bJoAdZ+6+UXZrUkBfFjv//pNI5Uf2GBF5NhhzpewYgg==, tarball: file:projects/arm-scvmm.tgz} name: '@rush-temp/arm-scvmm' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16244,23 +16323,24 @@ packages: dev: false file:projects/arm-search.tgz: - resolution: {integrity: sha512-Na4arZcPzswhzF8Fi0O0+dX7HyhCx21d/zu8uDFsqF4t7vhArbxewOFnYfMWGBubDvkRslDDUKWbZOsMI/57Yw==, tarball: file:projects/arm-search.tgz} + resolution: {integrity: sha512-GMGkLcIUi7c1Jvg/yMRfS5bHCvoaVdXSt4bfLxZoCHLxymBZWLg/r3naWpuW18ytvc7UMeeJm7/5XeDVuM0PFg==, tarball: file:projects/arm-search.tgz} name: '@rush-temp/arm-search' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 - mkdirp: 1.0.4 + esm: 3.2.25 + mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16271,23 +16351,23 @@ packages: dev: false file:projects/arm-security.tgz: - resolution: {integrity: sha512-u2esuhP1W9Bw2VFdjt2PWia9UCncJ4MSKDfRZiBjompPLsoxhK6YzKNjzRlj6xy/D9CRRveQ7tV/1w/Jt7eCkw==, tarball: file:projects/arm-security.tgz} + resolution: {integrity: sha512-qACFhnnwBFrThZ7rTUvxpSe+rFOlKRbgGZ/qy5Q6Mnu5ggDk+9p/7abIJG+Yyj8NC5HS09eELEs+K4eM9uB4wQ==, tarball: file:projects/arm-security.tgz} name: '@rush-temp/arm-security' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16298,23 +16378,23 @@ packages: dev: false file:projects/arm-securitydevops.tgz: - resolution: {integrity: sha512-28flvZM982prcnmb138ArBvrXooi85fOQeMoGj3J0okzqkKWjtkmCtO6Xz9tJY3aZ/Fuvg/r5kHvgZbU0kP0dA==, tarball: file:projects/arm-securitydevops.tgz} + resolution: {integrity: sha512-WFwbxg49BxfXBOH0+8P4kdnuri/AH9oNPKYS9O5Cmi87313R0Eht/Zzgb7/SMY78yo3s5deoJURru8t0DNrh6A==, tarball: file:projects/arm-securitydevops.tgz} name: '@rush-temp/arm-securitydevops' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16325,23 +16405,23 @@ packages: dev: false file:projects/arm-securityinsight.tgz: - resolution: {integrity: sha512-nmSllrgu/D2fIm0lEg+JBXXZszU/FM4LFJJkZXRDjLQNVUi1Lz/yz4x8b2CvoXsW1a871gTXOi8q1Y8gUpZc9w==, tarball: file:projects/arm-securityinsight.tgz} + resolution: {integrity: sha512-AQjct2rPlZn1Ru8fQ67UDbfVujDJUTnrHs+2Cv2ufopL6Orv5vVDBmp4kKQMIviKjTgDDyo0AVBtrIeaJCADKQ==, tarball: file:projects/arm-securityinsight.tgz} name: '@rush-temp/arm-securityinsight' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16352,16 +16432,16 @@ packages: dev: false file:projects/arm-selfhelp.tgz: - resolution: {integrity: sha512-q0aIALRKdXZ7X7EweAexYcIZIZcl1CebIl5ZjMHrAMew2cA1bkpCr9Qt2yejiuO7xEZCDVFREZxCLwQODbagMA==, tarball: file:projects/arm-selfhelp.tgz} + resolution: {integrity: sha512-OLahXFLD5DfBdbjyUkVzHNRBhKeM8HSPBkkFKSVufIOk+EfPH6E4gAUMGoMXf12nZ5UIsSIDSOZs3CEZ5oe8kg==, tarball: file:projects/arm-selfhelp.tgz} name: '@rush-temp/arm-selfhelp' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -16369,7 +16449,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16380,21 +16460,21 @@ packages: dev: false file:projects/arm-serialconsole.tgz: - resolution: {integrity: sha512-i5RTkCVappoHBeA3b3r/hiST+az8+zDEC7CeCvOi8SAlyu58zJewIUn6AioE+ZKQ5g3mKL7vhWvr/VyA9rgTeQ==, tarball: file:projects/arm-serialconsole.tgz} + resolution: {integrity: sha512-dl5F+DsMnDb26lV4oUQ0JwXTQEZLk8iGTzLHO0XVUYw3WB6wFmeNs3Q5xaij/TbNOq4cn6fDtICW+kl/eLRyPg==, tarball: file:projects/arm-serialconsole.tgz} name: '@rush-temp/arm-serialconsole' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16405,23 +16485,23 @@ packages: dev: false file:projects/arm-servicebus.tgz: - resolution: {integrity: sha512-71bEJOwUVHboeY+C685ShbjvT/cdO9NXdlcedl5eSugD32bShnObW3pKZ+Py0NiOxtCT+Xmk/gzZ0f0M0D7FEQ==, tarball: file:projects/arm-servicebus.tgz} + resolution: {integrity: sha512-MUuRxRAplWENpyAbZ9YlyNTPoMS6k8LfnfwqCt7g+TFqHTOsD/99ChEBqhB6be+QC9D9jmGy4J7Nw+JODDupvg==, tarball: file:projects/arm-servicebus.tgz} name: '@rush-temp/arm-servicebus' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16432,16 +16512,16 @@ packages: dev: false file:projects/arm-servicefabric-1.tgz: - resolution: {integrity: sha512-nsxfrZy9e4+uvS0s4SnZVNA49Lmk22yUTB3TZRC00zzoGuTl2/zXgbxjJ/DCRXojTAHPxAj4/enrOMVwNaj9yA==, tarball: file:projects/arm-servicefabric-1.tgz} + resolution: {integrity: sha512-2wxThW5vKAnYilJYqr4MdEdcPMPiz0ASVLSR1Jd7AgBAeeS/QhMDD8H4bWnpqs/4WzdxiZk5a+2Qr+NOxy5l8g==, tarball: file:projects/arm-servicefabric-1.tgz} name: '@rush-temp/arm-servicefabric-1' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -16449,7 +16529,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16460,15 +16540,15 @@ packages: dev: false file:projects/arm-servicefabric.tgz: - resolution: {integrity: sha512-dHSXtV5HilhWtF8WyDnTJ7DgLe4F85DVzVMs8BbN5EDioNrdalZ8tzPk+BiGsyBrtQ/VSPsRC/8EMps7HWY4UQ==, tarball: file:projects/arm-servicefabric.tgz} + resolution: {integrity: sha512-Co2PAgIlcFoJjZ3WHlg8TGDJCA0sdQLYXihgV0s0/Xd6sB9fXZt6NX1OzB86zQpWwF/ILhqQbUSGBVlhvdZ9eg==, tarball: file:projects/arm-servicefabric.tgz} name: '@rush-temp/arm-servicefabric' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -16490,7 +16570,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -16503,22 +16583,22 @@ packages: dev: false file:projects/arm-servicefabricmesh.tgz: - resolution: {integrity: sha512-H40bxL/Rk2irrl7vylbxma3yRTJ1CzRHmlbvQEXBpjKFQifkCACxVGP13HAMBcAbZAMlkyqsMDVgH5daiE8TXw==, tarball: file:projects/arm-servicefabricmesh.tgz} + resolution: {integrity: sha512-hKIFXk5ywgwQf3Z2KxLSVivFg/WlCUf0MNOS4g0/D4nzX68OcGbKEA3veA7QD+HPaPBxfh81JkkjKRvPNGc2ug==, tarball: file:projects/arm-servicefabricmesh.tgz} name: '@rush-temp/arm-servicefabricmesh' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16529,23 +16609,23 @@ packages: dev: false file:projects/arm-servicelinker.tgz: - resolution: {integrity: sha512-ypfjkL6zxTQCeV1wGnuZ5jp+6xFn8xr3xxpSV7meOUpbK5g/FsPgAp+17VgL72PBWUOs7xXp5IFKYShcLKoX0g==, tarball: file:projects/arm-servicelinker.tgz} + resolution: {integrity: sha512-gO1Ynv8xmh6gAV292Xg8lRnpIDUuyLER88wTAFfByirhpWhiAA36TevG7igdodB5I7LSJ7wgP6A8mHyEXFSNRQ==, tarball: file:projects/arm-servicelinker.tgz} name: '@rush-temp/arm-servicelinker' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16556,22 +16636,22 @@ packages: dev: false file:projects/arm-servicemap.tgz: - resolution: {integrity: sha512-HcGK/ZGbBMFlRmQEjFOHxh2eEAiJD4oOktIWkw7b1ad1VSUayDyqEtyO+kwDD7Cye7+eqnOKK5KXtyq6bpCN/Q==, tarball: file:projects/arm-servicemap.tgz} + resolution: {integrity: sha512-5hAvmxN/pYBveHQdAWYkGNFpAzMJKCyt+cjS6CxHnZlxT9jmv0JmqZ4iyxrJY9v0tZJLf5iKpSkldSujFZuSrg==, tarball: file:projects/arm-servicemap.tgz} name: '@rush-temp/arm-servicemap' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16582,16 +16662,16 @@ packages: dev: false file:projects/arm-servicenetworking.tgz: - resolution: {integrity: sha512-1xeaplkloqUsU44Ww4L31jRxPXDNeB2vwZ71Vj4IVGThs/bJwAGRTin4AniXTGiI26OXZyNNoGbo7EvqdYOAkw==, tarball: file:projects/arm-servicenetworking.tgz} + resolution: {integrity: sha512-K/vw/qAVpygyid7wTMqoM9xOHEddvU/xstuFkGbC6TWdBHpPHdvpwhgEEZ0Lg/LpUJAAbo/DZRtjX7Tlf235Eg==, tarball: file:projects/arm-servicenetworking.tgz} name: '@rush-temp/arm-servicenetworking' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -16599,7 +16679,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16610,23 +16690,23 @@ packages: dev: false file:projects/arm-signalr.tgz: - resolution: {integrity: sha512-ZmMAsux5HFfA9YBrhXDyL1WiehPZSn2EoKESqoG14Zeo7POAxcIkP66kHx05vkfOYLwmfYewI9wbp0tQ990Y2g==, tarball: file:projects/arm-signalr.tgz} + resolution: {integrity: sha512-psByUZapvok/o+/UzSkfOicwB36a/80uOzZNekSWT7gx/yU3DOjzzLJRt4h4EvH1t8K2v1u6EJ5dVqvamis9YA==, tarball: file:projects/arm-signalr.tgz} name: '@rush-temp/arm-signalr' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16637,23 +16717,23 @@ packages: dev: false file:projects/arm-sphere.tgz: - resolution: {integrity: sha512-FecbO1rrKc54C8B70FYQblM9IMZu3xp+MYvqp1u+9VUoSGFsmkw47mZap9ApSqr2fbzXDFUVwl5faMAOl9iDCw==, tarball: file:projects/arm-sphere.tgz} + resolution: {integrity: sha512-7bB3KNhZkCOV4UuBBjk1eMAWMLgPwabZlacuN3UWTGk4hZipIi+BzbLxq59T8YR2jJVd/RjpbkTNf0EpImLDLA==, tarball: file:projects/arm-sphere.tgz} name: '@rush-temp/arm-sphere' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16664,16 +16744,16 @@ packages: dev: false file:projects/arm-springappdiscovery.tgz: - resolution: {integrity: sha512-A2tlPSTSESOP8s72ohjMiNNc7W7kN8Pgw9wsV/zDSF35uegD/9bh23qRy8UWHk65fzivRT6677tPfLyYIVrp/A==, tarball: file:projects/arm-springappdiscovery.tgz} + resolution: {integrity: sha512-Cvx3054L4wjXLqPYez9k27Kk6jV14PEnCRZQnX3E8JintkVnee/s0LwgDNtaRMcIG0Nwctmp7iJb4zUHdzzDqg==, tarball: file:projects/arm-springappdiscovery.tgz} name: '@rush-temp/arm-springappdiscovery' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -16681,7 +16761,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16692,16 +16772,16 @@ packages: dev: false file:projects/arm-sql.tgz: - resolution: {integrity: sha512-ex3UJHDftkICLCA5doTfowXFXLLV4D2nc4rTG/shZZjNsxDI92pqASoxVQgatsHDeFd4oklXVCoQHIG105bc4g==, tarball: file:projects/arm-sql.tgz} + resolution: {integrity: sha512-f2JeKbczdfYUglBcV15ua5iQWX0+kQiuANYmKb2jIr33ZvrqI8ITj5nY9wJwwf39VjknNUqG+YYlt+AgLOwzLg==, tarball: file:projects/arm-sql.tgz} name: '@rush-temp/arm-sql' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -16709,7 +16789,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16720,23 +16800,23 @@ packages: dev: false file:projects/arm-sqlvirtualmachine.tgz: - resolution: {integrity: sha512-/lyrMBelmHzvGtPf/WfQd7Ie/3zjXgC4QmkwnRkPtiqCf+0DXIR54w+MYcsmxy/5XXKxbpfDRNOgPQqejCShcQ==, tarball: file:projects/arm-sqlvirtualmachine.tgz} + resolution: {integrity: sha512-H3PCZcUj4J8LGTEMYqRtR3rRuqaVZ+J4ntuGONNiBSdDosHkyR2Zb9PCqJ6BpEyD+pY+XGIgO0NrHOf/N+9Fvg==, tarball: file:projects/arm-sqlvirtualmachine.tgz} name: '@rush-temp/arm-sqlvirtualmachine' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16747,23 +16827,23 @@ packages: dev: false file:projects/arm-storage-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-I6N9Dzp45uKP74OaTD+Zz0tsWS4nPf6e4FPs95IgGDCoWzeTDnesgj36U3rf/cq8ZXMtULEM3kf35aoe62QTzQ==, tarball: file:projects/arm-storage-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-A/lDTGj63BcUVlKDracjMmjqLnK6BSZYyVww2uvaHizZ1oKkQNPHdrSwy3CsLVZm0jzcM5a5oA47AyxQEGOhEQ==, tarball: file:projects/arm-storage-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-storage-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16774,23 +16854,23 @@ packages: dev: false file:projects/arm-storage.tgz: - resolution: {integrity: sha512-NaCFNQ7Pdl53jqJiSRCyGeftSaEiLOoAViaxVEz0ATYqkQTKX8GQgRtZya02ZjOX6zE7JyPAWTslA+IFTXLJVA==, tarball: file:projects/arm-storage.tgz} + resolution: {integrity: sha512-IsrRlXy9gZvyVd2b2l1pwItXE0Ny2/KktW1yHAL0SDZQrKdVDIUQl59swXoexqgYTGR5NOPKfXFVv2dd0Wflfg==, tarball: file:projects/arm-storage.tgz} name: '@rush-temp/arm-storage' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16801,16 +16881,16 @@ packages: dev: false file:projects/arm-storagecache.tgz: - resolution: {integrity: sha512-BmqN6ugeFzb49BkhF1bWQ6xJ8CD5y0mfAg+d+ZweVu0kjPTKCbhF8+Mh/mLpJ0zp2ha7S0EEE7ePWhTk0CAVpw==, tarball: file:projects/arm-storagecache.tgz} + resolution: {integrity: sha512-fM8T5Xb2jI4+F4Qh6yq2mwkfi+pSw781mYwVS9QvZcwoEpSAr779vVEdfdjyHseT5aGvVxMtdHUoSadfFgDSGg==, tarball: file:projects/arm-storagecache.tgz} name: '@rush-temp/arm-storagecache' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -16818,7 +16898,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16829,22 +16909,22 @@ packages: dev: false file:projects/arm-storageimportexport.tgz: - resolution: {integrity: sha512-GHyQElSN8jBqq+5ag5eZrOHi4VeXfOywe2GaORyTnFXTte2XTYSgpMxXfpxt3DPybZej2jieWmxqUG/b6VewqA==, tarball: file:projects/arm-storageimportexport.tgz} + resolution: {integrity: sha512-uiE/VT89Q+7TwXl3eBjcvDT/1gpGCMKWY1mT01K6JHicwGHmYrf5TxAEBw1RXKywwQ1siEk04dtTDIzyJOJVhg==, tarball: file:projects/arm-storageimportexport.tgz} name: '@rush-temp/arm-storageimportexport' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16855,23 +16935,23 @@ packages: dev: false file:projects/arm-storagemover.tgz: - resolution: {integrity: sha512-3PKBf2cm5mX9aivD/2DwLgpn95PyO3thDFjJ0CE58D1UzmwJNUOmhsEZ6ZKy7pFFmh2jYmTFzNIoU+xwg3sh7w==, tarball: file:projects/arm-storagemover.tgz} + resolution: {integrity: sha512-MFYVDNTzld7P77u8Ahv4hiPhUR3JYENMX3X+H62gfFzIvea4yswoKJ7k5GlzDG1uJ/grAUz5oIrnNXz3j7ln0A==, tarball: file:projects/arm-storagemover.tgz} name: '@rush-temp/arm-storagemover' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16882,22 +16962,22 @@ packages: dev: false file:projects/arm-storagesync.tgz: - resolution: {integrity: sha512-joRm8SmJIc86XZEolXZdFUCn5n/lnMynWLeX9dXR24yJxpY8wpO8bwJIKxfCPbUxohHiFq8lIxl63rEwgg1eCg==, tarball: file:projects/arm-storagesync.tgz} + resolution: {integrity: sha512-8eSsDVILdgrJHqo9fh3hVqo9OAlTz5gu/mZu6TXBbTon2oAhQ/dVFji/DsmgqTC+Hp0OqGsZT4W1d0b2X8oQOw==, tarball: file:projects/arm-storagesync.tgz} name: '@rush-temp/arm-storagesync' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16908,22 +16988,22 @@ packages: dev: false file:projects/arm-storsimple1200series.tgz: - resolution: {integrity: sha512-j91FpbfColfGYFcqG/Zdd5iJsHU7m4RzS3ilxSuMneHS277eCwpPlLpx4uLpFQxqTXeU84OJZI4zfMAzUIuc/Q==, tarball: file:projects/arm-storsimple1200series.tgz} + resolution: {integrity: sha512-KQePcPFTCqHq+6UQ16uMNhkvwRKVLB8hduJkVh4OfsrA9kfffsPifxvfCRo/SgMg9sxWuhj5bqvSiZD7NLJWXg==, tarball: file:projects/arm-storsimple1200series.tgz} name: '@rush-temp/arm-storsimple1200series' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16934,22 +17014,22 @@ packages: dev: false file:projects/arm-storsimple8000series.tgz: - resolution: {integrity: sha512-VRQ/YjAU5r/GytNGuxkLQm8dY6DYauU8tEZK4QiuHDKK2PAMi3htlfiG9zgvcZpY5qDhgCS6NG6bXHLIJZ13sA==, tarball: file:projects/arm-storsimple8000series.tgz} + resolution: {integrity: sha512-75eXnb9cnIg1faRH4oHjM0+8FtD3vmKtb7oYVhV2gL0O10Cr8UN8yQ8tA6N/cL/Zh+4O4cJDQRJwULKHrGkb7w==, tarball: file:projects/arm-storsimple8000series.tgz} name: '@rush-temp/arm-storsimple8000series' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16960,16 +17040,16 @@ packages: dev: false file:projects/arm-streamanalytics.tgz: - resolution: {integrity: sha512-bMBT/aKNcnJEPV/Dsoyly19s7obyxzppiRLG8QPeFpIjI8UarUMpLDlqPc7yYG767tbtOiqsTjQGb3kAE9VPNw==, tarball: file:projects/arm-streamanalytics.tgz} + resolution: {integrity: sha512-lUO5FclctX19VVQ2hjcS9wBbwCjkgS2ruhc/e4slK88hBm6oSsdR5ZFGSGXlIVUaFfoMiDqZkN2DvDeKeIsz8w==, tarball: file:projects/arm-streamanalytics.tgz} name: '@rush-temp/arm-streamanalytics' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -16977,7 +17057,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16988,22 +17068,22 @@ packages: dev: false file:projects/arm-subscriptions-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-MFbYzgXZkhn0o2uvUgheWdCscLB6BJQRw1bxodgsbgBxOLjl6NAYiG6K8PJgQtjT66Km7/J6TjAZmbnG3fEAGw==, tarball: file:projects/arm-subscriptions-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-YRcQwLa7VJXk4rqSbKwvOrLX3P05ASOzFq3Yv/j6kxp7cRd7MOtcWA9Lkio563EHmfSmJ7cBnQGkpaWYQWW8bQ==, tarball: file:projects/arm-subscriptions-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-subscriptions-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17014,22 +17094,22 @@ packages: dev: false file:projects/arm-subscriptions.tgz: - resolution: {integrity: sha512-u7yuFd+M/tLW7d1vgyQalQUSfNPutU1UEbfpuMxRMdzFvzUJdVbxDy6ktk6YXDNg34X6AjDdi0T4usMfip69Fg==, tarball: file:projects/arm-subscriptions.tgz} + resolution: {integrity: sha512-M7rp04rhDaNUbmRR2V57BZ6GomyX37GVC6vUmtpV+4DLyJADh6Brl+1btNL5EN/0MySAYgcOBjKo+QmeNMWrhA==, tarball: file:projects/arm-subscriptions.tgz} name: '@rush-temp/arm-subscriptions' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17040,23 +17120,23 @@ packages: dev: false file:projects/arm-support.tgz: - resolution: {integrity: sha512-3JVcl02aSpUgesD81sxncG7rK0U1nKN1aG2PO76mEizvWZYCtgU7j+UtFaBKr8hQQgnFv5nKUmc2Gg7ixKc/4A==, tarball: file:projects/arm-support.tgz} + resolution: {integrity: sha512-XgHePCWuTKjXuSHkZz20+016AqnFYLJ9cVZfFW77mqqU9JfJ9v29bYUXkJroBv3AWSIbRGE16qI+JIyv0nHK9w==, tarball: file:projects/arm-support.tgz} name: '@rush-temp/arm-support' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17067,23 +17147,23 @@ packages: dev: false file:projects/arm-synapse.tgz: - resolution: {integrity: sha512-MpXgMplw6Ub2Cq3+wICiu2K434EIL3VHbUY0gQgARXmHqFYb+AK8133N4ARiGI37DIjoGPeQmzSsHVWGZnoKGA==, tarball: file:projects/arm-synapse.tgz} + resolution: {integrity: sha512-kOuS3lRnosyB8YQ3TziUxlUwgwGPCjz1Z7jlvXBMgH8TO8omKadOFQY/9hWQ4v6RARlVolwSHP1GNSvePmbfTQ==, tarball: file:projects/arm-synapse.tgz} name: '@rush-temp/arm-synapse' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17094,21 +17174,21 @@ packages: dev: false file:projects/arm-templatespecs.tgz: - resolution: {integrity: sha512-e0UAtbuCrJ+ciKRKtK6GZCxe2ZzA6SnOJwMwkrWGU4oPROxsapRN8p8DjNu+OUAqLZPuMrOIZjrW14Y1It6lnQ==, tarball: file:projects/arm-templatespecs.tgz} + resolution: {integrity: sha512-EmKy5ke81PZG2w6t/d67Mqza32v/gsJ3/q3qSIfIU63+QCvmfXqcy2o88YsvLNPNRfFjylRJMSTgSwJczc7W6w==, tarball: file:projects/arm-templatespecs.tgz} name: '@rush-temp/arm-templatespecs' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17119,23 +17199,23 @@ packages: dev: false file:projects/arm-timeseriesinsights.tgz: - resolution: {integrity: sha512-snC/fy5M7czA6QMqbhHDAJpOW7t2OUU9K50R3eT/ZExoqsuolkYmYPHV+UGP4H5RqcarIlIxT59+t0IoQnVVcQ==, tarball: file:projects/arm-timeseriesinsights.tgz} + resolution: {integrity: sha512-XoZWa4Jt0GMYTuSd2qRUglUWPG/sa/ty6703EJX8r/b6x3dd2YKucD5Ke5p/zq7csu8uCEb/klBkduj44vuRXw==, tarball: file:projects/arm-timeseriesinsights.tgz} name: '@rush-temp/arm-timeseriesinsights' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17146,22 +17226,22 @@ packages: dev: false file:projects/arm-trafficmanager.tgz: - resolution: {integrity: sha512-K2hxsxFmVn+tzlhpo+KQzr5gIxRY0CWyQY6rKQJ/kll1ws0Q4f/uKThWAju4uAnr3woVR1UmX4i3GOIyNObABg==, tarball: file:projects/arm-trafficmanager.tgz} + resolution: {integrity: sha512-bg8nHImFEb1ciZRKU956sIjJGBNyqeckeiwaVbHrFtYORI0Sjt/2VNMTtAApCxJ38UASSisSVPUW7njG9sSEJg==, tarball: file:projects/arm-trafficmanager.tgz} name: '@rush-temp/arm-trafficmanager' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17172,22 +17252,22 @@ packages: dev: false file:projects/arm-visualstudio.tgz: - resolution: {integrity: sha512-brjdBlZByMiKwKgdpxJA0uhCCg73m5NNOffwG5Wfli2JI25oPcnXNk2Vw0mghamnamqOcak/6BDi1/+7opOILg==, tarball: file:projects/arm-visualstudio.tgz} + resolution: {integrity: sha512-1Y9NsgDZSlN8vWd6LCK0Pem/9NYpSWamCh/bWSGLcs+UtmaUV1GuSwMnzjx/vVE6+ZJimBn+1FreRI198JVD8g==, tarball: file:projects/arm-visualstudio.tgz} name: '@rush-temp/arm-visualstudio' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17198,23 +17278,23 @@ packages: dev: false file:projects/arm-vmwarecloudsimple.tgz: - resolution: {integrity: sha512-r9gtrD1gCaCbQ1XH4XSM/LfdE6keWeOaiSbPtb7QRs3f4UYar3/8zOt4uXjVNpnC+ho0o1bChpJ6y0rFsaPe0w==, tarball: file:projects/arm-vmwarecloudsimple.tgz} + resolution: {integrity: sha512-zhj2hQWVp2fvoUQhs1HseU6eV84EciqNDRA8j2OUtXtG0APU2XnnC26xb80cWJlk/mfHG5QCjq1arUi2zUeQDA==, tarball: file:projects/arm-vmwarecloudsimple.tgz} name: '@rush-temp/arm-vmwarecloudsimple' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17225,23 +17305,23 @@ packages: dev: false file:projects/arm-voiceservices.tgz: - resolution: {integrity: sha512-3eB17MMGPKdd1mp3nXelGat2GBWw3Xy89Af4xJCFPYXuqs/Clnavu4FhsDr5osCEx+JR+apEIdW8ObjL3KMA4g==, tarball: file:projects/arm-voiceservices.tgz} + resolution: {integrity: sha512-IxfZerPD/9wJd0cnwIod168ubCV8tbS1XxSR5LUTTnmMErHluo2GID+MzMlH/5UqyAj1vA2m3FgMJr8x7KAaQA==, tarball: file:projects/arm-voiceservices.tgz} name: '@rush-temp/arm-voiceservices' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17252,23 +17332,23 @@ packages: dev: false file:projects/arm-webpubsub.tgz: - resolution: {integrity: sha512-kjw/v4io7Hov1LS/yzhZpDvnqeubKxwt+hVjxp6FFBW/HUVCOOe4VQAWlhhN3BOBV5KBtokD7G+iT40k74uAaA==, tarball: file:projects/arm-webpubsub.tgz} + resolution: {integrity: sha512-OkIVPy5PpCCVJsorwfLwI/vvCcnQn0t2UU41O4QRbmosZfwRbF38+Ir0Wax3+s+d0kyRw8vMVX3rnovasBfnRg==, tarball: file:projects/arm-webpubsub.tgz} name: '@rush-temp/arm-webpubsub' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17279,22 +17359,22 @@ packages: dev: false file:projects/arm-webservices.tgz: - resolution: {integrity: sha512-yyBiTNj8d3HVeYHjBlXZmvrzBKEw/uc2HgD/520PCFunarhhGU2aHcM7963avjSKvO5hDKlPFPbCBWnu8m0hnw==, tarball: file:projects/arm-webservices.tgz} + resolution: {integrity: sha512-Bs60yKzm+nOJlATCNhnb8/yHZ6WPQ5UOgPkdayU0nmdXk6FXn4hbM4zdVVeUWu+HjsEjdDjABabvXCXGINrZHQ==, tarball: file:projects/arm-webservices.tgz} name: '@rush-temp/arm-webservices' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17305,23 +17385,23 @@ packages: dev: false file:projects/arm-workloads.tgz: - resolution: {integrity: sha512-XKudilLFmlEgKCwBkIm8nfpwBGLogLxfz3o5CS3tEm2lFIleiqLxbkT/TqJ3Gmi5D9/XgeYNGI6+2tUEyW0nwA==, tarball: file:projects/arm-workloads.tgz} + resolution: {integrity: sha512-lr5KIJunk0HbSI18EMRZhtKgzxwGjq/Ucy6PrizHnbUjTx+6sNI5KWvzOGCVd3hVBrmgag10dSq7X6abx9qgEA==, tarball: file:projects/arm-workloads.tgz} name: '@rush-temp/arm-workloads' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17332,21 +17412,21 @@ packages: dev: false file:projects/arm-workspaces.tgz: - resolution: {integrity: sha512-kI0Z+inDWhOs2eqg0lqAc4Q/2VhtxMZaIm6Uii4xuyvPkm9B/LRQOTJabYoOdl4rbFZ918sJbA9elNHM3/nd8w==, tarball: file:projects/arm-workspaces.tgz} + resolution: {integrity: sha512-L8DySKHpx3B/lB3Eem+ecbloZWvHXe4jSJnJhytVZGYO89/HOM+Acp2NquPbzzRYpHp3geVLQnZu5QqcfvAYLw==, tarball: file:projects/arm-workspaces.tgz} name: '@rush-temp/arm-workspaces' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17357,16 +17437,16 @@ packages: dev: false file:projects/attestation.tgz: - resolution: {integrity: sha512-YwIN3qeropX+TPwF8EdEBOidsU00CxgzefGqPUVjIDduG9miM1hTUgN7W+yHW597qvL66APhxN0q5+v6RUiAAg==, tarball: file:projects/attestation.tgz} + resolution: {integrity: sha512-Tyyw19qYotupz4mlS4DmPUF2zB70bpChZno35Q4D+A1PfIgBKI7ao/xnMqrNV0TlcVjq3w5BpI2+IOZeWnck1g==, tarball: file:projects/attestation.tgz} name: '@rush-temp/attestation' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 buffer: 6.0.3 c8: 8.0.1 chai: 4.3.10 @@ -17393,7 +17473,7 @@ packages: rimraf: 5.0.5 safe-buffer: 5.2.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -17407,16 +17487,16 @@ packages: dev: false file:projects/communication-alpha-ids.tgz: - resolution: {integrity: sha512-8yd47IqUf2ma+MaLeDBMpoUUaiJQU8g/vXoZeOzM7aBnIWQZ+pynNBbo1yckG4XJ7HvMVLAhGn/yBT453ko65w==, tarball: file:projects/communication-alpha-ids.tgz} + resolution: {integrity: sha512-294gcuMdC40IF/5CXi/H5JRQOfTEZYLXOoytJS0DxsvUxbCg44Jc7fGIelw5Q5FvF7+UOC7KmvjWEXy5JK+E5w==, tarball: file:projects/communication-alpha-ids.tgz} name: '@rush-temp/communication-alpha-ids' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -17437,7 +17517,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -17450,15 +17530,16 @@ packages: dev: false file:projects/communication-call-automation.tgz: - resolution: {integrity: sha512-LzF6jq2cRdsVswdEp93ACi2iHYunNXUaoyvc7xSDzIMtqQZOBMC3zPUvBz3PoMQPeUTW0gC5wZEPXiJ+SujqQQ==, tarball: file:projects/communication-call-automation.tgz} + resolution: {integrity: sha512-7ik+mCe+DXNguC7eA3dmLuvrEzmZbZMMtBnja563UuHfxesOf5qd9zRlOjRRswl3RyxOpGOQekgDiMGgkIQH3g==, tarball: file:projects/communication-call-automation.tgz} name: '@rush-temp/communication-call-automation' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@azure/communication-phone-numbers': 1.2.0 + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -17481,7 +17562,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -17495,16 +17576,16 @@ packages: dev: false file:projects/communication-chat.tgz: - resolution: {integrity: sha512-zHfAT3Jlmoxh9aAFe7K6Oi5Mk75jpndAi6emM2aNafxxM10wJFiMrKBSMIeo56d1qIDxNiamDRAxgXcA17bAbg==, tarball: file:projects/communication-chat.tgz} + resolution: {integrity: sha512-AQBomA10nLQB2QRgSfR3gWNrxtHCz+4PEwfy3RIIV+GUzKL+ERsvsaKT1oMe7xtRGPcV6qBvT5wuirJh4Wz8lA==, tarball: file:projects/communication-chat.tgz} name: '@rush-temp/communication-chat' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/communication-signaling': 1.0.0-beta.22 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 c8: 8.0.1 @@ -17529,7 +17610,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -17545,16 +17626,16 @@ packages: dev: false file:projects/communication-common.tgz: - resolution: {integrity: sha512-9ElzIgkR+3Kv6IhNRJt9atGlIZa97gqjXCvVD2WxlrcdM6GODGRtIFS8bNbcUFywbJP3+2I31YE4EMsuxGS6oQ==, tarball: file:projects/communication-common.tgz} + resolution: {integrity: sha512-60J2fhLVxzSYMGCI4mFkiVH6NmTFd0DAhQydqgYbWzdYThUNyBACjHU7eo3hll9Kjun7KtezhJl8V8w+dEmy7A==, tarball: file:projects/communication-common.tgz} name: '@rush-temp/communication-common' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -17578,7 +17659,7 @@ packages: mockdate: 3.0.5 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -17592,14 +17673,14 @@ packages: dev: false file:projects/communication-email.tgz: - resolution: {integrity: sha512-KdQRPiGnVECE3zjqt8AiHtvluFeGuZwAHTqWjvbLNGVEfccUh3a+85viGKC34+PLilPpJyxUtjJwQmSgrJOAag==, tarball: file:projects/communication-email.tgz} + resolution: {integrity: sha512-82DSQ18aDqMYJztC7/2cR7p9zFQ48gTZVQGR1kABj0OTtI+5LGKPGGGuRWiqiRbf32OJqVIyKgGKIyFrS+CXwQ==, tarball: file:projects/communication-email.tgz} name: '@rush-temp/communication-email' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -17619,7 +17700,7 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 1.14.1 typescript: 5.3.3 transitivePeerDependencies: @@ -17632,17 +17713,17 @@ packages: dev: false file:projects/communication-identity.tgz: - resolution: {integrity: sha512-zfrzDjBCmfhJBcv9semQ+F5QstOdvioprljAVPNzkCPHRG86PqhliRrVKMd7k33sRMxtc0Fxi+zeIDkntvoGIw==, tarball: file:projects/communication-identity.tgz} + resolution: {integrity: sha512-n0zbMYfUqfxoIfuoiGKp5zvCB6PgKBTZtg42KCEpo8m4+vw6w5ncYRG+ZGNIZT/BCv8vPh8GkPxNGFH1a1R4Dw==, tarball: file:projects/communication-identity.tgz} name: '@rush-temp/communication-identity' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 '@azure/msal-node': 1.18.4 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -17665,7 +17746,7 @@ packages: process: 0.11.10 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -17678,15 +17759,15 @@ packages: dev: false file:projects/communication-job-router-1.tgz: - resolution: {integrity: sha512-+NNoBNG/Bl9XQEy5HX+7uYcxGjOUMNIJowNfJK36J70rFZ0xPY0w1mxYO2IOHgmCDW/nq5EMcKzcSqcEEFA8fw==, tarball: file:projects/communication-job-router-1.tgz} + resolution: {integrity: sha512-TAYak9UA+YtHtXk9/DRIGhSOWuXv8KOxdPEo9Mxz9G8EsNWGeA18Hi+Qe2AKo6XcxX55wZDxkyJheBVVwRzJJg==, tarball: file:projects/communication-job-router-1.tgz} name: '@rush-temp/communication-job-router-1' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 c8: 8.0.1 @@ -17711,7 +17792,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -17726,15 +17807,15 @@ packages: dev: false file:projects/communication-job-router.tgz: - resolution: {integrity: sha512-desk9yMknQZik9abM0PiJhgOyw+Aq3MBTiSFM36lA1c8PGoR8NLXGnoe1rl7KyEnqnPO0CqIs09AAeAs9iIeSg==, tarball: file:projects/communication-job-router.tgz} + resolution: {integrity: sha512-HBXK5G5i/gMmoZH7qaA7KeN+dB01FDAj+v1S6OErZTspJNMSw8Nz+KY75OjHWOLV2XfyIx5endQH1BgPYHewqg==, tarball: file:projects/communication-job-router.tgz} name: '@rush-temp/communication-job-router' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -17745,7 +17826,7 @@ packages: karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.2 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.3) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.3) @@ -17755,7 +17836,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -17768,15 +17849,15 @@ packages: dev: false file:projects/communication-messages.tgz: - resolution: {integrity: sha512-ALfKMarmraBZVs9xT6K7B2sMkt931FOSYzjXc5h3FounSsSuHbWiDbv0Cn4ywQqWpZWb5bUWsJURuhbrEDxRcQ==, tarball: file:projects/communication-messages.tgz} + resolution: {integrity: sha512-ay8Z7Sikte3gL1nRo6XQGltuZAkclwGt6dkZANAd/bltC4f15OpEcWT1XDqcNlclsCS2QVaPQdAd1iduVPp2Vg==, tarball: file:projects/communication-messages.tgz} name: '@rush-temp/communication-messages' version: 0.0.0 dependencies: '@azure/identity': 3.4.2 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -17788,7 +17869,7 @@ packages: karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.2 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.3) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.3) @@ -17798,7 +17879,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.2.2) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.2.2) tslib: 2.6.2 typescript: 5.2.2 transitivePeerDependencies: @@ -17811,16 +17892,16 @@ packages: dev: false file:projects/communication-network-traversal.tgz: - resolution: {integrity: sha512-MlzemQSCkDYbcSrR9XBDhjHi5Z3/asZDkC0qcLpB8cYtx3IKY+ivG6yNseQmN35Vvf4hmVn9LofMFfXnw0Iziw==, tarball: file:projects/communication-network-traversal.tgz} + resolution: {integrity: sha512-FYD1FvbT7KM1L10R+soek1v49kycvpzt4hk+Tu/TlkAj/VWnfrv0o/z6Bu0iETelTDJIfaiL4vR4Ju95hsdrgA==, tarball: file:projects/communication-network-traversal.tgz} name: '@rush-temp/communication-network-traversal' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -17844,7 +17925,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -17857,16 +17938,16 @@ packages: dev: false file:projects/communication-phone-numbers.tgz: - resolution: {integrity: sha512-JzXOayITg3nqzZ27xSySo78kW5/DPgSpLsn0fOWUOtw2sQbv15ZeDnYXb11eQ6ly8Sts//ii1jYhf3yw0+vAFw==, tarball: file:projects/communication-phone-numbers.tgz} + resolution: {integrity: sha512-C/1Aur+M6cFGETSxmpjH1N7viR/S+CPeDL9EoqfnrWLfmrxKSz+3OhVs5MQdZYlxu8X39+oFuh6SVxPcCs1BsA==, tarball: file:projects/communication-phone-numbers.tgz} name: '@rush-temp/communication-phone-numbers' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -17888,7 +17969,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -17901,16 +17982,16 @@ packages: dev: false file:projects/communication-recipient-verification.tgz: - resolution: {integrity: sha512-hMfurY3Uh2Bs3QmOg4DJ0mzlycC8l37MW8PghNHNgHQWQ61VUVCFYptGewt1p4endsu9oYrLqIgv7UuXD6PSpA==, tarball: file:projects/communication-recipient-verification.tgz} + resolution: {integrity: sha512-mGvSiGEn/LCH/HebBz5bVCwWRnoPNwtRoUZ5vwtMNb7yCPpqpg7sAcg3IZkpJaAbRZjiTw4cTvDlrZfcqiAh2A==, tarball: file:projects/communication-recipient-verification.tgz} name: '@rush-temp/communication-recipient-verification' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 c8: 8.0.1 @@ -17933,7 +18014,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -17947,14 +18028,14 @@ packages: dev: false file:projects/communication-rooms.tgz: - resolution: {integrity: sha512-Jp5ZETyt7ubXG5sGlg42nfxPsFPbpsDvA84+5m3kkjnkpc56boFDtJT+2Fc9ZF7AQ3fCzA1diA1MDtSCAEWo/A==, tarball: file:projects/communication-rooms.tgz} + resolution: {integrity: sha512-37laV/u3tPNunKHVlZBx2aDk0c7iJA2isAYHCaDejCapWs5ox47yAiV47jeDqLWfvpLkj24VIfxOZHrJDqq2gg==, tarball: file:projects/communication-rooms.tgz} name: '@rush-temp/communication-rooms' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -17968,7 +18049,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 1.14.1 typescript: 5.3.3 transitivePeerDependencies: @@ -17981,16 +18062,16 @@ packages: dev: false file:projects/communication-short-codes.tgz: - resolution: {integrity: sha512-c6gu2B7TY1jOjDgjMnncaXR69eRonypm26I++NV1tpuBZWSdZiNqPwkxQv2QcFzPb990Qd5e+8Duw169tn+Ajg==, tarball: file:projects/communication-short-codes.tgz} + resolution: {integrity: sha512-SLoCCQkqIbUrmX4CAtH3QLKxm0GM4JXPX24ucoXxP43UNGjI/83x35ZN1ryDQSzTKAZoVj8w6PK0xSpvecyc7g==, tarball: file:projects/communication-short-codes.tgz} name: '@rush-temp/communication-short-codes' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 c8: 8.0.1 @@ -18013,7 +18094,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -18027,16 +18108,16 @@ packages: dev: false file:projects/communication-sms.tgz: - resolution: {integrity: sha512-AG0uIUZif3jDOmxdY78S9EJbAF1SU9G6pF12/q6hVPmrKPNdND06domPdkp9QX2D4dkJNejEIrKuMQgr96jpRA==, tarball: file:projects/communication-sms.tgz} + resolution: {integrity: sha512-QH1ojOfspANa/398LyCbgm65fB7oCRClO6dTizPduJp6RLfL6BpNkQ3Z3PfkG6rp6WGQZ1V1hXiV75ExSdFJeg==, tarball: file:projects/communication-sms.tgz} name: '@rush-temp/communication-sms' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -18058,7 +18139,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -18072,16 +18153,16 @@ packages: dev: false file:projects/communication-tiering.tgz: - resolution: {integrity: sha512-C/UipvVfbb9lMrYtG9rZ06v/lSCOuEyENCxu4UMKRtJ9iIbPwTsfPOHQNBGZo6LIlY3hO5AUqrbGcrDB8ueiIg==, tarball: file:projects/communication-tiering.tgz} + resolution: {integrity: sha512-BFGZCZu4YmXn4F9PYNbDzz7iCDFnDsQgsJqZ5q1KbGicMXpKBpC09SfjXZkQA2eiGjAlg6T5f8n9MeRfvYNUXQ==, tarball: file:projects/communication-tiering.tgz} name: '@rush-temp/communication-tiering' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 c8: 8.0.1 @@ -18104,7 +18185,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -18118,16 +18199,16 @@ packages: dev: false file:projects/communication-toll-free-verification.tgz: - resolution: {integrity: sha512-Lnd58M5AuJ2Y6sNsumMKfkhgnnD1bF02Mn5fthFjm6K4vx+VnFxxLbgaUksMKBMvlrVV/+WnvMRWjNk1GzFYEA==, tarball: file:projects/communication-toll-free-verification.tgz} + resolution: {integrity: sha512-guA0GcaKeK5ePDFxXqegPcvAi6bfjF6H+IBcL+H0/hvEve5gPsszaaAHFTe1gnLQP8ISZUJydTQtYHJFQ8iOew==, tarball: file:projects/communication-toll-free-verification.tgz} name: '@rush-temp/communication-toll-free-verification' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -18148,7 +18229,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -18161,15 +18242,15 @@ packages: dev: false file:projects/confidential-ledger.tgz: - resolution: {integrity: sha512-PS+z+CsVtMitqUn1QCt0cO3URjvFkEq/UfQM2IPZod4x+VRUpYLDqEhysatKa6nXxfF+lg30KewHMOvn8SJ02A==, tarball: file:projects/confidential-ledger.tgz} + resolution: {integrity: sha512-9idUUYAK2cpLiiBo0CzOkySEf/VZ0gxKOQVR3Pq3MZ5rAFSqIdIV/7cla5qc4oODAxnoa7YCBVSfYi/vG62R5g==, tarball: file:projects/confidential-ledger.tgz} name: '@rush-temp/confidential-ledger' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -18179,7 +18260,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -18189,17 +18270,17 @@ packages: dev: false file:projects/container-registry.tgz: - resolution: {integrity: sha512-ii92awiqoHoZc08k2pJO9Q19HWjKA+oUR/42BFtE3HyTtOOODGKG2q3DdfUiPYzNKIfRGVNwBUkPG7mgBe2ZnA==, tarball: file:projects/container-registry.tgz} + resolution: {integrity: sha512-3RspgAOXX3qvk3JBFV1rdQYz8ml3jB0RNVF0zoe4Fg8We5BM3ERneXg5GFkvpQWQZpkY3MYfRjb6H7eY5dMqgw==, tarball: file:projects/container-registry.tgz} name: '@rush-temp/container-registry' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) @@ -18219,7 +18300,7 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -18233,15 +18314,15 @@ packages: dev: false file:projects/core-amqp.tgz: - resolution: {integrity: sha512-h6a/mCt2qYR/JfmGNeige8PDCTT3/8Vpkj9FypbqmH3opXycLtaN5Dro1f3ejlV9t3F19A17GrSMW+WD77waLA==, tarball: file:projects/core-amqp.tgz} + resolution: {integrity: sha512-ICsMjmllReqeC1y07hti4J86Udpgn1BXyJtSWi6lvsPiiHPGM8NlciGqN4QNLvV8lgss6H1+gXwExsxkRWDyAQ==, tarball: file:projects/core-amqp.tgz} name: '@rush-temp/core-amqp' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/debug': 4.1.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/ws': 7.4.7 buffer: 6.0.3 @@ -18256,12 +18337,12 @@ packages: karma-mocha: 2.0.1 mocha: 10.3.0 process: 0.11.10 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rhea: 3.0.2 rhea-promise: 3.0.1 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -18270,28 +18351,27 @@ packages: - '@swc/core' - '@swc/wasm' - bufferutil - - encoding - supports-color - utf-8-validate dev: false file:projects/core-auth.tgz: - resolution: {integrity: sha512-1LK36hxl/yFX4MHmS5CUf58rso7ZrsDtta31EihcL2mIW0rMVX4dlwG4iu2NvRvl4W1q475ps748uDNjE5Z21w==, tarball: file:projects/core-auth.tgz} + resolution: {integrity: sha512-K96YceOVe8qaxhMMzBkZCoFxcj+pj9B1nSfQHQfxy+5DvE/XnGANhIyCZw3pO8uYhmIMZW1gKVTnZTV3ObV1Kg==, tarball: file:projects/core-auth.tgz} name: '@rush-temp/core-auth' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) - '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) eslint: 8.57.0 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18309,22 +18389,22 @@ packages: dev: false file:projects/core-client-1.tgz: - resolution: {integrity: sha512-OLJyHTL0U4vLGSMZ1Uwm/cbaCSnQpJWNwZxfuqyuHvtF6GoyCXBb9RdB6KZgMhJJgBvEZr3BhxTqM57nciV7lg==, tarball: file:projects/core-client-1.tgz} + resolution: {integrity: sha512-yrsRgyVw1pJ406mbPES7sVLkTnwYAoJuy5L09RiBVRFG1GTvV5qUlrvL+uAAL7xLWAL8+vetNYYTgZqPFN8KOQ==, tarball: file:projects/core-client-1.tgz} name: '@rush-temp/core-client-1' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) - '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) eslint: 8.57.0 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18342,22 +18422,22 @@ packages: dev: false file:projects/core-client.tgz: - resolution: {integrity: sha512-J+mQDVAxm/CPhw9yQFUrQt3TLclaYwfzkmNDWVcG3wYLZPyNF6m6Oz5ZyzQpwtQgA1GrZFMtJ6ALGyXqdOYGww==, tarball: file:projects/core-client.tgz} + resolution: {integrity: sha512-38pzXw+IilxQ47iaH8qqQIDKBXJu2dnmz+293f/E3wOoLQbfVnkGMPeM+U9OnsSmUXax5cn7nObnV0nF4CDLDw==, tarball: file:projects/core-client.tgz} name: '@rush-temp/core-client' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) - '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) eslint: 8.57.0 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18375,21 +18455,21 @@ packages: dev: false file:projects/core-http-compat.tgz: - resolution: {integrity: sha512-o4+VSa/YjxAuW8meTMp04lfhMav4XhxI2mQBUsgLm6qrsG+UInoYc1XjeoG9dxsSbtoDT8iNguuNKzCXTdAEnA==, tarball: file:projects/core-http-compat.tgz} + resolution: {integrity: sha512-tJPVNWs3bvk80ejwdQWP4r+PL5FO0v6SJ40GugfqBq8vserFyZxRkVq0zDee39eORw1zVDyGp2XfZMY6BBeKxA==, tarball: file:projects/core-http-compat.tgz} name: '@rush-temp/core-http-compat' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) - '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) eslint: 8.57.0 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18407,22 +18487,22 @@ packages: dev: false file:projects/core-lro.tgz: - resolution: {integrity: sha512-4z+td5KBrB4E4AC1W8sIikhPFggJTtbjtzYitU01rvQe6H97SnwxgSX95X3VYJuuz6FTtaTu8Ygodk7U9AvdUA==, tarball: file:projects/core-lro.tgz} + resolution: {integrity: sha512-I2vOznyNVg96o2ndmFcAi2oeJ4sM38eR0ueE6mDKa1DCg02qlf80RxrlRZGUElS19xpWKGbdnERPqCskAMyjSw==, tarball: file:projects/core-lro.tgz} name: '@rush-temp/core-lro' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) - '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) eslint: 8.57.0 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18440,22 +18520,22 @@ packages: dev: false file:projects/core-paging.tgz: - resolution: {integrity: sha512-ZSI0Vg4yD2/EK/sq4+YxdzQy9YGswtLd5DeTD397iaMoy0vyp/6BKURyIPiSoBTofFUIV3j7MwaO9tfkyHbT8Q==, tarball: file:projects/core-paging.tgz} + resolution: {integrity: sha512-vvZhetkvZ2gG2gxrDKB3AK+6758n4iCXqNQTlWCX2s3JHTGFhkNXQCBzejDjPVyBAA4UxCCsFJca70eX1J2h4A==, tarball: file:projects/core-paging.tgz} name: '@rush-temp/core-paging' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) - '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) eslint: 8.57.0 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18473,24 +18553,24 @@ packages: dev: false file:projects/core-rest-pipeline.tgz: - resolution: {integrity: sha512-SxZK8Sn3iHsCf4SUWs631chCquZR4EoAnGCZIBAN53fzEx7zu7Fn5kMgthrV7k6sZqNh3Gr+2UoTzrdfd96aKA==, tarball: file:projects/core-rest-pipeline.tgz} + resolution: {integrity: sha512-e72dDkqu0Svpxcftt3FqHr1KhLRk8t8Bago/FyrchzuS8WJB2Z4BoU3rA4dWt9GM/7Sa+CQ9V1mn+5t6J0407w==, tarball: file:projects/core-rest-pipeline.tgz} name: '@rush-temp/core-rest-pipeline' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) - '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) eslint: 8.57.0 http-proxy-agent: 7.0.0 https-proxy-agent: 7.0.2 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18508,23 +18588,23 @@ packages: dev: false file:projects/core-sse.tgz: - resolution: {integrity: sha512-SQ12AH5WYq1DSw8s4W2KBK4lI0JqidtDTYrSBid8ji11C+5EG6brZOmlEsstwrE4/ou2BRGQZjYOiFhCQASPOw==, tarball: file:projects/core-sse.tgz} + resolution: {integrity: sha512-0ulh4nAfDJFxvDkzU3PKjDgRSIUPsB6vMgZ5/U0xPNS7JPPF1q8h3cv/ZcalSTNDdAAuGihR8fEqd/JeaflLAg==, tarball: file:projects/core-sse.tgz} name: '@rush-temp/core-sse' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) - '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) dotenv: 16.4.5 eslint: 8.57.0 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.2.2 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18542,22 +18622,22 @@ packages: dev: false file:projects/core-tracing.tgz: - resolution: {integrity: sha512-OiN48Pr2CrhzGy/wuAmQKNxNq/JVEDsgVVIbSTMLBh09mRgHVAt1dDP2RiazPOUoVgO+a8sg0lUlT9UuJkbLQA==, tarball: file:projects/core-tracing.tgz} + resolution: {integrity: sha512-l14HhQTeoS4qlO/6BfJB4/2Z4KTf3qPD3cOGuO1UJIvYfX0mwmwJHiXc7VLPwCL0khQr8f2rhwfxS81pJcPAlg==, tarball: file:projects/core-tracing.tgz} name: '@rush-temp/core-tracing' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) - '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) eslint: 8.57.0 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18575,22 +18655,22 @@ packages: dev: false file:projects/core-util.tgz: - resolution: {integrity: sha512-m6EGouRXU6ZC5lviRF/UxOy9EcUOR0s05AMbEYkhx9w71Ohu4X8eWea8RiX5kplEaCvQj/Pxpjpk+FqIMiq6tw==, tarball: file:projects/core-util.tgz} + resolution: {integrity: sha512-b1AbMmtrh+KrnMICvIwX44gHMJ8GET4Hof9rl6JAmrc02wDYKa56ZHkHaeQg+ajFIL2tdJnm8Fp8kaDQY5YSUQ==, tarball: file:projects/core-util.tgz} name: '@rush-temp/core-util' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) - '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) eslint: 8.57.0 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18608,24 +18688,24 @@ packages: dev: false file:projects/core-xml.tgz: - resolution: {integrity: sha512-nHFQ7K/R0RCToo50zrD/m7qx1IwTGRhgSD2sa/u5eP323N1Ekv9SolsTKReAM3bqD1PPirvytI8pP9WC2dvkpg==, tarball: file:projects/core-xml.tgz} + resolution: {integrity: sha512-9pzkE3iMmjofYRSecx5G+GoXTBh7IkDfBph8D+Bi89w5fljuGlyAx7dcJL2Bw8+lr/nQEifF9vlu8Rq2WjVw4w==, tarball: file:projects/core-xml.tgz} name: '@rush-temp/core-xml' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 '@types/trusted-types': 2.0.7 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) - '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) eslint: 8.57.0 - fast-xml-parser: 4.3.5 - playwright: 1.41.2 + fast-xml-parser: 4.3.6 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18643,18 +18723,18 @@ packages: dev: false file:projects/cosmos.tgz: - resolution: {integrity: sha512-QvMe4hvJqxGu27gFk9gSt5x0vTeAtrKAv2YfWx1f/lkIeVBhzS4PeFaw9+Gb3cfDLIqB1l9KUkOgoZzWbjgLAQ==, tarball: file:projects/cosmos.tgz} + resolution: {integrity: sha512-g2CHsQoYTDcTtSfv9WMBVR9gKsIwtB2TdGfcwsVq8jMZceOIfLt2QwQT4471bxhG4fQ+vGpkQ8oKilKgWtVu9Q==, tarball: file:projects/cosmos.tgz} name: '@rush-temp/cosmos' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@sinonjs/fake-timers': 11.2.2 '@types/chai': 4.3.12 '@types/debug': 4.1.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/priorityqueuejs': 1.0.4 '@types/semaphore': 1.1.4 '@types/sinon': 17.0.3 @@ -18679,7 +18759,7 @@ packages: semaphore: 1.1.0 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 universal-user-agent: 6.0.1 @@ -18691,15 +18771,15 @@ packages: dev: false file:projects/data-tables.tgz: - resolution: {integrity: sha512-iVIBl8MiXrmlB0wceNOApa29oWDJq6U5IU7Iql2aPWo8Nr/cO35zGNEC4GSLnz9xnk0mPyo/30C+SLc7onJ8DQ==, tarball: file:projects/data-tables.tgz} + resolution: {integrity: sha512-3JEF2N6kEpndgHmxC5jqp5wdTeluMOLqER3YoAcGIatApN1jZ9/5jYHQcXN8JuPZqPFBcAIH8g2c6F2hMXSQVA==, tarball: file:projects/data-tables.tgz} name: '@rush-temp/data-tables' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -18720,7 +18800,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -18734,15 +18814,15 @@ packages: dev: false file:projects/defender-easm.tgz: - resolution: {integrity: sha512-cExnd6UJQQIshWTVKi3p43lDS2pAunjd056VzfoZ4auZpdMfZEh1JXWL8a2d8edmRvnLwS7dNRszanFBafh4kA==, tarball: file:projects/defender-easm.tgz} + resolution: {integrity: sha512-Feg1PWTklRinRbb0fpSl9DlGPs0F+mJPSiPF2pc26+VRmMeYq65b5jUD8EoJI0i8P0ita/XXbL5HMCTzZCSjng==, tarball: file:projects/defender-easm.tgz} name: '@rush-temp/defender-easm' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -18765,7 +18845,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -18778,33 +18858,28 @@ packages: dev: false file:projects/dev-tool.tgz: - resolution: {integrity: sha512-nG09YWhjmXYNV6+T5bq5NgXbetMsZVCsTumlZbkOnyq7pM435jJTDYSC2nsBxvDCYGkqhOQNB2N6gsNs9gZGag==, tarball: file:projects/dev-tool.tgz} + resolution: {integrity: sha512-+bhDzfvPvq4GZ7wsCa2n88wV/biduasOH0FbtwxebJKfG7Br9lefJ0RHB+vpn/S/fN9rv7E1sA0V2j5NB3huKQ==, tarball: file:projects/dev-tool.tgz} name: '@rush-temp/dev-tool' version: 0.0.0 dependencies: '@_ts/max': /typescript@5.4.2 '@_ts/min': /typescript@4.2.4 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@rollup/plugin-commonjs': 25.0.7(rollup@4.12.0) - '@rollup/plugin-inject': 5.0.5(rollup@4.12.0) - '@rollup/plugin-json': 6.1.0(rollup@4.12.0) - '@rollup/plugin-multi-entry': 6.0.1(rollup@4.12.0) - '@rollup/plugin-node-resolve': 15.2.3(rollup@4.12.0) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@rollup/plugin-commonjs': 25.0.7(rollup@4.13.0) + '@rollup/plugin-inject': 5.0.5(rollup@4.13.0) + '@rollup/plugin-json': 6.1.0(rollup@4.13.0) + '@rollup/plugin-multi-entry': 6.0.1(rollup@4.13.0) + '@rollup/plugin-node-resolve': 15.2.3(rollup@4.13.0) '@types/archiver': 6.0.2 - '@types/chai': 4.3.12 - '@types/chai-as-promised': 7.1.8 '@types/decompress': 4.2.7 '@types/fs-extra': 11.0.4 '@types/minimist': 1.2.5 - '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/semver': 7.5.8 - archiver: 7.0.0 + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) + archiver: 7.0.1 autorest: 3.7.1 builtin-modules: 3.3.0 - c8: 8.0.1 - chai: 4.3.10 - chai-as-promised: 7.1.1(chai@4.3.10) chalk: 4.1.2 concurrently: 8.2.2 cross-env: 7.0.3 @@ -18813,42 +18888,49 @@ packages: env-paths: 2.2.1 eslint: 8.57.0 fs-extra: 11.2.0 - karma: 6.4.3(debug@4.3.4) minimist: 1.2.8 mkdirp: 3.0.1 - mocha: 10.3.0 prettier: 3.2.5 rimraf: 5.0.5 - rollup: 4.12.0 - rollup-plugin-polyfill-node: 0.13.0(rollup@4.12.0) - rollup-plugin-visualizer: 5.12.0(rollup@4.12.0) + rollup: 4.13.0 + rollup-plugin-polyfill-node: 0.13.0(rollup@4.13.0) + rollup-plugin-visualizer: 5.12.0(rollup@4.13.0) semver: 7.6.0 strip-json-comments: 5.0.1 - ts-morph: 21.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-morph: 22.0.0 + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 - yaml: 2.4.0 + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) + yaml: 2.4.1 transitivePeerDependencies: + - '@edge-runtime/vm' - '@swc/core' - '@swc/wasm' - - bufferutil - - debug + - '@vitest/browser' + - '@vitest/ui' + - happy-dom + - jsdom + - less + - lightningcss + - sass + - stylus + - sugarss - supports-color - - utf-8-validate + - terser dev: false file:projects/developer-devcenter.tgz: - resolution: {integrity: sha512-9Row3h2eFyesNCODAS99pVVD0EHWgMj+adg6Xh+HGbuLSKTLzRGmiaiZQ1QydAPjIVfPQN2J6ioWsz4y5lqC0A==, tarball: file:projects/developer-devcenter.tgz} + resolution: {integrity: sha512-bfK4GOlAJ9vC+9A95OHPc+JzAJ2eRgLqDfppqIfGV0gFN/GoXTCAp8wjibbr2Byy/SqgSBJrIIQ21DlVNTCYuA==, tarball: file:projects/developer-devcenter.tgz} name: '@rush-temp/developer-devcenter' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -18860,7 +18942,7 @@ packages: karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.2 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.3) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.3) @@ -18870,7 +18952,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -18883,15 +18965,15 @@ packages: dev: false file:projects/digital-twins-core.tgz: - resolution: {integrity: sha512-WABaWf9yAF6rhuVYZinqJqHzhTAjkcb/wt1nry76qwmZImWlM7zLD2KxSnOeLAr1UMOrZtg6L7i3a82Q/N7F7A==, tarball: file:projects/digital-twins-core.tgz} + resolution: {integrity: sha512-7/162x/wY+xN2QTxxexv5jQn+cK6qLdRi1qR6vwr/j7f/CivsHNeo5bZ4juc2qfWT5lQKwo75Kym/cZwTGLnNg==, tarball: file:projects/digital-twins-core.tgz} name: '@rush-temp/digital-twins-core' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 c8: 8.0.1 @@ -18913,7 +18995,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -18928,7 +19010,7 @@ packages: dev: false file:projects/eslint-plugin-azure-sdk-helper.tgz: - resolution: {integrity: sha512-81LjcHURGDNhd99ICbhwWc+aJH10sWa3J7QjDxFc5WhdewTN9gCHQRLXUlXT5oxBl6VK/7cOt8+MHIZ9Ezq8Xg==, tarball: file:projects/eslint-plugin-azure-sdk-helper.tgz} + resolution: {integrity: sha512-c2p8g6bTDtMUiM6D02QH5VPifOavw3/sEXQRQhMooIM0SyRU82dZR2qtzOGw9ZGQ2oXOmPPpW7i/N8ifmjSw/A==, tarball: file:projects/eslint-plugin-azure-sdk-helper.tgz} name: '@rush-temp/eslint-plugin-azure-sdk-helper' version: 0.0.0 dependencies: @@ -18947,7 +19029,7 @@ packages: dev: false file:projects/eslint-plugin-azure-sdk.tgz: - resolution: {integrity: sha512-QWCQpxYTL732c0p0LhhgoNH+PBuwMeWeCUVO6p/y5HVftrAf1V7fCMuNTH6MkVmX6OhcHY941iWQMGnzskrITw==, tarball: file:projects/eslint-plugin-azure-sdk.tgz} + resolution: {integrity: sha512-l4Tfx2HM9nIs5nsD8bx1N7Y1zFQ0eGuqbFbyh9loN2Am9X3m2qvsD6Ou8A5+b+kBxd/qFYhmngaESt/dCl+Gnw==, tarball: file:projects/eslint-plugin-azure-sdk.tgz} name: '@rush-temp/eslint-plugin-azure-sdk' version: 0.0.0 dependencies: @@ -18956,7 +19038,7 @@ packages: '@types/estree': 1.0.5 '@types/json-schema': 7.0.15 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@typescript-eslint/eslint-plugin': 5.57.1(@typescript-eslint/parser@5.57.1)(eslint@8.57.0)(typescript@5.3.3) '@typescript-eslint/experimental-utils': 5.57.1(eslint@8.57.0)(typescript@5.3.3) '@typescript-eslint/parser': 5.57.1(eslint@8.57.0)(typescript@5.3.3) @@ -18975,7 +19057,7 @@ packages: prettier: 3.2.5 rimraf: 3.0.2 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -18985,20 +19067,20 @@ packages: dev: false file:projects/event-hubs.tgz: - resolution: {integrity: sha512-2w5+Fho+ZEbuc8EHMwjZBU8TnU2OLZoZrUXw0svdg6gzQcEuseEC0dzWMyYfYYSpRySwV2jGo/AA5e4XY4KFsQ==, tarball: file:projects/event-hubs.tgz} + resolution: {integrity: sha512-lnKf3XksF5BrjWw+it3UJehsePqWocTU/zwZtJ1MIYSvQc9UGq4wE9TBH3jjsTf2v3pxCVCNTu98vVdM58sIRg==, tarball: file:projects/event-hubs.tgz} name: '@rush-temp/event-hubs' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/async-lock': 1.4.2 '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/chai-string': 1.4.5 '@types/debug': 4.1.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/ws': 7.4.7 buffer: 6.0.3 @@ -19028,11 +19110,11 @@ packages: mocha: 10.3.0 moment: 2.30.1 process: 0.11.10 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rhea-promise: 3.0.1 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 ws: 8.16.0 @@ -19040,21 +19122,20 @@ packages: - '@swc/core' - '@swc/wasm' - bufferutil - - encoding - supports-color - utf-8-validate dev: false file:projects/eventgrid.tgz: - resolution: {integrity: sha512-n4uul6UnWNvKSlQ++Zs0e5paVpd2DITzP1WZ7WigL+eUTvsSBsfeR35Dviw790NvjuuUiPVhZ/1SL5Ehn7ACPw==, tarball: file:projects/eventgrid.tgz} + resolution: {integrity: sha512-JA/5o9eLAnSxEpBzxWVIf+fVdRJXv4Ss4K4aLYnsWECtP4XSbzODq20l5BaZQkpO0EWSpxKCTodRmw9G6gGw6A==, tarball: file:projects/eventgrid.tgz} name: '@rush-temp/eventgrid' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 c8: 8.0.1 @@ -19063,7 +19144,6 @@ packages: cross-env: 7.0.3 dotenv: 16.4.5 eslint: 8.57.0 - esm: 3.2.25 karma: 6.4.3(debug@4.3.4) karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 @@ -19077,7 +19157,6 @@ packages: rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) tslib: 2.6.2 tsx: 4.7.1 typescript: 5.3.3 @@ -19090,19 +19169,19 @@ packages: dev: false file:projects/eventhubs-checkpointstore-blob.tgz: - resolution: {integrity: sha512-9tCkRIV+ana29MG9f705LWm33vr5QP32MQSj2Ugc/FzjJFIo7m7jURJXzUnys8m6Dn4NOCrLa3fNYqzsUq5v2A==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} + resolution: {integrity: sha512-GZttLKha1yC6gORy3lLWOjzpiVHKORUDKX3goHAJKtbmKnSe+0RJ8O1SX0HJ+NQ/6/mIDzG6eiLNBkPcqqc8vQ==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} name: '@rush-temp/eventhubs-checkpointstore-blob' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/storage-blob': 12.17.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/chai-string': 1.4.5 '@types/debug': 4.1.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) @@ -19126,7 +19205,7 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -19140,18 +19219,18 @@ packages: dev: false file:projects/eventhubs-checkpointstore-table.tgz: - resolution: {integrity: sha512-MNAnVLgZpP2tCpMUYctWUxl1p+RHQswDcdueCxd56pcKq2nmRufWnos6IcR6xbBaJ9i5Rqc5pkFX8matcMwjJQ==, tarball: file:projects/eventhubs-checkpointstore-table.tgz} + resolution: {integrity: sha512-e2e2OZ9p4QPVXWesw+cp9dIu1L3+GjmB6Y/18qEISNDPYOc8JX1XaWBK7JnX7TSo6/xb0CsebOAQZogMEIX1vA==, tarball: file:projects/eventhubs-checkpointstore-table.tgz} name: '@rush-temp/eventhubs-checkpointstore-table' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/chai-string': 1.4.5 '@types/debug': 4.1.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) @@ -19174,7 +19253,7 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -19187,16 +19266,16 @@ packages: dev: false file:projects/functions-authentication-events.tgz: - resolution: {integrity: sha512-763pAUuz9DAzi7jlsrmynNZo5SWzxx84mSaoRo6Fp5gcbiTl83FaL4IQxDJgSyMbasckrmb0YgsH3Jzs3wpq7g==, tarball: file:projects/functions-authentication-events.tgz} + resolution: {integrity: sha512-lXoHzjMxtbz8NSmoiT9+c/HUItezv40AHHW3NHLBnKXX6kufB2Gv3He1p4iGCBJoBOGAwKQYiB4dqS4YYtm1WA==, tarball: file:projects/functions-authentication-events.tgz} name: '@rush-temp/functions-authentication-events' version: 0.0.0 dependencies: '@azure/functions': 3.5.1 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -19217,7 +19296,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -19231,16 +19310,16 @@ packages: dev: false file:projects/health-insights-cancerprofiling.tgz: - resolution: {integrity: sha512-8h2H3YNeXGdEGQ+TnUHAsDV6KLvHzLTR+qsSjKocCScNrRdwJBhaSrIo3QtLjBaB7K+iPoPxtsdm3k+lBvKCEQ==, tarball: file:projects/health-insights-cancerprofiling.tgz} + resolution: {integrity: sha512-eYSSKmiQ7PV0CFwAuZR0K9uPivC+fkXFlpbk0iCti0yF4fsAZUkaoMrwfg3lhPZ1F0K5nd1a+lJWdQpP9kRwBA==, tarball: file:projects/health-insights-cancerprofiling.tgz} name: '@rush-temp/health-insights-cancerprofiling' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -19262,7 +19341,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -19275,16 +19354,16 @@ packages: dev: false file:projects/health-insights-clinicalmatching.tgz: - resolution: {integrity: sha512-R9izTxpyw5PG+oUlt8ZEJwcbNJntRoQUsktQ63K5423Ah7UG1UgDPwIiYIrSrVS+X8OxEIu3DDPo7/oeRVJd3g==, tarball: file:projects/health-insights-clinicalmatching.tgz} + resolution: {integrity: sha512-rc5CIO0faOvOu8tAe26x9g9drWFj41DNzK3xd1P9m6xepSCXy/g0V8hL0ECldsRQemB7icVFOz9debRa02NfbA==, tarball: file:projects/health-insights-clinicalmatching.tgz} name: '@rush-temp/health-insights-clinicalmatching' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -19306,7 +19385,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -19319,16 +19398,16 @@ packages: dev: false file:projects/health-insights-radiologyinsights.tgz: - resolution: {integrity: sha512-MgqSqs4TL6lf77N+K1LLcTc0OArMhm7942eyZq4LOE5RQoYx+STFg+wOpncRL0oYlXQ5mLl0XjISd/DmTXb7Hg==, tarball: file:projects/health-insights-radiologyinsights.tgz} + resolution: {integrity: sha512-LzShHe5C9t4zZLNVcQO9e9ber1j7KcYsK7AtcQ4Wyy4IcmqqSb3u0cAGnOEddemfOrtdjBA81uLXBFl47FfGUg==, tarball: file:projects/health-insights-radiologyinsights.tgz} name: '@rush-temp/health-insights-radiologyinsights' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -19340,7 +19419,7 @@ packages: karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.2 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.3) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.3) @@ -19350,7 +19429,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -19363,7 +19442,7 @@ packages: dev: false file:projects/identity-broker.tgz: - resolution: {integrity: sha512-pEzSuEC+bJbFJ/bJ0uWL98hxzLq3DrXEkDOnBhOkgXIqsZ/N2i5MkwCpmF1uUtd6c/Jj7GeoBalZRKDp9rb92g==, tarball: file:projects/identity-broker.tgz} + resolution: {integrity: sha512-RE+YqSTaxxR3bgxMrHGjkuJjywZPJpdr10nDdOkrJ22/So+aW0kisoQEPaQ6WBL7HD6PSN9fWxfTBYsKfBGe2w==, tarball: file:projects/identity-broker.tgz} name: '@rush-temp/identity-broker' version: 0.0.0 dependencies: @@ -19371,15 +19450,15 @@ packages: '@azure/identity': 4.0.1 '@azure/msal-node': 2.6.4 '@azure/msal-node-extensions': 1.0.12 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/wtfnode': 0.7.2 cross-env: 7.0.3 eslint: 8.57.0 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 tslib: 2.6.2 @@ -19387,24 +19466,23 @@ packages: wtfnode: 0.9.1 transitivePeerDependencies: - bufferutil - - encoding - supports-color - utf-8-validate dev: false file:projects/identity-cache-persistence.tgz: - resolution: {integrity: sha512-xjW/usWexAhmcVMN898Kbi+t7A50zceGD22B5femIIF2pIKyExrmUN78+73vvuRWgovG22UHZ5CZwQRm02+PvQ==, tarball: file:projects/identity-cache-persistence.tgz} + resolution: {integrity: sha512-LCwbkL8GhVO0eQEUVYw5NtzezkcIVPHnwXZZ/f0YWGuevw7+KpOVzw+ZptL8VOqaM1+DOFJNfBxemjv/sxx0BA==, tarball: file:projects/identity-cache-persistence.tgz} name: '@rush-temp/identity-cache-persistence' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 '@azure/msal-node': 2.6.4 - '@azure/msal-node-extensions': 1.0.8 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@azure/msal-node-extensions': 1.0.12 + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/jws': 3.2.9 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 - '@types/qs': 6.9.11 + '@types/node': 18.19.24 + '@types/qs': 6.9.12 '@types/sinon': 17.0.3 cross-env: 7.0.3 dotenv: 16.4.5 @@ -19412,10 +19490,10 @@ packages: inherits: 2.0.4 keytar: 7.9.0 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -19423,22 +19501,21 @@ packages: - '@swc/core' - '@swc/wasm' - bufferutil - - encoding - supports-color - utf-8-validate dev: false file:projects/identity-vscode.tgz: - resolution: {integrity: sha512-vnqh3FnIhswMRabiCjc7s1kUEaRMfrXE643pVnnfrap6XtXLobo/uocB9Rc1XBLwpCUMp4CrgRL93ssVCehxNQ==, tarball: file:projects/identity-vscode.tgz} + resolution: {integrity: sha512-WCE5QHoZnOoqtCgxVpD5cYrQDumqgTNKpzUT/hXeLEkJ8Mu7NmDd8QnIWYd9J6MP0pwZDI2IKRVJRv+Wn6fl+A==, tarball: file:projects/identity-vscode.tgz} name: '@rush-temp/identity-vscode' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/jws': 3.2.9 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 - '@types/qs': 6.9.11 + '@types/node': 18.19.24 + '@types/qs': 6.9.12 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 cross-env: 7.0.3 @@ -19447,10 +19524,10 @@ packages: inherits: 2.0.4 keytar: 7.9.0 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -19458,13 +19535,12 @@ packages: - '@swc/core' - '@swc/wasm' - bufferutil - - encoding - supports-color - utf-8-validate dev: false file:projects/identity.tgz: - resolution: {integrity: sha512-j1761zpFWorjbpu/tWmXQ8wDc6t1/9J0pguRlSl1ibFzo/G3in6FLnG1Cc/8UUcQfvEUbRU3tLf+M0WffpCWdA==, tarball: file:projects/identity.tgz} + resolution: {integrity: sha512-eWwcHy7qVgJKYZylPZArxZ9mF4TxBqvuDUGf7/I/q/tBRofMWlSm5+epmkPB5EsFWmLE965r5SwyPapJh5lvrw==, tarball: file:projects/identity.tgz} name: '@rush-temp/identity' version: 0.0.0 dependencies: @@ -19472,13 +19548,13 @@ packages: '@azure/keyvault-keys': 4.8.0 '@azure/msal-browser': 3.10.0 '@azure/msal-node': 2.6.4 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 - '@types/jsonwebtoken': 9.0.5 + '@types/jsonwebtoken': 9.0.6 '@types/jws': 3.2.9 '@types/mocha': 10.0.6 '@types/ms': 0.7.34 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/stoppable': 1.1.3 '@types/uuid': 8.3.4 @@ -19502,11 +19578,11 @@ packages: mocha: 10.3.0 ms: 2.1.3 open: 8.4.2 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 stoppable: 1.1.0 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -19515,21 +19591,20 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false file:projects/iot-device-update.tgz: - resolution: {integrity: sha512-L6CoANIvkPHd8wxwZtE2GCnmcSnhfq76pfbSFKkRIQxdAovBcUfjGWEqLn+8eefB3FG02REvWxyCFi0KBkBBTA==, tarball: file:projects/iot-device-update.tgz} + resolution: {integrity: sha512-UFNINAFOToP7NJR8stMLUfmepJc8b8YXGZJy5z2ZJYf7Db/xKAvjYOcysmy8lIPB3SyjOWiemD3U3/v0r572og==, tarball: file:projects/iot-device-update.tgz} name: '@rush-temp/iot-device-update' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/uuid': 8.3.4 c8: 8.0.1 chai: 4.3.10 @@ -19553,7 +19628,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -19567,14 +19642,14 @@ packages: dev: false file:projects/iot-modelsrepository.tgz: - resolution: {integrity: sha512-RpJ79+50X8ksqxlW0AWqk7c6zVguxpmmP4MhfNkuU44sRaJH96URi9ROItmGIpVRBFbpuuRUOae72ippUgzqew==, tarball: file:projects/iot-modelsrepository.tgz} + resolution: {integrity: sha512-gvMttKI/ZrYHvurbJpfqJcivpEXmmMTOGiLQhMW68m+j1LHsL+3IguNZSffPIox7lRNsDYnpIrLOZ10DbXV+/w==, tarball: file:projects/iot-modelsrepository.tgz} name: '@rush-temp/iot-modelsrepository' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -19597,7 +19672,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -19611,15 +19686,15 @@ packages: dev: false file:projects/keyvault-admin.tgz: - resolution: {integrity: sha512-RLWOSxjyGjR5IK5Zn3K3qhTbssFq8TbHNqWNwm9Mk3SQsUR66+jhDk6lxN6A6lkfSI2p0ACVVIe9gZCGcYTNsg==, tarball: file:projects/keyvault-admin.tgz} + resolution: {integrity: sha512-7MJ5EAxk5BnbrztcD9YgCF89aLz3bUNFh1AbWvk5HR0exX5dZ32iKnJVY7wyc5bclBYGJayh+QQlhbPJN3Scyg==, tarball: file:projects/keyvault-admin.tgz} name: '@rush-temp/keyvault-admin' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 c8: 8.0.1 @@ -19631,7 +19706,7 @@ packages: rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -19642,15 +19717,15 @@ packages: dev: false file:projects/keyvault-certificates.tgz: - resolution: {integrity: sha512-gzE1si0y81RzmpykipQJd3J30EtyRdJafBQ8wL2EO5MmVOr2sGqyFTJiEOW2HivbwCtCn98DsADi2ikdNyyDxA==, tarball: file:projects/keyvault-certificates.tgz} + resolution: {integrity: sha512-OYVRsqy7v/QmN1pxwJQ5FhKJsWMfzAUELoLvT7XudEVa9wOvBZs6bzkKmNjobcyHAmxYU8zjgpsaRv0IrU8Wfg==, tarball: file:projects/keyvault-certificates.tgz} name: '@rush-temp/keyvault-certificates' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 cross-env: 7.0.3 @@ -19669,11 +19744,11 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -19681,51 +19756,49 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false file:projects/keyvault-common.tgz: - resolution: {integrity: sha512-6/RGVMxWL5HA1fMuirrHr6Uppay8SRLhT6XUpKkX7keBA3efjjzpxMBoUweLcAx6wc5i1YzxcRkej8Yc0mp/yQ==, tarball: file:projects/keyvault-common.tgz} + resolution: {integrity: sha512-3eTt0Qa30nw+eIjDezcF8kQ9jFhiFXqTZA6XBNiQAiHrBIeOX4xWXB3kpQ1Xbz2Pqq4G+UnXsc8h3td75Etdgw==, tarball: file:projects/keyvault-common.tgz} name: '@rush-temp/keyvault-common' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 c8: 8.0.1 cross-env: 7.0.3 eslint: 8.57.0 esm: 3.2.25 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: - '@swc/core' - '@swc/wasm' - bufferutil - - encoding - supports-color - utf-8-validate dev: false file:projects/keyvault-keys.tgz: - resolution: {integrity: sha512-lgL5ctDRRbphGvhYV2vOz4Kg88hszujP2+Jfju1c7ZBa1ipljleDh0Q66uciYRlWa/FftYixCkYGVQiQg++rtw==, tarball: file:projects/keyvault-keys.tgz} + resolution: {integrity: sha512-tGzJ200FaETep8Y2lb4/bqtGwstjimWTnepRZwgjrHYFEsjWTfhRGhYKsATCKCKbf8C5NTuQTcNdbgkN8hTLKg==, tarball: file:projects/keyvault-keys.tgz} name: '@rush-temp/keyvault-keys' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 cross-env: 7.0.3 @@ -19745,11 +19818,11 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -19757,21 +19830,20 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false file:projects/keyvault-secrets.tgz: - resolution: {integrity: sha512-mcvWWMggYVmLH1lRR2CiE9/PgK4hcDSsjxtlvBR6c2km/1hkTxOGHPsN1vN5ifSOVsw6pYdOxFWjNIObLEGA6Q==, tarball: file:projects/keyvault-secrets.tgz} + resolution: {integrity: sha512-ceC2UCgZnkE+7/DscilyDhsx9ZVLk1jZR71J7kVXb/JIOQgkyHbQNFAYSQ2EdQRyrq4aYoeeSsKEaJT7k8qXdA==, tarball: file:projects/keyvault-secrets.tgz} name: '@rush-temp/keyvault-secrets' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 cross-env: 7.0.3 @@ -19788,11 +19860,11 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -19800,22 +19872,21 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false file:projects/load-testing.tgz: - resolution: {integrity: sha512-9KppaB75cGaUL3m1zIWsNuS+d9Xu3ycBx1hlwOmKRXF4q4Eb1FwKd3rog2t8w3+/fJNClCK8zCMpIH+vmXki9Q==, tarball: file:projects/load-testing.tgz} + resolution: {integrity: sha512-d8IluGAh4OKdvzXCJSFJmobjvON5nq3IOAfjkafs8Ef4SDTa3QLtA195glf1tVXkfZcJq20Ak5lQ7H2yZracBw==, tarball: file:projects/load-testing.tgz} name: '@rush-temp/load-testing' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/uuid': 8.3.4 autorest: 3.7.1 c8: 8.0.1 @@ -19838,7 +19909,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 9.0.1 @@ -19852,23 +19923,23 @@ packages: dev: false file:projects/logger.tgz: - resolution: {integrity: sha512-+9REBcc8JqvPZtrlasULq44Rf/SZCr0g9nSSc62oxWhgQPsk/YBYMbcsfim7y562Vno8uYTFfqAH3xEjznwgnA==, tarball: file:projects/logger.tgz} + resolution: {integrity: sha512-jUkUA5MVUavt5VKFk1vFVZdC9Qo2YOFYXMcz8lJyUPn9xZNzJ2dIqNbrO15US44xUiLinfcx6W4qr+A7+9pcdA==, tarball: file:projects/logger.tgz} name: '@rush-temp/logger' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) - '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) dotenv: 16.4.5 eslint: 8.57.0 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -19886,16 +19957,16 @@ packages: dev: false file:projects/maps-common.tgz: - resolution: {integrity: sha512-MshhAL16Di9s1phne1vgvSkvX9YI1UWTu80q2UYuUxgBHPnwtw5DwXHlGu+WnMKhGS3VbmOkwXanBPJx7AgDTQ==, tarball: file:projects/maps-common.tgz} + resolution: {integrity: sha512-3GpElejNNohWM/YZB4HYYpZsbjPr3iXqG2qqlASff6ercwPgzyU/zjmFgZj31zrnOFPNj9l7z0aoxyHhoLJlpQ==, tarball: file:projects/maps-common.tgz} name: '@rush-temp/maps-common' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) typescript: 5.3.3 transitivePeerDependencies: - '@swc/core' @@ -19904,16 +19975,16 @@ packages: dev: false file:projects/maps-geolocation.tgz: - resolution: {integrity: sha512-0xRLrvXCaJE17JNnFY1oUoejow+942QyefXiTjL/kvTmj4eYQ5HDCOtmOeZP4rSUXT/qadXX60Uzvdwmy+9ucg==, tarball: file:projects/maps-geolocation.tgz} + resolution: {integrity: sha512-aSRlzsxpI3DVj260DBALkhBOduoCUT/qMHaTS9AJmFFftrdJ89IPdJOeIRO89WR7BG1SaKR2d3n0gQF54JvH/w==, tarball: file:projects/maps-geolocation.tgz} name: '@rush-temp/maps-geolocation' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 '@azure/maps-common': 1.0.0-beta.2 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -19935,7 +20006,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -19948,16 +20019,16 @@ packages: dev: false file:projects/maps-render.tgz: - resolution: {integrity: sha512-Mcdw8CbEFcOY5bEc4EpeHsyqXXeNpO1qwyjHbe9mkK3mlUuXymZlzvUEuLGfjVsSDHP0iPqXTXsHRlp4/AuVCQ==, tarball: file:projects/maps-render.tgz} + resolution: {integrity: sha512-U65JVg+RhikkPqt810eFVXpZO7scNbuR81bS7dFjeqjqjd4tEUsU6argF1XOsWWQxNOHaUhUp/OGZ1by4Vgbcw==, tarball: file:projects/maps-render.tgz} name: '@rush-temp/maps-render' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 '@azure/maps-common': 1.0.0-beta.2 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -19979,7 +20050,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -19992,16 +20063,16 @@ packages: dev: false file:projects/maps-route.tgz: - resolution: {integrity: sha512-/zpn44m8aiOTEBEbWXQMnP412K1ihf3w5mfQVfgb6iBJM7IncdDpvsbFQokItVG5AkA6rEgJsi47xF4//Ctoag==, tarball: file:projects/maps-route.tgz} + resolution: {integrity: sha512-BoHJHYBKoMovRTG7o3iNC3pxZdk8W+inVFXa/PcdM3qygQuWNA92bv9vP+7aeF5UAkkp5f1OD+6PGor5U7SbCg==, tarball: file:projects/maps-route.tgz} name: '@rush-temp/maps-route' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 '@azure/maps-common': 1.0.0-beta.2 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -20023,7 +20094,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20036,16 +20107,16 @@ packages: dev: false file:projects/maps-search.tgz: - resolution: {integrity: sha512-B4YewDv3JmTWVIMpYJDHR/am1Cr6AP6qIs2IPDNBldh7eRq2NJVYEvGE9mhqKoVwlSmZbsI7mCdb+JGZ0cQzQA==, tarball: file:projects/maps-search.tgz} + resolution: {integrity: sha512-YVkCCBVFwS4TRx32GjOuE3qGM3/GKNH64DNYI8l/nrYcNdrO1laeq2hb6uWpvchbgcK3dFE5Nq2/cVii5uc8gw==, tarball: file:projects/maps-search.tgz} name: '@rush-temp/maps-search' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 '@azure/maps-common': 1.0.0-beta.2 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -20067,7 +20138,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20080,15 +20151,15 @@ packages: dev: false file:projects/mixed-reality-authentication.tgz: - resolution: {integrity: sha512-YmEfvYGblBDCX3ShDK6pH5vpYeehwj8YFL82EIKHRC3yOCilxojdnXY6XlWoKlGnR8PmKPacTjyv8ZLbwzm4Sg==, tarball: file:projects/mixed-reality-authentication.tgz} + resolution: {integrity: sha512-kyN9szevkPlknBySlT8Pgt46s4O0irEKZcUpNI6K2wU8SQ6oPCKMwSYqJgWB5OGgncPvEDc/F+wi8vH/PYCgmg==, tarball: file:projects/mixed-reality-authentication.tgz} name: '@rush-temp/mixed-reality-authentication' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) @@ -20108,7 +20179,7 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -20122,17 +20193,17 @@ packages: dev: false file:projects/mixed-reality-remote-rendering.tgz: - resolution: {integrity: sha512-bYue2z4X1o4zb+l9BKAAX0KItEqWIf0HIXwnNjbUB6/qEFpp/emif1nqJO3v5aytxdNQGbrCpKaAeNETsvWfcA==, tarball: file:projects/mixed-reality-remote-rendering.tgz} + resolution: {integrity: sha512-Lx5F3/Uhzb8W+K4uDjllDC+El5XrcN3pSZDhsQ+NYBgWmTihXkDm0uOgeIZi5VQMZLOEHNDgegMBZf25W3VJxw==, tarball: file:projects/mixed-reality-remote-rendering.tgz} name: '@rush-temp/mixed-reality-remote-rendering' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/uuid': 8.3.4 c8: 8.0.1 chai: 4.3.10 @@ -20154,7 +20225,7 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -20169,17 +20240,17 @@ packages: dev: false file:projects/mock-hub.tgz: - resolution: {integrity: sha512-0iFt6iHLpfCmW64Hgw/dxsQJuhX5FWqOFbYNpztGMMZ5z/EYnJ+0blwPQA47vwp6HRJCs93XGCEo9/PL8RvgUQ==, tarball: file:projects/mock-hub.tgz} + resolution: {integrity: sha512-cF5biFHCBknMGeAoMtk9cec5IzeT3ABz8tle5SCZMjc1UFO8hOUeOpL26O/SAwfdz97VYr6NeOL6XWL/l/Ng+g==, tarball: file:projects/mock-hub.tgz} name: '@rush-temp/mock-hub' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@types/node': 18.19.18 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rhea: 3.0.2 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20189,16 +20260,16 @@ packages: dev: false file:projects/monitor-ingestion.tgz: - resolution: {integrity: sha512-XTy7LjKs5BRxWuIZxdTaKpNkghCBuYKEdLuU9ax+9I/dc0XwTZ3Ia5pFYk9DYL6bKhK5u+VQIrC6+gD2NUqOyA==, tarball: file:projects/monitor-ingestion.tgz} + resolution: {integrity: sha512-dfdhur+86HxCJzb09f8aa7lRIZxjhCuZfv2/FA+dhVKsIp+KvZuQuGtbiezUd8Q6nQweFBGYS9hZbTysa5E0iA==, tarball: file:projects/monitor-ingestion.tgz} name: '@rush-temp/monitor-ingestion' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/pako': 2.0.3 '@types/sinon': 17.0.3 c8: 8.0.1 @@ -20223,7 +20294,7 @@ packages: rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -20237,114 +20308,107 @@ packages: dev: false file:projects/monitor-opentelemetry-exporter.tgz: - resolution: {integrity: sha512-S7vXeV/PsUy8mIA6aHvFgk532pQLVUoMVqQUm6m2UV2ywGalYGYboS0eyuQgYJn7ZSiFWVgzmcnveGMOgcPqYQ==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} + resolution: {integrity: sha512-kTOHl9kMbOSOskX+nYUM3Sb7Vk6EgewbgaXKqjz+Brir3IvHoWDSgb+qZM85SeHIjYxEhQI/36jd18HyM4oepg==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} name: '@rush-temp/monitor-opentelemetry-exporter' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@opentelemetry/api': 1.7.0 - '@opentelemetry/api-logs': 0.48.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation-http': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-logs': 0.48.0(@opentelemetry/api-logs@0.48.0)(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-metrics': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-base': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-node': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/semantic-conventions': 1.21.0 - '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/api-logs': 0.49.1 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation-http': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-logs': 0.49.1(@opentelemetry/api-logs@0.49.1)(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-metrics': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-node': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.22.0 + '@types/mocha': 10.0.6 + '@types/node': 18.19.24 c8: 8.0.1 cross-env: 7.0.3 dotenv: 16.4.5 eslint: 8.57.0 eslint-plugin-node: 11.1.0(eslint@8.57.0) - esm: 3.2.25 mocha: 10.3.0 nock: 12.0.3 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) tslib: 2.6.2 + tsx: 4.7.1 typescript: 5.3.3 transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' - supports-color dev: false file:projects/monitor-opentelemetry.tgz: - resolution: {integrity: sha512-WBujV1y7D6UTSec+Bsha86JZGhqO1YFlgQmKWJNPDuAAkDaaOf/Nm0fpOgmYIGpPNQVPa9P4g+EqBC+UTinWHg==, tarball: file:projects/monitor-opentelemetry.tgz} + resolution: {integrity: sha512-oY3JKxapMG5+aFPyq2/ae4IToa2aKOocXo2pcX0O/LBqLry3Hm6fzY302mbH8oW2LjDL7UX/82k5yxXHMXxPgQ==, tarball: file:projects/monitor-opentelemetry.tgz} name: '@rush-temp/monitor-opentelemetry' version: 0.0.0 dependencies: '@azure/functions': 3.5.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@microsoft/applicationinsights-web-snippet': 1.0.1 - '@opentelemetry/api': 1.7.0 - '@opentelemetry/api-logs': 0.48.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation-bunyan': 0.35.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation-http': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation-mongodb': 0.39.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation-mysql': 0.35.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation-pg': 0.38.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation-redis': 0.36.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation-redis-4': 0.36.0(@opentelemetry/api@1.7.0) - '@opentelemetry/resource-detector-azure': 0.2.4(@opentelemetry/api@1.7.0) - '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-logs': 0.48.0(@opentelemetry/api-logs@0.48.0)(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-metrics': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-node': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-base': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-node': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/semantic-conventions': 1.21.0 - '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@microsoft/applicationinsights-web-snippet': 1.1.2 + '@opentelemetry/api': 1.8.0 + '@opentelemetry/api-logs': 0.49.1 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation-bunyan': 0.36.0(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation-http': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation-mongodb': 0.40.0(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation-mysql': 0.36.0(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation-pg': 0.39.1(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation-redis': 0.37.0(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation-redis-4': 0.37.0(@opentelemetry/api@1.8.0) + '@opentelemetry/resource-detector-azure': 0.2.5(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-logs': 0.49.1(@opentelemetry/api-logs@0.49.1)(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-metrics': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-node': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-node': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.22.0 + '@types/mocha': 10.0.6 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 cross-env: 7.0.3 dotenv: 16.4.5 eslint: 8.57.0 eslint-plugin-node: 11.1.0(eslint@8.57.0) - esm: 3.2.25 mocha: 10.3.0 nock: 12.0.3 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) tslib: 2.6.2 + tsx: 4.7.1 typescript: 5.3.3 transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' - supports-color dev: false file:projects/monitor-query.tgz: - resolution: {integrity: sha512-wb9Nut4sCw1VEKskWOOmbAhQGDv2BH31e5tFALkZrJ6x9G9193wklgNWE01AKWcNWP0ZJB+yK1kFPHQQ8BQTOA==, tarball: file:projects/monitor-query.tgz} + resolution: {integrity: sha512-APfUA0snPDgNqjL0lwKnltwvMRAk88dB212p8rG31+7RU11DlirWZhqEiRdm9yv/SAFl1hBOzFUFkzuyi6tKEQ==, tarball: file:projects/monitor-query.tgz} name: '@rush-temp/monitor-query' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@opentelemetry/api': 1.7.0 - '@opentelemetry/sdk-trace-base': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-node': 1.21.0(@opentelemetry/api@1.7.0) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/sdk-trace-base': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-node': 1.22.0(@opentelemetry/api@1.8.0) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) cross-env: 7.0.3 dotenv: 16.4.5 eslint: 8.57.0 - esm: 3.2.25 inherits: 2.0.4 karma: 6.4.3(debug@4.3.4) karma-chrome-launcher: 3.2.0 @@ -20357,12 +20421,10 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) tslib: 2.6.2 + tsx: 4.7.1 typescript: 5.3.3 transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' - bufferutil - debug - supports-color @@ -20370,14 +20432,14 @@ packages: dev: false file:projects/notification-hubs.tgz: - resolution: {integrity: sha512-wYVvhqm1c9pu0sVGbUmow/+Y1RVDeGgQPeSEXNbxXH5BBO4XS0NUD1rsS0sny/ZuiOyBmH584mTuYPitc27Qww==, tarball: file:projects/notification-hubs.tgz} + resolution: {integrity: sha512-s/yAfCbzDTCZhbHVodYO0Vyrehxkpxk771NPRrphdJznZu8v7t6V5o+Bmxx/ys92RNf36oZf9eA+nT4SgdLjDQ==, tarball: file:projects/notification-hubs.tgz} name: '@rush-temp/notification-hubs' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 dotenv: 16.4.5 @@ -20387,7 +20449,7 @@ packages: karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.2 + karma-firefox-launcher: 2.1.3 karma-json-preprocessor: 0.3.3(karma@6.4.3) karma-json-to-file-reporter: 1.0.1 karma-junit-reporter: 2.0.1(karma@6.4.3) @@ -20395,9 +20457,9 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20405,21 +20467,20 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false file:projects/openai-1.tgz: - resolution: {integrity: sha512-J+fEGzw/cTpp6pt2s4N3Hrq4O+aJZHiqfiH5zTtD9s9tHiHLvGcwurZPNaNrrqNtvyCHwgS5rVAJa85c5PX63Q==, tarball: file:projects/openai-1.tgz} + resolution: {integrity: sha512-nHl5TY8ZI+5uXiQGGDdh3YtcZWRLa365QOqeSypMKKywAkRcrhFnYE+UHqFGY7caOgans8Q+wZJU6OwvjS0rmg==, tarball: file:projects/openai-1.tgz} name: '@rush-temp/openai-1' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 builtin-modules: 3.3.0 c8: 8.0.1 cross-env: 7.0.3 @@ -20431,7 +20492,7 @@ packages: karma-coverage: 2.2.1 karma-edge-launcher: 0.4.2(karma@6.4.3) karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.2 + karma-firefox-launcher: 2.1.3 karma-json-preprocessor: 0.3.3(karma@6.4.3) karma-json-to-file-reporter: 1.0.1 karma-junit-reporter: 2.0.1(karma@6.4.3) @@ -20439,9 +20500,9 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 3.0.2 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20449,20 +20510,19 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false file:projects/openai-assistants.tgz: - resolution: {integrity: sha512-sAmQpau4Yt0j6ZWlakq60s7g0PJlloqpTh3opxH6LgYqH5ZMNQVHFUaoAHVVCEj4y7Al/hF68AfuyOYt8yX2LA==, tarball: file:projects/openai-assistants.tgz} + resolution: {integrity: sha512-+Al2BAe9J57+TktRmgFrEC7nr1RV2TdhPDA2qY3+/+7L3+y/KzhH1h8KoHL9SreoEtPM3B1iFni7iryatvuonw==, tarball: file:projects/openai-assistants.tgz} name: '@rush-temp/openai-assistants' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 cross-env: 7.0.3 @@ -20473,7 +20533,7 @@ packages: karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.2 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.3) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.3) @@ -20484,7 +20544,7 @@ packages: prettier: 2.8.8 rimraf: 3.0.2 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20497,13 +20557,13 @@ packages: dev: false file:projects/openai.tgz: - resolution: {integrity: sha512-8k0W5UZO4jYWW3R0sw4J8w/xFEovBBusdYQqIGUMlwGq7t869oE0XXOfahDsZIGDBACj32ci3maBGF8PN/MhUQ==, tarball: file:projects/openai.tgz} + resolution: {integrity: sha512-obXb6vm/bNL9CLo3VIhpsCeY0v9qbzpa8/iCAGWGHLQCqiKrC38nOBVU86j6McQhLyTeviWOz04ax4b0w2Df8g==, tarball: file:projects/openai.tgz} name: '@rush-temp/openai' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 autorest: 3.7.1 cross-env: 7.0.3 dotenv: 16.4.5 @@ -20515,26 +20575,25 @@ packages: dev: false file:projects/opentelemetry-instrumentation-azure-sdk.tgz: - resolution: {integrity: sha512-SbiGnMFn6+q17pUjEWy7BDOM1zxdOmrEW6kF7NScp0BqkEPDEX+KRiyl04aE14eX3RBEFGUOw/cWVisgp2SjLQ==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} + resolution: {integrity: sha512-My75scGbzqjp9IkJaEISCLmVKRPW2dc7a369c8s3+uFHMKIzqiz4BjITxqYlI2N7zZ1o+SAW4QV26zY7Tka3EA==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} name: '@rush-temp/opentelemetry-instrumentation-azure-sdk' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-base': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-node': 1.21.0(@opentelemetry/api@1.7.0) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-node': 1.22.0(@opentelemetry/api@1.8.0) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 eslint: 8.57.0 - esm: 3.2.25 inherits: 2.0.4 karma: 6.4.3(debug@4.3.4) karma-chrome-launcher: 3.2.0 @@ -20548,13 +20607,11 @@ packages: rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) tslib: 2.6.2 + tsx: 4.7.1 typescript: 5.3.3 util: 0.12.5 transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' - bufferutil - debug - supports-color @@ -20562,16 +20619,16 @@ packages: dev: false file:projects/perf-ai-form-recognizer.tgz: - resolution: {integrity: sha512-jwvM/uBXz+A91uURcwEDNZj8aaDBn4bQbL/jKk89Kwfd0T9KbivN8gcuAV+cogmZXxukHgRhyPbV8Ha2guuSjw==, tarball: file:projects/perf-ai-form-recognizer.tgz} + resolution: {integrity: sha512-nHlDtG65YHF/9vLOzaSVYQAl0uGyfB95ZLConBASNnarAdHdTJuzsJYMH3H6STz3z9UcN9rHw7DhXh4KZsi6kw==, tarball: file:projects/perf-ai-form-recognizer.tgz} name: '@rush-temp/perf-ai-form-recognizer' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.18 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20581,16 +20638,16 @@ packages: dev: false file:projects/perf-ai-language-text.tgz: - resolution: {integrity: sha512-zmMlXP481S2leaGbiTPTdoAgWZMmIDLzTjjPgiTqU0qfd9YHtIdaelmqBnwr9F0uRkaKYFR46r97FjSGbsQh3w==, tarball: file:projects/perf-ai-language-text.tgz} + resolution: {integrity: sha512-h5bRfw9HxK0T8exTBPJ0hrJrldRzd4i38FAt8SwD54R8IEJIgZY4hOdMI7SjE+oUSae9ZTt8YIPZujU0TIdFUQ==, tarball: file:projects/perf-ai-language-text.tgz} name: '@rush-temp/perf-ai-language-text' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.18 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20600,15 +20657,15 @@ packages: dev: false file:projects/perf-ai-metrics-advisor.tgz: - resolution: {integrity: sha512-1Qj2vbfJQ10Gkhk3ZAx7pWWzVzFHtPEqiQqWwiGfZxErxv8k/flqDznrr0v9L5KBIml+ygYdHMKhyNFjLjAL+A==, tarball: file:projects/perf-ai-metrics-advisor.tgz} + resolution: {integrity: sha512-aRLifFK3T0HVAG5f/nS5lnGDJjtrkVIRYvdoFtDq14eoUFTYbKXVblms3mGhTAh2cCaZK4QoBa6R4IPhxO7tHg==, tarball: file:projects/perf-ai-metrics-advisor.tgz} name: '@rush-temp/perf-ai-metrics-advisor' version: 0.0.0 dependencies: - '@types/node': 18.19.18 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20618,16 +20675,16 @@ packages: dev: false file:projects/perf-ai-text-analytics.tgz: - resolution: {integrity: sha512-OSuAsD6WyU5XHFVTOIm883IVdqON4sm7COUyxmxP2s/JGz5Nuo0p2jwyFgLl+CkAk7znEvuXA9tcg5wvEE0n5g==, tarball: file:projects/perf-ai-text-analytics.tgz} + resolution: {integrity: sha512-87DiBf7cu6ukgc1f/3ZsG/JTCeJyIIQ8OaWui2YcKuPIiLPIUCdWztfytciNd49RNCLrnhyiR8UbGFAsLKcudA==, tarball: file:projects/perf-ai-text-analytics.tgz} name: '@rush-temp/perf-ai-text-analytics' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.18 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20637,16 +20694,16 @@ packages: dev: false file:projects/perf-app-configuration.tgz: - resolution: {integrity: sha512-McDuRdZ+MgkgonF+gWWqY2MR3Uu/ZXlzv46lA5/AM2onKI/n+DMyvDai26aDDHrhmgWJ8MG2NNuJXZ8uFOvrKg==, tarball: file:projects/perf-app-configuration.tgz} + resolution: {integrity: sha512-4VBBoLiknqGY1Pf5W0b3DQXnhOPiTtwRn352YoZUqN0LtfSIl0On7t0o3bkT3wVKV9YOZHBjfKpB5jRqXJlufg==, tarball: file:projects/perf-app-configuration.tgz} name: '@rush-temp/perf-app-configuration' version: 0.0.0 dependencies: '@azure/app-configuration': 1.5.0-beta.2 - '@types/node': 18.19.18 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20656,15 +20713,15 @@ packages: dev: false file:projects/perf-container-registry.tgz: - resolution: {integrity: sha512-UknYlNsrzb9/E4tBwf0OT5CZz1Czn1VRG/CbEKG+usukq0711J+rqfaCfQS2yrwPED1r3W3Su6odqBe+MHzPew==, tarball: file:projects/perf-container-registry.tgz} + resolution: {integrity: sha512-lKrzqDt/jRSznA+hDQ/YMrYgsNq/WIqlCa0f4/ExOk9WPrFnOH6iVeY/cBCKyRa1lsYa7vUUqcDTZNAXM0f/qQ==, tarball: file:projects/perf-container-registry.tgz} name: '@rush-temp/perf-container-registry' version: 0.0.0 dependencies: - '@types/node': 18.19.18 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20674,22 +20731,22 @@ packages: dev: false file:projects/perf-core-rest-pipeline.tgz: - resolution: {integrity: sha512-d4G9rQMyMyIAfEwY9p+m6QCM9OTaEjS8/pvg89QnJRW56qqxRwI64iGfApGfQX55YXqdtLM+m4Q+a+dR8Uq/mA==, tarball: file:projects/perf-core-rest-pipeline.tgz} + resolution: {integrity: sha512-1kp1CzvjTJooy5VARRN9YdUO5E9WJV4t8SvHxlnmrr4UPpT1j0gs0Qd0EK0CaQ9NVAlzXfZLHX+EuYhzkFi4bw==, tarball: file:projects/perf-core-rest-pipeline.tgz} name: '@rush-temp/perf-core-rest-pipeline' version: 0.0.0 dependencies: '@types/express': 4.17.21 - '@types/node': 18.19.18 + '@types/node': 18.19.24 concurrently: 8.2.2 dotenv: 16.4.5 eslint: 8.57.0 - express: 4.18.2 + express: 4.18.3 prettier: 2.8.8 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 - undici: 6.6.2 + undici: 6.9.0 transitivePeerDependencies: - '@swc/core' - '@swc/wasm' @@ -20697,15 +20754,15 @@ packages: dev: false file:projects/perf-data-tables.tgz: - resolution: {integrity: sha512-+LFt85LhKL0KYqYvEJfmyUZbv3TX27CM45MC4EI0gnCwuLi23qCSEiQdDwGj4JDtMlCUwdyuWG3y7ijNYfOPmw==, tarball: file:projects/perf-data-tables.tgz} + resolution: {integrity: sha512-0JtuW3D7cXwdLvx2QeViId9d5TJDN1yEEYBsd79DLVxpUJOkS7BsKRpYx55rz4YVeYgJwflSkz4lv+THB706Yw==, tarball: file:projects/perf-data-tables.tgz} name: '@rush-temp/perf-data-tables' version: 0.0.0 dependencies: - '@types/node': 18.19.18 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20715,17 +20772,17 @@ packages: dev: false file:projects/perf-event-hubs.tgz: - resolution: {integrity: sha512-D+ZExqVjiKJUcmHO44U8xr/kNkvSQed8CEsp6e66LJ4RWNEHVZud6Rsul8LKJe87ETfXepNHUTbWkBfS4waqLA==, tarball: file:projects/perf-event-hubs.tgz} + resolution: {integrity: sha512-8kFxLUSuT66qoYQwltzcSVmhTNhEQlj35vD0JHeXFcXY537RRLe9ie63OrlBgWU7kLPawf2VTjIINFRNectKzw==, tarball: file:projects/perf-event-hubs.tgz} name: '@rush-temp/perf-event-hubs' version: 0.0.0 dependencies: - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/uuid': 8.3.4 dotenv: 16.4.5 eslint: 8.57.0 moment: 2.30.1 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -20736,15 +20793,15 @@ packages: dev: false file:projects/perf-eventgrid.tgz: - resolution: {integrity: sha512-787Mjzr4zBib6gFgA+xA8VgA1TTgiipDgVQEZUd+oWDuPC6jFihrPfXng9ogHgR/CVt0h81BwJmsjQ2If7upWg==, tarball: file:projects/perf-eventgrid.tgz} + resolution: {integrity: sha512-/bxfs9aM9gkVTPEZcV8kkH9nulqltQe/9UhCc2YFV8qP8RLGBivNsaJzwmq/4nG+5XGx15CJ8oFDRtwuT746kw==, tarball: file:projects/perf-eventgrid.tgz} name: '@rush-temp/perf-eventgrid' version: 0.0.0 dependencies: - '@types/node': 18.19.18 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20754,17 +20811,17 @@ packages: dev: false file:projects/perf-identity.tgz: - resolution: {integrity: sha512-dHYs1Lha6y1+zLOYjV3Ja6AZukV+yf1Js1B0j72wgzEG33F6R7+EuJuUJf1elC/zNqfS/oFHYatfrB9RBEL/Gg==, tarball: file:projects/perf-identity.tgz} + resolution: {integrity: sha512-4kKWzWkL3zi2Fm6cp3kBwDEnex1v6SHXK0/5dfeBaQi1djJ4kYHo6GFs7WqLiLq3tNhMYysMdUm1po+N7QXuBQ==, tarball: file:projects/perf-identity.tgz} name: '@rush-temp/perf-identity' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/uuid': 8.3.4 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20774,17 +20831,17 @@ packages: dev: false file:projects/perf-keyvault-certificates.tgz: - resolution: {integrity: sha512-cabh08grEft+jxOhMZoXdbZfqdN/yGoCRniuXihWC1+Hq4PzOq22wQrvjXM3n5IR65BWMqd8sOw/bLBONnZ5Ig==, tarball: file:projects/perf-keyvault-certificates.tgz} + resolution: {integrity: sha512-TkBrpgsbj2qtDnLPvQSyEjJ3Bd7ftehcJN2oiMGQLoP2nPMKh8h/ZA95KBtPSYjZ2fofHw7DIWQKvam0Q3XnZA==, tarball: file:projects/perf-keyvault-certificates.tgz} name: '@rush-temp/perf-keyvault-certificates' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/uuid': 8.3.4 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -20795,17 +20852,17 @@ packages: dev: false file:projects/perf-keyvault-keys.tgz: - resolution: {integrity: sha512-ALF0NZ5LHk6croBUbpAxJmjXHRbDQTXQNo53rwJTq9kQ7YMFtZ8ohtmsR4+D3GsTSVkpAy8HgJzh3zCAHuwqmg==, tarball: file:projects/perf-keyvault-keys.tgz} + resolution: {integrity: sha512-Q0ubdUt2FjQKN59273vG/T+Jngcx20FT8qy87CjcOuUYkWLdXC/AQ5DkbMCZMXfmjYHg2TD0BYZXlEfZtqksuw==, tarball: file:projects/perf-keyvault-keys.tgz} name: '@rush-temp/perf-keyvault-keys' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/uuid': 8.3.4 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -20816,17 +20873,17 @@ packages: dev: false file:projects/perf-keyvault-secrets.tgz: - resolution: {integrity: sha512-ZFa2bHaE3iAI/Wz/4BpDvA34VhYUC2TYJ4jJmaYUFNfVWqdoCSsFjvhVWSFJeVwgBfPD76NraCmoeUvUTkcKmw==, tarball: file:projects/perf-keyvault-secrets.tgz} + resolution: {integrity: sha512-8ka8qvilTUigrzElOGOAfOz13zfeJyaGrm6rY3hDFjy2R875w/e6twe1CTmyVgZMFf9hS1KVuljf/vCpNLzhSQ==, tarball: file:projects/perf-keyvault-secrets.tgz} name: '@rush-temp/perf-keyvault-secrets' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/uuid': 8.3.4 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -20837,16 +20894,16 @@ packages: dev: false file:projects/perf-monitor-ingestion.tgz: - resolution: {integrity: sha512-NGJiYRptN2G5Aa6j0/VCmlCTFRBtboUBFKm5RfYe0odqykbXSmSUlRAHZajR4wgUN1Zc7FsSezkLnWG8pePXKg==, tarball: file:projects/perf-monitor-ingestion.tgz} + resolution: {integrity: sha512-RXBrhJZ15i6xXfeTJiQsclwIaRDnQlaJkafTNQwofVeIo/GuMECIUG1+inwMV7Ybsj9INqrzhd8k4qppMagZPg==, tarball: file:projects/perf-monitor-ingestion.tgz} name: '@rush-temp/perf-monitor-ingestion' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.18 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20856,39 +20913,34 @@ packages: dev: false file:projects/perf-monitor-opentelemetry.tgz: - resolution: {integrity: sha512-UmIBLhCcyAUSI69l/tuebYr2ycxEi5NETn0Ft0fGi70GAG7Q0RY2276XfMKs8glQwuTcCKPbp8HTR/1jaWrPIQ==, tarball: file:projects/perf-monitor-opentelemetry.tgz} + resolution: {integrity: sha512-CuiiwICnnW5XusZrqq1Cme8qL8cgFMzpcWcdUMt2z7i2enKRuYurcb0R4I2yU6gIq7RAmT3/4ZrJ9tcuuvDZKQ==, tarball: file:projects/perf-monitor-opentelemetry.tgz} name: '@rush-temp/perf-monitor-opentelemetry' version: 0.0.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/api-logs': 0.48.0 - '@opentelemetry/sdk-logs': 0.48.0(@opentelemetry/api-logs@0.48.0)(@opentelemetry/api@1.7.0) - '@types/node': 18.19.18 - '@types/uuid': 8.3.4 + '@opentelemetry/api': 1.8.0 + '@opentelemetry/api-logs': 0.49.1 + '@opentelemetry/sdk-logs': 0.49.1(@opentelemetry/api-logs@0.49.1)(@opentelemetry/api@1.8.0) + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 - uuid: 8.3.2 transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' - supports-color dev: false file:projects/perf-monitor-query.tgz: - resolution: {integrity: sha512-aCUoxgLoqo0l8QNC7iTzU70WDorCIA5GGZrLSJhA8NxGGVLfvSi4DeYwL0Zle/5uqbSWt6hUYA+rf4TmjWD/jg==, tarball: file:projects/perf-monitor-query.tgz} + resolution: {integrity: sha512-XxFW/3sYSD6EP8He4TK6kA/y7A+gmJ+clnkWvEEP8T8vOc0eFx8yLhTWutjHqKAftAV4EwXfR4QSQR9SMJ1E0A==, tarball: file:projects/perf-monitor-query.tgz} name: '@rush-temp/perf-monitor-query' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.18 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20898,16 +20950,16 @@ packages: dev: false file:projects/perf-schema-registry-avro.tgz: - resolution: {integrity: sha512-LQb4g3NZ6t2QvZU9ZKrWJLawDWAt+/o5TivCr080ynesRmFdkwjpIKfQ0/V7Ysz9bs28s5oA32OWOAk9rx+oVA==, tarball: file:projects/perf-schema-registry-avro.tgz} + resolution: {integrity: sha512-jZlTTBK8TgRGSjDuWJn556aq32zaAiHB9D7dXQdGsMaYkybe6ekJCwl47L7RFAqyEC17TjYLpV7vy0a27C8z2Q==, tarball: file:projects/perf-schema-registry-avro.tgz} name: '@rush-temp/perf-schema-registry-avro' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.18 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20917,16 +20969,16 @@ packages: dev: false file:projects/perf-search-documents.tgz: - resolution: {integrity: sha512-FVC0hyC2d9huax+dP3bndPGPgF4T+UBKgvzm7fE+ItaWIcvOdL4fmaGDRE6eEe5q+fxGjPiDWwgRKn2dHrr7eA==, tarball: file:projects/perf-search-documents.tgz} + resolution: {integrity: sha512-KII3JuRkq+eqRm29AnbKtVm7f11cVt9Cet2i9qesQNwFeSl6+KVtTXB4u6iXHs4FP9BjvDBYevRXiQk+5qaTkw==, tarball: file:projects/perf-search-documents.tgz} name: '@rush-temp/perf-search-documents' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.18 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20936,16 +20988,16 @@ packages: dev: false file:projects/perf-service-bus.tgz: - resolution: {integrity: sha512-Y9OPWqLFNZ7nAuhgpm8AgSbr9mHAgRks7m57FDhbrbGYKSNC0Cluw0TISH2Lq7IflZ1a7PkTf+jGSxzb7ZQ8kg==, tarball: file:projects/perf-service-bus.tgz} + resolution: {integrity: sha512-x/dXLp6qDtd0NCXLGGi1g8zNYU5mBegh4EP6JAqOZPKYN5DkO4BVrBbr2cP/6nnqXJc3w4lNCNWEjSl6Lk45zA==, tarball: file:projects/perf-service-bus.tgz} name: '@rush-temp/perf-service-bus' version: 0.0.0 dependencies: - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/uuid': 8.3.4 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -20956,15 +21008,15 @@ packages: dev: false file:projects/perf-storage-blob.tgz: - resolution: {integrity: sha512-P+LlljVMsRTiuNOETQudyNNf8IKC9+dIMp7DzrCY6Ivg6Lqnvdvr7Fs3tyON7p/bo78dzH9S+4JI4klArw6txA==, tarball: file:projects/perf-storage-blob.tgz} + resolution: {integrity: sha512-I75PQWgXOw4kRwD4WNMOlc644NER4SPKpyk0l3GE5UW9C3fYpRL4zLkmgyDILHiTaLtHH9P9x8V3kLMte7aB7w==, tarball: file:projects/perf-storage-blob.tgz} name: '@rush-temp/perf-storage-blob' version: 0.0.0 dependencies: - '@types/node': 18.19.18 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20974,16 +21026,16 @@ packages: dev: false file:projects/perf-storage-file-datalake.tgz: - resolution: {integrity: sha512-TUiBoGVM83x0pglCFNA/EyVsCZwrrMJTg5H6Ykx7/8oYhX6JDoT9A1YM1YQHytz5IhdThB4HNuLm3DbQRADhQw==, tarball: file:projects/perf-storage-file-datalake.tgz} + resolution: {integrity: sha512-UDg47biWhgKXxKxxli0Pjbhm5omIkfJs754EizXDBTRtS00oiMIiLGnZe3wd6BeSbPT7ZKvRichK7WrFs0U2VA==, tarball: file:projects/perf-storage-file-datalake.tgz} name: '@rush-temp/perf-storage-file-datalake' version: 0.0.0 dependencies: '@azure/storage-file-datalake': 12.16.0 - '@types/node': 18.19.18 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20994,16 +21046,16 @@ packages: dev: false file:projects/perf-storage-file-share.tgz: - resolution: {integrity: sha512-GRHAAh7r9j3+rjt1IkqzegBHLSo2hI/OZqcCHZvw78r1ff1TlwpH51DkGafS1DiMV57gwygapbK7AlOn/sbmQQ==, tarball: file:projects/perf-storage-file-share.tgz} + resolution: {integrity: sha512-FtcpUKv/bZdTp691/xaBDmi4j/jINmE3PBmqMqPuFjlX85WPapkaM5QGabvSZPzDhOV0cW/1M2V0N4GTTXnz+w==, tarball: file:projects/perf-storage-file-share.tgz} name: '@rush-temp/perf-storage-file-share' version: 0.0.0 dependencies: '@azure/storage-file-share': 12.17.0 - '@types/node': 18.19.18 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21014,17 +21066,17 @@ packages: dev: false file:projects/perf-template.tgz: - resolution: {integrity: sha512-QECzXzK8cPMGodFUP38hT9EX5C8jPKrGyc7A+qtGd/4pj+3tdapDoBkLwI/i9e7QRwzSa+tEjZoynwNDYWPV2g==, tarball: file:projects/perf-template.tgz} + resolution: {integrity: sha512-G2YxZvjCVJOdkhd+Kpkzac+ixyDc3t5zsxgYRjqLMYoVjSogzp+w8guG+RlVJfxGMkQyaSXo0z29zmgTYvb6Hg==, tarball: file:projects/perf-template.tgz} name: '@rush-temp/perf-template' version: 0.0.0 dependencies: '@azure/app-configuration': 1.5.0-beta.2 '@azure/identity': 4.0.1 - '@types/node': 18.19.18 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21034,15 +21086,15 @@ packages: dev: false file:projects/purview-administration.tgz: - resolution: {integrity: sha512-Gi/RDg2fXA+2d06Uy7wYhhrp0z81BlrzuiREg0z//DNGVd8qE+1kMwdpTTOcnyiz78Ko52afaBUDOpkNS0vssg==, tarball: file:projects/purview-administration.tgz} + resolution: {integrity: sha512-huaMHk3sAyDpT9oL5gA1eVSz3VlmUiWALFdjQeNnFwMPnA3sMi9b9Py+2u+cMMKOR61cdoFQbqt37oU3lLNMZQ==, tarball: file:projects/purview-administration.tgz} name: '@rush-temp/purview-administration' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -21063,7 +21115,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21076,15 +21128,15 @@ packages: dev: false file:projects/purview-catalog.tgz: - resolution: {integrity: sha512-V9Ewq7Pzce0ceIH/xh81nWVIW9380HAebpPjJ4slzR/K1lRwKIkzaoa+V2zjVAKadlyj6xx1lTNSrFV+0c4FAA==, tarball: file:projects/purview-catalog.tgz} + resolution: {integrity: sha512-xPjDgsD/6hQS8hrfIkUct9AO/g1YoSG6Hig6KoR3n2/5Z36NR7H7iCJx4uWQnvmwdkdHL4Jo1L2tlblGqkBbyg==, tarball: file:projects/purview-catalog.tgz} name: '@rush-temp/purview-catalog' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -21105,7 +21157,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21118,15 +21170,15 @@ packages: dev: false file:projects/purview-datamap.tgz: - resolution: {integrity: sha512-jMEVqxCSt9ZMsdYVFwcfhwLLa8sZdkZBEGbrKUi0UqTsmXnp8frn/pkdTrn1qQAMt+zhqbBGs+bnmZR+RoGD5A==, tarball: file:projects/purview-datamap.tgz} + resolution: {integrity: sha512-KYZ07b+xDgBmx68jS0Hr0g8M4EJvUCTY1qxA9PanWfe5bPQ2iNlgU3T8SUQKbGOikWijreqebroJNvEjw71GQA==, tarball: file:projects/purview-datamap.tgz} name: '@rush-temp/purview-datamap' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -21138,7 +21190,7 @@ packages: karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.2 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.3) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.3) @@ -21148,7 +21200,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21161,15 +21213,15 @@ packages: dev: false file:projects/purview-scanning.tgz: - resolution: {integrity: sha512-rvbG0MGCQjGXE+djxJRab7Cz3i8C43p5n6Vnx3KGqA2EqMasoFPzWfcb75aYY08b0ZRu/WKcfPpJDEztOnc6Nw==, tarball: file:projects/purview-scanning.tgz} + resolution: {integrity: sha512-+i9Wn3lF42PuCG9SAFbJAqaUxEne8/0PNj0lj3gwcIzSHoykd38BWeXcsggHWc/sVGp3CwDLC5y2THpsc1hEFg==, tarball: file:projects/purview-scanning.tgz} name: '@rush-temp/purview-scanning' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -21190,7 +21242,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21203,16 +21255,16 @@ packages: dev: false file:projects/purview-sharing.tgz: - resolution: {integrity: sha512-lc9YhGhZxgTmkzgVi52tC44tHalgQHm33H1Z+yyq54ajqxP7JzFMYv68y8KZ8ce0RrcrfNeGFxkLFGFHis3vlw==, tarball: file:projects/purview-sharing.tgz} + resolution: {integrity: sha512-jGmmE0vpjwO4bm/Z880xzUdesP9iWlKCmpRecy2/j0ZYAR2zA0Fj94xjUre3wVOIdO10pOFE+hzt2ChtiJPWeQ==, tarball: file:projects/purview-sharing.tgz} name: '@rush-temp/purview-sharing' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -21234,7 +21286,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21247,15 +21299,15 @@ packages: dev: false file:projects/purview-workflow.tgz: - resolution: {integrity: sha512-Sv3iT2nyU6/cqFlO+PSN1IEq4/EWOCbxVQg52HvEsvw6cgt+Cw3oo4f2KvIMvqzuOaTWWfHIHwmLOt7HWGr4rQ==, tarball: file:projects/purview-workflow.tgz} + resolution: {integrity: sha512-We2FWj+dxhV+6c/q5d+1BXwZJgoAmKlRg1pCvLx6khC6Ij9eFlhDNPJI1gFo+3U6F/17tlpA9iaHfBQvyIUirg==, tarball: file:projects/purview-workflow.tgz} name: '@rush-temp/purview-workflow' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -21277,7 +21329,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21290,16 +21342,16 @@ packages: dev: false file:projects/quantum-jobs.tgz: - resolution: {integrity: sha512-I1oC934zXF04xfBjYHygauOm9kupQAqX4km7iJdpEsq9PV0RED69nevGTlLCV/AJJ3mYemEtjW6ctLma8KsTxw==, tarball: file:projects/quantum-jobs.tgz} + resolution: {integrity: sha512-ynaCHfJXwZY6tCS8I0jED9ghd+ku1+w2PC81cB1Za0+nXaS+PXRBLwH1XSAoxU0l53NZTlfRPpUTTI0EUi2psQ==, tarball: file:projects/quantum-jobs.tgz} name: '@rush-temp/quantum-jobs' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 '@azure/storage-blob': 12.17.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -21320,7 +21372,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -21335,17 +21387,17 @@ packages: dev: false file:projects/schema-registry-avro.tgz: - resolution: {integrity: sha512-2zL4OfTlTEP9f3WbYgvAYRFaQXM1/1/W+/1s0QB4ZdL5ep9Vooq/9e9PutOozOaR13pY+nimzrZVZ8j3WjhFaQ==, tarball: file:projects/schema-registry-avro.tgz} + resolution: {integrity: sha512-0LhM3eb7FB5sPpxqG/xBYw2f7XjztZsPsMgsdGGfcnLc+0HIK1s48tKAER42W3T3qOombQZisYmpALT+MrroIA==, tarball: file:projects/schema-registry-avro.tgz} name: '@rush-temp/schema-registry-avro' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 '@azure/schema-registry': 1.2.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/uuid': 8.3.4 avsc: 5.7.7 buffer: 6.0.3 @@ -21372,7 +21424,7 @@ packages: process: 0.11.10 rimraf: 5.0.5 stream: 0.0.2 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -21386,14 +21438,14 @@ packages: dev: false file:projects/schema-registry-json.tgz: - resolution: {integrity: sha512-oS74NCdlVMU/uK7EF7/QQlMyS2OCOCcRmHPxewP/4rPtk3dTQsXYnlC0MkbKF/+cT3kXbGFMJ4DYL7VN7siNGQ==, tarball: file:projects/schema-registry-json.tgz} + resolution: {integrity: sha512-doA+TR88iajbBMTcYpjZDeJ10xu0OHHllZv4Wi83kkVQT8aicmqsKWy7NfwAjybH0WxDbgCUv6Bt0VX1MmV9cQ==, tarball: file:projects/schema-registry-json.tgz} name: '@rush-temp/schema-registry-json' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 ajv: 8.12.0 c8: 8.0.1 cross-env: 7.0.3 @@ -21414,7 +21466,7 @@ packages: lru-cache: 7.18.3 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21427,14 +21479,14 @@ packages: dev: false file:projects/schema-registry.tgz: - resolution: {integrity: sha512-0TKcx+XJFiwBwOexpulOoYYFnhZGBfK8UL+gP9BJnNuXRXWMzqlPcsEEV2lsE9klxd/6gHa8+fNAQDzgZZ4H8Q==, tarball: file:projects/schema-registry.tgz} + resolution: {integrity: sha512-K0Xo2o3mRwcUW+F8BjJjmI+782xykmK46jVth0QaXKaCmvbfzGRk60Wt0tV01ccE0Zvc8IlKE0y7UWdaZUIoAg==, tarball: file:projects/schema-registry.tgz} name: '@rush-temp/schema-registry' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 c8: 8.0.1 cross-env: 7.0.3 dotenv: 16.4.5 @@ -21453,7 +21505,7 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21466,14 +21518,14 @@ packages: dev: false file:projects/search-documents.tgz: - resolution: {integrity: sha512-E/8D/cCDKlJ63i4dNk+cENIjJkR/9gaskEfI+P9b88aImnWvg7GR8YZuHytxdPKh4WhBMuu4TIp+A9Jic490hA==, tarball: file:projects/search-documents.tgz} + resolution: {integrity: sha512-eaWk1XtnMEVjedoJWv7HNWWWLGDYxy8xK7ZifiS6oSft9z0azlQwsB/ASaoegaCZqm83cnoV9KCY+xvV3QtY5Q==, tarball: file:projects/search-documents.tgz} name: '@rush-temp/search-documents' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -21497,7 +21549,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -21511,19 +21563,19 @@ packages: dev: false file:projects/service-bus.tgz: - resolution: {integrity: sha512-q+lVWs4NbjEftlyi7x7dYXNMo0s8h9hgwPaiMQlk2DynzyeZULMeJe6AA88CvCm3Xe+WO2xUUzMUqGCQdkk1Ng==, tarball: file:projects/service-bus.tgz} + resolution: {integrity: sha512-reS727hnGbcKISyYBRXqHiSZxtW/W+6K4uTH3qzw1RjYvLLLPTApb0uR3dNWVZxScZYnK3JrNJVGgbph7/+CiA==, tarball: file:projects/service-bus.tgz} name: '@rush-temp/service-bus' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/debug': 4.1.12 '@types/is-buffer': 2.0.2 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 '@types/ws': 7.4.7 @@ -21554,11 +21606,11 @@ packages: moment: 2.30.1 process: 0.11.10 promise: 8.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rhea-promise: 3.0.1 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -21567,21 +21619,20 @@ packages: - '@swc/core' - '@swc/wasm' - bufferutil - - encoding - supports-color - utf-8-validate dev: false file:projects/storage-blob-changefeed.tgz: - resolution: {integrity: sha512-qcOjqJVfS8HR7rF6r0ThY3Ob7NyFvg/U/9jvDf0DFNgjFAf4VG3CzduflZWPYtNAN+6a7EMyUSZM1HWGgwOiIQ==, tarball: file:projects/storage-blob-changefeed.tgz} + resolution: {integrity: sha512-wnWbrl+GSHtXZeB/gqEJhk3dcAYO2hXNIqTFDB4OLNxQv7l2Jyt5YXL6TAcG/R3gs7Kxn4tKrI3k8Yn5rt2pyQ==, tarball: file:projects/storage-blob-changefeed.tgz} name: '@rush-temp/storage-blob-changefeed' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -21604,11 +21655,11 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -21617,22 +21668,21 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false file:projects/storage-blob.tgz: - resolution: {integrity: sha512-AmvpINVhtD00TjMEeA7RAXuBcrmysnNYASLFmvrRJAC87HO1cngsYC0bUybR99vUJC5APEgE+d/NLYieLqOYGA==, tarball: file:projects/storage-blob.tgz} + resolution: {integrity: sha512-UbHNdtinQ+ZRDEeVK5218SsLVV6CCmraXC8wJE/XnXArgWc97f+9u2r4iLcm/qjYLy32xQYFWcIF1AmpJrY/Gw==, tarball: file:projects/storage-blob.tgz} name: '@rush-temp/storage-blob' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -21652,10 +21702,10 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -21664,22 +21714,21 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false file:projects/storage-file-datalake.tgz: - resolution: {integrity: sha512-zpxRN6m+5hZFV/muh/zXAa5G9hQeWHny3j4A3ahxhqvWEY+i4rHwo4uqHQUGftAhEnNiZsSBg0YpYTr3c2ncZg==, tarball: file:projects/storage-file-datalake.tgz} + resolution: {integrity: sha512-yBtQEOX13UBeIiM5f4+xHS77YgxEaI1RHCvzV+nWKYN4XVDrvtv3yTjK38tZ0P4kZX2mktqypxRi9dAo0VT9cQ==, tarball: file:projects/storage-file-datalake.tgz} name: '@rush-temp/storage-file-datalake' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -21702,11 +21751,11 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -21715,22 +21764,21 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false file:projects/storage-file-share.tgz: - resolution: {integrity: sha512-Qvu7cCuyHzfqt7R6MoYuuUDB0EWwJgHSQdPEW86UtJDXwkbOV9vhgzzKT55QGgKXiwed1hAQqCBN07N3v/eZyQ==, tarball: file:projects/storage-file-share.tgz} + resolution: {integrity: sha512-GdYbPm9Ac4ZNB3MLrVY6t6OGRRdJ3k50yFm7jXroBhBEnkwM0DoNuI7ZPDIQs9U5L0z/VgbrjrUjS4MC0yhY+Q==, tarball: file:projects/storage-file-share.tgz} name: '@rush-temp/storage-file-share' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -21751,11 +21799,11 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -21764,21 +21812,20 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false file:projects/storage-internal-avro.tgz: - resolution: {integrity: sha512-/4uvdV8knvoUXWVylxyI2TUGPxYGCLFek8Yh5idIxC2WeJDAdzeTXEcwFcMobMA41J2iBwuVhpwIty8fSMJd/Q==, tarball: file:projects/storage-internal-avro.tgz} + resolution: {integrity: sha512-CwelXTLp6cMdIXH1QwW5O5Z8MK7iKVTLJ3BlBIfc9l/rwDv8T8Uq4mGo5AUV7f+mo4Q5XZnD9YAVY3n13ELVEA==, tarball: file:projects/storage-internal-avro.tgz} name: '@rush-temp/storage-internal-avro' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -21797,10 +21844,10 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -21809,22 +21856,21 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false file:projects/storage-queue.tgz: - resolution: {integrity: sha512-5JIX+fXKCwPiySyzoyCJtGPfu4BV6Qxe5u5kbcYb9LkAsJm1pO/g8sEQ+ArQRZdQ4TDVVUGMz3tRO3FdLbpZrw==, tarball: file:projects/storage-queue.tgz} + resolution: {integrity: sha512-OzmxUl/PYHOS8yGyKUtF3xBu0bjmiS7sP8itZKcF9BrXcy/gUBV13jcThjQJPVdOqosige8PfFAlo+2weP2MMA==, tarball: file:projects/storage-queue.tgz} name: '@rush-temp/storage-queue' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -21843,10 +21889,10 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -21855,21 +21901,20 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false file:projects/synapse-access-control-1.tgz: - resolution: {integrity: sha512-tV8DqnE6Lr8GpmVMbG7GZ3EKN7/jbnwNOvdBGFkYMr/AdF7nLhfUkk5+c67F6vpAV2hcccvBZxTcowLEu9MBWA==, tarball: file:projects/synapse-access-control-1.tgz} + resolution: {integrity: sha512-y9Gw6NsQ6LPFuwFO8oGSrDAAHqS82tjtJq1Dm6qJn22lpz+QiVdSAlv/3VO0SvaNZ9I5LyewwzlwIhkdPM6eJA==, tarball: file:projects/synapse-access-control-1.tgz} name: '@rush-temp/synapse-access-control-1' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -21891,7 +21936,7 @@ packages: rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -21905,16 +21950,16 @@ packages: dev: false file:projects/synapse-access-control.tgz: - resolution: {integrity: sha512-p7lmls5XlMEAkMAanyI4OwaoRXFzQVnHBd5SvPuXyDOiJdv5wEszCuMaLl6HfjpKXAey0QMsyKTxR57K4ttpHA==, tarball: file:projects/synapse-access-control.tgz} + resolution: {integrity: sha512-NX2prF/kGaSLwSrS12RsS5hdh4ZqF3wIiEW9cB3dQosMGROwwzAsxWqgqzOEy+QhhWX+++Fhyx4vql29mZbPPQ==, tarball: file:projects/synapse-access-control.tgz} name: '@rush-temp/synapse-access-control' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -21937,7 +21982,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -21951,17 +21996,17 @@ packages: dev: false file:projects/synapse-artifacts.tgz: - resolution: {integrity: sha512-kl1NP0Aly8KJktFBvUrc+XJMgsE9Ude92tavMC2sPKhftN9TTuq3zwHIGEu9GxAItaFsVIPOyBEqaVwZn+Gq7g==, tarball: file:projects/synapse-artifacts.tgz} + resolution: {integrity: sha512-Ga3erk3RtyoBrEhQzQ2z1/5Sp/8u3KPrPdz2KBE6lshhWhw/5RAUH9HQUgqxlPL6y6s/6Sb3BNFzWO/3C2aVEA==, tarball: file:projects/synapse-artifacts.tgz} name: '@rush-temp/synapse-artifacts' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -21985,7 +22030,7 @@ packages: rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -21999,15 +22044,15 @@ packages: dev: false file:projects/synapse-managed-private-endpoints.tgz: - resolution: {integrity: sha512-4c7I4Sx9Qbs7tqcIquGfrBHxglzd7Aay4YlD6lf3nNOoKyqgc8Ssi9GMMCmRP17w6LZnB+P3s3mKDi/WGkqKjQ==, tarball: file:projects/synapse-managed-private-endpoints.tgz} + resolution: {integrity: sha512-tSqVosJDzzok10XlJ2YMtVAzc0Hk/wPnRZF989eU9/lAp7QEt2oDUc/NvICRe7XhUPFMcBbLhMFSSNvPtdPdBQ==, tarball: file:projects/synapse-managed-private-endpoints.tgz} name: '@rush-temp/synapse-managed-private-endpoints' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) @@ -22026,7 +22071,7 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -22040,13 +22085,13 @@ packages: dev: false file:projects/synapse-monitoring.tgz: - resolution: {integrity: sha512-U33UZ/EkLPoVj/MhhtBw5FeS4Z0hc4BMcQjVjSPvQj75cCgpaU0U/krZ7GTiL/Dphyd/JETYpanzw71jNZnYdw==, tarball: file:projects/synapse-monitoring.tgz} + resolution: {integrity: sha512-KAaSp+MzUlijvMRwj0RUyIpxTNmj9JRN9WtwHV+iBuFhsYFVYdlqJ8pyf/ix2LrHguwlTJ9vaN8vqjdV6k8rfQ==, tarball: file:projects/synapse-monitoring.tgz} name: '@rush-temp/synapse-monitoring' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 cross-env: 7.0.3 eslint: 8.57.0 esm: 3.2.25 @@ -22062,7 +22107,7 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -22076,15 +22121,15 @@ packages: dev: false file:projects/synapse-spark.tgz: - resolution: {integrity: sha512-yJd96STpLIo+CTk3UTbQaSd8ldzbNsKxsiXDGFRnmkpVY0SdofAgL8ZHmRQvKR9QP/12qkM/nwtZrXheAgUP3A==, tarball: file:projects/synapse-spark.tgz} + resolution: {integrity: sha512-xHceNRrF53mpk2em5CqubyIkhKWRCywf/QFYMpXlre2L541PJiU4ck/GqVP6Ht3rpm8hXWYq85Zj5B+8Q1DYrQ==, tarball: file:projects/synapse-spark.tgz} name: '@rush-temp/synapse-spark' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) @@ -22103,7 +22148,7 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -22117,14 +22162,14 @@ packages: dev: false file:projects/template-dpg.tgz: - resolution: {integrity: sha512-cWUJ54rsjIpb9PsE7hkAy4y7fkODWuNSaGjyKtqJNz4bv5GQm2CDUpuVmTMpjkiO/Eo0vhyglw8sqbG+oZGgWg==, tarball: file:projects/template-dpg.tgz} + resolution: {integrity: sha512-VJ2po8I4sUujbA0IQ4STNJoMJH+NjwDnzPPg4iK3xcLESJ1vdd2j47f3Ef0E4BlC5ItOyMgD4X0U2IDsXvrjEQ==, tarball: file:projects/template-dpg.tgz} name: '@rush-temp/template-dpg' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -22136,15 +22181,15 @@ packages: karma-coverage: 2.2.1 karma-edge-launcher: 0.4.2(karma@6.4.3) karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.2 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.3) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 3.0.2 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -22153,21 +22198,20 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false file:projects/template.tgz: - resolution: {integrity: sha512-GhtVBNJOhG2NoJLtD8125wOgW3po9rtn2P4uFJ/OifLK8Yt/Ihh+ObgH5zWxN1OSlHg7xiUHpmxR38dXH8QcWw==, tarball: file:projects/template.tgz} + resolution: {integrity: sha512-d7ntz0EHL6il93Owu/txDMufxBB+zTdeou55PJkSAiSNNjyjjgUuGpbxjV4sOx2UiLKjp+2j1z3PGFNYBaE67w==, tarball: file:projects/template.tgz} name: '@rush-temp/template' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -22188,7 +22232,7 @@ packages: nyc: 15.1.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -22202,16 +22246,16 @@ packages: dev: false file:projects/test-credential.tgz: - resolution: {integrity: sha512-DLgL6tmgleuMNJiUw3y0sl3yjzFDRCZUUqU85OiJzzicRNdCjOhx2m85EJ0MassMup+sxWsOumbeV1hdE1WHUA==, tarball: file:projects/test-credential.tgz} + resolution: {integrity: sha512-gTRmQq4EwHS+RQz40ZRg+k4l1Uw29zdRiWHTHJsPUGr3zLr9sRMDHpgvHNYNtNvEj/cuk1PecGkctr4Ks0XGRw==, tarball: file:projects/test-credential.tgz} name: '@rush-temp/test-credential' version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) typescript: 5.3.3 transitivePeerDependencies: - '@swc/core' @@ -22220,7 +22264,7 @@ packages: dev: false file:projects/test-recorder.tgz: - resolution: {integrity: sha512-mqd8Rhk6qP95pjgMASERASgaF6QjSBTnupvTA/3ZYA95cigg2OuobQeFdTL+t8MB8T3OWE0YSi2CAqeZYjOSaA==, tarball: file:projects/test-recorder.tgz} + resolution: {integrity: sha512-j/q/5kY0P7F7LOmefZPLX9jMJeGs3uiOxMcEtzjLbzAPsoOxr/JTQ+o1iB3BO03WfrwJ4542op1G9RPrZvnMQg==, tarball: file:projects/test-recorder.tgz} name: '@rush-temp/test-recorder' version: 0.0.0 dependencies: @@ -22228,14 +22272,14 @@ packages: '@types/express': 4.17.21 '@types/fs-extra': 8.1.5 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 concurrently: 8.2.2 cross-env: 7.0.3 dotenv: 16.4.5 eslint: 8.57.0 - express: 4.18.2 + express: 4.18.3 karma: 6.4.3(debug@4.3.4) karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 @@ -22247,7 +22291,7 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -22260,13 +22304,13 @@ packages: dev: false file:projects/test-utils-perf.tgz: - resolution: {integrity: sha512-R/2OafMDrnpOYos4yW4RHmQAZQyxbG0+uNJQYA9jjnbnKuZTInmaAZoU73FOOrjCZBfX7TAYn/tsUBQVS3BL4A==, tarball: file:projects/test-utils-perf.tgz} + resolution: {integrity: sha512-WFP5ojdxf3UTanWWi0m66tu0AE+0RSv2q3EQSSKtDpheawdXYirXWwjR/Uf4HSLgFa2N96L4cxs5pA9BS2KO3A==, tarball: file:projects/test-utils-perf.tgz} name: '@rush-temp/test-utils-perf' version: 0.0.0 dependencies: '@types/fs-extra': 9.0.13 '@types/minimist': 1.2.5 - '@types/node': 18.19.18 + '@types/node': 18.19.24 eslint: 8.57.0 fs-extra: 10.1.0 karma: 6.4.3(debug@4.3.4) @@ -22275,7 +22319,7 @@ packages: karma-env-preprocessor: 0.1.1 minimist: 1.2.8 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -22288,16 +22332,16 @@ packages: dev: false file:projects/test-utils.tgz: - resolution: {integrity: sha512-DwBo66ieqQPqfjI3z2waj0OO8do548CVP+PZAICdC5w/Fq8ZOz6dMh09PWYXkpZCvXaFDtl0aaYtAwDmtMAcSw==, tarball: file:projects/test-utils.tgz} + resolution: {integrity: sha512-MihJGeJOvpzoOAnTPM3n3aK/NaAMMCk0mXeRigN66YPAtoX7p24DaZuThDcPrAua/uVoClSZHvloJ0NgtroLpQ==, tarball: file:projects/test-utils.tgz} name: '@rush-temp/test-utils' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@opentelemetry/api': 1.7.0 + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@opentelemetry/api': 1.8.0 '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) @@ -22311,7 +22355,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -22324,25 +22368,25 @@ packages: dev: false file:projects/ts-http-runtime.tgz: - resolution: {integrity: sha512-HyGi6Yahjy4aNreOcQN4NWv7LGcax0E/7Rpg+HuM3U022EdzNwaNQ3szWW0F/RMNw8Rph1gDvG41R0SsyELwuQ==, tarball: file:projects/ts-http-runtime.tgz} + resolution: {integrity: sha512-HPx4nELna/MO9u/GH64GLsaBqwbjM3jJM1lba5Om02nXUwp2JdAwbWS2pt6WPHipxjNhwdqEguzXr85waTIQEQ==, tarball: file:projects/ts-http-runtime.tgz} name: '@rush-temp/ts-http-runtime' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) - '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) cross-env: 7.0.3 eslint: 8.57.0 http-proxy-agent: 7.0.0 https-proxy-agent: 7.0.2 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -22360,11 +22404,11 @@ packages: dev: false file:projects/vite-plugin-browser-test-map.tgz: - resolution: {integrity: sha512-8Jg44N2Xy3VsZaSgcBDkWDjjpT8NcU+0TXvb3PCravbYHdMtI8K/XpI6fkpZnisjjl6dEE2MCUX6ecPAoFvvnQ==, tarball: file:projects/vite-plugin-browser-test-map.tgz} + resolution: {integrity: sha512-oYyxWJs0yiBuHRK1euUkqJ2WM0LVn+fgnhkQrnjRmvu1kp4+rbmDA3E5UmxKBzxgdFs29chO8Fx/0YipGFMQkA==, tarball: file:projects/vite-plugin-browser-test-map.tgz} name: '@rush-temp/vite-plugin-browser-test-map' version: 0.0.0 dependencies: - '@types/node': 18.19.18 + '@types/node': 18.19.24 eslint: 8.57.0 prettier: 3.2.5 rimraf: 3.0.2 @@ -22375,19 +22419,19 @@ packages: dev: false file:projects/web-pubsub-client-protobuf.tgz: - resolution: {integrity: sha512-tW709YZSIRFko8C3hbjhQqgOO/Md5hbJRIxsbauRr9vut9fD4r5AmPP4YrGP7qcyc4OL+zZHzS9V9cVfXzmDDA==, tarball: file:projects/web-pubsub-client-protobuf.tgz} + resolution: {integrity: sha512-uvpFPo6XIzyHKic6DRBTc//6R6m8n7mhi3CoYLnzEpQMJaiXsEtxXOREBRSdgm+1fz/OaYw1i7BDr9puGy0fAA==, tarball: file:projects/web-pubsub-client-protobuf.tgz} name: '@rush-temp/web-pubsub-client-protobuf' version: 0.0.0 dependencies: '@azure/web-pubsub-client': 1.0.0-beta.2 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/express': 4.17.21 '@types/express-serve-static-core': 4.17.43 - '@types/jsonwebtoken': 9.0.5 + '@types/jsonwebtoken': 9.0.6 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/ws': 7.4.7 c8: 8.0.1 @@ -22397,7 +22441,7 @@ packages: dotenv: 16.4.5 eslint: 8.57.0 esm: 3.2.25 - express: 4.18.2 + express: 4.18.3 karma: 6.4.3(debug@4.3.4) karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 @@ -22416,12 +22460,12 @@ packages: mock-socket: 9.3.1 protobufjs: 7.2.6 protobufjs-cli: 1.1.2(protobufjs@7.2.6) - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 - rollup: 4.12.0 + rollup: 4.13.0 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -22430,25 +22474,24 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false file:projects/web-pubsub-client.tgz: - resolution: {integrity: sha512-XoXsTwBU/quZBvcXcaXviSu92SHndVE8H5SmpPL8MhpjinqmSsx6p1Hi+TK+eyxyP1zUZhS3YYIvKdk38Il3BA==, tarball: file:projects/web-pubsub-client.tgz} + resolution: {integrity: sha512-c2g3ZI0rWjlkBSH8zaqdqVuxE6p7TU0UlJk1NVn6bOgOgIYXwIrxTRMmmDFMTyoappHgeGLwzusF6lX3eGhXQQ==, tarball: file:projects/web-pubsub-client.tgz} name: '@rush-temp/web-pubsub-client' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/express': 4.17.21 '@types/express-serve-static-core': 4.17.43 - '@types/jsonwebtoken': 9.0.5 + '@types/jsonwebtoken': 9.0.6 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/ws': 7.4.7 buffer: 6.0.3 @@ -22458,7 +22501,7 @@ packages: dotenv: 16.4.5 eslint: 8.57.0 esm: 3.2.25 - express: 4.18.2 + express: 4.18.3 karma: 6.4.3(debug@4.3.4) karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 @@ -22472,11 +22515,11 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 mock-socket: 9.3.1 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -22486,23 +22529,22 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false file:projects/web-pubsub-express.tgz: - resolution: {integrity: sha512-WPtvAZ0OsQOolX5WUKH/Z5x3P8CSif43aacM/a8OzBSO/RlGhiRXqxE+rZhGZZ/iWO6GMwNzLQSmO9DAuwbd4g==, tarball: file:projects/web-pubsub-express.tgz} + resolution: {integrity: sha512-ob7yKXEnCeb+cRYORSYN/N9VeHU+xA9eEppxRdkNTqYFGlQCkA3DrLvqwmYvQYYqvGuCQ5uhfCLMAXl/LBrd0Q==, tarball: file:projects/web-pubsub-express.tgz} name: '@rush-temp/web-pubsub-express' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/express': 4.17.21 '@types/express-serve-static-core': 4.17.43 - '@types/jsonwebtoken': 9.0.5 + '@types/jsonwebtoken': 9.0.6 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -22510,34 +22552,33 @@ packages: dotenv: 16.4.5 eslint: 8.57.0 esm: 3.2.25 - express: 4.18.2 + express: 4.18.3 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: - '@swc/core' - '@swc/wasm' - bufferutil - - encoding - supports-color - utf-8-validate dev: false file:projects/web-pubsub.tgz: - resolution: {integrity: sha512-leLUmqZbSAXmzpkoO5aRtpa2lPnDmKQy2gTBmhpmyRsXnH1GqDV1wGHJ/PauTVzdl7hpq9WRIuYwxwVmLaYj0Q==, tarball: file:projects/web-pubsub.tgz} + resolution: {integrity: sha512-++ibJXG+7uOjChJLGKcUkGLUcqfLXTatj1eTM7TbkJXOhGcdrUYovedIaPV51UFCwgE0yYi3XuiCJs6GvQL4vA==, tarball: file:projects/web-pubsub.tgz} name: '@rush-temp/web-pubsub' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 - '@types/jsonwebtoken': 9.0.5 + '@types/jsonwebtoken': 9.0.6 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/ws': 8.5.10 c8: 8.0.1 @@ -22557,11 +22598,11 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 ws: 8.16.0 @@ -22570,7 +22611,6 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false diff --git a/common/tools/dev-tool/package.json b/common/tools/dev-tool/package.json index 1bc85578841a..20be41c18a84 100644 --- a/common/tools/dev-tool/package.json +++ b/common/tools/dev-tool/package.json @@ -25,7 +25,7 @@ "pack": "npm pack 2>&1", "prebuild": "npm run clean", "unit-test": "npm run unit-test:node", - "unit-test:node": "mocha --require ts-node/register test/**/*.spec.ts test/*.spec.ts", + "unit-test:node": "vitest", "unit-test:browser": "echo skipped", "build:samples": "echo Skipped.", "test": "echo Skipped." @@ -60,35 +60,29 @@ "rollup": "^4.0.0", "rollup-plugin-polyfill-node": "^0.13.0", "rollup-plugin-visualizer": "^5.9.3", - "semver": "^7.5.4", + "semver": "^7.6.0", "strip-json-comments": "^5.0.1", + "ts-morph": "^22.0.0", "ts-node": "^10.9.1", "tslib": "^2.2.0", "typescript": "~5.3.3", - "yaml": "^2.3.4", - "ts-morph": "^21.0.0" + "yaml": "^2.3.4" }, "devDependencies": { - "@microsoft/api-extractor": "^7.31.1", + "@microsoft/api-extractor": "^7.42.3", "@types/archiver": "~6.0.2", - "@types/chai": "^4.1.6", - "@types/chai-as-promised": "^7.1.0", - "@types/decompress": "^4.2.4", + "@types/decompress": "^4.2.7", "@types/fs-extra": "^11.0.4", "@types/minimist": "^1.2.5", - "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", - "@types/semver": "^7.5.6", - "autorest": "^3.5.1", + "@types/semver": "^7.5.8", + "@vitest/coverage-istanbul": "^1.3.1", + "autorest": "^3.7.1", "builtin-modules": "^3.1.0", - "c8": "^8.0.1", - "chai": "^4.2.0", - "chai-as-promised": "^7.1.1", "cross-env": "^7.0.3", "eslint": "^8.54.0", - "karma": "^6.4.2", "mkdirp": "^3.0.1", - "mocha": "^10.0.0", - "rimraf": "^5.0.5" + "rimraf": "^5.0.5", + "vitest": "^1.3.1" } } diff --git a/common/tools/dev-tool/src/commands/about.ts b/common/tools/dev-tool/src/commands/about.ts index 15a44fa07596..617e6a82e0e3 100644 --- a/common/tools/dev-tool/src/commands/about.ts +++ b/common/tools/dev-tool/src/commands/about.ts @@ -2,7 +2,6 @@ // Licensed under the MIT license import chalk from "chalk"; - import { baseCommands, baseCommandInfo } from "."; import { resolveProject } from "../util/resolveProject"; import { createPrinter } from "../util/printer"; diff --git a/common/tools/dev-tool/src/commands/admin/create-migration.ts b/common/tools/dev-tool/src/commands/admin/create-migration.ts index 85cf8d08c94c..b8716f9e4d16 100644 --- a/common/tools/dev-tool/src/commands/admin/create-migration.ts +++ b/common/tools/dev-tool/src/commands/admin/create-migration.ts @@ -4,13 +4,10 @@ import path from "node:path"; import readline from "node:readline"; import { spawnSync } from "node:child_process"; - import { leafCommand, makeCommandInfo } from "../../framework/command"; import migrationTemplate, { MigrationTemplate } from "../../templates/migration"; import { createPrinter } from "../../util/printer"; - import { ensureDir, pathExists, writeFile } from "fs-extra"; - import { format } from "../../util/prettier"; const log = createPrinter("create-migration"); diff --git a/common/tools/dev-tool/src/commands/admin/list/packages.ts b/common/tools/dev-tool/src/commands/admin/list/packages.ts index 0decbf81e5e0..9408d6ea2524 100644 --- a/common/tools/dev-tool/src/commands/admin/list/packages.ts +++ b/common/tools/dev-tool/src/commands/admin/list/packages.ts @@ -2,12 +2,9 @@ // Licensed under the MIT license. import { leafCommand, makeCommandInfo } from "../../../framework/command"; - -import path from "path"; +import path from "node:path"; import { resolveRoot } from "../../../util/resolveProject"; - -import { readFile } from "fs/promises"; - +import { readFile } from "node:fs/promises"; import stripJsonComments from "strip-json-comments"; export const commandInfo = makeCommandInfo("packages", "list packages defined in the monorepo", { diff --git a/common/tools/dev-tool/src/commands/admin/list/service-folders.ts b/common/tools/dev-tool/src/commands/admin/list/service-folders.ts index d766a9dfa19f..614f9bda4ff4 100644 --- a/common/tools/dev-tool/src/commands/admin/list/service-folders.ts +++ b/common/tools/dev-tool/src/commands/admin/list/service-folders.ts @@ -2,6 +2,9 @@ // Licensed under the MIT license. import { leafCommand, makeCommandInfo } from "../../../framework/command"; +import path from "node:path"; +import { resolveRoot } from "../../../util/resolveProject"; +import { readdir } from "node:fs/promises"; export const commandInfo = makeCommandInfo("packages", "list service folders in the monorepo", { relative: { @@ -12,11 +15,6 @@ export const commandInfo = makeCommandInfo("packages", "list service folders in }, }); -import path from "path"; -import { resolveRoot } from "../../../util/resolveProject"; - -import { readdir } from "fs/promises"; - export async function getServiceFolders(root?: string): Promise { root ??= await resolveRoot(); return ( diff --git a/common/tools/dev-tool/src/commands/admin/stage-migrations.ts b/common/tools/dev-tool/src/commands/admin/stage-migrations.ts index 5c7e097ff683..5017e361d060 100644 --- a/common/tools/dev-tool/src/commands/admin/stage-migrations.ts +++ b/common/tools/dev-tool/src/commands/admin/stage-migrations.ts @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { readFile, writeFile } from "fs/promises"; -import path from "path"; +import { readFile, writeFile } from "node:fs/promises"; +import path from "node:path"; import { leafCommand, makeCommandInfo } from "../../framework/command"; import { getServiceFolders } from "./list/service-folders"; diff --git a/common/tools/dev-tool/src/commands/customization/apply-v2.ts b/common/tools/dev-tool/src/commands/customization/apply-v2.ts index 884493b8b569..3dad28f876f5 100644 --- a/common/tools/dev-tool/src/commands/customization/apply-v2.ts +++ b/common/tools/dev-tool/src/commands/customization/apply-v2.ts @@ -6,7 +6,6 @@ import { createPrinter } from "../../util/printer"; import { run } from "../../util/run"; import { leafCommand } from "../../framework/command"; import { makeCommandInfo } from "../../framework/command"; - import path from "node:path"; import fs from "node:fs/promises"; import os from "node:os"; diff --git a/common/tools/dev-tool/src/commands/customization/apply.ts b/common/tools/dev-tool/src/commands/customization/apply.ts index 78e3d0bcc8df..591f18378425 100644 --- a/common/tools/dev-tool/src/commands/customization/apply.ts +++ b/common/tools/dev-tool/src/commands/customization/apply.ts @@ -1,13 +1,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license -import path from "path"; - +import path from "node:path"; import { resolveProject } from "../../util/resolveProject"; import { createPrinter } from "../../util/printer"; import { leafCommand } from "../../framework/command"; import { makeCommandInfo } from "../../framework/command"; - import { customize } from "../../util/customization/customize"; const log = createPrinter("apply-customization"); diff --git a/common/tools/dev-tool/src/commands/migrate.ts b/common/tools/dev-tool/src/commands/migrate.ts index ac2f9ba329e1..319ee6c2cab9 100644 --- a/common/tools/dev-tool/src/commands/migrate.ts +++ b/common/tools/dev-tool/src/commands/migrate.ts @@ -5,7 +5,7 @@ import { METADATA_KEY, ProjectInfo, resolveProject, resolveRoot } from "../util/ import { createPrinter } from "../util/printer"; import { leafCommand } from "../framework/command"; import { makeCommandInfo } from "../framework/command"; -import { cwd } from "process"; +import { cwd } from "node:process"; import { listAppliedMigrations, getMigrationById, diff --git a/common/tools/dev-tool/src/commands/package/resolve.ts b/common/tools/dev-tool/src/commands/package/resolve.ts index 966a0a4f1628..4ff8387caed7 100644 --- a/common/tools/dev-tool/src/commands/package/resolve.ts +++ b/common/tools/dev-tool/src/commands/package/resolve.ts @@ -1,8 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license -import path from "path"; - +import path from "node:path"; import { resolveProject } from "../../util/resolveProject"; import { createPrinter } from "../../util/printer"; import { leafCommand } from "../../framework/command"; diff --git a/common/tools/dev-tool/src/commands/run/build-test.ts b/common/tools/dev-tool/src/commands/run/build-test.ts index 1d91bf8a159b..2139943c5c65 100644 --- a/common/tools/dev-tool/src/commands/run/build-test.ts +++ b/common/tools/dev-tool/src/commands/run/build-test.ts @@ -2,7 +2,15 @@ // Licensed under the MIT license. import path from "node:path"; -import { cpSync, existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs"; +import { + cpSync, + existsSync, + mkdirSync, + readFileSync, + readdirSync, + statSync, + writeFileSync, +} from "node:fs"; import { leafCommand, makeCommandInfo } from "../../framework/command"; import { createPrinter } from "../../util/printer"; import { resolveProject } from "../../util/resolveProject"; @@ -146,7 +154,7 @@ function copyOverrides(type: string, rootDir: string, filePath: string): void { const fileToReplaceWith = path.join( fileParsed.root, fileParsed.dir, - `${fileParsed.name}-${type}.mts` + `${fileParsed.name}-${type}.mts`, ); if (existsSync(fileToReplace) && existsSync(fileToReplaceWith)) { log.info(`Copying over ${fileToReplaceWith} to ${fileToReplace}`); @@ -156,20 +164,20 @@ function copyOverrides(type: string, rootDir: string, filePath: string): void { rootDir, relativeDir, `${fileParsed.name}-${type}.d.mts`, - `${fileParsed.name}.d.ts` + `${fileParsed.name}.d.ts`, ); overrideFile( rootDir, relativeDir, `${fileParsed.name}-${type}.d.mts.map`, - `${fileParsed.name}.d.ts.map` + `${fileParsed.name}.d.ts.map`, ); overrideFile(rootDir, relativeDir, `${fileParsed.name}-${type}.mjs`, `${fileParsed.name}.js`); overrideFile( rootDir, relativeDir, `${fileParsed.name}-${type}.mjs.map`, - `${fileParsed.name}.js.map` + `${fileParsed.name}.js.map`, ); } } @@ -178,7 +186,7 @@ function overrideFile( rootDir: string, relativeDir: string, sourceFile: string, - destinationFile: string + destinationFile: string, ): void { const sourceFileType = path.join(process.cwd(), rootDir, relativeDir, sourceFile); const destFileType = path.join(process.cwd(), rootDir, relativeDir, destinationFile); @@ -189,7 +197,10 @@ function overrideFile( class OverrideSet { public map: Map; - constructor(public type: "esm" | "commonjs", public name: string) { + constructor( + public type: "esm" | "commonjs", + public name: string, + ) { this.map = new Map(); } diff --git a/common/tools/dev-tool/src/commands/run/bundle.ts b/common/tools/dev-tool/src/commands/run/bundle.ts index fb9c0ba65665..588a70a57e78 100644 --- a/common/tools/dev-tool/src/commands/run/bundle.ts +++ b/common/tools/dev-tool/src/commands/run/bundle.ts @@ -1,18 +1,15 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import path from "path"; - +import path from "node:path"; import * as rollup from "rollup"; import nodeBuiltins from "builtin-modules"; - import nodeResolve from "@rollup/plugin-node-resolve"; import cjs from "@rollup/plugin-commonjs"; import nodePolyfills from "rollup-plugin-polyfill-node"; import json from "@rollup/plugin-json"; import multiEntry from "@rollup/plugin-multi-entry"; import inject from "@rollup/plugin-inject"; - import { leafCommand, makeCommandInfo } from "../../framework/command"; import { resolveProject, resolveRoot } from "../../util/resolveProject"; import { createPrinter } from "../../util/printer"; diff --git a/common/tools/dev-tool/src/commands/run/check-api.ts b/common/tools/dev-tool/src/commands/run/check-api.ts index 5dbc0970c06c..478924db328d 100644 --- a/common/tools/dev-tool/src/commands/run/check-api.ts +++ b/common/tools/dev-tool/src/commands/run/check-api.ts @@ -1,10 +1,12 @@ -import { leafCommand, makeCommandInfo } from "../../framework/command"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +import { leafCommand, makeCommandInfo } from "../../framework/command"; import tsMin from "@_ts/min"; import tsMax from "@_ts/max"; import { createPrinter } from "../../util/printer"; import { resolveProject } from "../../util/resolveProject"; -import path from "path"; +import path from "node:path"; import semver from "semver"; export const commandInfo = makeCommandInfo( diff --git a/common/tools/dev-tool/src/commands/run/extract-api.ts b/common/tools/dev-tool/src/commands/run/extract-api.ts index af691bb14e1d..24f9c9fbc373 100644 --- a/common/tools/dev-tool/src/commands/run/extract-api.ts +++ b/common/tools/dev-tool/src/commands/run/extract-api.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + import { leafCommand, makeCommandInfo } from "../../framework/command"; import { Extractor, @@ -8,13 +11,12 @@ import { IConfigDtsRollup, IConfigFile, } from "@microsoft/api-extractor"; - import { createPrinter } from "../../util/printer"; import { resolveProject } from "../../util/resolveProject"; import path from "path"; import { readFile } from "fs-extra"; -import { readdir } from "fs/promises"; -import { createReadStream, createWriteStream } from "fs"; +import { readdir } from "node:fs/promises"; +import { createReadStream, createWriteStream } from "node:fs"; import archiver from "archiver"; export const commandInfo = makeCommandInfo( diff --git a/common/tools/dev-tool/src/commands/run/index.ts b/common/tools/dev-tool/src/commands/run/index.ts index 944fc7e3b06e..f0c856869174 100644 --- a/common/tools/dev-tool/src/commands/run/index.ts +++ b/common/tools/dev-tool/src/commands/run/index.ts @@ -1,13 +1,12 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license -import { subCommand, makeCommandInfo } from "../../framework/command"; +import { makeCommandInfo, subCommand } from "../../framework/command"; export const commandInfo = makeCommandInfo("run", "run scripts such as test:node"); export default subCommand(commandInfo, { "test:node-tsx-ts": () => import("./testNodeTsxTS"), - "test:node-tsx-js": () => import("./testNodeTsxJS"), "test:node-ts-input": () => import("./testNodeTSInput"), "test:node-js-input": () => import("./testNodeJSInput"), "test:browser": () => import("./testBrowser"), diff --git a/common/tools/dev-tool/src/commands/run/testNodeJSInput.ts b/common/tools/dev-tool/src/commands/run/testNodeJSInput.ts index c10a6014dcb2..60707e05ef6e 100644 --- a/common/tools/dev-tool/src/commands/run/testNodeJSInput.ts +++ b/common/tools/dev-tool/src/commands/run/testNodeJSInput.ts @@ -8,7 +8,7 @@ import { createPrinter } from "../../util/printer"; import { runTestsWithProxyTool } from "../../util/testUtils"; export const commandInfo = makeCommandInfo( - "test:node-tsx-js", + "test:node-js-input", "runs the node tests using mocha with the default and the provided options; starts the proxy-tool in record and playback modes", { "no-test-proxy": { diff --git a/common/tools/dev-tool/src/commands/run/testNodeTSInput.ts b/common/tools/dev-tool/src/commands/run/testNodeTSInput.ts index f0cf66c2cbce..a7540bd5568f 100644 --- a/common/tools/dev-tool/src/commands/run/testNodeTSInput.ts +++ b/common/tools/dev-tool/src/commands/run/testNodeTSInput.ts @@ -8,7 +8,7 @@ import { runTestsWithProxyTool } from "../../util/testUtils"; import { createPrinter } from "../../util/printer"; export const commandInfo = makeCommandInfo( - "test:node-tsx-ts", + "test:node-ts-input", "runs the node tests using mocha with the default and the provided options; starts the proxy-tool in record and playback modes", { "no-test-proxy": { @@ -25,7 +25,7 @@ export default leafCommand(commandInfo, async (options) => { const reporterArgs = "--reporter ../../../common/tools/mocha-multi-reporter.js --reporter-option output=test-results.xml"; const defaultMochaArgs = `${ - isModuleProj ? "--loader=ts-node/esm " : "" + isModuleProj ? "--loader=ts-node/esm " : "-r esm " }-r ts-node/register ${reporterArgs} --full-trace`; const updatedArgs = options["--"]?.map((opt) => opt.includes("**") && !opt.startsWith("'") && !opt.startsWith('"') ? `"${opt}"` : opt, diff --git a/common/tools/dev-tool/src/commands/run/testNodeTsxJS.ts b/common/tools/dev-tool/src/commands/run/testNodeTsxJS.ts deleted file mode 100644 index 60707e05ef6e..000000000000 --- a/common/tools/dev-tool/src/commands/run/testNodeTsxJS.ts +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license - -import { leafCommand, makeCommandInfo } from "../../framework/command"; - -import concurrently from "concurrently"; -import { createPrinter } from "../../util/printer"; -import { runTestsWithProxyTool } from "../../util/testUtils"; - -export const commandInfo = makeCommandInfo( - "test:node-js-input", - "runs the node tests using mocha with the default and the provided options; starts the proxy-tool in record and playback modes", - { - "no-test-proxy": { - shortName: "ntp", - kind: "boolean", - default: false, - description: "whether to run with test-proxy", - }, - }, -); - -export default leafCommand(commandInfo, async (options) => { - const reporterArgs = - "--reporter ../../../common/tools/mocha-multi-reporter.js --reporter-option output=test-results.xml"; - const defaultMochaArgs = `-r source-map-support/register.js ${reporterArgs} --full-trace`; - const updatedArgs = options["--"]?.map((opt) => - opt.includes("**") && !opt.startsWith("'") && !opt.startsWith('"') ? `"${opt}"` : opt, - ); - const mochaArgs = updatedArgs?.length - ? updatedArgs.join(" ") - : '--timeout 5000000 "dist-esm/test/{,!(browser)/**/}/*.spec.js"'; - const command = { - command: `c8 mocha --require tsx ${defaultMochaArgs} ${mochaArgs}`, - name: "node-tests", - }; - - if (!options["no-test-proxy"]) { - return runTestsWithProxyTool(command); - } - - createPrinter("test-info").info("Running tests without test-proxy"); - await concurrently([command]).result; - return true; -}); diff --git a/common/tools/dev-tool/src/commands/run/vendored.ts b/common/tools/dev-tool/src/commands/run/vendored.ts index fa92444e8577..2521d2304257 100644 --- a/common/tools/dev-tool/src/commands/run/vendored.ts +++ b/common/tools/dev-tool/src/commands/run/vendored.ts @@ -7,9 +7,8 @@ */ import fs from "fs-extra"; -import path from "path"; -import { spawn } from "child_process"; - +import path from "node:path"; +import { spawn } from "node:child_process"; import { makeCommandInfo, subCommand } from "../../framework/command"; import { CommandOptions } from "../../framework/CommandInfo"; import { CommandModule } from "../../framework/CommandModule"; diff --git a/common/tools/dev-tool/src/commands/samples/checkNodeVersions.ts b/common/tools/dev-tool/src/commands/samples/checkNodeVersions.ts index 3968fd322162..c3a96a174ebe 100644 --- a/common/tools/dev-tool/src/commands/samples/checkNodeVersions.ts +++ b/common/tools/dev-tool/src/commands/samples/checkNodeVersions.ts @@ -2,10 +2,10 @@ // Licensed under the MIT license. import fs from "fs-extra"; -import path from "path"; -import pr from "child_process"; -import os from "os"; -import { URL } from "url"; +import path from "node:path"; +import pr from "node:child_process"; +import os from "node:os"; +import { URL } from "node:url"; import { createPrinter } from "../../util/printer"; import { leafCommand, makeCommandInfo } from "../../framework/command"; diff --git a/common/tools/dev-tool/src/commands/samples/dev.ts b/common/tools/dev-tool/src/commands/samples/dev.ts index af925bba42f3..a89974b81b1f 100644 --- a/common/tools/dev-tool/src/commands/samples/dev.ts +++ b/common/tools/dev-tool/src/commands/samples/dev.ts @@ -2,8 +2,7 @@ // Licensed under the MIT license. import fs from "fs-extra"; -import path from "path"; - +import path from "node:path"; import { resolveProject } from "../../util/resolveProject"; import { createPrinter } from "../../util/printer"; import { leafCommand, makeCommandInfo } from "../../framework/command"; diff --git a/common/tools/dev-tool/src/commands/samples/prep.ts b/common/tools/dev-tool/src/commands/samples/prep.ts index b065ad11305d..7820f16c1d3a 100644 --- a/common/tools/dev-tool/src/commands/samples/prep.ts +++ b/common/tools/dev-tool/src/commands/samples/prep.ts @@ -2,8 +2,7 @@ // Licensed under the MIT license. import fs from "fs-extra"; -import path from "path"; - +import path from "node:path"; import { createPrinter } from "../../util/printer"; import { findMatchingFiles } from "../../util/findMatchingFiles"; import { resolveProject } from "../../util/resolveProject"; diff --git a/common/tools/dev-tool/src/commands/samples/publish.ts b/common/tools/dev-tool/src/commands/samples/publish.ts index aeb781d7dbc5..04c7bd364544 100644 --- a/common/tools/dev-tool/src/commands/samples/publish.ts +++ b/common/tools/dev-tool/src/commands/samples/publish.ts @@ -8,7 +8,7 @@ * that are eventually used to generate a coherent set of sample programs. */ -import path from "path"; +import path from "node:path"; import { leafCommand, makeCommandInfo } from "../../framework/command"; import { createPrinter } from "../../util/printer"; import { resolveProject } from "../../util/resolveProject"; diff --git a/common/tools/dev-tool/src/commands/samples/run.ts b/common/tools/dev-tool/src/commands/samples/run.ts index 5b4fc5521990..8c4d49d6d0c6 100644 --- a/common/tools/dev-tool/src/commands/samples/run.ts +++ b/common/tools/dev-tool/src/commands/samples/run.ts @@ -2,8 +2,7 @@ // Licensed under the MIT license. import fs from "fs-extra"; -import path from "path"; - +import path from "node:path"; import { findMatchingFiles } from "../../util/findMatchingFiles"; import { createPrinter } from "../../util/printer"; import { leafCommand, makeCommandInfo } from "../../framework/command"; diff --git a/common/tools/dev-tool/src/commands/test-proxy/init.ts b/common/tools/dev-tool/src/commands/test-proxy/init.ts index e7215f4920f8..9cc8b984cac3 100644 --- a/common/tools/dev-tool/src/commands/test-proxy/init.ts +++ b/common/tools/dev-tool/src/commands/test-proxy/init.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { cwd } from "process"; +import { cwd } from "node:process"; import { leafCommand, makeCommandInfo } from "../../framework/command"; import { resolveProject } from "../../util/resolveProject"; import { createAssetsJson } from "../../util/testProxyUtils"; diff --git a/common/tools/dev-tool/src/config/rollup.base.config.ts b/common/tools/dev-tool/src/config/rollup.base.config.ts index 830cea7b9b92..d39a84951a0a 100644 --- a/common/tools/dev-tool/src/config/rollup.base.config.ts +++ b/common/tools/dev-tool/src/config/rollup.base.config.ts @@ -8,14 +8,12 @@ import { RollupLog, WarningHandlerWithDefault, } from "rollup"; - import nodeResolve from "@rollup/plugin-node-resolve"; import cjs from "@rollup/plugin-commonjs"; import multiEntry from "@rollup/plugin-multi-entry"; import json from "@rollup/plugin-json"; -import * as path from "path"; +import * as path from "node:path"; import { readFile } from "node:fs/promises"; - import nodeBuiltins from "builtin-modules"; import { createPrinter } from "../util/printer"; diff --git a/common/tools/dev-tool/src/framework/parseOptions.ts b/common/tools/dev-tool/src/framework/parseOptions.ts index ac48f252e7ea..474a8f8d524e 100644 --- a/common/tools/dev-tool/src/framework/parseOptions.ts +++ b/common/tools/dev-tool/src/framework/parseOptions.ts @@ -2,7 +2,6 @@ // Licensed under the MIT license import getArgs from "minimist"; - import { createPrinter } from "../util/printer"; import { CommandOptions, StringOptionDescription, BooleanOptionDescription } from "./CommandInfo"; diff --git a/common/tools/dev-tool/src/migrations/onboard/test-proxy-asset-sync.ts b/common/tools/dev-tool/src/migrations/onboard/test-proxy-asset-sync.ts index 87f25f3ab297..cf2a93531d2d 100644 --- a/common/tools/dev-tool/src/migrations/onboard/test-proxy-asset-sync.ts +++ b/common/tools/dev-tool/src/migrations/onboard/test-proxy-asset-sync.ts @@ -2,10 +2,9 @@ // Licensed under the MIT license. import { readFile, pathExists } from "fs-extra"; -import path from "path"; +import path from "node:path"; import { createMigration } from "../../util/migrations"; import { runMigrationScript } from "../../util/testProxyUtils"; - import * as git from "../../util/git"; import * as pwsh from "../../util/pwsh"; diff --git a/common/tools/dev-tool/src/templates/migration.ts b/common/tools/dev-tool/src/templates/migration.ts index 166a684e94de..84b1cb5c9f88 100644 --- a/common/tools/dev-tool/src/templates/migration.ts +++ b/common/tools/dev-tool/src/templates/migration.ts @@ -1,5 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. + /** * Information used to instantiate the migration code template. */ diff --git a/common/tools/dev-tool/src/templates/sampleReadme.md.ts b/common/tools/dev-tool/src/templates/sampleReadme.md.ts index fa91dd4de274..e2aa31e1e139 100644 --- a/common/tools/dev-tool/src/templates/sampleReadme.md.ts +++ b/common/tools/dev-tool/src/templates/sampleReadme.md.ts @@ -1,9 +1,8 @@ // Copyright (c) Microsoft corporation. // Licensed under the MIT license. -import path from "path"; +import path from "node:path"; import YAML from "yaml"; - import { SampleReadmeConfiguration } from "../util/samples/info"; import { format } from "../util/prettier"; @@ -82,8 +81,9 @@ function resourceLinks(info: SampleReadmeConfiguration) { function resources(info: SampleReadmeConfiguration) { const resources = Object.entries(info.requiredResources ?? {}); - const header = `You need [an Azure subscription][freesub] ${resources.length > 0 ? "and the following Azure resources " : "" - }to run these sample programs${resources.length > 0 ? ":\n\n" : "."}`; + const header = `You need [an Azure subscription][freesub] ${ + resources.length > 0 ? "and the following Azure resources " : "" + }to run these sample programs${resources.length > 0 ? ":\n\n" : "."}`; return ( header + resources.map(([name]) => `- [${name}][${resourceNameToLinkSlug(name)}]`).join("\n") @@ -134,8 +134,9 @@ function exampleNodeInvocation(info: SampleReadmeConfiguration) { .map((envVar) => `${envVar}="<${envVar.replace(/_/g, " ").toLowerCase()}>"`) .join(" "); - return `${envVars} node ${info.useTypeScript ? "dist/" : "" - }${firstModule.relativeSourcePath.replace(/\.ts$/, ".js")}`; + return `${envVars} node ${ + info.useTypeScript ? "dist/" : "" + }${firstModule.relativeSourcePath.replace(/\.ts$/, ".js")}`; } /** @@ -165,7 +166,8 @@ export default (info: SampleReadmeConfiguration): Promise => { ${info.customSnippets?.header ?? ""} -These sample programs show how to use the ${language} client libraries for ${info.productName +These sample programs show how to use the ${language} client libraries for ${ + info.productName } in some common scenarios. ${table(info)} @@ -175,17 +177,17 @@ ${table(info)} The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). ${(() => { - if (info.useTypeScript) { - return [ - "Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using:", - "", - fence("bash", "npm install -g typescript"), - "", - ].join("\n"); - } else { - return ""; - } - })()}\ + if (info.useTypeScript) { + return [ + "Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using:", + "", + fence("bash", "npm install -g typescript"), + "", + ].join("\n"); + } else { + return ""; + } +})()}\ ${resources(info)} ${info.customSnippets?.prerequisites ?? ""} @@ -202,28 +204,28 @@ ${step("Install the dependencies using `npm`:")} ${fence("bash", "npm install")} ${(() => { - if (info.useTypeScript) { - return [step("Compile the samples:"), "", fence("bash", "npm run build"), ""].join("\n"); - } else { - return ""; - } - })()} + if (info.useTypeScript) { + return [step("Compile the samples:"), "", fence("bash", "npm run build"), ""].join("\n"); + } else { + return ""; + } +})()} ${step( - "Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically.", - )} + "Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically.", +)} ${step( - "Run whichever samples you like (note that some samples may require additional setup, see the table above):", - )} + "Run whichever samples you like (note that some samples may require additional setup, see the table above):", +)} ${fence( - "bash", - `node ${(() => { - const firstSource = filterModules(info)[0].relativeSourcePath; - const filePath = info.useTypeScript ? "dist/" : ""; - return filePath + firstSource.replace(/\.ts$/, ".js"); - })()}`, - )} + "bash", + `node ${(() => { + const firstSource = filterModules(info)[0].relativeSourcePath; + const filePath = info.useTypeScript ? "dist/" : ""; + return filePath + firstSource.replace(/\.ts$/, ".js"); + })()}`, +)} Alternatively, run a single sample with the correct environment variables set (setting up the \`.env\` file is not required if you do this), for example (cross-platform): diff --git a/common/tools/dev-tool/src/util/customization/customize.ts b/common/tools/dev-tool/src/util/customization/customize.ts index a3481bd66e0a..c9c744af6ad6 100644 --- a/common/tools/dev-tool/src/util/customization/customize.ts +++ b/common/tools/dev-tool/src/util/customization/customize.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license -import { copyFile, stat, readFile, writeFile, readdir } from "fs/promises"; +import { copyFile, stat, readFile, writeFile, readdir } from "node:fs/promises"; import { ensureDir, copy } from "fs-extra"; import path from "../pathUtil"; import { @@ -23,7 +23,6 @@ import { augmentTypeAliases } from "./aliases"; import { setCustomizationState, resetCustomizationState } from "./state"; import { getNewCustomFiles } from "./helpers/files"; import { augmentImports } from "./imports"; - import { format } from "../prettier"; import { augmentExports } from "./exports"; diff --git a/common/tools/dev-tool/src/util/fileTree.ts b/common/tools/dev-tool/src/util/fileTree.ts index c07297e45def..c414e02795ab 100644 --- a/common/tools/dev-tool/src/util/fileTree.ts +++ b/common/tools/dev-tool/src/util/fileTree.ts @@ -2,9 +2,8 @@ // Licensed under the MIT license. import fs from "fs-extra"; -import os from "os"; -import path from "path"; - +import os from "node:os"; +import path from "node:path"; import { createPrinter } from "./printer"; import * as git from "./git"; diff --git a/common/tools/dev-tool/src/util/findMatchingFiles.ts b/common/tools/dev-tool/src/util/findMatchingFiles.ts index ce1efcbcc4f6..bb8fec987ed9 100644 --- a/common/tools/dev-tool/src/util/findMatchingFiles.ts +++ b/common/tools/dev-tool/src/util/findMatchingFiles.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license import fs from "fs-extra"; -import path from "path"; +import path from "node:path"; import { createPrinter } from "./printer"; import { shouldSkip } from "./samples/configuration"; diff --git a/common/tools/dev-tool/src/util/findSamplesDir.ts b/common/tools/dev-tool/src/util/findSamplesDir.ts index 3afb7b06e85f..b20fa393f9de 100644 --- a/common/tools/dev-tool/src/util/findSamplesDir.ts +++ b/common/tools/dev-tool/src/util/findSamplesDir.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license import fs from "fs-extra"; -import path from "path"; +import path from "node:path"; export function findSamplesRelativeDir(samplesDir: string): string { const dirs = []; diff --git a/common/tools/dev-tool/src/util/git.ts b/common/tools/dev-tool/src/util/git.ts index 28d91cc9c55c..64ccf2550e2c 100644 --- a/common/tools/dev-tool/src/util/git.ts +++ b/common/tools/dev-tool/src/util/git.ts @@ -1,10 +1,9 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { spawn } from "child_process"; -import { tmpdir } from "os"; - -import path from "path"; +import { spawn } from "node:child_process"; +import { tmpdir } from "node:os"; +import path from "node:path"; /** * Uses the git command line to ask whether a path has any tracked, unstaged changes (if they would appear in a git diff --git a/common/tools/dev-tool/src/util/migrations.ts b/common/tools/dev-tool/src/util/migrations.ts index 18928001a8e6..ef6fa0086cb0 100644 --- a/common/tools/dev-tool/src/util/migrations.ts +++ b/common/tools/dev-tool/src/util/migrations.ts @@ -2,8 +2,8 @@ // Licensed under the MIT license. import { mkdirp, readFile, rm, stat, Stats, writeFile } from "fs-extra"; -import { userInfo } from "os"; -import path from "path"; +import { userInfo } from "node:os"; +import path from "node:path"; import { panic } from "./assert"; import { findMatchingFiles } from "./findMatchingFiles"; import { createPrinter, Printer } from "./printer"; diff --git a/common/tools/dev-tool/src/util/pathUtil.ts b/common/tools/dev-tool/src/util/pathUtil.ts index 86c6fcaf0f3b..d0739fdd32ca 100644 --- a/common/tools/dev-tool/src/util/pathUtil.ts +++ b/common/tools/dev-tool/src/util/pathUtil.ts @@ -1,4 +1,7 @@ -import path from "path"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import path from "node:path"; function toPosixWrapper any>(f: T): T { const wrapped = (...args: Parameters): ReturnType => { diff --git a/common/tools/dev-tool/src/util/prettier.ts b/common/tools/dev-tool/src/util/prettier.ts index 52ad480b5f6c..b9ecb351141e 100644 --- a/common/tools/dev-tool/src/util/prettier.ts +++ b/common/tools/dev-tool/src/util/prettier.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + import * as prettier from "prettier"; import prettierOptions from "../../../eslint-plugin-azure-sdk/prettier.json"; diff --git a/common/tools/dev-tool/src/util/printer.ts b/common/tools/dev-tool/src/util/printer.ts index 441b378ff67d..c0804f9be8fa 100644 --- a/common/tools/dev-tool/src/util/printer.ts +++ b/common/tools/dev-tool/src/util/printer.ts @@ -4,7 +4,7 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import chalk from "chalk"; -import path from "path"; +import path from "node:path"; const printModes = ["info", "warn", "error", "success", "debug"] as const; diff --git a/common/tools/dev-tool/src/util/resolveProject.ts b/common/tools/dev-tool/src/util/resolveProject.ts index ac2b03410350..be9323461dcd 100644 --- a/common/tools/dev-tool/src/util/resolveProject.ts +++ b/common/tools/dev-tool/src/util/resolveProject.ts @@ -2,8 +2,7 @@ // Licensed under the MIT license. import fs from "fs-extra"; -import path from "path"; - +import path from "node:path"; import { createPrinter } from "./printer"; import { SampleConfiguration } from "./samples/configuration"; diff --git a/common/tools/dev-tool/src/util/run.ts b/common/tools/dev-tool/src/util/run.ts index 4647b1746ca0..7af269b12358 100644 --- a/common/tools/dev-tool/src/util/run.ts +++ b/common/tools/dev-tool/src/util/run.ts @@ -1,4 +1,7 @@ -import { SpawnOptions, spawn } from "child_process"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { SpawnOptions, spawn } from "node:child_process"; export interface RunOptions extends SpawnOptions { captureOutput?: boolean; diff --git a/common/tools/dev-tool/src/util/samples/convert.ts b/common/tools/dev-tool/src/util/samples/convert.ts index c0443b04fa8c..8798061e4074 100644 --- a/common/tools/dev-tool/src/util/samples/convert.ts +++ b/common/tools/dev-tool/src/util/samples/convert.ts @@ -1,10 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { EOL } from "os"; - +import { EOL } from "node:os"; import ts from "typescript"; - import { createPrinter } from "../printer"; import { format } from "../prettier"; diff --git a/common/tools/dev-tool/src/util/samples/generation.ts b/common/tools/dev-tool/src/util/samples/generation.ts index 38e610877b76..caba85078f81 100644 --- a/common/tools/dev-tool/src/util/samples/generation.ts +++ b/common/tools/dev-tool/src/util/samples/generation.ts @@ -1,5 +1,8 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + import fs from "fs-extra"; -import path from "path"; +import path from "node:path"; import { copy, dir, file, FileTreeFactory, lazy, safeClean, temp } from "../fileTree"; import { findMatchingFiles } from "../findMatchingFiles"; import { createPrinter } from "../printer"; @@ -17,7 +20,6 @@ import { SampleGenerationInfo, } from "./info"; import { processSources } from "./processor"; - import devToolPackageJson from "../../../package.json"; import instantiateSampleReadme from "../../templates/sampleReadme.md"; import { resolveModule } from "./transforms"; diff --git a/common/tools/dev-tool/src/util/samples/processor.ts b/common/tools/dev-tool/src/util/samples/processor.ts index 977fbb807eb0..b5c286eea950 100644 --- a/common/tools/dev-tool/src/util/samples/processor.ts +++ b/common/tools/dev-tool/src/util/samples/processor.ts @@ -2,8 +2,8 @@ // Licensed under the MIT license. import fs from "fs-extra"; -import path from "path"; -import * as ts from "typescript"; +import path from "node:path"; +import ts from "typescript"; import { convert } from "./convert"; import { createPrinter } from "../printer"; import { createAccumulator } from "../typescript/accumulator"; diff --git a/common/tools/dev-tool/src/util/samples/syntax.ts b/common/tools/dev-tool/src/util/samples/syntax.ts index 88f2585a5b94..919e03e1d383 100644 --- a/common/tools/dev-tool/src/util/samples/syntax.ts +++ b/common/tools/dev-tool/src/util/samples/syntax.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import * as ts from "typescript"; +import ts from "typescript"; /** * Tests for syntax compatibility. diff --git a/common/tools/dev-tool/src/util/testProxyUtils.ts b/common/tools/dev-tool/src/util/testProxyUtils.ts index 5767f6536b89..82d0cbb41384 100644 --- a/common/tools/dev-tool/src/util/testProxyUtils.ts +++ b/common/tools/dev-tool/src/util/testProxyUtils.ts @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { ChildProcess, exec, spawn, SpawnOptions } from "child_process"; +import { ChildProcess, exec, spawn, SpawnOptions } from "node:child_process"; import { createPrinter } from "./printer"; import { ProjectInfo, resolveProject, resolveRoot } from "./resolveProject"; import fs from "fs-extra"; -import path from "path"; +import path from "node:path"; import decompress from "decompress"; import envPaths from "env-paths"; -import { promisify } from "util"; +import { promisify } from "node:util"; const log = createPrinter("test-proxy"); const downloadLocation = path.join(envPaths("azsdk-dev-tool").cache, "test-proxy"); diff --git a/common/tools/dev-tool/src/util/testUtils.ts b/common/tools/dev-tool/src/util/testUtils.ts index a53b1f000b27..234835ab3dab 100644 --- a/common/tools/dev-tool/src/util/testUtils.ts +++ b/common/tools/dev-tool/src/util/testUtils.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + import { isProxyToolActive, startTestProxy, TestProxy } from "./testProxyUtils"; import concurrently, { Command as ConcurrentlyCommand } from "concurrently"; import { createPrinter } from "./printer"; diff --git a/common/tools/dev-tool/src/util/typescript/diagnostic.ts b/common/tools/dev-tool/src/util/typescript/diagnostic.ts index dfaad0cd2fe4..03c886dc766e 100644 --- a/common/tools/dev-tool/src/util/typescript/diagnostic.ts +++ b/common/tools/dev-tool/src/util/typescript/diagnostic.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license. import ts from "typescript"; -import { EOL } from "os"; +import { EOL } from "node:os"; /** * The type of the emitter function. diff --git a/common/tools/dev-tool/test/argParsing.spec.ts b/common/tools/dev-tool/test/argParsing.spec.ts index ae960fc038d7..01f4ec93e0d3 100644 --- a/common/tools/dev-tool/test/argParsing.spec.ts +++ b/common/tools/dev-tool/test/argParsing.spec.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { assert } from "chai"; +import { describe, it, assert, beforeAll } from "vitest"; import { spawn } from "child_process"; import { StrictAllowMultiple } from "../src/framework/command"; import { CommandOptions } from "../src/framework/CommandInfo"; @@ -49,7 +49,7 @@ function shellSplit(args: string): Promise { } describe("argument parsing", function () { - before(silenceLogger); + beforeAll(silenceLogger); it("simple option", async () => { const parsed = parseOptions( diff --git a/common/tools/dev-tool/test/customization/aliases.spec.ts b/common/tools/dev-tool/test/customization/aliases.spec.ts index cc1583e314d8..3ec47e8b960d 100644 --- a/common/tools/dev-tool/test/customization/aliases.spec.ts +++ b/common/tools/dev-tool/test/customization/aliases.spec.ts @@ -1,6 +1,9 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { describe, it, assert, beforeEach } from "vitest"; import { Project, SourceFile, TypeAliasDeclaration } from "ts-morph"; import { augmentTypeAliases } from "../../src/util/customization/aliases"; -import { expect } from "chai"; describe("Customization", () => { let project: Project; @@ -25,7 +28,7 @@ describe("Customization", () => { augmentTypeAliases(originalAliases, customAliases, originalFile); - expect(originalFile.getTypeAlias("CustomAlias")).not.to.be.undefined; + assert.isDefined(originalFile.getTypeAlias("CustomAlias")); }); it("should replace existing aliases with custom aliases", () => { @@ -43,7 +46,8 @@ describe("Customization", () => { augmentTypeAliases(originalAliases, customAliases, originalFile); - expect(originalFile.getTypeAlias("OriginalAlias")?.getText()).to.equal( + assert.equal( + originalFile.getTypeAlias("OriginalAlias")?.getText(), "type OriginalAlias = number;", ); }); diff --git a/common/tools/dev-tool/test/customization/annotations.spec.ts b/common/tools/dev-tool/test/customization/annotations.spec.ts index ae67a8e44358..c5808be8c6d0 100644 --- a/common/tools/dev-tool/test/customization/annotations.spec.ts +++ b/common/tools/dev-tool/test/customization/annotations.spec.ts @@ -1,6 +1,9 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { describe, it, assert, beforeEach } from "vitest"; import { Project, SourceFile } from "ts-morph"; import { getAnnotation } from "../../src/util/customization/helpers/annotations"; -import { expect } from "chai"; describe("Annotations", () => { let project: Project; @@ -21,7 +24,7 @@ describe("Annotations", () => { }); const annotation = getAnnotation(functionDeclaration); - expect(annotation).to.deep.equal({ type: "remove", param: undefined }); + assert.deepEqual(annotation, { type: "remove", param: undefined }); }); it("should find it in Properties", () => { @@ -38,7 +41,7 @@ describe("Annotations", () => { const propertyDeclaration = interfaceDeclaration.getProperty("myProperty")!; const annotation = getAnnotation(propertyDeclaration); - expect(annotation).to.deep.equal({ type: "remove", param: undefined }); + assert.deepEqual(annotation, { type: "remove", param: undefined }); }); it("should find it in CallSignatures", () => { @@ -54,7 +57,7 @@ describe("Annotations", () => { const callSignatureDeclaration = interfaceDeclaration.getCallSignatures()[0]; const annotation = getAnnotation(callSignatureDeclaration); - expect(annotation).to.deep.equal({ type: "remove", param: undefined }); + assert.deepEqual(annotation, { type: "remove", param: undefined }); }); }); @@ -67,7 +70,7 @@ describe("Annotations", () => { }); const annotation = getAnnotation(functionDeclaration); - expect(annotation).to.deep.equal({ type: "rename", param: "myNewFunction" }); + assert.deepEqual(annotation, { type: "rename", param: "myNewFunction" }); }); it("should find it in Properties", () => { @@ -84,7 +87,7 @@ describe("Annotations", () => { const propertyDeclaration = interfaceDeclaration.getProperty("myProperty")!; const annotation = getAnnotation(propertyDeclaration); - expect(annotation).to.deep.equal({ type: "rename", param: "myNewProperty" }); + assert.deepEqual(annotation, { type: "rename", param: "myNewProperty" }); }); }); }); @@ -97,7 +100,7 @@ describe("Annotations", () => { }); const annotation = getAnnotation(functionDeclaration); - expect(annotation).to.be.undefined; + assert.isUndefined(annotation); }); it("should not find any in Properties", () => { @@ -113,7 +116,7 @@ describe("Annotations", () => { const propertyDeclaration = interfaceDeclaration.getProperty("myProperty")!; const annotation = getAnnotation(propertyDeclaration); - expect(annotation).to.be.undefined; + assert.isUndefined(annotation); }); it("should not find any in CallSignatures", () => { @@ -128,7 +131,7 @@ describe("Annotations", () => { const callSignatureDeclaration = interfaceDeclaration.getCallSignatures()[0]; const annotation = getAnnotation(callSignatureDeclaration); - expect(annotation).to.be.undefined; + assert.isUndefined(annotation); }); }); }); diff --git a/common/tools/dev-tool/test/customization/classes.spec.ts b/common/tools/dev-tool/test/customization/classes.spec.ts index f86c2a1bf950..df8eff4b8674 100644 --- a/common/tools/dev-tool/test/customization/classes.spec.ts +++ b/common/tools/dev-tool/test/customization/classes.spec.ts @@ -1,3 +1,7 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { describe, it, assert, beforeEach, afterEach } from "vitest"; import { Project, SourceFile, @@ -11,7 +15,6 @@ import { augmentConstructor, augmentMethod, } from "../../src/util/customization/classes"; -import { expect } from "chai"; describe("Classes", () => { let project: Project; @@ -61,16 +64,17 @@ class MyClass {} it("should add a new class to the source file", () => { augmentClass(undefined, customClass, originalFile); - expect(originalFile.getClass("MyClass")).to.not.be.undefined; + assert.isDefined(originalFile.getClass("MyClass")); }); it("should add properties only present in the custom class", () => { originalClass = originalFile.addClass({ name: "MyClass" }); customClass.addProperty({ name: "myProperty", type: "string" }); augmentClass(originalClass, customClass, originalFile); - expect( + assert.equal( originalFile.getClass("MyClass")?.getProperty("myProperty")?.getType().getText(), - ).to.equal("string"); + "string", + ); }); it("should not add the class augmentation property", () => { @@ -78,19 +82,21 @@ class MyClass {} customClass.addProperty({ name: "myProperty", type: "string" }); customClass.addProperty({ name: AUGMENT_CLASS_TOKEN, type: "string" }); augmentClass(originalClass, customClass, originalFile); - expect(originalFile.getClass("MyClass")?.getProperty(AUGMENT_CLASS_TOKEN)).to.be.undefined; - expect( + assert.isUndefined(originalFile.getClass("MyClass")?.getProperty(AUGMENT_CLASS_TOKEN)); + assert.equal( originalFile.getClass("MyClass")?.getProperty("myProperty")?.getType().getText(), - ).to.equal("string"); + "string", + ); }); it("should replace the original property with the custom property", () => { originalClass = originalFile.addClass({ name: "MyClass" }); originalClass.addProperty({ name: "myProperty", type: "number" }); customClass.addProperty({ name: "myProperty", type: "string" }); augmentClass(originalClass, customClass, originalFile); - expect( + assert.equal( originalFile.getClass("MyClass")?.getProperty("myProperty")?.getType().getText(), - ).to.equal("string"); + "string", + ); }); }); @@ -117,7 +123,7 @@ class MyClass {} }); augmentMethod(originalMethod, customMethod, originalClass!); - expect(originalFile.getClass("MyClass")?.getMethod("myMethod")).to.not.be.undefined; + assert.isDefined(originalFile.getClass("MyClass")?.getMethod("myMethod")); }); it("should augment an existing method in the original class", () => { @@ -133,9 +139,10 @@ class MyClass {} augmentMethod(originalMethod, customMethod, originalClass!); - expect( + assert.equal( originalFile.getClass("MyClass")?.getMethod("myMethod")?.getReturnType().getText(), - ).to.equal("number"); + "number", + ); }); it("should replace an existing method in the original class", () => { @@ -151,9 +158,10 @@ class MyClass {} augmentMethod(originalMethod, customMethod, originalClass!); - expect( + assert.equal( originalFile.getClass("MyClass")?.getMethod("myMethod")?.getReturnType().getText(), - ).to.equal("number"); + "number", + ); }); it("should augment existing method with the original one", () => { @@ -195,16 +203,16 @@ class MyClass {} ?.getJsDocs() ?.map((x) => x.getDescription()); - expect(methodBody).to.contain("return originalNumber;"); - expect(methodBody).to.not.contain("return 1;"); + assert.include(methodBody, "return originalNumber;"); + assert.notInclude(methodBody, "return 1;"); - expect(methodDocs).to.have.lengthOf(1); - expect(methodDocs?.[0]).to.equal("Customized docs"); + assert.lengthOf(methodDocs!, 1); + assert.equal(methodDocs?.[0], "Customized docs"); - expect(privateMethodBody).to.not.contain("return originalNumber;"); - expect(privateMethodBody).to.contain("return 1;"); + assert.notInclude(privateMethodBody, "return originalNumber;"); + assert.include(privateMethodBody, "return 1;"); - expect(originalFile.getClass("MyClass")?.getProperty(AUGMENT_CLASS_TOKEN)).to.be.undefined; + assert.isUndefined(originalFile.getClass("MyClass")?.getProperty(AUGMENT_CLASS_TOKEN)); }); }); @@ -228,8 +236,9 @@ class MyClass {} parameters: [{ name: "foo", type: "string" }], }); augmentConstructor(customConstructor, originalClass!); - - expect(originalFile.getClass("MyClass")?.getConstructors().length).to.equal(1); + const constructorDeclarations = originalFile.getClass("MyClass")?.getConstructors() + assert.isDefined(constructorDeclarations); + if (constructorDeclarations) assert.lengthOf(constructorDeclarations, 1); }); it("should replace the original constructor with the custom constructor", () => { @@ -241,11 +250,14 @@ class MyClass {} }); augmentConstructor(customConstructor, originalClass!); - expect(originalFile.getClass("MyClass")?.getConstructors().length).to.equal(1); - expect(originalFile.getClass("MyClass")?.getConstructors()[0].getParameter("foo")).to.not.be - .undefined; - expect(originalFile.getClass("MyClass")?.getConstructors()[0].getParameter("bar")).to.be - .undefined; + const constructorDeclarations = originalFile.getClass("MyClass")?.getConstructors() + assert.isDefined(constructorDeclarations); + if (!constructorDeclarations) assert.fail("constructorDeclarations is undefined") + assert.lengthOf(constructorDeclarations, 1); + assert.isDefined(constructorDeclarations[0].getParameter("foo")); + assert.isUndefined( + constructorDeclarations[0].getParameter("bar"), + ); }); it("should augment constructor with original constructor", () => { @@ -277,24 +289,34 @@ class MyClass {} augmentConstructor(customConstructor, originalClass!); - expect(originalFile.getClass("MyClass")?.getConstructors().length).to.equal(1); - expect(originalFile.getClass("MyClass")?.getConstructors()[0].getJsDocs().length).to.equal(1); - expect( - originalFile.getClass("MyClass")?.getConstructors()[0].getJsDocs()[0].getDescription(), - ).to.equal("Customized docs"); - expect(originalFile.getClass("MyClass")?.getConstructors()[0].getParameter("endpoint")).to.not - .be.undefined; - expect(originalFile.getClass("MyClass")?.getConstructors()[0].getParameter("baseUrl")).to.be; - expect(originalFile.getClass("MyClass")?.getConstructors()[0].getText()).to.include( + const constructorDeclarations = originalFile.getClass("MyClass")?.getConstructors() + if (!constructorDeclarations) assert.fail("constructorDeclarations is undefined") + assert.lengthOf(constructorDeclarations, 1); + assert.equal(constructorDeclarations[0].getJsDocs().length, 1); + assert.equal( + constructorDeclarations[0].getJsDocs()[0].getDescription(), + "Customized docs", + ); + assert.isDefined( + constructorDeclarations[0].getParameter("endpoint"), + ); + assert.isUndefined( + constructorDeclarations[0].getParameter("baseUrl"), + ); + assert.include( + constructorDeclarations[0].getText(), "console.log('custom');", ); - expect(originalFile.getClass("MyClass")?.getConstructors()[0].getText()).to.include( + assert.include( + constructorDeclarations[0].getText(), "console.log('original');", ); - expect(originalFile.getClass("MyClass")?.getConstructors()[0].getText()).to.not.include( + assert.notInclude( + constructorDeclarations[0].getText(), "// @azsdk-constructor-end", ); - expect(originalFile.getClass("MyClass")?.getConstructors()[0].getText()).to.include( + assert.include( + constructorDeclarations[0].getText(), "console.log('finish custom');", ); }); diff --git a/common/tools/dev-tool/test/customization/exports.spec.ts b/common/tools/dev-tool/test/customization/exports.spec.ts index b0509cc3ce31..6f104b9804e4 100644 --- a/common/tools/dev-tool/test/customization/exports.spec.ts +++ b/common/tools/dev-tool/test/customization/exports.spec.ts @@ -1,6 +1,9 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { describe, it, assert, beforeEach } from "vitest"; import { Project, SourceFile } from "ts-morph"; import { augmentExports } from "../../src/util/customization/exports"; -import { expect } from "chai"; describe("Exports", () => { let project: Project; @@ -20,14 +23,14 @@ describe("Exports", () => { it("should add custom exports to the original file", () => { augmentExports(customFile, originalFile); - expect(originalFile.getExportDeclarations()).to.have.lengthOf(1); + assert.equal(originalFile.getExportDeclarations().length, 1); const exportDeclaration = originalFile.getExportDeclarations()[0]; - expect(exportDeclaration.getModuleSpecifier()?.getLiteralValue()).to.equal("./module"); + assert.equal(exportDeclaration.getModuleSpecifier()?.getLiteralValue(), "./module"); const namedExports = exportDeclaration.getNamedExports(); - expect(namedExports).to.have.lengthOf(1); - expect(namedExports[0].getName()).to.equal("Foo"); + assert.lengthOf(namedExports, 1); + assert.equal(namedExports[0].getName(), "Foo"); }); it("should add named exports to the existing module export if it exists", () => { @@ -38,14 +41,14 @@ describe("Exports", () => { augmentExports(customFile, originalFile); - expect(originalFile.getExportDeclarations()).to.have.lengthOf(1); + assert.equal(originalFile.getExportDeclarations().length, 1); const exportDeclaration = originalFile.getExportDeclarations()[0]; - expect(exportDeclaration.getModuleSpecifier()?.getLiteralValue()).to.equal("./module"); + assert.equal(exportDeclaration.getModuleSpecifier()?.getLiteralValue(), "./module"); const namedExports = exportDeclaration.getNamedExports(); - expect(namedExports).to.have.lengthOf(2); - expect(namedExports.map((e) => e.getName())).contains("Foo"); - expect(namedExports.map((e) => e.getName())).contains("Bar"); + assert.lengthOf(namedExports, 2); + const namedExportNames = namedExports.map((e) => e.getName()); + assert.includeMembers(namedExportNames, ["Foo", "Bar"]); }); }); diff --git a/common/tools/dev-tool/test/customization/functions.spec.ts b/common/tools/dev-tool/test/customization/functions.spec.ts index 50af34464fc0..9a0488aa363e 100644 --- a/common/tools/dev-tool/test/customization/functions.spec.ts +++ b/common/tools/dev-tool/test/customization/functions.spec.ts @@ -1,6 +1,9 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { describe, it, assert, beforeEach } from "vitest"; import { Project, SourceFile, FunctionDeclaration } from "ts-morph"; import { augmentFunction } from "../../src/util/customization/functions"; -import { expect } from "chai"; describe("Functions", () => { let project: Project; @@ -23,7 +26,7 @@ describe("Functions", () => { it("should add custom functions to the original file", () => { augmentFunction(customFunction, originalFunction, originalFile); - expect(originalFile.getFunction("myFunction")).not.to.be.undefined; + assert.isDefined(originalFile.getFunction("myFunction")); }); it("should replace existing functions with custom functions", () => { @@ -34,9 +37,10 @@ describe("Functions", () => { augmentFunction(customFunction, originalFunction, originalFile); - expect( + assert.equal( originalFile.getFunction("myFunction")?.getParameter("param")?.getType().getText(), - ).to.equal("string"); + "string", + ); }); it("should convert existing functions to private functions", () => { @@ -49,8 +53,8 @@ describe("Functions", () => { augmentFunction(customFunction, originalFunction, originalFile); - expect(originalFile.getFunction("myFunction")).to.not.be.undefined; - expect(originalFile.getFunction("_myFunction")).to.not.be.undefined; - expect(originalFile.getFunction("myFunction")?.getText()).to.include("_myFunction"); + assert.isDefined(originalFile.getFunction("myFunction")); + assert.isDefined(originalFile.getFunction("_myFunction")); + assert.include(originalFile.getFunction("myFunction")?.getText(), "_myFunction"); }); }); diff --git a/common/tools/dev-tool/test/customization/imports.spec.ts b/common/tools/dev-tool/test/customization/imports.spec.ts index 09790fcd2fe5..a78e47bd3753 100644 --- a/common/tools/dev-tool/test/customization/imports.spec.ts +++ b/common/tools/dev-tool/test/customization/imports.spec.ts @@ -1,6 +1,9 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { describe, it, assert, beforeEach, afterEach } from "vitest"; import { ImportDeclaration, Project } from "ts-morph"; import { augmentImports } from "../../src/util/customization/imports"; -import { expect } from "chai"; import { resetCustomizationState, setCustomizationState } from "../../src/util/customization/state"; describe("Imports", () => { @@ -27,7 +30,7 @@ describe("Imports", () => { augmentImports(imports, customFile.getImportDeclarations(), originalFile); const augmentedImports = originalFile.getImportDeclarations(); - expect(augmentedImports).to.have.lengthOf(0); + assert.equal(augmentedImports.length, 0); }); it("should remove self imports on Windows", () => { @@ -49,7 +52,7 @@ describe("Imports", () => { augmentImports(imports, customFile.getImportDeclarations(), originalFile); const augmentedImports = originalFile.getImportDeclarations(); - expect(augmentedImports).to.have.lengthOf(0); + assert.equal(augmentedImports.length, 0); }); it("should rewrite relative imports to the source directory", () => { @@ -75,11 +78,11 @@ describe("Imports", () => { resetCustomizationState(); const augmentedImports = originalFile.getImportDeclarations(); - expect(augmentedImports).to.have.lengthOf(2); + assert.lengthOf(augmentedImports, 2); const rewrittenImportSpecifier = augmentedImports[0].getModuleSpecifierValue(); - expect(rewrittenImportSpecifier).to.equal("./anotherFile.js"); + assert.equal(rewrittenImportSpecifier, "./anotherFile.js"); const rewrittenImportSpecifier2 = augmentedImports[1].getModuleSpecifierValue(); - expect(rewrittenImportSpecifier2).to.equal("../rest/file.js"); + assert.equal(rewrittenImportSpecifier2, "../rest/file.js"); }); it("rewrite relative imports to the source directory on Windows", () => { @@ -106,11 +109,11 @@ describe("Imports", () => { resetCustomizationState(); const augmentedImports = originalFile.getImportDeclarations(); - expect(augmentedImports).to.have.lengthOf(2); + assert.lengthOf(augmentedImports, 2); const rewrittenImportSpecifier = augmentedImports[0].getModuleSpecifierValue(); - expect(rewrittenImportSpecifier).to.equal("./anotherFile.js"); + assert.equal(rewrittenImportSpecifier, "./anotherFile.js"); const rewrittenImportSpecifier2 = augmentedImports[1].getModuleSpecifierValue(); - expect(rewrittenImportSpecifier2).to.equal("../rest/file.js"); + assert.equal(rewrittenImportSpecifier2, "../rest/file.js"); }); it("should rewrite relative imports to the source directory when nested", () => { @@ -133,9 +136,9 @@ describe("Imports", () => { resetCustomizationState(); const augmentedImports = originalFile.getImportDeclarations(); - expect(augmentedImports).to.have.lengthOf(1); + assert.lengthOf(augmentedImports, 1); const rewrittenImportSpecifier = augmentedImports[0].getModuleSpecifierValue(); - expect(rewrittenImportSpecifier).to.equal("../anotherFile.js"); + assert.equal(rewrittenImportSpecifier, "../anotherFile.js"); }); it("should rewrite relative imports to new files from customization", () => { @@ -158,8 +161,8 @@ describe("Imports", () => { resetCustomizationState(); const augmentedImports = originalFile.getImportDeclarations(); - expect(augmentedImports).to.have.lengthOf(1); + assert.lengthOf(augmentedImports, 1); const rewrittenImportSpecifier = augmentedImports[0].getModuleSpecifierValue(); - expect(rewrittenImportSpecifier).to.equal("../anotherFile.js"); + assert.equal(rewrittenImportSpecifier, "../anotherFile.js"); }); }); diff --git a/common/tools/dev-tool/test/customization/interfaces.spec.ts b/common/tools/dev-tool/test/customization/interfaces.spec.ts index 7573f616f681..5e2fced8bbb5 100644 --- a/common/tools/dev-tool/test/customization/interfaces.spec.ts +++ b/common/tools/dev-tool/test/customization/interfaces.spec.ts @@ -1,5 +1,8 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { describe, it, assert, beforeEach } from "vitest"; import { Project, SourceFile, InterfaceDeclaration } from "ts-morph"; -import { expect } from "chai"; import { augmentInterface, augmentInterfaces } from "../../src/util/customization/interfaces"; import { getOriginalDeclarationsMap } from "../../src/util/customization/customize"; @@ -24,7 +27,7 @@ describe("Interfaces", () => { it("should add custom interface to the original file", () => { augmentInterface(customInterface, originalInterface, originalFile); - expect(originalFile.getInterface("myInterface")).not.to.be.undefined; + assert.isDefined(originalFile.getInterface("myInterface")); }); it("should replace existing properties with custom properties", () => { @@ -35,17 +38,21 @@ describe("Interfaces", () => { augmentInterface(customInterface, originalInterface, originalFile); - expect(originalFile.getInterface("myInterface")).not.to.be.undefined; - expect(originalFile.getInterface("myInterface")?.getProperties()).to.have.lengthOf(2); - expect(originalFile.getInterface("myInterface")?.getProperty("foo")).to.not.be.undefined; - expect( + assert.isDefined(originalFile.getInterface("myInterface")); + const props = originalFile.getInterface("myInterface")?.getProperties() + if (!props) assert.fail("myInterface#getProperties() is undefined") + assert.lengthOf(props, 2); + assert.isDefined(originalFile.getInterface("myInterface")?.getProperty("foo")); + assert.equal( originalFile.getInterface("myInterface")?.getProperty("foo")?.getType().getText(), - ).to.equal("string"); + "string", + ); - expect(originalFile.getInterface("myInterface")?.getProperty("bar")).to.not.be.undefined; - expect( + assert.isDefined(originalFile.getInterface("myInterface")?.getProperty("bar")); + assert.equal( originalFile.getInterface("myInterface")?.getProperty("bar")?.getType().getText(), - ).to.equal("number"); + "number", + ); }); it("should remove property marked with @azsdk-remove", () => { @@ -61,19 +68,23 @@ describe("Interfaces", () => { augmentInterface(customInterface, originalInterface, originalFile); - expect(originalFile.getInterface("myInterface")).not.to.be.undefined; - expect(originalFile.getInterface("myInterface")?.getProperties()).to.have.lengthOf(2); - expect(originalFile.getInterface("myInterface")?.getProperty("foo")).to.not.be.undefined; - expect(originalFile.getInterface("myInterface")?.getProperty("baz")).to.not.be.undefined; + assert.isDefined(originalFile.getInterface("myInterface")); + const props = originalFile.getInterface("myInterface")?.getProperties(); + if (!props) assert.fail("myInterface#getProperties() is undefined") + assert.lengthOf(props, 2); + assert.isDefined(originalFile.getInterface("myInterface")?.getProperty("foo")); + assert.isDefined(originalFile.getInterface("myInterface")?.getProperty("baz")); - expect(originalFile.getInterface("myInterface")?.getProperty("bar")).to.be.undefined; - expect( + assert.isUndefined(originalFile.getInterface("myInterface")?.getProperty("bar")); + assert.equal( originalFile.getInterface("myInterface")?.getProperty("foo")?.getType().getText(), - ).to.equal("string"); + "string", + ); - expect( + assert.equal( originalFile.getInterface("myInterface")?.getProperty("baz")?.getType().getText(), - ).to.equal("boolean"); + "boolean", + ); }); it("should rename an interface marked with @azsdk-rename", () => { @@ -94,9 +105,10 @@ describe("Interfaces", () => { augmentInterfaces(originalMap.interfaces, customFile.getInterfaces(), originalFile); - expect(originalFile.getInterface("Dog")).to.be.undefined; - expect(originalFile.getInterface("Pet")).not.to.be.undefined; - expect(originalFile.getInterface("Human")?.getProperty("pets")?.getType().getText()).to.equal( + assert.isUndefined(originalFile.getInterface("Dog")); + assert.isDefined(originalFile.getInterface("Pet")); + assert.equal( + originalFile.getInterface("Human")?.getProperty("pets")?.getType().getText(), "Pet[]", ); }); diff --git a/common/tools/dev-tool/test/framework.spec.ts b/common/tools/dev-tool/test/framework.spec.ts index 879567a55184..52652bce945a 100644 --- a/common/tools/dev-tool/test/framework.spec.ts +++ b/common/tools/dev-tool/test/framework.spec.ts @@ -1,11 +1,9 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { assert } from "chai"; - +import { describe, it, assert, beforeAll } from "vitest"; import { parseOptions } from "../src/framework/parseOptions"; import { makeCommandInfo, subCommand, leafCommand } from "../src/framework/command"; - import { silenceLogger } from "./util"; const simpleCommandInfo = makeCommandInfo("simple", "a simple command", { @@ -24,7 +22,7 @@ interface SimpleExpectedOptionsType { } describe("Command Framework", () => { - before(silenceLogger); + beforeAll(silenceLogger); describe("subCommand", () => { it("simple dispatcher", async () => { diff --git a/common/tools/dev-tool/test/resolveProject.spec.ts b/common/tools/dev-tool/test/resolveProject.spec.ts index ba46643fc39b..1f0a948904e4 100644 --- a/common/tools/dev-tool/test/resolveProject.spec.ts +++ b/common/tools/dev-tool/test/resolveProject.spec.ts @@ -1,22 +1,18 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license -import { assert, use as chaiUse } from "chai"; -import chaiPromises from "chai-as-promised"; -chaiUse(chaiPromises); - -import path from "path"; - +import { describe, it, assert, expect } from "vitest"; +import path from "node:path"; import { resolveProject } from "../src/util/resolveProject"; describe("Project Resolution", () => { it("resolution halts at monorepo root", async () => { - await assert.isRejected(resolveProject(path.join(__dirname, "..", "..")), /monorepo root/); + await expect(resolveProject(path.join(__dirname, "..", ".."))).rejects.toThrow(/monorepo root/); }); it("resolution halts at filesystem root", async () => { const p = path.join(__dirname, "..", "..", "..", "..", ".."); - await assert.isRejected(resolveProject(p), /filesystem root/); + await expect(resolveProject(p)).rejects.toThrow(/filesystem root/); }); it("resolution finds dev-tool package", async () => { diff --git a/common/tools/dev-tool/test/samples/files.spec.ts b/common/tools/dev-tool/test/samples/files.spec.ts index 56baa50f606e..7b8fd1d569bb 100644 --- a/common/tools/dev-tool/test/samples/files.spec.ts +++ b/common/tools/dev-tool/test/samples/files.spec.ts @@ -1,14 +1,12 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. +import { describe, it, assert } from "vitest"; import fs from "fs-extra"; -import os from "os"; -import path from "path"; +import os from "node:os"; +import path from "node:path"; import { makeSamplesFactory } from "../../src/util/samples/generation"; - import * as git from "../../src/util/git"; - -import { assert } from "chai"; import { findMatchingFiles } from "../../src/util/findMatchingFiles"; import { METADATA_KEY } from "../../src/util/resolveProject"; @@ -17,7 +15,7 @@ import { METADATA_KEY } from "../../src/util/resolveProject"; const INPUT_PATH = path.join(__dirname, "files", "inputs"); const EXPECT_PATH = path.join(__dirname, "files", "expectations"); -describe("File content tests", async function () { +describe("File content tests", { timeout: 50000 }, async function () { const shouldWriteExpectations = process.env.TEST_MODE === "record"; if (shouldWriteExpectations) { @@ -44,7 +42,7 @@ describe("File content tests", async function () { for (const dir of inputDirectories) { const name = path.basename(dir); - it(name, async function () { + it(name, { timeout: 50000 }, async function () { const tempOutputDir = await fs.mkdtemp(path.join(os.tmpdir(), "devToolTest")); const version = name.includes("@") ? name.split("@")[1] : "1.0.0"; @@ -115,6 +113,6 @@ describe("File content tests", async function () { await fs.emptyDir(tempOutputDir); await fs.rmdir(tempOutputDir); } - }).timeout(50000); + }); } -}).timeout(50000); +}); diff --git a/common/tools/dev-tool/test/samples/skips.spec.ts b/common/tools/dev-tool/test/samples/skips.spec.ts index 41514fc28dbe..228fae3b2a6a 100644 --- a/common/tools/dev-tool/test/samples/skips.spec.ts +++ b/common/tools/dev-tool/test/samples/skips.spec.ts @@ -1,8 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { assert } from "chai"; - +import { describe, it, assert } from "vitest"; import { FileInfo } from "../../src/util/findMatchingFiles"; import { shouldSkip } from "../../src/util/samples/configuration"; diff --git a/common/tools/dev-tool/vitest.config.ts b/common/tools/dev-tool/vitest.config.ts new file mode 100644 index 000000000000..16d0436c006f --- /dev/null +++ b/common/tools/dev-tool/vitest.config.ts @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + reporters: ["basic", "junit"], + outputFile: { + junit: "test-results.xml", + }, + fakeTimers: { + toFake: ["setTimeout", "Date"], + }, + watch: false, + include: ["test/**/*.spec.ts", "test/*.spec.ts"], + coverage: { + include: ["src/**/*.ts"], + exclude: [ + "src/**/*-browser.mts", + "src/**/*-react-native.mts", + "vitest*.config.ts", + "samples-dev/**/*.ts", + ], + provider: "istanbul", + reporter: ["text", "json", "html"], + reportsDirectory: "coverage", + }, + }, +}); diff --git a/eng/.docsettings.yml b/eng/.docsettings.yml index 689081ab5265..befbcdb9c233 100644 --- a/eng/.docsettings.yml +++ b/eng/.docsettings.yml @@ -23,6 +23,7 @@ omitted_paths: - sdk/storage/storage-datalake/README.md - sdk/storage/storage-internal-avro/* - sdk/test-utils/*/README.md + - sdk/identity/identity/integration/* language: js root_check_enabled: True diff --git a/eng/common/pipelines/templates/steps/bypass-local-dns.yml b/eng/common/pipelines/templates/steps/bypass-local-dns.yml index 922f58a8286c..6e30c91fd258 100644 --- a/eng/common/pipelines/templates/steps/bypass-local-dns.yml +++ b/eng/common/pipelines/templates/steps/bypass-local-dns.yml @@ -6,6 +6,6 @@ steps: condition: | and( succeededOrFailed(), - contains(variables['OSVmImage'], 'ubuntu'), + or(contains(variables['OSVmImage'], 'ubuntu'),contains(variables['OSVmImage'], 'linux')), eq(variables['Container'], '') ) diff --git a/eng/common/pipelines/templates/steps/create-apireview.yml b/eng/common/pipelines/templates/steps/create-apireview.yml index e85006943772..c69d05d5ae31 100644 --- a/eng/common/pipelines/templates/steps/create-apireview.yml +++ b/eng/common/pipelines/templates/steps/create-apireview.yml @@ -2,28 +2,37 @@ parameters: ArtifactPath: $(Build.ArtifactStagingDirectory) Artifacts: [] ConfigFileDir: $(Build.ArtifactStagingDirectory)/PackageInfo + MarkPackageAsShipped: false + GenerateApiReviewForManualOnly: false + ArtifactName: 'packages' + PackageName: '' steps: # ideally this should be done as initial step of a job in caller template # We can remove this step later once it is added in caller - template: /eng/common/pipelines/templates/steps/set-default-branch.yml - - ${{ each artifact in parameters.Artifacts }}: + # Automatic API review is generated for a package when pipeline runs irrespective of how pipeline gets triggered. + # Below condition ensures that API review is generated only for manual pipeline runs when flag GenerateApiReviewForManualOnly is set to true. + - ${{ if or(ne(parameters.GenerateApiReviewForManualOnly, true), eq(variables['Build.Reason'], 'Manual')) }}: - task: Powershell@2 inputs: filePath: $(Build.SourcesDirectory)/eng/common/scripts/Create-APIReview.ps1 arguments: > + -ArtifactList ('${{ convertToJson(parameters.Artifacts) }}' | ConvertFrom-Json | Select-Object Name) -ArtifactPath ${{parameters.ArtifactPath}} - -APIViewUri $(azuresdk-apiview-uri) + -ArtifactName ${{ parameters.ArtifactName }} -APIKey $(azuresdk-apiview-apikey) - -APILabel "Auto Review - $(Build.SourceVersion)" - -PackageName ${{artifact.name}} + -PackageName '${{parameters.PackageName}}' -SourceBranch $(Build.SourceBranchName) -DefaultBranch $(DefaultBranch) -ConfigFileDir '${{parameters.ConfigFileDir}}' + -BuildId $(Build.BuildId) + -RepoName '$(Build.Repository.Name)' + -MarkPackageAsShipped $${{parameters.MarkPackageAsShipped}} pwsh: true workingDirectory: $(Pipeline.Workspace) - displayName: Create API Review for ${{ artifact.name}} + displayName: Create API Review condition: >- and( succeededOrFailed(), diff --git a/eng/common/pipelines/templates/steps/git-push-changes.yml b/eng/common/pipelines/templates/steps/git-push-changes.yml index a922b203a9b1..c8fbeaa9769c 100644 --- a/eng/common/pipelines/templates/steps/git-push-changes.yml +++ b/eng/common/pipelines/templates/steps/git-push-changes.yml @@ -10,25 +10,14 @@ parameters: SkipCheckingForChanges: false steps: -- pwsh: | - echo "git add -A" - git add -A - - echo "git diff --name-status --cached --exit-code" - git diff --name-status --cached --exit-code - - if ($LastExitCode -ne 0) { - echo "##vso[task.setvariable variable=HasChanges]$true" - echo "Changes detected so setting HasChanges=true" - } - else { - echo "##vso[task.setvariable variable=HasChanges]$false" - echo "No changes so skipping code push" - } +- task: PowerShell@2 displayName: Check for changes condition: and(succeeded(), eq(${{ parameters.SkipCheckingForChanges }}, false)) - workingDirectory: ${{ parameters.WorkingDirectory }} - ignoreLASTEXITCODE: true + inputs: + pwsh: true + workingDirectory: ${{ parameters.WorkingDirectory }} + filePath: ${{ parameters.ScriptDirectory }}/check-for-git-changes.ps1 + ignoreLASTEXITCODE: true - pwsh: | # Remove the repo owner from the front of the repo name if it exists there diff --git a/eng/common/scripts/Create-APIReview.ps1 b/eng/common/scripts/Create-APIReview.ps1 index c3c8f4a46dc6..cdf467180269 100644 --- a/eng/common/scripts/Create-APIReview.ps1 +++ b/eng/common/scripts/Create-APIReview.ps1 @@ -1,27 +1,37 @@ [CmdletBinding()] Param ( [Parameter(Mandatory=$True)] - [string] $ArtifactPath, + [array] $ArtifactList, [Parameter(Mandatory=$True)] - [string] $APIViewUri, + [string] $ArtifactPath, [Parameter(Mandatory=$True)] - [string] $APIKey, - [Parameter(Mandatory=$True)] - [string] $APILabel, - [string] $PackageName, + [string] $APIKey, [string] $SourceBranch, [string] $DefaultBranch, - [string] $ConfigFileDir = "" + [string] $RepoName, + [string] $BuildId, + [string] $PackageName = "", + [string] $ConfigFileDir = "", + [string] $APIViewUri = "https://apiview.dev/AutoReview", + [string] $ArtifactName = "packages", + [bool] $MarkPackageAsShipped = $false ) +Set-StrictMode -Version 3 +. (Join-Path $PSScriptRoot common.ps1) +. (Join-Path $PSScriptRoot Helpers ApiView-Helpers.ps1) + # Submit API review request and return status whether current revision is approved or pending or failed to create review -function Submit-APIReview($packagename, $filePath, $uri, $apiKey, $apiLabel, $releaseStatus) +function Upload-SourceArtifact($filePath, $apiLabel, $releaseStatus, $packageVersion) { + Write-Host "File path: $filePath" + $fileName = Split-Path -Leaf $filePath + Write-Host "File name: $fileName" $multipartContent = [System.Net.Http.MultipartFormDataContent]::new() $FileStream = [System.IO.FileStream]::new($filePath, [System.IO.FileMode]::Open) $fileHeader = [System.Net.Http.Headers.ContentDispositionHeaderValue]::new("form-data") $fileHeader.Name = "file" - $fileHeader.FileName = $packagename + $fileHeader.FileName = $fileName $fileContent = [System.Net.Http.StreamContent]::new($FileStream) $fileContent.Headers.ContentDisposition = $fileHeader $fileContent.Headers.ContentType = [System.Net.Http.Headers.MediaTypeHeaderValue]::Parse("application/octet-stream") @@ -35,6 +45,20 @@ function Submit-APIReview($packagename, $filePath, $uri, $apiKey, $apiLabel, $re $multipartContent.Add($stringContent) Write-Host "Request param, label: $apiLabel" + $versionParam = [System.Net.Http.Headers.ContentDispositionHeaderValue]::new("form-data") + $versionParam.Name = "packageVersion" + $versionContent = [System.Net.Http.StringContent]::new($packageVersion) + $versionContent.Headers.ContentDisposition = $versionParam + $multipartContent.Add($versionContent) + Write-Host "Request param, packageVersion: $packageVersion" + + $releaseTagParam = [System.Net.Http.Headers.ContentDispositionHeaderValue]::new("form-data") + $releaseTagParam.Name = "setReleaseTag" + $releaseTagParamContent = [System.Net.Http.StringContent]::new($MarkPackageAsShipped) + $releaseTagParamContent.Headers.ContentDisposition = $releaseTagParam + $multipartContent.Add($releaseTagParamContent) + Write-Host "Request param, setReleaseTag: $MarkPackageAsShipped" + if ($releaseStatus -and ($releaseStatus -ne "Unreleased")) { $compareAllParam = [System.Net.Http.Headers.ContentDispositionHeaderValue]::new("form-data") @@ -45,6 +69,7 @@ function Submit-APIReview($packagename, $filePath, $uri, $apiKey, $apiLabel, $re Write-Host "Request param, compareAllRevisions: true" } + $uri = "${APIViewUri}/UploadAutoReview" $headers = @{ "ApiKey" = $apiKey; "content-type" = "multipart/form-data" @@ -53,7 +78,6 @@ function Submit-APIReview($packagename, $filePath, $uri, $apiKey, $apiLabel, $re try { $Response = Invoke-WebRequest -Method 'POST' -Uri $uri -Body $multipartContent -Headers $headers - Write-Host "API Review URL: $($Response.Content)" $StatusCode = $Response.StatusCode } catch @@ -65,118 +89,225 @@ function Submit-APIReview($packagename, $filePath, $uri, $apiKey, $apiLabel, $re return $StatusCode } +function Upload-ReviewTokenFile($packageName, $apiLabel, $releaseStatus, $reviewFileName, $packageVersion) +{ + $params = "buildId=${BuildId}&artifactName=${ArtifactName}&originalFilePath=${packageName}&reviewFilePath=${reviewFileName}" + $params += "&label=${apiLabel}&repoName=${RepoName}&packageName=${packageName}&project=internal&packageVersion=${packageVersion}" + if($MarkPackageAsShipped) { + $params += "&setReleaseTag=true" + } + $uri = "${APIViewUri}/CreateApiReview?${params}" + if ($releaseStatus -and ($releaseStatus -ne "Unreleased")) + { + $uri += "&compareAllRevisions=true" + } -. (Join-Path $PSScriptRoot common.ps1) + Write-Host "Request to APIView: $uri" + $headers = @{ + "ApiKey" = $APIKey; + } -Write-Host "Artifact path: $($ArtifactPath)" -Write-Host "Package Name: $($PackageName)" -Write-Host "Source branch: $($SourceBranch)" -Write-Host "Config File directory: $($ConfigFileDir)" + try + { + $Response = Invoke-WebRequest -Method 'GET' -Uri $uri -Headers $headers + $StatusCode = $Response.StatusCode + } + catch + { + Write-Host "Exception details: $($_.Exception)" + $StatusCode = $_.Exception.Response.StatusCode + } -$packages = @{} -if ($FindArtifactForApiReviewFn -and (Test-Path "Function:$FindArtifactForApiReviewFn")) -{ - $packages = &$FindArtifactForApiReviewFn $ArtifactPath $PackageName + return $StatusCode } -else + +function Get-APITokenFileName($packageName) { - Write-Host "The function for 'FindArtifactForApiReviewFn' was not found.` - Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.` - See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure" - exit(1) + $reviewTokenFileName = "${packageName}_${LanguageShort}.json" + $tokenFilePath = Join-Path $ArtifactPath $packageName $reviewTokenFileName + if (Test-Path $tokenFilePath) { + Write-Host "Review token file is present at $tokenFilePath" + return $reviewTokenFileName + } + else { + Write-Host "Review token file is not present at $tokenFilePath" + return $null + } } -# Check if package config file is present. This file has package version, SDK type etc info. -if (-not $ConfigFileDir) +function Submit-APIReview($packageInfo, $packagePath) { - $ConfigFileDir = Join-Path -Path $ArtifactPath "PackageInfo" + $packageName = $packageInfo.Name + $apiLabel = "Source Branch:${SourceBranch}" + + # Get generated review token file if present + # APIView processes request using different API if token file is already generated + $reviewTokenFileName = Get-APITokenFileName $packageName + if ($reviewTokenFileName) { + Write-Host "Uploading review token file $reviewTokenFileName to APIView." + return Upload-ReviewTokenFile $packageName $apiLabel $packageInfo.ReleaseStatus $reviewTokenFileName $packageInfo.Version + } + else { + Write-Host "Uploading $packagePath to APIView." + return Upload-SourceArtifact $packagePath $apiLabel $packageInfo.ReleaseStatus $packageInfo.Version + } } -if ($packages) + +function ProcessPackage($packageName) { - foreach($pkgPath in $packages.Values) + $packages = @{} + if ($FindArtifactForApiReviewFn -and (Test-Path "Function:$FindArtifactForApiReviewFn")) { - $pkg = Split-Path -Leaf $pkgPath - $pkgPropPath = Join-Path -Path $ConfigFileDir "$PackageName.json" - if (-Not (Test-Path $pkgPropPath)) - { - Write-Host " Package property file path $($pkgPropPath) is invalid." - continue - } - # Get package info from json file created before updating version to daily dev - $pkgInfo = Get-Content $pkgPropPath | ConvertFrom-Json - $version = [AzureEngSemanticVersion]::ParseVersionString($pkgInfo.Version) - if ($version -eq $null) - { - Write-Host "Version info is not available for package $PackageName, because version '$(pkgInfo.Version)' is invalid. Please check if the version follows Azure SDK package versioning guidelines." - exit 1 - } - - Write-Host "Version: $($version)" - Write-Host "SDK Type: $($pkgInfo.SdkType)" - Write-Host "Release Status: $($pkgInfo.ReleaseStatus)" + $packages = &$FindArtifactForApiReviewFn $ArtifactPath $packageName + } + else + { + Write-Host "The function for 'FindArtifactForApiReviewFn' was not found.` + Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.` + See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure" + return 1 + } - # Run create review step only if build is triggered from main branch or if version is GA. - # This is to avoid invalidating review status by a build triggered from feature branch - if ( ($SourceBranch -eq $DefaultBranch) -or (-not $version.IsPrerelease)) + if ($packages) + { + foreach($pkgPath in $packages.Values) { - Write-Host "Submitting API Review for package $($pkg)" - $respCode = Submit-APIReview -packagename $pkg -filePath $pkgPath -uri $APIViewUri -apiKey $APIKey -apiLabel $APILabel -releaseStatus $pkgInfo.ReleaseStatus - Write-Host "HTTP Response code: $($respCode)" - # HTTP status 200 means API is in approved status - if ($respCode -eq '200') - { - Write-Host "API review is in approved status." - } - elseif ($version.IsPrerelease) + $pkg = Split-Path -Leaf $pkgPath + $pkgPropPath = Join-Path -Path $ConfigFileDir "$packageName.json" + if (-Not (Test-Path $pkgPropPath)) { - # Check if package name is approved. Preview version cannot be released without package name approval - if ($respCode -eq '202' -and $pkgInfo.ReleaseStatus -and $pkgInfo.ReleaseStatus -ne "Unreleased") - { - Write-Host "Package name is not yet approved on APIView for $($PackageName). Package name must be approved by an API approver for a beta release if it was never released a stable version." - Write-Host "You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on package name approval." - exit 1 - } - # Ignore API review status for prerelease version - Write-Host "Package version is not GA. Ignoring API view approval status" + Write-Host " Package property file path $($pkgPropPath) is invalid." + continue } - elseif (!$pkgInfo.ReleaseStatus -or $pkgInfo.ReleaseStatus -eq "Unreleased") + # Get package info from json file created before updating version to daily dev + $pkgInfo = Get-Content $pkgPropPath | ConvertFrom-Json + $version = [AzureEngSemanticVersion]::ParseVersionString($pkgInfo.Version) + if ($version -eq $null) { - Write-Host "Release date is not set for current version in change log file for package. Ignoring API review approval status since package is not yet ready for release." + Write-Host "Version info is not available for package $packageName, because version '$(pkgInfo.Version)' is invalid. Please check if the version follows Azure SDK package versioning guidelines." + return 1 } - else + + Write-Host "Version: $($version)" + Write-Host "SDK Type: $($pkgInfo.SdkType)" + Write-Host "Release Status: $($pkgInfo.ReleaseStatus)" + + # Run create review step only if build is triggered from main branch or if version is GA. + # This is to avoid invalidating review status by a build triggered from feature branch + if ( ($SourceBranch -eq $DefaultBranch) -or (-not $version.IsPrerelease) -or $MarkPackageAsShipped) { - # Return error code if status code is 201 for new data plane package - # Temporarily enable API review for spring SDK types. Ideally this should be done be using 'IsReviewRequired' method in language side - # to override default check of SDK type client - if (($pkgInfo.SdkType -eq "client" -or $pkgInfo.SdkType -eq "spring") -and $pkgInfo.IsNewSdk) + Write-Host "Submitting API Review request for package $($pkg), File path: $($pkgPath)" + $respCode = Submit-APIReview $pkgInfo $pkgPath + Write-Host "HTTP Response code: $($respCode)" + + # no need to check API review status when marking a package as shipped + if ($MarkPackageAsShipped) { - if ($respCode -eq '201') + if ($respCode -eq '500') { - Write-Host "Package version $($version) is GA and automatic API Review is not yet approved for package $($PackageName)." - Write-Host "Build and release is not allowed for GA package without API review approval." - Write-Host "You will need to queue another build to proceed further after API review is approved" - Write-Host "You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on API Approval." + Write-Host "Failed to mark package ${packageName} as released. Please reach out to Azure SDK engineering systems on teams channel." + return 1 } - else + Write-Host "Package ${packageName} is marked as released." + return 0 + } + + $apiStatus = [PSCustomObject]@{ + IsApproved = $false + Details = "" + } + $pkgNameStatus = [PSCustomObject]@{ + IsApproved = $false + Details = "" + } + Process-ReviewStatusCode $respCode $packageName $apiStatus $pkgNameStatus + + if ($apiStatus.IsApproved) { + Write-Host "API status: $($apiStatus.Details)" + } + elseif (!$pkgInfo.ReleaseStatus -or $pkgInfo.ReleaseStatus -eq "Unreleased") { + Write-Host "Release date is not set for current version in change log file for package. Ignoring API review approval status since package is not yet ready for release." + } + elseif ($version.IsPrerelease) + { + # Check if package name is approved. Preview version cannot be released without package name approval + if (!$pkgNameStatus.IsApproved) { - Write-Host "Failed to create API Review for package $($PackageName). Please reach out to Azure SDK engineering systems on teams channel and share this build details." + Write-Error $($pkgNameStatus.Details) + return 1 } - exit 1 - } + # Ignore API review status for prerelease version + Write-Host "Package version is not GA. Ignoring API view approval status" + } else { - Write-Host "API review is not approved for package $($PackageName), however it is not required for this package type so it can still be released without API review approval." + # Return error code if status code is 201 for new data plane package + # Temporarily enable API review for spring SDK types. Ideally this should be done be using 'IsReviewRequired' method in language side + # to override default check of SDK type client + if (($pkgInfo.SdkType -eq "client" -or $pkgInfo.SdkType -eq "spring") -and $pkgInfo.IsNewSdk) + { + if (!$apiStatus.IsApproved) + { + Write-Host "Package version $($version) is GA and automatic API Review is not yet approved for package $($packageName)." + Write-Host "Build and release is not allowed for GA package without API review approval." + Write-Host "You will need to queue another build to proceed further after API review is approved" + Write-Host "You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on API Approval." + } + return 1 + } + else { + Write-Host "API review is not approved for package $($packageName), however it is not required for this package type so it can still be released without API review approval." + } } } + else { + Write-Host "Build is triggered from $($SourceBranch) with prerelease version. Skipping API review status check." + } } - else - { - Write-Host "Build is triggered from $($SourceBranch) with prerelease version. Skipping API review status check." - } } + else { + Write-Host "No package is found in artifact path to submit review request" + } + return 0 +} + +$responses = @{} +# Check if package config file is present. This file has package version, SDK type etc info. +if (-not $ConfigFileDir) +{ + $ConfigFileDir = Join-Path -Path $ArtifactPath "PackageInfo" +} + +Write-Host "Artifact path: $($ArtifactPath)" +Write-Host "Source branch: $($SourceBranch)" +Write-Host "Config File directory: $($ConfigFileDir)" + +# if package name param is not empty then process only that package +if ($PackageName) +{ + Write-Host "Processing $($PackageName)" + $result = ProcessPackage -packageName $PackageName + $responses[$PackageName] = $result } else { - Write-Host "No package is found in artifact path to submit review request" + # process all packages in the artifact + foreach ($artifact in $ArtifactList) + { + Write-Host "Processing $($artifact.name)" + $result = ProcessPackage -packageName $artifact.name + $responses[$artifact.name] = $result + } +} + +$exitCode = 0 +foreach($pkg in $responses.keys) +{ + if ($responses[$pkg] -eq 1) + { + Write-Host "API changes are not approved for $($pkg)" + $exitCode = 1 + } } +exit $exitCode \ No newline at end of file diff --git a/eng/common/scripts/Helpers/ApiView-Helpers.ps1 b/eng/common/scripts/Helpers/ApiView-Helpers.ps1 index 73144204f4ec..bf8b16a99e02 100644 --- a/eng/common/scripts/Helpers/ApiView-Helpers.ps1 +++ b/eng/common/scripts/Helpers/ApiView-Helpers.ps1 @@ -20,7 +20,7 @@ function MapLanguageName($language) return $lang } -function Check-ApiReviewStatus($packageName, $packageVersion, $language, $url, $apiKey) +function Check-ApiReviewStatus($packageName, $packageVersion, $language, $url, $apiKey, $apiApprovalStatus = $null, $packageNameStatus = $null) { # Get API view URL and API Key to check status Write-Host "Checking API review status" @@ -35,31 +35,86 @@ function Check-ApiReviewStatus($packageName, $packageVersion, $language, $url, $ packageVersion = $packageVersion } + if (!$apiApprovalStatus) { + $apiApprovalStatus = [PSCustomObject]@{ + IsApproved = $false + Details = "" + } + } + + if (!$packageNameStatus) { + $packageNameStatus = [PSCustomObject]@{ + IsApproved = $false + Details = "" + } + } + try { $response = Invoke-WebRequest $url -Method 'GET' -Headers $headers -Body $body - if ($response.StatusCode -eq '200') - { - Write-Host "API Review is approved for package $($packageName)" + Process-ReviewStatusCode -statusCode $response.StatusCode -packageName $packageName -apiApprovalStatus $apiApprovalStatus -packageNameStatus $packageNameStatus + if ($apiApprovalStatus.IsApproved) { + Write-Host $($apiApprovalStatus.Details) } - elseif ($response.StatusCode -eq '202') - { - Write-Host "Package name $($packageName) is not yet approved by an SDK API approver. Package name must be approved to release a beta version if $($packageName) was never released a stable version." - Write-Host "You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on package name Approval." + else { + Write-warning $($apiApprovalStatus.Details) } - elseif ($response.StatusCode -eq '201') - { - Write-Warning "API Review is not approved for package $($packageName). Release pipeline will fail if API review is not approved for a stable version release." - Write-Host "You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on API Approval." + if ($packageNameStatus.IsApproved) { + Write-Host $($packageNameStatus.Details) } - else - { - Write-Warning "API review status check returned unexpected response. $($response)" - Write-Host "You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on API Approval." + else { + Write-warning $($packageNameStatus.Details) } } catch { Write-Warning "Failed to check API review status for package $($PackageName). You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on API Approval." } +} + +function Process-ReviewStatusCode($statusCode, $packageName, $apiApprovalStatus, $packageNameStatus) +{ + $apiApproved = $false + $apiApprovalDetails = "API Review is not approved for package $($packageName). Release pipeline will fail if API review is not approved for a GA version release. You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on API Approval." + + $packageNameApproved = $false + $packageNameApprovalDetails = "" + + # 200 API approved and Package name approved + # 201 API review is not approved, Package name is approved + # 202 API review is not approved, Package name is not approved + + switch ($statusCode) + { + 200 + { + $apiApprovalDetails = "API Review is approved for package $($packageName)" + $apiApproved = $true + + $packageNameApproved = $true + $packageNameApprovalDetails = "Package name is approved for package $($packageName)" + } + 201 + { + $packageNameApproved = $true + $packageNameApprovalDetails = "Package name is approved for package $($packageName)" + } + 202 + { + $packageNameApprovalDetails = "Package name $($packageName) is not yet approved by an SDK API approver. Package name must be approved to release a beta version if $($packageName) was never released as a stable version." + $packageNameApprovalDetails += " You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on package name Approval." + } + default + { + $apiApprovalDetails = "Invalid status code from APIView. status code $($statusCode)" + $packageNameApprovalDetails = "Invalid status code from APIView. status code $($statusCode)" + Write-Error "Failed to process API Review status for for package $($PackageName). Please reach out to Azure SDK engineering systems on teams channel." + } + } + + $apiApprovalStatus.IsApproved = $apiApproved + $apiApprovalStatus.Details = $apiApprovalDetails + + $packageNameStatus.IsApproved = $packageNameApproved + $packageNameStatus.Details = $packageNameApprovalDetails } \ No newline at end of file diff --git a/eng/common/scripts/Prepare-Release.ps1 b/eng/common/scripts/Prepare-Release.ps1 index 269fd113fd69..e82c5982ac96 100644 --- a/eng/common/scripts/Prepare-Release.ps1 +++ b/eng/common/scripts/Prepare-Release.ps1 @@ -116,7 +116,7 @@ $month = $ParsedReleaseDate.ToString("MMMM") Write-Host "Assuming release is in $month with release date $releaseDateString" -ForegroundColor Green if (Test-Path "Function:GetExistingPackageVersions") { - $releasedVersions = GetExistingPackageVersions -PackageName $packageProperties.Name -GroupId $packageProperties.Group + $releasedVersions = @(GetExistingPackageVersions -PackageName $packageProperties.Name -GroupId $packageProperties.Group) if ($null -ne $releasedVersions -and $releasedVersions.Count -gt 0) { $latestReleasedVersion = $releasedVersions[$releasedVersions.Count - 1] diff --git a/eng/common/scripts/Test-SampleMetadata.ps1 b/eng/common/scripts/Test-SampleMetadata.ps1 index 4a0000220fde..9e50fa1dce03 100644 --- a/eng/common/scripts/Test-SampleMetadata.ps1 +++ b/eng/common/scripts/Test-SampleMetadata.ps1 @@ -330,6 +330,7 @@ begin { "blazor-webassembly", "common-data-service", "customer-voice", + "dotnet-api", "dotnet-core", "dotnet-standard", "document-intelligence", diff --git a/eng/common/scripts/check-for-git-changes.ps1 b/eng/common/scripts/check-for-git-changes.ps1 new file mode 100644 index 000000000000..2c1186ab0b3f --- /dev/null +++ b/eng/common/scripts/check-for-git-changes.ps1 @@ -0,0 +1,14 @@ +echo "git add -A" +git add -A + +echo "git diff --name-status --cached --exit-code" +git diff --name-status --cached --exit-code + +if ($LastExitCode -ne 0) { + echo "##vso[task.setvariable variable=HasChanges]$true" + echo "Changes detected so setting HasChanges=true" +} +else { + echo "##vso[task.setvariable variable=HasChanges]$false" + echo "No changes so skipping code push" +} diff --git a/eng/common/scripts/job-matrix/job-matrix-functions.ps1 b/eng/common/scripts/job-matrix/job-matrix-functions.ps1 index 198d68f00f7f..f20dbe5281b0 100644 --- a/eng/common/scripts/job-matrix/job-matrix-functions.ps1 +++ b/eng/common/scripts/job-matrix/job-matrix-functions.ps1 @@ -96,7 +96,8 @@ function GenerateMatrix( [String]$displayNameFilter = ".*", [Array]$filters = @(), [Array]$replace = @(), - [Array]$nonSparseParameters = @() + [Array]$nonSparseParameters = @(), + [Switch]$skipEnvironmentVariables ) { $matrixParameters, $importedMatrix, $combinedDisplayNameLookup = ` ProcessImport $config.matrixParameters $selectFromMatrixType $nonSparseParameters $config.displayNamesLookup @@ -124,7 +125,9 @@ function GenerateMatrix( $matrix = FilterMatrix $matrix $filters $matrix = ProcessReplace $matrix $replace $combinedDisplayNameLookup - $matrix = ProcessEnvironmentVariableReferences $matrix $combinedDisplayNameLookup + if (!$skipEnvironmentVariables) { + $matrix = ProcessEnvironmentVariableReferences $matrix $combinedDisplayNameLookup + } $matrix = FilterMatrixDisplayName $matrix $displayNameFilter return $matrix } @@ -427,10 +430,14 @@ function ProcessImport([MatrixParameter[]]$matrix, [String]$selection, [Array]$n exit 1 } $importedMatrixConfig = GetMatrixConfigFromFile (Get-Content -Raw $importPath) + # Add skipEnvironmentVariables so we don't process environment variables on import + # because we want top level filters to work against the the env key, not the value. + # The environment variables will get resolved after the import. $importedMatrix = GenerateMatrix ` -config $importedMatrixConfig ` -selectFromMatrixType $selection ` - -nonSparseParameters $nonSparseParameters + -nonSparseParameters $nonSparseParameters ` + -skipEnvironmentVariables $combinedDisplayNameLookup = $importedMatrixConfig.displayNamesLookup foreach ($lookup in $displayNamesLookup.GetEnumerator()) { diff --git a/eng/common/testproxy/onboarding/common-asset-functions.ps1 b/eng/common/testproxy/onboarding/common-asset-functions.ps1 index 3d7bcf605584..2f7c1b37c3c7 100644 --- a/eng/common/testproxy/onboarding/common-asset-functions.ps1 +++ b/eng/common/testproxy/onboarding/common-asset-functions.ps1 @@ -207,41 +207,6 @@ Function Invoke-ProxyCommand { ) $updatedDirectory = $TargetDirectory.Replace("`\", "/") - # CommandString just a string indicating the proxy arguments. In the default case of running against the proxy tool, can just be used directly. - # However, in the case of docker, we need to append a bunch more arguments to the string. - if ($TestProxyExe -eq "docker" -or $TestProxyExe -eq "podman"){ - $token = $env:GIT_TOKEN - $committer = $env:GIT_COMMIT_OWNER - $email = $env:GIT_COMMIT_EMAIL - - if (-not $committer) { - $committer = & git config --global user.name - } - - if (-not $email) { - $email = & git config --global user.email - } - - if(-not $token -or -not $committer -or -not $email){ - Write-Error ("When running this transition script in `"docker`" or `"podman`" mode, " ` - + "the environment variables GIT_TOKEN, GIT_COMMIT_OWNER, and GIT_COMMIT_EMAIL must be set to reflect the appropriate user. ") - exit 1 - } - - $targetImage = if ($env:TRANSITION_SCRIPT_DOCKER_TAG) { $env:TRANSITION_SCRIPT_DOCKER_TAG } else { "azsdkengsys.azurecr.io/engsys/test-proxy:latest" } - - $CommandString = @( - "run --rm --name transition.test.proxy", - "-v `"${updatedDirectory}:/srv/testproxy`"", - "-e `"GIT_TOKEN=${token}`"", - "-e `"GIT_COMMIT_OWNER=${committer}`"", - "-e `"GIT_COMMIT_EMAIL=${email}`"", - $targetImage, - "test-proxy", - $CommandString - ) -join " " - } - Write-Host "$TestProxyExe $CommandString" [array] $output = & "$TestProxyExe" $CommandString.Split(" ") --storage-location="$updatedDirectory" # echo the command output diff --git a/eng/common/testproxy/onboarding/generate-assets-json.ps1 b/eng/common/testproxy/onboarding/generate-assets-json.ps1 index bd825eebbe14..3576fd3c6bd6 100644 --- a/eng/common/testproxy/onboarding/generate-assets-json.ps1 +++ b/eng/common/testproxy/onboarding/generate-assets-json.ps1 @@ -22,9 +22,9 @@ Generated assets.json file contents If flag InitialPush is set, recordings will be automatically pushed to the assets repo and the Tag property updated. .PARAMETER TestProxyExe -The executable used during the "InitialPush" action. Defaults to the dotnet tool test-proxy, but also supports "docker" or "podman". +The executable used during the "InitialPush" action. Defaults to the dotnet tool test-proxy, but also supports custom executables as well. -If the user provides their own value that doesn't match options "test-proxy", "docker", or "podman", the script will use this input as the test-proxy exe +If the user provides their own value that doesn't match options "test-proxy" the script will use this input as the test-proxy exe when invoking commands. EG "$TestProxyExe push -a sdk/keyvault/azure-keyvault-keys/assets.json." .PARAMETER InitialPush diff --git a/eng/common/testproxy/publish-proxy-logs.yml b/eng/common/testproxy/publish-proxy-logs.yml index 543186edd353..4f4d3d7f548f 100644 --- a/eng/common/testproxy/publish-proxy-logs.yml +++ b/eng/common/testproxy/publish-proxy-logs.yml @@ -3,16 +3,17 @@ parameters: steps: - pwsh: | - Copy-Item -Path "${{ parameters.rootFolder }}/test-proxy.log" -Destination "${{ parameters.rootFolder }}/proxy.log" + New-Item -ItemType Directory -Force "${{ parameters.rootFolder }}/proxy-logs" + Copy-Item -Path "${{ parameters.rootFolder }}/test-proxy.log" -Destination "${{ parameters.rootFolder }}/proxy-logs/proxy.log" displayName: Copy Log File condition: succeededOrFailed() - template: ../pipelines/templates/steps/publish-artifact.yml parameters: ArtifactName: "$(System.StageName)-$(System.JobName)-$(System.JobAttempt)-proxy-logs" - ArtifactPath: "${{ parameters.rootFolder }}/proxy.log" + ArtifactPath: "${{ parameters.rootFolder }}/proxy-logs" - pwsh: | - Remove-Item -Force ${{ parameters.rootFolder }}/proxy.log + Remove-Item -Force ${{ parameters.rootFolder }}/proxy-logs/proxy.log displayName: Cleanup Copied Log File condition: succeededOrFailed() diff --git a/eng/common/testproxy/test-proxy-tool-shutdown.yml b/eng/common/testproxy/test-proxy-tool-shutdown.yml new file mode 100644 index 000000000000..20e24e70a0aa --- /dev/null +++ b/eng/common/testproxy/test-proxy-tool-shutdown.yml @@ -0,0 +1,10 @@ +steps: + - pwsh: | + Stop-Process -Id $(PROXY_PID) + displayName: 'Shut down the testproxy - windows' + condition: and(succeeded(), eq(variables['Agent.OS'],'Windows_NT')) + + - bash: | + kill -9 $(PROXY_PID) + displayName: "Shut down the testproxy - linux/mac" + condition: and(succeeded(), ne(variables['Agent.OS'],'Windows_NT')) diff --git a/eng/common/testproxy/test-proxy-tool.yml b/eng/common/testproxy/test-proxy-tool.yml index 7aea55d472d2..d9a166841926 100644 --- a/eng/common/testproxy/test-proxy-tool.yml +++ b/eng/common/testproxy/test-proxy-tool.yml @@ -1,3 +1,4 @@ +# This template sets variable PROXY_PID to be used for shutdown later. parameters: rootFolder: '$(Build.SourcesDirectory)' runProxy: true @@ -42,15 +43,20 @@ steps: condition: and(succeeded(), ${{ parameters.condition }}) - pwsh: | - Start-Process $(Build.BinariesDirectory)/test-proxy/test-proxy.exe ` + $Process = Start-Process $(Build.BinariesDirectory)/test-proxy/test-proxy.exe ` -ArgumentList "start --storage-location ${{ parameters.rootFolder }} -U" ` -NoNewWindow -PassThru -RedirectStandardOutput ${{ parameters.rootFolder }}/test-proxy.log + + Write-Host "##vso[task.setvariable variable=PROXY_PID]$($Process.Id)" displayName: 'Run the testproxy - windows' condition: and(succeeded(), eq(variables['Agent.OS'],'Windows_NT'), ${{ parameters.condition }}) # nohup does NOT continue beyond the current session if you use it within powershell - bash: | nohup $(Build.BinariesDirectory)/test-proxy/test-proxy &>$(Build.SourcesDirectory)/test-proxy.log & + + echo $! > $(Build.SourcesDirectory)/test-proxy.pid + echo "##vso[task.setvariable variable=PROXY_PID]$(cat $(Build.SourcesDirectory)/test-proxy.pid)" displayName: "Run the testproxy - linux/mac" condition: and(succeeded(), ne(variables['Agent.OS'],'Windows_NT'), ${{ parameters.condition }}) workingDirectory: "${{ parameters.rootFolder }}" diff --git a/eng/emitter-package-lock.json b/eng/emitter-package-lock.json index a36fd23ff27e..369105b21396 100644 --- a/eng/emitter-package-lock.json +++ b/eng/emitter-package-lock.json @@ -6,20 +6,20 @@ "": { "name": "typescript-emitter-package", "dependencies": { - "@azure-tools/typespec-autorest": "0.39.2", - "@azure-tools/typespec-azure-core": "0.39.1", - "@azure-tools/typespec-client-generator-core": "0.39.1", - "@azure-tools/typespec-ts": "0.23.0", - "@typespec/compiler": "0.53.1", - "@typespec/http": "0.53.0", - "@typespec/rest": "0.53.0", - "@typespec/versioning": "0.53.0" + "@azure-tools/typespec-autorest": "0.40.0", + "@azure-tools/typespec-azure-core": "0.40.0", + "@azure-tools/typespec-client-generator-core": "0.40.0", + "@azure-tools/typespec-ts": "0.25.0", + "@typespec/compiler": "0.54.0", + "@typespec/http": "0.54.0", + "@typespec/rest": "0.54.0", + "@typespec/versioning": "0.54.0" } }, "node_modules/@azure-tools/rlc-common": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@azure-tools/rlc-common/-/rlc-common-0.23.0.tgz", - "integrity": "sha512-T9jfHW3ziX5fjYiiFEOoUneOm6rxNGZYMTdoRtGc/oO7LNtWZ+LvRaSL30mylfpI/vKbOOnf23+yBVpil39uqw==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@azure-tools/rlc-common/-/rlc-common-0.24.0.tgz", + "integrity": "sha512-jij+6Ahy/NgqivEzPh6fL9tgmpK3WdDfK2AdRkS5vq2KXRs24ZlEGfxwc2QYcLvOb1zThRp2f4ulsoIpX2IwCg==", "dependencies": { "handlebars": "^4.7.7", "lodash": "^4.17.21", @@ -27,71 +27,71 @@ } }, "node_modules/@azure-tools/typespec-autorest": { - "version": "0.39.2", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.39.2.tgz", - "integrity": "sha512-sdYbYKv6uIktMqX573buyMoLiJMTCwk17DN/CeX0NPtmSx1SXLPh9stQFg2H/IMgVS8VmTlVeCYoSKR7krjsGg==", + "version": "0.40.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.40.0.tgz", + "integrity": "sha512-aMgJk0pudvg11zs/2dlUWPEsdK920NvTqGkbYhy+4UeJ1hEzMM3btOyujE/irhDlcZeEgDlaXQc+xiK/Vik71A==", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.39.1", - "@azure-tools/typespec-client-generator-core": "~0.39.0", - "@typespec/compiler": "~0.53.1", - "@typespec/http": "~0.53.0", - "@typespec/openapi": "~0.53.0", - "@typespec/rest": "~0.53.0", - "@typespec/versioning": "~0.53.0" + "@azure-tools/typespec-azure-core": "~0.40.0", + "@azure-tools/typespec-client-generator-core": "~0.40.0", + "@typespec/compiler": "~0.54.0", + "@typespec/http": "~0.54.0", + "@typespec/openapi": "~0.54.0", + "@typespec/rest": "~0.54.0", + "@typespec/versioning": "~0.54.0" } }, "node_modules/@azure-tools/typespec-azure-core": { - "version": "0.39.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.39.1.tgz", - "integrity": "sha512-b1cN1HXTcEiKIRpk2EatFK/C4NReDaW2h4N3V4C5dxGeeLAnTa1jsQ6lwobH6Zo39CdrjazNXiSbcEq1UZ7kPw==", + "version": "0.40.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.40.0.tgz", + "integrity": "sha512-l5U47zXKYQKFbipRQLpjG4EwvPJg0SogdFEe5a3rRr7mUy8sWPkciHpngLZVOd2cKZQD5m7nqwfWL798I9TJnQ==", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.53.1", - "@typespec/http": "~0.53.0", - "@typespec/rest": "~0.53.0" + "@typespec/compiler": "~0.54.0", + "@typespec/http": "~0.54.0", + "@typespec/rest": "~0.54.0" } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.39.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.39.1.tgz", - "integrity": "sha512-EV3N6IN1i/hXGqYKNfXx6+2QAyZnG4IpC9RUk6fqwSQDWX7HtMcfdXqlOaK3Rz2H6BUAc9OnH+Trq/uJCl/RgA==", + "version": "0.40.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.40.0.tgz", + "integrity": "sha512-Nm/OfDtSWBr1lylISbXR37B9QKWlZHK1j4T8L439Y1v3VcvJsC/0F5PLemY0odHpOYZNwu2uevJjAeM5W56wlw==", "dependencies": { - "change-case": "~5.3.0", + "change-case": "~5.4.2", "pluralize": "^8.0.0" }, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.53.1", - "@typespec/http": "~0.53.0", - "@typespec/rest": "~0.53.0", - "@typespec/versioning": "~0.53.0" + "@typespec/compiler": "~0.54.0", + "@typespec/http": "~0.54.0", + "@typespec/rest": "~0.54.0", + "@typespec/versioning": "~0.54.0" } }, "node_modules/@azure-tools/typespec-ts": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-ts/-/typespec-ts-0.23.0.tgz", - "integrity": "sha512-g8DP0k3wML0PxHKbk+Xcu4AfVsf/SbsGlBPu/HJKepUASS93sFcey1jbdIrKdG5XJTX8MAsmLjEAp9QNTA93DQ==", + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-ts/-/typespec-ts-0.25.0.tgz", + "integrity": "sha512-4ZQbg375mLWmKqqa3kYbnJmzfDYNn70rLXbW6+r9+xyF46uAm/mWc7Vp4aN68plFXSoUtLJfNTb0JKLGYDAXvA==", "dependencies": { - "@azure-tools/rlc-common": "^0.23.0", + "@azure-tools/rlc-common": "^0.24.0", "fs-extra": "^11.1.0", "prettier": "^3.1.0", "ts-morph": "^15.1.0", "tslib": "^2.3.1" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": ">=0.39.0 <1.0.0", - "@azure-tools/typespec-client-generator-core": ">=0.39.0 <1.0.0", - "@typespec/compiler": ">=0.53.0 <1.0.0", - "@typespec/http": ">=0.53.0 <1.0.0", - "@typespec/rest": ">=0.53.0 <1.0.0", - "@typespec/versioning": ">=0.53.0 <1.0.0" + "@azure-tools/typespec-azure-core": ">=0.40.0 <1.0.0", + "@azure-tools/typespec-client-generator-core": "0.40.0", + "@typespec/compiler": ">=0.54.0 <1.0.0", + "@typespec/http": ">=0.54.0 <1.0.0", + "@typespec/rest": ">=0.54.0 <1.0.0", + "@typespec/versioning": ">=0.54.0 <1.0.0" } }, "node_modules/@babel/code-frame": { @@ -182,21 +182,21 @@ } }, "node_modules/@typespec/compiler": { - "version": "0.53.1", - "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.53.1.tgz", - "integrity": "sha512-qneMDvZsLaL8+3PXzwXMAqgE4YtkUPPBg4oXrbreYa5NTccuvgVaO4cfya/SzG4WePUnmDTbbrP5aWd+VzYwYA==", + "version": "0.54.0", + "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.54.0.tgz", + "integrity": "sha512-lxMqlvUq5m1KZUjg+IoM/gEwY+yeSjjnpUsz6wmzjK4cO9cIY4wPJdrZwe8jUc2UFOoqKXN3AK8N1UWxA+w9Dg==", "dependencies": { "@babel/code-frame": "~7.23.5", "ajv": "~8.12.0", - "change-case": "~5.3.0", + "change-case": "~5.4.2", "globby": "~14.0.0", "mustache": "~4.2.0", "picocolors": "~1.0.0", - "prettier": "~3.1.1", + "prettier": "~3.2.5", "prompts": "~2.4.2", - "semver": "^7.5.4", - "vscode-languageserver": "~9.0.0", - "vscode-languageserver-textdocument": "~1.0.8", + "semver": "^7.6.0", + "vscode-languageserver": "~9.0.1", + "vscode-languageserver-textdocument": "~1.0.11", "yaml": "~2.3.4", "yargs": "~17.7.2" }, @@ -208,65 +208,51 @@ "node": ">=18.0.0" } }, - "node_modules/@typespec/compiler/node_modules/prettier": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.1.tgz", - "integrity": "sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==", - "bin": { - "prettier": "bin/prettier.cjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, "node_modules/@typespec/http": { - "version": "0.53.0", - "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.53.0.tgz", - "integrity": "sha512-Hdwbxr6KgzmJdULbbcwWaSSrWlduuMuEVUVdlytxyo9K+aoUCcPl0thR5Ez2VRh02/IJl3xG4n5wXgOwWb3amA==", + "version": "0.54.0", + "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.54.0.tgz", + "integrity": "sha512-/hZd9pkjJh3ogOekyKzZnpVV2kXzxtWDiTt3Gekc6iHTGk/CE1JpRFts8xwXoI5d3FqYotfb4w5ztVw62WjOcA==", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.53.0" + "@typespec/compiler": "~0.54.0" } }, "node_modules/@typespec/openapi": { - "version": "0.53.0", - "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.53.0.tgz", - "integrity": "sha512-FRHb6Wi4Yf1HGm3EnhhXZ0Bw+EIPam6ptxRy7NDRxyMnzHsOphGcv8mDIZk6MPSy8xPasbFNwaRC1TXpxVhQBw==", + "version": "0.54.0", + "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.54.0.tgz", + "integrity": "sha512-QJkwq3whcqKb29ScMD5IQzqvDmPQyLAubRl82Zj6kVMCqabRwegOX9aN+K0083nci65zt9rflZbv9bKY5GRy/A==", "peer": true, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.53.0", - "@typespec/http": "~0.53.0" + "@typespec/compiler": "~0.54.0", + "@typespec/http": "~0.54.0" } }, "node_modules/@typespec/rest": { - "version": "0.53.0", - "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.53.0.tgz", - "integrity": "sha512-aA75Ol2pRvUjtRqQvFHmFG52pkeif3m+tboLAT00AekTxOPZ3rqQmlE12ne4QF8KjgHA6denqH4f/XyDoRJOJQ==", + "version": "0.54.0", + "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.54.0.tgz", + "integrity": "sha512-F1hq/Per9epPJQ8Ey84mAtrgrZeLu6fDMIxNao1XlTfDEFZuYgFuCSyg0pyIi0Xg7KUBMvrvSv83WoF3mN2szw==", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.53.0", - "@typespec/http": "~0.53.0" + "@typespec/compiler": "~0.54.0", + "@typespec/http": "~0.54.0" } }, "node_modules/@typespec/versioning": { - "version": "0.53.0", - "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.53.0.tgz", - "integrity": "sha512-nrrLXCWPDrrClAfpCMzQ3YPTbKQmjPC3LSeMjq+wPiMq+1PW95ulOGD4QiCBop+4wKhMCJHnqqSzVauT1LjdvQ==", + "version": "0.54.0", + "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.54.0.tgz", + "integrity": "sha512-IlGpveOJ0WBTbn3w8nfzgSNhJWNd0+H+bo1Ljrjpeb9SFQmS8bX2fDf0vqsHVl50XgvKIZxgOpEXN5TmuzNnRw==", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.53.0" + "@typespec/compiler": "~0.54.0" } }, "node_modules/ajv": { @@ -341,9 +327,9 @@ } }, "node_modules/change-case": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/change-case/-/change-case-5.3.0.tgz", - "integrity": "sha512-Eykca0fGS/xYlx2fG5NqnGSnsWauhSGiSXYhB1kO6E909GUfo8S54u4UZNS7lMJmgZumZ2SUpWaoLgAcfQRICg==" + "version": "5.4.3", + "resolved": "https://registry.npmjs.org/change-case/-/change-case-5.4.3.tgz", + "integrity": "sha512-4cdyvorTy/lViZlVzw2O8/hHCLUuHqp4KpSSP3DlauhFCf3LdnfF+p5s0EAhjKsU7bqrMzu7iQArYfoPiHO2nw==" }, "node_modules/cliui": { "version": "8.0.1", @@ -382,9 +368,9 @@ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" }, "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", "engines": { "node": ">=6" } @@ -437,9 +423,9 @@ } }, "node_modules/fs-extra": { - "version": "11.1.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", - "integrity": "sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==", + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", + "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", @@ -812,9 +798,9 @@ } }, "node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dependencies": { "lru-cache": "^6.0.0" }, diff --git a/eng/emitter-package.json b/eng/emitter-package.json index b4bc5c3294ba..4a6180ca4107 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -2,13 +2,13 @@ "name": "typescript-emitter-package", "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-ts": "0.23.0", - "@azure-tools/typespec-azure-core": "0.39.1", - "@azure-tools/typespec-autorest": "0.39.2", - "@azure-tools/typespec-client-generator-core": "0.39.1", - "@typespec/compiler": "0.53.1", - "@typespec/http": "0.53.0", - "@typespec/rest": "0.53.0", - "@typespec/versioning": "0.53.0" + "@azure-tools/typespec-ts": "0.25.0", + "@azure-tools/typespec-azure-core": "0.40.0", + "@azure-tools/typespec-autorest": "0.40.0", + "@azure-tools/typespec-client-generator-core": "0.40.0", + "@typespec/compiler": "0.54.0", + "@typespec/http": "0.54.0", + "@typespec/rest": "0.54.0", + "@typespec/versioning": "0.54.0" } } diff --git a/eng/pipelines/templates/jobs/ci.tests.yml b/eng/pipelines/templates/jobs/ci.tests.yml index 8a35f5c7b7c3..c193f5902ea8 100644 --- a/eng/pipelines/templates/jobs/ci.tests.yml +++ b/eng/pipelines/templates/jobs/ci.tests.yml @@ -11,14 +11,17 @@ parameters: - name: Matrix type: string - name: DependsOn - type: string - default: '' + type: object + default: [] - name: UsePlatformContainer type: boolean default: false - name: CloudConfig type: object default: {} + - name: OSName + type: string + default: '' jobs: - job: @@ -39,10 +42,16 @@ jobs: pool: name: $(Pool) - vmImage: $(OSVmImage) - ${{ if eq(parameters.UsePlatformContainer, 'true') }}: - # Add a default so the job doesn't fail when the matrix is empty - container: $[ variables['Container'] ] + # 1es pipeline templates converts `image` to demands: ImageOverride under the hood + # which is incompatible with image selection in the default non-1es hosted pools + ${{ if eq(parameters.OSName, 'macOS') }}: + vmImage: $(OSVmImage) + ${{ else }}: + image: $(OSVmImage) + os: ${{ parameters.OSName }} + ${{ if eq(parameters.UsePlatformContainer, 'true') }}: + # Add a default so the job doesn't fail when the matrix is empty + container: $[ variables['Container'] ] variables: - template: ../variables/globals.yml @@ -55,3 +64,4 @@ jobs: Artifacts: ${{ parameters.Artifacts }} ServiceDirectory: ${{ parameters.ServiceDirectory }} TestProxy: ${{ parameters.TestProxy }} + OSName: ${{ parameters.OSName }} diff --git a/eng/pipelines/templates/jobs/ci.yml b/eng/pipelines/templates/jobs/ci.yml index 9ce550da79be..2d91faa403f0 100644 --- a/eng/pipelines/templates/jobs/ci.yml +++ b/eng/pipelines/templates/jobs/ci.yml @@ -28,14 +28,11 @@ parameters: jobs: - job: "Build" - variables: - Codeql.Enabled: true - Codeql.BuildIdentifier: ${{ parameters.ServiceDirectory }} - Codeql.SkipTaskAutoInjection: false pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: $(LINUXPOOL) + image: $(LINUXVMIMAGE) + os: linux steps: - script: | @@ -55,8 +52,9 @@ jobs: - job: "Analyze" pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: $(LINUXPOOL) + image: $(LINUXVMIMAGE) + os: linux steps: - template: ../steps/common.yml @@ -67,19 +65,12 @@ jobs: ServiceDirectory: ${{ parameters.ServiceDirectory }} TestPipeline: ${{ parameters.TestPipeline }} - - job: Compliance - pool: - name: azsdk-pool-mms-win-2022-general - vmImage: MMS2022 - steps: - - template: /eng/common/pipelines/templates/steps/credscan.yml - parameters: - ServiceDirectory: ${{ parameters.ServiceDirectory }} - - ${{ if ne(parameters.RunUnitTests, false) }}: - - template: /eng/common/pipelines/templates/jobs/archetype-sdk-tests-generate.yml + - template: /eng/common/pipelines/templates/jobs/generate-job-matrix.yml parameters: JobTemplatePath: /eng/pipelines/templates/jobs/ci.tests.yml + OsVmImage: $(LINUXVMIMAGE) + Pool: $(LINUXPOOL) MatrixConfigs: ${{ parameters.MatrixConfigs }} MatrixFilters: ${{ parameters.MatrixFilters }} MatrixReplace: ${{ parameters.MatrixReplace }} diff --git a/eng/pipelines/templates/jobs/live.tests.yml b/eng/pipelines/templates/jobs/live.tests.yml index e9e4408f6701..f5aeb7428bd8 100644 --- a/eng/pipelines/templates/jobs/live.tests.yml +++ b/eng/pipelines/templates/jobs/live.tests.yml @@ -40,7 +40,8 @@ parameters: - name: UsePlatformContainer type: boolean default: false - +- name: OSName + type: string jobs: - job: @@ -57,7 +58,13 @@ jobs: pool: name: $(Pool) - vmImage: $(OSVmImage) + # 1es pipeline templates converts `image` to demands: ImageOverride under the hood + # which is incompatible with image selection in the default non-1es hosted pools + ${{ if eq(parameters.OSName, 'macOS') }}: + vmImage: $(OSVmImage) + ${{ else }}: + image: $(OSVmImage) + os: ${{ parameters.OSName }} timeoutInMinutes: ${{ parameters.TimeoutInMinutes }} @@ -190,13 +197,12 @@ jobs: codeCoverageTool: Cobertura summaryFileLocation: "$(PackagePath)/coverage/cobertura-coverage.xml" - - task: PublishPipelineArtifact@1 - displayName: "Publish Browser Code Coverage Report Artifact" - continueOnError: true - condition: and(succeededOrFailed(),eq(variables['TestType'], 'browser'),eq(variables['PublishCodeCoverage'], true)) - inputs: - path: "$(PackagePath)/coverage-browser" - artifact: BrowserCodeCoverageReport + - template: /eng/common/pipelines/templates/steps/publish-1es-artifact.yml + parameters: + ArtifactPath: "$(PackagePath)/coverage-browser" + ArtifactName: BrowserCodeCoverageReport + CustomCondition: and(succeededOrFailed(),eq(variables['TestType'], 'browser'),eq(variables['PublishCodeCoverage'], true)) + SbomEnabled: false # Unlink node_modules folders to significantly improve performance of subsequent tasks # which need to walk the directory tree (and are hardcoded to follow symlinks). diff --git a/eng/pipelines/templates/stages/archetype-js-release.yml b/eng/pipelines/templates/stages/archetype-js-release.yml index d14451c8cdbc..bf3792a6f48d 100644 --- a/eng/pipelines/templates/stages/archetype-js-release.yml +++ b/eng/pipelines/templates/stages/archetype-js-release.yml @@ -1,319 +1,294 @@ parameters: Artifacts: [] TestPipeline: false - ArtifactName: 'not-specified' + ArtifactName: not-specified DependsOn: Build - Registry: 'https://registry.npmjs.org/' - PrivateRegistry: 'https://pkgs.dev.azure.com/azure-sdk/internal/_packaging/azure-sdk-for-js-pr/npm/registry/' + Registry: https://registry.npmjs.org/ + PrivateRegistry: https://pkgs.dev.azure.com/azure-sdk/internal/_packaging/azure-sdk-for-js-pr/npm/registry/ TargetDocRepoOwner: '' TargetDocRepoName: '' ServiceDirectory: '' + stages: - ${{if and(in(variables['Build.Reason'], 'Manual', ''), eq(variables['System.TeamProject'], 'internal'))}}: - - ${{ each artifact in parameters.Artifacts }}: - - stage: - variables: - - template: /eng/pipelines/templates/variables/globals.yml - displayName: 'Release: ${{artifact.name}}' - dependsOn: ${{parameters.DependsOn}} - condition: and(succeeded(), ne(variables['SetDevVersion'], 'true'), ne(variables['Skip.Release'], 'true'), ne(variables['Build.Repository.Name'], 'Azure/azure-sdk-for-js-pr')) - jobs: - - deployment: TagRepository - displayName: "Create release tag" - condition: ne(variables['Skip.TagRepository'], 'true') - environment: github - - pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 - - strategy: - runOnce: - deploy: - steps: - - checkout: self - - template: /eng/common/pipelines/templates/steps/retain-run.yml - - template: /eng/common/pipelines/templates/steps/set-test-pipeline-version.yml - parameters: - PackageName: "@azure/template" - ServiceDirectory: "template" - TestPipeline: ${{ parameters.TestPipeline }} - - template: /eng/common/pipelines/templates/steps/verify-changelog.yml - parameters: - PackageName: ${{artifact.name}} - ServiceName: ${{parameters.ServiceDirectory}} - ForRelease: true - - template: /eng/common/pipelines/templates/steps/verify-restapi-spec-location.yml - parameters: - PackageName: ${{artifact.name}} - ServiceDirectory: ${{parameters.ServiceDirectory}} - ArtifactLocation: $(Pipeline.Workspace)/${{parameters.ArtifactName}} - - pwsh: | - Get-ChildItem -Recurse ${{parameters.ArtifactName}}/${{artifact.name}} - workingDirectory: $(Pipeline.Workspace) - displayName: Output Visible Artifacts - - template: /eng/common/pipelines/templates/steps/create-tags-and-git-release.yml - parameters: - ArtifactLocation: $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}} - PackageRepository: Npm - ReleaseSha: $(Build.SourceVersion) - RepoId: Azure/azure-sdk-for-js - WorkingDirectory: $(System.DefaultWorkingDirectory) - - - ${{if ne(artifact.skipPublishPackage, 'true')}}: - - deployment: PublishPackage - displayName: "Publish to npmjs" - condition: and(succeeded(), ne(variables['Skip.PublishPackage'], 'true')) - environment: npm - dependsOn: TagRepository - - pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 - - strategy: - runOnce: - deploy: - steps: - - checkout: self - - script: | - export DETECTED_PACKAGE_NAME=`ls $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}}/*.tgz` - echo "##vso[task.setvariable variable=Package.Archive]$DETECTED_PACKAGE_NAME" - displayName: Detecting package archive - - - pwsh: | - write-host "$(Package.Archive)" - $result = eng/scripts/get-npm-tags.ps1 -packageArtifact $(Package.Archive) -workingDirectory $(System.DefaultWorkingDirectory)/temp - write-host "Tag: $($result.Tag)" - write-host "Additional tag: $($result.AdditionalTag)" - echo "##vso[task.setvariable variable=Tag]$($result.Tag)" - echo "##vso[task.setvariable variable=AdditionalTag]$($result.AdditionalTag)" - condition: and(succeeded(), ne(variables['Skip.AutoAddTag'], 'true')) - displayName: 'Set Tag and Additional Tag' - - - script: | - npm install $(Package.Archive) - displayName: 'Validating package can be installed' - condition: succeeded() - - - task: PowerShell@2 - displayName: 'Publish to npmjs.org' - inputs: - targetType: filePath - filePath: "eng/tools/publish-to-npm.ps1" - arguments: '-pathToArtifacts $(Package.Archive) -accessLevel "public" -tag "$(Tag)" -additionalTag "$(AdditionalTag)" -registry ${{parameters.Registry}} -npmToken $(azure-sdk-npm-token)' - pwsh: true - condition: succeeded() - - - pwsh: | - write-host "$(Package.Archive)" - eng/scripts/cleanup-npm-next-tag.ps1 -packageArtifact $(Package.Archive) -workingDirectory $(System.DefaultWorkingDirectory)/temp -npmToken $(azure-sdk-npm-token) - displayName: 'Cleanup Npm Next Tag' - condition: and(succeeded(), ne(variables['Skip.RemoveOldTag'], 'true')) - - - - ${{if ne(artifact.skipPublishDocMs, 'true')}}: - - deployment: PublishDocs - displayName: Docs.MS Release - condition: and(succeeded(), ne(variables['Skip.PublishDocs'], 'true')) - environment: githubio - dependsOn: PublishPackage - - pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 - - strategy: - runOnce: - deploy: - steps: - - template: /eng/common/pipelines/templates/steps/sparse-checkout.yml - parameters: - Paths: - - sdk/**/*.md - - .github/CODEOWNERS - - download: current - - - template: /eng/pipelines/templates/steps/install-rex-validation-tool.yml - - - template: /eng/common/pipelines/templates/steps/update-docsms-metadata.yml - parameters: - PackageInfoLocations: - - $(Pipeline.Workspace)/${{parameters.ArtifactName}}/PackageInfo/${{artifact.name}}.json - RepoId: Azure/azure-sdk-for-js - WorkingDirectory: $(System.DefaultWorkingDirectory) - TargetDocRepoOwner: ${{parameters.TargetDocRepoOwner}} - TargetDocRepoName: ${{parameters.TargetDocRepoName}} - Language: 'javascript' - SparseCheckoutPaths: - - docs-ref-services/ - - metadata/ - - ci-configs/packages-latest.json - - ci-configs/packages-preview.json - - - ${{if ne(artifact.skipPublishDocGithubIo, 'true')}}: - - deployment: PublishDocsGitHubIO - displayName: Publish Docs to GitHubIO Blob Storage - condition: and(succeeded(), ne(variables['Skip.PublishDocs'], 'true')) - environment: githubio - dependsOn: PublishPackage - - pool: - name: azsdk-pool-mms-win-2022-general - vmImage: MMS2022 - - strategy: - runOnce: - deploy: - steps: - - checkout: self - - pwsh: | - Get-ChildItem -Recurse ${{parameters.ArtifactName}}/${{artifact.name}} - workingDirectory: $(Pipeline.Workspace) - displayName: Output Visible Artifacts - - template: /eng/common/pipelines/templates/steps/publish-blobs.yml - parameters: - FolderForUpload: '$(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}}' - BlobSASKey: '$(azure-sdk-docs-prod-sas)' - BlobName: '$(azure-sdk-docs-prod-blob-name)' - TargetLanguage: 'javascript' - ArtifactLocation: '$(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}}' - # we override the regular script path because we have cloned the build tools repo as a separate artifact. - ScriptPath: 'eng/common/scripts/copy-docs-to-blobstorage.ps1' - - - ${{if ne(artifact.skipUpdatePackageVersion, 'true')}}: - - deployment: UpdatePackageVersion - displayName: "Update Package Version" - condition: and(succeeded(), ne(variables['Skip.UpdatePackageVersion'], 'true')) - environment: github - dependsOn: PublishPackage - - pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 - - strategy: - runOnce: - deploy: - steps: - - checkout: self - - - template: /eng/pipelines/templates/steps/common.yml - - - bash: | - npm install - workingDirectory: ./eng/tools/versioning - displayName: Install versioning tool dependencies - - - bash: | - node ./eng/tools/versioning/increment.js --artifact-name ${{ artifact.name }} --repo-root . - displayName: Increment package version - - - bash: | - node common/scripts/install-run-rush.js install - displayName: "Install dependencies" - - # Disabled until packages can be updated to support ES2019 syntax. - # - bash: | - # npm install -g ./common/tools/dev-tool - # npm install ./eng/tools/eng-package-utils - # node ./eng/tools/eng-package-utils/update-samples.js ${{ artifact.name }} - # displayName: Update samples - - - template: /eng/common/pipelines/templates/steps/create-pull-request.yml - parameters: - RepoName: azure-sdk-for-js - PRBranchName: post-release-automation-${{ parameters.ServiceDirectory }}-$(Build.BuildId) - CommitMsg: "Post release automated changes for ${{ artifact.name }}" - PRTitle: "Post release automated changes for ${{ parameters.ServiceDirectory }} releases" - CloseAfterOpenForTesting: '${{ parameters.TestPipeline }}' - - + - ${{ each artifact in parameters.Artifacts }}: + - stage: + variables: + - template: /eng/pipelines/templates/variables/globals.yml + displayName: 'Release: ${{artifact.name}}' + dependsOn: ${{parameters.DependsOn}} + condition: and(succeeded(), ne(variables['SetDevVersion'], 'true'), ne(variables['Skip.Release'], 'true'), ne(variables['Build.Repository.Name'], 'Azure/azure-sdk-for-js-pr')) + jobs: + - deployment: TagRepository + displayName: Create release tag + condition: ne(variables['Skip.TagRepository'], 'true') + environment: github + pool: + name: azsdk-pool-mms-ubuntu-2004-general + image: azsdk-pool-mms-ubuntu-2004-1espt + os: linux + strategy: + runOnce: + deploy: + steps: + - checkout: self + - template: /eng/common/pipelines/templates/steps/retain-run.yml + - template: /eng/common/pipelines/templates/steps/set-test-pipeline-version.yml + parameters: + PackageName: '@azure/template' + ServiceDirectory: template + TestPipeline: ${{ parameters.TestPipeline }} + - template: /eng/common/pipelines/templates/steps/verify-changelog.yml + parameters: + PackageName: ${{artifact.name}} + ServiceName: ${{parameters.ServiceDirectory}} + ForRelease: true + - template: /eng/common/pipelines/templates/steps/verify-restapi-spec-location.yml + parameters: + PackageName: ${{artifact.name}} + ServiceDirectory: ${{parameters.ServiceDirectory}} + ArtifactLocation: $(Pipeline.Workspace)/${{parameters.ArtifactName}} + - pwsh: > + Get-ChildItem -Recurse ${{parameters.ArtifactName}}/${{artifact.name}} + workingDirectory: $(Pipeline.Workspace) + displayName: Output Visible Artifacts + - template: /eng/common/pipelines/templates/steps/create-tags-and-git-release.yml + parameters: + ArtifactLocation: $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}} + PackageRepository: Npm + ReleaseSha: $(Build.SourceVersion) + RepoId: Azure/azure-sdk-for-js + WorkingDirectory: $(System.DefaultWorkingDirectory) + - ${{if ne(artifact.skipPublishPackage, 'true')}}: + - deployment: PublishPackage + displayName: Publish to npmjs + condition: and(succeeded(), ne(variables['Skip.PublishPackage'], 'true')) + environment: npm + dependsOn: TagRepository + pool: + name: azsdk-pool-mms-ubuntu-2004-general + image: azsdk-pool-mms-ubuntu-2004-1espt + os: linux + strategy: + runOnce: + deploy: + steps: + - checkout: self + - script: | + export DETECTED_PACKAGE_NAME=`ls $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}}/*.tgz` + echo "##vso[task.setvariable variable=Package.Archive]$DETECTED_PACKAGE_NAME" + displayName: Detecting package archive + - pwsh: | + write-host "$(Package.Archive)" + $result = eng/scripts/get-npm-tags.ps1 -packageArtifact $(Package.Archive) -workingDirectory $(System.DefaultWorkingDirectory)/temp + write-host "Tag: $($result.Tag)" + write-host "Additional tag: $($result.AdditionalTag)" + echo "##vso[task.setvariable variable=Tag]$($result.Tag)" + echo "##vso[task.setvariable variable=AdditionalTag]$($result.AdditionalTag)" + condition: and(succeeded(), ne(variables['Skip.AutoAddTag'], 'true')) + displayName: Set Tag and Additional Tag + - script: > + npm install $(Package.Archive) + displayName: Validating package can be installed + condition: succeeded() + - task: PowerShell@2 + displayName: Publish to npmjs.org + inputs: + targetType: filePath + filePath: eng/tools/publish-to-npm.ps1 + arguments: -pathToArtifacts $(Package.Archive) -accessLevel "public" -tag "$(Tag)" -additionalTag "$(AdditionalTag)" -registry ${{parameters.Registry}} -npmToken $(azure-sdk-npm-token) + pwsh: true + condition: succeeded() + - pwsh: > + write-host "$(Package.Archive)" + + eng/scripts/cleanup-npm-next-tag.ps1 -packageArtifact $(Package.Archive) -workingDirectory $(System.DefaultWorkingDirectory)/temp -npmToken $(azure-sdk-npm-token) + displayName: Cleanup Npm Next Tag + condition: and(succeeded(), ne(variables['Skip.RemoveOldTag'], 'true')) + - ${{if ne(artifact.skipPublishDocMs, 'true')}}: + - deployment: PublishDocs + displayName: Docs.MS Release + condition: and(succeeded(), ne(variables['Skip.PublishDocs'], 'true')) + environment: githubio + dependsOn: PublishPackage + pool: + name: azsdk-pool-mms-ubuntu-2004-general + image: azsdk-pool-mms-ubuntu-2004-1espt + os: linux + strategy: + runOnce: + deploy: + steps: + - template: /eng/common/pipelines/templates/steps/sparse-checkout.yml + parameters: + Paths: + - sdk/**/*.md + - .github/CODEOWNERS + - download: current + - template: /eng/pipelines/templates/steps/install-rex-validation-tool.yml + - template: /eng/common/pipelines/templates/steps/update-docsms-metadata.yml + parameters: + PackageInfoLocations: + - $(Pipeline.Workspace)/${{parameters.ArtifactName}}/PackageInfo/${{artifact.name}}.json + RepoId: Azure/azure-sdk-for-js + WorkingDirectory: $(System.DefaultWorkingDirectory) + TargetDocRepoOwner: ${{parameters.TargetDocRepoOwner}} + TargetDocRepoName: ${{parameters.TargetDocRepoName}} + Language: javascript + SparseCheckoutPaths: + - docs-ref-services/ + - metadata/ + - ci-configs/packages-latest.json + - ci-configs/packages-preview.json + - ${{if ne(artifact.skipPublishDocGithubIo, 'true')}}: + - deployment: PublishDocsGitHubIO + displayName: Publish Docs to GitHubIO Blob Storage + condition: and(succeeded(), ne(variables['Skip.PublishDocs'], 'true')) + environment: githubio + dependsOn: PublishPackage + pool: + name: azsdk-pool-mms-win-2022-general + image: azsdk-pool-mms-win-2022-1espt + os: windows + strategy: + runOnce: + deploy: + steps: + - checkout: self + - pwsh: | + Get-ChildItem -Recurse ${{parameters.ArtifactName}}/${{artifact.name}} + workingDirectory: $(Pipeline.Workspace) + displayName: Output Visible Artifacts + - template: /eng/common/pipelines/templates/steps/publish-blobs.yml + parameters: + FolderForUpload: $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}} + BlobSASKey: $(azure-sdk-docs-prod-sas) + BlobName: $(azure-sdk-docs-prod-blob-name) + TargetLanguage: javascript + ArtifactLocation: $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}} + ScriptPath: eng/common/scripts/copy-docs-to-blobstorage.ps1 + - ${{if ne(artifact.skipUpdatePackageVersion, 'true')}}: + - deployment: UpdatePackageVersion + displayName: Update Package Version + condition: and(succeeded(), ne(variables['Skip.UpdatePackageVersion'], 'true')) + environment: github + dependsOn: PublishPackage + pool: + name: azsdk-pool-mms-ubuntu-2004-general + image: azsdk-pool-mms-ubuntu-2004-1espt + os: linux + strategy: + runOnce: + deploy: + steps: + - checkout: self + - template: /eng/pipelines/templates/steps/common.yml + - bash: | + npm install + workingDirectory: ./eng/tools/versioning + displayName: Install versioning tool dependencies + + - bash: | + node ./eng/tools/versioning/increment.js --artifact-name ${{ artifact.name }} --repo-root . + displayName: Increment package version + + - bash: | + node common/scripts/install-run-rush.js install + displayName: "Install dependencies" + + # Disabled until packages can be updated to support ES2019 syntax. + # - bash: | + # npm install -g ./common/tools/dev-tool + # npm install ./eng/tools/eng-package-utils + # node ./eng/tools/eng-package-utils/update-samples.js ${{ artifact.name }} + # displayName: Update samples + + - template: /eng/common/pipelines/templates/steps/create-pull-request.yml + parameters: + RepoName: azure-sdk-for-js + PRBranchName: post-release-automation-${{ parameters.ServiceDirectory }}-$(Build.BuildId) + CommitMsg: Post release automated changes for ${{ artifact.name }} + PRTitle: Post release automated changes for ${{ parameters.ServiceDirectory }} releases + CloseAfterOpenForTesting: ${{ parameters.TestPipeline }} - stage: Integration dependsOn: ${{parameters.DependsOn}} variables: - - template: /eng/pipelines/templates/variables/globals.yml + - template: /eng/pipelines/templates/variables/globals.yml jobs: - - job: PublishPackages - # Run Integration job only if SetDevVersion is set to true or ( SetDevVersion is empty and job is a scheduled CI run) - # If SetDevVersion is set to false then we should skip integration job even for scheduled runs. - condition: or(eq(variables['SetDevVersion'], 'true'), and(eq(variables['Build.Reason'],'Schedule'), eq(variables['System.TeamProject'], 'internal'))) - displayName: Publish package to daily feed - pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 - steps: - - checkout: self - - download: current - artifact: ${{parameters.ArtifactName}} - timeoutInMinutes: 5 - - ${{ each artifact in parameters.Artifacts }}: - - ${{if ne(artifact.skipPublishDevFeed, 'true')}}: - - pwsh: | - $detectedPackageName=Get-ChildItem $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}}/*.tgz - Write-Host "Detected package name: $($detectedPackageName)" - if ($detectedPackageName -notmatch "-alpha") - { - Write-Error "Found non alpha version artifact to publish as dev version. Failing publish step. VersionPolicy should be client or core in rush.json to get alpha version build." - exit 1 - } - echo "##vso[task.setvariable variable=Package.Archive]$detectedPackageName" - if ('$(Build.Repository.Name)' -eq 'Azure/azure-sdk-for-js') { - $npmToken="$(azure-sdk-npm-token)" - $registry="${{parameters.Registry}}" - } - else { - $npmToken="$(azure-sdk-devops-npm-token)" - $registry="${{parameters.PrivateRegistry}}" - } - echo "##vso[task.setvariable variable=NpmToken]$npmToken" - echo "##vso[task.setvariable variable=Registry]$registry" - displayName: Detecting package archive_${{artifact.name}} - - - task: PowerShell@2 - displayName: "Publish_${{artifact.name}} to dev feed" - inputs: - targetType: filePath - filePath: "eng/tools/publish-to-npm.ps1" - arguments: '-pathToArtifacts $(Package.Archive) -accessLevel "public" -tag "dev" -registry "$(Registry)" -npmToken "$(NpmToken)"' - - - job: PublishDocsToNightlyBranch - condition: or(eq(variables['SetDevVersion'], 'true'), and(eq(variables['Build.Reason'],'Schedule'), eq(variables['System.TeamProject'], 'internal'), ne(variables['Skip.PublishDocs'], 'true'))) - dependsOn: PublishPackages - pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 - - steps: - - template: /eng/common/pipelines/templates/steps/sparse-checkout.yml - parameters: - Paths: - - sdk/**/*.md - - .github/CODEOWNERS - - download: current - - pwsh: | - Get-ChildItem -Recurse $(Pipeline.Workspace)/${{parameters.ArtifactName}}/ - displayName: Show visible artifacts - - - template: /eng/pipelines/templates/steps/install-rex-validation-tool.yml - - - template: /eng/common/pipelines/templates/steps/update-docsms-metadata.yml - parameters: - PackageInfoLocations: - - ${{ each artifact in parameters.Artifacts }}: - - ${{if ne(artifact.skipPublishDocMs, 'true')}}: - - $(Pipeline.Workspace)/${{parameters.ArtifactName}}/PackageInfo/${{artifact.name}}.json - RepoId: Azure/azure-sdk-for-js - WorkingDirectory: $(System.DefaultWorkingDirectory) - TargetDocRepoOwner: ${{parameters.TargetDocRepoOwner}} - TargetDocRepoName: ${{parameters.TargetDocRepoName}} - Language: 'javascript' - DailyDocsBuild: true - SparseCheckoutPaths: - - docs-ref-services/ - - metadata/ - - ci-configs/packages-latest.json - - ci-configs/packages-preview.json - - - template: /eng/common/pipelines/templates/steps/docsms-ensure-validation.yml + - job: PublishPackages + condition: or(eq(variables['SetDevVersion'], 'true'), and(eq(variables['Build.Reason'],'Schedule'), eq(variables['System.TeamProject'], 'internal'))) + displayName: Publish package to daily feed + pool: + name: azsdk-pool-mms-ubuntu-2004-general + image: azsdk-pool-mms-ubuntu-2004-1espt + os: linux + steps: + - checkout: self + - download: current + artifact: ${{parameters.ArtifactName}} + timeoutInMinutes: 5 + - ${{ each artifact in parameters.Artifacts }}: + - ${{if ne(artifact.skipPublishDevFeed, 'true')}}: + - pwsh: | + $detectedPackageName=Get-ChildItem $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}}/*.tgz + Write-Host "Detected package name: $($detectedPackageName)" + if ($detectedPackageName -notmatch "-alpha") + { + Write-Error "Found non alpha version artifact to publish as dev version. Failing publish step. VersionPolicy should be client or core in rush.json to get alpha version build." + exit 1 + } + echo "##vso[task.setvariable variable=Package.Archive]$detectedPackageName" + if ('$(Build.Repository.Name)' -eq 'Azure/azure-sdk-for-js') { + $npmToken="$(azure-sdk-npm-token)" + $registry="${{parameters.Registry}}" + } + else { + $npmToken="$(azure-sdk-devops-npm-token)" + $registry="${{parameters.PrivateRegistry}}" + } + echo "##vso[task.setvariable variable=NpmToken]$npmToken" + echo "##vso[task.setvariable variable=Registry]$registry" + displayName: Detecting package archive_${{artifact.name}} + - task: PowerShell@2 + displayName: Publish_${{artifact.name}} to dev feed + inputs: + targetType: filePath + filePath: eng/tools/publish-to-npm.ps1 + arguments: -pathToArtifacts $(Package.Archive) -accessLevel "public" -tag "dev" -registry "$(Registry)" -npmToken "$(NpmToken)" + - job: PublishDocsToNightlyBranch + condition: or(eq(variables['SetDevVersion'], 'true'), and(eq(variables['Build.Reason'],'Schedule'), eq(variables['System.TeamProject'], 'internal'), ne(variables['Skip.PublishDocs'], 'true'))) + dependsOn: PublishPackages + pool: + name: azsdk-pool-mms-ubuntu-2004-general + image: azsdk-pool-mms-ubuntu-2004-1espt + os: linux + steps: + - template: /eng/common/pipelines/templates/steps/sparse-checkout.yml + parameters: + Paths: + - sdk/**/*.md + - .github/CODEOWNERS + - download: current + - pwsh: | + Get-ChildItem -Recurse $(Pipeline.Workspace)/${{parameters.ArtifactName}}/ + displayName: Show visible artifacts + - template: /eng/pipelines/templates/steps/install-rex-validation-tool.yml + - template: /eng/common/pipelines/templates/steps/update-docsms-metadata.yml + parameters: + PackageInfoLocations: + - ${{ each artifact in parameters.Artifacts }}: + - ${{if ne(artifact.skipPublishDocMs, 'true')}}: + - $(Pipeline.Workspace)/${{parameters.ArtifactName}}/PackageInfo/${{artifact.name}}.json + RepoId: Azure/azure-sdk-for-js + WorkingDirectory: $(System.DefaultWorkingDirectory) + TargetDocRepoOwner: ${{parameters.TargetDocRepoOwner}} + TargetDocRepoName: ${{parameters.TargetDocRepoName}} + Language: javascript + DailyDocsBuild: true + SparseCheckoutPaths: + - docs-ref-services/ + - metadata/ + - ci-configs/packages-latest.json + - ci-configs/packages-preview.json + - template: /eng/common/pipelines/templates/steps/docsms-ensure-validation.yml diff --git a/eng/pipelines/templates/stages/archetype-sdk-client.yml b/eng/pipelines/templates/stages/archetype-sdk-client.yml index 823aafc85745..1811aba459a4 100644 --- a/eng/pipelines/templates/stages/archetype-sdk-client.yml +++ b/eng/pipelines/templates/stages/archetype-sdk-client.yml @@ -1,3 +1,10 @@ +resources: + repositories: + - repository: 1ESPipelineTemplates + type: git + name: 1ESPipelineTemplates/1ESPipelineTemplates + ref: refs/tags/release + parameters: - name: Artifacts type: object @@ -40,43 +47,65 @@ parameters: type: object default: [] -variables: - - template: ../variables/globals.yml - -stages: - - stage: Build - jobs: - - template: /eng/pipelines/templates/jobs/ci.yml - parameters: - ServiceDirectory: ${{ parameters.ServiceDirectory }} - TestProxy: ${{ parameters.TestProxy }} - Artifacts: ${{ parameters.Artifacts }} - ${{ if eq(parameters.ServiceDirectory, 'template') }}: - TestPipeline: true - RunUnitTests: ${{ parameters.RunUnitTests }} - MatrixConfigs: - - ${{ each config in parameters.MatrixConfigs }}: - - ${{ config }} - - ${{ each config in parameters.AdditionalMatrixConfigs }}: - - ${{ config }} - MatrixFilters: - - TestType=node|browser - - DependencyVersion=^$ - - ${{ each filter in parameters.MatrixFilters }}: - - ${{ filter}} - MatrixReplace: ${{ parameters.MatrixReplace }} - IncludeRelease: ${{ parameters.IncludeRelease }} +extends: + ${{ if eq(variables['System.TeamProject'], 'internal') }}: + template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates + ${{ else }}: + template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates + parameters: + settings: + skipBuildTagsForGitHubPullRequests: true + sdl: + sourceAnalysisPool: + name: azsdk-pool-mms-win-2022-general + image: azsdk-pool-mms-win-2022-1espt + os: windows + eslint: + enabled: false + justificationForDisabling: 'ESLint injected task has failures because it uses an old version of mkdirp. We should not fail for tools not controlled by the repo. See: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3499746' + psscriptanalyzer: + compiled: true + break: true + policy: M365 + credscan: + suppressionsFile: $(Build.SourcesDirectory)/eng/CredScanSuppression.json + toolVersion: 2.3.12.23 + stages: + - stage: Build + jobs: + - template: /eng/pipelines/templates/jobs/ci.yml@self + parameters: + ServiceDirectory: ${{ parameters.ServiceDirectory }} + TestProxy: ${{ parameters.TestProxy }} + Artifacts: ${{ parameters.Artifacts }} + ${{ if eq(parameters.ServiceDirectory, 'template') }}: + TestPipeline: true + RunUnitTests: ${{ parameters.RunUnitTests }} + MatrixConfigs: + - ${{ each config in parameters.MatrixConfigs }}: + - ${{ config }} + - ${{ each config in parameters.AdditionalMatrixConfigs }}: + - ${{ config }} + MatrixFilters: + - TestType=node|browser + - DependencyVersion=^$ + - ${{ each filter in parameters.MatrixFilters }}: + - ${{ filter}} + MatrixReplace: ${{ parameters.MatrixReplace }} + IncludeRelease: ${{ parameters.IncludeRelease }} + variables: + - template: /eng/pipelines/templates/variables/globals.yml@self + - template: /eng/pipelines/templates/variables/image.yml@self - # The Prerelease and Release stages are conditioned on whether we are building a pull request and the branch. - - ${{if and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.TeamProject'], 'internal'), eq(parameters.IncludeRelease,true))}}: - - template: archetype-js-release.yml - parameters: - DependsOn: Build - ServiceDirectory: ${{ parameters.ServiceDirectory }} - TestProxy: ${{ parameters.TestProxy }} - Artifacts: ${{ parameters.Artifacts }} - ${{ if eq(parameters.ServiceDirectory, 'template') }}: - TestPipeline: true - ArtifactName: packages - TargetDocRepoOwner: ${{ parameters.TargetDocRepoOwner }} - TargetDocRepoName: ${{ parameters.TargetDocRepoName }} + - ${{if and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.TeamProject'], 'internal'), eq(parameters.IncludeRelease,true))}}: + - template: archetype-js-release.yml@self + parameters: + DependsOn: Build + ServiceDirectory: ${{ parameters.ServiceDirectory }} + TestProxy: ${{ parameters.TestProxy }} + Artifacts: ${{ parameters.Artifacts }} + ${{ if eq(parameters.ServiceDirectory, 'template') }}: + TestPipeline: true + ArtifactName: packages + TargetDocRepoOwner: ${{ parameters.TargetDocRepoOwner }} + TargetDocRepoName: ${{ parameters.TargetDocRepoName }} diff --git a/eng/pipelines/templates/stages/archetype-sdk-tests-isolated.yml b/eng/pipelines/templates/stages/archetype-sdk-tests-isolated.yml new file mode 100644 index 000000000000..e6eb543b37fa --- /dev/null +++ b/eng/pipelines/templates/stages/archetype-sdk-tests-isolated.yml @@ -0,0 +1,123 @@ +parameters: + - name: PackageName + type: string + default: "" + - name: ServiceDirectory + type: string + default: "" + - name: TestResourceDirectories + type: object + default: + - name: EnvVars + type: object + default: {} + - name: MaxParallel + type: number + default: 0 + - name: TimeoutInMinutes + type: number + default: 60 + - name: PublishCodeCoverage + type: boolean + default: false + - name: Location + type: string + default: "" + - name: Clouds + type: string + default: 'Public' + - name: SupportedClouds + type: string + default: 'Public' + - name: UnsupportedClouds + type: string + default: '' + - name: PreSteps + type: object + default: [] + - name: PostSteps + type: object + default: [] + - name: CloudConfig + type: object + default: + Public: + SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) + Preview: + SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources-preview) + Canary: + SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) + Location: 'centraluseuap' + MatrixFilters: + - OSVmImage=.*Ubuntu.* + - DependencyVersion=^$ + UsGov: + SubscriptionConfiguration: $(sub-config-gov-test-resources) + China: + SubscriptionConfiguration: $(sub-config-cn-test-resources) + - name: MatrixConfigs + type: object + default: + - Name: Js_live_test_base + Path: eng/pipelines/templates/stages/platform-matrix.json + Selection: sparse + GenerateVMJobs: true + - name: AdditionalMatrixConfigs + type: object + default: [] + - name: MatrixFilters + type: object + default: [] + - name: MatrixReplace + type: object + default: [] + +stages: + - ${{ each cloud in parameters.CloudConfig }}: + - ${{ if or(contains(parameters.Clouds, cloud.key), and(contains(variables['Build.DefinitionName'], 'tests-weekly'), contains(parameters.SupportedClouds, cloud.key))) }}: + - ${{ if not(contains(parameters.UnsupportedClouds, cloud.key)) }}: + - stage: ${{ cloud.key }} + dependsOn: [] + variables: + - template: /eng/pipelines/templates/variables/globals.yml + - template: /eng/pipelines/templates/variables/image.yml + jobs: + - template: /eng/common/pipelines/templates/jobs/generate-job-matrix.yml + parameters: + SparseCheckoutPaths: + # JS recording files are implicit excluded here since they are using '.js' file extension. + - "sdk/${{ parameters.ServiceDirectory }}/**/*.json" + JobTemplatePath: /eng/pipelines/templates/jobs/live.tests.yml + OsVmImage: $(LINUXVMIMAGE) + Pool: $(LINUXPOOL) + AdditionalParameters: + PackageName: ${{ parameters.PackageName }} + ServiceDirectory: ${{ parameters.ServiceDirectory }} + EnvVars: ${{ parameters.EnvVars }} + MaxParallel: ${{ parameters.MaxParallel }} + TimeoutInMinutes: ${{ parameters.TimeoutInMinutes }} + TestResourceDirectories: ${{ parameters.TestResourceDirectories }} + PublishCodeCoverage: ${{ parameters.PublishCodeCoverage }} + PreSteps: + - ${{ parameters.PreSteps }} + PostSteps: + - ${{ parameters.PostSteps }} + MatrixConfigs: + # Enumerate platforms and additional platforms based on supported clouds (sparse platform<-->cloud matrix). + - ${{ each config in parameters.MatrixConfigs }}: + - ${{ config }} + - ${{ each config in parameters.AdditionalMatrixConfigs }}: + - ${{ config }} + MatrixFilters: + - ${{ each cloudFilter in cloud.value.MatrixFilters }}: + - ${{ cloudFilter }} + - ${{ parameters.MatrixFilters }} + MatrixReplace: + - ${{ each cloudReplace in cloud.value.MatrixReplace }}: + - ${{ cloudReplace }} + - ${{ parameters.MatrixReplace }} + CloudConfig: + SubscriptionConfiguration: ${{ cloud.value.SubscriptionConfiguration }} + SubscriptionConfigurations: ${{ cloud.value.SubscriptionConfigurations }} + Location: ${{ coalesce(parameters.Location, cloud.value.Location) }} + Cloud: ${{ cloud.key }} diff --git a/eng/pipelines/templates/stages/archetype-sdk-tests.yml b/eng/pipelines/templates/stages/archetype-sdk-tests.yml index 9b6828ddb1d3..d2955f2aecd7 100644 --- a/eng/pipelines/templates/stages/archetype-sdk-tests.yml +++ b/eng/pipelines/templates/stages/archetype-sdk-tests.yml @@ -1,10 +1,16 @@ +resources: + repositories: + - repository: 1ESPipelineTemplates + type: git + name: 1ESPipelineTemplates/1ESPipelineTemplates + ref: refs/tags/release parameters: - name: PackageName type: string - default: "" + default: '' - name: ServiceDirectory type: string - default: "" + default: '' - name: TestResourceDirectories type: object default: @@ -22,13 +28,13 @@ parameters: default: false - name: Location type: string - default: "" + default: '' - name: Clouds type: string - default: 'Public' + default: Public - name: SupportedClouds type: string - default: 'Public' + default: Public - name: UnsupportedClouds type: string default: '' @@ -47,7 +53,7 @@ parameters: SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources-preview) Canary: SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) - Location: 'centraluseuap' + Location: centraluseuap MatrixFilters: - OSVmImage=.*Ubuntu.* - DependencyVersion=^$ @@ -72,47 +78,57 @@ parameters: type: object default: [] -stages: -- ${{ each cloud in parameters.CloudConfig }}: - - ${{ if or(contains(parameters.Clouds, cloud.key), and(contains(variables['Build.DefinitionName'], 'tests-weekly'), contains(parameters.SupportedClouds, cloud.key))) }}: - - ${{ if not(contains(parameters.UnsupportedClouds, cloud.key)) }}: - - stage: ${{ cloud.key }} - dependsOn: [] - jobs: - - template: /eng/common/pipelines/templates/jobs/archetype-sdk-tests-generate.yml - parameters: - SparseCheckoutPaths: - # JS recording files are implicit excluded here since they are using '.js' file extension. - - "sdk/${{ parameters.ServiceDirectory }}/**/*.json" - JobTemplatePath: /eng/pipelines/templates/jobs/live.tests.yml - AdditionalParameters: - PackageName: ${{ parameters.PackageName }} - ServiceDirectory: ${{ parameters.ServiceDirectory }} - EnvVars: ${{ parameters.EnvVars }} - MaxParallel: ${{ parameters.MaxParallel }} - TimeoutInMinutes: ${{ parameters.TimeoutInMinutes }} - TestResourceDirectories: ${{ parameters.TestResourceDirectories }} - PublishCodeCoverage: ${{ parameters.PublishCodeCoverage }} - PreSteps: - - ${{ parameters.PreSteps }} - PostSteps: - - ${{ parameters.PostSteps }} - MatrixConfigs: - # Enumerate platforms and additional platforms based on supported clouds (sparse platform<-->cloud matrix). - - ${{ each config in parameters.MatrixConfigs }}: - - ${{ config }} - - ${{ each config in parameters.AdditionalMatrixConfigs }}: - - ${{ config }} - MatrixFilters: - - ${{ each cloudFilter in cloud.value.MatrixFilters }}: - - ${{ cloudFilter }} - - ${{ parameters.MatrixFilters }} - MatrixReplace: - - ${{ each cloudReplace in cloud.value.MatrixReplace }}: - - ${{ cloudReplace }} - - ${{ parameters.MatrixReplace }} - CloudConfig: - SubscriptionConfiguration: ${{ cloud.value.SubscriptionConfiguration }} - SubscriptionConfigurations: ${{ cloud.value.SubscriptionConfigurations }} - Location: ${{ coalesce(parameters.Location, cloud.value.Location) }} - Cloud: ${{ cloud.key }} +extends: + ${{ if eq(variables['System.TeamProject'], 'internal') }}: + template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates + ${{ else }}: + template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates + parameters: + settings: + skipBuildTagsForGitHubPullRequests: true + sdl: + sourceAnalysisPool: + name: azsdk-pool-mms-win-2022-general + image: azsdk-pool-mms-win-2022-1espt + os: windows + eslint: + enabled: false + justificationForDisabling: 'ESLint injected task has failures because it uses an old version of mkdirp. We should not fail for tools not controlled by the repo. See: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3499746' + psscriptanalyzer: + compiled: true + break: true + policy: M365 + credscan: + suppressionsFile: $(Build.SourcesDirectory)/eng/CredScanSuppression.json + toolVersion: 2.3.12.23 + stages: + - template: archetype-sdk-tests-isolated.yml@self + parameters: + PackageName: ${{ parameters.PackageName }} + ServiceDirectory: ${{ parameters.ServiceDirectory }} + TestResourceDirectories: ${{ parameters.TestResourceDirectories }} + EnvVars: ${{ parameters.EnvVars }} + MaxParallel: ${{ parameters.MaxParallel }} + TimeoutInMinutes: ${{ parameters.TimeoutInMinutes }} + PublishCodeCoverage: ${{ parameters.PublishCodeCoverage }} + Location: ${{ parameters.Location }} + Clouds: ${{ parameters.Clouds }} + SupportedClouds: ${{ parameters.SupportedClouds }} + UnsupportedClouds: ${{ parameters.UnsupportedClouds }} + PreSteps: + - ${{ parameters.PreSteps }} + PostSteps: + - ${{ parameters.PostSteps }} + CloudConfig: ${{ parameters.CloudConfig }} + MatrixConfigs: + - ${{ each config in parameters.MatrixConfigs }}: + - ${{ config }} + AdditionalMatrixConfigs: + - ${{ each config in parameters.AdditionalMatrixConfigs }}: + - ${{ config }} + MatrixFilters: + - ${{ each config in parameters.MatrixFilters }}: + - ${{ config }} + MatrixReplace: + - ${{ each config in parameters.MatrixReplace }}: + - ${{ config }} diff --git a/eng/pipelines/templates/stages/cosmos-sdk-client.yml b/eng/pipelines/templates/stages/cosmos-sdk-client.yml index 35410e878afb..d53c28ed80f2 100644 --- a/eng/pipelines/templates/stages/cosmos-sdk-client.yml +++ b/eng/pipelines/templates/stages/cosmos-sdk-client.yml @@ -1,60 +1,90 @@ +resources: + repositories: + - repository: 1ESPipelineTemplates + type: git + name: 1ESPipelineTemplates/1ESPipelineTemplates + ref: refs/tags/release + parameters: -- name: Artifacts - type: object - default: [] -- name: ServiceDirectory - type: string - default: not-specified -- name: RunUnitTests - type: boolean - default: false -- name: TargetDocRepoOwner - type: string - default: MicrosoftDocs -- name: TargetDocRepoName - type: string - default: azure-docs-sdk-node + - name: Artifacts + type: object + default: [] + - name: ServiceDirectory + type: string + default: not-specified + - name: RunUnitTests + type: boolean + default: false + - name: TargetDocRepoOwner + type: string + default: MicrosoftDocs + - name: TargetDocRepoName + type: string + default: azure-docs-sdk-node -variables: - - template: /eng/pipelines/templates/variables/globals.yml +extends: + ${{ if eq(variables['System.TeamProject'], 'internal') }}: + template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates + ${{ else }}: + template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates + parameters: + settings: + skipBuildTagsForGitHubPullRequests: true + sdl: + sourceAnalysisPool: + name: azsdk-pool-mms-win-2022-general + image: azsdk-pool-mms-win-2022-1espt + os: windows + eslint: + enabled: false + justificationForDisabling: 'ESLint injected task has failures because it uses an old version of mkdirp. We should not fail for tools not controlled by the repo. See: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3499746' + psscriptanalyzer: + compiled: true + break: true + policy: M365 + credscan: + suppressionsFile: $(Build.SourcesDirectory)/eng/CredScanSuppression.json + toolVersion: 2.3.12.23 + stages: + - stage: Build + jobs: + - template: /eng/pipelines/templates/jobs/ci.yml@self + parameters: + Artifacts: ${{parameters.Artifacts}} + ServiceDirectory: ${{ parameters.ServiceDirectory }} + RunUnitTests: ${{ parameters.RunUnitTests }} + MatrixConfigs: + - Name: Javascript_ci_test_base + Path: eng/pipelines/templates/stages/platform-matrix.json + Selection: sparse + GenerateVMJobs: true + variables: + - template: /eng/pipelines/templates/variables/globals.yml@self + - template: /eng/pipelines/templates/variables/image.yml@self -stages: - - stage: Build - jobs: - - template: /eng/pipelines/templates/jobs/ci.yml + - template: /eng/pipelines/templates/stages/archetype-sdk-tests-isolated.yml@self parameters: - Artifacts: ${{parameters.Artifacts}} - ServiceDirectory: ${{ parameters.ServiceDirectory }} - RunUnitTests: ${{ parameters.RunUnitTests }} - MatrixConfigs: - - Name: Javascript_ci_test_base - Path: eng/pipelines/templates/stages/platform-matrix.json - Selection: sparse - GenerateVMJobs: true - - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml - parameters: - PackageName: "@azure/cosmos" - MatrixFilters: - - TestType=node - - DependencyVersion=^$ - - NodeTestVersion=18.x - - Pool=.*mms-win-2022.* - PreSteps: - - template: /eng/pipelines/templates/steps/cosmos-integration-public.yml - PostSteps: - - template: /eng/pipelines/templates/steps/cosmos-additional-steps.yml - EnvVars: - MOCHA_TIMEOUT: 100000 - NODE_TLS_REJECT_UNAUTHORIZED: 0 + PackageName: '@azure/cosmos' + MatrixFilters: + - TestType=node + - DependencyVersion=^$ + - NodeTestVersion=18.x + - Pool=.*mms-win-2022.* + PreSteps: + - template: /eng/pipelines/templates/steps/cosmos-integration-public.yml@self + PostSteps: + - template: /eng/pipelines/templates/steps/cosmos-additional-steps.yml@self + EnvVars: + MOCHA_TIMEOUT: 100000 + NODE_TLS_REJECT_UNAUTHORIZED: 0 - # The Prerelease and Release stages are conditioned on whether we are building a pull request and the branch. - - ${{if and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.TeamProject'], 'internal'))}}: - - template: archetype-js-release.yml - parameters: - DependsOn: Build - ServiceDirectory: ${{parameters.ServiceDirectory}} - Artifacts: ${{parameters.Artifacts}} - ArtifactName: packages - TargetDocRepoOwner: ${{ parameters.TargetDocRepoOwner }} - TargetDocRepoName: ${{ parameters.TargetDocRepoName }} + # The Prerelease and Release stages are conditioned on whether we are building a pull request and the branch. + - ${{if and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.TeamProject'], 'internal'))}}: + - template: archetype-js-release.yml@self + parameters: + DependsOn: Build + ServiceDirectory: ${{parameters.ServiceDirectory}} + Artifacts: ${{parameters.Artifacts}} + ArtifactName: packages + TargetDocRepoOwner: ${{ parameters.TargetDocRepoOwner }} + TargetDocRepoName: ${{ parameters.TargetDocRepoName }} diff --git a/eng/pipelines/templates/stages/platform-matrix.json b/eng/pipelines/templates/stages/platform-matrix.json index 0ffeac1321c7..85b96d2390fd 100644 --- a/eng/pipelines/templates/stages/platform-matrix.json +++ b/eng/pipelines/templates/stages/platform-matrix.json @@ -5,16 +5,16 @@ "matrix": { "Agent": { "windows-2022": { - "OSVmImage": "MMS2022", - "Pool": "azsdk-pool-mms-win-2022-general" + "OSVmImage": "env:WINDOWSVMIMAGE", + "Pool": "env:WINDOWSPOOL" }, "ubuntu-20.04": { - "OSVmImage": "MMSUbuntu20.04", - "Pool": "azsdk-pool-mms-ubuntu-2004-general" + "OSVmImage": "env:LINUXVMIMAGE", + "Pool": "env:LINUXPOOL" }, "macos-11": { - "OSVmImage": "macos-11", - "Pool": "Azure Pipelines" + "OSVmImage": "env:MACVMIMAGE", + "Pool": "env:MACPOOL" } }, "NodeTestVersion": [ @@ -29,8 +29,8 @@ { "Agent": { "windows-2022": { - "OSVmImage": "MMS2022", - "Pool": "azsdk-pool-mms-win-2022-general" + "OSVmImage": "env:WINDOWSVMIMAGE", + "Pool": "env:WINDOWSPOOL" } }, "Scenario": { @@ -53,13 +53,16 @@ { "Agent": { "ubuntu-20.04": { - "OSVmImage": "MMSUbuntu20.04", - "Pool": "azsdk-pool-mms-ubuntu-2004-general" + "OSVmImage": "env:LINUXVMIMAGE", + "Pool": "env:LINUXPOOL" } }, "TestType": "node", "NodeTestVersion": "18.x", - "DependencyVersion": ["max", "min"], + "DependencyVersion": [ + "max", + "min" + ], "TestResultsFiles": "**/test-results.xml" } ] diff --git a/eng/pipelines/templates/steps/analyze.yml b/eng/pipelines/templates/steps/analyze.yml index dd3d425d5b3d..f210e844445c 100644 --- a/eng/pipelines/templates/steps/analyze.yml +++ b/eng/pipelines/templates/steps/analyze.yml @@ -20,12 +20,12 @@ steps: ServiceDirectory: "template" TestPipeline: ${{ parameters.TestPipeline }} - - task: PublishPipelineArtifact@1 - condition: succeededOrFailed() - displayName: "Publish Report Artifacts" - inputs: - artifactName: package-diffs - path: $(Build.ArtifactStagingDirectory) + - template: /eng/common/pipelines/templates/steps/publish-1es-artifact.yml + parameters: + ArtifactPath: '$(Build.ArtifactStagingDirectory)' + ArtifactName: 'package-diffs' + SbomEnabled: false + - template: /eng/common/pipelines/templates/steps/verify-readme.yml parameters: @@ -104,9 +104,10 @@ steps: flattenFolders: true displayName: "Copy lint reports" - - template: /eng/common/pipelines/templates/steps/publish-artifact.yml + - template: /eng/common/pipelines/templates/steps/publish-1es-artifact.yml parameters: ArtifactPath: '$(Build.ArtifactStagingDirectory)' ArtifactName: 'reports' + SbomEnabled: false - template: /eng/common/pipelines/templates/steps/eng-common-workflow-enforcer.yml diff --git a/eng/pipelines/templates/steps/build.yml b/eng/pipelines/templates/steps/build.yml index a7555dfcd491..d8f28da3ae65 100644 --- a/eng/pipelines/templates/steps/build.yml +++ b/eng/pipelines/templates/steps/build.yml @@ -106,22 +106,11 @@ steps: workingDirectory: $(Pipeline.Workspace) displayName: Create APIView code file - - template: /eng/common/pipelines/templates/steps/publish-artifact.yml + - template: /eng/common/pipelines/templates/steps/publish-1es-artifact.yml parameters: ArtifactPath: '$(Build.ArtifactStagingDirectory)' ArtifactName: 'packages' - - ${{if eq(variables['System.TeamProject'], 'internal') }}: - - task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0 - displayName: 'Upload Package SBOM' - inputs: - BuildDropPath: $(Build.ArtifactStagingDirectory) - - - template: /eng/common/pipelines/templates/steps/publish-artifact.yml - parameters: - ArtifactPath: '$(Build.ArtifactStagingDirectory)/_manifest' - ArtifactName: 'manifest' - - template: /eng/pipelines/templates/steps/create-apireview.yml parameters: Artifacts: ${{ parameters.Artifacts }} diff --git a/eng/pipelines/templates/steps/test.yml b/eng/pipelines/templates/steps/test.yml index 9993cd5b9bf8..2aabf185499c 100644 --- a/eng/pipelines/templates/steps/test.yml +++ b/eng/pipelines/templates/steps/test.yml @@ -2,11 +2,12 @@ parameters: Artifacts: [] ServiceDirectory: not-specified TestProxy: true + OSName: '' steps: - template: /eng/common/pipelines/templates/steps/verify-agent-os.yml parameters: - AgentImage: $(OSVmImage) + AgentImage: ${{ parameters.OSName}} - script: | node common/scripts/install-run-rush.js install diff --git a/eng/pipelines/templates/variables/globals.yml b/eng/pipelines/templates/variables/globals.yml index 13a1ea4753ad..5f2759dace7b 100644 --- a/eng/pipelines/templates/variables/globals.yml +++ b/eng/pipelines/templates/variables/globals.yml @@ -5,7 +5,6 @@ variables: skipComponentGovernanceDetection: true coalesceResultFilter: $[ coalesce(variables['packageGlobFilter'], '**') ] ServiceVersion: "" - Package.EnableSBOMSigning: true # Disable CodeQL injections except for where we specifically enable it Codeql.SkipTaskAutoInjection: true # Disable warning until issue 21765 and 21766 are closed diff --git a/eng/pipelines/templates/variables/image.yml b/eng/pipelines/templates/variables/image.yml new file mode 100644 index 000000000000..322e3875f38e --- /dev/null +++ b/eng/pipelines/templates/variables/image.yml @@ -0,0 +1,26 @@ +# Default pool image selection. Set as variable so we can override at pipeline level + +variables: + - name: LINUXPOOL + value: azsdk-pool-mms-ubuntu-2004-general + - name: WINDOWSPOOL + value: azsdk-pool-mms-win-2022-general + - name: MACPOOL + value: Azure Pipelines + + - name: LINUXVMIMAGE + value: azsdk-pool-mms-ubuntu-2004-1espt + - name: LINUXNEXTVMIMAGE + value: azsdk-pool-mms-ubuntu-2204-1espt + - name: WINDOWSVMIMAGE + value: azsdk-pool-mms-win-2022-1espt + - name: MACVMIMAGE + value: macos-11 + + # Values required for pool.os field in 1es pipeline templates + - name: LINUXOS + value: linux + - name: WINDOWSOS + value: windows + - name: MACOS + value: macOS diff --git a/eng/tools/dependency-testing/templates/package.json b/eng/tools/dependency-testing/templates/package.json index 69f281c2def4..32a19a377451 100644 --- a/eng/tools/dependency-testing/templates/package.json +++ b/eng/tools/dependency-testing/templates/package.json @@ -9,7 +9,7 @@ "scripts": { "build": "tsc -p .", "integration-test:browser": "karma start --single-run", - "integration-test:node": "mocha -r esm-workaround.js -r esm --require source-map-support/register --reporter mocha-multi-reporter.js --reporter-option output=test-results.xml --timeout 350000 --full-trace \"dist-esm/**/{,!(browser)/**/}*.spec.js\" --exit", + "integration-test:node": "mocha --require tsx --require source-map-support/register --reporter mocha-multi-reporter.js --reporter-option output=test-results.xml --timeout 350000 --full-trace \"dist-esm/**/{,!(browser)/**/}*.spec.js\" --exit", "integration-test": "npm run integration-test:node && npm run integration-test:browser" }, "repository": { diff --git a/sdk/apimanagement/arm-apimanagement/CHANGELOG.md b/sdk/apimanagement/arm-apimanagement/CHANGELOG.md index 6a13c44ca3a6..2a5d550af162 100644 --- a/sdk/apimanagement/arm-apimanagement/CHANGELOG.md +++ b/sdk/apimanagement/arm-apimanagement/CHANGELOG.md @@ -1,5 +1,667 @@ # Release History + +## 10.0.0-beta.1 (2024-03-19) + +**Features** + + - Added operation group AllPolicies + - Added operation group ApiManagementGateway + - Added operation group PolicyRestriction + - Added operation group PolicyRestrictionValidations + - Added operation group ProductApiLink + - Added operation group ProductGroupLink + - Added operation group TagApiLink + - Added operation group TagOperationLink + - Added operation group TagProductLink + - Added operation group Workspace + - Added operation group WorkspaceApi + - Added operation group WorkspaceApiExport + - Added operation group WorkspaceApiOperation + - Added operation group WorkspaceApiOperationPolicy + - Added operation group WorkspaceApiPolicy + - Added operation group WorkspaceApiRelease + - Added operation group WorkspaceApiRevision + - Added operation group WorkspaceApiSchema + - Added operation group WorkspaceApiVersionSet + - Added operation group WorkspaceGlobalSchema + - Added operation group WorkspaceGroup + - Added operation group WorkspaceGroupUser + - Added operation group WorkspaceNamedValue + - Added operation group WorkspaceNotification + - Added operation group WorkspaceNotificationRecipientEmail + - Added operation group WorkspaceNotificationRecipientUser + - Added operation group WorkspacePolicy + - Added operation group WorkspacePolicyFragment + - Added operation group WorkspaceProduct + - Added operation group WorkspaceProductApiLink + - Added operation group WorkspaceProductGroupLink + - Added operation group WorkspaceProductPolicy + - Added operation group WorkspaceSubscription + - Added operation group WorkspaceTag + - Added operation group WorkspaceTagApiLink + - Added operation group WorkspaceTagOperationLink + - Added operation group WorkspaceTagProductLink + - Added operation Api.beginDelete + - Added operation Api.beginDeleteAndWait + - Added operation Gateway.invalidateDebugCredentials + - Added operation Gateway.listDebugCredentials + - Added operation Gateway.listTrace + - Added operation User.beginDelete + - Added operation User.beginDeleteAndWait + - Added Interface AllPoliciesCollection + - Added Interface AllPoliciesContract + - Added Interface AllPoliciesListByServiceNextOptionalParams + - Added Interface AllPoliciesListByServiceOptionalParams + - Added Interface ApiDeleteHeaders + - Added Interface ApiManagementClientPerformConnectivityCheckAsyncHeaders + - Added Interface ApiManagementGatewayBaseProperties + - Added Interface ApiManagementGatewayCreateOrUpdateOptionalParams + - Added Interface ApiManagementGatewayDeleteHeaders + - Added Interface ApiManagementGatewayDeleteOptionalParams + - Added Interface ApiManagementGatewayGetOptionalParams + - Added Interface ApiManagementGatewayListByResourceGroupNextOptionalParams + - Added Interface ApiManagementGatewayListByResourceGroupOptionalParams + - Added Interface ApiManagementGatewayListNextOptionalParams + - Added Interface ApiManagementGatewayListOptionalParams + - Added Interface ApiManagementGatewayListResult + - Added Interface ApiManagementGatewayProperties + - Added Interface ApiManagementGatewayResource + - Added Interface ApiManagementGatewaySkuProperties + - Added Interface ApiManagementGatewaySkuPropertiesForPatch + - Added Interface ApiManagementGatewayUpdateHeaders + - Added Interface ApiManagementGatewayUpdateOptionalParams + - Added Interface ApiManagementGatewayUpdateParameters + - Added Interface ApiManagementGatewayUpdateProperties + - Added Interface ApiManagementServiceDeleteHeaders + - Added Interface ApiManagementServiceUpdateHeaders + - Added Interface BackendBaseParametersPool + - Added Interface BackendCircuitBreaker + - Added Interface BackendConfiguration + - Added Interface BackendPool + - Added Interface BackendPoolItem + - Added Interface BackendSubnetConfiguration + - Added Interface CircuitBreakerFailureCondition + - Added Interface CircuitBreakerRule + - Added Interface ConfigurationApi + - Added Interface ErrorAdditionalInfo + - Added Interface ErrorDetail + - Added Interface ErrorResponseAutoGenerated + - Added Interface FailureStatusCodeRange + - Added Interface FrontendConfiguration + - Added Interface GatewayConfigurationApi + - Added Interface GatewayDebugCredentialsContract + - Added Interface GatewayInvalidateDebugCredentialsOptionalParams + - Added Interface GatewayListDebugCredentialsContract + - Added Interface GatewayListDebugCredentialsOptionalParams + - Added Interface GatewayListTraceContract + - Added Interface GatewayListTraceOptionalParams + - Added Interface GatewaySku + - Added Interface MigrateToStv2Contract + - Added Interface PolicyFragmentListByServiceNextOptionalParams + - Added Interface PolicyListByServiceNextOptionalParams + - Added Interface PolicyRestrictionCollection + - Added Interface PolicyRestrictionContract + - Added Interface PolicyRestrictionCreateOrUpdateHeaders + - Added Interface PolicyRestrictionCreateOrUpdateOptionalParams + - Added Interface PolicyRestrictionDeleteOptionalParams + - Added Interface PolicyRestrictionGetEntityTagHeaders + - Added Interface PolicyRestrictionGetEntityTagOptionalParams + - Added Interface PolicyRestrictionGetHeaders + - Added Interface PolicyRestrictionGetOptionalParams + - Added Interface PolicyRestrictionListByServiceNextOptionalParams + - Added Interface PolicyRestrictionListByServiceOptionalParams + - Added Interface PolicyRestrictionUpdateContract + - Added Interface PolicyRestrictionUpdateHeaders + - Added Interface PolicyRestrictionUpdateOptionalParams + - Added Interface PolicyRestrictionValidationsByServiceHeaders + - Added Interface PolicyRestrictionValidationsByServiceOptionalParams + - Added Interface PolicyWithComplianceCollection + - Added Interface PolicyWithComplianceContract + - Added Interface PortalConfigListByServiceNextOptionalParams + - Added Interface PrivateEndpointConnectionCreateOrUpdateHeaders + - Added Interface PrivateEndpointConnectionDeleteHeaders + - Added Interface ProductApiLinkCollection + - Added Interface ProductApiLinkContract + - Added Interface ProductApiLinkCreateOrUpdateOptionalParams + - Added Interface ProductApiLinkDeleteOptionalParams + - Added Interface ProductApiLinkGetHeaders + - Added Interface ProductApiLinkGetOptionalParams + - Added Interface ProductApiLinkListByProductNextOptionalParams + - Added Interface ProductApiLinkListByProductOptionalParams + - Added Interface ProductGroupLinkCollection + - Added Interface ProductGroupLinkContract + - Added Interface ProductGroupLinkCreateOrUpdateOptionalParams + - Added Interface ProductGroupLinkDeleteOptionalParams + - Added Interface ProductGroupLinkGetHeaders + - Added Interface ProductGroupLinkGetOptionalParams + - Added Interface ProductGroupLinkListByProductNextOptionalParams + - Added Interface ProductGroupLinkListByProductOptionalParams + - Added Interface ProductPolicyListByProductNextOptionalParams + - Added Interface TagApiLinkCollection + - Added Interface TagApiLinkContract + - Added Interface TagApiLinkCreateOrUpdateOptionalParams + - Added Interface TagApiLinkDeleteOptionalParams + - Added Interface TagApiLinkGetHeaders + - Added Interface TagApiLinkGetOptionalParams + - Added Interface TagApiLinkListByProductNextOptionalParams + - Added Interface TagApiLinkListByProductOptionalParams + - Added Interface TagOperationLinkCollection + - Added Interface TagOperationLinkContract + - Added Interface TagOperationLinkCreateOrUpdateOptionalParams + - Added Interface TagOperationLinkDeleteOptionalParams + - Added Interface TagOperationLinkGetHeaders + - Added Interface TagOperationLinkGetOptionalParams + - Added Interface TagOperationLinkListByProductNextOptionalParams + - Added Interface TagOperationLinkListByProductOptionalParams + - Added Interface TagProductLinkCollection + - Added Interface TagProductLinkContract + - Added Interface TagProductLinkCreateOrUpdateOptionalParams + - Added Interface TagProductLinkDeleteOptionalParams + - Added Interface TagProductLinkGetHeaders + - Added Interface TagProductLinkGetOptionalParams + - Added Interface TagProductLinkListByProductNextOptionalParams + - Added Interface TagProductLinkListByProductOptionalParams + - Added Interface TenantConfigurationDeployHeaders + - Added Interface TenantConfigurationSaveHeaders + - Added Interface TenantConfigurationValidateHeaders + - Added Interface UserDeleteHeaders + - Added Interface WorkspaceApiCreateOrUpdateHeaders + - Added Interface WorkspaceApiCreateOrUpdateOptionalParams + - Added Interface WorkspaceApiDeleteOptionalParams + - Added Interface WorkspaceApiExportGetOptionalParams + - Added Interface WorkspaceApiGetEntityTagHeaders + - Added Interface WorkspaceApiGetEntityTagOptionalParams + - Added Interface WorkspaceApiGetHeaders + - Added Interface WorkspaceApiGetOptionalParams + - Added Interface WorkspaceApiListByServiceNextOptionalParams + - Added Interface WorkspaceApiListByServiceOptionalParams + - Added Interface WorkspaceApiOperationCreateOrUpdateHeaders + - Added Interface WorkspaceApiOperationCreateOrUpdateOptionalParams + - Added Interface WorkspaceApiOperationDeleteOptionalParams + - Added Interface WorkspaceApiOperationGetEntityTagHeaders + - Added Interface WorkspaceApiOperationGetEntityTagOptionalParams + - Added Interface WorkspaceApiOperationGetHeaders + - Added Interface WorkspaceApiOperationGetOptionalParams + - Added Interface WorkspaceApiOperationListByApiNextOptionalParams + - Added Interface WorkspaceApiOperationListByApiOptionalParams + - Added Interface WorkspaceApiOperationPolicyCreateOrUpdateHeaders + - Added Interface WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams + - Added Interface WorkspaceApiOperationPolicyDeleteOptionalParams + - Added Interface WorkspaceApiOperationPolicyGetEntityTagHeaders + - Added Interface WorkspaceApiOperationPolicyGetEntityTagOptionalParams + - Added Interface WorkspaceApiOperationPolicyGetHeaders + - Added Interface WorkspaceApiOperationPolicyGetOptionalParams + - Added Interface WorkspaceApiOperationPolicyListByOperationNextOptionalParams + - Added Interface WorkspaceApiOperationPolicyListByOperationOptionalParams + - Added Interface WorkspaceApiOperationUpdateHeaders + - Added Interface WorkspaceApiOperationUpdateOptionalParams + - Added Interface WorkspaceApiPolicyCreateOrUpdateHeaders + - Added Interface WorkspaceApiPolicyCreateOrUpdateOptionalParams + - Added Interface WorkspaceApiPolicyDeleteOptionalParams + - Added Interface WorkspaceApiPolicyGetEntityTagHeaders + - Added Interface WorkspaceApiPolicyGetEntityTagOptionalParams + - Added Interface WorkspaceApiPolicyGetHeaders + - Added Interface WorkspaceApiPolicyGetOptionalParams + - Added Interface WorkspaceApiPolicyListByApiNextOptionalParams + - Added Interface WorkspaceApiPolicyListByApiOptionalParams + - Added Interface WorkspaceApiReleaseCreateOrUpdateHeaders + - Added Interface WorkspaceApiReleaseCreateOrUpdateOptionalParams + - Added Interface WorkspaceApiReleaseDeleteOptionalParams + - Added Interface WorkspaceApiReleaseGetEntityTagHeaders + - Added Interface WorkspaceApiReleaseGetEntityTagOptionalParams + - Added Interface WorkspaceApiReleaseGetHeaders + - Added Interface WorkspaceApiReleaseGetOptionalParams + - Added Interface WorkspaceApiReleaseListByServiceNextOptionalParams + - Added Interface WorkspaceApiReleaseListByServiceOptionalParams + - Added Interface WorkspaceApiReleaseUpdateHeaders + - Added Interface WorkspaceApiReleaseUpdateOptionalParams + - Added Interface WorkspaceApiRevisionListByServiceNextOptionalParams + - Added Interface WorkspaceApiRevisionListByServiceOptionalParams + - Added Interface WorkspaceApiSchemaCreateOrUpdateHeaders + - Added Interface WorkspaceApiSchemaCreateOrUpdateOptionalParams + - Added Interface WorkspaceApiSchemaDeleteOptionalParams + - Added Interface WorkspaceApiSchemaGetEntityTagHeaders + - Added Interface WorkspaceApiSchemaGetEntityTagOptionalParams + - Added Interface WorkspaceApiSchemaGetHeaders + - Added Interface WorkspaceApiSchemaGetOptionalParams + - Added Interface WorkspaceApiSchemaListByApiNextOptionalParams + - Added Interface WorkspaceApiSchemaListByApiOptionalParams + - Added Interface WorkspaceApiUpdateHeaders + - Added Interface WorkspaceApiUpdateOptionalParams + - Added Interface WorkspaceApiVersionSetCreateOrUpdateHeaders + - Added Interface WorkspaceApiVersionSetCreateOrUpdateOptionalParams + - Added Interface WorkspaceApiVersionSetDeleteOptionalParams + - Added Interface WorkspaceApiVersionSetGetEntityTagHeaders + - Added Interface WorkspaceApiVersionSetGetEntityTagOptionalParams + - Added Interface WorkspaceApiVersionSetGetHeaders + - Added Interface WorkspaceApiVersionSetGetOptionalParams + - Added Interface WorkspaceApiVersionSetListByServiceNextOptionalParams + - Added Interface WorkspaceApiVersionSetListByServiceOptionalParams + - Added Interface WorkspaceApiVersionSetUpdateHeaders + - Added Interface WorkspaceApiVersionSetUpdateOptionalParams + - Added Interface WorkspaceCollection + - Added Interface WorkspaceContract + - Added Interface WorkspaceCreateOrUpdateHeaders + - Added Interface WorkspaceCreateOrUpdateOptionalParams + - Added Interface WorkspaceDeleteOptionalParams + - Added Interface WorkspaceGetEntityTagHeaders + - Added Interface WorkspaceGetEntityTagOptionalParams + - Added Interface WorkspaceGetHeaders + - Added Interface WorkspaceGetOptionalParams + - Added Interface WorkspaceGlobalSchemaCreateOrUpdateHeaders + - Added Interface WorkspaceGlobalSchemaCreateOrUpdateOptionalParams + - Added Interface WorkspaceGlobalSchemaDeleteOptionalParams + - Added Interface WorkspaceGlobalSchemaGetEntityTagHeaders + - Added Interface WorkspaceGlobalSchemaGetEntityTagOptionalParams + - Added Interface WorkspaceGlobalSchemaGetHeaders + - Added Interface WorkspaceGlobalSchemaGetOptionalParams + - Added Interface WorkspaceGlobalSchemaListByServiceNextOptionalParams + - Added Interface WorkspaceGlobalSchemaListByServiceOptionalParams + - Added Interface WorkspaceGroupCreateOrUpdateHeaders + - Added Interface WorkspaceGroupCreateOrUpdateOptionalParams + - Added Interface WorkspaceGroupDeleteOptionalParams + - Added Interface WorkspaceGroupGetEntityTagHeaders + - Added Interface WorkspaceGroupGetEntityTagOptionalParams + - Added Interface WorkspaceGroupGetHeaders + - Added Interface WorkspaceGroupGetOptionalParams + - Added Interface WorkspaceGroupListByServiceNextOptionalParams + - Added Interface WorkspaceGroupListByServiceOptionalParams + - Added Interface WorkspaceGroupUpdateHeaders + - Added Interface WorkspaceGroupUpdateOptionalParams + - Added Interface WorkspaceGroupUserCheckEntityExistsOptionalParams + - Added Interface WorkspaceGroupUserCreateOptionalParams + - Added Interface WorkspaceGroupUserDeleteOptionalParams + - Added Interface WorkspaceGroupUserListNextOptionalParams + - Added Interface WorkspaceGroupUserListOptionalParams + - Added Interface WorkspaceListByServiceNextOptionalParams + - Added Interface WorkspaceListByServiceOptionalParams + - Added Interface WorkspaceNamedValueCreateOrUpdateHeaders + - Added Interface WorkspaceNamedValueCreateOrUpdateOptionalParams + - Added Interface WorkspaceNamedValueDeleteOptionalParams + - Added Interface WorkspaceNamedValueGetEntityTagHeaders + - Added Interface WorkspaceNamedValueGetEntityTagOptionalParams + - Added Interface WorkspaceNamedValueGetHeaders + - Added Interface WorkspaceNamedValueGetOptionalParams + - Added Interface WorkspaceNamedValueListByServiceNextOptionalParams + - Added Interface WorkspaceNamedValueListByServiceOptionalParams + - Added Interface WorkspaceNamedValueListValueHeaders + - Added Interface WorkspaceNamedValueListValueOptionalParams + - Added Interface WorkspaceNamedValueRefreshSecretHeaders + - Added Interface WorkspaceNamedValueRefreshSecretOptionalParams + - Added Interface WorkspaceNamedValueUpdateHeaders + - Added Interface WorkspaceNamedValueUpdateOptionalParams + - Added Interface WorkspaceNotificationCreateOrUpdateOptionalParams + - Added Interface WorkspaceNotificationGetOptionalParams + - Added Interface WorkspaceNotificationListByServiceNextOptionalParams + - Added Interface WorkspaceNotificationListByServiceOptionalParams + - Added Interface WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams + - Added Interface WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams + - Added Interface WorkspaceNotificationRecipientEmailDeleteOptionalParams + - Added Interface WorkspaceNotificationRecipientEmailListByNotificationOptionalParams + - Added Interface WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams + - Added Interface WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams + - Added Interface WorkspaceNotificationRecipientUserDeleteOptionalParams + - Added Interface WorkspaceNotificationRecipientUserListByNotificationOptionalParams + - Added Interface WorkspacePolicyCreateOrUpdateHeaders + - Added Interface WorkspacePolicyCreateOrUpdateOptionalParams + - Added Interface WorkspacePolicyDeleteOptionalParams + - Added Interface WorkspacePolicyFragmentCreateOrUpdateHeaders + - Added Interface WorkspacePolicyFragmentCreateOrUpdateOptionalParams + - Added Interface WorkspacePolicyFragmentDeleteOptionalParams + - Added Interface WorkspacePolicyFragmentGetEntityTagHeaders + - Added Interface WorkspacePolicyFragmentGetEntityTagOptionalParams + - Added Interface WorkspacePolicyFragmentGetHeaders + - Added Interface WorkspacePolicyFragmentGetOptionalParams + - Added Interface WorkspacePolicyFragmentListByServiceNextOptionalParams + - Added Interface WorkspacePolicyFragmentListByServiceOptionalParams + - Added Interface WorkspacePolicyFragmentListReferencesOptionalParams + - Added Interface WorkspacePolicyGetEntityTagHeaders + - Added Interface WorkspacePolicyGetEntityTagOptionalParams + - Added Interface WorkspacePolicyGetHeaders + - Added Interface WorkspacePolicyGetOptionalParams + - Added Interface WorkspacePolicyListByApiNextOptionalParams + - Added Interface WorkspacePolicyListByApiOptionalParams + - Added Interface WorkspaceProductApiLinkCreateOrUpdateOptionalParams + - Added Interface WorkspaceProductApiLinkDeleteOptionalParams + - Added Interface WorkspaceProductApiLinkGetHeaders + - Added Interface WorkspaceProductApiLinkGetOptionalParams + - Added Interface WorkspaceProductApiLinkListByProductNextOptionalParams + - Added Interface WorkspaceProductApiLinkListByProductOptionalParams + - Added Interface WorkspaceProductCreateOrUpdateHeaders + - Added Interface WorkspaceProductCreateOrUpdateOptionalParams + - Added Interface WorkspaceProductDeleteOptionalParams + - Added Interface WorkspaceProductGetEntityTagHeaders + - Added Interface WorkspaceProductGetEntityTagOptionalParams + - Added Interface WorkspaceProductGetHeaders + - Added Interface WorkspaceProductGetOptionalParams + - Added Interface WorkspaceProductGroupLinkCreateOrUpdateOptionalParams + - Added Interface WorkspaceProductGroupLinkDeleteOptionalParams + - Added Interface WorkspaceProductGroupLinkGetHeaders + - Added Interface WorkspaceProductGroupLinkGetOptionalParams + - Added Interface WorkspaceProductGroupLinkListByProductNextOptionalParams + - Added Interface WorkspaceProductGroupLinkListByProductOptionalParams + - Added Interface WorkspaceProductListByServiceNextOptionalParams + - Added Interface WorkspaceProductListByServiceOptionalParams + - Added Interface WorkspaceProductPolicyCreateOrUpdateHeaders + - Added Interface WorkspaceProductPolicyCreateOrUpdateOptionalParams + - Added Interface WorkspaceProductPolicyDeleteOptionalParams + - Added Interface WorkspaceProductPolicyGetEntityTagHeaders + - Added Interface WorkspaceProductPolicyGetEntityTagOptionalParams + - Added Interface WorkspaceProductPolicyGetHeaders + - Added Interface WorkspaceProductPolicyGetOptionalParams + - Added Interface WorkspaceProductPolicyListByProductOptionalParams + - Added Interface WorkspaceProductUpdateHeaders + - Added Interface WorkspaceProductUpdateOptionalParams + - Added Interface WorkspaceSubscriptionCreateOrUpdateHeaders + - Added Interface WorkspaceSubscriptionCreateOrUpdateOptionalParams + - Added Interface WorkspaceSubscriptionDeleteOptionalParams + - Added Interface WorkspaceSubscriptionGetEntityTagHeaders + - Added Interface WorkspaceSubscriptionGetEntityTagOptionalParams + - Added Interface WorkspaceSubscriptionGetHeaders + - Added Interface WorkspaceSubscriptionGetOptionalParams + - Added Interface WorkspaceSubscriptionListNextOptionalParams + - Added Interface WorkspaceSubscriptionListOptionalParams + - Added Interface WorkspaceSubscriptionListSecretsHeaders + - Added Interface WorkspaceSubscriptionListSecretsOptionalParams + - Added Interface WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams + - Added Interface WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams + - Added Interface WorkspaceSubscriptionUpdateHeaders + - Added Interface WorkspaceSubscriptionUpdateOptionalParams + - Added Interface WorkspaceTagApiLinkCreateOrUpdateOptionalParams + - Added Interface WorkspaceTagApiLinkDeleteOptionalParams + - Added Interface WorkspaceTagApiLinkGetHeaders + - Added Interface WorkspaceTagApiLinkGetOptionalParams + - Added Interface WorkspaceTagApiLinkListByProductNextOptionalParams + - Added Interface WorkspaceTagApiLinkListByProductOptionalParams + - Added Interface WorkspaceTagCreateOrUpdateHeaders + - Added Interface WorkspaceTagCreateOrUpdateOptionalParams + - Added Interface WorkspaceTagDeleteOptionalParams + - Added Interface WorkspaceTagGetEntityStateHeaders + - Added Interface WorkspaceTagGetEntityStateOptionalParams + - Added Interface WorkspaceTagGetHeaders + - Added Interface WorkspaceTagGetOptionalParams + - Added Interface WorkspaceTagListByServiceNextOptionalParams + - Added Interface WorkspaceTagListByServiceOptionalParams + - Added Interface WorkspaceTagOperationLinkCreateOrUpdateOptionalParams + - Added Interface WorkspaceTagOperationLinkDeleteOptionalParams + - Added Interface WorkspaceTagOperationLinkGetHeaders + - Added Interface WorkspaceTagOperationLinkGetOptionalParams + - Added Interface WorkspaceTagOperationLinkListByProductNextOptionalParams + - Added Interface WorkspaceTagOperationLinkListByProductOptionalParams + - Added Interface WorkspaceTagProductLinkCreateOrUpdateOptionalParams + - Added Interface WorkspaceTagProductLinkDeleteOptionalParams + - Added Interface WorkspaceTagProductLinkGetHeaders + - Added Interface WorkspaceTagProductLinkGetOptionalParams + - Added Interface WorkspaceTagProductLinkListByProductNextOptionalParams + - Added Interface WorkspaceTagProductLinkListByProductOptionalParams + - Added Interface WorkspaceTagUpdateHeaders + - Added Interface WorkspaceTagUpdateOptionalParams + - Added Interface WorkspaceUpdateHeaders + - Added Interface WorkspaceUpdateOptionalParams + - Added Type Alias AllPoliciesListByServiceNextResponse + - Added Type Alias AllPoliciesListByServiceResponse + - Added Type Alias ApiDeleteResponse + - Added Type Alias ApiManagementGatewayCreateOrUpdateResponse + - Added Type Alias ApiManagementGatewayDeleteResponse + - Added Type Alias ApiManagementGatewayGetResponse + - Added Type Alias ApiManagementGatewayListByResourceGroupNextResponse + - Added Type Alias ApiManagementGatewayListByResourceGroupResponse + - Added Type Alias ApiManagementGatewayListNextResponse + - Added Type Alias ApiManagementGatewayListResponse + - Added Type Alias ApiManagementGatewayUpdateResponse + - Added Type Alias BackendType + - Added Type Alias DeveloperPortalStatus + - Added Type Alias GatewayListDebugCredentialsContractPurpose + - Added Type Alias GatewayListDebugCredentialsResponse + - Added Type Alias GatewayListTraceResponse + - Added Type Alias KeyVaultRefreshState + - Added Type Alias LegacyApiState + - Added Type Alias LegacyPortalStatus + - Added Type Alias MigrateToStv2Mode + - Added Type Alias PolicyComplianceState + - Added Type Alias PolicyFragmentListByServiceNextResponse + - Added Type Alias PolicyListByServiceNextResponse + - Added Type Alias PolicyRestrictionCreateOrUpdateResponse + - Added Type Alias PolicyRestrictionGetEntityTagResponse + - Added Type Alias PolicyRestrictionGetResponse + - Added Type Alias PolicyRestrictionListByServiceNextResponse + - Added Type Alias PolicyRestrictionListByServiceResponse + - Added Type Alias PolicyRestrictionRequireBase + - Added Type Alias PolicyRestrictionUpdateResponse + - Added Type Alias PolicyRestrictionValidationsByServiceResponse + - Added Type Alias PortalConfigListByServiceNextResponse + - Added Type Alias ProductApiLinkCreateOrUpdateResponse + - Added Type Alias ProductApiLinkGetResponse + - Added Type Alias ProductApiLinkListByProductNextResponse + - Added Type Alias ProductApiLinkListByProductResponse + - Added Type Alias ProductGroupLinkCreateOrUpdateResponse + - Added Type Alias ProductGroupLinkGetResponse + - Added Type Alias ProductGroupLinkListByProductNextResponse + - Added Type Alias ProductGroupLinkListByProductResponse + - Added Type Alias ProductPolicyListByProductNextResponse + - Added Type Alias TagApiLinkCreateOrUpdateResponse + - Added Type Alias TagApiLinkGetResponse + - Added Type Alias TagApiLinkListByProductNextResponse + - Added Type Alias TagApiLinkListByProductResponse + - Added Type Alias TagOperationLinkCreateOrUpdateResponse + - Added Type Alias TagOperationLinkGetResponse + - Added Type Alias TagOperationLinkListByProductNextResponse + - Added Type Alias TagOperationLinkListByProductResponse + - Added Type Alias TagProductLinkCreateOrUpdateResponse + - Added Type Alias TagProductLinkGetResponse + - Added Type Alias TagProductLinkListByProductNextResponse + - Added Type Alias TagProductLinkListByProductResponse + - Added Type Alias UserDeleteResponse + - Added Type Alias WorkspaceApiCreateOrUpdateResponse + - Added Type Alias WorkspaceApiExportGetResponse + - Added Type Alias WorkspaceApiGetEntityTagResponse + - Added Type Alias WorkspaceApiGetResponse + - Added Type Alias WorkspaceApiListByServiceNextResponse + - Added Type Alias WorkspaceApiListByServiceResponse + - Added Type Alias WorkspaceApiOperationCreateOrUpdateResponse + - Added Type Alias WorkspaceApiOperationGetEntityTagResponse + - Added Type Alias WorkspaceApiOperationGetResponse + - Added Type Alias WorkspaceApiOperationListByApiNextResponse + - Added Type Alias WorkspaceApiOperationListByApiResponse + - Added Type Alias WorkspaceApiOperationPolicyCreateOrUpdateResponse + - Added Type Alias WorkspaceApiOperationPolicyGetEntityTagResponse + - Added Type Alias WorkspaceApiOperationPolicyGetResponse + - Added Type Alias WorkspaceApiOperationPolicyListByOperationNextResponse + - Added Type Alias WorkspaceApiOperationPolicyListByOperationResponse + - Added Type Alias WorkspaceApiOperationUpdateResponse + - Added Type Alias WorkspaceApiPolicyCreateOrUpdateResponse + - Added Type Alias WorkspaceApiPolicyGetEntityTagResponse + - Added Type Alias WorkspaceApiPolicyGetResponse + - Added Type Alias WorkspaceApiPolicyListByApiNextResponse + - Added Type Alias WorkspaceApiPolicyListByApiResponse + - Added Type Alias WorkspaceApiReleaseCreateOrUpdateResponse + - Added Type Alias WorkspaceApiReleaseGetEntityTagResponse + - Added Type Alias WorkspaceApiReleaseGetResponse + - Added Type Alias WorkspaceApiReleaseListByServiceNextResponse + - Added Type Alias WorkspaceApiReleaseListByServiceResponse + - Added Type Alias WorkspaceApiReleaseUpdateResponse + - Added Type Alias WorkspaceApiRevisionListByServiceNextResponse + - Added Type Alias WorkspaceApiRevisionListByServiceResponse + - Added Type Alias WorkspaceApiSchemaCreateOrUpdateResponse + - Added Type Alias WorkspaceApiSchemaGetEntityTagResponse + - Added Type Alias WorkspaceApiSchemaGetResponse + - Added Type Alias WorkspaceApiSchemaListByApiNextResponse + - Added Type Alias WorkspaceApiSchemaListByApiResponse + - Added Type Alias WorkspaceApiUpdateResponse + - Added Type Alias WorkspaceApiVersionSetCreateOrUpdateResponse + - Added Type Alias WorkspaceApiVersionSetGetEntityTagResponse + - Added Type Alias WorkspaceApiVersionSetGetResponse + - Added Type Alias WorkspaceApiVersionSetListByServiceNextResponse + - Added Type Alias WorkspaceApiVersionSetListByServiceResponse + - Added Type Alias WorkspaceApiVersionSetUpdateResponse + - Added Type Alias WorkspaceCreateOrUpdateResponse + - Added Type Alias WorkspaceGetEntityTagResponse + - Added Type Alias WorkspaceGetResponse + - Added Type Alias WorkspaceGlobalSchemaCreateOrUpdateResponse + - Added Type Alias WorkspaceGlobalSchemaGetEntityTagResponse + - Added Type Alias WorkspaceGlobalSchemaGetResponse + - Added Type Alias WorkspaceGlobalSchemaListByServiceNextResponse + - Added Type Alias WorkspaceGlobalSchemaListByServiceResponse + - Added Type Alias WorkspaceGroupCreateOrUpdateResponse + - Added Type Alias WorkspaceGroupGetEntityTagResponse + - Added Type Alias WorkspaceGroupGetResponse + - Added Type Alias WorkspaceGroupListByServiceNextResponse + - Added Type Alias WorkspaceGroupListByServiceResponse + - Added Type Alias WorkspaceGroupUpdateResponse + - Added Type Alias WorkspaceGroupUserCheckEntityExistsResponse + - Added Type Alias WorkspaceGroupUserCreateResponse + - Added Type Alias WorkspaceGroupUserListNextResponse + - Added Type Alias WorkspaceGroupUserListResponse + - Added Type Alias WorkspaceListByServiceNextResponse + - Added Type Alias WorkspaceListByServiceResponse + - Added Type Alias WorkspaceNamedValueCreateOrUpdateResponse + - Added Type Alias WorkspaceNamedValueGetEntityTagResponse + - Added Type Alias WorkspaceNamedValueGetResponse + - Added Type Alias WorkspaceNamedValueListByServiceNextResponse + - Added Type Alias WorkspaceNamedValueListByServiceResponse + - Added Type Alias WorkspaceNamedValueListValueResponse + - Added Type Alias WorkspaceNamedValueRefreshSecretResponse + - Added Type Alias WorkspaceNamedValueUpdateResponse + - Added Type Alias WorkspaceNotificationCreateOrUpdateResponse + - Added Type Alias WorkspaceNotificationGetResponse + - Added Type Alias WorkspaceNotificationListByServiceNextResponse + - Added Type Alias WorkspaceNotificationListByServiceResponse + - Added Type Alias WorkspaceNotificationRecipientEmailCheckEntityExistsResponse + - Added Type Alias WorkspaceNotificationRecipientEmailCreateOrUpdateResponse + - Added Type Alias WorkspaceNotificationRecipientEmailListByNotificationResponse + - Added Type Alias WorkspaceNotificationRecipientUserCheckEntityExistsResponse + - Added Type Alias WorkspaceNotificationRecipientUserCreateOrUpdateResponse + - Added Type Alias WorkspaceNotificationRecipientUserListByNotificationResponse + - Added Type Alias WorkspacePolicyCreateOrUpdateResponse + - Added Type Alias WorkspacePolicyFragmentCreateOrUpdateResponse + - Added Type Alias WorkspacePolicyFragmentGetEntityTagResponse + - Added Type Alias WorkspacePolicyFragmentGetResponse + - Added Type Alias WorkspacePolicyFragmentListByServiceNextResponse + - Added Type Alias WorkspacePolicyFragmentListByServiceResponse + - Added Type Alias WorkspacePolicyFragmentListReferencesResponse + - Added Type Alias WorkspacePolicyGetEntityTagResponse + - Added Type Alias WorkspacePolicyGetResponse + - Added Type Alias WorkspacePolicyListByApiNextResponse + - Added Type Alias WorkspacePolicyListByApiResponse + - Added Type Alias WorkspaceProductApiLinkCreateOrUpdateResponse + - Added Type Alias WorkspaceProductApiLinkGetResponse + - Added Type Alias WorkspaceProductApiLinkListByProductNextResponse + - Added Type Alias WorkspaceProductApiLinkListByProductResponse + - Added Type Alias WorkspaceProductCreateOrUpdateResponse + - Added Type Alias WorkspaceProductGetEntityTagResponse + - Added Type Alias WorkspaceProductGetResponse + - Added Type Alias WorkspaceProductGroupLinkCreateOrUpdateResponse + - Added Type Alias WorkspaceProductGroupLinkGetResponse + - Added Type Alias WorkspaceProductGroupLinkListByProductNextResponse + - Added Type Alias WorkspaceProductGroupLinkListByProductResponse + - Added Type Alias WorkspaceProductListByServiceNextResponse + - Added Type Alias WorkspaceProductListByServiceResponse + - Added Type Alias WorkspaceProductPolicyCreateOrUpdateResponse + - Added Type Alias WorkspaceProductPolicyGetEntityTagResponse + - Added Type Alias WorkspaceProductPolicyGetResponse + - Added Type Alias WorkspaceProductPolicyListByProductResponse + - Added Type Alias WorkspaceProductUpdateResponse + - Added Type Alias WorkspaceSubscriptionCreateOrUpdateResponse + - Added Type Alias WorkspaceSubscriptionGetEntityTagResponse + - Added Type Alias WorkspaceSubscriptionGetResponse + - Added Type Alias WorkspaceSubscriptionListNextResponse + - Added Type Alias WorkspaceSubscriptionListResponse + - Added Type Alias WorkspaceSubscriptionListSecretsResponse + - Added Type Alias WorkspaceSubscriptionUpdateResponse + - Added Type Alias WorkspaceTagApiLinkCreateOrUpdateResponse + - Added Type Alias WorkspaceTagApiLinkGetResponse + - Added Type Alias WorkspaceTagApiLinkListByProductNextResponse + - Added Type Alias WorkspaceTagApiLinkListByProductResponse + - Added Type Alias WorkspaceTagCreateOrUpdateResponse + - Added Type Alias WorkspaceTagGetEntityStateResponse + - Added Type Alias WorkspaceTagGetResponse + - Added Type Alias WorkspaceTagListByServiceNextResponse + - Added Type Alias WorkspaceTagListByServiceResponse + - Added Type Alias WorkspaceTagOperationLinkCreateOrUpdateResponse + - Added Type Alias WorkspaceTagOperationLinkGetResponse + - Added Type Alias WorkspaceTagOperationLinkListByProductNextResponse + - Added Type Alias WorkspaceTagOperationLinkListByProductResponse + - Added Type Alias WorkspaceTagProductLinkCreateOrUpdateResponse + - Added Type Alias WorkspaceTagProductLinkGetResponse + - Added Type Alias WorkspaceTagProductLinkListByProductNextResponse + - Added Type Alias WorkspaceTagProductLinkListByProductResponse + - Added Type Alias WorkspaceTagUpdateResponse + - Added Type Alias WorkspaceUpdateResponse + - Interface ApiContract has a new optional parameter provisioningState + - Interface ApiContractProperties has a new optional parameter provisioningState + - Interface ApiCreateOrUpdateHeaders has a new optional parameter azureAsyncOperation + - Interface ApiCreateOrUpdateHeaders has a new optional parameter location + - Interface ApiCreateOrUpdateParameter has a new optional parameter provisioningState + - Interface ApiDeleteOptionalParams has a new optional parameter resumeFrom + - Interface ApiDeleteOptionalParams has a new optional parameter updateIntervalInMs + - Interface ApiManagementServiceBaseProperties has a new optional parameter configurationApi + - Interface ApiManagementServiceBaseProperties has a new optional parameter developerPortalStatus + - Interface ApiManagementServiceBaseProperties has a new optional parameter legacyPortalStatus + - Interface ApiManagementServiceMigrateToStv2OptionalParams has a new optional parameter parameters + - Interface ApiManagementServiceResource has a new optional parameter configurationApi + - Interface ApiManagementServiceResource has a new optional parameter developerPortalStatus + - Interface ApiManagementServiceResource has a new optional parameter legacyPortalStatus + - Interface ApiManagementServiceUpdateParameters has a new optional parameter configurationApi + - Interface ApiManagementServiceUpdateParameters has a new optional parameter developerPortalStatus + - Interface ApiManagementServiceUpdateParameters has a new optional parameter legacyPortalStatus + - Interface ApiSchemaCreateOrUpdateHeaders has a new optional parameter azureAsyncOperation + - Interface ApiSchemaCreateOrUpdateHeaders has a new optional parameter location + - Interface AuthorizationAccessPolicyContract has a new optional parameter appIds + - Interface BackendBaseParameters has a new optional parameter circuitBreaker + - Interface BackendBaseParameters has a new optional parameter pool + - Interface BackendBaseParameters has a new optional parameter type + - Interface BackendContract has a new optional parameter circuitBreaker + - Interface BackendContract has a new optional parameter pool + - Interface BackendContract has a new optional parameter typePropertiesType + - Interface BackendUpdateParameters has a new optional parameter circuitBreaker + - Interface BackendUpdateParameters has a new optional parameter pool + - Interface BackendUpdateParameters has a new optional parameter type + - Interface GlobalSchemaContract has a new optional parameter provisioningState + - Interface GlobalSchemaCreateOrUpdateHeaders has a new optional parameter azureAsyncOperation + - Interface GlobalSchemaCreateOrUpdateHeaders has a new optional parameter location + - Interface NamedValueContract has a new optional parameter provisioningState + - Interface NamedValueContractProperties has a new optional parameter provisioningState + - Interface NamedValueCreateOrUpdateHeaders has a new optional parameter azureAsyncOperation + - Interface NamedValueCreateOrUpdateHeaders has a new optional parameter location + - Interface PolicyFragmentContract has a new optional parameter provisioningState + - Interface PolicyFragmentCreateOrUpdateHeaders has a new optional parameter azureAsyncOperation + - Interface PolicyFragmentCreateOrUpdateHeaders has a new optional parameter location + - Interface PortalRevisionContract has a new optional parameter provisioningState + - Interface PortalRevisionCreateOrUpdateHeaders has a new optional parameter azureAsyncOperation + - Interface PortalRevisionCreateOrUpdateHeaders has a new optional parameter location + - Interface SchemaContract has a new optional parameter provisioningState + - Interface UserDeleteOptionalParams has a new optional parameter resumeFrom + - Interface UserDeleteOptionalParams has a new optional parameter updateIntervalInMs + - Added Enum KnownBackendType + - Added Enum KnownDeveloperPortalStatus + - Added Enum KnownGatewayListDebugCredentialsContractPurpose + - Added Enum KnownKeyVaultRefreshState + - Added Enum KnownLegacyApiState + - Added Enum KnownLegacyPortalStatus + - Added Enum KnownMigrateToStv2Mode + - Added Enum KnownPolicyComplianceState + - Added Enum KnownPolicyRestrictionRequireBase + - Enum KnownApiType has a new value Grpc + - Enum KnownApiType has a new value Odata + - Enum KnownContentFormat has a new value Grpc + - Enum KnownContentFormat has a new value GrpcLink + - Enum KnownContentFormat has a new value Odata + - Enum KnownContentFormat has a new value OdataLink + - Enum KnownHostnameType has a new value ConfigurationApi + - Enum KnownPlatformVersion has a new value Stv21 + - Enum KnownSoapApiType has a new value GRPC + - Enum KnownSoapApiType has a new value OData + +**Breaking Changes** + - Removed operation Api.delete + - Removed operation User.delete + - Enum KnownSkuType no longer has value Basic + - Enum KnownSkuType no longer has value Consumption + - Enum KnownSkuType no longer has value Developer + - Enum KnownSkuType no longer has value Isolated + - Enum KnownSkuType no longer has value Premium + ## 9.1.0 (2023-08-23) **Features** @@ -571,4 +1233,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/apimanagement/arm-apimanagement/LICENSE b/sdk/apimanagement/arm-apimanagement/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/apimanagement/arm-apimanagement/LICENSE +++ b/sdk/apimanagement/arm-apimanagement/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/apimanagement/arm-apimanagement/README.md b/sdk/apimanagement/arm-apimanagement/README.md index 9b6c2e8409c2..075f96a061ed 100644 --- a/sdk/apimanagement/arm-apimanagement/README.md +++ b/sdk/apimanagement/arm-apimanagement/README.md @@ -6,7 +6,7 @@ ApiManagement Client [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/apimanagement/arm-apimanagement) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-apimanagement) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-apimanagement) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-apimanagement?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/apimanagement/arm-apimanagement/_meta.json b/sdk/apimanagement/arm-apimanagement/_meta.json index 2dd27e303209..7765618849b0 100644 --- a/sdk/apimanagement/arm-apimanagement/_meta.json +++ b/sdk/apimanagement/arm-apimanagement/_meta.json @@ -1,8 +1,8 @@ { - "commit": "c2e836ccebb6a08245631ca1d68927abf8a79ba1", + "commit": "a9a9b662599df3584d887afcbe3f76bc9a5fce52", "readme": "specification/apimanagement/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\apimanagement\\resource-manager\\readme.md --use=@autorest/typescript@6.0.8 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", - "use": "@autorest/typescript@6.0.8" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/apimanagement/arm-apimanagement/package.json b/sdk/apimanagement/arm-apimanagement/package.json index f8b67f7e1880..9044bd36e858 100644 --- a/sdk/apimanagement/arm-apimanagement/package.json +++ b/sdk/apimanagement/arm-apimanagement/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ApiManagementClient.", - "version": "9.1.0", + "version": "10.0.0-beta.1", "engines": { "node": ">=18.0.0" }, @@ -12,8 +12,8 @@ "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.12.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -32,19 +32,20 @@ "mkdirp": "^2.1.2", "typescript": "~5.3.3", "uglify-js": "^3.4.9", - "rimraf": "^5.0.5", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "esm": "^3.2.18", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0", - "@types/mocha": "^10.0.0" + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -77,7 +78,6 @@ "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -106,13 +106,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/apimanagement/arm-apimanagement", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-apimanagement?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/apimanagement/arm-apimanagement" +} \ No newline at end of file diff --git a/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md b/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md index 666a2a8cd093..2d07988c8348 100644 --- a/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md +++ b/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md @@ -68,6 +68,37 @@ export interface AdditionalLocation { zones?: string[]; } +// @public +export interface AllPolicies { + listByService(resourceGroupName: string, serviceName: string, options?: AllPoliciesListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface AllPoliciesCollection { + nextLink?: string; + value?: AllPoliciesContract[]; +} + +// @public +export interface AllPoliciesContract extends ProxyResource { + complianceState?: PolicyComplianceState; + referencePolicyId?: string; +} + +// @public +export interface AllPoliciesListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AllPoliciesListByServiceNextResponse = AllPoliciesCollection; + +// @public +export interface AllPoliciesListByServiceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AllPoliciesListByServiceResponse = AllPoliciesCollection; + // @public export type AlwaysLog = string; @@ -75,7 +106,8 @@ export type AlwaysLog = string; export interface Api { beginCreateOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, options?: ApiCreateOrUpdateOptionalParams): Promise, ApiCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, options?: ApiCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, options?: ApiDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, options?: ApiDeleteOptionalParams): Promise, ApiDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, options?: ApiDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, apiId: string, options?: ApiGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, options?: ApiGetEntityTagOptionalParams): Promise; listByService(resourceGroupName: string, serviceName: string, options?: ApiListByServiceOptionalParams): PagedAsyncIterableIterator; @@ -115,6 +147,7 @@ export interface ApiContract extends ProxyResource { license?: ApiLicenseInformation; path?: string; protocols?: Protocol[]; + readonly provisioningState?: string; serviceUrl?: string; sourceApiId?: string; subscriptionKeyParameterNames?: SubscriptionKeyParameterNamesContract; @@ -128,6 +161,7 @@ export interface ApiContractProperties extends ApiEntityBaseContract { displayName?: string; path: string; protocols?: Protocol[]; + readonly provisioningState?: string; serviceUrl?: string; sourceApiId?: string; } @@ -142,7 +176,9 @@ export interface ApiContractUpdateProperties extends ApiEntityBaseContract { // @public export interface ApiCreateOrUpdateHeaders { + azureAsyncOperation?: string; eTag?: string; + location?: string; } // @public @@ -171,6 +207,7 @@ export interface ApiCreateOrUpdateParameter { license?: ApiLicenseInformation; path?: string; protocols?: Protocol[]; + readonly provisioningState?: string; serviceUrl?: string; soapApiType?: SoapApiType; sourceApiId?: string; @@ -200,11 +237,22 @@ export interface ApiCreateOrUpdatePropertiesWsdlSelector { // @public export type ApiCreateOrUpdateResponse = ApiCreateOrUpdateHeaders & ApiContract; +// @public +export interface ApiDeleteHeaders { + azureAsyncOperation?: string; + location?: string; +} + // @public export interface ApiDeleteOptionalParams extends coreClient.OperationOptions { deleteRevisions?: boolean; + resumeFrom?: string; + updateIntervalInMs?: number; } +// @public +export type ApiDeleteResponse = ApiDeleteHeaders; + // @public export interface ApiDiagnostic { createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, parameters: DiagnosticContract, options?: ApiDiagnosticCreateOrUpdateOptionalParams): Promise; @@ -618,6 +666,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ApiManagementClientOptionalParams); constructor(credentials: coreAuth.TokenCredential, options?: ApiManagementClientOptionalParams); // (undocumented) + allPolicies: AllPolicies; + // (undocumented) api: Api; // (undocumented) apiDiagnostic: ApiDiagnostic; @@ -630,6 +680,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) apiIssueComment: ApiIssueComment; // (undocumented) + apiManagementGateway: ApiManagementGateway; + // (undocumented) apiManagementOperations: ApiManagementOperations; // (undocumented) apiManagementService: ApiManagementService; @@ -740,6 +792,10 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) policyFragment: PolicyFragment; // (undocumented) + policyRestriction: PolicyRestriction; + // (undocumented) + policyRestrictionValidations: PolicyRestrictionValidations; + // (undocumented) portalConfig: PortalConfig; // (undocumented) portalRevision: PortalRevision; @@ -752,8 +808,12 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) productApi: ProductApi; // (undocumented) + productApiLink: ProductApiLink; + // (undocumented) productGroup: ProductGroup; // (undocumented) + productGroupLink: ProductGroupLink; + // (undocumented) productPolicy: ProductPolicy; // (undocumented) productSubscriptions: ProductSubscriptions; @@ -780,6 +840,12 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) tag: Tag; // (undocumented) + tagApiLink: TagApiLink; + // (undocumented) + tagOperationLink: TagOperationLink; + // (undocumented) + tagProductLink: TagProductLink; + // (undocumented) tagResource: TagResource; // (undocumented) tenantAccess: TenantAccess; @@ -799,6 +865,62 @@ export class ApiManagementClient extends coreClient.ServiceClient { userIdentities: UserIdentities; // (undocumented) userSubscription: UserSubscription; + // (undocumented) + workspace: Workspace; + // (undocumented) + workspaceApi: WorkspaceApi; + // (undocumented) + workspaceApiExport: WorkspaceApiExport; + // (undocumented) + workspaceApiOperation: WorkspaceApiOperation; + // (undocumented) + workspaceApiOperationPolicy: WorkspaceApiOperationPolicy; + // (undocumented) + workspaceApiPolicy: WorkspaceApiPolicy; + // (undocumented) + workspaceApiRelease: WorkspaceApiRelease; + // (undocumented) + workspaceApiRevision: WorkspaceApiRevision; + // (undocumented) + workspaceApiSchema: WorkspaceApiSchema; + // (undocumented) + workspaceApiVersionSet: WorkspaceApiVersionSet; + // (undocumented) + workspaceGlobalSchema: WorkspaceGlobalSchema; + // (undocumented) + workspaceGroup: WorkspaceGroup; + // (undocumented) + workspaceGroupUser: WorkspaceGroupUser; + // (undocumented) + workspaceNamedValue: WorkspaceNamedValue; + // (undocumented) + workspaceNotification: WorkspaceNotification; + // (undocumented) + workspaceNotificationRecipientEmail: WorkspaceNotificationRecipientEmail; + // (undocumented) + workspaceNotificationRecipientUser: WorkspaceNotificationRecipientUser; + // (undocumented) + workspacePolicy: WorkspacePolicy; + // (undocumented) + workspacePolicyFragment: WorkspacePolicyFragment; + // (undocumented) + workspaceProduct: WorkspaceProduct; + // (undocumented) + workspaceProductApiLink: WorkspaceProductApiLink; + // (undocumented) + workspaceProductGroupLink: WorkspaceProductGroupLink; + // (undocumented) + workspaceProductPolicy: WorkspaceProductPolicy; + // (undocumented) + workspaceSubscription: WorkspaceSubscription; + // (undocumented) + workspaceTag: WorkspaceTag; + // (undocumented) + workspaceTagApiLink: WorkspaceTagApiLink; + // (undocumented) + workspaceTagOperationLink: WorkspaceTagOperationLink; + // (undocumented) + workspaceTagProductLink: WorkspaceTagProductLink; } // @public @@ -808,6 +930,159 @@ export interface ApiManagementClientOptionalParams extends coreClient.ServiceCli endpoint?: string; } +// @public +export interface ApiManagementClientPerformConnectivityCheckAsyncHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ApiManagementGateway { + beginCreateOrUpdate(resourceGroupName: string, gatewayName: string, parameters: ApiManagementGatewayResource, options?: ApiManagementGatewayCreateOrUpdateOptionalParams): Promise, ApiManagementGatewayCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, gatewayName: string, parameters: ApiManagementGatewayResource, options?: ApiManagementGatewayCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, gatewayName: string, options?: ApiManagementGatewayDeleteOptionalParams): Promise, ApiManagementGatewayDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, gatewayName: string, options?: ApiManagementGatewayDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, gatewayName: string, parameters: ApiManagementGatewayUpdateParameters, options?: ApiManagementGatewayUpdateOptionalParams): Promise, ApiManagementGatewayUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, gatewayName: string, parameters: ApiManagementGatewayUpdateParameters, options?: ApiManagementGatewayUpdateOptionalParams): Promise; + get(resourceGroupName: string, gatewayName: string, options?: ApiManagementGatewayGetOptionalParams): Promise; + list(options?: ApiManagementGatewayListOptionalParams): PagedAsyncIterableIterator; + listByResourceGroup(resourceGroupName: string, options?: ApiManagementGatewayListByResourceGroupOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ApiManagementGatewayBaseProperties { + backend?: BackendConfiguration; + configurationApi?: GatewayConfigurationApi; + readonly createdAtUtc?: Date; + frontend?: FrontendConfiguration; + readonly provisioningState?: string; + readonly targetProvisioningState?: string; +} + +// @public +export interface ApiManagementGatewayCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ApiManagementGatewayCreateOrUpdateResponse = ApiManagementGatewayResource; + +// @public +export interface ApiManagementGatewayDeleteHeaders { + location?: string; +} + +// @public +export interface ApiManagementGatewayDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ApiManagementGatewayDeleteResponse = ApiManagementGatewayDeleteHeaders & ApiManagementGatewayResource; + +// @public +export interface ApiManagementGatewayGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiManagementGatewayGetResponse = ApiManagementGatewayResource; + +// @public +export interface ApiManagementGatewayListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiManagementGatewayListByResourceGroupNextResponse = ApiManagementGatewayListResult; + +// @public +export interface ApiManagementGatewayListByResourceGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiManagementGatewayListByResourceGroupResponse = ApiManagementGatewayListResult; + +// @public +export interface ApiManagementGatewayListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiManagementGatewayListNextResponse = ApiManagementGatewayListResult; + +// @public +export interface ApiManagementGatewayListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiManagementGatewayListResponse = ApiManagementGatewayListResult; + +// @public +export interface ApiManagementGatewayListResult { + nextLink?: string; + value: ApiManagementGatewayResource[]; +} + +// @public +export interface ApiManagementGatewayProperties extends ApiManagementGatewayBaseProperties { +} + +// @public +export interface ApiManagementGatewayResource extends ApimResource { + backend?: BackendConfiguration; + configurationApi?: GatewayConfigurationApi; + readonly createdAtUtc?: Date; + readonly etag?: string; + frontend?: FrontendConfiguration; + location: string; + readonly provisioningState?: string; + sku: ApiManagementGatewaySkuProperties; + readonly systemData?: SystemData; + readonly targetProvisioningState?: string; +} + +// @public +export interface ApiManagementGatewaySkuProperties { + capacity?: number; + name: SkuType; +} + +// @public +export interface ApiManagementGatewaySkuPropertiesForPatch { + capacity?: number; + name?: SkuType; +} + +// @public +export interface ApiManagementGatewayUpdateHeaders { + location?: string; +} + +// @public +export interface ApiManagementGatewayUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ApiManagementGatewayUpdateParameters extends ApimResource { + backend?: BackendConfiguration; + configurationApi?: GatewayConfigurationApi; + readonly createdAtUtc?: Date; + readonly etag?: string; + frontend?: FrontendConfiguration; + readonly provisioningState?: string; + sku?: ApiManagementGatewaySkuPropertiesForPatch; + readonly targetProvisioningState?: string; +} + +// @public +export interface ApiManagementGatewayUpdateProperties extends ApiManagementGatewayBaseProperties { +} + +// @public +export type ApiManagementGatewayUpdateResponse = ApiManagementGatewayResource; + // @public export interface ApiManagementOperations { list(options?: ApiManagementOperationsListOptionalParams): PagedAsyncIterableIterator; @@ -902,16 +1177,19 @@ export interface ApiManagementServiceBaseProperties { additionalLocations?: AdditionalLocation[]; apiVersionConstraint?: ApiVersionConstraint; certificates?: CertificateConfiguration[]; + configurationApi?: ConfigurationApi; readonly createdAtUtc?: Date; customProperties?: { [propertyName: string]: string; }; + developerPortalStatus?: DeveloperPortalStatus; readonly developerPortalUrl?: string; disableGateway?: boolean; enableClientCertificate?: boolean; readonly gatewayRegionalUrl?: string; readonly gatewayUrl?: string; hostnameConfigurations?: HostnameConfiguration[]; + legacyPortalStatus?: LegacyPortalStatus; readonly managementApiUrl?: string; natGatewayState?: NatGatewayState; notificationSenderEmail?: string; @@ -952,6 +1230,11 @@ export interface ApiManagementServiceCreateOrUpdateOptionalParams extends coreCl // @public export type ApiManagementServiceCreateOrUpdateResponse = ApiManagementServiceResource; +// @public +export interface ApiManagementServiceDeleteHeaders { + location?: string; +} + // @public export interface ApiManagementServiceDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1041,6 +1324,7 @@ export interface ApiManagementServiceMigrateToStv2Headers { // @public export interface ApiManagementServiceMigrateToStv2OptionalParams extends coreClient.OperationOptions { + parameters?: MigrateToStv2Contract; resumeFrom?: string; updateIntervalInMs?: number; } @@ -1066,10 +1350,12 @@ export interface ApiManagementServiceResource extends ApimResource { additionalLocations?: AdditionalLocation[]; apiVersionConstraint?: ApiVersionConstraint; certificates?: CertificateConfiguration[]; + configurationApi?: ConfigurationApi; readonly createdAtUtc?: Date; customProperties?: { [propertyName: string]: string; }; + developerPortalStatus?: DeveloperPortalStatus; readonly developerPortalUrl?: string; disableGateway?: boolean; enableClientCertificate?: boolean; @@ -1078,6 +1364,7 @@ export interface ApiManagementServiceResource extends ApimResource { readonly gatewayUrl?: string; hostnameConfigurations?: HostnameConfiguration[]; identity?: ApiManagementServiceIdentity; + legacyPortalStatus?: LegacyPortalStatus; location: string; readonly managementApiUrl?: string; natGatewayState?: NatGatewayState; @@ -1143,6 +1430,11 @@ export interface ApiManagementServiceSkusListAvailableServiceSkusOptionalParams // @public export type ApiManagementServiceSkusListAvailableServiceSkusResponse = ResourceSkuResults; +// @public +export interface ApiManagementServiceUpdateHeaders { + location?: string; +} + // @public export interface ApiManagementServiceUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1154,10 +1446,12 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { additionalLocations?: AdditionalLocation[]; apiVersionConstraint?: ApiVersionConstraint; certificates?: CertificateConfiguration[]; + configurationApi?: ConfigurationApi; readonly createdAtUtc?: Date; customProperties?: { [propertyName: string]: string; }; + developerPortalStatus?: DeveloperPortalStatus; readonly developerPortalUrl?: string; disableGateway?: boolean; enableClientCertificate?: boolean; @@ -1166,6 +1460,7 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { readonly gatewayUrl?: string; hostnameConfigurations?: HostnameConfiguration[]; identity?: ApiManagementServiceIdentity; + legacyPortalStatus?: LegacyPortalStatus; readonly managementApiUrl?: string; natGatewayState?: NatGatewayState; notificationSenderEmail?: string; @@ -1685,7 +1980,9 @@ export interface ApiSchema { // @public export interface ApiSchemaCreateOrUpdateHeaders { + azureAsyncOperation?: string; eTag?: string; + location?: string; } // @public @@ -2137,6 +2434,7 @@ export interface AuthorizationAccessPolicyCollection { // @public export interface AuthorizationAccessPolicyContract extends ProxyResource { + appIds?: string[]; objectId?: string; tenantId?: string; } @@ -2598,13 +2896,26 @@ export interface BackendAuthorizationHeaderCredentials { // @public export interface BackendBaseParameters { + circuitBreaker?: BackendCircuitBreaker; credentials?: BackendCredentialsContract; description?: string; + // (undocumented) + pool?: BackendBaseParametersPool; properties?: BackendProperties; proxy?: BackendProxyContract; resourceId?: string; title?: string; tls?: BackendTlsProperties; + type?: BackendType; +} + +// @public (undocumented) +export interface BackendBaseParametersPool extends BackendPool { +} + +// @public +export interface BackendCircuitBreaker { + rules?: CircuitBreakerRule[]; } // @public @@ -2614,16 +2925,25 @@ export interface BackendCollection { value?: BackendContract[]; } +// @public +export interface BackendConfiguration { + subnet?: BackendSubnetConfiguration; +} + // @public export interface BackendContract extends ProxyResource { + circuitBreaker?: BackendCircuitBreaker; credentials?: BackendCredentialsContract; description?: string; + // (undocumented) + pool?: BackendBaseParametersPool; properties?: BackendProperties; protocol?: BackendProtocol; proxy?: BackendProxyContract; resourceId?: string; title?: string; tls?: BackendTlsProperties; + typePropertiesType?: BackendType; url?: string; } @@ -2704,6 +3024,16 @@ export interface BackendListByServiceOptionalParams extends coreClient.Operation // @public export type BackendListByServiceResponse = BackendCollection; +// @public +export interface BackendPool { + services?: BackendPoolItem[]; +} + +// @public +export interface BackendPoolItem { + id: string; +} + // @public export interface BackendProperties { serviceFabricCluster?: BackendServiceFabricClusterProperties; @@ -2739,12 +3069,20 @@ export interface BackendServiceFabricClusterProperties { serverX509Names?: X509CertificateName[]; } +// @public +export interface BackendSubnetConfiguration { + id?: string; +} + // @public export interface BackendTlsProperties { validateCertificateChain?: boolean; validateCertificateName?: boolean; } +// @public +export type BackendType = string; + // @public export interface BackendUpdateHeaders { eTag?: string; @@ -2762,14 +3100,18 @@ export interface BackendUpdateParameterProperties extends BackendBaseParameters // @public export interface BackendUpdateParameters { + circuitBreaker?: BackendCircuitBreaker; credentials?: BackendCredentialsContract; description?: string; + // (undocumented) + pool?: BackendBaseParametersPool; properties?: BackendProperties; protocol?: BackendProtocol; proxy?: BackendProxyContract; resourceId?: string; title?: string; tls?: BackendTlsProperties; + type?: BackendType; url?: string; } @@ -3017,6 +3359,22 @@ export type CertificateSource = string; // @public export type CertificateStatus = string; +// @public +export interface CircuitBreakerFailureCondition { + count?: number; + errorReasons?: string[]; + interval?: string; + percentage?: number; + statusCodeRanges?: FailureStatusCodeRange[]; +} + +// @public +export interface CircuitBreakerRule { + failureCondition?: CircuitBreakerFailureCondition; + name?: string; + tripDuration?: string; +} + // @public export type ClientAuthenticationMethod = string; @@ -3025,6 +3383,11 @@ export interface ClientSecretContract { clientSecret?: string; } +// @public +export interface ConfigurationApi { + legacyApi?: LegacyApiState; +} + // @public export type ConfigurationIdName = string; @@ -3392,6 +3755,9 @@ export interface DeployConfigurationParameters { force?: boolean; } +// @public +export type DeveloperPortalStatus = string; + // @public export interface Diagnostic { createOrUpdate(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: DiagnosticContract, options?: DiagnosticCreateOrUpdateOptionalParams): Promise; @@ -3711,6 +4077,21 @@ export interface EndpointDetail { region?: string; } +// @public +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} + +// @public +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; +} + // @public export interface ErrorFieldContract { code?: string; @@ -3725,6 +4106,11 @@ export interface ErrorResponse { message?: string; } +// @public +export interface ErrorResponseAutoGenerated { + error?: ErrorDetail; +} + // @public export interface ErrorResponseBody { code?: string; @@ -3741,6 +4127,17 @@ export type ExportFormat = string; // @public export type ExportResultFormat = string; +// @public +export interface FailureStatusCodeRange { + max?: number; + min?: number; +} + +// @public +export interface FrontendConfiguration { + readonly defaultHostname?: string; +} + // @public export interface Gateway { createOrUpdate(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: GatewayContract, options?: GatewayCreateOrUpdateOptionalParams): Promise; @@ -3748,8 +4145,11 @@ export interface Gateway { generateToken(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: GatewayTokenRequestContract, options?: GatewayGenerateTokenOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, gatewayId: string, options?: GatewayGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, gatewayId: string, options?: GatewayGetEntityTagOptionalParams): Promise; + invalidateDebugCredentials(resourceGroupName: string, serviceName: string, gatewayId: string, options?: GatewayInvalidateDebugCredentialsOptionalParams): Promise; listByService(resourceGroupName: string, serviceName: string, options?: GatewayListByServiceOptionalParams): PagedAsyncIterableIterator; + listDebugCredentials(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: GatewayListDebugCredentialsContract, options?: GatewayListDebugCredentialsOptionalParams): Promise; listKeys(resourceGroupName: string, serviceName: string, gatewayId: string, options?: GatewayListKeysOptionalParams): Promise; + listTrace(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: GatewayListTraceContract, options?: GatewayListTraceOptionalParams): Promise; regenerateKey(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: GatewayKeyRegenerationRequestContract, options?: GatewayRegenerateKeyOptionalParams): Promise; update(resourceGroupName: string, serviceName: string, gatewayId: string, ifMatch: string, parameters: GatewayContract, options?: GatewayUpdateOptionalParams): Promise; } @@ -3888,6 +4288,11 @@ export interface GatewayCollection { readonly value?: GatewayContract[]; } +// @public +export interface GatewayConfigurationApi { + readonly hostname?: string; +} + // @public export interface GatewayContract extends ProxyResource { description?: string; @@ -3907,6 +4312,11 @@ export interface GatewayCreateOrUpdateOptionalParams extends coreClient.Operatio // @public export type GatewayCreateOrUpdateResponse = GatewayCreateOrUpdateHeaders & GatewayContract; +// @public +export interface GatewayDebugCredentialsContract { + token?: string; +} + // @public export interface GatewayDeleteOptionalParams extends coreClient.OperationOptions { } @@ -4025,6 +4435,10 @@ export interface GatewayHostnameConfigurationListByServiceOptionalParams extends // @public export type GatewayHostnameConfigurationListByServiceResponse = GatewayHostnameConfigurationCollection; +// @public +export interface GatewayInvalidateDebugCredentialsOptionalParams extends coreClient.OperationOptions { +} + // @public export interface GatewayKeyRegenerationRequestContract { keyType: KeyType_2; @@ -4053,6 +4467,23 @@ export interface GatewayListByServiceOptionalParams extends coreClient.Operation // @public export type GatewayListByServiceResponse = GatewayCollection; +// @public +export interface GatewayListDebugCredentialsContract { + apiId: string; + credentialsExpireAfter?: string; + purposes: GatewayListDebugCredentialsContractPurpose[]; +} + +// @public +export type GatewayListDebugCredentialsContractPurpose = string; + +// @public +export interface GatewayListDebugCredentialsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewayListDebugCredentialsResponse = GatewayDebugCredentialsContract; + // @public export interface GatewayListKeysHeaders { eTag?: string; @@ -4066,7 +4497,26 @@ export interface GatewayListKeysOptionalParams extends coreClient.OperationOptio export type GatewayListKeysResponse = GatewayListKeysHeaders & GatewayKeysContract; // @public -export interface GatewayRegenerateKeyOptionalParams extends coreClient.OperationOptions { +export interface GatewayListTraceContract { + traceId?: string; +} + +// @public +export interface GatewayListTraceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewayListTraceResponse = { + [propertyName: string]: any; +}; + +// @public +export interface GatewayRegenerateKeyOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface GatewaySku { + name?: SkuType; } // @public @@ -4121,13 +4571,16 @@ export interface GlobalSchemaCollection { export interface GlobalSchemaContract extends ProxyResource { description?: string; document?: Record; + readonly provisioningState?: string; schemaType?: SchemaType; value?: any; } // @public export interface GlobalSchemaCreateOrUpdateHeaders { + azureAsyncOperation?: string; eTag?: string; + location?: string; } // @public @@ -4848,6 +5301,9 @@ export interface KeyVaultLastAccessStatusContractProperties { timeStampUtc?: Date; } +// @public +export type KeyVaultRefreshState = string; + // @public export enum KnownAccessIdName { Access = "access", @@ -4877,7 +5333,9 @@ export enum KnownApimIdentityType { // @public export enum KnownApiType { Graphql = "graphql", + Grpc = "grpc", Http = "http", + Odata = "odata", Soap = "soap", Websocket = "websocket" } @@ -4906,6 +5364,12 @@ export enum KnownBackendProtocol { Soap = "soap" } +// @public +export enum KnownBackendType { + Pool = "Pool", + Single = "Single" +} + // @public export enum KnownBearerTokenSendingMethod { AuthorizationHeader = "authorizationHeader", @@ -4981,6 +5445,10 @@ export enum KnownConnectivityStatusType { // @public export enum KnownContentFormat { GraphqlLink = "graphql-link", + Grpc = "grpc", + GrpcLink = "grpc-link", + Odata = "odata", + OdataLink = "odata-link", Openapi = "openapi", OpenapiJson = "openapi+json", OpenapiJsonLink = "openapi+json-link", @@ -5007,6 +5475,12 @@ export enum KnownDataMaskingMode { Mask = "Mask" } +// @public +export enum KnownDeveloperPortalStatus { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownExportApi { True = "true" @@ -5029,6 +5503,11 @@ export enum KnownExportResultFormat { Wsdl = "wsdl-link+xml" } +// @public +export enum KnownGatewayListDebugCredentialsContractPurpose { + Tracing = "tracing" +} + // @public export enum KnownGrantType { AuthorizationCode = "authorizationCode", @@ -5039,6 +5518,7 @@ export enum KnownGrantType { // @public export enum KnownHostnameType { + ConfigurationApi = "ConfigurationApi", DeveloperPortal = "DeveloperPortal", Management = "Management", Portal = "Portal", @@ -5076,6 +5556,24 @@ export enum KnownIssueType { UserDefinedRoute = "UserDefinedRoute" } +// @public +export enum KnownKeyVaultRefreshState { + False = "false", + True = "true" +} + +// @public +export enum KnownLegacyApiState { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownLegacyPortalStatus { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownLoggerType { ApplicationInsights = "applicationInsights", @@ -5089,6 +5587,12 @@ export enum KnownMethod { Post = "POST" } +// @public +export enum KnownMigrateToStv2Mode { + NewIP = "NewIP", + PreserveIp = "PreserveIp" +} + // @public export enum KnownNatGatewayState { Disabled = "Disabled", @@ -5130,9 +5634,17 @@ export enum KnownPlatformVersion { Mtv1 = "mtv1", Stv1 = "stv1", Stv2 = "stv2", + Stv21 = "stv2.1", Undetermined = "undetermined" } +// @public +export enum KnownPolicyComplianceState { + Compliant = "Compliant", + NonCompliant = "NonCompliant", + Pending = "Pending" +} + // @public export enum KnownPolicyContentFormat { Rawxml = "rawxml", @@ -5158,6 +5670,12 @@ export enum KnownPolicyIdName { Policy = "policy" } +// @public +export enum KnownPolicyRestrictionRequireBase { + False = "false", + True = "true" +} + // @public export enum KnownPortalRevisionStatus { Completed = "completed", @@ -5238,17 +5756,14 @@ export enum KnownSeverity { // @public export enum KnownSkuType { - Basic = "Basic", - Consumption = "Consumption", - Developer = "Developer", - Isolated = "Isolated", - Premium = "Premium", Standard = "Standard" } // @public export enum KnownSoapApiType { GraphQL = "graphql", + GRPC = "grpc", + OData = "odata", SoapPassThrough = "soap", SoapToRest = "http", WebSocket = "websocket" @@ -5316,6 +5831,12 @@ export enum KnownVirtualNetworkType { None = "None" } +// @public +export type LegacyApiState = string; + +// @public +export type LegacyPortalStatus = string; + // @public export interface Logger { createOrUpdate(resourceGroupName: string, serviceName: string, loggerId: string, parameters: LoggerContract, options?: LoggerCreateOrUpdateOptionalParams): Promise; @@ -5430,6 +5951,14 @@ export type LoggerUpdateResponse = LoggerUpdateHeaders & LoggerContract; // @public export type Method = string; +// @public +export interface MigrateToStv2Contract { + mode?: MigrateToStv2Mode; +} + +// @public +export type MigrateToStv2Mode = string; + // @public export type NameAvailabilityReason = "Valid" | "Invalid" | "AlreadyExists"; @@ -5459,6 +5988,7 @@ export interface NamedValueCollection { export interface NamedValueContract extends ProxyResource { displayName?: string; keyVault?: KeyVaultContractProperties; + readonly provisioningState?: string; secret?: boolean; tags?: string[]; value?: string; @@ -5468,6 +5998,7 @@ export interface NamedValueContract extends ProxyResource { export interface NamedValueContractProperties extends NamedValueEntityBaseParameters { displayName: string; keyVault?: KeyVaultContractProperties; + readonly provisioningState?: string; value?: string; } @@ -5489,7 +6020,9 @@ export interface NamedValueCreateContractProperties extends NamedValueEntityBase // @public export interface NamedValueCreateOrUpdateHeaders { + azureAsyncOperation?: string; eTag?: string; + location?: string; } // @public @@ -6119,7 +6652,7 @@ export interface Policy { delete(resourceGroupName: string, serviceName: string, policyId: PolicyIdName, ifMatch: string, options?: PolicyDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, policyId: PolicyIdName, options?: PolicyGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, policyId: PolicyIdName, options?: PolicyGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: PolicyListByServiceOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: PolicyListByServiceOptionalParams): PagedAsyncIterableIterator; } // @public @@ -6129,6 +6662,9 @@ export interface PolicyCollection { value?: PolicyContract[]; } +// @public +export type PolicyComplianceState = string; + // @public export type PolicyContentFormat = string; @@ -6190,7 +6726,7 @@ export interface PolicyFragment { delete(resourceGroupName: string, serviceName: string, id: string, ifMatch: string, options?: PolicyFragmentDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, id: string, options?: PolicyFragmentGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, id: string, options?: PolicyFragmentGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: PolicyFragmentListByServiceOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: PolicyFragmentListByServiceOptionalParams): PagedAsyncIterableIterator; listReferences(resourceGroupName: string, serviceName: string, id: string, options?: PolicyFragmentListReferencesOptionalParams): Promise; } @@ -6208,12 +6744,15 @@ export type PolicyFragmentContentFormat = string; export interface PolicyFragmentContract extends ProxyResource { description?: string; format?: PolicyFragmentContentFormat; + readonly provisioningState?: string; value?: string; } // @public export interface PolicyFragmentCreateOrUpdateHeaders { + azureAsyncOperation?: string; eTag?: string; + location?: string; } // @public @@ -6255,6 +6794,13 @@ export interface PolicyFragmentGetOptionalParams extends coreClient.OperationOpt // @public export type PolicyFragmentGetResponse = PolicyFragmentGetHeaders & PolicyFragmentContract; +// @public +export interface PolicyFragmentListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyFragmentListByServiceNextResponse = PolicyFragmentCollection; + // @public export interface PolicyFragmentListByServiceOptionalParams extends coreClient.OperationOptions { filter?: string; @@ -6303,6 +6849,13 @@ export type PolicyGetResponse = PolicyGetHeaders & PolicyContract; // @public export type PolicyIdName = string; +// @public +export interface PolicyListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyListByServiceNextResponse = PolicyCollection; + // @public export interface PolicyListByServiceOptionalParams extends coreClient.OperationOptions { } @@ -6310,15 +6863,147 @@ export interface PolicyListByServiceOptionalParams extends coreClient.OperationO // @public export type PolicyListByServiceResponse = PolicyCollection; +// @public +export interface PolicyRestriction { + createOrUpdate(resourceGroupName: string, serviceName: string, policyRestrictionId: string, parameters: PolicyRestrictionContract, options?: PolicyRestrictionCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, policyRestrictionId: string, options?: PolicyRestrictionDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, policyRestrictionId: string, options?: PolicyRestrictionGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, policyRestrictionId: string, options?: PolicyRestrictionGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: PolicyRestrictionListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, policyRestrictionId: string, ifMatch: string, parameters: PolicyRestrictionUpdateContract, options?: PolicyRestrictionUpdateOptionalParams): Promise; +} + +// @public +export interface PolicyRestrictionCollection { + nextLink?: string; + // (undocumented) + value?: PolicyRestrictionContract[]; +} + +// @public +export interface PolicyRestrictionContract extends ProxyResource { + requireBase?: PolicyRestrictionRequireBase; + scope?: string; +} + +// @public +export interface PolicyRestrictionCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface PolicyRestrictionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type PolicyRestrictionCreateOrUpdateResponse = PolicyRestrictionCreateOrUpdateHeaders & PolicyRestrictionContract; + +// @public +export interface PolicyRestrictionDeleteOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export interface PolicyRestrictionGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface PolicyRestrictionGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyRestrictionGetEntityTagResponse = PolicyRestrictionGetEntityTagHeaders; + +// @public +export interface PolicyRestrictionGetHeaders { + eTag?: string; +} + +// @public +export interface PolicyRestrictionGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyRestrictionGetResponse = PolicyRestrictionGetHeaders & PolicyRestrictionContract; + +// @public +export interface PolicyRestrictionListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyRestrictionListByServiceNextResponse = PolicyRestrictionCollection; + +// @public +export interface PolicyRestrictionListByServiceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyRestrictionListByServiceResponse = PolicyRestrictionCollection; + +// @public +export type PolicyRestrictionRequireBase = string; + +// @public +export interface PolicyRestrictionUpdateContract { + requireBase?: PolicyRestrictionRequireBase; + scope?: string; +} + +// @public +export interface PolicyRestrictionUpdateHeaders { + eTag?: string; +} + +// @public +export interface PolicyRestrictionUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyRestrictionUpdateResponse = PolicyRestrictionUpdateHeaders & PolicyRestrictionContract; + +// @public +export interface PolicyRestrictionValidations { + beginByService(resourceGroupName: string, serviceName: string, options?: PolicyRestrictionValidationsByServiceOptionalParams): Promise, PolicyRestrictionValidationsByServiceResponse>>; + beginByServiceAndWait(resourceGroupName: string, serviceName: string, options?: PolicyRestrictionValidationsByServiceOptionalParams): Promise; +} + +// @public +export interface PolicyRestrictionValidationsByServiceHeaders { + location?: string; +} + +// @public +export interface PolicyRestrictionValidationsByServiceOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type PolicyRestrictionValidationsByServiceResponse = OperationResultContract; + // @public export type PolicyScopeContract = "Tenant" | "Product" | "Api" | "Operation" | "All"; +// @public +export interface PolicyWithComplianceCollection { + nextLink?: string; + value?: PolicyWithComplianceContract[]; +} + +// @public +export interface PolicyWithComplianceContract extends ProxyResource { + complianceState?: PolicyComplianceState; + referencePolicyId?: string; +} + // @public export interface PortalConfig { createOrUpdate(resourceGroupName: string, serviceName: string, portalConfigId: string, ifMatch: string, parameters: PortalConfigContract, options?: PortalConfigCreateOrUpdateOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, portalConfigId: string, options?: PortalConfigGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, portalConfigId: string, options?: PortalConfigGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: PortalConfigListByServiceOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: PortalConfigListByServiceOptionalParams): PagedAsyncIterableIterator; update(resourceGroupName: string, serviceName: string, portalConfigId: string, ifMatch: string, parameters: PortalConfigContract, options?: PortalConfigUpdateOptionalParams): Promise; } @@ -6391,6 +7076,13 @@ export interface PortalConfigGetOptionalParams extends coreClient.OperationOptio // @public export type PortalConfigGetResponse = PortalConfigGetHeaders & PortalConfigContract; +// @public +export interface PortalConfigListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PortalConfigListByServiceNextResponse = PortalConfigCollection; + // @public export interface PortalConfigListByServiceOptionalParams extends coreClient.OperationOptions { } @@ -6451,6 +7143,7 @@ export interface PortalRevisionContract extends ProxyResource { readonly createdDateTime?: Date; description?: string; isCurrent?: boolean; + readonly provisioningState?: string; readonly status?: PortalRevisionStatus; readonly statusDetails?: string; readonly updatedDateTime?: Date; @@ -6458,7 +7151,9 @@ export interface PortalRevisionContract extends ProxyResource { // @public export interface PortalRevisionCreateOrUpdateHeaders { + azureAsyncOperation?: string; eTag?: string; + location?: string; } // @public @@ -6590,6 +7285,11 @@ export interface PrivateEndpointConnection extends Resource { readonly provisioningState?: PrivateEndpointConnectionProvisioningState; } +// @public +export interface PrivateEndpointConnectionCreateOrUpdateHeaders { + location?: string; +} + // @public export interface PrivateEndpointConnectionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -6599,6 +7299,11 @@ export interface PrivateEndpointConnectionCreateOrUpdateOptionalParams extends c // @public export type PrivateEndpointConnectionCreateOrUpdateResponse = PrivateEndpointConnection; +// @public +export interface PrivateEndpointConnectionDeleteHeaders { + location?: string; +} + // @public export interface PrivateEndpointConnectionDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -6725,6 +7430,66 @@ export type ProductApiCreateOrUpdateResponse = ApiContract; export interface ProductApiDeleteOptionalParams extends coreClient.OperationOptions { } +// @public +export interface ProductApiLink { + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, apiLinkId: string, parameters: ProductApiLinkContract, options?: ProductApiLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, productId: string, apiLinkId: string, options?: ProductApiLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, productId: string, apiLinkId: string, options?: ProductApiLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: ProductApiLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ProductApiLinkCollection { + count?: number; + nextLink?: string; + value?: ProductApiLinkContract[]; +} + +// @public +export interface ProductApiLinkContract extends ProxyResource { + apiId?: string; +} + +// @public +export interface ProductApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductApiLinkCreateOrUpdateResponse = ProductApiLinkContract; + +// @public +export interface ProductApiLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ProductApiLinkGetHeaders { + eTag?: string; +} + +// @public +export interface ProductApiLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductApiLinkGetResponse = ProductApiLinkGetHeaders & ProductApiLinkContract; + +// @public +export interface ProductApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductApiLinkListByProductNextResponse = ProductApiLinkCollection; + +// @public +export interface ProductApiLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type ProductApiLinkListByProductResponse = ProductApiLinkCollection; + // @public export interface ProductApiListByProductNextOptionalParams extends coreClient.OperationOptions { } @@ -6846,58 +7611,118 @@ export interface ProductGroupDeleteOptionalParams extends coreClient.OperationOp } // @public -export interface ProductGroupListByProductNextOptionalParams extends coreClient.OperationOptions { +export interface ProductGroupLink { + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, groupLinkId: string, parameters: ProductGroupLinkContract, options?: ProductGroupLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, productId: string, groupLinkId: string, options?: ProductGroupLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, productId: string, groupLinkId: string, options?: ProductGroupLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: ProductGroupLinkListByProductOptionalParams): PagedAsyncIterableIterator; } // @public -export type ProductGroupListByProductNextResponse = GroupCollection; +export interface ProductGroupLinkCollection { + count?: number; + nextLink?: string; + value?: ProductGroupLinkContract[]; +} // @public -export interface ProductGroupListByProductOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; +export interface ProductGroupLinkContract extends ProxyResource { + groupId?: string; } // @public -export type ProductGroupListByProductResponse = GroupCollection; +export interface ProductGroupLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} // @public -export interface ProductListByServiceNextOptionalParams extends coreClient.OperationOptions { +export type ProductGroupLinkCreateOrUpdateResponse = ProductGroupLinkContract; + +// @public +export interface ProductGroupLinkDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export type ProductListByServiceNextResponse = ProductCollection; +export interface ProductGroupLinkGetHeaders { + eTag?: string; +} // @public -export interface ProductListByServiceOptionalParams extends coreClient.OperationOptions { - expandGroups?: boolean; - filter?: string; - skip?: number; - tags?: string; - top?: number; +export interface ProductGroupLinkGetOptionalParams extends coreClient.OperationOptions { } // @public -export type ProductListByServiceResponse = ProductCollection; +export type ProductGroupLinkGetResponse = ProductGroupLinkGetHeaders & ProductGroupLinkContract; // @public -export interface ProductListByTagsNextOptionalParams extends coreClient.OperationOptions { +export interface ProductGroupLinkListByProductNextOptionalParams extends coreClient.OperationOptions { } // @public -export type ProductListByTagsNextResponse = TagResourceCollection; +export type ProductGroupLinkListByProductNextResponse = ProductGroupLinkCollection; // @public -export interface ProductListByTagsOptionalParams extends coreClient.OperationOptions { +export interface ProductGroupLinkListByProductOptionalParams extends coreClient.OperationOptions { filter?: string; - includeNotTaggedProducts?: boolean; skip?: number; top?: number; } // @public -export type ProductListByTagsResponse = TagResourceCollection; +export type ProductGroupLinkListByProductResponse = ProductGroupLinkCollection; + +// @public +export interface ProductGroupListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductGroupListByProductNextResponse = GroupCollection; + +// @public +export interface ProductGroupListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type ProductGroupListByProductResponse = GroupCollection; + +// @public +export interface ProductListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductListByServiceNextResponse = ProductCollection; + +// @public +export interface ProductListByServiceOptionalParams extends coreClient.OperationOptions { + expandGroups?: boolean; + filter?: string; + skip?: number; + tags?: string; + top?: number; +} + +// @public +export type ProductListByServiceResponse = ProductCollection; + +// @public +export interface ProductListByTagsNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductListByTagsNextResponse = TagResourceCollection; + +// @public +export interface ProductListByTagsOptionalParams extends coreClient.OperationOptions { + filter?: string; + includeNotTaggedProducts?: boolean; + skip?: number; + top?: number; +} + +// @public +export type ProductListByTagsResponse = TagResourceCollection; // @public export interface ProductPolicy { @@ -6905,7 +7730,7 @@ export interface ProductPolicy { delete(resourceGroupName: string, serviceName: string, productId: string, policyId: PolicyIdName, ifMatch: string, options?: ProductPolicyDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, productId: string, policyId: PolicyIdName, options?: ProductPolicyGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, productId: string, policyId: PolicyIdName, options?: ProductPolicyGetEntityTagOptionalParams): Promise; - listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: ProductPolicyListByProductOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: ProductPolicyListByProductOptionalParams): PagedAsyncIterableIterator; } // @public @@ -6950,6 +7775,13 @@ export interface ProductPolicyGetOptionalParams extends coreClient.OperationOpti // @public export type ProductPolicyGetResponse = ProductPolicyGetHeaders & PolicyContract; +// @public +export interface ProductPolicyListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductPolicyListByProductNextResponse = PolicyCollection; + // @public export interface ProductPolicyListByProductOptionalParams extends coreClient.OperationOptions { } @@ -7625,6 +8457,7 @@ export interface SchemaContract extends ProxyResource { components?: Record; contentType?: string; definitions?: Record; + readonly provisioningState?: string; value?: string; } @@ -7944,6 +8777,66 @@ export interface Tag { update(resourceGroupName: string, serviceName: string, tagId: string, ifMatch: string, parameters: TagCreateUpdateParameters, options?: TagUpdateOptionalParams): Promise; } +// @public +export interface TagApiLink { + createOrUpdate(resourceGroupName: string, serviceName: string, tagId: string, apiLinkId: string, parameters: TagApiLinkContract, options?: TagApiLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, tagId: string, apiLinkId: string, options?: TagApiLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, tagId: string, apiLinkId: string, options?: TagApiLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, tagId: string, options?: TagApiLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface TagApiLinkCollection { + count?: number; + nextLink?: string; + value?: TagApiLinkContract[]; +} + +// @public +export interface TagApiLinkContract extends ProxyResource { + apiId?: string; +} + +// @public +export interface TagApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagApiLinkCreateOrUpdateResponse = TagApiLinkContract; + +// @public +export interface TagApiLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface TagApiLinkGetHeaders { + eTag?: string; +} + +// @public +export interface TagApiLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagApiLinkGetResponse = TagApiLinkGetHeaders & TagApiLinkContract; + +// @public +export interface TagApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagApiLinkListByProductNextResponse = TagApiLinkCollection; + +// @public +export interface TagApiLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type TagApiLinkListByProductResponse = TagApiLinkCollection; + // @public export interface TagAssignToApiHeaders { eTag?: string; @@ -8217,6 +9110,126 @@ export interface TagListByServiceOptionalParams extends coreClient.OperationOpti // @public export type TagListByServiceResponse = TagCollection; +// @public +export interface TagOperationLink { + createOrUpdate(resourceGroupName: string, serviceName: string, tagId: string, operationLinkId: string, parameters: TagOperationLinkContract, options?: TagOperationLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, tagId: string, operationLinkId: string, options?: TagOperationLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, tagId: string, operationLinkId: string, options?: TagOperationLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, tagId: string, options?: TagOperationLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface TagOperationLinkCollection { + count?: number; + nextLink?: string; + value?: TagOperationLinkContract[]; +} + +// @public +export interface TagOperationLinkContract extends ProxyResource { + operationId?: string; +} + +// @public +export interface TagOperationLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagOperationLinkCreateOrUpdateResponse = TagOperationLinkContract; + +// @public +export interface TagOperationLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface TagOperationLinkGetHeaders { + eTag?: string; +} + +// @public +export interface TagOperationLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagOperationLinkGetResponse = TagOperationLinkGetHeaders & TagOperationLinkContract; + +// @public +export interface TagOperationLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagOperationLinkListByProductNextResponse = TagOperationLinkCollection; + +// @public +export interface TagOperationLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type TagOperationLinkListByProductResponse = TagOperationLinkCollection; + +// @public +export interface TagProductLink { + createOrUpdate(resourceGroupName: string, serviceName: string, tagId: string, productLinkId: string, parameters: TagProductLinkContract, options?: TagProductLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, tagId: string, productLinkId: string, options?: TagProductLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, tagId: string, productLinkId: string, options?: TagProductLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, tagId: string, options?: TagProductLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface TagProductLinkCollection { + count?: number; + nextLink?: string; + value?: TagProductLinkContract[]; +} + +// @public +export interface TagProductLinkContract extends ProxyResource { + productId?: string; +} + +// @public +export interface TagProductLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagProductLinkCreateOrUpdateResponse = TagProductLinkContract; + +// @public +export interface TagProductLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface TagProductLinkGetHeaders { + eTag?: string; +} + +// @public +export interface TagProductLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagProductLinkGetResponse = TagProductLinkGetHeaders & TagProductLinkContract; + +// @public +export interface TagProductLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagProductLinkListByProductNextResponse = TagProductLinkCollection; + +// @public +export interface TagProductLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type TagProductLinkListByProductResponse = TagProductLinkCollection; + // @public export interface TagResource { listByService(resourceGroupName: string, serviceName: string, options?: TagResourceListByServiceOptionalParams): PagedAsyncIterableIterator; @@ -8395,6 +9408,12 @@ export interface TenantConfiguration { getSyncState(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, options?: TenantConfigurationGetSyncStateOptionalParams): Promise; } +// @public +export interface TenantConfigurationDeployHeaders { + // (undocumented) + location?: string; +} + // @public export interface TenantConfigurationDeployOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -8411,6 +9430,12 @@ export interface TenantConfigurationGetSyncStateOptionalParams extends coreClien // @public export type TenantConfigurationGetSyncStateResponse = TenantConfigurationSyncStateContract; +// @public +export interface TenantConfigurationSaveHeaders { + // (undocumented) + location?: string; +} + // @public export interface TenantConfigurationSaveOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -8432,6 +9457,12 @@ export interface TenantConfigurationSyncStateContract extends ProxyResource { syncDate?: Date; } +// @public +export interface TenantConfigurationValidateHeaders { + // (undocumented) + location?: string; +} + // @public export interface TenantConfigurationValidateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -8505,8 +9536,9 @@ export type TranslateRequiredQueryParametersConduct = string; // @public export interface User { + beginDelete(resourceGroupName: string, serviceName: string, userId: string, ifMatch: string, options?: UserDeleteOptionalParams): Promise, UserDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, serviceName: string, userId: string, ifMatch: string, options?: UserDeleteOptionalParams): Promise; createOrUpdate(resourceGroupName: string, serviceName: string, userId: string, parameters: UserCreateParameters, options?: UserCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, userId: string, ifMatch: string, options?: UserDeleteOptionalParams): Promise; generateSsoUrl(resourceGroupName: string, serviceName: string, userId: string, options?: UserGenerateSsoUrlOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, userId: string, options?: UserGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, userId: string, options?: UserGetEntityTagOptionalParams): Promise; @@ -8590,13 +9622,24 @@ export interface UserCreateParameters { state?: UserState; } +// @public +export interface UserDeleteHeaders { + azureAsyncOperation?: string; + location?: string; +} + // @public export interface UserDeleteOptionalParams extends coreClient.OperationOptions { appType?: AppType; deleteSubscriptions?: boolean; notify?: boolean; + resumeFrom?: string; + updateIntervalInMs?: number; } +// @public +export type UserDeleteResponse = UserDeleteHeaders; + // @public export interface UserEntityBaseParameters { identities?: UserIdentityContract[]; @@ -8837,6 +9880,1806 @@ export interface WikiUpdateContract { documents?: WikiDocumentationContract[]; } +// @public +export interface Workspace { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, parameters: WorkspaceContract, options?: WorkspaceCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, ifMatch: string, options?: WorkspaceDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: WorkspaceListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, ifMatch: string, parameters: WorkspaceContract, options?: WorkspaceUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceApi { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, parameters: ApiCreateOrUpdateParameter, options?: WorkspaceApiCreateOrUpdateOptionalParams): Promise, WorkspaceApiCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, parameters: ApiCreateOrUpdateParameter, options?: WorkspaceApiCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, ifMatch: string, options?: WorkspaceApiDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceApiListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, ifMatch: string, parameters: ApiUpdateContract, options?: WorkspaceApiUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceApiCreateOrUpdateHeaders { + azureAsyncOperation?: string; + eTag?: string; + location?: string; +} + +// @public +export interface WorkspaceApiCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceApiCreateOrUpdateResponse = WorkspaceApiCreateOrUpdateHeaders & ApiContract; + +// @public +export interface WorkspaceApiDeleteOptionalParams extends coreClient.OperationOptions { + deleteRevisions?: boolean; +} + +// @public +export interface WorkspaceApiExport { + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, format: ExportFormat, exportParam: ExportApi, options?: WorkspaceApiExportGetOptionalParams): Promise; +} + +// @public +export interface WorkspaceApiExportGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiExportGetResponse = ApiExportResult; + +// @public +export interface WorkspaceApiGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiGetEntityTagResponse = WorkspaceApiGetEntityTagHeaders; + +// @public +export interface WorkspaceApiGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiGetResponse = WorkspaceApiGetHeaders & ApiContract; + +// @public +export interface WorkspaceApiListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiListByServiceNextResponse = ApiCollection; + +// @public +export interface WorkspaceApiListByServiceOptionalParams extends coreClient.OperationOptions { + expandApiVersionSet?: boolean; + filter?: string; + skip?: number; + tags?: string; + top?: number; +} + +// @public +export type WorkspaceApiListByServiceResponse = ApiCollection; + +// @public +export interface WorkspaceApiOperation { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, parameters: OperationContract, options?: WorkspaceApiOperationCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, ifMatch: string, options?: WorkspaceApiOperationDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, options?: WorkspaceApiOperationGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, options?: WorkspaceApiOperationGetEntityTagOptionalParams): Promise; + listByApi(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiOperationListByApiOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, ifMatch: string, parameters: OperationUpdateContract, options?: WorkspaceApiOperationUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceApiOperationCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceApiOperationCreateOrUpdateResponse = WorkspaceApiOperationCreateOrUpdateHeaders & OperationContract; + +// @public +export interface WorkspaceApiOperationDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceApiOperationGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationGetEntityTagResponse = WorkspaceApiOperationGetEntityTagHeaders; + +// @public +export interface WorkspaceApiOperationGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationGetResponse = WorkspaceApiOperationGetHeaders & OperationContract; + +// @public +export interface WorkspaceApiOperationListByApiNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationListByApiNextResponse = OperationCollection; + +// @public +export interface WorkspaceApiOperationListByApiOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + tags?: string; + top?: number; +} + +// @public +export type WorkspaceApiOperationListByApiResponse = OperationCollection; + +// @public +export interface WorkspaceApiOperationPolicy { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, policyId: PolicyIdName, parameters: PolicyContract, options?: WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, policyId: PolicyIdName, ifMatch: string, options?: WorkspaceApiOperationPolicyDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, policyId: PolicyIdName, options?: WorkspaceApiOperationPolicyGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, policyId: PolicyIdName, options?: WorkspaceApiOperationPolicyGetEntityTagOptionalParams): Promise; + listByOperation(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, options?: WorkspaceApiOperationPolicyListByOperationOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceApiOperationPolicyCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceApiOperationPolicyCreateOrUpdateResponse = WorkspaceApiOperationPolicyCreateOrUpdateHeaders & PolicyContract; + +// @public +export interface WorkspaceApiOperationPolicyDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceApiOperationPolicyGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationPolicyGetEntityTagResponse = WorkspaceApiOperationPolicyGetEntityTagHeaders; + +// @public +export interface WorkspaceApiOperationPolicyGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationPolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; +} + +// @public +export type WorkspaceApiOperationPolicyGetResponse = WorkspaceApiOperationPolicyGetHeaders & PolicyContract; + +// @public +export interface WorkspaceApiOperationPolicyListByOperationNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationPolicyListByOperationNextResponse = PolicyCollection; + +// @public +export interface WorkspaceApiOperationPolicyListByOperationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationPolicyListByOperationResponse = PolicyCollection; + +// @public +export interface WorkspaceApiOperationUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationUpdateResponse = WorkspaceApiOperationUpdateHeaders & OperationContract; + +// @public +export interface WorkspaceApiPolicy { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, policyId: PolicyIdName, parameters: PolicyContract, options?: WorkspaceApiPolicyCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, policyId: PolicyIdName, ifMatch: string, options?: WorkspaceApiPolicyDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, policyId: PolicyIdName, options?: WorkspaceApiPolicyGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, policyId: PolicyIdName, options?: WorkspaceApiPolicyGetEntityTagOptionalParams): Promise; + listByApi(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiPolicyListByApiOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceApiPolicyCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceApiPolicyCreateOrUpdateResponse = WorkspaceApiPolicyCreateOrUpdateHeaders & PolicyContract; + +// @public +export interface WorkspaceApiPolicyDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceApiPolicyGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiPolicyGetEntityTagResponse = WorkspaceApiPolicyGetEntityTagHeaders; + +// @public +export interface WorkspaceApiPolicyGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiPolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; +} + +// @public +export type WorkspaceApiPolicyGetResponse = WorkspaceApiPolicyGetHeaders & PolicyContract; + +// @public +export interface WorkspaceApiPolicyListByApiNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiPolicyListByApiNextResponse = PolicyCollection; + +// @public +export interface WorkspaceApiPolicyListByApiOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiPolicyListByApiResponse = PolicyCollection; + +// @public +export interface WorkspaceApiRelease { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, parameters: ApiReleaseContract, options?: WorkspaceApiReleaseCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, ifMatch: string, options?: WorkspaceApiReleaseDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, options?: WorkspaceApiReleaseGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, options?: WorkspaceApiReleaseGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiReleaseListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, ifMatch: string, parameters: ApiReleaseContract, options?: WorkspaceApiReleaseUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceApiReleaseCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiReleaseCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceApiReleaseCreateOrUpdateResponse = WorkspaceApiReleaseCreateOrUpdateHeaders & ApiReleaseContract; + +// @public +export interface WorkspaceApiReleaseDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceApiReleaseGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiReleaseGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiReleaseGetEntityTagResponse = WorkspaceApiReleaseGetEntityTagHeaders; + +// @public +export interface WorkspaceApiReleaseGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiReleaseGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiReleaseGetResponse = WorkspaceApiReleaseGetHeaders & ApiReleaseContract; + +// @public +export interface WorkspaceApiReleaseListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiReleaseListByServiceNextResponse = ApiReleaseCollection; + +// @public +export interface WorkspaceApiReleaseListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceApiReleaseListByServiceResponse = ApiReleaseCollection; + +// @public +export interface WorkspaceApiReleaseUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiReleaseUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiReleaseUpdateResponse = WorkspaceApiReleaseUpdateHeaders & ApiReleaseContract; + +// @public +export interface WorkspaceApiRevision { + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiRevisionListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceApiRevisionListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiRevisionListByServiceNextResponse = ApiRevisionCollection; + +// @public +export interface WorkspaceApiRevisionListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceApiRevisionListByServiceResponse = ApiRevisionCollection; + +// @public +export interface WorkspaceApiSchema { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, schemaId: string, parameters: SchemaContract, options?: WorkspaceApiSchemaCreateOrUpdateOptionalParams): Promise, WorkspaceApiSchemaCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, schemaId: string, parameters: SchemaContract, options?: WorkspaceApiSchemaCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, schemaId: string, ifMatch: string, options?: WorkspaceApiSchemaDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, schemaId: string, options?: WorkspaceApiSchemaGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, schemaId: string, options?: WorkspaceApiSchemaGetEntityTagOptionalParams): Promise; + listByApi(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiSchemaListByApiOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceApiSchemaCreateOrUpdateHeaders { + azureAsyncOperation?: string; + eTag?: string; + location?: string; +} + +// @public +export interface WorkspaceApiSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceApiSchemaCreateOrUpdateResponse = WorkspaceApiSchemaCreateOrUpdateHeaders & SchemaContract; + +// @public +export interface WorkspaceApiSchemaDeleteOptionalParams extends coreClient.OperationOptions { + force?: boolean; +} + +// @public +export interface WorkspaceApiSchemaGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiSchemaGetEntityTagResponse = WorkspaceApiSchemaGetEntityTagHeaders; + +// @public +export interface WorkspaceApiSchemaGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiSchemaGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiSchemaGetResponse = WorkspaceApiSchemaGetHeaders & SchemaContract; + +// @public +export interface WorkspaceApiSchemaListByApiNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiSchemaListByApiNextResponse = SchemaCollection; + +// @public +export interface WorkspaceApiSchemaListByApiOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceApiSchemaListByApiResponse = SchemaCollection; + +// @public +export interface WorkspaceApiUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiUpdateResponse = WorkspaceApiUpdateHeaders & ApiContract; + +// @public +export interface WorkspaceApiVersionSet { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, versionSetId: string, parameters: ApiVersionSetContract, options?: WorkspaceApiVersionSetCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, versionSetId: string, ifMatch: string, options?: WorkspaceApiVersionSetDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, versionSetId: string, options?: WorkspaceApiVersionSetGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, versionSetId: string, options?: WorkspaceApiVersionSetGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceApiVersionSetListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, versionSetId: string, ifMatch: string, parameters: ApiVersionSetUpdateParameters, options?: WorkspaceApiVersionSetUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceApiVersionSetCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiVersionSetCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceApiVersionSetCreateOrUpdateResponse = WorkspaceApiVersionSetCreateOrUpdateHeaders & ApiVersionSetContract; + +// @public +export interface WorkspaceApiVersionSetDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceApiVersionSetGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiVersionSetGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiVersionSetGetEntityTagResponse = WorkspaceApiVersionSetGetEntityTagHeaders; + +// @public +export interface WorkspaceApiVersionSetGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiVersionSetGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiVersionSetGetResponse = WorkspaceApiVersionSetGetHeaders & ApiVersionSetContract; + +// @public +export interface WorkspaceApiVersionSetListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiVersionSetListByServiceNextResponse = ApiVersionSetCollection; + +// @public +export interface WorkspaceApiVersionSetListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceApiVersionSetListByServiceResponse = ApiVersionSetCollection; + +// @public +export interface WorkspaceApiVersionSetUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiVersionSetUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiVersionSetUpdateResponse = WorkspaceApiVersionSetUpdateHeaders & ApiVersionSetContract; + +// @public +export interface WorkspaceCollection { + count?: number; + nextLink?: string; + value?: WorkspaceContract[]; +} + +// @public +export interface WorkspaceContract extends ProxyResource { + description?: string; + displayName?: string; +} + +// @public +export interface WorkspaceCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceCreateOrUpdateResponse = WorkspaceCreateOrUpdateHeaders & WorkspaceContract; + +// @public +export interface WorkspaceDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGetEntityTagResponse = WorkspaceGetEntityTagHeaders; + +// @public +export interface WorkspaceGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGetResponse = WorkspaceGetHeaders & WorkspaceContract; + +// @public +export interface WorkspaceGlobalSchema { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, schemaId: string, parameters: GlobalSchemaContract, options?: WorkspaceGlobalSchemaCreateOrUpdateOptionalParams): Promise, WorkspaceGlobalSchemaCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, schemaId: string, parameters: GlobalSchemaContract, options?: WorkspaceGlobalSchemaCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, schemaId: string, ifMatch: string, options?: WorkspaceGlobalSchemaDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, schemaId: string, options?: WorkspaceGlobalSchemaGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, schemaId: string, options?: WorkspaceGlobalSchemaGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceGlobalSchemaListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceGlobalSchemaCreateOrUpdateHeaders { + azureAsyncOperation?: string; + eTag?: string; + location?: string; +} + +// @public +export interface WorkspaceGlobalSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceGlobalSchemaCreateOrUpdateResponse = WorkspaceGlobalSchemaCreateOrUpdateHeaders & GlobalSchemaContract; + +// @public +export interface WorkspaceGlobalSchemaDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceGlobalSchemaGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGlobalSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGlobalSchemaGetEntityTagResponse = WorkspaceGlobalSchemaGetEntityTagHeaders; + +// @public +export interface WorkspaceGlobalSchemaGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGlobalSchemaGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGlobalSchemaGetResponse = WorkspaceGlobalSchemaGetHeaders & GlobalSchemaContract; + +// @public +export interface WorkspaceGlobalSchemaListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGlobalSchemaListByServiceNextResponse = GlobalSchemaCollection; + +// @public +export interface WorkspaceGlobalSchemaListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceGlobalSchemaListByServiceResponse = GlobalSchemaCollection; + +// @public +export interface WorkspaceGroup { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, parameters: GroupCreateParameters, options?: WorkspaceGroupCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, ifMatch: string, options?: WorkspaceGroupDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, options?: WorkspaceGroupGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, options?: WorkspaceGroupGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceGroupListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, ifMatch: string, parameters: GroupUpdateParameters, options?: WorkspaceGroupUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceGroupCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGroupCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceGroupCreateOrUpdateResponse = WorkspaceGroupCreateOrUpdateHeaders & GroupContract; + +// @public +export interface WorkspaceGroupDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceGroupGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGroupGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupGetEntityTagResponse = WorkspaceGroupGetEntityTagHeaders; + +// @public +export interface WorkspaceGroupGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGroupGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupGetResponse = WorkspaceGroupGetHeaders & GroupContract; + +// @public +export interface WorkspaceGroupListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupListByServiceNextResponse = GroupCollection; + +// @public +export interface WorkspaceGroupListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceGroupListByServiceResponse = GroupCollection; + +// @public +export interface WorkspaceGroupUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGroupUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupUpdateResponse = WorkspaceGroupUpdateHeaders & GroupContract; + +// @public +export interface WorkspaceGroupUser { + checkEntityExists(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, userId: string, options?: WorkspaceGroupUserCheckEntityExistsOptionalParams): Promise; + create(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, userId: string, options?: WorkspaceGroupUserCreateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, userId: string, options?: WorkspaceGroupUserDeleteOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, options?: WorkspaceGroupUserListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceGroupUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupUserCheckEntityExistsResponse = { + body: boolean; +}; + +// @public +export interface WorkspaceGroupUserCreateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupUserCreateResponse = UserContract; + +// @public +export interface WorkspaceGroupUserDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceGroupUserListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupUserListNextResponse = UserCollection; + +// @public +export interface WorkspaceGroupUserListOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceGroupUserListResponse = UserCollection; + +// @public +export interface WorkspaceListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceListByServiceNextResponse = WorkspaceCollection; + +// @public +export interface WorkspaceListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceListByServiceResponse = WorkspaceCollection; + +// @public +export interface WorkspaceNamedValue { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, parameters: NamedValueCreateContract, options?: WorkspaceNamedValueCreateOrUpdateOptionalParams): Promise, WorkspaceNamedValueCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, parameters: NamedValueCreateContract, options?: WorkspaceNamedValueCreateOrUpdateOptionalParams): Promise; + beginRefreshSecret(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, options?: WorkspaceNamedValueRefreshSecretOptionalParams): Promise, WorkspaceNamedValueRefreshSecretResponse>>; + beginRefreshSecretAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, options?: WorkspaceNamedValueRefreshSecretOptionalParams): Promise; + beginUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, options?: WorkspaceNamedValueUpdateOptionalParams): Promise, WorkspaceNamedValueUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, options?: WorkspaceNamedValueUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, ifMatch: string, options?: WorkspaceNamedValueDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, options?: WorkspaceNamedValueGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, options?: WorkspaceNamedValueGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceNamedValueListByServiceOptionalParams): PagedAsyncIterableIterator; + listValue(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, options?: WorkspaceNamedValueListValueOptionalParams): Promise; +} + +// @public +export interface WorkspaceNamedValueCreateOrUpdateHeaders { + azureAsyncOperation?: string; + eTag?: string; + location?: string; +} + +// @public +export interface WorkspaceNamedValueCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceNamedValueCreateOrUpdateResponse = WorkspaceNamedValueCreateOrUpdateHeaders & NamedValueContract; + +// @public +export interface WorkspaceNamedValueDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceNamedValueGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceNamedValueGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNamedValueGetEntityTagResponse = WorkspaceNamedValueGetEntityTagHeaders; + +// @public +export interface WorkspaceNamedValueGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceNamedValueGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNamedValueGetResponse = WorkspaceNamedValueGetHeaders & NamedValueContract; + +// @public +export interface WorkspaceNamedValueListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNamedValueListByServiceNextResponse = NamedValueCollection; + +// @public +export interface WorkspaceNamedValueListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + isKeyVaultRefreshFailed?: KeyVaultRefreshState; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceNamedValueListByServiceResponse = NamedValueCollection; + +// @public +export interface WorkspaceNamedValueListValueHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceNamedValueListValueOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNamedValueListValueResponse = WorkspaceNamedValueListValueHeaders & NamedValueSecretContract; + +// @public +export interface WorkspaceNamedValueRefreshSecretHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceNamedValueRefreshSecretOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceNamedValueRefreshSecretResponse = WorkspaceNamedValueRefreshSecretHeaders & NamedValueContract; + +// @public +export interface WorkspaceNamedValueUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceNamedValueUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceNamedValueUpdateResponse = WorkspaceNamedValueUpdateHeaders & NamedValueContract; + +// @public +export interface WorkspaceNotification { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, options?: WorkspaceNotificationCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, options?: WorkspaceNotificationGetOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceNotificationListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceNotificationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceNotificationCreateOrUpdateResponse = NotificationContract; + +// @public +export interface WorkspaceNotificationGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationGetResponse = NotificationContract; + +// @public +export interface WorkspaceNotificationListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationListByServiceNextResponse = NotificationCollection; + +// @public +export interface WorkspaceNotificationListByServiceOptionalParams extends coreClient.OperationOptions { + skip?: number; + top?: number; +} + +// @public +export type WorkspaceNotificationListByServiceResponse = NotificationCollection; + +// @public +export interface WorkspaceNotificationRecipientEmail { + checkEntityExists(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, email: string, options?: WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, email: string, options?: WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, email: string, options?: WorkspaceNotificationRecipientEmailDeleteOptionalParams): Promise; + listByNotification(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, options?: WorkspaceNotificationRecipientEmailListByNotificationOptionalParams): Promise; +} + +// @public +export interface WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationRecipientEmailCheckEntityExistsResponse = { + body: boolean; +}; + +// @public +export interface WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationRecipientEmailCreateOrUpdateResponse = RecipientEmailContract; + +// @public +export interface WorkspaceNotificationRecipientEmailDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceNotificationRecipientEmailListByNotificationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationRecipientEmailListByNotificationResponse = RecipientEmailCollection; + +// @public +export interface WorkspaceNotificationRecipientUser { + checkEntityExists(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, userId: string, options?: WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, userId: string, options?: WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, userId: string, options?: WorkspaceNotificationRecipientUserDeleteOptionalParams): Promise; + listByNotification(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, options?: WorkspaceNotificationRecipientUserListByNotificationOptionalParams): Promise; +} + +// @public +export interface WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationRecipientUserCheckEntityExistsResponse = { + body: boolean; +}; + +// @public +export interface WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationRecipientUserCreateOrUpdateResponse = RecipientUserContract; + +// @public +export interface WorkspaceNotificationRecipientUserDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceNotificationRecipientUserListByNotificationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationRecipientUserListByNotificationResponse = RecipientUserCollection; + +// @public +export interface WorkspacePolicy { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, policyId: PolicyIdName, parameters: PolicyContract, options?: WorkspacePolicyCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, policyId: PolicyIdName, ifMatch: string, options?: WorkspacePolicyDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, policyId: PolicyIdName, options?: WorkspacePolicyGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, policyId: PolicyIdName, options?: WorkspacePolicyGetEntityTagOptionalParams): Promise; + listByApi(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspacePolicyListByApiOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspacePolicyCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspacePolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspacePolicyCreateOrUpdateResponse = WorkspacePolicyCreateOrUpdateHeaders & PolicyContract; + +// @public +export interface WorkspacePolicyDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspacePolicyFragment { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, id: string, parameters: PolicyFragmentContract, options?: WorkspacePolicyFragmentCreateOrUpdateOptionalParams): Promise, WorkspacePolicyFragmentCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, id: string, parameters: PolicyFragmentContract, options?: WorkspacePolicyFragmentCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, id: string, ifMatch: string, options?: WorkspacePolicyFragmentDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, id: string, options?: WorkspacePolicyFragmentGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, id: string, options?: WorkspacePolicyFragmentGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspacePolicyFragmentListByServiceOptionalParams): PagedAsyncIterableIterator; + listReferences(resourceGroupName: string, serviceName: string, workspaceId: string, id: string, options?: WorkspacePolicyFragmentListReferencesOptionalParams): Promise; +} + +// @public +export interface WorkspacePolicyFragmentCreateOrUpdateHeaders { + azureAsyncOperation?: string; + eTag?: string; + location?: string; +} + +// @public +export interface WorkspacePolicyFragmentCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspacePolicyFragmentCreateOrUpdateResponse = WorkspacePolicyFragmentCreateOrUpdateHeaders & PolicyFragmentContract; + +// @public +export interface WorkspacePolicyFragmentDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspacePolicyFragmentGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspacePolicyFragmentGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacePolicyFragmentGetEntityTagResponse = WorkspacePolicyFragmentGetEntityTagHeaders; + +// @public +export interface WorkspacePolicyFragmentGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspacePolicyFragmentGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyFragmentContentFormat; +} + +// @public +export type WorkspacePolicyFragmentGetResponse = WorkspacePolicyFragmentGetHeaders & PolicyFragmentContract; + +// @public +export interface WorkspacePolicyFragmentListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacePolicyFragmentListByServiceNextResponse = PolicyFragmentCollection; + +// @public +export interface WorkspacePolicyFragmentListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + orderby?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspacePolicyFragmentListByServiceResponse = PolicyFragmentCollection; + +// @public +export interface WorkspacePolicyFragmentListReferencesOptionalParams extends coreClient.OperationOptions { + skip?: number; + top?: number; +} + +// @public +export type WorkspacePolicyFragmentListReferencesResponse = ResourceCollection; + +// @public +export interface WorkspacePolicyGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspacePolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacePolicyGetEntityTagResponse = WorkspacePolicyGetEntityTagHeaders; + +// @public +export interface WorkspacePolicyGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspacePolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; +} + +// @public +export type WorkspacePolicyGetResponse = WorkspacePolicyGetHeaders & PolicyContract; + +// @public +export interface WorkspacePolicyListByApiNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacePolicyListByApiNextResponse = PolicyCollection; + +// @public +export interface WorkspacePolicyListByApiOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacePolicyListByApiResponse = PolicyCollection; + +// @public +export interface WorkspaceProduct { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, parameters: ProductContract, options?: WorkspaceProductCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, ifMatch: string, options?: WorkspaceProductDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, options?: WorkspaceProductGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, options?: WorkspaceProductGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceProductListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, ifMatch: string, parameters: ProductUpdateParameters, options?: WorkspaceProductUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceProductApiLink { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, apiLinkId: string, parameters: ProductApiLinkContract, options?: WorkspaceProductApiLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, apiLinkId: string, options?: WorkspaceProductApiLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, apiLinkId: string, options?: WorkspaceProductApiLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, options?: WorkspaceProductApiLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceProductApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductApiLinkCreateOrUpdateResponse = ProductApiLinkContract; + +// @public +export interface WorkspaceProductApiLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceProductApiLinkGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductApiLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductApiLinkGetResponse = WorkspaceProductApiLinkGetHeaders & ProductApiLinkContract; + +// @public +export interface WorkspaceProductApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductApiLinkListByProductNextResponse = ProductApiLinkCollection; + +// @public +export interface WorkspaceProductApiLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceProductApiLinkListByProductResponse = ProductApiLinkCollection; + +// @public +export interface WorkspaceProductCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceProductCreateOrUpdateResponse = WorkspaceProductCreateOrUpdateHeaders & ProductContract; + +// @public +export interface WorkspaceProductDeleteOptionalParams extends coreClient.OperationOptions { + deleteSubscriptions?: boolean; +} + +// @public +export interface WorkspaceProductGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductGetEntityTagResponse = WorkspaceProductGetEntityTagHeaders; + +// @public +export interface WorkspaceProductGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductGetResponse = WorkspaceProductGetHeaders & ProductContract; + +// @public +export interface WorkspaceProductGroupLink { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, groupLinkId: string, parameters: ProductGroupLinkContract, options?: WorkspaceProductGroupLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, groupLinkId: string, options?: WorkspaceProductGroupLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, groupLinkId: string, options?: WorkspaceProductGroupLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, options?: WorkspaceProductGroupLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceProductGroupLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductGroupLinkCreateOrUpdateResponse = ProductGroupLinkContract; + +// @public +export interface WorkspaceProductGroupLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceProductGroupLinkGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductGroupLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductGroupLinkGetResponse = WorkspaceProductGroupLinkGetHeaders & ProductGroupLinkContract; + +// @public +export interface WorkspaceProductGroupLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductGroupLinkListByProductNextResponse = ProductGroupLinkCollection; + +// @public +export interface WorkspaceProductGroupLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceProductGroupLinkListByProductResponse = ProductGroupLinkCollection; + +// @public +export interface WorkspaceProductListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductListByServiceNextResponse = ProductCollection; + +// @public +export interface WorkspaceProductListByServiceOptionalParams extends coreClient.OperationOptions { + expandGroups?: boolean; + filter?: string; + skip?: number; + tags?: string; + top?: number; +} + +// @public +export type WorkspaceProductListByServiceResponse = ProductCollection; + +// @public +export interface WorkspaceProductPolicy { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, policyId: PolicyIdName, parameters: PolicyContract, options?: WorkspaceProductPolicyCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, policyId: PolicyIdName, ifMatch: string, options?: WorkspaceProductPolicyDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, policyId: PolicyIdName, options?: WorkspaceProductPolicyGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, policyId: PolicyIdName, options?: WorkspaceProductPolicyGetEntityTagOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, options?: WorkspaceProductPolicyListByProductOptionalParams): Promise; +} + +// @public +export interface WorkspaceProductPolicyCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceProductPolicyCreateOrUpdateResponse = WorkspaceProductPolicyCreateOrUpdateHeaders & PolicyContract; + +// @public +export interface WorkspaceProductPolicyDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceProductPolicyGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductPolicyGetEntityTagResponse = WorkspaceProductPolicyGetEntityTagHeaders; + +// @public +export interface WorkspaceProductPolicyGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductPolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; +} + +// @public +export type WorkspaceProductPolicyGetResponse = WorkspaceProductPolicyGetHeaders & PolicyContract; + +// @public +export interface WorkspaceProductPolicyListByProductOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductPolicyListByProductResponse = PolicyCollection; + +// @public +export interface WorkspaceProductUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductUpdateResponse = WorkspaceProductUpdateHeaders & ProductContract; + +// @public +export interface WorkspaceSubscription { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, parameters: SubscriptionCreateParameters, options?: WorkspaceSubscriptionCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, ifMatch: string, options?: WorkspaceSubscriptionDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, options?: WorkspaceSubscriptionGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, options?: WorkspaceSubscriptionGetEntityTagOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceSubscriptionListOptionalParams): PagedAsyncIterableIterator; + listSecrets(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, options?: WorkspaceSubscriptionListSecretsOptionalParams): Promise; + regeneratePrimaryKey(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, options?: WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams): Promise; + regenerateSecondaryKey(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, options?: WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, ifMatch: string, parameters: SubscriptionUpdateParameters, options?: WorkspaceSubscriptionUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceSubscriptionCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceSubscriptionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + appType?: AppType; + ifMatch?: string; + notify?: boolean; +} + +// @public +export type WorkspaceSubscriptionCreateOrUpdateResponse = WorkspaceSubscriptionCreateOrUpdateHeaders & SubscriptionContract; + +// @public +export interface WorkspaceSubscriptionDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceSubscriptionGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceSubscriptionGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceSubscriptionGetEntityTagResponse = WorkspaceSubscriptionGetEntityTagHeaders; + +// @public +export interface WorkspaceSubscriptionGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceSubscriptionGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceSubscriptionGetResponse = WorkspaceSubscriptionGetHeaders & SubscriptionContract; + +// @public +export interface WorkspaceSubscriptionListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceSubscriptionListNextResponse = SubscriptionCollection; + +// @public +export interface WorkspaceSubscriptionListOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceSubscriptionListResponse = SubscriptionCollection; + +// @public +export interface WorkspaceSubscriptionListSecretsHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceSubscriptionListSecretsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceSubscriptionListSecretsResponse = WorkspaceSubscriptionListSecretsHeaders & SubscriptionKeysContract; + +// @public +export interface WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceSubscriptionUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceSubscriptionUpdateOptionalParams extends coreClient.OperationOptions { + appType?: AppType; + notify?: boolean; +} + +// @public +export type WorkspaceSubscriptionUpdateResponse = WorkspaceSubscriptionUpdateHeaders & SubscriptionContract; + +// @public +export interface WorkspaceTag { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, parameters: TagCreateUpdateParameters, options?: WorkspaceTagCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, ifMatch: string, options?: WorkspaceTagDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, options?: WorkspaceTagGetOptionalParams): Promise; + getEntityState(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, options?: WorkspaceTagGetEntityStateOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceTagListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, ifMatch: string, parameters: TagCreateUpdateParameters, options?: WorkspaceTagUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceTagApiLink { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, apiLinkId: string, parameters: TagApiLinkContract, options?: WorkspaceTagApiLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, apiLinkId: string, options?: WorkspaceTagApiLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, apiLinkId: string, options?: WorkspaceTagApiLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, options?: WorkspaceTagApiLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceTagApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagApiLinkCreateOrUpdateResponse = TagApiLinkContract; + +// @public +export interface WorkspaceTagApiLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceTagApiLinkGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagApiLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagApiLinkGetResponse = WorkspaceTagApiLinkGetHeaders & TagApiLinkContract; + +// @public +export interface WorkspaceTagApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagApiLinkListByProductNextResponse = TagApiLinkCollection; + +// @public +export interface WorkspaceTagApiLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceTagApiLinkListByProductResponse = TagApiLinkCollection; + +// @public +export interface WorkspaceTagCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceTagCreateOrUpdateResponse = WorkspaceTagCreateOrUpdateHeaders & TagContract; + +// @public +export interface WorkspaceTagDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceTagGetEntityStateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagGetEntityStateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagGetEntityStateResponse = WorkspaceTagGetEntityStateHeaders; + +// @public +export interface WorkspaceTagGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagGetResponse = WorkspaceTagGetHeaders & TagContract; + +// @public +export interface WorkspaceTagListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagListByServiceNextResponse = TagCollection; + +// @public +export interface WorkspaceTagListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + scope?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceTagListByServiceResponse = TagCollection; + +// @public +export interface WorkspaceTagOperationLink { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, operationLinkId: string, parameters: TagOperationLinkContract, options?: WorkspaceTagOperationLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, operationLinkId: string, options?: WorkspaceTagOperationLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, operationLinkId: string, options?: WorkspaceTagOperationLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, options?: WorkspaceTagOperationLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceTagOperationLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagOperationLinkCreateOrUpdateResponse = TagOperationLinkContract; + +// @public +export interface WorkspaceTagOperationLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceTagOperationLinkGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagOperationLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagOperationLinkGetResponse = WorkspaceTagOperationLinkGetHeaders & TagOperationLinkContract; + +// @public +export interface WorkspaceTagOperationLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagOperationLinkListByProductNextResponse = TagOperationLinkCollection; + +// @public +export interface WorkspaceTagOperationLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceTagOperationLinkListByProductResponse = TagOperationLinkCollection; + +// @public +export interface WorkspaceTagProductLink { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, productLinkId: string, parameters: TagProductLinkContract, options?: WorkspaceTagProductLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, productLinkId: string, options?: WorkspaceTagProductLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, productLinkId: string, options?: WorkspaceTagProductLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, options?: WorkspaceTagProductLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceTagProductLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagProductLinkCreateOrUpdateResponse = TagProductLinkContract; + +// @public +export interface WorkspaceTagProductLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceTagProductLinkGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagProductLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagProductLinkGetResponse = WorkspaceTagProductLinkGetHeaders & TagProductLinkContract; + +// @public +export interface WorkspaceTagProductLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagProductLinkListByProductNextResponse = TagProductLinkCollection; + +// @public +export interface WorkspaceTagProductLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceTagProductLinkListByProductResponse = TagProductLinkCollection; + +// @public +export interface WorkspaceTagUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagUpdateResponse = WorkspaceTagUpdateHeaders & TagContract; + +// @public +export interface WorkspaceUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceUpdateResponse = WorkspaceUpdateHeaders & WorkspaceContract; + // @public export interface X509CertificateName { issuerCertificateThumbprint?: string; diff --git a/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts b/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts index 7907189618aa..52014d5e5119 100644 --- a/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts +++ b/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts @@ -11,16 +11,18 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "./lroImpl"; import { + AllPoliciesImpl, + ApiManagementGatewayImpl, ApiImpl, ApiRevisionImpl, ApiReleaseImpl, @@ -42,11 +44,11 @@ import { ApiWikisImpl, ApiExportImpl, ApiVersionSetImpl, - AuthorizationServerImpl, AuthorizationProviderImpl, AuthorizationImpl, AuthorizationLoginLinksImpl, AuthorizationAccessPolicyImpl, + AuthorizationServerImpl, BackendImpl, CacheImpl, CertificateImpl, @@ -57,6 +59,7 @@ import { ApiManagementServiceSkusImpl, ApiManagementServiceImpl, DiagnosticImpl, + DocumentationImpl, EmailTemplateImpl, GatewayImpl, GatewayHostnameConfigurationImpl, @@ -77,6 +80,8 @@ import { PolicyImpl, PolicyDescriptionImpl, PolicyFragmentImpl, + PolicyRestrictionImpl, + PolicyRestrictionValidationsImpl, PortalConfigImpl, PortalRevisionImpl, PortalSettingsImpl, @@ -91,6 +96,8 @@ import { ProductPolicyImpl, ProductWikiImpl, ProductWikisImpl, + ProductApiLinkImpl, + ProductGroupLinkImpl, QuotaByCounterKeysImpl, QuotaByPeriodKeysImpl, RegionImpl, @@ -100,6 +107,9 @@ import { ApiManagementSkusImpl, SubscriptionImpl, TagResourceImpl, + TagApiLinkImpl, + TagOperationLinkImpl, + TagProductLinkImpl, TenantAccessImpl, TenantAccessGitImpl, TenantConfigurationImpl, @@ -108,9 +118,38 @@ import { UserSubscriptionImpl, UserIdentitiesImpl, UserConfirmationPasswordImpl, - DocumentationImpl + WorkspaceImpl, + WorkspacePolicyImpl, + WorkspaceNamedValueImpl, + WorkspaceGlobalSchemaImpl, + WorkspaceNotificationImpl, + WorkspaceNotificationRecipientUserImpl, + WorkspaceNotificationRecipientEmailImpl, + WorkspacePolicyFragmentImpl, + WorkspaceGroupImpl, + WorkspaceGroupUserImpl, + WorkspaceSubscriptionImpl, + WorkspaceApiVersionSetImpl, + WorkspaceApiImpl, + WorkspaceApiRevisionImpl, + WorkspaceApiReleaseImpl, + WorkspaceApiOperationImpl, + WorkspaceApiOperationPolicyImpl, + WorkspaceApiPolicyImpl, + WorkspaceApiSchemaImpl, + WorkspaceProductImpl, + WorkspaceProductApiLinkImpl, + WorkspaceProductGroupLinkImpl, + WorkspaceProductPolicyImpl, + WorkspaceTagImpl, + WorkspaceTagApiLinkImpl, + WorkspaceTagOperationLinkImpl, + WorkspaceTagProductLinkImpl, + WorkspaceApiExportImpl, } from "./operations"; import { + AllPolicies, + ApiManagementGateway, Api, ApiRevision, ApiRelease, @@ -132,11 +171,11 @@ import { ApiWikis, ApiExport, ApiVersionSet, - AuthorizationServer, AuthorizationProvider, Authorization, AuthorizationLoginLinks, AuthorizationAccessPolicy, + AuthorizationServer, Backend, Cache, Certificate, @@ -147,6 +186,7 @@ import { ApiManagementServiceSkus, ApiManagementService, Diagnostic, + Documentation, EmailTemplate, Gateway, GatewayHostnameConfiguration, @@ -167,6 +207,8 @@ import { Policy, PolicyDescription, PolicyFragment, + PolicyRestriction, + PolicyRestrictionValidations, PortalConfig, PortalRevision, PortalSettings, @@ -181,6 +223,8 @@ import { ProductPolicy, ProductWiki, ProductWikis, + ProductApiLink, + ProductGroupLink, QuotaByCounterKeys, QuotaByPeriodKeys, Region, @@ -190,6 +234,9 @@ import { ApiManagementSkus, Subscription, TagResource, + TagApiLink, + TagOperationLink, + TagProductLink, TenantAccess, TenantAccessGit, TenantConfiguration, @@ -198,7 +245,34 @@ import { UserSubscription, UserIdentities, UserConfirmationPassword, - Documentation + Workspace, + WorkspacePolicy, + WorkspaceNamedValue, + WorkspaceGlobalSchema, + WorkspaceNotification, + WorkspaceNotificationRecipientUser, + WorkspaceNotificationRecipientEmail, + WorkspacePolicyFragment, + WorkspaceGroup, + WorkspaceGroupUser, + WorkspaceSubscription, + WorkspaceApiVersionSet, + WorkspaceApi, + WorkspaceApiRevision, + WorkspaceApiRelease, + WorkspaceApiOperation, + WorkspaceApiOperationPolicy, + WorkspaceApiPolicy, + WorkspaceApiSchema, + WorkspaceProduct, + WorkspaceProductApiLink, + WorkspaceProductGroupLink, + WorkspaceProductPolicy, + WorkspaceTag, + WorkspaceTagApiLink, + WorkspaceTagOperationLink, + WorkspaceTagProductLink, + WorkspaceApiExport, } from "./operationsInterfaces"; import * as Parameters from "./models/parameters"; import * as Mappers from "./models/mappers"; @@ -206,7 +280,7 @@ import { ApiManagementClientOptionalParams, ConnectivityCheckRequest, PerformConnectivityCheckAsyncOptionalParams, - PerformConnectivityCheckAsyncResponse + PerformConnectivityCheckAsyncResponse, } from "./models"; export class ApiManagementClient extends coreClient.ServiceClient { @@ -217,22 +291,22 @@ export class ApiManagementClient extends coreClient.ServiceClient { /** * Initializes a new instance of the ApiManagementClient class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The ID of the target subscription. + * @param subscriptionId The ID of the target subscription. The value must be an UUID. * @param options The parameter options */ constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: ApiManagementClientOptionalParams + options?: ApiManagementClientOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, - options?: ApiManagementClientOptionalParams + options?: ApiManagementClientOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, subscriptionIdOrOptions?: ApiManagementClientOptionalParams | string, - options?: ApiManagementClientOptionalParams + options?: ApiManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -252,10 +326,10 @@ export class ApiManagementClient extends coreClient.ServiceClient { } const defaults: ApiManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-apimanagement/9.1.0`; + const packageDetails = `azsdk-js-arm-apimanagement/10.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -265,20 +339,21 @@ export class ApiManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -288,7 +363,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -298,9 +373,9 @@ export class ApiManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -308,7 +383,9 @@ export class ApiManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-08-01"; + this.apiVersion = options.apiVersion || "2023-09-01-preview"; + this.allPolicies = new AllPoliciesImpl(this); + this.apiManagementGateway = new ApiManagementGatewayImpl(this); this.api = new ApiImpl(this); this.apiRevision = new ApiRevisionImpl(this); this.apiRelease = new ApiReleaseImpl(this); @@ -330,11 +407,11 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.apiWikis = new ApiWikisImpl(this); this.apiExport = new ApiExportImpl(this); this.apiVersionSet = new ApiVersionSetImpl(this); - this.authorizationServer = new AuthorizationServerImpl(this); this.authorizationProvider = new AuthorizationProviderImpl(this); this.authorization = new AuthorizationImpl(this); this.authorizationLoginLinks = new AuthorizationLoginLinksImpl(this); this.authorizationAccessPolicy = new AuthorizationAccessPolicyImpl(this); + this.authorizationServer = new AuthorizationServerImpl(this); this.backend = new BackendImpl(this); this.cache = new CacheImpl(this); this.certificate = new CertificateImpl(this); @@ -345,14 +422,15 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.apiManagementServiceSkus = new ApiManagementServiceSkusImpl(this); this.apiManagementService = new ApiManagementServiceImpl(this); this.diagnostic = new DiagnosticImpl(this); + this.documentation = new DocumentationImpl(this); this.emailTemplate = new EmailTemplateImpl(this); this.gateway = new GatewayImpl(this); this.gatewayHostnameConfiguration = new GatewayHostnameConfigurationImpl( - this + this, ); this.gatewayApi = new GatewayApiImpl(this); this.gatewayCertificateAuthority = new GatewayCertificateAuthorityImpl( - this + this, ); this.group = new GroupImpl(this); this.groupUser = new GroupUserImpl(this); @@ -365,21 +443,23 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.notificationRecipientUser = new NotificationRecipientUserImpl(this); this.notificationRecipientEmail = new NotificationRecipientEmailImpl(this); this.openIdConnectProvider = new OpenIdConnectProviderImpl(this); - this.outboundNetworkDependenciesEndpoints = new OutboundNetworkDependenciesEndpointsImpl( - this - ); + this.outboundNetworkDependenciesEndpoints = + new OutboundNetworkDependenciesEndpointsImpl(this); this.policy = new PolicyImpl(this); this.policyDescription = new PolicyDescriptionImpl(this); this.policyFragment = new PolicyFragmentImpl(this); + this.policyRestriction = new PolicyRestrictionImpl(this); + this.policyRestrictionValidations = new PolicyRestrictionValidationsImpl( + this, + ); this.portalConfig = new PortalConfigImpl(this); this.portalRevision = new PortalRevisionImpl(this); this.portalSettings = new PortalSettingsImpl(this); this.signInSettings = new SignInSettingsImpl(this); this.signUpSettings = new SignUpSettingsImpl(this); this.delegationSettings = new DelegationSettingsImpl(this); - this.privateEndpointConnectionOperations = new PrivateEndpointConnectionOperationsImpl( - this - ); + this.privateEndpointConnectionOperations = + new PrivateEndpointConnectionOperationsImpl(this); this.product = new ProductImpl(this); this.productApi = new ProductApiImpl(this); this.productGroup = new ProductGroupImpl(this); @@ -387,6 +467,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.productPolicy = new ProductPolicyImpl(this); this.productWiki = new ProductWikiImpl(this); this.productWikis = new ProductWikisImpl(this); + this.productApiLink = new ProductApiLinkImpl(this); + this.productGroupLink = new ProductGroupLinkImpl(this); this.quotaByCounterKeys = new QuotaByCounterKeysImpl(this); this.quotaByPeriodKeys = new QuotaByPeriodKeysImpl(this); this.region = new RegionImpl(this); @@ -396,6 +478,9 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.apiManagementSkus = new ApiManagementSkusImpl(this); this.subscription = new SubscriptionImpl(this); this.tagResource = new TagResourceImpl(this); + this.tagApiLink = new TagApiLinkImpl(this); + this.tagOperationLink = new TagOperationLinkImpl(this); + this.tagProductLink = new TagProductLinkImpl(this); this.tenantAccess = new TenantAccessImpl(this); this.tenantAccessGit = new TenantAccessGitImpl(this); this.tenantConfiguration = new TenantConfigurationImpl(this); @@ -404,7 +489,38 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.userSubscription = new UserSubscriptionImpl(this); this.userIdentities = new UserIdentitiesImpl(this); this.userConfirmationPassword = new UserConfirmationPasswordImpl(this); - this.documentation = new DocumentationImpl(this); + this.workspace = new WorkspaceImpl(this); + this.workspacePolicy = new WorkspacePolicyImpl(this); + this.workspaceNamedValue = new WorkspaceNamedValueImpl(this); + this.workspaceGlobalSchema = new WorkspaceGlobalSchemaImpl(this); + this.workspaceNotification = new WorkspaceNotificationImpl(this); + this.workspaceNotificationRecipientUser = + new WorkspaceNotificationRecipientUserImpl(this); + this.workspaceNotificationRecipientEmail = + new WorkspaceNotificationRecipientEmailImpl(this); + this.workspacePolicyFragment = new WorkspacePolicyFragmentImpl(this); + this.workspaceGroup = new WorkspaceGroupImpl(this); + this.workspaceGroupUser = new WorkspaceGroupUserImpl(this); + this.workspaceSubscription = new WorkspaceSubscriptionImpl(this); + this.workspaceApiVersionSet = new WorkspaceApiVersionSetImpl(this); + this.workspaceApi = new WorkspaceApiImpl(this); + this.workspaceApiRevision = new WorkspaceApiRevisionImpl(this); + this.workspaceApiRelease = new WorkspaceApiReleaseImpl(this); + this.workspaceApiOperation = new WorkspaceApiOperationImpl(this); + this.workspaceApiOperationPolicy = new WorkspaceApiOperationPolicyImpl( + this, + ); + this.workspaceApiPolicy = new WorkspaceApiPolicyImpl(this); + this.workspaceApiSchema = new WorkspaceApiSchemaImpl(this); + this.workspaceProduct = new WorkspaceProductImpl(this); + this.workspaceProductApiLink = new WorkspaceProductApiLinkImpl(this); + this.workspaceProductGroupLink = new WorkspaceProductGroupLinkImpl(this); + this.workspaceProductPolicy = new WorkspaceProductPolicyImpl(this); + this.workspaceTag = new WorkspaceTagImpl(this); + this.workspaceTagApiLink = new WorkspaceTagApiLinkImpl(this); + this.workspaceTagOperationLink = new WorkspaceTagOperationLinkImpl(this); + this.workspaceTagProductLink = new WorkspaceTagProductLinkImpl(this); + this.workspaceApiExport = new WorkspaceApiExportImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -417,7 +533,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -431,7 +547,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } @@ -448,7 +564,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, - options?: PerformConnectivityCheckAsyncOptionalParams + options?: PerformConnectivityCheckAsyncOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -457,21 +573,20 @@ export class ApiManagementClient extends coreClient.ServiceClient { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -480,8 +595,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -489,8 +604,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -500,9 +615,9 @@ export class ApiManagementClient extends coreClient.ServiceClient { resourceGroupName, serviceName, connectivityCheckRequestParams, - options + options, }, - spec: performConnectivityCheckAsyncOperationSpec + spec: performConnectivityCheckAsyncOperationSpec, }); const poller = await createHttpPoller< PerformConnectivityCheckAsyncResponse, @@ -510,7 +625,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -528,17 +643,19 @@ export class ApiManagementClient extends coreClient.ServiceClient { resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, - options?: PerformConnectivityCheckAsyncOptionalParams + options?: PerformConnectivityCheckAsyncOptionalParams, ): Promise { const poller = await this.beginPerformConnectivityCheckAsync( resourceGroupName, serviceName, connectivityCheckRequestParams, - options + options, ); return poller.pollUntilDone(); } + allPolicies: AllPolicies; + apiManagementGateway: ApiManagementGateway; api: Api; apiRevision: ApiRevision; apiRelease: ApiRelease; @@ -560,11 +677,11 @@ export class ApiManagementClient extends coreClient.ServiceClient { apiWikis: ApiWikis; apiExport: ApiExport; apiVersionSet: ApiVersionSet; - authorizationServer: AuthorizationServer; authorizationProvider: AuthorizationProvider; authorization: Authorization; authorizationLoginLinks: AuthorizationLoginLinks; authorizationAccessPolicy: AuthorizationAccessPolicy; + authorizationServer: AuthorizationServer; backend: Backend; cache: Cache; certificate: Certificate; @@ -575,6 +692,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { apiManagementServiceSkus: ApiManagementServiceSkus; apiManagementService: ApiManagementService; diagnostic: Diagnostic; + documentation: Documentation; emailTemplate: EmailTemplate; gateway: Gateway; gatewayHostnameConfiguration: GatewayHostnameConfiguration; @@ -595,6 +713,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { policy: Policy; policyDescription: PolicyDescription; policyFragment: PolicyFragment; + policyRestriction: PolicyRestriction; + policyRestrictionValidations: PolicyRestrictionValidations; portalConfig: PortalConfig; portalRevision: PortalRevision; portalSettings: PortalSettings; @@ -609,6 +729,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { productPolicy: ProductPolicy; productWiki: ProductWiki; productWikis: ProductWikis; + productApiLink: ProductApiLink; + productGroupLink: ProductGroupLink; quotaByCounterKeys: QuotaByCounterKeys; quotaByPeriodKeys: QuotaByPeriodKeys; region: Region; @@ -618,6 +740,9 @@ export class ApiManagementClient extends coreClient.ServiceClient { apiManagementSkus: ApiManagementSkus; subscription: Subscription; tagResource: TagResource; + tagApiLink: TagApiLink; + tagOperationLink: TagOperationLink; + tagProductLink: TagProductLink; tenantAccess: TenantAccess; tenantAccessGit: TenantAccessGit; tenantConfiguration: TenantConfiguration; @@ -626,31 +751,57 @@ export class ApiManagementClient extends coreClient.ServiceClient { userSubscription: UserSubscription; userIdentities: UserIdentities; userConfirmationPassword: UserConfirmationPassword; - documentation: Documentation; + workspace: Workspace; + workspacePolicy: WorkspacePolicy; + workspaceNamedValue: WorkspaceNamedValue; + workspaceGlobalSchema: WorkspaceGlobalSchema; + workspaceNotification: WorkspaceNotification; + workspaceNotificationRecipientUser: WorkspaceNotificationRecipientUser; + workspaceNotificationRecipientEmail: WorkspaceNotificationRecipientEmail; + workspacePolicyFragment: WorkspacePolicyFragment; + workspaceGroup: WorkspaceGroup; + workspaceGroupUser: WorkspaceGroupUser; + workspaceSubscription: WorkspaceSubscription; + workspaceApiVersionSet: WorkspaceApiVersionSet; + workspaceApi: WorkspaceApi; + workspaceApiRevision: WorkspaceApiRevision; + workspaceApiRelease: WorkspaceApiRelease; + workspaceApiOperation: WorkspaceApiOperation; + workspaceApiOperationPolicy: WorkspaceApiOperationPolicy; + workspaceApiPolicy: WorkspaceApiPolicy; + workspaceApiSchema: WorkspaceApiSchema; + workspaceProduct: WorkspaceProduct; + workspaceProductApiLink: WorkspaceProductApiLink; + workspaceProductGroupLink: WorkspaceProductGroupLink; + workspaceProductPolicy: WorkspaceProductPolicy; + workspaceTag: WorkspaceTag; + workspaceTagApiLink: WorkspaceTagApiLink; + workspaceTagOperationLink: WorkspaceTagOperationLink; + workspaceTagProductLink: WorkspaceTagProductLink; + workspaceApiExport: WorkspaceApiExport; } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const performConnectivityCheckAsyncOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/connectivityCheck", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/connectivityCheck", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ConnectivityCheckResponse + bodyMapper: Mappers.ConnectivityCheckResponse, }, 201: { - bodyMapper: Mappers.ConnectivityCheckResponse + bodyMapper: Mappers.ConnectivityCheckResponse, }, 202: { - bodyMapper: Mappers.ConnectivityCheckResponse + bodyMapper: Mappers.ConnectivityCheckResponse, }, 204: { - bodyMapper: Mappers.ConnectivityCheckResponse + bodyMapper: Mappers.ConnectivityCheckResponse, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.connectivityCheckRequestParams, queryParameters: [Parameters.apiVersion], @@ -658,9 +809,9 @@ const performConnectivityCheckAsyncOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/lroImpl.ts b/sdk/apimanagement/arm-apimanagement/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/lroImpl.ts +++ b/sdk/apimanagement/arm-apimanagement/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/apimanagement/arm-apimanagement/src/models/index.ts b/sdk/apimanagement/arm-apimanagement/src/models/index.ts index 4e69c371d1f3..796e3ab0e58f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/index.ts @@ -8,6 +8,228 @@ import * as coreClient from "@azure/core-client"; +/** The response of All Policies. */ +export interface AllPoliciesCollection { + /** AllPolicies Contract value. */ + value?: AllPoliciesContract[]; + /** Next page link if any. */ + nextLink?: string; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; +} + +/** Error Response. */ +export interface ErrorResponse { + /** Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response. */ + code?: string; + /** Human-readable representation of the error. */ + message?: string; + /** The list of invalid fields send in request, in case of validation error. */ + details?: ErrorFieldContract[]; +} + +/** Error Body contract. */ +export interface ErrorResponseBody { + /** Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response. */ + code?: string; + /** Human-readable representation of the error. */ + message?: string; + /** The list of invalid fields send in request, in case of validation error. */ + details?: ErrorFieldContract[]; +} + +/** Error Field contract. */ +export interface ErrorFieldContract { + /** Property level error code. */ + code?: string; + /** Human-readable representation of property-level error. */ + message?: string; + /** Property name. */ + target?: string; +} + +/** Base Properties of an API Management gateway resource description. */ +export interface ApiManagementGatewayBaseProperties { + /** + * The current provisioning state of the API Management gateway which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** + * The provisioning state of the API Management gateway, which is targeted by the long running operation started on the gateway. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly targetProvisioningState?: string; + /** + * Creation UTC date of the API Management gateway.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdAtUtc?: Date; + /** Information regarding how the gateway should be exposed. */ + frontend?: FrontendConfiguration; + /** Information regarding how the gateway should integrate with backend systems. */ + backend?: BackendConfiguration; + /** Information regarding the Configuration API of the API Management gateway. This is only applicable for API gateway with Standard SKU. */ + configurationApi?: GatewayConfigurationApi; +} + +/** Information regarding how the gateway should be exposed. */ +export interface FrontendConfiguration { + /** + * The default hostname of the data-plane gateway to which requests can be sent. This is only applicable for API gateway with Standard SKU. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly defaultHostname?: string; +} + +/** Information regarding how the gateway should integrate with backend systems. */ +export interface BackendConfiguration { + /** The default hostname of the data-plane gateway to which requests can be sent. */ + subnet?: BackendSubnetConfiguration; +} + +/** Information regarding how the subnet to which the gateway should be injected. */ +export interface BackendSubnetConfiguration { + /** The ARM ID of the subnet in which the backend systems are hosted. */ + id?: string; +} + +/** Information regarding the Configuration API of the API Management gateway. This is only applicable for API gateway with Standard SKU. */ +export interface GatewayConfigurationApi { + /** + * Hostname to which the agent connects to propagate configuration to the cloud. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly hostname?: string; +} + +/** API Management gateway resource SKU properties. */ +export interface ApiManagementGatewaySkuProperties { + /** Name of the Sku. */ + name: SkuType; + /** Capacity of the SKU (number of deployed units of the SKU) */ + capacity?: number; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; +} + +/** The Resource definition. */ +export interface ApimResource { + /** + * Resource ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * Resource name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Resource type for API Management resource is set to Microsoft.ApiManagement. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; +} + +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponseAutoGenerated { + /** The error object. */ + error?: ErrorDetail; +} + +/** The error detail. */ +export interface ErrorDetail { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; +} + +/** API Management gateway resource SKU properties for PATCH operations given nothing should be required. */ +export interface ApiManagementGatewaySkuPropertiesForPatch { + /** Name of the Sku. */ + name?: SkuType; + /** Capacity of the SKU (number of deployed units of the SKU) */ + capacity?: number; +} + +/** The response of the List API Management gateway operation. */ +export interface ApiManagementGatewayListResult { + /** Result of the List API Management gateway operation. */ + value: ApiManagementGatewayResource[]; + /** Link to the next set of results. Not empty if Value contains incomplete list of API Management services. */ + nextLink?: string; +} + /** Paged API list representation. */ export interface ApiCollection { /** @@ -131,55 +353,6 @@ export interface ApiLicenseInformation { url?: string; } -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource { - /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; -} - -/** Error Response. */ -export interface ErrorResponse { - /** Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response. */ - code?: string; - /** Human-readable representation of the error. */ - message?: string; - /** The list of invalid fields send in request, in case of validation error. */ - details?: ErrorFieldContract[]; -} - -/** Error Body contract. */ -export interface ErrorResponseBody { - /** Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response. */ - code?: string; - /** Human-readable representation of the error. */ - message?: string; - /** The list of invalid fields send in request, in case of validation error. */ - details?: ErrorFieldContract[]; -} - -/** Error Field contract. */ -export interface ErrorFieldContract { - /** Property level error code. */ - code?: string; - /** Human-readable representation of property-level error. */ - message?: string; - /** Property name. */ - target?: string; -} - /** API Create or Update Parameters. */ export interface ApiCreateOrUpdateParameter { /** Description of the API. May include HTML formatting tags. */ @@ -227,9 +400,14 @@ export interface ApiCreateOrUpdateParameter { protocols?: Protocol[]; /** Version set details */ apiVersionSet?: ApiVersionSetContractDetails; + /** + * The provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; /** Content value when Importing an API. */ value?: string; - /** Format of the Content in which the API is getting imported. */ + /** Format of the Content in which the API is getting imported. New formats can be added in the future */ format?: ContentFormat; /** Criteria to limit import of WSDL to a subset of the document. */ wsdlSelector?: ApiCreateOrUpdatePropertiesWsdlSelector; @@ -239,6 +417,7 @@ export interface ApiCreateOrUpdateParameter { * * `soap` creates a SOAP pass-through API * * `websocket` creates websocket API * * `graphql` creates GraphQL API. + * New types can be added in the future. */ soapApiType?: SoapApiType; /** Strategy of translating required query parameters to template ones. By default has value 'template'. Possible values: 'template', 'query' */ @@ -891,72 +1070,20 @@ export interface ApiVersionSetUpdateParameters { versioningScheme?: VersioningScheme; } -/** Paged OAuth2 Authorization Servers list representation. */ -export interface AuthorizationServerCollection { +/** Paged Authorization Provider list representation. */ +export interface AuthorizationProviderCollection { /** Page values. */ - value?: AuthorizationServerContract[]; - /** Total record count number across all pages. */ - count?: number; + value?: AuthorizationProviderContract[]; /** Next page link if any. */ nextLink?: string; } -/** External OAuth authorization server Update settings contract. */ -export interface AuthorizationServerContractBaseProperties { - /** Description of the authorization server. Can contain HTML formatting tags. */ - description?: string; - /** HTTP verbs supported by the authorization endpoint. GET must be always present. POST is optional. */ - authorizationMethods?: AuthorizationMethod[]; - /** Method of authentication supported by the token endpoint of this authorization server. Possible values are Basic and/or Body. When Body is specified, client credentials and other parameters are passed within the request body in the application/x-www-form-urlencoded format. */ - clientAuthenticationMethod?: ClientAuthenticationMethod[]; - /** Additional parameters required by the token endpoint of this authorization server represented as an array of JSON objects with name and value string properties, i.e. {"name" : "name value", "value": "a value"}. */ - tokenBodyParameters?: TokenBodyParameterContract[]; - /** OAuth token endpoint. Contains absolute URI to entity being referenced. */ - tokenEndpoint?: string; - /** If true, authorization server will include state parameter from the authorization request to its response. Client may use state parameter to raise protocol security. */ - supportState?: boolean; - /** Access token scope that is going to be requested by default. Can be overridden at the API level. Should be provided in the form of a string containing space-delimited values. */ - defaultScope?: string; - /** Specifies the mechanism by which access token is passed to the API. */ - bearerTokenSendingMethods?: BearerTokenSendingMethod[]; - /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username. */ - resourceOwnerUsername?: string; - /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password. */ - resourceOwnerPassword?: string; -} - -/** OAuth acquire token request body parameter (www-url-form-encoded). */ -export interface TokenBodyParameterContract { - /** body parameter name. */ - name: string; - /** body parameter value. */ - value: string; -} - -/** OAuth Server Secrets Contract. */ -export interface AuthorizationServerSecretsContract { - /** oAuth Authorization Server Secrets. */ - clientSecret?: string; - /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username. */ - resourceOwnerUsername?: string; - /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password. */ - resourceOwnerPassword?: string; -} - -/** Paged Authorization Provider list representation. */ -export interface AuthorizationProviderCollection { - /** Page values. */ - value?: AuthorizationProviderContract[]; - /** Next page link if any. */ - nextLink?: string; -} - -/** OAuth2 settings details */ -export interface AuthorizationProviderOAuth2Settings { - /** Redirect URL to be set in the OAuth application. */ - redirectUrl?: string; - /** OAuth2 settings */ - grantTypes?: AuthorizationProviderOAuth2GrantTypes; +/** OAuth2 settings details */ +export interface AuthorizationProviderOAuth2Settings { + /** Redirect URL to be set in the OAuth application. */ + redirectUrl?: string; + /** OAuth2 settings */ + grantTypes?: AuthorizationProviderOAuth2GrantTypes; } /** Authorization Provider oauth2 grant types settings */ @@ -1013,6 +1140,58 @@ export interface AuthorizationAccessPolicyCollection { nextLink?: string; } +/** Paged OAuth2 Authorization Servers list representation. */ +export interface AuthorizationServerCollection { + /** Page values. */ + value?: AuthorizationServerContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + +/** External OAuth authorization server Update settings contract. */ +export interface AuthorizationServerContractBaseProperties { + /** Description of the authorization server. Can contain HTML formatting tags. */ + description?: string; + /** HTTP verbs supported by the authorization endpoint. GET must be always present. POST is optional. */ + authorizationMethods?: AuthorizationMethod[]; + /** Method of authentication supported by the token endpoint of this authorization server. Possible values are Basic and/or Body. When Body is specified, client credentials and other parameters are passed within the request body in the application/x-www-form-urlencoded format. */ + clientAuthenticationMethod?: ClientAuthenticationMethod[]; + /** Additional parameters required by the token endpoint of this authorization server represented as an array of JSON objects with name and value string properties, i.e. {"name" : "name value", "value": "a value"}. */ + tokenBodyParameters?: TokenBodyParameterContract[]; + /** OAuth token endpoint. Contains absolute URI to entity being referenced. */ + tokenEndpoint?: string; + /** If true, authorization server will include state parameter from the authorization request to its response. Client may use state parameter to raise protocol security. */ + supportState?: boolean; + /** Access token scope that is going to be requested by default. Can be overridden at the API level. Should be provided in the form of a string containing space-delimited values. */ + defaultScope?: string; + /** Specifies the mechanism by which access token is passed to the API. */ + bearerTokenSendingMethods?: BearerTokenSendingMethod[]; + /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username. */ + resourceOwnerUsername?: string; + /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password. */ + resourceOwnerPassword?: string; +} + +/** OAuth acquire token request body parameter (www-url-form-encoded). */ +export interface TokenBodyParameterContract { + /** body parameter name. */ + name: string; + /** body parameter value. */ + value: string; +} + +/** OAuth Server Secrets Contract. */ +export interface AuthorizationServerSecretsContract { + /** oAuth Authorization Server Secrets. */ + clientSecret?: string; + /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username. */ + resourceOwnerUsername?: string; + /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password. */ + resourceOwnerPassword?: string; +} + /** Paged Backend list representation. */ export interface BackendCollection { /** Backend values. */ @@ -1039,6 +1218,11 @@ export interface BackendBaseParameters { proxy?: BackendProxyContract; /** Backend TLS Properties */ tls?: BackendTlsProperties; + /** Backend Circuit Breaker Configuration */ + circuitBreaker?: BackendCircuitBreaker; + pool?: BackendBaseParametersPool; + /** Type of the backend. A backend can be either Single or Pool. */ + type?: BackendType; } /** Properties specific to the Backend Type. */ @@ -1111,6 +1295,56 @@ export interface BackendTlsProperties { validateCertificateName?: boolean; } +/** The configuration of the backend circuit breaker */ +export interface BackendCircuitBreaker { + /** The rules for tripping the backend. */ + rules?: CircuitBreakerRule[]; +} + +/** Rule configuration to trip the backend. */ +export interface CircuitBreakerRule { + /** The rule name. */ + name?: string; + /** The conditions for tripping the circuit breaker. */ + failureCondition?: CircuitBreakerFailureCondition; + /** The duration for which the circuit will be tripped. */ + tripDuration?: string; +} + +/** The trip conditions of the circuit breaker */ +export interface CircuitBreakerFailureCondition { + /** The threshold for opening the circuit. */ + count?: number; + /** The threshold for opening the circuit. */ + percentage?: number; + /** The interval during which the failures are counted. */ + interval?: string; + /** The status code ranges which are considered as failure. */ + statusCodeRanges?: FailureStatusCodeRange[]; + /** The error reasons which are considered as failure. */ + errorReasons?: string[]; +} + +/** The failure http status code range */ +export interface FailureStatusCodeRange { + /** The minimum http status code. */ + min?: number; + /** The maximum http status code. */ + max?: number; +} + +/** Backend pool information */ +export interface BackendPool { + /** The list of backend entities belonging to a pool. */ + services?: BackendPoolItem[]; +} + +/** Backend pool service information */ +export interface BackendPoolItem { + /** The unique ARM id of the backend entity. The ARM id should refer to an already existing backend entity. */ + id: string; +} + /** Backend update parameters. */ export interface BackendUpdateParameters { /** Backend Title. */ @@ -1127,6 +1361,11 @@ export interface BackendUpdateParameters { proxy?: BackendProxyContract; /** Backend TLS Properties */ tls?: BackendTlsProperties; + /** Backend Circuit Breaker Configuration */ + circuitBreaker?: BackendCircuitBreaker; + pool?: BackendBaseParametersPool; + /** Type of the backend. A backend can be either Single or Pool. */ + type?: BackendType; /** Runtime Url of the Backend. */ url?: string; /** Backend communication protocol. */ @@ -1559,6 +1798,8 @@ export interface ApiManagementServiceBaseProperties { publicIpAddressId?: string; /** Whether or not public endpoint access is allowed for this API Management service. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled' */ publicNetworkAccess?: PublicNetworkAccess; + /** Configuration API configuration of the API Management service. */ + configurationApi?: ConfigurationApi; /** Virtual network configuration of the API Management service. */ virtualNetworkConfiguration?: VirtualNetworkConfiguration; /** Additional datacenter locations of the API Management service. */ @@ -1591,6 +1832,10 @@ export interface ApiManagementServiceBaseProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly platformVersion?: PlatformVersion; + /** Status of legacy portal in the API Management service. */ + legacyPortalStatus?: LegacyPortalStatus; + /** Status of developer portal in this API Management service. */ + developerPortalStatus?: DeveloperPortalStatus; } /** Custom hostname configuration. */ @@ -1629,6 +1874,12 @@ export interface CertificateInformation { subject: string; } +/** Information regarding the Configuration API of the API Management service. */ +export interface ConfigurationApi { + /** Indication whether or not the legacy Configuration API (v1) should be exposed on the API Management service. Value is optional but must be 'Enabled' or 'Disabled'. If 'Disabled', legacy Configuration API (v1) will not be available for self-hosted gateways. Default value is 'Enabled' */ + legacyApi?: LegacyApiState; +} + /** Configuration of a virtual network to which API Management service is deployed. */ export interface VirtualNetworkConfiguration { /** @@ -1784,41 +2035,10 @@ export interface UserIdentityProperties { clientId?: string; } -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; -} - -/** The Resource definition. */ -export interface ApimResource { - /** - * Resource ID. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Resource name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Resource type for API Management resource is set to Microsoft.ApiManagement. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; +/** Describes an available API Management SKU. */ +export interface MigrateToStv2Contract { + /** Mode of Migration to stv2. Default is PreserveIp. */ + mode?: MigrateToStv2Mode; } /** The response of the List API Management services operation. */ @@ -1872,6 +2092,28 @@ export interface ApiManagementServiceApplyNetworkConfigurationParameters { location?: string; } +/** Paged Documentation list representation. */ +export interface DocumentationCollection { + /** + * Page values. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: DocumentationContract[]; + /** + * Next page link if any. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** Documentation update contract details. */ +export interface DocumentationUpdateContract { + /** documentation title. */ + title?: string; + /** Markdown documentation content. */ + content?: string; +} + /** Paged email template list representation. */ export interface EmailTemplateCollection { /** Page values. */ @@ -1993,6 +2235,28 @@ export interface GatewayCertificateAuthorityCollection { readonly nextLink?: string; } +/** List debug credentials properties. */ +export interface GatewayListDebugCredentialsContract { + /** Credentials expiration in ISO8601 format. Maximum duration of the credentials is PT1H. When property is not specified, them value PT1H is used. */ + credentialsExpireAfter?: string; + /** Purposes of debug credential. */ + purposes: GatewayListDebugCredentialsContractPurpose[]; + /** Full resource Id of an API. */ + apiId: string; +} + +/** Gateway debug credentials. */ +export interface GatewayDebugCredentialsContract { + /** Gateway debug token. */ + token?: string; +} + +/** List trace properties. */ +export interface GatewayListTraceContract { + /** Trace id. */ + traceId?: string; +} + /** Paged Group list representation. */ export interface GroupCollection { /** Page values. */ @@ -2365,6 +2629,31 @@ export interface ResourceCollection { nextLink?: string; } +/** The response of the get policy restrictions operation. */ +export interface PolicyRestrictionCollection { + value?: PolicyRestrictionContract[]; + /** Next page link if any. */ + nextLink?: string; +} + +/** Policy restriction contract details. */ +export interface PolicyRestrictionUpdateContract { + /** Path to the policy document. */ + scope?: string; + /** Indicates if base policy should be enforced for the policy document. */ + requireBase?: PolicyRestrictionRequireBase; +} + +/** Log of the entity being created, updated or deleted. */ +export interface OperationResultLogItemContract { + /** The type of entity contract. */ + objectType?: string; + /** Action like create/update/delete. */ + action?: string; + /** Identifier of the entity being created/updated/deleted. */ + objectKey?: string; +} + /** The collection of the developer portal configurations. */ export interface PortalConfigCollection { /** The developer portal configurations. */ @@ -2534,6 +2823,26 @@ export interface SubscriptionCollection { nextLink?: string; } +/** Paged Product-API link list representation. */ +export interface ProductApiLinkCollection { + /** Page values. */ + value?: ProductApiLinkContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + +/** Paged Product-group link list representation. */ +export interface ProductGroupLinkCollection { + /** Page values. */ + value?: ProductGroupLinkContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + /** Paged Quota Counter list representation. */ export interface QuotaCounterCollection { /** Quota counter values. */ @@ -3022,6 +3331,36 @@ export interface TagCreateUpdateParameters { displayName?: string; } +/** Paged Tag-API link list representation. */ +export interface TagApiLinkCollection { + /** Page values. */ + value?: TagApiLinkContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + +/** Paged Tag-operation link list representation. */ +export interface TagOperationLinkCollection { + /** Page values. */ + value?: TagOperationLinkContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + +/** Paged Tag-product link list representation. */ +export interface TagProductLinkCollection { + /** Page values. */ + value?: TagProductLinkContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + /** Paged AccessInformation list representation. */ export interface AccessInformationCollection { /** @@ -3078,16 +3417,6 @@ export interface DeployConfigurationParameters { force?: boolean; } -/** Log of the entity being created, updated or deleted. */ -export interface OperationResultLogItemContract { - /** The type of entity contract. */ - objectType?: string; - /** Action like create/update/delete. */ - action?: string; - /** Identifier of the entity being created/updated/deleted. */ - objectKey?: string; -} - /** Save Tenant Configuration Contract details. */ export interface SaveConfigurationParameter { /** The name of the Git branch in which to commit the current configuration snapshot. */ @@ -3169,26 +3498,20 @@ export interface UserTokenResult { value?: string; } -/** Paged Documentation list representation. */ -export interface DocumentationCollection { - /** - * Page values. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: DocumentationContract[]; - /** - * Next page link if any. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; +/** Paged workspace list representation. */ +export interface WorkspaceCollection { + /** Page values. */ + value?: WorkspaceContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; } -/** Documentation update contract details. */ -export interface DocumentationUpdateContract { - /** documentation title. */ - title?: string; - /** Markdown documentation content. */ - content?: string; +/** Describes an available API Management SKU for gateways. */ +export interface GatewaySku { + /** Name of the Sku. */ + name?: SkuType; } /** Object used to create an API Revision or Version based on an existing API Revision */ @@ -3203,6 +3526,14 @@ export interface ApiRevisionInfoContract { apiVersionSet?: ApiVersionSetContractDetails; } +/** The response of the list policy operation. */ +export interface PolicyWithComplianceCollection { + /** Policy Contract value. */ + value?: PolicyWithComplianceContract[]; + /** Next page link if any. */ + nextLink?: string; +} + /** Quota counter value details. */ export interface QuotaCounterValueContract { /** Number of times Counter was called. */ @@ -3221,49 +3552,6 @@ export interface ResolverResultLogItemContract { objectKey?: string; } -/** API Entity Properties */ -export interface ApiContractProperties extends ApiEntityBaseContract { - /** API identifier of the source API. */ - sourceApiId?: string; - /** API name. Must be 1 to 300 characters long. */ - displayName?: string; - /** Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long. */ - serviceUrl?: string; - /** Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. */ - path: string; - /** Describes on which protocols the operations in this API can be invoked. */ - protocols?: Protocol[]; - /** Version set details */ - apiVersionSet?: ApiVersionSetContractDetails; -} - -/** API update contract properties. */ -export interface ApiContractUpdateProperties extends ApiEntityBaseContract { - /** API name. */ - displayName?: string; - /** Absolute URL of the backend service implementing this API. */ - serviceUrl?: string; - /** Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. */ - path?: string; - /** Describes on which protocols the operations in this API can be invoked. */ - protocols?: Protocol[]; -} - -/** API contract properties for the Tag Resources. */ -export interface ApiTagResourceContractProperties - extends ApiEntityBaseContract { - /** API identifier in the form /apis/{apiId}. */ - id?: string; - /** API name. */ - name?: string; - /** Absolute URL of the backend service implementing this API. */ - serviceUrl?: string; - /** Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. */ - path?: string; - /** Describes on which protocols the operations in this API can be invoked. */ - protocols?: Protocol[]; -} - /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ export interface ProxyResource extends Resource {} @@ -3296,179 +3584,83 @@ export interface PrivateLinkResource extends Resource { requiredZoneNames?: string[]; } -/** Operation Contract Properties */ -export interface OperationContractProperties - extends OperationEntityBaseContract { - /** Operation Name. */ - displayName: string; - /** A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them. */ - method: string; - /** Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date} */ - urlTemplate: string; -} - -/** Operation Update Contract Properties. */ -export interface OperationUpdateContractProperties - extends OperationEntityBaseContract { - /** Operation Name. */ - displayName?: string; - /** A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them. */ - method?: string; - /** Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date} */ - urlTemplate?: string; -} - -/** Product profile. */ -export interface ProductContractProperties extends ProductEntityBaseParameters { - /** Product name. */ - displayName: string; -} - -/** Product profile. */ -export interface ProductTagResourceContractProperties - extends ProductEntityBaseParameters { - /** Identifier of the product in the form of /products/{productId} */ - id?: string; - /** Product name. */ - name: string; -} - -/** Parameters supplied to the Update Product operation. */ -export interface ProductUpdateProperties extends ProductEntityBaseParameters { - /** Product name. */ - displayName?: string; -} - -/** Issue contract Properties. */ -export interface IssueContractProperties extends IssueContractBaseProperties { - /** The issue title. */ - title: string; - /** Text describing the issue. */ - description: string; - /** A resource identifier for the user created the issue. */ - userId: string; -} - -/** Issue contract Update Properties. */ -export interface IssueUpdateContractProperties - extends IssueContractBaseProperties { - /** The issue title. */ - title?: string; - /** Text describing the issue. */ - description?: string; - /** A resource identifier for the user created the issue. */ - userId?: string; -} - -/** TagDescription contract Properties. */ -export interface TagDescriptionContractProperties - extends TagDescriptionBaseProperties { - /** Identifier of the tag in the form of /tags/{tagId} */ - tagId?: string; - /** Tag name. */ - displayName?: string; -} - -/** Properties of an API Version Set. */ -export interface ApiVersionSetContractProperties - extends ApiVersionSetEntityBase { - /** Name of API Version Set */ - displayName: string; - /** An value that determines where the API Version identifier will be located in a HTTP request. */ - versioningScheme: VersioningScheme; -} - -/** Properties used to create or update an API Version Set. */ -export interface ApiVersionSetUpdateParametersProperties - extends ApiVersionSetEntityBase { - /** Name of API Version Set */ - displayName?: string; - /** An value that determines where the API Version identifier will be located in a HTTP request. */ - versioningScheme?: VersioningScheme; -} - -/** External OAuth authorization server settings Properties. */ -export interface AuthorizationServerContractProperties - extends AuthorizationServerContractBaseProperties { - /** User-friendly authorization server name. */ - displayName: string; - /** If true, the authorization server may be used in the developer portal test console. True by default if no value is provided. */ - useInTestConsole?: boolean; - /** If true, the authorization server will be used in the API documentation in the developer portal. False by default if no value is provided. */ - useInApiDocumentation?: boolean; - /** Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced. */ - clientRegistrationEndpoint: string; - /** OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. */ - authorizationEndpoint: string; - /** Form of an authorization grant, which the client uses to request the access token. */ - grantTypes: GrantType[]; - /** Client or app id registered with this authorization server. */ - clientId: string; - /** Client or app secret registered with this authorization server. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - clientSecret?: string; -} - -/** External OAuth authorization server Update settings contract. */ -export interface AuthorizationServerUpdateContractProperties - extends AuthorizationServerContractBaseProperties { - /** User-friendly authorization server name. */ - displayName?: string; - /** If true, the authorization server may be used in the developer portal test console. True by default if no value is provided. */ - useInTestConsole?: boolean; - /** If true, the authorization server will be used in the API documentation in the developer portal. False by default if no value is provided. */ - useInApiDocumentation?: boolean; - /** Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced. */ - clientRegistrationEndpoint?: string; - /** OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. */ - authorizationEndpoint?: string; - /** Form of an authorization grant, which the client uses to request the access token. */ - grantTypes?: GrantType[]; - /** Client or app id registered with this authorization server. */ - clientId?: string; - /** Client or app secret registered with this authorization server. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - clientSecret?: string; -} - -/** Parameters supplied to the Create Backend operation. */ -export interface BackendContractProperties extends BackendBaseParameters { - /** Runtime Url of the Backend. */ - url: string; - /** Backend communication protocol. */ - protocol: BackendProtocol; -} - -/** Parameters supplied to the Update Backend operation. */ -export interface BackendUpdateParameterProperties - extends BackendBaseParameters { - /** Runtime Url of the Backend. */ - url?: string; - /** Backend communication protocol. */ - protocol?: BackendProtocol; -} +/** Properties of an API Management gateway resource description. */ +export interface ApiManagementGatewayProperties + extends ApiManagementGatewayBaseProperties {} -/** KeyVault contract details. */ -export interface KeyVaultContractProperties - extends KeyVaultContractCreateProperties { - /** Last time sync and refresh status of secret from key vault. */ - lastStatus?: KeyVaultLastAccessStatusContractProperties; -} +/** Properties of an API Management gateway resource description. */ +export interface ApiManagementGatewayUpdateProperties + extends ApiManagementGatewayBaseProperties {} -/** Properties of an API Management service resource description. */ -export interface ApiManagementServiceProperties - extends ApiManagementServiceBaseProperties { - /** Publisher email. */ - publisherEmail: string; - /** Publisher name. */ - publisherName: string; +/** A single API Management gateway resource in List or Get response. */ +export interface ApiManagementGatewayResource extends ApimResource { + /** SKU properties of the API Management gateway. */ + sku: ApiManagementGatewaySkuProperties; + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** Resource location. */ + location: string; + /** + * ETag of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly etag?: string; + /** + * The current provisioning state of the API Management gateway which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** + * The provisioning state of the API Management gateway, which is targeted by the long running operation started on the gateway. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly targetProvisioningState?: string; + /** + * Creation UTC date of the API Management gateway.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdAtUtc?: Date; + /** Information regarding how the gateway should be exposed. */ + frontend?: FrontendConfiguration; + /** Information regarding how the gateway should integrate with backend systems. */ + backend?: BackendConfiguration; + /** Information regarding the Configuration API of the API Management gateway. This is only applicable for API gateway with Standard SKU. */ + configurationApi?: GatewayConfigurationApi; } -/** Properties of an API Management service resource description. */ -export interface ApiManagementServiceUpdateProperties - extends ApiManagementServiceBaseProperties { - /** Publisher email. */ - publisherEmail?: string; - /** Publisher name. */ - publisherName?: string; +/** Parameter supplied to Update API Management gateway. */ +export interface ApiManagementGatewayUpdateParameters extends ApimResource { + /** SKU properties of the API Management gateway. */ + sku?: ApiManagementGatewaySkuPropertiesForPatch; + /** + * ETag of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly etag?: string; + /** + * The current provisioning state of the API Management gateway which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** + * The provisioning state of the API Management gateway, which is targeted by the long running operation started on the gateway. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly targetProvisioningState?: string; + /** + * Creation UTC date of the API Management gateway.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdAtUtc?: Date; + /** Information regarding how the gateway should be exposed. */ + frontend?: FrontendConfiguration; + /** Information regarding how the gateway should integrate with backend systems. */ + backend?: BackendConfiguration; + /** Information regarding the Configuration API of the API Management gateway. This is only applicable for API gateway with Standard SKU. */ + configurationApi?: GatewayConfigurationApi; } /** A single API Management service resource in List or Get response. */ @@ -3554,6 +3746,8 @@ export interface ApiManagementServiceResource extends ApimResource { publicIpAddressId?: string; /** Whether or not public endpoint access is allowed for this API Management service. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled' */ publicNetworkAccess?: PublicNetworkAccess; + /** Configuration API configuration of the API Management service. */ + configurationApi?: ConfigurationApi; /** Virtual network configuration of the API Management service. */ virtualNetworkConfiguration?: VirtualNetworkConfiguration; /** Additional datacenter locations of the API Management service. */ @@ -3586,6 +3780,10 @@ export interface ApiManagementServiceResource extends ApimResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly platformVersion?: PlatformVersion; + /** Status of legacy portal in the API Management service. */ + legacyPortalStatus?: LegacyPortalStatus; + /** Status of developer portal in this API Management service. */ + developerPortalStatus?: DeveloperPortalStatus; /** Publisher email. */ publisherEmail: string; /** Publisher name. */ @@ -3668,6 +3866,8 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { publicIpAddressId?: string; /** Whether or not public endpoint access is allowed for this API Management service. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled' */ publicNetworkAccess?: PublicNetworkAccess; + /** Configuration API configuration of the API Management service. */ + configurationApi?: ConfigurationApi; /** Virtual network configuration of the API Management service. */ virtualNetworkConfiguration?: VirtualNetworkConfiguration; /** Additional datacenter locations of the API Management service. */ @@ -3700,17 +3900,246 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly platformVersion?: PlatformVersion; + /** Status of legacy portal in the API Management service. */ + legacyPortalStatus?: LegacyPortalStatus; + /** Status of developer portal in this API Management service. */ + developerPortalStatus?: DeveloperPortalStatus; /** Publisher email. */ publisherEmail?: string; /** Publisher name. */ publisherName?: string; } -/** User profile. */ -export interface UserContractProperties extends UserEntityBaseParameters { - /** First name. */ - firstName?: string; - /** Last name. */ +/** API Entity Properties */ +export interface ApiContractProperties extends ApiEntityBaseContract { + /** API identifier of the source API. */ + sourceApiId?: string; + /** API name. Must be 1 to 300 characters long. */ + displayName?: string; + /** Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long. */ + serviceUrl?: string; + /** Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. */ + path: string; + /** Describes on which protocols the operations in this API can be invoked. */ + protocols?: Protocol[]; + /** Version set details */ + apiVersionSet?: ApiVersionSetContractDetails; + /** + * The provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; +} + +/** API update contract properties. */ +export interface ApiContractUpdateProperties extends ApiEntityBaseContract { + /** API name. */ + displayName?: string; + /** Absolute URL of the backend service implementing this API. */ + serviceUrl?: string; + /** Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. */ + path?: string; + /** Describes on which protocols the operations in this API can be invoked. */ + protocols?: Protocol[]; +} + +/** API contract properties for the Tag Resources. */ +export interface ApiTagResourceContractProperties + extends ApiEntityBaseContract { + /** API identifier in the form /apis/{apiId}. */ + id?: string; + /** API name. */ + name?: string; + /** Absolute URL of the backend service implementing this API. */ + serviceUrl?: string; + /** Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. */ + path?: string; + /** Describes on which protocols the operations in this API can be invoked. */ + protocols?: Protocol[]; +} + +/** Operation Contract Properties */ +export interface OperationContractProperties + extends OperationEntityBaseContract { + /** Operation Name. */ + displayName: string; + /** A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them. */ + method: string; + /** Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date} */ + urlTemplate: string; +} + +/** Operation Update Contract Properties. */ +export interface OperationUpdateContractProperties + extends OperationEntityBaseContract { + /** Operation Name. */ + displayName?: string; + /** A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them. */ + method?: string; + /** Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date} */ + urlTemplate?: string; +} + +/** Product profile. */ +export interface ProductContractProperties extends ProductEntityBaseParameters { + /** Product name. */ + displayName: string; +} + +/** Product profile. */ +export interface ProductTagResourceContractProperties + extends ProductEntityBaseParameters { + /** Identifier of the product in the form of /products/{productId} */ + id?: string; + /** Product name. */ + name: string; +} + +/** Parameters supplied to the Update Product operation. */ +export interface ProductUpdateProperties extends ProductEntityBaseParameters { + /** Product name. */ + displayName?: string; +} + +/** Issue contract Properties. */ +export interface IssueContractProperties extends IssueContractBaseProperties { + /** The issue title. */ + title: string; + /** Text describing the issue. */ + description: string; + /** A resource identifier for the user created the issue. */ + userId: string; +} + +/** Issue contract Update Properties. */ +export interface IssueUpdateContractProperties + extends IssueContractBaseProperties { + /** The issue title. */ + title?: string; + /** Text describing the issue. */ + description?: string; + /** A resource identifier for the user created the issue. */ + userId?: string; +} + +/** TagDescription contract Properties. */ +export interface TagDescriptionContractProperties + extends TagDescriptionBaseProperties { + /** Identifier of the tag in the form of /tags/{tagId} */ + tagId?: string; + /** Tag name. */ + displayName?: string; +} + +/** Properties of an API Version Set. */ +export interface ApiVersionSetContractProperties + extends ApiVersionSetEntityBase { + /** Name of API Version Set */ + displayName: string; + /** An value that determines where the API Version identifier will be located in a HTTP request. */ + versioningScheme: VersioningScheme; +} + +/** Properties used to create or update an API Version Set. */ +export interface ApiVersionSetUpdateParametersProperties + extends ApiVersionSetEntityBase { + /** Name of API Version Set */ + displayName?: string; + /** An value that determines where the API Version identifier will be located in a HTTP request. */ + versioningScheme?: VersioningScheme; +} + +/** External OAuth authorization server settings Properties. */ +export interface AuthorizationServerContractProperties + extends AuthorizationServerContractBaseProperties { + /** User-friendly authorization server name. */ + displayName: string; + /** If true, the authorization server may be used in the developer portal test console. True by default if no value is provided. */ + useInTestConsole?: boolean; + /** If true, the authorization server will be used in the API documentation in the developer portal. False by default if no value is provided. */ + useInApiDocumentation?: boolean; + /** Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced. */ + clientRegistrationEndpoint: string; + /** OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. */ + authorizationEndpoint: string; + /** Form of an authorization grant, which the client uses to request the access token. */ + grantTypes: GrantType[]; + /** Client or app id registered with this authorization server. */ + clientId: string; + /** Client or app secret registered with this authorization server. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + clientSecret?: string; +} + +/** External OAuth authorization server Update settings contract. */ +export interface AuthorizationServerUpdateContractProperties + extends AuthorizationServerContractBaseProperties { + /** User-friendly authorization server name. */ + displayName?: string; + /** If true, the authorization server may be used in the developer portal test console. True by default if no value is provided. */ + useInTestConsole?: boolean; + /** If true, the authorization server will be used in the API documentation in the developer portal. False by default if no value is provided. */ + useInApiDocumentation?: boolean; + /** Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced. */ + clientRegistrationEndpoint?: string; + /** OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. */ + authorizationEndpoint?: string; + /** Form of an authorization grant, which the client uses to request the access token. */ + grantTypes?: GrantType[]; + /** Client or app id registered with this authorization server. */ + clientId?: string; + /** Client or app secret registered with this authorization server. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + clientSecret?: string; +} + +/** Parameters supplied to the Create Backend operation. */ +export interface BackendContractProperties extends BackendBaseParameters { + /** Runtime Url of the Backend. */ + url: string; + /** Backend communication protocol. */ + protocol: BackendProtocol; +} + +/** Parameters supplied to the Update Backend operation. */ +export interface BackendUpdateParameterProperties + extends BackendBaseParameters { + /** Runtime Url of the Backend. */ + url?: string; + /** Backend communication protocol. */ + protocol?: BackendProtocol; +} + +export interface BackendBaseParametersPool extends BackendPool {} + +/** KeyVault contract details. */ +export interface KeyVaultContractProperties + extends KeyVaultContractCreateProperties { + /** Last time sync and refresh status of secret from key vault. */ + lastStatus?: KeyVaultLastAccessStatusContractProperties; +} + +/** Properties of an API Management service resource description. */ +export interface ApiManagementServiceProperties + extends ApiManagementServiceBaseProperties { + /** Publisher email. */ + publisherEmail: string; + /** Publisher name. */ + publisherName: string; +} + +/** Properties of an API Management service resource description. */ +export interface ApiManagementServiceUpdateProperties + extends ApiManagementServiceBaseProperties { + /** Publisher email. */ + publisherEmail?: string; + /** Publisher name. */ + publisherName?: string; +} + +/** User profile. */ +export interface UserContractProperties extends UserEntityBaseParameters { + /** First name. */ + firstName?: string; + /** Last name. */ lastName?: string; /** Email address. */ email?: string; @@ -3792,6 +4221,11 @@ export interface NamedValueContractProperties value?: string; /** KeyVault location details of the namedValue. */ keyVault?: KeyVaultContractProperties; + /** + * The provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; } /** NamedValue Contract properties. */ @@ -3816,24 +4250,12 @@ export interface NamedValueUpdateParameterProperties keyVault?: KeyVaultContractCreateProperties; } -/** API Create or Update Properties. */ -export interface ApiCreateOrUpdateProperties extends ApiContractProperties { - /** Content value when Importing an API. */ - value?: string; - /** Format of the Content in which the API is getting imported. */ - format?: ContentFormat; - /** Criteria to limit import of WSDL to a subset of the document. */ - wsdlSelector?: ApiCreateOrUpdatePropertiesWsdlSelector; - /** - * Type of API to create. - * * `http` creates a REST API - * * `soap` creates a SOAP pass-through API - * * `websocket` creates websocket API - * * `graphql` creates GraphQL API. - */ - soapApiType?: SoapApiType; - /** Strategy of translating required query parameters to template ones. By default has value 'template'. Possible values: 'template', 'query' */ - translateRequiredQueryParametersConduct?: TranslateRequiredQueryParametersConduct; +/** AllPolicies Contract details. */ +export interface AllPoliciesContract extends ProxyResource { + /** Policy Identifier */ + referencePolicyId?: string; + /** Policy Restriction Compliance State */ + complianceState?: PolicyComplianceState; } /** API details. */ @@ -3883,6 +4305,11 @@ export interface ApiContract extends ProxyResource { protocols?: Protocol[]; /** Version set details */ apiVersionSet?: ApiVersionSetContractDetails; + /** + * The provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; } /** ApiRelease details. */ @@ -3967,11 +4394,16 @@ export interface ProductContract extends ProxyResource { /** API Schema Contract details. */ export interface SchemaContract extends ProxyResource { - /** Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml).
- `Swagger` Schema use `application/vnd.ms-azure-apim.swagger.definitions+json`
- `WSDL` Schema use `application/vnd.ms-azure-apim.xsd+xml`
- `OpenApi` Schema use `application/vnd.oai.openapi.components+json`
- `WADL Schema` use `application/vnd.ms-azure-apim.wadl.grammars+xml`. */ + /** Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml).
- `Swagger` Schema use `application/vnd.ms-azure-apim.swagger.definitions+json`
- `WSDL` Schema use `application/vnd.ms-azure-apim.xsd+xml`
- `OpenApi` Schema use `application/vnd.oai.openapi.components+json`
- `WADL Schema` use `application/vnd.ms-azure-apim.wadl.grammars+xml`
- `OData Schema` use `application/vnd.ms-azure-apim.odata.schema`
- `gRPC Schema` use `text/protobuf`. */ contentType?: string; - /** Json escaped string defining the document representing the Schema. Used for schemas other than Swagger/OpenAPI. */ - value?: string; - /** Types definitions. Used for Swagger/OpenAPI v1 schemas only, null otherwise. */ + /** + * The provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** Json escaped string defining the document representing the Schema. Used for schemas other than Swagger/OpenAPI. */ + value?: string; + /** Types definitions. Used for Swagger/OpenAPI v1 schemas only, null otherwise. */ definitions?: Record; /** Types definitions. Used for Swagger/OpenAPI v2/v3 schemas only, null otherwise. */ components?: Record; @@ -4071,6 +4503,40 @@ export interface ApiVersionSetContract extends ProxyResource { versioningScheme?: VersioningScheme; } +/** Authorization Provider contract. */ +export interface AuthorizationProviderContract extends ProxyResource { + /** Authorization Provider name. Must be 1 to 300 characters long. */ + displayName?: string; + /** Identity provider name. Must be 1 to 300 characters long. */ + identityProvider?: string; + /** OAuth2 settings */ + oauth2?: AuthorizationProviderOAuth2Settings; +} + +/** Authorization contract. */ +export interface AuthorizationContract extends ProxyResource { + /** Authorization type options */ + authorizationType?: AuthorizationType; + /** OAuth2 grant type options */ + oAuth2GrantType?: OAuth2GrantType; + /** Authorization parameters */ + parameters?: { [propertyName: string]: string }; + /** Authorization error details. */ + error?: AuthorizationError; + /** Status of the Authorization */ + status?: string; +} + +/** Authorization access policy contract. */ +export interface AuthorizationAccessPolicyContract extends ProxyResource { + /** The allowed Azure Active Directory Application IDs */ + appIds?: string[]; + /** The Tenant Id */ + tenantId?: string; + /** The Object Id */ + objectId?: string; +} + /** External OAuth authorization server settings. */ export interface AuthorizationServerContract extends ProxyResource { /** Description of the authorization server. Can contain HTML formatting tags. */ @@ -4151,38 +4617,6 @@ export interface AuthorizationServerUpdateContract extends ProxyResource { clientSecret?: string; } -/** Authorization Provider contract. */ -export interface AuthorizationProviderContract extends ProxyResource { - /** Authorization Provider name. Must be 1 to 300 characters long. */ - displayName?: string; - /** Identity provider name. Must be 1 to 300 characters long. */ - identityProvider?: string; - /** OAuth2 settings */ - oauth2?: AuthorizationProviderOAuth2Settings; -} - -/** Authorization contract. */ -export interface AuthorizationContract extends ProxyResource { - /** Authorization type options */ - authorizationType?: AuthorizationType; - /** OAuth2 grant type options */ - oAuth2GrantType?: OAuth2GrantType; - /** Authorization parameters */ - parameters?: { [propertyName: string]: string }; - /** Authorization error details. */ - error?: AuthorizationError; - /** Status of the Authorization */ - status?: string; -} - -/** Authorization access policy contract. */ -export interface AuthorizationAccessPolicyContract extends ProxyResource { - /** The Tenant Id */ - tenantId?: string; - /** The Object Id */ - objectId?: string; -} - /** Backend details. */ export interface BackendContract extends ProxyResource { /** Backend Title. */ @@ -4199,6 +4633,11 @@ export interface BackendContract extends ProxyResource { proxy?: BackendProxyContract; /** Backend TLS Properties */ tls?: BackendTlsProperties; + /** Backend Circuit Breaker Configuration */ + circuitBreaker?: BackendCircuitBreaker; + pool?: BackendBaseParametersPool; + /** Type of the backend. A backend can be either Single or Pool. */ + typePropertiesType?: BackendType; /** Runtime Url of the Backend. */ url?: string; /** Backend communication protocol. */ @@ -4273,6 +4712,14 @@ export interface DeletedServiceContract extends ProxyResource { deletionDate?: Date; } +/** Markdown documentation details. */ +export interface DocumentationContract extends ProxyResource { + /** documentation title. */ + title?: string; + /** Markdown documentation content. */ + content?: string; +} + /** Email Template details. */ export interface EmailTemplateContract extends ProxyResource { /** Subject of the Template. */ @@ -4452,6 +4899,11 @@ export interface NamedValueContract extends ProxyResource { value?: string; /** KeyVault location details of the namedValue. */ keyVault?: KeyVaultContractProperties; + /** + * The provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; } /** NamedValue details. */ @@ -4530,10 +4982,50 @@ export interface PolicyFragmentContract extends ProxyResource { description?: string; /** Format of the policy fragment content. */ format?: PolicyFragmentContentFormat; + /** + * The provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; } export interface ResourceCollectionValueItem extends ProxyResource {} +/** Policy restriction contract details. */ +export interface PolicyRestrictionContract extends ProxyResource { + /** Path to the policy document. */ + scope?: string; + /** Indicates if base policy should be enforced for the policy document. */ + requireBase?: PolicyRestrictionRequireBase; +} + +/** Long Running Git Operation Results. */ +export interface OperationResultContract extends ProxyResource { + /** Operation result identifier. */ + idPropertiesId?: string; + /** Status of an async operation. */ + status?: AsyncOperationStatus; + /** + * Start time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + */ + started?: Date; + /** + * Last update time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + */ + updated?: Date; + /** Optional result info. */ + resultInfo?: string; + /** Error Body Contract */ + error?: ErrorResponseBody; + /** + * This property if only provided as part of the TenantConfiguration_Validate operation. It contains the log the entities which will be updated/created/deleted as part of the TenantConfiguration_Deploy operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly actionLog?: OperationResultLogItemContract[]; +} + /** The developer portal configuration contract. */ export interface PortalConfigContract extends ProxyResource { /** Enable or disable Basic authentication method. */ @@ -4574,6 +5066,11 @@ export interface PortalRevisionContract extends ProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly updatedDateTime?: Date; + /** + * The provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; } /** Portal Settings for the Developer Portal. */ @@ -4664,6 +5161,18 @@ export interface SubscriptionContract extends ProxyResource { allowTracing?: boolean; } +/** Product-API link details. */ +export interface ProductApiLinkContract extends ProxyResource { + /** Full resource Id of an API. */ + apiId?: string; +} + +/** Product-group link details. */ +export interface ProductGroupLinkContract extends ProxyResource { + /** Full resource Id of a group. */ + groupId?: string; +} + /** Global Schema Contract details. */ export interface GlobalSchemaContract extends ProxyResource { /** Schema Type. Immutable. */ @@ -4674,6 +5183,11 @@ export interface GlobalSchemaContract extends ProxyResource { value?: any; /** Global Schema document object for json-based schema formats(e.g. json schema). */ document?: Record; + /** + * The provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; } /** Tenant Settings. */ @@ -4682,6 +5196,24 @@ export interface TenantSettingsContract extends ProxyResource { settings?: { [propertyName: string]: string }; } +/** Tag-API link details. */ +export interface TagApiLinkContract extends ProxyResource { + /** Full resource Id of an API. */ + apiId?: string; +} + +/** Tag-operation link details. */ +export interface TagOperationLinkContract extends ProxyResource { + /** Full resource Id of an API operation. */ + operationId?: string; +} + +/** Tag-product link details. */ +export interface TagProductLinkContract extends ProxyResource { + /** Full resource Id of a product. */ + productId?: string; +} + /** Tenant Settings. */ export interface AccessInformationContract extends ProxyResource { /** Access Information type ('access' or 'gitAccess') */ @@ -4692,33 +5224,6 @@ export interface AccessInformationContract extends ProxyResource { enabled?: boolean; } -/** Long Running Git Operation Results. */ -export interface OperationResultContract extends ProxyResource { - /** Operation result identifier. */ - idPropertiesId?: string; - /** Status of an async operation. */ - status?: AsyncOperationStatus; - /** - * Start time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * - */ - started?: Date; - /** - * Last update time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * - */ - updated?: Date; - /** Optional result info. */ - resultInfo?: string; - /** Error Body Contract */ - error?: ErrorResponseBody; - /** - * This property if only provided as part of the TenantConfiguration_Validate operation. It contains the log the entities which will be updated/created/deleted as part of the TenantConfiguration_Deploy operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly actionLog?: OperationResultLogItemContract[]; -} - /** Result of Tenant Configuration Sync State. */ export interface TenantConfigurationSyncStateContract extends ProxyResource { /** The name of Git branch. */ @@ -4745,12 +5250,20 @@ export interface TenantConfigurationSyncStateContract extends ProxyResource { lastOperationId?: string; } -/** Markdown documentation details. */ -export interface DocumentationContract extends ProxyResource { - /** documentation title. */ - title?: string; - /** Markdown documentation content. */ - content?: string; +/** Workspace details. */ +export interface WorkspaceContract extends ProxyResource { + /** Name of the workspace. */ + displayName?: string; + /** Description of the workspace. */ + description?: string; +} + +/** Policy Contract details. */ +export interface PolicyWithComplianceContract extends ProxyResource { + /** Policy Identifier */ + referencePolicyId?: string; + /** Policy Restriction Compliance State */ + complianceState?: PolicyComplianceState; } /** Long Running Git Resolver Results. */ @@ -4780,6 +5293,39 @@ export interface ResolverResultContract extends ProxyResource { readonly actionLog?: ResolverResultLogItemContract[]; } +/** API Create or Update Properties. */ +export interface ApiCreateOrUpdateProperties extends ApiContractProperties { + /** Content value when Importing an API. */ + value?: string; + /** Format of the Content in which the API is getting imported. New formats can be added in the future */ + format?: ContentFormat; + /** Criteria to limit import of WSDL to a subset of the document. */ + wsdlSelector?: ApiCreateOrUpdatePropertiesWsdlSelector; + /** + * Type of API to create. + * * `http` creates a REST API + * * `soap` creates a SOAP pass-through API + * * `websocket` creates websocket API + * * `graphql` creates GraphQL API. + * New types can be added in the future. + */ + soapApiType?: SoapApiType; + /** Strategy of translating required query parameters to template ones. By default has value 'template'. Possible values: 'template', 'query' */ + translateRequiredQueryParametersConduct?: TranslateRequiredQueryParametersConduct; +} + +/** Defines headers for ApiManagementGateway_update operation. */ +export interface ApiManagementGatewayUpdateHeaders { + /** Location header */ + location?: string; +} + +/** Defines headers for ApiManagementGateway_delete operation. */ +export interface ApiManagementGatewayDeleteHeaders { + /** Location header */ + location?: string; +} + /** Defines headers for Api_getEntityTag operation. */ export interface ApiGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -4796,6 +5342,10 @@ export interface ApiGetHeaders { export interface ApiCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; } /** Defines headers for Api_update operation. */ @@ -4804,6 +5354,14 @@ export interface ApiUpdateHeaders { eTag?: string; } +/** Defines headers for Api_delete operation. */ +export interface ApiDeleteHeaders { + /** Location header */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; +} + /** Defines headers for ApiRelease_getEntityTag operation. */ export interface ApiReleaseGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5012,6 +5570,10 @@ export interface ApiSchemaGetHeaders { export interface ApiSchemaCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; } /** Defines headers for ApiDiagnostic_getEntityTag operation. */ @@ -5164,36 +5726,6 @@ export interface ApiVersionSetUpdateHeaders { eTag?: string; } -/** Defines headers for AuthorizationServer_getEntityTag operation. */ -export interface AuthorizationServerGetEntityTagHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; -} - -/** Defines headers for AuthorizationServer_get operation. */ -export interface AuthorizationServerGetHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; -} - -/** Defines headers for AuthorizationServer_createOrUpdate operation. */ -export interface AuthorizationServerCreateOrUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; -} - -/** Defines headers for AuthorizationServer_update operation. */ -export interface AuthorizationServerUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; -} - -/** Defines headers for AuthorizationServer_listSecrets operation. */ -export interface AuthorizationServerListSecretsHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; -} - /** Defines headers for AuthorizationProvider_get operation. */ export interface AuthorizationProviderGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5242,32 +5774,62 @@ export interface AuthorizationAccessPolicyCreateOrUpdateHeaders { eTag?: string; } -/** Defines headers for Backend_getEntityTag operation. */ -export interface BackendGetEntityTagHeaders { +/** Defines headers for AuthorizationServer_getEntityTag operation. */ +export interface AuthorizationServerGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Backend_get operation. */ -export interface BackendGetHeaders { +/** Defines headers for AuthorizationServer_get operation. */ +export interface AuthorizationServerGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Backend_createOrUpdate operation. */ -export interface BackendCreateOrUpdateHeaders { +/** Defines headers for AuthorizationServer_createOrUpdate operation. */ +export interface AuthorizationServerCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Backend_update operation. */ -export interface BackendUpdateHeaders { +/** Defines headers for AuthorizationServer_update operation. */ +export interface AuthorizationServerUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Cache_getEntityTag operation. */ -export interface CacheGetEntityTagHeaders { +/** Defines headers for AuthorizationServer_listSecrets operation. */ +export interface AuthorizationServerListSecretsHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Backend_getEntityTag operation. */ +export interface BackendGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Backend_get operation. */ +export interface BackendGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Backend_createOrUpdate operation. */ +export interface BackendCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Backend_update operation. */ +export interface BackendUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Cache_getEntityTag operation. */ +export interface CacheGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } @@ -5314,6 +5876,11 @@ export interface CertificateRefreshSecretHeaders { eTag?: string; } +/** Defines headers for ApiManagementClient_performConnectivityCheckAsync operation. */ +export interface ApiManagementClientPerformConnectivityCheckAsyncHeaders { + location?: string; +} + /** Defines headers for ContentType_get operation. */ export interface ContentTypeGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5359,6 +5926,18 @@ export interface ApiManagementServiceBackupHeaders { location?: string; } +/** Defines headers for ApiManagementService_update operation. */ +export interface ApiManagementServiceUpdateHeaders { + /** Location header */ + location?: string; +} + +/** Defines headers for ApiManagementService_delete operation. */ +export interface ApiManagementServiceDeleteHeaders { + /** Location header */ + location?: string; +} + /** Defines headers for ApiManagementService_migrateToStv2 operation. */ export interface ApiManagementServiceMigrateToStv2Headers { location?: string; @@ -5393,6 +5972,30 @@ export interface DiagnosticUpdateHeaders { eTag?: string; } +/** Defines headers for Documentation_getEntityTag operation. */ +export interface DocumentationGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Documentation_get operation. */ +export interface DocumentationGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Documentation_createOrUpdate operation. */ +export interface DocumentationCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Documentation_update operation. */ +export interface DocumentationUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + /** Defines headers for EmailTemplate_getEntityTag operation. */ export interface EmailTemplateGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5583,6 +6186,10 @@ export interface NamedValueGetHeaders { export interface NamedValueCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; } /** Defines headers for NamedValue_update operation. */ @@ -5667,6 +6274,40 @@ export interface PolicyFragmentGetHeaders { export interface PolicyFragmentCreateOrUpdateHeaders { /** Current entity state version */ eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; +} + +/** Defines headers for PolicyRestriction_getEntityTag operation. */ +export interface PolicyRestrictionGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for PolicyRestriction_get operation. */ +export interface PolicyRestrictionGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for PolicyRestriction_createOrUpdate operation. */ +export interface PolicyRestrictionCreateOrUpdateHeaders { + /** Current entity state version */ + eTag?: string; +} + +/** Defines headers for PolicyRestriction_update operation. */ +export interface PolicyRestrictionUpdateHeaders { + /** Current entity state version */ + eTag?: string; +} + +/** Defines headers for PolicyRestrictionValidations_byService operation. */ +export interface PolicyRestrictionValidationsByServiceHeaders { + /** location of the header. */ + location?: string; } /** Defines headers for PortalConfig_getEntityTag operation. */ @@ -5697,6 +6338,10 @@ export interface PortalRevisionGetHeaders { export interface PortalRevisionCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; } /** Defines headers for PortalRevision_update operation. */ @@ -5741,6 +6386,18 @@ export interface DelegationSettingsGetHeaders { eTag?: string; } +/** Defines headers for PrivateEndpointConnection_createOrUpdate operation. */ +export interface PrivateEndpointConnectionCreateOrUpdateHeaders { + /** Location header */ + location?: string; +} + +/** Defines headers for PrivateEndpointConnection_delete operation. */ +export interface PrivateEndpointConnectionDeleteHeaders { + /** Location header */ + location?: string; +} + /** Defines headers for Product_getEntityTag operation. */ export interface ProductGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5819,6 +6476,18 @@ export interface ProductWikisListNextHeaders { eTag?: string; } +/** Defines headers for ProductApiLink_get operation. */ +export interface ProductApiLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for ProductGroupLink_get operation. */ +export interface ProductGroupLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + /** Defines headers for GlobalSchema_getEntityTag operation. */ export interface GlobalSchemaGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5835,6 +6504,10 @@ export interface GlobalSchemaGetHeaders { export interface GlobalSchemaCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; } /** Defines headers for TenantSettings_get operation. */ @@ -5873,6 +6546,24 @@ export interface SubscriptionListSecretsHeaders { eTag?: string; } +/** Defines headers for TagApiLink_get operation. */ +export interface TagApiLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for TagOperationLink_get operation. */ +export interface TagOperationLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for TagProductLink_get operation. */ +export interface TagProductLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + /** Defines headers for TenantAccess_getEntityTag operation. */ export interface TenantAccessGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5903,6 +6594,21 @@ export interface TenantAccessListSecretsHeaders { eTag?: string; } +/** Defines headers for TenantConfiguration_deploy operation. */ +export interface TenantConfigurationDeployHeaders { + location?: string; +} + +/** Defines headers for TenantConfiguration_save operation. */ +export interface TenantConfigurationSaveHeaders { + location?: string; +} + +/** Defines headers for TenantConfiguration_validate operation. */ +export interface TenantConfigurationValidateHeaders { + location?: string; +} + /** Defines headers for User_getEntityTag operation. */ export interface UserGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5927,1584 +6633,4011 @@ export interface UserUpdateHeaders { eTag?: string; } +/** Defines headers for User_delete operation. */ +export interface UserDeleteHeaders { + /** Location header */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; +} + /** Defines headers for UserSubscription_get operation. */ export interface UserSubscriptionGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Documentation_getEntityTag operation. */ -export interface DocumentationGetEntityTagHeaders { +/** Defines headers for Workspace_getEntityTag operation. */ +export interface WorkspaceGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Documentation_get operation. */ -export interface DocumentationGetHeaders { +/** Defines headers for Workspace_get operation. */ +export interface WorkspaceGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Documentation_createOrUpdate operation. */ -export interface DocumentationCreateOrUpdateHeaders { +/** Defines headers for Workspace_createOrUpdate operation. */ +export interface WorkspaceCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Documentation_update operation. */ -export interface DocumentationUpdateHeaders { +/** Defines headers for Workspace_update operation. */ +export interface WorkspaceUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Known values of {@link Protocol} that the service accepts. */ -export enum KnownProtocol { - /** Http */ - Http = "http", - /** Https */ - Https = "https", - /** Ws */ - Ws = "ws", - /** Wss */ - Wss = "wss" +/** Defines headers for WorkspacePolicy_getEntityTag operation. */ +export interface WorkspacePolicyGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for Protocol. \ - * {@link KnownProtocol} can be used interchangeably with Protocol, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **http** \ - * **https** \ - * **ws** \ - * **wss** - */ -export type Protocol = string; +/** Defines headers for WorkspacePolicy_get operation. */ +export interface WorkspacePolicyGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link ApiVersionSetContractDetailsVersioningScheme} that the service accepts. */ -export enum KnownApiVersionSetContractDetailsVersioningScheme { - /** The API Version is passed in a path segment. */ - Segment = "Segment", - /** The API Version is passed in a query parameter. */ - Query = "Query", - /** The API Version is passed in a HTTP header. */ - Header = "Header" +/** Defines headers for WorkspacePolicy_createOrUpdate operation. */ +export interface WorkspacePolicyCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for ApiVersionSetContractDetailsVersioningScheme. \ - * {@link KnownApiVersionSetContractDetailsVersioningScheme} can be used interchangeably with ApiVersionSetContractDetailsVersioningScheme, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Segment**: The API Version is passed in a path segment. \ - * **Query**: The API Version is passed in a query parameter. \ - * **Header**: The API Version is passed in a HTTP header. - */ -export type ApiVersionSetContractDetailsVersioningScheme = string; +/** Defines headers for WorkspaceNamedValue_getEntityTag operation. */ +export interface WorkspaceNamedValueGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link BearerTokenSendingMethods} that the service accepts. */ -export enum KnownBearerTokenSendingMethods { - /** Access token will be transmitted in the Authorization header using Bearer schema */ - AuthorizationHeader = "authorizationHeader", - /** Access token will be transmitted as query parameters. */ - Query = "query" +/** Defines headers for WorkspaceNamedValue_get operation. */ +export interface WorkspaceNamedValueGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for BearerTokenSendingMethods. \ - * {@link KnownBearerTokenSendingMethods} can be used interchangeably with BearerTokenSendingMethods, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **authorizationHeader**: Access token will be transmitted in the Authorization header using Bearer schema \ - * **query**: Access token will be transmitted as query parameters. - */ -export type BearerTokenSendingMethods = string; +/** Defines headers for WorkspaceNamedValue_createOrUpdate operation. */ +export interface WorkspaceNamedValueCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; +} -/** Known values of {@link ApiType} that the service accepts. */ -export enum KnownApiType { - /** Http */ - Http = "http", - /** Soap */ - Soap = "soap", - /** Websocket */ - Websocket = "websocket", - /** Graphql */ - Graphql = "graphql" +/** Defines headers for WorkspaceNamedValue_update operation. */ +export interface WorkspaceNamedValueUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for ApiType. \ - * {@link KnownApiType} can be used interchangeably with ApiType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **http** \ - * **soap** \ - * **websocket** \ - * **graphql** - */ -export type ApiType = string; +/** Defines headers for WorkspaceNamedValue_listValue operation. */ +export interface WorkspaceNamedValueListValueHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link ContentFormat} that the service accepts. */ -export enum KnownContentFormat { - /** The contents are inline and Content type is a WADL document. */ - WadlXml = "wadl-xml", - /** The WADL document is hosted on a publicly accessible internet address. */ - WadlLinkJson = "wadl-link-json", - /** The contents are inline and Content Type is a OpenAPI 2.0 JSON Document. */ - SwaggerJson = "swagger-json", - /** The OpenAPI 2.0 JSON document is hosted on a publicly accessible internet address. */ - SwaggerLinkJson = "swagger-link-json", - /** The contents are inline and the document is a WSDL\/Soap document. */ - Wsdl = "wsdl", - /** The WSDL document is hosted on a publicly accessible internet address. */ - WsdlLink = "wsdl-link", - /** The contents are inline and Content Type is a OpenAPI 3.0 YAML Document. */ - Openapi = "openapi", - /** The contents are inline and Content Type is a OpenAPI 3.0 JSON Document. */ - OpenapiJson = "openapi+json", - /** The OpenAPI 3.0 YAML document is hosted on a publicly accessible internet address. */ - OpenapiLink = "openapi-link", - /** The OpenAPI 3.0 JSON document is hosted on a publicly accessible internet address. */ - OpenapiJsonLink = "openapi+json-link", - /** The GraphQL API endpoint hosted on a publicly accessible internet address. */ - GraphqlLink = "graphql-link" +/** Defines headers for WorkspaceNamedValue_refreshSecret operation. */ +export interface WorkspaceNamedValueRefreshSecretHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for ContentFormat. \ - * {@link KnownContentFormat} can be used interchangeably with ContentFormat, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **wadl-xml**: The contents are inline and Content type is a WADL document. \ - * **wadl-link-json**: The WADL document is hosted on a publicly accessible internet address. \ - * **swagger-json**: The contents are inline and Content Type is a OpenAPI 2.0 JSON Document. \ - * **swagger-link-json**: The OpenAPI 2.0 JSON document is hosted on a publicly accessible internet address. \ - * **wsdl**: The contents are inline and the document is a WSDL\/Soap document. \ - * **wsdl-link**: The WSDL document is hosted on a publicly accessible internet address. \ - * **openapi**: The contents are inline and Content Type is a OpenAPI 3.0 YAML Document. \ - * **openapi+json**: The contents are inline and Content Type is a OpenAPI 3.0 JSON Document. \ - * **openapi-link**: The OpenAPI 3.0 YAML document is hosted on a publicly accessible internet address. \ - * **openapi+json-link**: The OpenAPI 3.0 JSON document is hosted on a publicly accessible internet address. \ - * **graphql-link**: The GraphQL API endpoint hosted on a publicly accessible internet address. - */ -export type ContentFormat = string; +/** Defines headers for WorkspaceGlobalSchema_getEntityTag operation. */ +export interface WorkspaceGlobalSchemaGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link SoapApiType} that the service accepts. */ -export enum KnownSoapApiType { - /** Imports a SOAP API having a RESTful front end. */ - SoapToRest = "http", - /** Imports the SOAP API having a SOAP front end. */ - SoapPassThrough = "soap", - /** Imports the API having a Websocket front end. */ - WebSocket = "websocket", - /** Imports the API having a GraphQL front end. */ - GraphQL = "graphql" +/** Defines headers for WorkspaceGlobalSchema_get operation. */ +export interface WorkspaceGlobalSchemaGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for SoapApiType. \ - * {@link KnownSoapApiType} can be used interchangeably with SoapApiType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **http**: Imports a SOAP API having a RESTful front end. \ - * **soap**: Imports the SOAP API having a SOAP front end. \ - * **websocket**: Imports the API having a Websocket front end. \ - * **graphql**: Imports the API having a GraphQL front end. - */ -export type SoapApiType = string; +/** Defines headers for WorkspaceGlobalSchema_createOrUpdate operation. */ +export interface WorkspaceGlobalSchemaCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; +} -/** Known values of {@link TranslateRequiredQueryParametersConduct} that the service accepts. */ -export enum KnownTranslateRequiredQueryParametersConduct { - /** Translates required query parameters to template ones. Is a default value */ - Template = "template", - /** Leaves required query parameters as they are (no translation done). */ - Query = "query" +/** Defines headers for WorkspacePolicyFragment_getEntityTag operation. */ +export interface WorkspacePolicyFragmentGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for TranslateRequiredQueryParametersConduct. \ - * {@link KnownTranslateRequiredQueryParametersConduct} can be used interchangeably with TranslateRequiredQueryParametersConduct, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **template**: Translates required query parameters to template ones. Is a default value \ - * **query**: Leaves required query parameters as they are (no translation done). - */ -export type TranslateRequiredQueryParametersConduct = string; +/** Defines headers for WorkspacePolicyFragment_get operation. */ +export interface WorkspacePolicyFragmentGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link PolicyContentFormat} that the service accepts. */ -export enum KnownPolicyContentFormat { - /** The contents are inline and Content type is an XML document. */ - Xml = "xml", - /** The policy XML document is hosted on a HTTP endpoint accessible from the API Management service. */ - XmlLink = "xml-link", - /** The contents are inline and Content type is a non XML encoded policy document. */ - Rawxml = "rawxml", - /** The policy document is not XML encoded and is hosted on a HTTP endpoint accessible from the API Management service. */ - RawxmlLink = "rawxml-link" +/** Defines headers for WorkspacePolicyFragment_createOrUpdate operation. */ +export interface WorkspacePolicyFragmentCreateOrUpdateHeaders { + /** Current entity state version */ + eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; } -/** - * Defines values for PolicyContentFormat. \ - * {@link KnownPolicyContentFormat} can be used interchangeably with PolicyContentFormat, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **xml**: The contents are inline and Content type is an XML document. \ - * **xml-link**: The policy XML document is hosted on a HTTP endpoint accessible from the API Management service. \ - * **rawxml**: The contents are inline and Content type is a non XML encoded policy document. \ - * **rawxml-link**: The policy document is not XML encoded and is hosted on a HTTP endpoint accessible from the API Management service. - */ -export type PolicyContentFormat = string; +/** Defines headers for WorkspaceGroup_getEntityTag operation. */ +export interface WorkspaceGroupGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link PolicyIdName} that the service accepts. */ -export enum KnownPolicyIdName { - /** Policy */ - Policy = "policy" +/** Defines headers for WorkspaceGroup_get operation. */ +export interface WorkspaceGroupGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for PolicyIdName. \ - * {@link KnownPolicyIdName} can be used interchangeably with PolicyIdName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **policy** - */ -export type PolicyIdName = string; +/** Defines headers for WorkspaceGroup_createOrUpdate operation. */ +export interface WorkspaceGroupCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link PolicyExportFormat} that the service accepts. */ -export enum KnownPolicyExportFormat { - /** The contents are inline and Content type is an XML document. */ - Xml = "xml", - /** The contents are inline and Content type is a non XML encoded policy document. */ - Rawxml = "rawxml" +/** Defines headers for WorkspaceGroup_update operation. */ +export interface WorkspaceGroupUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for PolicyExportFormat. \ - * {@link KnownPolicyExportFormat} can be used interchangeably with PolicyExportFormat, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **xml**: The contents are inline and Content type is an XML document. \ - * **rawxml**: The contents are inline and Content type is a non XML encoded policy document. - */ -export type PolicyExportFormat = string; +/** Defines headers for WorkspaceSubscription_getEntityTag operation. */ +export interface WorkspaceSubscriptionGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link AlwaysLog} that the service accepts. */ -export enum KnownAlwaysLog { - /** Always log all erroneous request regardless of sampling settings. */ - AllErrors = "allErrors" +/** Defines headers for WorkspaceSubscription_get operation. */ +export interface WorkspaceSubscriptionGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for AlwaysLog. \ - * {@link KnownAlwaysLog} can be used interchangeably with AlwaysLog, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **allErrors**: Always log all erroneous request regardless of sampling settings. - */ -export type AlwaysLog = string; +/** Defines headers for WorkspaceSubscription_createOrUpdate operation. */ +export interface WorkspaceSubscriptionCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link SamplingType} that the service accepts. */ -export enum KnownSamplingType { - /** Fixed-rate sampling. */ - Fixed = "fixed" +/** Defines headers for WorkspaceSubscription_update operation. */ +export interface WorkspaceSubscriptionUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for SamplingType. \ - * {@link KnownSamplingType} can be used interchangeably with SamplingType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **fixed**: Fixed-rate sampling. - */ -export type SamplingType = string; +/** Defines headers for WorkspaceSubscription_listSecrets operation. */ +export interface WorkspaceSubscriptionListSecretsHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link DataMaskingMode} that the service accepts. */ -export enum KnownDataMaskingMode { - /** Mask the value of an entity. */ - Mask = "Mask", - /** Hide the presence of an entity. */ - Hide = "Hide" +/** Defines headers for WorkspaceApiVersionSet_getEntityTag operation. */ +export interface WorkspaceApiVersionSetGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for DataMaskingMode. \ - * {@link KnownDataMaskingMode} can be used interchangeably with DataMaskingMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Mask**: Mask the value of an entity. \ - * **Hide**: Hide the presence of an entity. - */ -export type DataMaskingMode = string; +/** Defines headers for WorkspaceApiVersionSet_get operation. */ +export interface WorkspaceApiVersionSetGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link HttpCorrelationProtocol} that the service accepts. */ -export enum KnownHttpCorrelationProtocol { - /** Do not read and inject correlation headers. */ - None = "None", - /** Inject Request-Id and Request-Context headers with request correlation data. See https:\//github.com\/dotnet\/corefx\/blob\/master\/src\/System.Diagnostics.DiagnosticSource\/src\/HttpCorrelationProtocol.md. */ - Legacy = "Legacy", - /** Inject Trace Context headers. See https:\//w3c.github.io\/trace-context. */ - W3C = "W3C" +/** Defines headers for WorkspaceApiVersionSet_createOrUpdate operation. */ +export interface WorkspaceApiVersionSetCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for HttpCorrelationProtocol. \ - * {@link KnownHttpCorrelationProtocol} can be used interchangeably with HttpCorrelationProtocol, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None**: Do not read and inject correlation headers. \ - * **Legacy**: Inject Request-Id and Request-Context headers with request correlation data. See https:\/\/github.com\/dotnet\/corefx\/blob\/master\/src\/System.Diagnostics.DiagnosticSource\/src\/HttpCorrelationProtocol.md. \ - * **W3C**: Inject Trace Context headers. See https:\/\/w3c.github.io\/trace-context. - */ -export type HttpCorrelationProtocol = string; +/** Defines headers for WorkspaceApiVersionSet_update operation. */ +export interface WorkspaceApiVersionSetUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link Verbosity} that the service accepts. */ -export enum KnownVerbosity { - /** All the traces emitted by trace policies will be sent to the logger attached to this diagnostic instance. */ - Verbose = "verbose", - /** Traces with 'severity' set to 'information' and 'error' will be sent to the logger attached to this diagnostic instance. */ - Information = "information", - /** Only traces with 'severity' set to 'error' will be sent to the logger attached to this diagnostic instance. */ - Error = "error" +/** Defines headers for WorkspaceApi_getEntityTag operation. */ +export interface WorkspaceApiGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for Verbosity. \ - * {@link KnownVerbosity} can be used interchangeably with Verbosity, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **verbose**: All the traces emitted by trace policies will be sent to the logger attached to this diagnostic instance. \ - * **information**: Traces with 'severity' set to 'information' and 'error' will be sent to the logger attached to this diagnostic instance. \ - * **error**: Only traces with 'severity' set to 'error' will be sent to the logger attached to this diagnostic instance. - */ -export type Verbosity = string; +/** Defines headers for WorkspaceApi_get operation. */ +export interface WorkspaceApiGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link OperationNameFormat} that the service accepts. */ -export enum KnownOperationNameFormat { - /** API_NAME;rev=API_REVISION - OPERATION_NAME */ - Name = "Name", - /** HTTP_VERB URL */ - Url = "Url" +/** Defines headers for WorkspaceApi_createOrUpdate operation. */ +export interface WorkspaceApiCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; } -/** - * Defines values for OperationNameFormat. \ - * {@link KnownOperationNameFormat} can be used interchangeably with OperationNameFormat, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Name**: API_NAME;rev=API_REVISION - OPERATION_NAME \ - * **Url**: HTTP_VERB URL - */ -export type OperationNameFormat = string; +/** Defines headers for WorkspaceApi_update operation. */ +export interface WorkspaceApiUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link State} that the service accepts. */ -export enum KnownState { - /** The issue is proposed. */ - Proposed = "proposed", - /** The issue is opened. */ - Open = "open", - /** The issue was removed. */ - Removed = "removed", - /** The issue is now resolved. */ - Resolved = "resolved", - /** The issue was closed. */ - Closed = "closed" +/** Defines headers for WorkspaceApiRelease_getEntityTag operation. */ +export interface WorkspaceApiReleaseGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for State. \ - * {@link KnownState} can be used interchangeably with State, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **proposed**: The issue is proposed. \ - * **open**: The issue is opened. \ - * **removed**: The issue was removed. \ - * **resolved**: The issue is now resolved. \ - * **closed**: The issue was closed. - */ -export type State = string; +/** Defines headers for WorkspaceApiRelease_get operation. */ +export interface WorkspaceApiReleaseGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link ExportFormat} that the service accepts. */ -export enum KnownExportFormat { - /** Export the Api Definition in OpenAPI 2.0 Specification as JSON document to the Storage Blob. */ - Swagger = "swagger-link", - /** Export the Api Definition in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` */ - Wsdl = "wsdl-link", - /** Export the Api Definition in WADL Schema to Storage Blob. */ - Wadl = "wadl-link", - /** Export the Api Definition in OpenAPI 3.0 Specification as YAML document to Storage Blob. */ - Openapi = "openapi-link", - /** Export the Api Definition in OpenAPI 3.0 Specification as JSON document to Storage Blob. */ - OpenapiJson = "openapi+json-link" +/** Defines headers for WorkspaceApiRelease_createOrUpdate operation. */ +export interface WorkspaceApiReleaseCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiRelease_update operation. */ +export interface WorkspaceApiReleaseUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiOperation_getEntityTag operation. */ +export interface WorkspaceApiOperationGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiOperation_get operation. */ +export interface WorkspaceApiOperationGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiOperation_createOrUpdate operation. */ +export interface WorkspaceApiOperationCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiOperation_update operation. */ +export interface WorkspaceApiOperationUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiOperationPolicy_getEntityTag operation. */ +export interface WorkspaceApiOperationPolicyGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiOperationPolicy_get operation. */ +export interface WorkspaceApiOperationPolicyGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiOperationPolicy_createOrUpdate operation. */ +export interface WorkspaceApiOperationPolicyCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiPolicy_getEntityTag operation. */ +export interface WorkspaceApiPolicyGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiPolicy_get operation. */ +export interface WorkspaceApiPolicyGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiPolicy_createOrUpdate operation. */ +export interface WorkspaceApiPolicyCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiSchema_getEntityTag operation. */ +export interface WorkspaceApiSchemaGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiSchema_get operation. */ +export interface WorkspaceApiSchemaGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiSchema_createOrUpdate operation. */ +export interface WorkspaceApiSchemaCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; +} + +/** Defines headers for WorkspaceProduct_getEntityTag operation. */ +export interface WorkspaceProductGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProduct_get operation. */ +export interface WorkspaceProductGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProduct_createOrUpdate operation. */ +export interface WorkspaceProductCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProduct_update operation. */ +export interface WorkspaceProductUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProductApiLink_get operation. */ +export interface WorkspaceProductApiLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProductGroupLink_get operation. */ +export interface WorkspaceProductGroupLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProductPolicy_getEntityTag operation. */ +export interface WorkspaceProductPolicyGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProductPolicy_get operation. */ +export interface WorkspaceProductPolicyGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProductPolicy_createOrUpdate operation. */ +export interface WorkspaceProductPolicyCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTag_getEntityState operation. */ +export interface WorkspaceTagGetEntityStateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTag_get operation. */ +export interface WorkspaceTagGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTag_createOrUpdate operation. */ +export interface WorkspaceTagCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTag_update operation. */ +export interface WorkspaceTagUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTagApiLink_get operation. */ +export interface WorkspaceTagApiLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTagOperationLink_get operation. */ +export interface WorkspaceTagOperationLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTagProductLink_get operation. */ +export interface WorkspaceTagProductLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Known values of {@link PolicyComplianceState} that the service accepts. */ +export enum KnownPolicyComplianceState { + /** The policy restriction compliance state has not yet been determined. */ + Pending = "Pending", + /** The scope in restriction is out of compliance. */ + NonCompliant = "NonCompliant", + /** The scope in restriction is in compliance. */ + Compliant = "Compliant", } /** - * Defines values for ExportFormat. \ - * {@link KnownExportFormat} can be used interchangeably with ExportFormat, + * Defines values for PolicyComplianceState. \ + * {@link KnownPolicyComplianceState} can be used interchangeably with PolicyComplianceState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **swagger-link**: Export the Api Definition in OpenAPI 2.0 Specification as JSON document to the Storage Blob. \ - * **wsdl-link**: Export the Api Definition in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` \ - * **wadl-link**: Export the Api Definition in WADL Schema to Storage Blob. \ - * **openapi-link**: Export the Api Definition in OpenAPI 3.0 Specification as YAML document to Storage Blob. \ - * **openapi+json-link**: Export the Api Definition in OpenAPI 3.0 Specification as JSON document to Storage Blob. + * **Pending**: The policy restriction compliance state has not yet been determined. \ + * **NonCompliant**: The scope in restriction is out of compliance. \ + * **Compliant**: The scope in restriction is in compliance. */ -export type ExportFormat = string; +export type PolicyComplianceState = string; -/** Known values of {@link ExportApi} that the service accepts. */ -export enum KnownExportApi { - /** True */ - True = "true" +/** Known values of {@link SkuType} that the service accepts. */ +export enum KnownSkuType { + /** Standard SKU of the API gateway. */ + Standard = "Standard", } /** - * Defines values for ExportApi. \ - * {@link KnownExportApi} can be used interchangeably with ExportApi, + * Defines values for SkuType. \ + * {@link KnownSkuType} can be used interchangeably with SkuType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **true** + * **Standard**: Standard SKU of the API gateway. */ -export type ExportApi = string; +export type SkuType = string; -/** Known values of {@link ExportResultFormat} that the service accepts. */ -export enum KnownExportResultFormat { - /** The API Definition is exported in OpenAPI Specification 2.0 format to the Storage Blob. */ - Swagger = "swagger-link-json", - /** The API Definition is exported in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` */ - Wsdl = "wsdl-link+xml", - /** Export the API Definition in WADL Schema to Storage Blob. */ - Wadl = "wadl-link-json", - /** Export the API Definition in OpenAPI Specification 3.0 to Storage Blob. */ - OpenApi = "openapi-link" +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key", } /** - * Defines values for ExportResultFormat. \ - * {@link KnownExportResultFormat} can be used interchangeably with ExportResultFormat, + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **swagger-link-json**: The API Definition is exported in OpenAPI Specification 2.0 format to the Storage Blob. \ - * **wsdl-link+xml**: The API Definition is exported in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` \ - * **wadl-link-json**: Export the API Definition in WADL Schema to Storage Blob. \ - * **openapi-link**: Export the API Definition in OpenAPI Specification 3.0 to Storage Blob. + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** */ -export type ExportResultFormat = string; +export type CreatedByType = string; -/** Known values of {@link VersioningScheme} that the service accepts. */ -export enum KnownVersioningScheme { +/** Known values of {@link Protocol} that the service accepts. */ +export enum KnownProtocol { + /** Http */ + Http = "http", + /** Https */ + Https = "https", + /** Ws */ + Ws = "ws", + /** Wss */ + Wss = "wss", +} + +/** + * Defines values for Protocol. \ + * {@link KnownProtocol} can be used interchangeably with Protocol, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **http** \ + * **https** \ + * **ws** \ + * **wss** + */ +export type Protocol = string; + +/** Known values of {@link ApiVersionSetContractDetailsVersioningScheme} that the service accepts. */ +export enum KnownApiVersionSetContractDetailsVersioningScheme { /** The API Version is passed in a path segment. */ Segment = "Segment", /** The API Version is passed in a query parameter. */ Query = "Query", /** The API Version is passed in a HTTP header. */ - Header = "Header" + Header = "Header", } /** - * Defines values for VersioningScheme. \ - * {@link KnownVersioningScheme} can be used interchangeably with VersioningScheme, + * Defines values for ApiVersionSetContractDetailsVersioningScheme. \ + * {@link KnownApiVersionSetContractDetailsVersioningScheme} can be used interchangeably with ApiVersionSetContractDetailsVersioningScheme, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Segment**: The API Version is passed in a path segment. \ * **Query**: The API Version is passed in a query parameter. \ * **Header**: The API Version is passed in a HTTP header. */ -export type VersioningScheme = string; +export type ApiVersionSetContractDetailsVersioningScheme = string; -/** Known values of {@link GrantType} that the service accepts. */ -export enum KnownGrantType { - /** Authorization Code Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.1. */ - AuthorizationCode = "authorizationCode", - /** Implicit Code Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.2. */ - Implicit = "implicit", - /** Resource Owner Password Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.3. */ - ResourceOwnerPassword = "resourceOwnerPassword", - /** Client Credentials Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.4. */ - ClientCredentials = "clientCredentials" +/** Known values of {@link BearerTokenSendingMethods} that the service accepts. */ +export enum KnownBearerTokenSendingMethods { + /** Access token will be transmitted in the Authorization header using Bearer schema */ + AuthorizationHeader = "authorizationHeader", + /** Access token will be transmitted as query parameters. */ + Query = "query", } /** - * Defines values for GrantType. \ - * {@link KnownGrantType} can be used interchangeably with GrantType, + * Defines values for BearerTokenSendingMethods. \ + * {@link KnownBearerTokenSendingMethods} can be used interchangeably with BearerTokenSendingMethods, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **authorizationCode**: Authorization Code Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.1. \ - * **implicit**: Implicit Code Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.2. \ - * **resourceOwnerPassword**: Resource Owner Password Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.3. \ - * **clientCredentials**: Client Credentials Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.4. + * **authorizationHeader**: Access token will be transmitted in the Authorization header using Bearer schema \ + * **query**: Access token will be transmitted as query parameters. */ -export type GrantType = string; +export type BearerTokenSendingMethods = string; -/** Known values of {@link ClientAuthenticationMethod} that the service accepts. */ -export enum KnownClientAuthenticationMethod { - /** Basic Client Authentication method. */ - Basic = "Basic", - /** Body based Authentication method. */ - Body = "Body" +/** Known values of {@link ApiType} that the service accepts. */ +export enum KnownApiType { + /** Http */ + Http = "http", + /** Soap */ + Soap = "soap", + /** Websocket */ + Websocket = "websocket", + /** Graphql */ + Graphql = "graphql", + /** Odata */ + Odata = "odata", + /** Grpc */ + Grpc = "grpc", } /** - * Defines values for ClientAuthenticationMethod. \ - * {@link KnownClientAuthenticationMethod} can be used interchangeably with ClientAuthenticationMethod, + * Defines values for ApiType. \ + * {@link KnownApiType} can be used interchangeably with ApiType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Basic**: Basic Client Authentication method. \ - * **Body**: Body based Authentication method. + * **http** \ + * **soap** \ + * **websocket** \ + * **graphql** \ + * **odata** \ + * **grpc** */ -export type ClientAuthenticationMethod = string; +export type ApiType = string; -/** Known values of {@link BearerTokenSendingMethod} that the service accepts. */ -export enum KnownBearerTokenSendingMethod { - /** AuthorizationHeader */ - AuthorizationHeader = "authorizationHeader", - /** Query */ - Query = "query" +/** Known values of {@link ContentFormat} that the service accepts. */ +export enum KnownContentFormat { + /** The contents are inline and Content type is a WADL document. */ + WadlXml = "wadl-xml", + /** The WADL document is hosted on a publicly accessible internet address. */ + WadlLinkJson = "wadl-link-json", + /** The contents are inline and Content Type is a OpenAPI 2.0 JSON Document. */ + SwaggerJson = "swagger-json", + /** The OpenAPI 2.0 JSON document is hosted on a publicly accessible internet address. */ + SwaggerLinkJson = "swagger-link-json", + /** The contents are inline and the document is a WSDL\/Soap document. */ + Wsdl = "wsdl", + /** The WSDL document is hosted on a publicly accessible internet address. */ + WsdlLink = "wsdl-link", + /** The contents are inline and Content Type is a OpenAPI 3.0 YAML Document. */ + Openapi = "openapi", + /** The contents are inline and Content Type is a OpenAPI 3.0 JSON Document. */ + OpenapiJson = "openapi+json", + /** The OpenAPI 3.0 YAML document is hosted on a publicly accessible internet address. */ + OpenapiLink = "openapi-link", + /** The OpenAPI 3.0 JSON document is hosted on a publicly accessible internet address. */ + OpenapiJsonLink = "openapi+json-link", + /** The GraphQL API endpoint hosted on a publicly accessible internet address. */ + GraphqlLink = "graphql-link", + /** The contents are inline and Content Type is a OData XML Document. */ + Odata = "odata", + /** The OData metadata document hosted on a publicly accessible internet address. */ + OdataLink = "odata-link", + /** The contents are inline and Content Type is a gRPC protobuf file. */ + Grpc = "grpc", + /** The gRPC protobuf file is hosted on a publicly accessible internet address. */ + GrpcLink = "grpc-link", } /** - * Defines values for BearerTokenSendingMethod. \ - * {@link KnownBearerTokenSendingMethod} can be used interchangeably with BearerTokenSendingMethod, + * Defines values for ContentFormat. \ + * {@link KnownContentFormat} can be used interchangeably with ContentFormat, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **authorizationHeader** \ - * **query** + * **wadl-xml**: The contents are inline and Content type is a WADL document. \ + * **wadl-link-json**: The WADL document is hosted on a publicly accessible internet address. \ + * **swagger-json**: The contents are inline and Content Type is a OpenAPI 2.0 JSON Document. \ + * **swagger-link-json**: The OpenAPI 2.0 JSON document is hosted on a publicly accessible internet address. \ + * **wsdl**: The contents are inline and the document is a WSDL\/Soap document. \ + * **wsdl-link**: The WSDL document is hosted on a publicly accessible internet address. \ + * **openapi**: The contents are inline and Content Type is a OpenAPI 3.0 YAML Document. \ + * **openapi+json**: The contents are inline and Content Type is a OpenAPI 3.0 JSON Document. \ + * **openapi-link**: The OpenAPI 3.0 YAML document is hosted on a publicly accessible internet address. \ + * **openapi+json-link**: The OpenAPI 3.0 JSON document is hosted on a publicly accessible internet address. \ + * **graphql-link**: The GraphQL API endpoint hosted on a publicly accessible internet address. \ + * **odata**: The contents are inline and Content Type is a OData XML Document. \ + * **odata-link**: The OData metadata document hosted on a publicly accessible internet address. \ + * **grpc**: The contents are inline and Content Type is a gRPC protobuf file. \ + * **grpc-link**: The gRPC protobuf file is hosted on a publicly accessible internet address. */ -export type BearerTokenSendingMethod = string; +export type ContentFormat = string; -/** Known values of {@link AuthorizationType} that the service accepts. */ -export enum KnownAuthorizationType { - /** OAuth2 authorization type */ - OAuth2 = "OAuth2" +/** Known values of {@link SoapApiType} that the service accepts. */ +export enum KnownSoapApiType { + /** Imports a SOAP API having a RESTful front end. */ + SoapToRest = "http", + /** Imports the SOAP API having a SOAP front end. */ + SoapPassThrough = "soap", + /** Imports the API having a Websocket front end. */ + WebSocket = "websocket", + /** Imports the API having a GraphQL front end. */ + GraphQL = "graphql", + /** Imports the API having a OData front end. */ + OData = "odata", + /** Imports the API having a gRPC front end. */ + GRPC = "grpc", } /** - * Defines values for AuthorizationType. \ - * {@link KnownAuthorizationType} can be used interchangeably with AuthorizationType, + * Defines values for SoapApiType. \ + * {@link KnownSoapApiType} can be used interchangeably with SoapApiType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **OAuth2**: OAuth2 authorization type + * **http**: Imports a SOAP API having a RESTful front end. \ + * **soap**: Imports the SOAP API having a SOAP front end. \ + * **websocket**: Imports the API having a Websocket front end. \ + * **graphql**: Imports the API having a GraphQL front end. \ + * **odata**: Imports the API having a OData front end. \ + * **grpc**: Imports the API having a gRPC front end. */ -export type AuthorizationType = string; +export type SoapApiType = string; -/** Known values of {@link OAuth2GrantType} that the service accepts. */ -export enum KnownOAuth2GrantType { - /** Authorization Code grant */ - AuthorizationCode = "AuthorizationCode", - /** Client Credential grant */ - ClientCredentials = "ClientCredentials" +/** Known values of {@link TranslateRequiredQueryParametersConduct} that the service accepts. */ +export enum KnownTranslateRequiredQueryParametersConduct { + /** Translates required query parameters to template ones. Is a default value */ + Template = "template", + /** Leaves required query parameters as they are (no translation done). */ + Query = "query", } /** - * Defines values for OAuth2GrantType. \ - * {@link KnownOAuth2GrantType} can be used interchangeably with OAuth2GrantType, + * Defines values for TranslateRequiredQueryParametersConduct. \ + * {@link KnownTranslateRequiredQueryParametersConduct} can be used interchangeably with TranslateRequiredQueryParametersConduct, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AuthorizationCode**: Authorization Code grant \ - * **ClientCredentials**: Client Credential grant + * **template**: Translates required query parameters to template ones. Is a default value \ + * **query**: Leaves required query parameters as they are (no translation done). */ -export type OAuth2GrantType = string; +export type TranslateRequiredQueryParametersConduct = string; -/** Known values of {@link BackendProtocol} that the service accepts. */ -export enum KnownBackendProtocol { - /** The Backend is a RESTful service. */ - Http = "http", - /** The Backend is a SOAP service. */ - Soap = "soap" +/** Known values of {@link PolicyContentFormat} that the service accepts. */ +export enum KnownPolicyContentFormat { + /** The contents are inline and Content type is an XML document. */ + Xml = "xml", + /** The policy XML document is hosted on a HTTP endpoint accessible from the API Management service. */ + XmlLink = "xml-link", + /** The contents are inline and Content type is a non XML encoded policy document. */ + Rawxml = "rawxml", + /** The policy document is not XML encoded and is hosted on a HTTP endpoint accessible from the API Management service. */ + RawxmlLink = "rawxml-link", } /** - * Defines values for BackendProtocol. \ - * {@link KnownBackendProtocol} can be used interchangeably with BackendProtocol, + * Defines values for PolicyContentFormat. \ + * {@link KnownPolicyContentFormat} can be used interchangeably with PolicyContentFormat, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **http**: The Backend is a RESTful service. \ - * **soap**: The Backend is a SOAP service. + * **xml**: The contents are inline and Content type is an XML document. \ + * **xml-link**: The policy XML document is hosted on a HTTP endpoint accessible from the API Management service. \ + * **rawxml**: The contents are inline and Content type is a non XML encoded policy document. \ + * **rawxml-link**: The policy document is not XML encoded and is hosted on a HTTP endpoint accessible from the API Management service. */ -export type BackendProtocol = string; +export type PolicyContentFormat = string; -/** Known values of {@link PreferredIPVersion} that the service accepts. */ -export enum KnownPreferredIPVersion { - /** IPv4 */ - IPv4 = "IPv4" +/** Known values of {@link PolicyIdName} that the service accepts. */ +export enum KnownPolicyIdName { + /** Policy */ + Policy = "policy", } /** - * Defines values for PreferredIPVersion. \ - * {@link KnownPreferredIPVersion} can be used interchangeably with PreferredIPVersion, + * Defines values for PolicyIdName. \ + * {@link KnownPolicyIdName} can be used interchangeably with PolicyIdName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **IPv4** + * **policy** */ -export type PreferredIPVersion = string; +export type PolicyIdName = string; -/** Known values of {@link ConnectivityCheckProtocol} that the service accepts. */ -export enum KnownConnectivityCheckProtocol { - /** TCP */ - TCP = "TCP", - /** Http */ - Http = "HTTP", - /** Https */ - Https = "HTTPS" +/** Known values of {@link PolicyExportFormat} that the service accepts. */ +export enum KnownPolicyExportFormat { + /** The contents are inline and Content type is an XML document. */ + Xml = "xml", + /** The contents are inline and Content type is a non XML encoded policy document. */ + Rawxml = "rawxml", } /** - * Defines values for ConnectivityCheckProtocol. \ - * {@link KnownConnectivityCheckProtocol} can be used interchangeably with ConnectivityCheckProtocol, + * Defines values for PolicyExportFormat. \ + * {@link KnownPolicyExportFormat} can be used interchangeably with PolicyExportFormat, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **TCP** \ - * **HTTP** \ - * **HTTPS** + * **xml**: The contents are inline and Content type is an XML document. \ + * **rawxml**: The contents are inline and Content type is a non XML encoded policy document. */ -export type ConnectivityCheckProtocol = string; +export type PolicyExportFormat = string; -/** Known values of {@link Method} that the service accepts. */ -export enum KnownMethod { - /** GET */ - GET = "GET", - /** Post */ - Post = "POST" +/** Known values of {@link AlwaysLog} that the service accepts. */ +export enum KnownAlwaysLog { + /** Always log all erroneous request regardless of sampling settings. */ + AllErrors = "allErrors", } /** - * Defines values for Method. \ - * {@link KnownMethod} can be used interchangeably with Method, + * Defines values for AlwaysLog. \ + * {@link KnownAlwaysLog} can be used interchangeably with AlwaysLog, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **GET** \ - * **POST** + * **allErrors**: Always log all erroneous request regardless of sampling settings. */ -export type Method = string; +export type AlwaysLog = string; -/** Known values of {@link Origin} that the service accepts. */ -export enum KnownOrigin { - /** Local */ - Local = "Local", - /** Inbound */ - Inbound = "Inbound", - /** Outbound */ - Outbound = "Outbound" +/** Known values of {@link SamplingType} that the service accepts. */ +export enum KnownSamplingType { + /** Fixed-rate sampling. */ + Fixed = "fixed", } /** - * Defines values for Origin. \ - * {@link KnownOrigin} can be used interchangeably with Origin, + * Defines values for SamplingType. \ + * {@link KnownSamplingType} can be used interchangeably with SamplingType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Local** \ - * **Inbound** \ - * **Outbound** + * **fixed**: Fixed-rate sampling. */ -export type Origin = string; +export type SamplingType = string; -/** Known values of {@link Severity} that the service accepts. */ -export enum KnownSeverity { - /** Error */ - Error = "Error", - /** Warning */ - Warning = "Warning" +/** Known values of {@link DataMaskingMode} that the service accepts. */ +export enum KnownDataMaskingMode { + /** Mask the value of an entity. */ + Mask = "Mask", + /** Hide the presence of an entity. */ + Hide = "Hide", } /** - * Defines values for Severity. \ - * {@link KnownSeverity} can be used interchangeably with Severity, + * Defines values for DataMaskingMode. \ + * {@link KnownDataMaskingMode} can be used interchangeably with DataMaskingMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Error** \ - * **Warning** + * **Mask**: Mask the value of an entity. \ + * **Hide**: Hide the presence of an entity. */ -export type Severity = string; - -/** Known values of {@link IssueType} that the service accepts. */ -export enum KnownIssueType { - /** Unknown */ - Unknown = "Unknown", - /** AgentStopped */ - AgentStopped = "AgentStopped", - /** GuestFirewall */ - GuestFirewall = "GuestFirewall", - /** DnsResolution */ - DnsResolution = "DnsResolution", - /** SocketBind */ - SocketBind = "SocketBind", - /** NetworkSecurityRule */ - NetworkSecurityRule = "NetworkSecurityRule", - /** UserDefinedRoute */ - UserDefinedRoute = "UserDefinedRoute", - /** PortThrottled */ - PortThrottled = "PortThrottled", - /** Platform */ - Platform = "Platform" -} +export type DataMaskingMode = string; -/** - * Defines values for IssueType. \ - * {@link KnownIssueType} can be used interchangeably with IssueType, - * this enum contains the known values that the service supports. +/** Known values of {@link HttpCorrelationProtocol} that the service accepts. */ +export enum KnownHttpCorrelationProtocol { + /** Do not read and inject correlation headers. */ + None = "None", + /** Inject Request-Id and Request-Context headers with request correlation data. See https:\//github.com\/dotnet\/corefx\/blob\/master\/src\/System.Diagnostics.DiagnosticSource\/src\/HttpCorrelationProtocol.md. */ + Legacy = "Legacy", + /** Inject Trace Context headers. See https:\//w3c.github.io\/trace-context. */ + W3C = "W3C", +} + +/** + * Defines values for HttpCorrelationProtocol. \ + * {@link KnownHttpCorrelationProtocol} can be used interchangeably with HttpCorrelationProtocol, + * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Unknown** \ - * **AgentStopped** \ - * **GuestFirewall** \ - * **DnsResolution** \ - * **SocketBind** \ - * **NetworkSecurityRule** \ - * **UserDefinedRoute** \ - * **PortThrottled** \ - * **Platform** + * **None**: Do not read and inject correlation headers. \ + * **Legacy**: Inject Request-Id and Request-Context headers with request correlation data. See https:\/\/github.com\/dotnet\/corefx\/blob\/master\/src\/System.Diagnostics.DiagnosticSource\/src\/HttpCorrelationProtocol.md. \ + * **W3C**: Inject Trace Context headers. See https:\/\/w3c.github.io\/trace-context. */ -export type IssueType = string; +export type HttpCorrelationProtocol = string; -/** Known values of {@link ConnectionStatus} that the service accepts. */ -export enum KnownConnectionStatus { - /** Unknown */ - Unknown = "Unknown", - /** Connected */ - Connected = "Connected", - /** Disconnected */ - Disconnected = "Disconnected", - /** Degraded */ - Degraded = "Degraded" +/** Known values of {@link Verbosity} that the service accepts. */ +export enum KnownVerbosity { + /** All the traces emitted by trace policies will be sent to the logger attached to this diagnostic instance. */ + Verbose = "verbose", + /** Traces with 'severity' set to 'information' and 'error' will be sent to the logger attached to this diagnostic instance. */ + Information = "information", + /** Only traces with 'severity' set to 'error' will be sent to the logger attached to this diagnostic instance. */ + Error = "error", } /** - * Defines values for ConnectionStatus. \ - * {@link KnownConnectionStatus} can be used interchangeably with ConnectionStatus, + * Defines values for Verbosity. \ + * {@link KnownVerbosity} can be used interchangeably with Verbosity, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Unknown** \ - * **Connected** \ - * **Disconnected** \ - * **Degraded** + * **verbose**: All the traces emitted by trace policies will be sent to the logger attached to this diagnostic instance. \ + * **information**: Traces with 'severity' set to 'information' and 'error' will be sent to the logger attached to this diagnostic instance. \ + * **error**: Only traces with 'severity' set to 'error' will be sent to the logger attached to this diagnostic instance. */ -export type ConnectionStatus = string; +export type Verbosity = string; -/** Known values of {@link SkuType} that the service accepts. */ -export enum KnownSkuType { - /** Developer SKU of Api Management. */ - Developer = "Developer", - /** Standard SKU of Api Management. */ - Standard = "Standard", - /** Premium SKU of Api Management. */ - Premium = "Premium", - /** Basic SKU of Api Management. */ - Basic = "Basic", - /** Consumption SKU of Api Management. */ - Consumption = "Consumption", - /** Isolated SKU of Api Management. */ - Isolated = "Isolated" +/** Known values of {@link OperationNameFormat} that the service accepts. */ +export enum KnownOperationNameFormat { + /** API_NAME;rev=API_REVISION - OPERATION_NAME */ + Name = "Name", + /** HTTP_VERB URL */ + Url = "Url", } /** - * Defines values for SkuType. \ - * {@link KnownSkuType} can be used interchangeably with SkuType, + * Defines values for OperationNameFormat. \ + * {@link KnownOperationNameFormat} can be used interchangeably with OperationNameFormat, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Developer**: Developer SKU of Api Management. \ - * **Standard**: Standard SKU of Api Management. \ - * **Premium**: Premium SKU of Api Management. \ - * **Basic**: Basic SKU of Api Management. \ - * **Consumption**: Consumption SKU of Api Management. \ - * **Isolated**: Isolated SKU of Api Management. + * **Name**: API_NAME;rev=API_REVISION - OPERATION_NAME \ + * **Url**: HTTP_VERB URL */ -export type SkuType = string; +export type OperationNameFormat = string; -/** Known values of {@link ResourceSkuCapacityScaleType} that the service accepts. */ -export enum KnownResourceSkuCapacityScaleType { - /** Supported scale type automatic. */ - Automatic = "automatic", - /** Supported scale type manual. */ - Manual = "manual", - /** Scaling not supported. */ - None = "none" +/** Known values of {@link State} that the service accepts. */ +export enum KnownState { + /** The issue is proposed. */ + Proposed = "proposed", + /** The issue is opened. */ + Open = "open", + /** The issue was removed. */ + Removed = "removed", + /** The issue is now resolved. */ + Resolved = "resolved", + /** The issue was closed. */ + Closed = "closed", } /** - * Defines values for ResourceSkuCapacityScaleType. \ - * {@link KnownResourceSkuCapacityScaleType} can be used interchangeably with ResourceSkuCapacityScaleType, + * Defines values for State. \ + * {@link KnownState} can be used interchangeably with State, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **automatic**: Supported scale type automatic. \ - * **manual**: Supported scale type manual. \ - * **none**: Scaling not supported. + * **proposed**: The issue is proposed. \ + * **open**: The issue is opened. \ + * **removed**: The issue was removed. \ + * **resolved**: The issue is now resolved. \ + * **closed**: The issue was closed. */ -export type ResourceSkuCapacityScaleType = string; +export type State = string; -/** Known values of {@link AccessType} that the service accepts. */ -export enum KnownAccessType { - /** Use access key. */ - AccessKey = "AccessKey", - /** Use system assigned managed identity. */ - SystemAssignedManagedIdentity = "SystemAssignedManagedIdentity", - /** Use user assigned managed identity. */ - UserAssignedManagedIdentity = "UserAssignedManagedIdentity" +/** Known values of {@link ExportFormat} that the service accepts. */ +export enum KnownExportFormat { + /** Export the Api Definition in OpenAPI 2.0 Specification as JSON document to the Storage Blob. */ + Swagger = "swagger-link", + /** Export the Api Definition in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` */ + Wsdl = "wsdl-link", + /** Export the Api Definition in WADL Schema to Storage Blob. */ + Wadl = "wadl-link", + /** Export the Api Definition in OpenAPI 3.0 Specification as YAML document to Storage Blob. */ + Openapi = "openapi-link", + /** Export the Api Definition in OpenAPI 3.0 Specification as JSON document to Storage Blob. */ + OpenapiJson = "openapi+json-link", } /** - * Defines values for AccessType. \ - * {@link KnownAccessType} can be used interchangeably with AccessType, + * Defines values for ExportFormat. \ + * {@link KnownExportFormat} can be used interchangeably with ExportFormat, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AccessKey**: Use access key. \ - * **SystemAssignedManagedIdentity**: Use system assigned managed identity. \ - * **UserAssignedManagedIdentity**: Use user assigned managed identity. + * **swagger-link**: Export the Api Definition in OpenAPI 2.0 Specification as JSON document to the Storage Blob. \ + * **wsdl-link**: Export the Api Definition in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` \ + * **wadl-link**: Export the Api Definition in WADL Schema to Storage Blob. \ + * **openapi-link**: Export the Api Definition in OpenAPI 3.0 Specification as YAML document to Storage Blob. \ + * **openapi+json-link**: Export the Api Definition in OpenAPI 3.0 Specification as JSON document to Storage Blob. */ -export type AccessType = string; +export type ExportFormat = string; -/** Known values of {@link HostnameType} that the service accepts. */ -export enum KnownHostnameType { - /** Proxy */ - Proxy = "Proxy", - /** Portal */ - Portal = "Portal", - /** Management */ - Management = "Management", - /** Scm */ - Scm = "Scm", - /** DeveloperPortal */ - DeveloperPortal = "DeveloperPortal" +/** Known values of {@link ExportApi} that the service accepts. */ +export enum KnownExportApi { + /** True */ + True = "true", } /** - * Defines values for HostnameType. \ - * {@link KnownHostnameType} can be used interchangeably with HostnameType, + * Defines values for ExportApi. \ + * {@link KnownExportApi} can be used interchangeably with ExportApi, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Proxy** \ - * **Portal** \ - * **Management** \ - * **Scm** \ - * **DeveloperPortal** + * **true** */ -export type HostnameType = string; +export type ExportApi = string; -/** Known values of {@link CertificateSource} that the service accepts. */ -export enum KnownCertificateSource { - /** Managed */ - Managed = "Managed", - /** KeyVault */ - KeyVault = "KeyVault", - /** Custom */ - Custom = "Custom", - /** BuiltIn */ - BuiltIn = "BuiltIn" +/** Known values of {@link ExportResultFormat} that the service accepts. */ +export enum KnownExportResultFormat { + /** The API Definition is exported in OpenAPI Specification 2.0 format to the Storage Blob. */ + Swagger = "swagger-link-json", + /** The API Definition is exported in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` */ + Wsdl = "wsdl-link+xml", + /** Export the API Definition in WADL Schema to Storage Blob. */ + Wadl = "wadl-link-json", + /** Export the API Definition in OpenAPI Specification 3.0 to Storage Blob. */ + OpenApi = "openapi-link", } /** - * Defines values for CertificateSource. \ - * {@link KnownCertificateSource} can be used interchangeably with CertificateSource, + * Defines values for ExportResultFormat. \ + * {@link KnownExportResultFormat} can be used interchangeably with ExportResultFormat, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Managed** \ - * **KeyVault** \ - * **Custom** \ - * **BuiltIn** + * **swagger-link-json**: The API Definition is exported in OpenAPI Specification 2.0 format to the Storage Blob. \ + * **wsdl-link+xml**: The API Definition is exported in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` \ + * **wadl-link-json**: Export the API Definition in WADL Schema to Storage Blob. \ + * **openapi-link**: Export the API Definition in OpenAPI Specification 3.0 to Storage Blob. */ -export type CertificateSource = string; +export type ExportResultFormat = string; -/** Known values of {@link CertificateStatus} that the service accepts. */ -export enum KnownCertificateStatus { - /** Completed */ - Completed = "Completed", - /** Failed */ - Failed = "Failed", - /** InProgress */ - InProgress = "InProgress" +/** Known values of {@link VersioningScheme} that the service accepts. */ +export enum KnownVersioningScheme { + /** The API Version is passed in a path segment. */ + Segment = "Segment", + /** The API Version is passed in a query parameter. */ + Query = "Query", + /** The API Version is passed in a HTTP header. */ + Header = "Header", } /** - * Defines values for CertificateStatus. \ - * {@link KnownCertificateStatus} can be used interchangeably with CertificateStatus, + * Defines values for VersioningScheme. \ + * {@link KnownVersioningScheme} can be used interchangeably with VersioningScheme, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Completed** \ - * **Failed** \ - * **InProgress** + * **Segment**: The API Version is passed in a path segment. \ + * **Query**: The API Version is passed in a query parameter. \ + * **Header**: The API Version is passed in a HTTP header. */ -export type CertificateStatus = string; +export type VersioningScheme = string; -/** Known values of {@link PublicNetworkAccess} that the service accepts. */ -export enum KnownPublicNetworkAccess { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Known values of {@link AuthorizationType} that the service accepts. */ +export enum KnownAuthorizationType { + /** OAuth2 authorization type */ + OAuth2 = "OAuth2", } /** - * Defines values for PublicNetworkAccess. \ - * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess, + * Defines values for AuthorizationType. \ + * {@link KnownAuthorizationType} can be used interchangeably with AuthorizationType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** + * **OAuth2**: OAuth2 authorization type */ -export type PublicNetworkAccess = string; +export type AuthorizationType = string; -/** Known values of {@link NatGatewayState} that the service accepts. */ -export enum KnownNatGatewayState { - /** Nat Gateway is enabled for the service. */ - Enabled = "Enabled", - /** Nat Gateway is disabled for the service. */ - Disabled = "Disabled" +/** Known values of {@link OAuth2GrantType} that the service accepts. */ +export enum KnownOAuth2GrantType { + /** Authorization Code grant */ + AuthorizationCode = "AuthorizationCode", + /** Client Credential grant */ + ClientCredentials = "ClientCredentials", } /** - * Defines values for NatGatewayState. \ - * {@link KnownNatGatewayState} can be used interchangeably with NatGatewayState, + * Defines values for OAuth2GrantType. \ + * {@link KnownOAuth2GrantType} can be used interchangeably with OAuth2GrantType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled**: Nat Gateway is enabled for the service. \ - * **Disabled**: Nat Gateway is disabled for the service. + * **AuthorizationCode**: Authorization Code grant \ + * **ClientCredentials**: Client Credential grant */ -export type NatGatewayState = string; +export type OAuth2GrantType = string; -/** Known values of {@link PlatformVersion} that the service accepts. */ -export enum KnownPlatformVersion { - /** Platform version cannot be determined, as compute platform is not deployed. */ - Undetermined = "undetermined", - /** Platform running the service on Single Tenant V1 platform. */ - Stv1 = "stv1", - /** Platform running the service on Single Tenant V2 platform. */ - Stv2 = "stv2", - /** Platform running the service on Multi Tenant V1 platform. */ - Mtv1 = "mtv1" +/** Known values of {@link GrantType} that the service accepts. */ +export enum KnownGrantType { + /** Authorization Code Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.1. */ + AuthorizationCode = "authorizationCode", + /** Implicit Code Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.2. */ + Implicit = "implicit", + /** Resource Owner Password Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.3. */ + ResourceOwnerPassword = "resourceOwnerPassword", + /** Client Credentials Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.4. */ + ClientCredentials = "clientCredentials", } /** - * Defines values for PlatformVersion. \ - * {@link KnownPlatformVersion} can be used interchangeably with PlatformVersion, + * Defines values for GrantType. \ + * {@link KnownGrantType} can be used interchangeably with GrantType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **undetermined**: Platform version cannot be determined, as compute platform is not deployed. \ - * **stv1**: Platform running the service on Single Tenant V1 platform. \ - * **stv2**: Platform running the service on Single Tenant V2 platform. \ - * **mtv1**: Platform running the service on Multi Tenant V1 platform. + * **authorizationCode**: Authorization Code Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.1. \ + * **implicit**: Implicit Code Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.2. \ + * **resourceOwnerPassword**: Resource Owner Password Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.3. \ + * **clientCredentials**: Client Credentials Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.4. */ -export type PlatformVersion = string; +export type GrantType = string; -/** Known values of {@link CertificateConfigurationStoreName} that the service accepts. */ -export enum KnownCertificateConfigurationStoreName { - /** CertificateAuthority */ - CertificateAuthority = "CertificateAuthority", - /** Root */ - Root = "Root" +/** Known values of {@link ClientAuthenticationMethod} that the service accepts. */ +export enum KnownClientAuthenticationMethod { + /** Basic Client Authentication method. */ + Basic = "Basic", + /** Body based Authentication method. */ + Body = "Body", } /** - * Defines values for CertificateConfigurationStoreName. \ - * {@link KnownCertificateConfigurationStoreName} can be used interchangeably with CertificateConfigurationStoreName, + * Defines values for ClientAuthenticationMethod. \ + * {@link KnownClientAuthenticationMethod} can be used interchangeably with ClientAuthenticationMethod, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **CertificateAuthority** \ - * **Root** + * **Basic**: Basic Client Authentication method. \ + * **Body**: Body based Authentication method. */ -export type CertificateConfigurationStoreName = string; +export type ClientAuthenticationMethod = string; -/** Known values of {@link VirtualNetworkType} that the service accepts. */ -export enum KnownVirtualNetworkType { - /** The service is not part of any Virtual Network. */ - None = "None", - /** The service is part of Virtual Network and it is accessible from Internet. */ - External = "External", - /** The service is part of Virtual Network and it is only accessible from within the virtual network. */ - Internal = "Internal" +/** Known values of {@link BearerTokenSendingMethod} that the service accepts. */ +export enum KnownBearerTokenSendingMethod { + /** AuthorizationHeader */ + AuthorizationHeader = "authorizationHeader", + /** Query */ + Query = "query", } /** - * Defines values for VirtualNetworkType. \ - * {@link KnownVirtualNetworkType} can be used interchangeably with VirtualNetworkType, + * Defines values for BearerTokenSendingMethod. \ + * {@link KnownBearerTokenSendingMethod} can be used interchangeably with BearerTokenSendingMethod, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None**: The service is not part of any Virtual Network. \ - * **External**: The service is part of Virtual Network and it is accessible from Internet. \ - * **Internal**: The service is part of Virtual Network and it is only accessible from within the virtual network. + * **authorizationHeader** \ + * **query** */ -export type VirtualNetworkType = string; +export type BearerTokenSendingMethod = string; -/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ -export enum KnownPrivateEndpointServiceConnectionStatus { - /** Pending */ - Pending = "Pending", - /** Approved */ - Approved = "Approved", - /** Rejected */ - Rejected = "Rejected" +/** Known values of {@link BackendProtocol} that the service accepts. */ +export enum KnownBackendProtocol { + /** The Backend is a RESTful service. */ + Http = "http", + /** The Backend is a SOAP service. */ + Soap = "soap", } /** - * Defines values for PrivateEndpointServiceConnectionStatus. \ - * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus, + * Defines values for BackendProtocol. \ + * {@link KnownBackendProtocol} can be used interchangeably with BackendProtocol, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Pending** \ - * **Approved** \ - * **Rejected** + * **http**: The Backend is a RESTful service. \ + * **soap**: The Backend is a SOAP service. */ -export type PrivateEndpointServiceConnectionStatus = string; +export type BackendProtocol = string; -/** Known values of {@link ApimIdentityType} that the service accepts. */ -export enum KnownApimIdentityType { - /** SystemAssigned */ - SystemAssigned = "SystemAssigned", - /** UserAssigned */ - UserAssigned = "UserAssigned", - /** SystemAssignedUserAssigned */ - SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", - /** None */ - None = "None" +/** Known values of {@link BackendType} that the service accepts. */ +export enum KnownBackendType { + /** supports single backend */ + Single = "Single", + /** supports pool backend */ + Pool = "Pool", } /** - * Defines values for ApimIdentityType. \ - * {@link KnownApimIdentityType} can be used interchangeably with ApimIdentityType, + * Defines values for BackendType. \ + * {@link KnownBackendType} can be used interchangeably with BackendType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **SystemAssigned** \ - * **UserAssigned** \ - * **SystemAssigned, UserAssigned** \ - * **None** + * **Single**: supports single backend \ + * **Pool**: supports pool backend */ -export type ApimIdentityType = string; +export type BackendType = string; -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key" +/** Known values of {@link PreferredIPVersion} that the service accepts. */ +export enum KnownPreferredIPVersion { + /** IPv4 */ + IPv4 = "IPv4", } /** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * Defines values for PreferredIPVersion. \ + * {@link KnownPreferredIPVersion} can be used interchangeably with PreferredIPVersion, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** + * **IPv4** */ -export type CreatedByType = string; +export type PreferredIPVersion = string; -/** Known values of {@link TemplateName} that the service accepts. */ -export enum KnownTemplateName { - /** ApplicationApprovedNotificationMessage */ - ApplicationApprovedNotificationMessage = "applicationApprovedNotificationMessage", - /** AccountClosedDeveloper */ - AccountClosedDeveloper = "accountClosedDeveloper", - /** QuotaLimitApproachingDeveloperNotificationMessage */ - QuotaLimitApproachingDeveloperNotificationMessage = "quotaLimitApproachingDeveloperNotificationMessage", - /** NewDeveloperNotificationMessage */ - NewDeveloperNotificationMessage = "newDeveloperNotificationMessage", - /** EmailChangeIdentityDefault */ - EmailChangeIdentityDefault = "emailChangeIdentityDefault", - /** InviteUserNotificationMessage */ - InviteUserNotificationMessage = "inviteUserNotificationMessage", - /** NewCommentNotificationMessage */ - NewCommentNotificationMessage = "newCommentNotificationMessage", - /** ConfirmSignUpIdentityDefault */ - ConfirmSignUpIdentityDefault = "confirmSignUpIdentityDefault", - /** NewIssueNotificationMessage */ - NewIssueNotificationMessage = "newIssueNotificationMessage", - /** PurchaseDeveloperNotificationMessage */ - PurchaseDeveloperNotificationMessage = "purchaseDeveloperNotificationMessage", - /** PasswordResetIdentityDefault */ - PasswordResetIdentityDefault = "passwordResetIdentityDefault", - /** PasswordResetByAdminNotificationMessage */ - PasswordResetByAdminNotificationMessage = "passwordResetByAdminNotificationMessage", - /** RejectDeveloperNotificationMessage */ - RejectDeveloperNotificationMessage = "rejectDeveloperNotificationMessage", - /** RequestDeveloperNotificationMessage */ - RequestDeveloperNotificationMessage = "requestDeveloperNotificationMessage" +/** Known values of {@link ConnectivityCheckProtocol} that the service accepts. */ +export enum KnownConnectivityCheckProtocol { + /** TCP */ + TCP = "TCP", + /** Http */ + Http = "HTTP", + /** Https */ + Https = "HTTPS", } /** - * Defines values for TemplateName. \ - * {@link KnownTemplateName} can be used interchangeably with TemplateName, + * Defines values for ConnectivityCheckProtocol. \ + * {@link KnownConnectivityCheckProtocol} can be used interchangeably with ConnectivityCheckProtocol, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **applicationApprovedNotificationMessage** \ - * **accountClosedDeveloper** \ - * **quotaLimitApproachingDeveloperNotificationMessage** \ - * **newDeveloperNotificationMessage** \ - * **emailChangeIdentityDefault** \ - * **inviteUserNotificationMessage** \ - * **newCommentNotificationMessage** \ - * **confirmSignUpIdentityDefault** \ - * **newIssueNotificationMessage** \ - * **purchaseDeveloperNotificationMessage** \ - * **passwordResetIdentityDefault** \ - * **passwordResetByAdminNotificationMessage** \ - * **rejectDeveloperNotificationMessage** \ - * **requestDeveloperNotificationMessage** + * **TCP** \ + * **HTTP** \ + * **HTTPS** */ -export type TemplateName = string; +export type ConnectivityCheckProtocol = string; -/** Known values of {@link UserState} that the service accepts. */ -export enum KnownUserState { - /** User state is active. */ - Active = "active", - /** User is blocked. Blocked users cannot authenticate at developer portal or call API. */ - Blocked = "blocked", - /** User account is pending. Requires identity confirmation before it can be made active. */ - Pending = "pending", - /** User account is closed. All identities and related entities are removed. */ - Deleted = "deleted" +/** Known values of {@link Method} that the service accepts. */ +export enum KnownMethod { + /** GET */ + GET = "GET", + /** Post */ + Post = "POST", } /** - * Defines values for UserState. \ - * {@link KnownUserState} can be used interchangeably with UserState, + * Defines values for Method. \ + * {@link KnownMethod} can be used interchangeably with Method, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **active**: User state is active. \ - * **blocked**: User is blocked. Blocked users cannot authenticate at developer portal or call API. \ - * **pending**: User account is pending. Requires identity confirmation before it can be made active. \ - * **deleted**: User account is closed. All identities and related entities are removed. + * **GET** \ + * **POST** */ -export type UserState = string; +export type Method = string; -/** Known values of {@link IdentityProviderType} that the service accepts. */ -export enum KnownIdentityProviderType { - /** Facebook as Identity provider. */ - Facebook = "facebook", - /** Google as Identity provider. */ - Google = "google", - /** Microsoft Live as Identity provider. */ - Microsoft = "microsoft", - /** Twitter as Identity provider. */ - Twitter = "twitter", - /** Azure Active Directory as Identity provider. */ - Aad = "aad", - /** Azure Active Directory B2C as Identity provider. */ - AadB2C = "aadB2C" +/** Known values of {@link Origin} that the service accepts. */ +export enum KnownOrigin { + /** Local */ + Local = "Local", + /** Inbound */ + Inbound = "Inbound", + /** Outbound */ + Outbound = "Outbound", } /** - * Defines values for IdentityProviderType. \ - * {@link KnownIdentityProviderType} can be used interchangeably with IdentityProviderType, + * Defines values for Origin. \ + * {@link KnownOrigin} can be used interchangeably with Origin, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **facebook**: Facebook as Identity provider. \ - * **google**: Google as Identity provider. \ - * **microsoft**: Microsoft Live as Identity provider. \ - * **twitter**: Twitter as Identity provider. \ - * **aad**: Azure Active Directory as Identity provider. \ - * **aadB2C**: Azure Active Directory B2C as Identity provider. + * **Local** \ + * **Inbound** \ + * **Outbound** */ -export type IdentityProviderType = string; +export type Origin = string; -/** Known values of {@link LoggerType} that the service accepts. */ -export enum KnownLoggerType { - /** Azure Event Hub as log destination. */ - AzureEventHub = "azureEventHub", - /** Azure Application Insights as log destination. */ - ApplicationInsights = "applicationInsights", - /** Azure Monitor */ - AzureMonitor = "azureMonitor" +/** Known values of {@link Severity} that the service accepts. */ +export enum KnownSeverity { + /** Error */ + Error = "Error", + /** Warning */ + Warning = "Warning", } /** - * Defines values for LoggerType. \ - * {@link KnownLoggerType} can be used interchangeably with LoggerType, + * Defines values for Severity. \ + * {@link KnownSeverity} can be used interchangeably with Severity, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **azureEventHub**: Azure Event Hub as log destination. \ - * **applicationInsights**: Azure Application Insights as log destination. \ - * **azureMonitor**: Azure Monitor + * **Error** \ + * **Warning** */ -export type LoggerType = string; +export type Severity = string; -/** Known values of {@link ConnectivityStatusType} that the service accepts. */ -export enum KnownConnectivityStatusType { - /** Initializing */ - Initializing = "initializing", - /** Success */ - Success = "success", - /** Failure */ - Failure = "failure" +/** Known values of {@link IssueType} that the service accepts. */ +export enum KnownIssueType { + /** Unknown */ + Unknown = "Unknown", + /** AgentStopped */ + AgentStopped = "AgentStopped", + /** GuestFirewall */ + GuestFirewall = "GuestFirewall", + /** DnsResolution */ + DnsResolution = "DnsResolution", + /** SocketBind */ + SocketBind = "SocketBind", + /** NetworkSecurityRule */ + NetworkSecurityRule = "NetworkSecurityRule", + /** UserDefinedRoute */ + UserDefinedRoute = "UserDefinedRoute", + /** PortThrottled */ + PortThrottled = "PortThrottled", + /** Platform */ + Platform = "Platform", } /** - * Defines values for ConnectivityStatusType. \ - * {@link KnownConnectivityStatusType} can be used interchangeably with ConnectivityStatusType, + * Defines values for IssueType. \ + * {@link KnownIssueType} can be used interchangeably with IssueType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **initializing** \ - * **success** \ - * **failure** + * **Unknown** \ + * **AgentStopped** \ + * **GuestFirewall** \ + * **DnsResolution** \ + * **SocketBind** \ + * **NetworkSecurityRule** \ + * **UserDefinedRoute** \ + * **PortThrottled** \ + * **Platform** */ -export type ConnectivityStatusType = string; +export type IssueType = string; -/** Known values of {@link NotificationName} that the service accepts. */ -export enum KnownNotificationName { - /** The following email recipients and users will receive email notifications about subscription requests for API products requiring approval. */ - RequestPublisherNotificationMessage = "RequestPublisherNotificationMessage", - /** The following email recipients and users will receive email notifications about new API product subscriptions. */ - PurchasePublisherNotificationMessage = "PurchasePublisherNotificationMessage", - /** The following email recipients and users will receive email notifications when new applications are submitted to the application gallery. */ - NewApplicationNotificationMessage = "NewApplicationNotificationMessage", - /** The following recipients will receive blind carbon copies of all emails sent to developers. */ - BCC = "BCC", - /** The following email recipients and users will receive email notifications when a new issue or comment is submitted on the developer portal. */ - NewIssuePublisherNotificationMessage = "NewIssuePublisherNotificationMessage", - /** The following email recipients and users will receive email notifications when developer closes his account. */ - AccountClosedPublisher = "AccountClosedPublisher", - /** The following email recipients and users will receive email notifications when subscription usage gets close to usage quota. */ - QuotaLimitApproachingPublisherNotificationMessage = "QuotaLimitApproachingPublisherNotificationMessage" +/** Known values of {@link ConnectionStatus} that the service accepts. */ +export enum KnownConnectionStatus { + /** Unknown */ + Unknown = "Unknown", + /** Connected */ + Connected = "Connected", + /** Disconnected */ + Disconnected = "Disconnected", + /** Degraded */ + Degraded = "Degraded", } /** - * Defines values for NotificationName. \ - * {@link KnownNotificationName} can be used interchangeably with NotificationName, + * Defines values for ConnectionStatus. \ + * {@link KnownConnectionStatus} can be used interchangeably with ConnectionStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **RequestPublisherNotificationMessage**: The following email recipients and users will receive email notifications about subscription requests for API products requiring approval. \ - * **PurchasePublisherNotificationMessage**: The following email recipients and users will receive email notifications about new API product subscriptions. \ - * **NewApplicationNotificationMessage**: The following email recipients and users will receive email notifications when new applications are submitted to the application gallery. \ - * **BCC**: The following recipients will receive blind carbon copies of all emails sent to developers. \ - * **NewIssuePublisherNotificationMessage**: The following email recipients and users will receive email notifications when a new issue or comment is submitted on the developer portal. \ - * **AccountClosedPublisher**: The following email recipients and users will receive email notifications when developer closes his account. \ - * **QuotaLimitApproachingPublisherNotificationMessage**: The following email recipients and users will receive email notifications when subscription usage gets close to usage quota. + * **Unknown** \ + * **Connected** \ + * **Disconnected** \ + * **Degraded** */ -export type NotificationName = string; +export type ConnectionStatus = string; -/** Known values of {@link PolicyFragmentContentFormat} that the service accepts. */ -export enum KnownPolicyFragmentContentFormat { - /** The contents are inline and Content type is an XML document. */ - Xml = "xml", - /** The contents are inline and Content type is a non XML encoded policy document. */ - Rawxml = "rawxml" +/** Known values of {@link ResourceSkuCapacityScaleType} that the service accepts. */ +export enum KnownResourceSkuCapacityScaleType { + /** Supported scale type automatic. */ + Automatic = "automatic", + /** Supported scale type manual. */ + Manual = "manual", + /** Scaling not supported. */ + None = "none", } /** - * Defines values for PolicyFragmentContentFormat. \ - * {@link KnownPolicyFragmentContentFormat} can be used interchangeably with PolicyFragmentContentFormat, + * Defines values for ResourceSkuCapacityScaleType. \ + * {@link KnownResourceSkuCapacityScaleType} can be used interchangeably with ResourceSkuCapacityScaleType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **xml**: The contents are inline and Content type is an XML document. \ - * **rawxml**: The contents are inline and Content type is a non XML encoded policy document. + * **automatic**: Supported scale type automatic. \ + * **manual**: Supported scale type manual. \ + * **none**: Scaling not supported. */ -export type PolicyFragmentContentFormat = string; +export type ResourceSkuCapacityScaleType = string; -/** Known values of {@link PortalSettingsCspMode} that the service accepts. */ -export enum KnownPortalSettingsCspMode { - /** The browser will block requests not matching allowed origins. */ - Enabled = "enabled", - /** The browser will not apply the origin restrictions. */ - Disabled = "disabled", - /** The browser will report requests not matching allowed origins without blocking them. */ - ReportOnly = "reportOnly" +/** Known values of {@link AccessType} that the service accepts. */ +export enum KnownAccessType { + /** Use access key. */ + AccessKey = "AccessKey", + /** Use system assigned managed identity. */ + SystemAssignedManagedIdentity = "SystemAssignedManagedIdentity", + /** Use user assigned managed identity. */ + UserAssignedManagedIdentity = "UserAssignedManagedIdentity", } /** - * Defines values for PortalSettingsCspMode. \ - * {@link KnownPortalSettingsCspMode} can be used interchangeably with PortalSettingsCspMode, + * Defines values for AccessType. \ + * {@link KnownAccessType} can be used interchangeably with AccessType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **enabled**: The browser will block requests not matching allowed origins. \ - * **disabled**: The browser will not apply the origin restrictions. \ - * **reportOnly**: The browser will report requests not matching allowed origins without blocking them. + * **AccessKey**: Use access key. \ + * **SystemAssignedManagedIdentity**: Use system assigned managed identity. \ + * **UserAssignedManagedIdentity**: Use user assigned managed identity. */ -export type PortalSettingsCspMode = string; +export type AccessType = string; -/** Known values of {@link PortalRevisionStatus} that the service accepts. */ -export enum KnownPortalRevisionStatus { - /** Portal's revision has been queued. */ - Pending = "pending", - /** Portal's revision is being published. */ - Publishing = "publishing", - /** Portal's revision publishing completed. */ - Completed = "completed", - /** Portal's revision publishing failed. */ - Failed = "failed" +/** Known values of {@link HostnameType} that the service accepts. */ +export enum KnownHostnameType { + /** Proxy */ + Proxy = "Proxy", + /** Portal */ + Portal = "Portal", + /** Management */ + Management = "Management", + /** Scm */ + Scm = "Scm", + /** DeveloperPortal */ + DeveloperPortal = "DeveloperPortal", + /** ConfigurationApi */ + ConfigurationApi = "ConfigurationApi", } /** - * Defines values for PortalRevisionStatus. \ - * {@link KnownPortalRevisionStatus} can be used interchangeably with PortalRevisionStatus, + * Defines values for HostnameType. \ + * {@link KnownHostnameType} can be used interchangeably with HostnameType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **pending**: Portal's revision has been queued. \ - * **publishing**: Portal's revision is being published. \ - * **completed**: Portal's revision publishing completed. \ - * **failed**: Portal's revision publishing failed. + * **Proxy** \ + * **Portal** \ + * **Management** \ + * **Scm** \ + * **DeveloperPortal** \ + * **ConfigurationApi** */ -export type PortalRevisionStatus = string; +export type HostnameType = string; -/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ -export enum KnownPrivateEndpointConnectionProvisioningState { - /** Succeeded */ - Succeeded = "Succeeded", - /** Creating */ - Creating = "Creating", - /** Deleting */ - Deleting = "Deleting", - /** Failed */ - Failed = "Failed" +/** Known values of {@link CertificateSource} that the service accepts. */ +export enum KnownCertificateSource { + /** Managed */ + Managed = "Managed", + /** KeyVault */ + KeyVault = "KeyVault", + /** Custom */ + Custom = "Custom", + /** BuiltIn */ + BuiltIn = "BuiltIn", } /** - * Defines values for PrivateEndpointConnectionProvisioningState. \ - * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, + * Defines values for CertificateSource. \ + * {@link KnownCertificateSource} can be used interchangeably with CertificateSource, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Succeeded** \ - * **Creating** \ - * **Deleting** \ - * **Failed** + * **Managed** \ + * **KeyVault** \ + * **Custom** \ + * **BuiltIn** */ -export type PrivateEndpointConnectionProvisioningState = string; +export type CertificateSource = string; -/** Known values of {@link SchemaType} that the service accepts. */ -export enum KnownSchemaType { - /** XML schema type. */ - Xml = "xml", - /** Json schema type. */ - Json = "json" +/** Known values of {@link CertificateStatus} that the service accepts. */ +export enum KnownCertificateStatus { + /** Completed */ + Completed = "Completed", + /** Failed */ + Failed = "Failed", + /** InProgress */ + InProgress = "InProgress", } /** - * Defines values for SchemaType. \ - * {@link KnownSchemaType} can be used interchangeably with SchemaType, + * Defines values for CertificateStatus. \ + * {@link KnownCertificateStatus} can be used interchangeably with CertificateStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **xml**: XML schema type. \ - * **json**: Json schema type. + * **Completed** \ + * **Failed** \ + * **InProgress** */ -export type SchemaType = string; +export type CertificateStatus = string; -/** Known values of {@link SettingsTypeName} that the service accepts. */ -export enum KnownSettingsTypeName { - /** Public */ - Public = "public" +/** Known values of {@link PublicNetworkAccess} that the service accepts. */ +export enum KnownPublicNetworkAccess { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled", } /** - * Defines values for SettingsTypeName. \ - * {@link KnownSettingsTypeName} can be used interchangeably with SettingsTypeName, + * Defines values for PublicNetworkAccess. \ + * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **public** + * **Enabled** \ + * **Disabled** */ -export type SettingsTypeName = string; +export type PublicNetworkAccess = string; -/** Known values of {@link AppType} that the service accepts. */ -export enum KnownAppType { - /** User create request was sent by legacy developer portal. */ - Portal = "portal", - /** User create request was sent by new developer portal. */ - DeveloperPortal = "developerPortal" +/** Known values of {@link LegacyApiState} that the service accepts. */ +export enum KnownLegacyApiState { + /** Legacy Configuration API (v1) is enabled for the service and self-hosted gateways can connect to it. */ + Enabled = "Enabled", + /** Legacy Configuration API (v1) is disabled for the service and self-hosted gateways can not connect to it. */ + Disabled = "Disabled", } /** - * Defines values for AppType. \ - * {@link KnownAppType} can be used interchangeably with AppType, + * Defines values for LegacyApiState. \ + * {@link KnownLegacyApiState} can be used interchangeably with LegacyApiState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **portal**: User create request was sent by legacy developer portal. \ - * **developerPortal**: User create request was sent by new developer portal. + * **Enabled**: Legacy Configuration API (v1) is enabled for the service and self-hosted gateways can connect to it. \ + * **Disabled**: Legacy Configuration API (v1) is disabled for the service and self-hosted gateways can not connect to it. */ -export type AppType = string; +export type LegacyApiState = string; -/** Known values of {@link AccessIdName} that the service accepts. */ -export enum KnownAccessIdName { - /** Access */ - Access = "access", - /** GitAccess */ - GitAccess = "gitAccess" +/** Known values of {@link NatGatewayState} that the service accepts. */ +export enum KnownNatGatewayState { + /** Nat Gateway is enabled for the service. */ + Enabled = "Enabled", + /** Nat Gateway is disabled for the service. */ + Disabled = "Disabled", } /** - * Defines values for AccessIdName. \ - * {@link KnownAccessIdName} can be used interchangeably with AccessIdName, + * Defines values for NatGatewayState. \ + * {@link KnownNatGatewayState} can be used interchangeably with NatGatewayState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **access** \ - * **gitAccess** + * **Enabled**: Nat Gateway is enabled for the service. \ + * **Disabled**: Nat Gateway is disabled for the service. */ -export type AccessIdName = string; +export type NatGatewayState = string; -/** Known values of {@link ConfigurationIdName} that the service accepts. */ -export enum KnownConfigurationIdName { - /** Configuration */ - Configuration = "configuration" +/** Known values of {@link PlatformVersion} that the service accepts. */ +export enum KnownPlatformVersion { + /** Platform version cannot be determined, as compute platform is not deployed. */ + Undetermined = "undetermined", + /** Platform running the service on Single Tenant V1 platform. */ + Stv1 = "stv1", + /** Platform running the service on Single Tenant V2 platform. */ + Stv2 = "stv2", + /** Platform running the service on Multi Tenant V1 platform. */ + Mtv1 = "mtv1", + /** Platform running the service on Single Tenant V2 platform on newer Hardware. */ + Stv21 = "stv2.1", } /** - * Defines values for ConfigurationIdName. \ - * {@link KnownConfigurationIdName} can be used interchangeably with ConfigurationIdName, + * Defines values for PlatformVersion. \ + * {@link KnownPlatformVersion} can be used interchangeably with PlatformVersion, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **configuration** + * **undetermined**: Platform version cannot be determined, as compute platform is not deployed. \ + * **stv1**: Platform running the service on Single Tenant V1 platform. \ + * **stv2**: Platform running the service on Single Tenant V2 platform. \ + * **mtv1**: Platform running the service on Multi Tenant V1 platform. \ + * **stv2.1**: Platform running the service on Single Tenant V2 platform on newer Hardware. */ -export type ConfigurationIdName = string; +export type PlatformVersion = string; -/** Known values of {@link Confirmation} that the service accepts. */ -export enum KnownConfirmation { - /** Send an e-mail to the user confirming they have successfully signed up. */ - Signup = "signup", - /** Send an e-mail inviting the user to sign-up and complete registration. */ - Invite = "invite" +/** Known values of {@link CertificateConfigurationStoreName} that the service accepts. */ +export enum KnownCertificateConfigurationStoreName { + /** CertificateAuthority */ + CertificateAuthority = "CertificateAuthority", + /** Root */ + Root = "Root", } /** - * Defines values for Confirmation. \ - * {@link KnownConfirmation} can be used interchangeably with Confirmation, + * Defines values for CertificateConfigurationStoreName. \ + * {@link KnownCertificateConfigurationStoreName} can be used interchangeably with CertificateConfigurationStoreName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **signup**: Send an e-mail to the user confirming they have successfully signed up. \ - * **invite**: Send an e-mail inviting the user to sign-up and complete registration. + * **CertificateAuthority** \ + * **Root** */ -export type Confirmation = string; -/** Defines values for ProductState. */ -export type ProductState = "notPublished" | "published"; -/** Defines values for AuthorizationMethod. */ -export type AuthorizationMethod = - | "HEAD" - | "OPTIONS" - | "TRACE" - | "GET" - | "POST" - | "PUT" - | "PATCH" - | "DELETE"; -/** Defines values for NameAvailabilityReason. */ -export type NameAvailabilityReason = "Valid" | "Invalid" | "AlreadyExists"; -/** Defines values for KeyType. */ -export type KeyType = "primary" | "secondary"; -/** Defines values for GroupType. */ -export type GroupType = "custom" | "system" | "external"; -/** Defines values for PolicyScopeContract. */ -export type PolicyScopeContract = - | "Tenant" - | "Product" - | "Api" - | "Operation" - | "All"; -/** Defines values for SubscriptionState. */ -export type SubscriptionState = - | "suspended" - | "active" - | "expired" - | "submitted" - | "rejected" - | "cancelled"; -/** Defines values for ApiManagementSkuCapacityScaleType. */ -export type ApiManagementSkuCapacityScaleType = "Automatic" | "Manual" | "None"; -/** Defines values for ApiManagementSkuRestrictionsType. */ -export type ApiManagementSkuRestrictionsType = "Location" | "Zone"; -/** Defines values for ApiManagementSkuRestrictionsReasonCode. */ -export type ApiManagementSkuRestrictionsReasonCode = - | "QuotaId" - | "NotAvailableForSubscription"; -/** Defines values for AsyncOperationStatus. */ -export type AsyncOperationStatus = - | "Started" - | "InProgress" - | "Succeeded" - | "Failed"; -/** Defines values for AsyncResolverStatus. */ -export type AsyncResolverStatus = - | "Started" - | "InProgress" - | "Succeeded" - | "Failed"; +export type CertificateConfigurationStoreName = string; + +/** Known values of {@link VirtualNetworkType} that the service accepts. */ +export enum KnownVirtualNetworkType { + /** The service is not part of any Virtual Network. */ + None = "None", + /** The service is part of Virtual Network and it is accessible from Internet. */ + External = "External", + /** The service is part of Virtual Network and it is only accessible from within the virtual network. */ + Internal = "Internal", +} + +/** + * Defines values for VirtualNetworkType. \ + * {@link KnownVirtualNetworkType} can be used interchangeably with VirtualNetworkType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: The service is not part of any Virtual Network. \ + * **External**: The service is part of Virtual Network and it is accessible from Internet. \ + * **Internal**: The service is part of Virtual Network and it is only accessible from within the virtual network. + */ +export type VirtualNetworkType = string; + +/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ +export enum KnownPrivateEndpointServiceConnectionStatus { + /** Pending */ + Pending = "Pending", + /** Approved */ + Approved = "Approved", + /** Rejected */ + Rejected = "Rejected", +} + +/** + * Defines values for PrivateEndpointServiceConnectionStatus. \ + * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Pending** \ + * **Approved** \ + * **Rejected** + */ +export type PrivateEndpointServiceConnectionStatus = string; + +/** Known values of {@link LegacyPortalStatus} that the service accepts. */ +export enum KnownLegacyPortalStatus { + /** Legacy Portal is enabled for the service. */ + Enabled = "Enabled", + /** Legacy Portal is disabled for the service. */ + Disabled = "Disabled", +} + +/** + * Defines values for LegacyPortalStatus. \ + * {@link KnownLegacyPortalStatus} can be used interchangeably with LegacyPortalStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled**: Legacy Portal is enabled for the service. \ + * **Disabled**: Legacy Portal is disabled for the service. + */ +export type LegacyPortalStatus = string; + +/** Known values of {@link DeveloperPortalStatus} that the service accepts. */ +export enum KnownDeveloperPortalStatus { + /** Developer Portal is enabled for the service. */ + Enabled = "Enabled", + /** Developer Portal is disabled for the service. */ + Disabled = "Disabled", +} + +/** + * Defines values for DeveloperPortalStatus. \ + * {@link KnownDeveloperPortalStatus} can be used interchangeably with DeveloperPortalStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled**: Developer Portal is enabled for the service. \ + * **Disabled**: Developer Portal is disabled for the service. + */ +export type DeveloperPortalStatus = string; + +/** Known values of {@link ApimIdentityType} that the service accepts. */ +export enum KnownApimIdentityType { + /** SystemAssigned */ + SystemAssigned = "SystemAssigned", + /** UserAssigned */ + UserAssigned = "UserAssigned", + /** SystemAssignedUserAssigned */ + SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", + /** None */ + None = "None", +} + +/** + * Defines values for ApimIdentityType. \ + * {@link KnownApimIdentityType} can be used interchangeably with ApimIdentityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SystemAssigned** \ + * **UserAssigned** \ + * **SystemAssigned, UserAssigned** \ + * **None** + */ +export type ApimIdentityType = string; + +/** Known values of {@link MigrateToStv2Mode} that the service accepts. */ +export enum KnownMigrateToStv2Mode { + /** Migrate API Management service to stv2 from stv1, by reserving the IP Address of the service. This will have a downtime of upto 15 minutes, while the IP address is getting migrate to new infrastructure. */ + PreserveIp = "PreserveIp", + /** Migrate API Management service to stv2 from stv1. This will have no downtime as the service configuration will be migrated to new infrastructure, but the IP address will changed. */ + NewIP = "NewIP", +} + +/** + * Defines values for MigrateToStv2Mode. \ + * {@link KnownMigrateToStv2Mode} can be used interchangeably with MigrateToStv2Mode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PreserveIp**: Migrate API Management service to stv2 from stv1, by reserving the IP Address of the service. This will have a downtime of upto 15 minutes, while the IP address is getting migrate to new infrastructure. \ + * **NewIP**: Migrate API Management service to stv2 from stv1. This will have no downtime as the service configuration will be migrated to new infrastructure, but the IP address will changed. + */ +export type MigrateToStv2Mode = string; + +/** Known values of {@link TemplateName} that the service accepts. */ +export enum KnownTemplateName { + /** ApplicationApprovedNotificationMessage */ + ApplicationApprovedNotificationMessage = "applicationApprovedNotificationMessage", + /** AccountClosedDeveloper */ + AccountClosedDeveloper = "accountClosedDeveloper", + /** QuotaLimitApproachingDeveloperNotificationMessage */ + QuotaLimitApproachingDeveloperNotificationMessage = "quotaLimitApproachingDeveloperNotificationMessage", + /** NewDeveloperNotificationMessage */ + NewDeveloperNotificationMessage = "newDeveloperNotificationMessage", + /** EmailChangeIdentityDefault */ + EmailChangeIdentityDefault = "emailChangeIdentityDefault", + /** InviteUserNotificationMessage */ + InviteUserNotificationMessage = "inviteUserNotificationMessage", + /** NewCommentNotificationMessage */ + NewCommentNotificationMessage = "newCommentNotificationMessage", + /** ConfirmSignUpIdentityDefault */ + ConfirmSignUpIdentityDefault = "confirmSignUpIdentityDefault", + /** NewIssueNotificationMessage */ + NewIssueNotificationMessage = "newIssueNotificationMessage", + /** PurchaseDeveloperNotificationMessage */ + PurchaseDeveloperNotificationMessage = "purchaseDeveloperNotificationMessage", + /** PasswordResetIdentityDefault */ + PasswordResetIdentityDefault = "passwordResetIdentityDefault", + /** PasswordResetByAdminNotificationMessage */ + PasswordResetByAdminNotificationMessage = "passwordResetByAdminNotificationMessage", + /** RejectDeveloperNotificationMessage */ + RejectDeveloperNotificationMessage = "rejectDeveloperNotificationMessage", + /** RequestDeveloperNotificationMessage */ + RequestDeveloperNotificationMessage = "requestDeveloperNotificationMessage", +} + +/** + * Defines values for TemplateName. \ + * {@link KnownTemplateName} can be used interchangeably with TemplateName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **applicationApprovedNotificationMessage** \ + * **accountClosedDeveloper** \ + * **quotaLimitApproachingDeveloperNotificationMessage** \ + * **newDeveloperNotificationMessage** \ + * **emailChangeIdentityDefault** \ + * **inviteUserNotificationMessage** \ + * **newCommentNotificationMessage** \ + * **confirmSignUpIdentityDefault** \ + * **newIssueNotificationMessage** \ + * **purchaseDeveloperNotificationMessage** \ + * **passwordResetIdentityDefault** \ + * **passwordResetByAdminNotificationMessage** \ + * **rejectDeveloperNotificationMessage** \ + * **requestDeveloperNotificationMessage** + */ +export type TemplateName = string; + +/** Known values of {@link GatewayListDebugCredentialsContractPurpose} that the service accepts. */ +export enum KnownGatewayListDebugCredentialsContractPurpose { + /** The tracing purpose. */ + Tracing = "tracing", +} + +/** + * Defines values for GatewayListDebugCredentialsContractPurpose. \ + * {@link KnownGatewayListDebugCredentialsContractPurpose} can be used interchangeably with GatewayListDebugCredentialsContractPurpose, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **tracing**: The tracing purpose. + */ +export type GatewayListDebugCredentialsContractPurpose = string; + +/** Known values of {@link UserState} that the service accepts. */ +export enum KnownUserState { + /** User state is active. */ + Active = "active", + /** User is blocked. Blocked users cannot authenticate at developer portal or call API. */ + Blocked = "blocked", + /** User account is pending. Requires identity confirmation before it can be made active. */ + Pending = "pending", + /** User account is closed. All identities and related entities are removed. */ + Deleted = "deleted", +} + +/** + * Defines values for UserState. \ + * {@link KnownUserState} can be used interchangeably with UserState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **active**: User state is active. \ + * **blocked**: User is blocked. Blocked users cannot authenticate at developer portal or call API. \ + * **pending**: User account is pending. Requires identity confirmation before it can be made active. \ + * **deleted**: User account is closed. All identities and related entities are removed. + */ +export type UserState = string; + +/** Known values of {@link IdentityProviderType} that the service accepts. */ +export enum KnownIdentityProviderType { + /** Facebook as Identity provider. */ + Facebook = "facebook", + /** Google as Identity provider. */ + Google = "google", + /** Microsoft Live as Identity provider. */ + Microsoft = "microsoft", + /** Twitter as Identity provider. */ + Twitter = "twitter", + /** Azure Active Directory as Identity provider. */ + Aad = "aad", + /** Azure Active Directory B2C as Identity provider. */ + AadB2C = "aadB2C", +} + +/** + * Defines values for IdentityProviderType. \ + * {@link KnownIdentityProviderType} can be used interchangeably with IdentityProviderType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **facebook**: Facebook as Identity provider. \ + * **google**: Google as Identity provider. \ + * **microsoft**: Microsoft Live as Identity provider. \ + * **twitter**: Twitter as Identity provider. \ + * **aad**: Azure Active Directory as Identity provider. \ + * **aadB2C**: Azure Active Directory B2C as Identity provider. + */ +export type IdentityProviderType = string; + +/** Known values of {@link LoggerType} that the service accepts. */ +export enum KnownLoggerType { + /** Azure Event Hub as log destination. */ + AzureEventHub = "azureEventHub", + /** Azure Application Insights as log destination. */ + ApplicationInsights = "applicationInsights", + /** Azure Monitor */ + AzureMonitor = "azureMonitor", +} + +/** + * Defines values for LoggerType. \ + * {@link KnownLoggerType} can be used interchangeably with LoggerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **azureEventHub**: Azure Event Hub as log destination. \ + * **applicationInsights**: Azure Application Insights as log destination. \ + * **azureMonitor**: Azure Monitor + */ +export type LoggerType = string; + +/** Known values of {@link ConnectivityStatusType} that the service accepts. */ +export enum KnownConnectivityStatusType { + /** Initializing */ + Initializing = "initializing", + /** Success */ + Success = "success", + /** Failure */ + Failure = "failure", +} + +/** + * Defines values for ConnectivityStatusType. \ + * {@link KnownConnectivityStatusType} can be used interchangeably with ConnectivityStatusType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **initializing** \ + * **success** \ + * **failure** + */ +export type ConnectivityStatusType = string; + +/** Known values of {@link NotificationName} that the service accepts. */ +export enum KnownNotificationName { + /** The following email recipients and users will receive email notifications about subscription requests for API products requiring approval. */ + RequestPublisherNotificationMessage = "RequestPublisherNotificationMessage", + /** The following email recipients and users will receive email notifications about new API product subscriptions. */ + PurchasePublisherNotificationMessage = "PurchasePublisherNotificationMessage", + /** The following email recipients and users will receive email notifications when new applications are submitted to the application gallery. */ + NewApplicationNotificationMessage = "NewApplicationNotificationMessage", + /** The following recipients will receive blind carbon copies of all emails sent to developers. */ + BCC = "BCC", + /** The following email recipients and users will receive email notifications when a new issue or comment is submitted on the developer portal. */ + NewIssuePublisherNotificationMessage = "NewIssuePublisherNotificationMessage", + /** The following email recipients and users will receive email notifications when developer closes his account. */ + AccountClosedPublisher = "AccountClosedPublisher", + /** The following email recipients and users will receive email notifications when subscription usage gets close to usage quota. */ + QuotaLimitApproachingPublisherNotificationMessage = "QuotaLimitApproachingPublisherNotificationMessage", +} + +/** + * Defines values for NotificationName. \ + * {@link KnownNotificationName} can be used interchangeably with NotificationName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **RequestPublisherNotificationMessage**: The following email recipients and users will receive email notifications about subscription requests for API products requiring approval. \ + * **PurchasePublisherNotificationMessage**: The following email recipients and users will receive email notifications about new API product subscriptions. \ + * **NewApplicationNotificationMessage**: The following email recipients and users will receive email notifications when new applications are submitted to the application gallery. \ + * **BCC**: The following recipients will receive blind carbon copies of all emails sent to developers. \ + * **NewIssuePublisherNotificationMessage**: The following email recipients and users will receive email notifications when a new issue or comment is submitted on the developer portal. \ + * **AccountClosedPublisher**: The following email recipients and users will receive email notifications when developer closes his account. \ + * **QuotaLimitApproachingPublisherNotificationMessage**: The following email recipients and users will receive email notifications when subscription usage gets close to usage quota. + */ +export type NotificationName = string; + +/** Known values of {@link PolicyFragmentContentFormat} that the service accepts. */ +export enum KnownPolicyFragmentContentFormat { + /** The contents are inline and Content type is an XML document. */ + Xml = "xml", + /** The contents are inline and Content type is a non XML encoded policy document. */ + Rawxml = "rawxml", +} + +/** + * Defines values for PolicyFragmentContentFormat. \ + * {@link KnownPolicyFragmentContentFormat} can be used interchangeably with PolicyFragmentContentFormat, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **xml**: The contents are inline and Content type is an XML document. \ + * **rawxml**: The contents are inline and Content type is a non XML encoded policy document. + */ +export type PolicyFragmentContentFormat = string; + +/** Known values of {@link PolicyRestrictionRequireBase} that the service accepts. */ +export enum KnownPolicyRestrictionRequireBase { + /** The policy is required to have base policy */ + True = "true", + /** The policy does not require to have base policy */ + False = "false", +} + +/** + * Defines values for PolicyRestrictionRequireBase. \ + * {@link KnownPolicyRestrictionRequireBase} can be used interchangeably with PolicyRestrictionRequireBase, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **true**: The policy is required to have base policy \ + * **false**: The policy does not require to have base policy + */ +export type PolicyRestrictionRequireBase = string; + +/** Known values of {@link PortalSettingsCspMode} that the service accepts. */ +export enum KnownPortalSettingsCspMode { + /** The browser will block requests not matching allowed origins. */ + Enabled = "enabled", + /** The browser will not apply the origin restrictions. */ + Disabled = "disabled", + /** The browser will report requests not matching allowed origins without blocking them. */ + ReportOnly = "reportOnly", +} + +/** + * Defines values for PortalSettingsCspMode. \ + * {@link KnownPortalSettingsCspMode} can be used interchangeably with PortalSettingsCspMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **enabled**: The browser will block requests not matching allowed origins. \ + * **disabled**: The browser will not apply the origin restrictions. \ + * **reportOnly**: The browser will report requests not matching allowed origins without blocking them. + */ +export type PortalSettingsCspMode = string; + +/** Known values of {@link PortalRevisionStatus} that the service accepts. */ +export enum KnownPortalRevisionStatus { + /** Portal's revision has been queued. */ + Pending = "pending", + /** Portal's revision is being published. */ + Publishing = "publishing", + /** Portal's revision publishing completed. */ + Completed = "completed", + /** Portal's revision publishing failed. */ + Failed = "failed", +} + +/** + * Defines values for PortalRevisionStatus. \ + * {@link KnownPortalRevisionStatus} can be used interchangeably with PortalRevisionStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **pending**: Portal's revision has been queued. \ + * **publishing**: Portal's revision is being published. \ + * **completed**: Portal's revision publishing completed. \ + * **failed**: Portal's revision publishing failed. + */ +export type PortalRevisionStatus = string; + +/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ +export enum KnownPrivateEndpointConnectionProvisioningState { + /** Succeeded */ + Succeeded = "Succeeded", + /** Creating */ + Creating = "Creating", + /** Deleting */ + Deleting = "Deleting", + /** Failed */ + Failed = "Failed", +} + +/** + * Defines values for PrivateEndpointConnectionProvisioningState. \ + * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded** \ + * **Creating** \ + * **Deleting** \ + * **Failed** + */ +export type PrivateEndpointConnectionProvisioningState = string; + +/** Known values of {@link SchemaType} that the service accepts. */ +export enum KnownSchemaType { + /** XML schema type. */ + Xml = "xml", + /** Json schema type. */ + Json = "json", +} + +/** + * Defines values for SchemaType. \ + * {@link KnownSchemaType} can be used interchangeably with SchemaType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **xml**: XML schema type. \ + * **json**: Json schema type. + */ +export type SchemaType = string; + +/** Known values of {@link SettingsTypeName} that the service accepts. */ +export enum KnownSettingsTypeName { + /** Public */ + Public = "public", +} + +/** + * Defines values for SettingsTypeName. \ + * {@link KnownSettingsTypeName} can be used interchangeably with SettingsTypeName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **public** + */ +export type SettingsTypeName = string; + +/** Known values of {@link AppType} that the service accepts. */ +export enum KnownAppType { + /** User create request was sent by legacy developer portal. */ + Portal = "portal", + /** User create request was sent by new developer portal. */ + DeveloperPortal = "developerPortal", +} + +/** + * Defines values for AppType. \ + * {@link KnownAppType} can be used interchangeably with AppType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **portal**: User create request was sent by legacy developer portal. \ + * **developerPortal**: User create request was sent by new developer portal. + */ +export type AppType = string; + +/** Known values of {@link AccessIdName} that the service accepts. */ +export enum KnownAccessIdName { + /** Access */ + Access = "access", + /** GitAccess */ + GitAccess = "gitAccess", +} + +/** + * Defines values for AccessIdName. \ + * {@link KnownAccessIdName} can be used interchangeably with AccessIdName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **access** \ + * **gitAccess** + */ +export type AccessIdName = string; + +/** Known values of {@link ConfigurationIdName} that the service accepts. */ +export enum KnownConfigurationIdName { + /** Configuration */ + Configuration = "configuration", +} + +/** + * Defines values for ConfigurationIdName. \ + * {@link KnownConfigurationIdName} can be used interchangeably with ConfigurationIdName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **configuration** + */ +export type ConfigurationIdName = string; + +/** Known values of {@link Confirmation} that the service accepts. */ +export enum KnownConfirmation { + /** Send an e-mail to the user confirming they have successfully signed up. */ + Signup = "signup", + /** Send an e-mail inviting the user to sign-up and complete registration. */ + Invite = "invite", +} + +/** + * Defines values for Confirmation. \ + * {@link KnownConfirmation} can be used interchangeably with Confirmation, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **signup**: Send an e-mail to the user confirming they have successfully signed up. \ + * **invite**: Send an e-mail inviting the user to sign-up and complete registration. + */ +export type Confirmation = string; + +/** Known values of {@link KeyVaultRefreshState} that the service accepts. */ +export enum KnownKeyVaultRefreshState { + /** Entities for which KeyVault refresh failed. */ + True = "true", + /** Entities for which KeyVault refresh succeeded */ + False = "false", +} + +/** + * Defines values for KeyVaultRefreshState. \ + * {@link KnownKeyVaultRefreshState} can be used interchangeably with KeyVaultRefreshState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **true**: Entities for which KeyVault refresh failed. \ + * **false**: Entities for which KeyVault refresh succeeded + */ +export type KeyVaultRefreshState = string; +/** Defines values for ProductState. */ +export type ProductState = "notPublished" | "published"; +/** Defines values for AuthorizationMethod. */ +export type AuthorizationMethod = + | "HEAD" + | "OPTIONS" + | "TRACE" + | "GET" + | "POST" + | "PUT" + | "PATCH" + | "DELETE"; +/** Defines values for NameAvailabilityReason. */ +export type NameAvailabilityReason = "Valid" | "Invalid" | "AlreadyExists"; +/** Defines values for KeyType. */ +export type KeyType = "primary" | "secondary"; +/** Defines values for GroupType. */ +export type GroupType = "custom" | "system" | "external"; +/** Defines values for PolicyScopeContract. */ +export type PolicyScopeContract = + | "Tenant" + | "Product" + | "Api" + | "Operation" + | "All"; +/** Defines values for AsyncOperationStatus. */ +export type AsyncOperationStatus = + | "Started" + | "InProgress" + | "Succeeded" + | "Failed"; +/** Defines values for SubscriptionState. */ +export type SubscriptionState = + | "suspended" + | "active" + | "expired" + | "submitted" + | "rejected" + | "cancelled"; +/** Defines values for ApiManagementSkuCapacityScaleType. */ +export type ApiManagementSkuCapacityScaleType = "Automatic" | "Manual" | "None"; +/** Defines values for ApiManagementSkuRestrictionsType. */ +export type ApiManagementSkuRestrictionsType = "Location" | "Zone"; +/** Defines values for ApiManagementSkuRestrictionsReasonCode. */ +export type ApiManagementSkuRestrictionsReasonCode = + | "QuotaId" + | "NotAvailableForSubscription"; +/** Defines values for AsyncResolverStatus. */ +export type AsyncResolverStatus = + | "Started" + | "InProgress" + | "Succeeded" + | "Failed"; + +/** Optional parameters. */ +export interface AllPoliciesListByServiceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByService operation. */ +export type AllPoliciesListByServiceResponse = AllPoliciesCollection; + +/** Optional parameters. */ +export interface AllPoliciesListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type AllPoliciesListByServiceNextResponse = AllPoliciesCollection; + +/** Optional parameters. */ +export interface ApiManagementGatewayCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiManagementGatewayCreateOrUpdateResponse = + ApiManagementGatewayResource; + +/** Optional parameters. */ +export interface ApiManagementGatewayUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type ApiManagementGatewayUpdateResponse = ApiManagementGatewayResource; + +/** Optional parameters. */ +export interface ApiManagementGatewayGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiManagementGatewayGetResponse = ApiManagementGatewayResource; + +/** Optional parameters. */ +export interface ApiManagementGatewayDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the delete operation. */ +export type ApiManagementGatewayDeleteResponse = + ApiManagementGatewayDeleteHeaders & ApiManagementGatewayResource; + +/** Optional parameters. */ +export interface ApiManagementGatewayListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type ApiManagementGatewayListByResourceGroupResponse = + ApiManagementGatewayListResult; + +/** Optional parameters. */ +export interface ApiManagementGatewayListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ApiManagementGatewayListResponse = ApiManagementGatewayListResult; + +/** Optional parameters. */ +export interface ApiManagementGatewayListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type ApiManagementGatewayListByResourceGroupNextResponse = + ApiManagementGatewayListResult; + +/** Optional parameters. */ +export interface ApiManagementGatewayListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ApiManagementGatewayListNextResponse = + ApiManagementGatewayListResult; + +/** Optional parameters. */ +export interface ApiListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| isCurrent | filter | eq, ne | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Include tags in the response. */ + tags?: string; + /** Include full ApiVersionSet resource in response */ + expandApiVersionSet?: boolean; +} + +/** Contains response data for the listByService operation. */ +export type ApiListByServiceResponse = ApiCollection; + +/** Optional parameters. */ +export interface ApiGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiGetEntityTagResponse = ApiGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiGetResponse = ApiGetHeaders & ApiContract; + +/** Optional parameters. */ +export interface ApiCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiCreateOrUpdateResponse = ApiCreateOrUpdateHeaders & ApiContract; + +/** Optional parameters. */ +export interface ApiUpdateOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiUpdateResponse = ApiUpdateHeaders & ApiContract; + +/** Optional parameters. */ +export interface ApiDeleteOptionalParams extends coreClient.OperationOptions { + /** Delete all revisions of the Api. */ + deleteRevisions?: boolean; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the delete operation. */ +export type ApiDeleteResponse = ApiDeleteHeaders; + +/** Optional parameters. */ +export interface ApiListByTagsOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| isCurrent | filter | eq | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Include not tagged APIs. */ + includeNotTaggedApis?: boolean; +} + +/** Contains response data for the listByTags operation. */ +export type ApiListByTagsResponse = TagResourceCollection; + +/** Optional parameters. */ +export interface ApiListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiListByServiceNextResponse = ApiCollection; + +/** Optional parameters. */ +export interface ApiListByTagsNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByTagsNext operation. */ +export type ApiListByTagsNextResponse = TagResourceCollection; + +/** Optional parameters. */ +export interface ApiRevisionListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiRevisionListByServiceResponse = ApiRevisionCollection; + +/** Optional parameters. */ +export interface ApiRevisionListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiRevisionListByServiceNextResponse = ApiRevisionCollection; + +/** Optional parameters. */ +export interface ApiReleaseListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| notes | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiReleaseListByServiceResponse = ApiReleaseCollection; + +/** Optional parameters. */ +export interface ApiReleaseGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiReleaseGetEntityTagResponse = ApiReleaseGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiReleaseGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiReleaseGetResponse = ApiReleaseGetHeaders & ApiReleaseContract; + +/** Optional parameters. */ +export interface ApiReleaseCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiReleaseCreateOrUpdateResponse = ApiReleaseCreateOrUpdateHeaders & + ApiReleaseContract; + +/** Optional parameters. */ +export interface ApiReleaseUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiReleaseUpdateResponse = ApiReleaseUpdateHeaders & + ApiReleaseContract; + +/** Optional parameters. */ +export interface ApiReleaseDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiReleaseListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiReleaseListByServiceNextResponse = ApiReleaseCollection; + +/** Optional parameters. */ +export interface ApiOperationListByApiOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Include tags in the response. */ + tags?: string; +} + +/** Contains response data for the listByApi operation. */ +export type ApiOperationListByApiResponse = OperationCollection; + +/** Optional parameters. */ +export interface ApiOperationGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiOperationGetEntityTagResponse = ApiOperationGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiOperationGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiOperationGetResponse = ApiOperationGetHeaders & + OperationContract; + +/** Optional parameters. */ +export interface ApiOperationCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiOperationCreateOrUpdateResponse = + ApiOperationCreateOrUpdateHeaders & OperationContract; + +/** Optional parameters. */ +export interface ApiOperationUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiOperationUpdateResponse = ApiOperationUpdateHeaders & + OperationContract; + +/** Optional parameters. */ +export interface ApiOperationDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiOperationListByApiNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApiNext operation. */ +export type ApiOperationListByApiNextResponse = OperationCollection; + +/** Optional parameters. */ +export interface ApiOperationPolicyListByOperationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByOperation operation. */ +export type ApiOperationPolicyListByOperationResponse = PolicyCollection; + +/** Optional parameters. */ +export interface ApiOperationPolicyGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiOperationPolicyGetEntityTagResponse = + ApiOperationPolicyGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiOperationPolicyGetOptionalParams + extends coreClient.OperationOptions { + /** Policy Export Format. */ + format?: PolicyExportFormat; +} + +/** Contains response data for the get operation. */ +export type ApiOperationPolicyGetResponse = ApiOperationPolicyGetHeaders & + PolicyContract; + +/** Optional parameters. */ +export interface ApiOperationPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiOperationPolicyCreateOrUpdateResponse = + ApiOperationPolicyCreateOrUpdateHeaders & PolicyContract; + +/** Optional parameters. */ +export interface ApiOperationPolicyDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface TagListByOperationOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByOperation operation. */ +export type TagListByOperationResponse = TagCollection; + +/** Optional parameters. */ +export interface TagGetEntityStateByOperationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityStateByOperation operation. */ +export type TagGetEntityStateByOperationResponse = + TagGetEntityStateByOperationHeaders; + +/** Optional parameters. */ +export interface TagGetByOperationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getByOperation operation. */ +export type TagGetByOperationResponse = TagGetByOperationHeaders & TagContract; + +/** Optional parameters. */ +export interface TagAssignToOperationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the assignToOperation operation. */ +export type TagAssignToOperationResponse = TagContract; + +/** Optional parameters. */ +export interface TagDetachFromOperationOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface TagListByApiOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByApi operation. */ +export type TagListByApiResponse = TagCollection; + +/** Optional parameters. */ +export interface TagGetEntityStateByApiOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityStateByApi operation. */ +export type TagGetEntityStateByApiResponse = TagGetEntityStateByApiHeaders; + +/** Optional parameters. */ +export interface TagGetByApiOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getByApi operation. */ +export type TagGetByApiResponse = TagGetByApiHeaders & TagContract; + +/** Optional parameters. */ +export interface TagAssignToApiOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the assignToApi operation. */ +export type TagAssignToApiResponse = TagAssignToApiHeaders & TagContract; + +/** Optional parameters. */ +export interface TagDetachFromApiOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface TagListByProductOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByProduct operation. */ +export type TagListByProductResponse = TagCollection; + +/** Optional parameters. */ +export interface TagGetEntityStateByProductOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityStateByProduct operation. */ +export type TagGetEntityStateByProductResponse = + TagGetEntityStateByProductHeaders; + +/** Optional parameters. */ +export interface TagGetByProductOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getByProduct operation. */ +export type TagGetByProductResponse = TagGetByProductHeaders & TagContract; + +/** Optional parameters. */ +export interface TagAssignToProductOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the assignToProduct operation. */ +export type TagAssignToProductResponse = TagContract; + +/** Optional parameters. */ +export interface TagDetachFromProductOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface TagListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Scope like 'apis', 'products' or 'apis/{apiId} */ + scope?: string; +} + +/** Contains response data for the listByService operation. */ +export type TagListByServiceResponse = TagCollection; + +/** Optional parameters. */ +export interface TagGetEntityStateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityState operation. */ +export type TagGetEntityStateResponse = TagGetEntityStateHeaders; + +/** Optional parameters. */ +export interface TagGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type TagGetResponse = TagGetHeaders & TagContract; + +/** Optional parameters. */ +export interface TagCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type TagCreateOrUpdateResponse = TagCreateOrUpdateHeaders & TagContract; + +/** Optional parameters. */ +export interface TagUpdateOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type TagUpdateResponse = TagUpdateHeaders & TagContract; + +/** Optional parameters. */ +export interface TagDeleteOptionalParams extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface TagListByOperationNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByOperationNext operation. */ +export type TagListByOperationNextResponse = TagCollection; + +/** Optional parameters. */ +export interface TagListByApiNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApiNext operation. */ +export type TagListByApiNextResponse = TagCollection; + +/** Optional parameters. */ +export interface TagListByProductNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByProductNext operation. */ +export type TagListByProductNextResponse = TagCollection; + +/** Optional parameters. */ +export interface TagListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type TagListByServiceNextResponse = TagCollection; + +/** Optional parameters. */ +export interface GraphQLApiResolverListByApiOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByApi operation. */ +export type GraphQLApiResolverListByApiResponse = ResolverCollection; + +/** Optional parameters. */ +export interface GraphQLApiResolverGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type GraphQLApiResolverGetEntityTagResponse = + GraphQLApiResolverGetEntityTagHeaders; + +/** Optional parameters. */ +export interface GraphQLApiResolverGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type GraphQLApiResolverGetResponse = GraphQLApiResolverGetHeaders & + ResolverContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type GraphQLApiResolverCreateOrUpdateResponse = + GraphQLApiResolverCreateOrUpdateHeaders & ResolverContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type GraphQLApiResolverUpdateResponse = GraphQLApiResolverUpdateHeaders & + ResolverContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface GraphQLApiResolverListByApiNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApiNext operation. */ +export type GraphQLApiResolverListByApiNextResponse = ResolverCollection; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyListByResolverOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResolver operation. */ +export type GraphQLApiResolverPolicyListByResolverResponse = PolicyCollection; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type GraphQLApiResolverPolicyGetEntityTagResponse = + GraphQLApiResolverPolicyGetEntityTagHeaders; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyGetOptionalParams + extends coreClient.OperationOptions { + /** Policy Export Format. */ + format?: PolicyExportFormat; +} + +/** Contains response data for the get operation. */ +export type GraphQLApiResolverPolicyGetResponse = + GraphQLApiResolverPolicyGetHeaders & PolicyContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type GraphQLApiResolverPolicyCreateOrUpdateResponse = + GraphQLApiResolverPolicyCreateOrUpdateHeaders & PolicyContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyListByResolverNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResolverNext operation. */ +export type GraphQLApiResolverPolicyListByResolverNextResponse = + PolicyCollection; + +/** Optional parameters. */ +export interface ApiProductListByApisOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByApis operation. */ +export type ApiProductListByApisResponse = ProductCollection; + +/** Optional parameters. */ +export interface ApiProductListByApisNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApisNext operation. */ +export type ApiProductListByApisNextResponse = ProductCollection; + +/** Optional parameters. */ +export interface ApiPolicyListByApiOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApi operation. */ +export type ApiPolicyListByApiResponse = PolicyCollection; + +/** Optional parameters. */ +export interface ApiPolicyGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiPolicyGetEntityTagResponse = ApiPolicyGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiPolicyGetOptionalParams + extends coreClient.OperationOptions { + /** Policy Export Format. */ + format?: PolicyExportFormat; +} + +/** Contains response data for the get operation. */ +export type ApiPolicyGetResponse = ApiPolicyGetHeaders & PolicyContract; + +/** Optional parameters. */ +export interface ApiPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiPolicyCreateOrUpdateResponse = ApiPolicyCreateOrUpdateHeaders & + PolicyContract; + +/** Optional parameters. */ +export interface ApiPolicyDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiSchemaListByApiOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| contentType | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByApi operation. */ +export type ApiSchemaListByApiResponse = SchemaCollection; + +/** Optional parameters. */ +export interface ApiSchemaGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiSchemaGetEntityTagResponse = ApiSchemaGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiSchemaGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiSchemaGetResponse = ApiSchemaGetHeaders & SchemaContract; + +/** Optional parameters. */ +export interface ApiSchemaCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiSchemaCreateOrUpdateResponse = ApiSchemaCreateOrUpdateHeaders & + SchemaContract; + +/** Optional parameters. */ +export interface ApiSchemaDeleteOptionalParams + extends coreClient.OperationOptions { + /** If true removes all references to the schema before deleting it. */ + force?: boolean; +} + +/** Optional parameters. */ +export interface ApiSchemaListByApiNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApiNext operation. */ +export type ApiSchemaListByApiNextResponse = SchemaCollection; + +/** Optional parameters. */ +export interface ApiDiagnosticListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiDiagnosticListByServiceResponse = DiagnosticCollection; + +/** Optional parameters. */ +export interface ApiDiagnosticGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiDiagnosticGetEntityTagResponse = + ApiDiagnosticGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiDiagnosticGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiDiagnosticGetResponse = ApiDiagnosticGetHeaders & + DiagnosticContract; + +/** Optional parameters. */ +export interface ApiDiagnosticCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiDiagnosticCreateOrUpdateResponse = + ApiDiagnosticCreateOrUpdateHeaders & DiagnosticContract; + +/** Optional parameters. */ +export interface ApiDiagnosticUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiDiagnosticUpdateResponse = ApiDiagnosticUpdateHeaders & + DiagnosticContract; + +/** Optional parameters. */ +export interface ApiDiagnosticDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiDiagnosticListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiDiagnosticListByServiceNextResponse = DiagnosticCollection; + +/** Optional parameters. */ +export interface ApiIssueListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Expand the comment attachments. */ + expandCommentsAttachments?: boolean; +} + +/** Contains response data for the listByService operation. */ +export type ApiIssueListByServiceResponse = IssueCollection; + +/** Optional parameters. */ +export interface ApiIssueGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiIssueGetEntityTagResponse = ApiIssueGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiIssueGetOptionalParams extends coreClient.OperationOptions { + /** Expand the comment attachments. */ + expandCommentsAttachments?: boolean; +} + +/** Contains response data for the get operation. */ +export type ApiIssueGetResponse = ApiIssueGetHeaders & IssueContract; + +/** Optional parameters. */ +export interface ApiIssueCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiIssueCreateOrUpdateResponse = ApiIssueCreateOrUpdateHeaders & + IssueContract; + +/** Optional parameters. */ +export interface ApiIssueUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiIssueUpdateResponse = ApiIssueUpdateHeaders & IssueContract; + +/** Optional parameters. */ +export interface ApiIssueDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiIssueListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiIssueListByServiceNextResponse = IssueCollection; + +/** Optional parameters. */ +export interface ApiIssueCommentListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiIssueCommentListByServiceResponse = IssueCommentCollection; + +/** Optional parameters. */ +export interface ApiIssueCommentGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiIssueCommentGetEntityTagResponse = + ApiIssueCommentGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiIssueCommentGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiIssueCommentGetResponse = ApiIssueCommentGetHeaders & + IssueCommentContract; + +/** Optional parameters. */ +export interface ApiIssueCommentCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiIssueCommentCreateOrUpdateResponse = + ApiIssueCommentCreateOrUpdateHeaders & IssueCommentContract; + +/** Optional parameters. */ +export interface ApiIssueCommentDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiIssueCommentListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiIssueCommentListByServiceNextResponse = IssueCommentCollection; + +/** Optional parameters. */ +export interface ApiIssueAttachmentListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiIssueAttachmentListByServiceResponse = IssueAttachmentCollection; + +/** Optional parameters. */ +export interface ApiIssueAttachmentGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiIssueAttachmentGetEntityTagResponse = + ApiIssueAttachmentGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiIssueAttachmentGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiIssueAttachmentGetResponse = ApiIssueAttachmentGetHeaders & + IssueAttachmentContract; + +/** Optional parameters. */ +export interface ApiIssueAttachmentCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiIssueAttachmentCreateOrUpdateResponse = + ApiIssueAttachmentCreateOrUpdateHeaders & IssueAttachmentContract; + +/** Optional parameters. */ +export interface ApiIssueAttachmentDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiIssueAttachmentListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiIssueAttachmentListByServiceNextResponse = + IssueAttachmentCollection; + +/** Optional parameters. */ +export interface ApiTagDescriptionListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiTagDescriptionListByServiceResponse = TagDescriptionCollection; + +/** Optional parameters. */ +export interface ApiTagDescriptionGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiTagDescriptionGetEntityTagResponse = + ApiTagDescriptionGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiTagDescriptionGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiTagDescriptionGetResponse = ApiTagDescriptionGetHeaders & + TagDescriptionContract; + +/** Optional parameters. */ +export interface ApiTagDescriptionCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiTagDescriptionCreateOrUpdateResponse = + ApiTagDescriptionCreateOrUpdateHeaders & TagDescriptionContract; + +/** Optional parameters. */ +export interface ApiTagDescriptionDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiTagDescriptionListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiTagDescriptionListByServiceNextResponse = + TagDescriptionCollection; + +/** Optional parameters. */ +export interface OperationListByTagsOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Include not tagged Operations. */ + includeNotTaggedOperations?: boolean; +} + +/** Contains response data for the listByTags operation. */ +export type OperationListByTagsResponse = TagResourceCollection; + +/** Optional parameters. */ +export interface OperationListByTagsNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByTagsNext operation. */ +export type OperationListByTagsNextResponse = TagResourceCollection; + +/** Optional parameters. */ +export interface ApiWikiGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiWikiGetEntityTagResponse = ApiWikiGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiWikiGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiWikiGetResponse = ApiWikiGetHeaders & WikiContract; + +/** Optional parameters. */ +export interface ApiWikiCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiWikiCreateOrUpdateResponse = ApiWikiCreateOrUpdateHeaders & + WikiContract; + +/** Optional parameters. */ +export interface ApiWikiUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiWikiUpdateResponse = ApiWikiUpdateHeaders & WikiContract; + +/** Optional parameters. */ +export interface ApiWikiDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiWikisListOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the list operation. */ +export type ApiWikisListResponse = WikiCollection; + +/** Optional parameters. */ +export interface ApiWikisListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ApiWikisListNextResponse = WikiCollection; + +/** Optional parameters. */ +export interface ApiExportGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiExportGetResponse = ApiExportResult; + +/** Optional parameters. */ +export interface ApiVersionSetListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiVersionSetListByServiceResponse = ApiVersionSetCollection; + +/** Optional parameters. */ +export interface ApiVersionSetGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiVersionSetGetEntityTagResponse = + ApiVersionSetGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiVersionSetGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiVersionSetGetResponse = ApiVersionSetGetHeaders & + ApiVersionSetContract; + +/** Optional parameters. */ +export interface ApiVersionSetCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiVersionSetCreateOrUpdateResponse = + ApiVersionSetCreateOrUpdateHeaders & ApiVersionSetContract; + +/** Optional parameters. */ +export interface ApiVersionSetUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiVersionSetUpdateResponse = ApiVersionSetUpdateHeaders & + ApiVersionSetContract; + +/** Optional parameters. */ +export interface ApiVersionSetDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiVersionSetListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiVersionSetListByServiceNextResponse = ApiVersionSetCollection; + +/** Optional parameters. */ +export interface AuthorizationProviderListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type AuthorizationProviderListByServiceResponse = + AuthorizationProviderCollection; + +/** Optional parameters. */ +export interface AuthorizationProviderGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AuthorizationProviderGetResponse = AuthorizationProviderGetHeaders & + AuthorizationProviderContract; + +/** Optional parameters. */ +export interface AuthorizationProviderCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type AuthorizationProviderCreateOrUpdateResponse = + AuthorizationProviderCreateOrUpdateHeaders & AuthorizationProviderContract; + +/** Optional parameters. */ +export interface AuthorizationProviderDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AuthorizationProviderListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type AuthorizationProviderListByServiceNextResponse = + AuthorizationProviderCollection; + +/** Optional parameters. */ +export interface AuthorizationListByAuthorizationProviderOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByAuthorizationProvider operation. */ +export type AuthorizationListByAuthorizationProviderResponse = + AuthorizationCollection; + +/** Optional parameters. */ +export interface AuthorizationGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AuthorizationGetResponse = AuthorizationGetHeaders & + AuthorizationContract; + +/** Optional parameters. */ +export interface AuthorizationCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type AuthorizationCreateOrUpdateResponse = + AuthorizationCreateOrUpdateHeaders & AuthorizationContract; + +/** Optional parameters. */ +export interface AuthorizationDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AuthorizationConfirmConsentCodeOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the confirmConsentCode operation. */ +export type AuthorizationConfirmConsentCodeResponse = + AuthorizationConfirmConsentCodeHeaders; + +/** Optional parameters. */ +export interface AuthorizationListByAuthorizationProviderNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAuthorizationProviderNext operation. */ +export type AuthorizationListByAuthorizationProviderNextResponse = + AuthorizationCollection; + +/** Optional parameters. */ +export interface AuthorizationLoginLinksPostOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the post operation. */ +export type AuthorizationLoginLinksPostResponse = + AuthorizationLoginLinksPostHeaders & AuthorizationLoginResponseContract; + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyListByAuthorizationOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByAuthorization operation. */ +export type AuthorizationAccessPolicyListByAuthorizationResponse = + AuthorizationAccessPolicyCollection; + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AuthorizationAccessPolicyGetResponse = + AuthorizationAccessPolicyGetHeaders & AuthorizationAccessPolicyContract; + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type AuthorizationAccessPolicyCreateOrUpdateResponse = + AuthorizationAccessPolicyCreateOrUpdateHeaders & + AuthorizationAccessPolicyContract; + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyListByAuthorizationNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAuthorizationNext operation. */ +export type AuthorizationAccessPolicyListByAuthorizationNextResponse = + AuthorizationAccessPolicyCollection; + +/** Optional parameters. */ +export interface AuthorizationServerListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type AuthorizationServerListByServiceResponse = + AuthorizationServerCollection; + +/** Optional parameters. */ +export interface AuthorizationServerGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type AuthorizationServerGetEntityTagResponse = + AuthorizationServerGetEntityTagHeaders; + +/** Optional parameters. */ +export interface AuthorizationServerGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AuthorizationServerGetResponse = AuthorizationServerGetHeaders & + AuthorizationServerContract; + +/** Optional parameters. */ +export interface AuthorizationServerCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type AuthorizationServerCreateOrUpdateResponse = + AuthorizationServerCreateOrUpdateHeaders & AuthorizationServerContract; + +/** Optional parameters. */ +export interface AuthorizationServerUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type AuthorizationServerUpdateResponse = + AuthorizationServerUpdateHeaders & AuthorizationServerContract; + +/** Optional parameters. */ +export interface AuthorizationServerDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AuthorizationServerListSecretsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSecrets operation. */ +export type AuthorizationServerListSecretsResponse = + AuthorizationServerListSecretsHeaders & AuthorizationServerSecretsContract; + +/** Optional parameters. */ +export interface AuthorizationServerListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type AuthorizationServerListByServiceNextResponse = + AuthorizationServerCollection; + +/** Optional parameters. */ +export interface BackendListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| title | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| url | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type BackendListByServiceResponse = BackendCollection; + +/** Optional parameters. */ +export interface BackendGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type BackendGetEntityTagResponse = BackendGetEntityTagHeaders; + +/** Optional parameters. */ +export interface BackendGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type BackendGetResponse = BackendGetHeaders & BackendContract; + +/** Optional parameters. */ +export interface BackendCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type BackendCreateOrUpdateResponse = BackendCreateOrUpdateHeaders & + BackendContract; + +/** Optional parameters. */ +export interface BackendUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type BackendUpdateResponse = BackendUpdateHeaders & BackendContract; + +/** Optional parameters. */ +export interface BackendDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface BackendReconnectOptionalParams + extends coreClient.OperationOptions { + /** Reconnect request parameters. */ + parameters?: BackendReconnectContract; +} + +/** Optional parameters. */ +export interface BackendListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type BackendListByServiceNextResponse = BackendCollection; + +/** Optional parameters. */ +export interface CacheListByServiceOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type CacheListByServiceResponse = CacheCollection; + +/** Optional parameters. */ +export interface CacheGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type CacheGetEntityTagResponse = CacheGetEntityTagHeaders; + +/** Optional parameters. */ +export interface CacheGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type CacheGetResponse = CacheGetHeaders & CacheContract; + +/** Optional parameters. */ +export interface CacheCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type CacheCreateOrUpdateResponse = CacheCreateOrUpdateHeaders & + CacheContract; + +/** Optional parameters. */ +export interface CacheUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type CacheUpdateResponse = CacheUpdateHeaders & CacheContract; + +/** Optional parameters. */ +export interface CacheDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface CacheListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type CacheListByServiceNextResponse = CacheCollection; + +/** Optional parameters. */ +export interface CertificateListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| subject | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| thumbprint | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| expirationDate | filter | ge, le, eq, ne, gt, lt | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** When set to true, the response contains only certificates entities which failed refresh. */ + isKeyVaultRefreshFailed?: boolean; +} + +/** Contains response data for the listByService operation. */ +export type CertificateListByServiceResponse = CertificateCollection; + +/** Optional parameters. */ +export interface CertificateGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type CertificateGetEntityTagResponse = CertificateGetEntityTagHeaders; + +/** Optional parameters. */ +export interface CertificateGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type CertificateGetResponse = CertificateGetHeaders & + CertificateContract; + +/** Optional parameters. */ +export interface CertificateCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type CertificateCreateOrUpdateResponse = + CertificateCreateOrUpdateHeaders & CertificateContract; + +/** Optional parameters. */ +export interface CertificateDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface CertificateRefreshSecretOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the refreshSecret operation. */ +export type CertificateRefreshSecretResponse = CertificateRefreshSecretHeaders & + CertificateContract; + +/** Optional parameters. */ +export interface CertificateListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type CertificateListByServiceNextResponse = CertificateCollection; + +/** Optional parameters. */ +export interface PerformConnectivityCheckAsyncOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the performConnectivityCheckAsync operation. */ +export type PerformConnectivityCheckAsyncResponse = ConnectivityCheckResponse; + +/** Optional parameters. */ +export interface ContentTypeListByServiceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByService operation. */ +export type ContentTypeListByServiceResponse = ContentTypeCollection; + +/** Optional parameters. */ +export interface ContentTypeGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ContentTypeGetResponse = ContentTypeGetHeaders & + ContentTypeContract; + +/** Optional parameters. */ +export interface ContentTypeCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ContentTypeCreateOrUpdateResponse = + ContentTypeCreateOrUpdateHeaders & ContentTypeContract; + +/** Optional parameters. */ +export interface ContentTypeDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ContentTypeListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ContentTypeListByServiceNextResponse = ContentTypeCollection; + +/** Optional parameters. */ +export interface ContentItemListByServiceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByService operation. */ +export type ContentItemListByServiceResponse = ContentItemCollection; + +/** Optional parameters. */ +export interface ContentItemGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ContentItemGetEntityTagResponse = ContentItemGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ContentItemGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ContentItemGetResponse = ContentItemGetHeaders & + ContentItemContract; + +/** Optional parameters. */ +export interface ContentItemCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ContentItemCreateOrUpdateResponse = + ContentItemCreateOrUpdateHeaders & ContentItemContract; + +/** Optional parameters. */ +export interface ContentItemDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ContentItemListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ContentItemListByServiceNextResponse = ContentItemCollection; + +/** Optional parameters. */ +export interface DeletedServicesListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type DeletedServicesListBySubscriptionResponse = + DeletedServicesCollection; + +/** Optional parameters. */ +export interface DeletedServicesGetByNameOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getByName operation. */ +export type DeletedServicesGetByNameResponse = DeletedServiceContract; + +/** Optional parameters. */ +export interface DeletedServicesPurgeOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface DeletedServicesListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type DeletedServicesListBySubscriptionNextResponse = + DeletedServicesCollection; + +/** Optional parameters. */ +export interface ApiManagementOperationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ApiManagementOperationsListResponse = OperationListResult; + +/** Optional parameters. */ +export interface ApiManagementOperationsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ApiManagementOperationsListNextResponse = OperationListResult; + +/** Optional parameters. */ +export interface ApiManagementServiceSkusListAvailableServiceSkusOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAvailableServiceSkus operation. */ +export type ApiManagementServiceSkusListAvailableServiceSkusResponse = + ResourceSkuResults; + +/** Optional parameters. */ +export interface ApiManagementServiceSkusListAvailableServiceSkusNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAvailableServiceSkusNext operation. */ +export type ApiManagementServiceSkusListAvailableServiceSkusNextResponse = + ResourceSkuResults; + +/** Optional parameters. */ +export interface ApiManagementServiceRestoreOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the restore operation. */ +export type ApiManagementServiceRestoreResponse = ApiManagementServiceResource; + +/** Optional parameters. */ +export interface ApiManagementServiceBackupOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the backup operation. */ +export type ApiManagementServiceBackupResponse = ApiManagementServiceResource; /** Optional parameters. */ -export interface ApiListByServiceOptionalParams +export interface ApiManagementServiceCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| isCurrent | filter | eq, ne | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** Include tags in the response. */ - tags?: string; - /** Include full ApiVersionSet resource in response */ - expandApiVersionSet?: boolean; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByService operation. */ -export type ApiListByServiceResponse = ApiCollection; +/** Contains response data for the createOrUpdate operation. */ +export type ApiManagementServiceCreateOrUpdateResponse = + ApiManagementServiceResource; /** Optional parameters. */ -export interface ApiGetEntityTagOptionalParams - extends coreClient.OperationOptions {} +export interface ApiManagementServiceUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the getEntityTag operation. */ -export type ApiGetEntityTagResponse = ApiGetEntityTagHeaders; +/** Contains response data for the update operation. */ +export type ApiManagementServiceUpdateResponse = ApiManagementServiceResource; /** Optional parameters. */ -export interface ApiGetOptionalParams extends coreClient.OperationOptions {} +export interface ApiManagementServiceGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiGetResponse = ApiGetHeaders & ApiContract; +export type ApiManagementServiceGetResponse = ApiManagementServiceResource; /** Optional parameters. */ -export interface ApiCreateOrUpdateOptionalParams +export interface ApiManagementServiceDeleteOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ApiCreateOrUpdateResponse = ApiCreateOrUpdateHeaders & ApiContract; +/** Optional parameters. */ +export interface ApiManagementServiceMigrateToStv2OptionalParams + extends coreClient.OperationOptions { + /** Optional parameters supplied to migrate service. */ + parameters?: MigrateToStv2Contract; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the migrateToStv2 operation. */ +export type ApiManagementServiceMigrateToStv2Response = + ApiManagementServiceResource; /** Optional parameters. */ -export interface ApiUpdateOptionalParams extends coreClient.OperationOptions {} +export interface ApiManagementServiceListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ApiUpdateResponse = ApiUpdateHeaders & ApiContract; +/** Contains response data for the listByResourceGroup operation. */ +export type ApiManagementServiceListByResourceGroupResponse = + ApiManagementServiceListResult; /** Optional parameters. */ -export interface ApiDeleteOptionalParams extends coreClient.OperationOptions { - /** Delete all revisions of the Api. */ - deleteRevisions?: boolean; -} +export interface ApiManagementServiceListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ApiManagementServiceListResponse = ApiManagementServiceListResult; /** Optional parameters. */ -export interface ApiListByTagsOptionalParams +export interface ApiManagementServiceGetSsoTokenOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getSsoToken operation. */ +export type ApiManagementServiceGetSsoTokenResponse = + ApiManagementServiceGetSsoTokenResult; + +/** Optional parameters. */ +export interface ApiManagementServiceCheckNameAvailabilityOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the checkNameAvailability operation. */ +export type ApiManagementServiceCheckNameAvailabilityResponse = + ApiManagementServiceNameAvailabilityResult; + +/** Optional parameters. */ +export interface ApiManagementServiceGetDomainOwnershipIdentifierOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getDomainOwnershipIdentifier operation. */ +export type ApiManagementServiceGetDomainOwnershipIdentifierResponse = + ApiManagementServiceGetDomainOwnershipIdentifierResult; + +/** Optional parameters. */ +export interface ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| isCurrent | filter | eq | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** Include not tagged APIs. */ - includeNotTaggedApis?: boolean; + /** Parameters supplied to the Apply Network Configuration operation. If the parameters are empty, all the regions in which the Api Management service is deployed will be updated sequentially without incurring downtime in the region. */ + parameters?: ApiManagementServiceApplyNetworkConfigurationParameters; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByTags operation. */ -export type ApiListByTagsResponse = TagResourceCollection; +/** Contains response data for the applyNetworkConfigurationUpdates operation. */ +export type ApiManagementServiceApplyNetworkConfigurationUpdatesResponse = + ApiManagementServiceResource; /** Optional parameters. */ -export interface ApiListByServiceNextOptionalParams +export interface ApiManagementServiceListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ApiListByServiceNextResponse = ApiCollection; +/** Contains response data for the listByResourceGroupNext operation. */ +export type ApiManagementServiceListByResourceGroupNextResponse = + ApiManagementServiceListResult; /** Optional parameters. */ -export interface ApiListByTagsNextOptionalParams +export interface ApiManagementServiceListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTagsNext operation. */ -export type ApiListByTagsNextResponse = TagResourceCollection; +/** Contains response data for the listNext operation. */ +export type ApiManagementServiceListNextResponse = + ApiManagementServiceListResult; /** Optional parameters. */ -export interface ApiRevisionListByServiceOptionalParams +export interface DiagnosticListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -7513,19 +10646,56 @@ export interface ApiRevisionListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type ApiRevisionListByServiceResponse = ApiRevisionCollection; +export type DiagnosticListByServiceResponse = DiagnosticCollection; /** Optional parameters. */ -export interface ApiRevisionListByServiceNextOptionalParams +export interface DiagnosticGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type DiagnosticGetEntityTagResponse = DiagnosticGetEntityTagHeaders; + +/** Optional parameters. */ +export interface DiagnosticGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DiagnosticGetResponse = DiagnosticGetHeaders & DiagnosticContract; + +/** Optional parameters. */ +export interface DiagnosticCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type DiagnosticCreateOrUpdateResponse = DiagnosticCreateOrUpdateHeaders & + DiagnosticContract; + +/** Optional parameters. */ +export interface DiagnosticUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type DiagnosticUpdateResponse = DiagnosticUpdateHeaders & + DiagnosticContract; + +/** Optional parameters. */ +export interface DiagnosticDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DiagnosticListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiRevisionListByServiceNextResponse = ApiRevisionCollection; +export type DiagnosticListByServiceNextResponse = DiagnosticCollection; /** Optional parameters. */ -export interface ApiReleaseListByServiceOptionalParams +export interface DocumentationListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| notes | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -7534,196 +10704,211 @@ export interface ApiReleaseListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type ApiReleaseListByServiceResponse = ApiReleaseCollection; +export type DocumentationListByServiceResponse = DocumentationCollection; /** Optional parameters. */ -export interface ApiReleaseGetEntityTagOptionalParams +export interface DocumentationGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiReleaseGetEntityTagResponse = ApiReleaseGetEntityTagHeaders; +export type DocumentationGetEntityTagResponse = + DocumentationGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiReleaseGetOptionalParams +export interface DocumentationGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiReleaseGetResponse = ApiReleaseGetHeaders & ApiReleaseContract; +export type DocumentationGetResponse = DocumentationGetHeaders & + DocumentationContract; /** Optional parameters. */ -export interface ApiReleaseCreateOrUpdateOptionalParams +export interface DocumentationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiReleaseCreateOrUpdateResponse = ApiReleaseCreateOrUpdateHeaders & - ApiReleaseContract; +export type DocumentationCreateOrUpdateResponse = + DocumentationCreateOrUpdateHeaders & DocumentationContract; /** Optional parameters. */ -export interface ApiReleaseUpdateOptionalParams +export interface DocumentationUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type ApiReleaseUpdateResponse = ApiReleaseUpdateHeaders & - ApiReleaseContract; +export type DocumentationUpdateResponse = DocumentationUpdateHeaders & + DocumentationContract; /** Optional parameters. */ -export interface ApiReleaseDeleteOptionalParams +export interface DocumentationDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiReleaseListByServiceNextOptionalParams +export interface DocumentationListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiReleaseListByServiceNextResponse = ApiReleaseCollection; +export type DocumentationListByServiceNextResponse = DocumentationCollection; /** Optional parameters. */ -export interface ApiOperationListByApiOptionalParams +export interface EmailTemplateListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** Include tags in the response. */ - tags?: string; } -/** Contains response data for the listByApi operation. */ -export type ApiOperationListByApiResponse = OperationCollection; +/** Contains response data for the listByService operation. */ +export type EmailTemplateListByServiceResponse = EmailTemplateCollection; /** Optional parameters. */ -export interface ApiOperationGetEntityTagOptionalParams +export interface EmailTemplateGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiOperationGetEntityTagResponse = ApiOperationGetEntityTagHeaders; +export type EmailTemplateGetEntityTagResponse = + EmailTemplateGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiOperationGetOptionalParams +export interface EmailTemplateGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiOperationGetResponse = ApiOperationGetHeaders & - OperationContract; +export type EmailTemplateGetResponse = EmailTemplateGetHeaders & + EmailTemplateContract; /** Optional parameters. */ -export interface ApiOperationCreateOrUpdateOptionalParams +export interface EmailTemplateCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiOperationCreateOrUpdateResponse = ApiOperationCreateOrUpdateHeaders & - OperationContract; +export type EmailTemplateCreateOrUpdateResponse = EmailTemplateContract; /** Optional parameters. */ -export interface ApiOperationUpdateOptionalParams +export interface EmailTemplateUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type ApiOperationUpdateResponse = ApiOperationUpdateHeaders & - OperationContract; +export type EmailTemplateUpdateResponse = EmailTemplateUpdateHeaders & + EmailTemplateContract; /** Optional parameters. */ -export interface ApiOperationDeleteOptionalParams +export interface EmailTemplateDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiOperationListByApiNextOptionalParams +export interface EmailTemplateListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByApiNext operation. */ -export type ApiOperationListByApiNextResponse = OperationCollection; +/** Contains response data for the listByServiceNext operation. */ +export type EmailTemplateListByServiceNextResponse = EmailTemplateCollection; /** Optional parameters. */ -export interface ApiOperationPolicyListByOperationOptionalParams - extends coreClient.OperationOptions {} +export interface GatewayListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| region | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} -/** Contains response data for the listByOperation operation. */ -export type ApiOperationPolicyListByOperationResponse = PolicyCollection; +/** Contains response data for the listByService operation. */ +export type GatewayListByServiceResponse = GatewayCollection; /** Optional parameters. */ -export interface ApiOperationPolicyGetEntityTagOptionalParams +export interface GatewayGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiOperationPolicyGetEntityTagResponse = ApiOperationPolicyGetEntityTagHeaders; +export type GatewayGetEntityTagResponse = GatewayGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiOperationPolicyGetOptionalParams - extends coreClient.OperationOptions { - /** Policy Export Format. */ - format?: PolicyExportFormat; -} +export interface GatewayGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiOperationPolicyGetResponse = ApiOperationPolicyGetHeaders & - PolicyContract; +export type GatewayGetResponse = GatewayGetHeaders & GatewayContract; /** Optional parameters. */ -export interface ApiOperationPolicyCreateOrUpdateOptionalParams +export interface GatewayCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiOperationPolicyCreateOrUpdateResponse = ApiOperationPolicyCreateOrUpdateHeaders & - PolicyContract; +export type GatewayCreateOrUpdateResponse = GatewayCreateOrUpdateHeaders & + GatewayContract; /** Optional parameters. */ -export interface ApiOperationPolicyDeleteOptionalParams +export interface GatewayUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the update operation. */ +export type GatewayUpdateResponse = GatewayUpdateHeaders & GatewayContract; + /** Optional parameters. */ -export interface TagListByOperationOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +export interface GatewayDeleteOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByOperation operation. */ -export type TagListByOperationResponse = TagCollection; +/** Optional parameters. */ +export interface GatewayListKeysOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listKeys operation. */ +export type GatewayListKeysResponse = GatewayListKeysHeaders & + GatewayKeysContract; /** Optional parameters. */ -export interface TagGetEntityStateByOperationOptionalParams +export interface GatewayRegenerateKeyOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityStateByOperation operation. */ -export type TagGetEntityStateByOperationResponse = TagGetEntityStateByOperationHeaders; +/** Optional parameters. */ +export interface GatewayGenerateTokenOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the generateToken operation. */ +export type GatewayGenerateTokenResponse = GatewayTokenContract; /** Optional parameters. */ -export interface TagGetByOperationOptionalParams +export interface GatewayInvalidateDebugCredentialsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByOperation operation. */ -export type TagGetByOperationResponse = TagGetByOperationHeaders & TagContract; +/** Optional parameters. */ +export interface GatewayListDebugCredentialsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listDebugCredentials operation. */ +export type GatewayListDebugCredentialsResponse = + GatewayDebugCredentialsContract; /** Optional parameters. */ -export interface TagAssignToOperationOptionalParams +export interface GatewayListTraceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the assignToOperation operation. */ -export type TagAssignToOperationResponse = TagContract; +/** Contains response data for the listTrace operation. */ +export type GatewayListTraceResponse = { [propertyName: string]: any }; /** Optional parameters. */ -export interface TagDetachFromOperationOptionalParams +export interface GatewayListByServiceNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByServiceNext operation. */ +export type GatewayListByServiceNextResponse = GatewayCollection; + /** Optional parameters. */ -export interface TagListByApiOptionalParams +export interface GatewayHostnameConfigurationListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| hostname | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -7731,38 +10916,54 @@ export interface TagListByApiOptionalParams skip?: number; } -/** Contains response data for the listByApi operation. */ -export type TagListByApiResponse = TagCollection; +/** Contains response data for the listByService operation. */ +export type GatewayHostnameConfigurationListByServiceResponse = + GatewayHostnameConfigurationCollection; /** Optional parameters. */ -export interface TagGetEntityStateByApiOptionalParams +export interface GatewayHostnameConfigurationGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityStateByApi operation. */ -export type TagGetEntityStateByApiResponse = TagGetEntityStateByApiHeaders; +/** Contains response data for the getEntityTag operation. */ +export type GatewayHostnameConfigurationGetEntityTagResponse = + GatewayHostnameConfigurationGetEntityTagHeaders; /** Optional parameters. */ -export interface TagGetByApiOptionalParams +export interface GatewayHostnameConfigurationGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByApi operation. */ -export type TagGetByApiResponse = TagGetByApiHeaders & TagContract; +/** Contains response data for the get operation. */ +export type GatewayHostnameConfigurationGetResponse = + GatewayHostnameConfigurationGetHeaders & GatewayHostnameConfigurationContract; /** Optional parameters. */ -export interface TagAssignToApiOptionalParams - extends coreClient.OperationOptions {} +export interface GatewayHostnameConfigurationCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} -/** Contains response data for the assignToApi operation. */ -export type TagAssignToApiResponse = TagAssignToApiHeaders & TagContract; +/** Contains response data for the createOrUpdate operation. */ +export type GatewayHostnameConfigurationCreateOrUpdateResponse = + GatewayHostnameConfigurationCreateOrUpdateHeaders & + GatewayHostnameConfigurationContract; /** Optional parameters. */ -export interface TagDetachFromApiOptionalParams +export interface GatewayHostnameConfigurationDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface TagListByProductOptionalParams +export interface GatewayHostnameConfigurationListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type GatewayHostnameConfigurationListByServiceNextResponse = + GatewayHostnameConfigurationCollection; + +/** Optional parameters. */ +export interface GatewayApiListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -7770,114 +10971,96 @@ export interface TagListByProductOptionalParams skip?: number; } -/** Contains response data for the listByProduct operation. */ -export type TagListByProductResponse = TagCollection; +/** Contains response data for the listByService operation. */ +export type GatewayApiListByServiceResponse = ApiCollection; /** Optional parameters. */ -export interface TagGetEntityStateByProductOptionalParams +export interface GatewayApiGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityStateByProduct operation. */ -export type TagGetEntityStateByProductResponse = TagGetEntityStateByProductHeaders; +/** Contains response data for the getEntityTag operation. */ +export type GatewayApiGetEntityTagResponse = GatewayApiGetEntityTagHeaders; /** Optional parameters. */ -export interface TagGetByProductOptionalParams - extends coreClient.OperationOptions {} +export interface GatewayApiCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Association entity details. */ + parameters?: AssociationContract; +} -/** Contains response data for the getByProduct operation. */ -export type TagGetByProductResponse = TagGetByProductHeaders & TagContract; +/** Contains response data for the createOrUpdate operation. */ +export type GatewayApiCreateOrUpdateResponse = ApiContract; /** Optional parameters. */ -export interface TagAssignToProductOptionalParams +export interface GatewayApiDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the assignToProduct operation. */ -export type TagAssignToProductResponse = TagContract; - /** Optional parameters. */ -export interface TagDetachFromProductOptionalParams +export interface GatewayApiListByServiceNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByServiceNext operation. */ +export type GatewayApiListByServiceNextResponse = ApiCollection; + /** Optional parameters. */ -export interface TagListByServiceOptionalParams +export interface GatewayCertificateAuthorityListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq, ne | |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** Scope like 'apis', 'products' or 'apis/{apiId} */ - scope?: string; } /** Contains response data for the listByService operation. */ -export type TagListByServiceResponse = TagCollection; +export type GatewayCertificateAuthorityListByServiceResponse = + GatewayCertificateAuthorityCollection; /** Optional parameters. */ -export interface TagGetEntityStateOptionalParams +export interface GatewayCertificateAuthorityGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityState operation. */ -export type TagGetEntityStateResponse = TagGetEntityStateHeaders; +/** Contains response data for the getEntityTag operation. */ +export type GatewayCertificateAuthorityGetEntityTagResponse = + GatewayCertificateAuthorityGetEntityTagHeaders; /** Optional parameters. */ -export interface TagGetOptionalParams extends coreClient.OperationOptions {} +export interface GatewayCertificateAuthorityGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type TagGetResponse = TagGetHeaders & TagContract; +export type GatewayCertificateAuthorityGetResponse = + GatewayCertificateAuthorityGetHeaders & GatewayCertificateAuthorityContract; /** Optional parameters. */ -export interface TagCreateOrUpdateOptionalParams +export interface GatewayCertificateAuthorityCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type TagCreateOrUpdateResponse = TagCreateOrUpdateHeaders & TagContract; - -/** Optional parameters. */ -export interface TagUpdateOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type TagUpdateResponse = TagUpdateHeaders & TagContract; - -/** Optional parameters. */ -export interface TagDeleteOptionalParams extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface TagListByOperationNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByOperationNext operation. */ -export type TagListByOperationNextResponse = TagCollection; - -/** Optional parameters. */ -export interface TagListByApiNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByApiNext operation. */ -export type TagListByApiNextResponse = TagCollection; +export type GatewayCertificateAuthorityCreateOrUpdateResponse = + GatewayCertificateAuthorityCreateOrUpdateHeaders & + GatewayCertificateAuthorityContract; /** Optional parameters. */ -export interface TagListByProductNextOptionalParams +export interface GatewayCertificateAuthorityDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByProductNext operation. */ -export type TagListByProductNextResponse = TagCollection; - /** Optional parameters. */ -export interface TagListByServiceNextOptionalParams +export interface GatewayCertificateAuthorityListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type TagListByServiceNextResponse = TagCollection; +export type GatewayCertificateAuthorityListByServiceNextResponse = + GatewayCertificateAuthorityCollection; /** Optional parameters. */ -export interface GraphQLApiResolverListByApiOptionalParams +export interface GroupListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| externalId | filter | eq | |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -7885,222 +11068,184 @@ export interface GraphQLApiResolverListByApiOptionalParams skip?: number; } -/** Contains response data for the listByApi operation. */ -export type GraphQLApiResolverListByApiResponse = ResolverCollection; +/** Contains response data for the listByService operation. */ +export type GroupListByServiceResponse = GroupCollection; /** Optional parameters. */ -export interface GraphQLApiResolverGetEntityTagOptionalParams +export interface GroupGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type GraphQLApiResolverGetEntityTagResponse = GraphQLApiResolverGetEntityTagHeaders; +export type GroupGetEntityTagResponse = GroupGetEntityTagHeaders; /** Optional parameters. */ -export interface GraphQLApiResolverGetOptionalParams - extends coreClient.OperationOptions {} +export interface GroupGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type GraphQLApiResolverGetResponse = GraphQLApiResolverGetHeaders & - ResolverContract; +export type GroupGetResponse = GroupGetHeaders & GroupContract; /** Optional parameters. */ -export interface GraphQLApiResolverCreateOrUpdateOptionalParams +export interface GroupCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type GraphQLApiResolverCreateOrUpdateResponse = GraphQLApiResolverCreateOrUpdateHeaders & - ResolverContract; +export type GroupCreateOrUpdateResponse = GroupCreateOrUpdateHeaders & + GroupContract; /** Optional parameters. */ -export interface GraphQLApiResolverUpdateOptionalParams +export interface GroupUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type GraphQLApiResolverUpdateResponse = GraphQLApiResolverUpdateHeaders & - ResolverContract; - -/** Optional parameters. */ -export interface GraphQLApiResolverDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface GraphQLApiResolverListByApiNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByApiNext operation. */ -export type GraphQLApiResolverListByApiNextResponse = ResolverCollection; +export type GroupUpdateResponse = GroupUpdateHeaders & GroupContract; /** Optional parameters. */ -export interface GraphQLApiResolverPolicyListByResolverOptionalParams +export interface GroupDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResolver operation. */ -export type GraphQLApiResolverPolicyListByResolverResponse = PolicyCollection; - /** Optional parameters. */ -export interface GraphQLApiResolverPolicyGetEntityTagOptionalParams +export interface GroupListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type GraphQLApiResolverPolicyGetEntityTagResponse = GraphQLApiResolverPolicyGetEntityTagHeaders; - -/** Optional parameters. */ -export interface GraphQLApiResolverPolicyGetOptionalParams - extends coreClient.OperationOptions { - /** Policy Export Format. */ - format?: PolicyExportFormat; -} - -/** Contains response data for the get operation. */ -export type GraphQLApiResolverPolicyGetResponse = GraphQLApiResolverPolicyGetHeaders & - PolicyContract; +/** Contains response data for the listByServiceNext operation. */ +export type GroupListByServiceNextResponse = GroupCollection; /** Optional parameters. */ -export interface GraphQLApiResolverPolicyCreateOrUpdateOptionalParams +export interface GroupUserListOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| firstName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| lastName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| email | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| registrationDate | filter | ge, le, eq, ne, gt, lt | |
| note | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the createOrUpdate operation. */ -export type GraphQLApiResolverPolicyCreateOrUpdateResponse = GraphQLApiResolverPolicyCreateOrUpdateHeaders & - PolicyContract; +/** Contains response data for the list operation. */ +export type GroupUserListResponse = UserCollection; /** Optional parameters. */ -export interface GraphQLApiResolverPolicyDeleteOptionalParams +export interface GroupUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the checkEntityExists operation. */ +export type GroupUserCheckEntityExistsResponse = { + body: boolean; +}; + /** Optional parameters. */ -export interface GraphQLApiResolverPolicyListByResolverNextOptionalParams +export interface GroupUserCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResolverNext operation. */ -export type GraphQLApiResolverPolicyListByResolverNextResponse = PolicyCollection; +/** Contains response data for the create operation. */ +export type GroupUserCreateResponse = UserContract; /** Optional parameters. */ -export interface ApiProductListByApisOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} - -/** Contains response data for the listByApis operation. */ -export type ApiProductListByApisResponse = ProductCollection; +export interface GroupUserDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiProductListByApisNextOptionalParams +export interface GroupUserListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByApisNext operation. */ -export type ApiProductListByApisNextResponse = ProductCollection; +/** Contains response data for the listNext operation. */ +export type GroupUserListNextResponse = UserCollection; /** Optional parameters. */ -export interface ApiPolicyListByApiOptionalParams +export interface IdentityProviderListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByApi operation. */ -export type ApiPolicyListByApiResponse = PolicyCollection; +/** Contains response data for the listByService operation. */ +export type IdentityProviderListByServiceResponse = IdentityProviderList; /** Optional parameters. */ -export interface ApiPolicyGetEntityTagOptionalParams +export interface IdentityProviderGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiPolicyGetEntityTagResponse = ApiPolicyGetEntityTagHeaders; +export type IdentityProviderGetEntityTagResponse = + IdentityProviderGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiPolicyGetOptionalParams - extends coreClient.OperationOptions { - /** Policy Export Format. */ - format?: PolicyExportFormat; -} +export interface IdentityProviderGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiPolicyGetResponse = ApiPolicyGetHeaders & PolicyContract; +export type IdentityProviderGetResponse = IdentityProviderGetHeaders & + IdentityProviderContract; /** Optional parameters. */ -export interface ApiPolicyCreateOrUpdateOptionalParams +export interface IdentityProviderCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiPolicyCreateOrUpdateResponse = ApiPolicyCreateOrUpdateHeaders & - PolicyContract; +export type IdentityProviderCreateOrUpdateResponse = + IdentityProviderCreateOrUpdateHeaders & IdentityProviderContract; /** Optional parameters. */ -export interface ApiPolicyDeleteOptionalParams +export interface IdentityProviderUpdateOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface ApiSchemaListByApiOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| contentType | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +/** Contains response data for the update operation. */ +export type IdentityProviderUpdateResponse = IdentityProviderUpdateHeaders & + IdentityProviderContract; -/** Contains response data for the listByApi operation. */ -export type ApiSchemaListByApiResponse = SchemaCollection; +/** Optional parameters. */ +export interface IdentityProviderDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiSchemaGetEntityTagOptionalParams +export interface IdentityProviderListSecretsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type ApiSchemaGetEntityTagResponse = ApiSchemaGetEntityTagHeaders; +/** Contains response data for the listSecrets operation. */ +export type IdentityProviderListSecretsResponse = + IdentityProviderListSecretsHeaders & ClientSecretContract; /** Optional parameters. */ -export interface ApiSchemaGetOptionalParams +export interface IdentityProviderListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ApiSchemaGetResponse = ApiSchemaGetHeaders & SchemaContract; +/** Contains response data for the listByServiceNext operation. */ +export type IdentityProviderListByServiceNextResponse = IdentityProviderList; /** Optional parameters. */ -export interface ApiSchemaCreateOrUpdateOptionalParams +export interface IssueListByServiceOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| title | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| authorName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the createOrUpdate operation. */ -export type ApiSchemaCreateOrUpdateResponse = ApiSchemaCreateOrUpdateHeaders & - SchemaContract; +/** Contains response data for the listByService operation. */ +export type IssueListByServiceResponse = IssueCollection; /** Optional parameters. */ -export interface ApiSchemaDeleteOptionalParams - extends coreClient.OperationOptions { - /** If true removes all references to the schema before deleting it. */ - force?: boolean; -} +export interface IssueGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type IssueGetResponse = IssueGetHeaders & IssueContract; /** Optional parameters. */ -export interface ApiSchemaListByApiNextOptionalParams +export interface IssueListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByApiNext operation. */ -export type ApiSchemaListByApiNextResponse = SchemaCollection; +/** Contains response data for the listByServiceNext operation. */ +export type IssueListByServiceNextResponse = IssueCollection; /** Optional parameters. */ -export interface ApiDiagnosticListByServiceOptionalParams +export interface LoggerListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| loggerType | filter | eq | |
| resourceId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -8109,119 +11254,158 @@ export interface ApiDiagnosticListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type ApiDiagnosticListByServiceResponse = DiagnosticCollection; +export type LoggerListByServiceResponse = LoggerCollection; /** Optional parameters. */ -export interface ApiDiagnosticGetEntityTagOptionalParams +export interface LoggerGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiDiagnosticGetEntityTagResponse = ApiDiagnosticGetEntityTagHeaders; +export type LoggerGetEntityTagResponse = LoggerGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiDiagnosticGetOptionalParams - extends coreClient.OperationOptions {} +export interface LoggerGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiDiagnosticGetResponse = ApiDiagnosticGetHeaders & - DiagnosticContract; +export type LoggerGetResponse = LoggerGetHeaders & LoggerContract; /** Optional parameters. */ -export interface ApiDiagnosticCreateOrUpdateOptionalParams +export interface LoggerCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiDiagnosticCreateOrUpdateResponse = ApiDiagnosticCreateOrUpdateHeaders & - DiagnosticContract; +export type LoggerCreateOrUpdateResponse = LoggerCreateOrUpdateHeaders & + LoggerContract; /** Optional parameters. */ -export interface ApiDiagnosticUpdateOptionalParams +export interface LoggerUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type ApiDiagnosticUpdateResponse = ApiDiagnosticUpdateHeaders & - DiagnosticContract; +export type LoggerUpdateResponse = LoggerUpdateHeaders & LoggerContract; /** Optional parameters. */ -export interface ApiDiagnosticDeleteOptionalParams +export interface LoggerDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiDiagnosticListByServiceNextOptionalParams +export interface LoggerListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiDiagnosticListByServiceNextResponse = DiagnosticCollection; +export type LoggerListByServiceNextResponse = LoggerCollection; /** Optional parameters. */ -export interface ApiIssueListByServiceOptionalParams +export interface NamedValueListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| tags | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith, any, all |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** Expand the comment attachments. */ - expandCommentsAttachments?: boolean; + /** When set to true, the response contains only named value entities which failed refresh. */ + isKeyVaultRefreshFailed?: boolean; } /** Contains response data for the listByService operation. */ -export type ApiIssueListByServiceResponse = IssueCollection; +export type NamedValueListByServiceResponse = NamedValueCollection; /** Optional parameters. */ -export interface ApiIssueGetEntityTagOptionalParams +export interface NamedValueGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiIssueGetEntityTagResponse = ApiIssueGetEntityTagHeaders; +export type NamedValueGetEntityTagResponse = NamedValueGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiIssueGetOptionalParams extends coreClient.OperationOptions { - /** Expand the comment attachments. */ - expandCommentsAttachments?: boolean; -} +export interface NamedValueGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiIssueGetResponse = ApiIssueGetHeaders & IssueContract; +export type NamedValueGetResponse = NamedValueGetHeaders & NamedValueContract; /** Optional parameters. */ -export interface ApiIssueCreateOrUpdateOptionalParams +export interface NamedValueCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiIssueCreateOrUpdateResponse = ApiIssueCreateOrUpdateHeaders & - IssueContract; +export type NamedValueCreateOrUpdateResponse = NamedValueCreateOrUpdateHeaders & + NamedValueContract; /** Optional parameters. */ -export interface ApiIssueUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface NamedValueUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the update operation. */ -export type ApiIssueUpdateResponse = ApiIssueUpdateHeaders & IssueContract; +export type NamedValueUpdateResponse = NamedValueUpdateHeaders & + NamedValueContract; /** Optional parameters. */ -export interface ApiIssueDeleteOptionalParams +export interface NamedValueDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiIssueListByServiceNextOptionalParams +export interface NamedValueListValueOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listValue operation. */ +export type NamedValueListValueResponse = NamedValueListValueHeaders & + NamedValueSecretContract; + +/** Optional parameters. */ +export interface NamedValueRefreshSecretOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the refreshSecret operation. */ +export type NamedValueRefreshSecretResponse = NamedValueRefreshSecretHeaders & + NamedValueContract; + +/** Optional parameters. */ +export interface NamedValueListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiIssueListByServiceNextResponse = IssueCollection; +export type NamedValueListByServiceNextResponse = NamedValueCollection; /** Optional parameters. */ -export interface ApiIssueCommentListByServiceOptionalParams +export interface NetworkStatusListByServiceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByService operation. */ +export type NetworkStatusListByServiceResponse = + NetworkStatusContractByLocation[]; + +/** Optional parameters. */ +export interface NetworkStatusListByLocationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByLocation operation. */ +export type NetworkStatusListByLocationResponse = NetworkStatusContract; + +/** Optional parameters. */ +export interface NotificationListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ @@ -8229,100 +11413,94 @@ export interface ApiIssueCommentListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type ApiIssueCommentListByServiceResponse = IssueCommentCollection; - -/** Optional parameters. */ -export interface ApiIssueCommentGetEntityTagOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getEntityTag operation. */ -export type ApiIssueCommentGetEntityTagResponse = ApiIssueCommentGetEntityTagHeaders; +export type NotificationListByServiceResponse = NotificationCollection; /** Optional parameters. */ -export interface ApiIssueCommentGetOptionalParams +export interface NotificationGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiIssueCommentGetResponse = ApiIssueCommentGetHeaders & - IssueCommentContract; +export type NotificationGetResponse = NotificationContract; /** Optional parameters. */ -export interface ApiIssueCommentCreateOrUpdateOptionalParams +export interface NotificationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiIssueCommentCreateOrUpdateResponse = ApiIssueCommentCreateOrUpdateHeaders & - IssueCommentContract; +export type NotificationCreateOrUpdateResponse = NotificationContract; /** Optional parameters. */ -export interface ApiIssueCommentDeleteOptionalParams +export interface NotificationListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type NotificationListByServiceNextResponse = NotificationCollection; + +/** Optional parameters. */ +export interface NotificationRecipientUserListByNotificationOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByNotification operation. */ +export type NotificationRecipientUserListByNotificationResponse = + RecipientUserCollection; + /** Optional parameters. */ -export interface ApiIssueCommentListByServiceNextOptionalParams +export interface NotificationRecipientUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ApiIssueCommentListByServiceNextResponse = IssueCommentCollection; +/** Contains response data for the checkEntityExists operation. */ +export type NotificationRecipientUserCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface ApiIssueAttachmentListByServiceOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +export interface NotificationRecipientUserCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type ApiIssueAttachmentListByServiceResponse = IssueAttachmentCollection; +/** Contains response data for the createOrUpdate operation. */ +export type NotificationRecipientUserCreateOrUpdateResponse = + RecipientUserContract; /** Optional parameters. */ -export interface ApiIssueAttachmentGetEntityTagOptionalParams +export interface NotificationRecipientUserDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type ApiIssueAttachmentGetEntityTagResponse = ApiIssueAttachmentGetEntityTagHeaders; - /** Optional parameters. */ -export interface ApiIssueAttachmentGetOptionalParams +export interface NotificationRecipientEmailListByNotificationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ApiIssueAttachmentGetResponse = ApiIssueAttachmentGetHeaders & - IssueAttachmentContract; +/** Contains response data for the listByNotification operation. */ +export type NotificationRecipientEmailListByNotificationResponse = + RecipientEmailCollection; /** Optional parameters. */ -export interface ApiIssueAttachmentCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface NotificationRecipientEmailCheckEntityExistsOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ApiIssueAttachmentCreateOrUpdateResponse = ApiIssueAttachmentCreateOrUpdateHeaders & - IssueAttachmentContract; +/** Contains response data for the checkEntityExists operation. */ +export type NotificationRecipientEmailCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface ApiIssueAttachmentDeleteOptionalParams +export interface NotificationRecipientEmailCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type NotificationRecipientEmailCreateOrUpdateResponse = + RecipientEmailContract; + /** Optional parameters. */ -export interface ApiIssueAttachmentListByServiceNextOptionalParams +export interface NotificationRecipientEmailDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ApiIssueAttachmentListByServiceNextResponse = IssueAttachmentCollection; - /** Optional parameters. */ -export interface ApiTagDescriptionListByServiceOptionalParams +export interface OpenIdConnectProviderListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -8331,305 +11509,327 @@ export interface ApiTagDescriptionListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type ApiTagDescriptionListByServiceResponse = TagDescriptionCollection; +export type OpenIdConnectProviderListByServiceResponse = + OpenIdConnectProviderCollection; /** Optional parameters. */ -export interface ApiTagDescriptionGetEntityTagOptionalParams +export interface OpenIdConnectProviderGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiTagDescriptionGetEntityTagResponse = ApiTagDescriptionGetEntityTagHeaders; +export type OpenIdConnectProviderGetEntityTagResponse = + OpenIdConnectProviderGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiTagDescriptionGetOptionalParams +export interface OpenIdConnectProviderGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiTagDescriptionGetResponse = ApiTagDescriptionGetHeaders & - TagDescriptionContract; +export type OpenIdConnectProviderGetResponse = OpenIdConnectProviderGetHeaders & + OpenidConnectProviderContract; /** Optional parameters. */ -export interface ApiTagDescriptionCreateOrUpdateOptionalParams +export interface OpenIdConnectProviderCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiTagDescriptionCreateOrUpdateResponse = ApiTagDescriptionCreateOrUpdateHeaders & - TagDescriptionContract; +export type OpenIdConnectProviderCreateOrUpdateResponse = + OpenIdConnectProviderCreateOrUpdateHeaders & OpenidConnectProviderContract; /** Optional parameters. */ -export interface ApiTagDescriptionDeleteOptionalParams +export interface OpenIdConnectProviderUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type OpenIdConnectProviderUpdateResponse = + OpenIdConnectProviderUpdateHeaders & OpenidConnectProviderContract; + +/** Optional parameters. */ +export interface OpenIdConnectProviderDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiTagDescriptionListByServiceNextOptionalParams +export interface OpenIdConnectProviderListSecretsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSecrets operation. */ +export type OpenIdConnectProviderListSecretsResponse = + OpenIdConnectProviderListSecretsHeaders & ClientSecretContract; + +/** Optional parameters. */ +export interface OpenIdConnectProviderListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiTagDescriptionListByServiceNextResponse = TagDescriptionCollection; +export type OpenIdConnectProviderListByServiceNextResponse = + OpenIdConnectProviderCollection; /** Optional parameters. */ -export interface OperationListByTagsOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** Include not tagged Operations. */ - includeNotTaggedOperations?: boolean; -} +export interface OutboundNetworkDependenciesEndpointsListByServiceOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByTags operation. */ -export type OperationListByTagsResponse = TagResourceCollection; +/** Contains response data for the listByService operation. */ +export type OutboundNetworkDependenciesEndpointsListByServiceResponse = + OutboundEnvironmentEndpointList; /** Optional parameters. */ -export interface OperationListByTagsNextOptionalParams +export interface PolicyListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTagsNext operation. */ -export type OperationListByTagsNextResponse = TagResourceCollection; +/** Contains response data for the listByService operation. */ +export type PolicyListByServiceResponse = PolicyCollection; /** Optional parameters. */ -export interface ApiWikiGetEntityTagOptionalParams +export interface PolicyGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiWikiGetEntityTagResponse = ApiWikiGetEntityTagHeaders; +export type PolicyGetEntityTagResponse = PolicyGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiWikiGetOptionalParams extends coreClient.OperationOptions {} +export interface PolicyGetOptionalParams extends coreClient.OperationOptions { + /** Policy Export Format. */ + format?: PolicyExportFormat; +} /** Contains response data for the get operation. */ -export type ApiWikiGetResponse = ApiWikiGetHeaders & WikiContract; +export type PolicyGetResponse = PolicyGetHeaders & PolicyContract; /** Optional parameters. */ -export interface ApiWikiCreateOrUpdateOptionalParams +export interface PolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiWikiCreateOrUpdateResponse = ApiWikiCreateOrUpdateHeaders & - WikiContract; +export type PolicyCreateOrUpdateResponse = PolicyCreateOrUpdateHeaders & + PolicyContract; /** Optional parameters. */ -export interface ApiWikiUpdateOptionalParams +export interface PolicyDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ApiWikiUpdateResponse = ApiWikiUpdateHeaders & WikiContract; - /** Optional parameters. */ -export interface ApiWikiDeleteOptionalParams +export interface PolicyListByServiceNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByServiceNext operation. */ +export type PolicyListByServiceNextResponse = PolicyCollection; + /** Optional parameters. */ -export interface ApiWikisListOptionalParams +export interface PolicyDescriptionListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; + /** Policy scope. */ + scope?: PolicyScopeContract; } -/** Contains response data for the list operation. */ -export type ApiWikisListResponse = WikiCollection; - -/** Optional parameters. */ -export interface ApiWikisListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ApiWikisListNextResponse = WikiCollection; - -/** Optional parameters. */ -export interface ApiExportGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ApiExportGetResponse = ApiExportResult; +/** Contains response data for the listByService operation. */ +export type PolicyDescriptionListByServiceResponse = + PolicyDescriptionCollection; /** Optional parameters. */ -export interface ApiVersionSetListByServiceOptionalParams +export interface PolicyFragmentListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter, orderBy | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| value | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; + /** OData order by query option. */ + orderby?: string; } /** Contains response data for the listByService operation. */ -export type ApiVersionSetListByServiceResponse = ApiVersionSetCollection; +export type PolicyFragmentListByServiceResponse = PolicyFragmentCollection; /** Optional parameters. */ -export interface ApiVersionSetGetEntityTagOptionalParams +export interface PolicyFragmentGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiVersionSetGetEntityTagResponse = ApiVersionSetGetEntityTagHeaders; +export type PolicyFragmentGetEntityTagResponse = + PolicyFragmentGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiVersionSetGetOptionalParams - extends coreClient.OperationOptions {} +export interface PolicyFragmentGetOptionalParams + extends coreClient.OperationOptions { + /** Policy fragment content format. */ + format?: PolicyFragmentContentFormat; +} /** Contains response data for the get operation. */ -export type ApiVersionSetGetResponse = ApiVersionSetGetHeaders & - ApiVersionSetContract; +export type PolicyFragmentGetResponse = PolicyFragmentGetHeaders & + PolicyFragmentContract; /** Optional parameters. */ -export interface ApiVersionSetCreateOrUpdateOptionalParams +export interface PolicyFragmentCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiVersionSetCreateOrUpdateResponse = ApiVersionSetCreateOrUpdateHeaders & - ApiVersionSetContract; +export type PolicyFragmentCreateOrUpdateResponse = + PolicyFragmentCreateOrUpdateHeaders & PolicyFragmentContract; /** Optional parameters. */ -export interface ApiVersionSetUpdateOptionalParams +export interface PolicyFragmentDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ApiVersionSetUpdateResponse = ApiVersionSetUpdateHeaders & - ApiVersionSetContract; - /** Optional parameters. */ -export interface ApiVersionSetDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface PolicyFragmentListReferencesOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listReferences operation. */ +export type PolicyFragmentListReferencesResponse = ResourceCollection; /** Optional parameters. */ -export interface ApiVersionSetListByServiceNextOptionalParams +export interface PolicyFragmentListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiVersionSetListByServiceNextResponse = ApiVersionSetCollection; +export type PolicyFragmentListByServiceNextResponse = PolicyFragmentCollection; /** Optional parameters. */ -export interface AuthorizationServerListByServiceOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +export interface PolicyRestrictionListByServiceOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByService operation. */ -export type AuthorizationServerListByServiceResponse = AuthorizationServerCollection; +export type PolicyRestrictionListByServiceResponse = + PolicyRestrictionCollection; /** Optional parameters. */ -export interface AuthorizationServerGetEntityTagOptionalParams +export interface PolicyRestrictionGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type AuthorizationServerGetEntityTagResponse = AuthorizationServerGetEntityTagHeaders; +export type PolicyRestrictionGetEntityTagResponse = + PolicyRestrictionGetEntityTagHeaders; /** Optional parameters. */ -export interface AuthorizationServerGetOptionalParams +export interface PolicyRestrictionGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AuthorizationServerGetResponse = AuthorizationServerGetHeaders & - AuthorizationServerContract; +export type PolicyRestrictionGetResponse = PolicyRestrictionGetHeaders & + PolicyRestrictionContract; /** Optional parameters. */ -export interface AuthorizationServerCreateOrUpdateOptionalParams +export interface PolicyRestrictionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type AuthorizationServerCreateOrUpdateResponse = AuthorizationServerCreateOrUpdateHeaders & - AuthorizationServerContract; +export type PolicyRestrictionCreateOrUpdateResponse = + PolicyRestrictionCreateOrUpdateHeaders & PolicyRestrictionContract; /** Optional parameters. */ -export interface AuthorizationServerUpdateOptionalParams +export interface PolicyRestrictionUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type AuthorizationServerUpdateResponse = AuthorizationServerUpdateHeaders & - AuthorizationServerContract; +export type PolicyRestrictionUpdateResponse = PolicyRestrictionUpdateHeaders & + PolicyRestrictionContract; /** Optional parameters. */ -export interface AuthorizationServerDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface PolicyRestrictionDeleteOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} /** Optional parameters. */ -export interface AuthorizationServerListSecretsOptionalParams +export interface PolicyRestrictionListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSecrets operation. */ -export type AuthorizationServerListSecretsResponse = AuthorizationServerListSecretsHeaders & - AuthorizationServerSecretsContract; +/** Contains response data for the listByServiceNext operation. */ +export type PolicyRestrictionListByServiceNextResponse = + PolicyRestrictionCollection; /** Optional parameters. */ -export interface AuthorizationServerListByServiceNextOptionalParams +export interface PolicyRestrictionValidationsByServiceOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the byService operation. */ +export type PolicyRestrictionValidationsByServiceResponse = + OperationResultContract; + +/** Optional parameters. */ +export interface PortalConfigListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type AuthorizationServerListByServiceNextResponse = AuthorizationServerCollection; +/** Contains response data for the listByService operation. */ +export type PortalConfigListByServiceResponse = PortalConfigCollection; /** Optional parameters. */ -export interface AuthorizationProviderListByServiceOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +export interface PortalConfigGetEntityTagOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type AuthorizationProviderListByServiceResponse = AuthorizationProviderCollection; +/** Contains response data for the getEntityTag operation. */ +export type PortalConfigGetEntityTagResponse = PortalConfigGetEntityTagHeaders; /** Optional parameters. */ -export interface AuthorizationProviderGetOptionalParams +export interface PortalConfigGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AuthorizationProviderGetResponse = AuthorizationProviderGetHeaders & - AuthorizationProviderContract; +export type PortalConfigGetResponse = PortalConfigGetHeaders & + PortalConfigContract; /** Optional parameters. */ -export interface AuthorizationProviderCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface PortalConfigUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type AuthorizationProviderCreateOrUpdateResponse = AuthorizationProviderCreateOrUpdateHeaders & - AuthorizationProviderContract; +/** Contains response data for the update operation. */ +export type PortalConfigUpdateResponse = PortalConfigContract; /** Optional parameters. */ -export interface AuthorizationProviderDeleteOptionalParams +export interface PortalConfigCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type PortalConfigCreateOrUpdateResponse = PortalConfigContract; + /** Optional parameters. */ -export interface AuthorizationProviderListByServiceNextOptionalParams +export interface PortalConfigListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type AuthorizationProviderListByServiceNextResponse = AuthorizationProviderCollection; +export type PortalConfigListByServiceNextResponse = PortalConfigCollection; /** Optional parameters. */ -export interface AuthorizationListByAuthorizationProviderOptionalParams +export interface PortalRevisionListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** + * | Field | Supported operators | Supported functions | + * |-------------|------------------------|-----------------------------------| + * + * |name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith| + * |description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith| + * |isCurrent | eq, ne | | + * + */ filter?: string; /** Number of records to return. */ top?: number; @@ -8637,761 +11837,795 @@ export interface AuthorizationListByAuthorizationProviderOptionalParams skip?: number; } -/** Contains response data for the listByAuthorizationProvider operation. */ -export type AuthorizationListByAuthorizationProviderResponse = AuthorizationCollection; +/** Contains response data for the listByService operation. */ +export type PortalRevisionListByServiceResponse = PortalRevisionCollection; /** Optional parameters. */ -export interface AuthorizationGetOptionalParams +export interface PortalRevisionGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type PortalRevisionGetEntityTagResponse = + PortalRevisionGetEntityTagHeaders; + +/** Optional parameters. */ +export interface PortalRevisionGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AuthorizationGetResponse = AuthorizationGetHeaders & - AuthorizationContract; +export type PortalRevisionGetResponse = PortalRevisionGetHeaders & + PortalRevisionContract; /** Optional parameters. */ -export interface AuthorizationCreateOrUpdateOptionalParams +export interface PortalRevisionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ -export type AuthorizationCreateOrUpdateResponse = AuthorizationCreateOrUpdateHeaders & - AuthorizationContract; +export type PortalRevisionCreateOrUpdateResponse = + PortalRevisionCreateOrUpdateHeaders & PortalRevisionContract; /** Optional parameters. */ -export interface AuthorizationDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface PortalRevisionUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type PortalRevisionUpdateResponse = PortalRevisionUpdateHeaders & + PortalRevisionContract; /** Optional parameters. */ -export interface AuthorizationConfirmConsentCodeOptionalParams +export interface PortalRevisionListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the confirmConsentCode operation. */ -export type AuthorizationConfirmConsentCodeResponse = AuthorizationConfirmConsentCodeHeaders; +/** Contains response data for the listByServiceNext operation. */ +export type PortalRevisionListByServiceNextResponse = PortalRevisionCollection; /** Optional parameters. */ -export interface AuthorizationListByAuthorizationProviderNextOptionalParams +export interface PortalSettingsListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAuthorizationProviderNext operation. */ -export type AuthorizationListByAuthorizationProviderNextResponse = AuthorizationCollection; +/** Contains response data for the listByService operation. */ +export type PortalSettingsListByServiceResponse = PortalSettingsCollection; /** Optional parameters. */ -export interface AuthorizationLoginLinksPostOptionalParams +export interface SignInSettingsGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the post operation. */ -export type AuthorizationLoginLinksPostResponse = AuthorizationLoginLinksPostHeaders & - AuthorizationLoginResponseContract; +/** Contains response data for the getEntityTag operation. */ +export type SignInSettingsGetEntityTagResponse = + SignInSettingsGetEntityTagHeaders; /** Optional parameters. */ -export interface AuthorizationAccessPolicyListByAuthorizationOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +export interface SignInSettingsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByAuthorization operation. */ -export type AuthorizationAccessPolicyListByAuthorizationResponse = AuthorizationAccessPolicyCollection; +/** Contains response data for the get operation. */ +export type SignInSettingsGetResponse = SignInSettingsGetHeaders & + PortalSigninSettings; /** Optional parameters. */ -export interface AuthorizationAccessPolicyGetOptionalParams +export interface SignInSettingsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type AuthorizationAccessPolicyGetResponse = AuthorizationAccessPolicyGetHeaders & - AuthorizationAccessPolicyContract; - /** Optional parameters. */ -export interface AuthorizationAccessPolicyCreateOrUpdateOptionalParams +export interface SignInSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type AuthorizationAccessPolicyCreateOrUpdateResponse = AuthorizationAccessPolicyCreateOrUpdateHeaders & - AuthorizationAccessPolicyContract; +export type SignInSettingsCreateOrUpdateResponse = PortalSigninSettings; /** Optional parameters. */ -export interface AuthorizationAccessPolicyDeleteOptionalParams +export interface SignUpSettingsGetEntityTagOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the getEntityTag operation. */ +export type SignUpSettingsGetEntityTagResponse = + SignUpSettingsGetEntityTagHeaders; + /** Optional parameters. */ -export interface AuthorizationAccessPolicyListByAuthorizationNextOptionalParams +export interface SignUpSettingsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAuthorizationNext operation. */ -export type AuthorizationAccessPolicyListByAuthorizationNextResponse = AuthorizationAccessPolicyCollection; +/** Contains response data for the get operation. */ +export type SignUpSettingsGetResponse = SignUpSettingsGetHeaders & + PortalSignupSettings; /** Optional parameters. */ -export interface BackendListByServiceOptionalParams +export interface SignUpSettingsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface SignUpSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| title | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| url | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; } -/** Contains response data for the listByService operation. */ -export type BackendListByServiceResponse = BackendCollection; +/** Contains response data for the createOrUpdate operation. */ +export type SignUpSettingsCreateOrUpdateResponse = PortalSignupSettings; /** Optional parameters. */ -export interface BackendGetEntityTagOptionalParams +export interface DelegationSettingsGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type BackendGetEntityTagResponse = BackendGetEntityTagHeaders; +export type DelegationSettingsGetEntityTagResponse = + DelegationSettingsGetEntityTagHeaders; /** Optional parameters. */ -export interface BackendGetOptionalParams extends coreClient.OperationOptions {} +export interface DelegationSettingsGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type BackendGetResponse = BackendGetHeaders & BackendContract; +export type DelegationSettingsGetResponse = DelegationSettingsGetHeaders & + PortalDelegationSettings; /** Optional parameters. */ -export interface BackendCreateOrUpdateOptionalParams +export interface DelegationSettingsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DelegationSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type BackendCreateOrUpdateResponse = BackendCreateOrUpdateHeaders & - BackendContract; +export type DelegationSettingsCreateOrUpdateResponse = PortalDelegationSettings; /** Optional parameters. */ -export interface BackendUpdateOptionalParams +export interface DelegationSettingsListSecretsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type BackendUpdateResponse = BackendUpdateHeaders & BackendContract; +/** Contains response data for the listSecrets operation. */ +export type DelegationSettingsListSecretsResponse = + PortalSettingValidationKeyContract; /** Optional parameters. */ -export interface BackendDeleteOptionalParams +export interface PrivateEndpointConnectionListByServiceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByService operation. */ +export type PrivateEndpointConnectionListByServiceResponse = + PrivateEndpointConnectionListResult; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionGetByNameOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the getByName operation. */ +export type PrivateEndpointConnectionGetByNameResponse = + PrivateEndpointConnection; + /** Optional parameters. */ -export interface BackendReconnectOptionalParams +export interface PrivateEndpointConnectionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Reconnect request parameters. */ - parameters?: BackendReconnectContract; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } +/** Contains response data for the createOrUpdate operation. */ +export type PrivateEndpointConnectionCreateOrUpdateResponse = + PrivateEndpointConnection; + /** Optional parameters. */ -export interface BackendListByServiceNextOptionalParams +export interface PrivateEndpointConnectionDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type BackendListByServiceNextResponse = BackendCollection; +/** Contains response data for the listPrivateLinkResources operation. */ +export type PrivateEndpointConnectionListPrivateLinkResourcesResponse = + PrivateLinkResourceListResult; /** Optional parameters. */ -export interface CacheListByServiceOptionalParams +export interface PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getPrivateLinkResource operation. */ +export type PrivateEndpointConnectionGetPrivateLinkResourceResponse = + PrivateLinkResource; + +/** Optional parameters. */ +export interface ProductListByServiceOptionalParams extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| groups | expand | | |
*/ + filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; + /** Products which are part of a specific tag. */ + tags?: string; + /** When set to true, the response contains an array of groups that have visibility to the product. The default is false. */ + expandGroups?: boolean; } /** Contains response data for the listByService operation. */ -export type CacheListByServiceResponse = CacheCollection; +export type ProductListByServiceResponse = ProductCollection; /** Optional parameters. */ -export interface CacheGetEntityTagOptionalParams +export interface ProductGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type CacheGetEntityTagResponse = CacheGetEntityTagHeaders; +export type ProductGetEntityTagResponse = ProductGetEntityTagHeaders; /** Optional parameters. */ -export interface CacheGetOptionalParams extends coreClient.OperationOptions {} +export interface ProductGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type CacheGetResponse = CacheGetHeaders & CacheContract; +export type ProductGetResponse = ProductGetHeaders & ProductContract; /** Optional parameters. */ -export interface CacheCreateOrUpdateOptionalParams +export interface ProductCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type CacheCreateOrUpdateResponse = CacheCreateOrUpdateHeaders & - CacheContract; +export type ProductCreateOrUpdateResponse = ProductCreateOrUpdateHeaders & + ProductContract; /** Optional parameters. */ -export interface CacheUpdateOptionalParams +export interface ProductUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type CacheUpdateResponse = CacheUpdateHeaders & CacheContract; - -/** Optional parameters. */ -export interface CacheDeleteOptionalParams - extends coreClient.OperationOptions {} +export type ProductUpdateResponse = ProductUpdateHeaders & ProductContract; /** Optional parameters. */ -export interface CacheListByServiceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServiceNext operation. */ -export type CacheListByServiceNextResponse = CacheCollection; +export interface ProductDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delete existing subscriptions associated with the product or not. */ + deleteSubscriptions?: boolean; +} /** Optional parameters. */ -export interface CertificateListByServiceOptionalParams +export interface ProductListByTagsOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| subject | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| thumbprint | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| expirationDate | filter | ge, le, eq, ne, gt, lt | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** When set to true, the response contains only certificates entities which failed refresh. */ - isKeyVaultRefreshFailed?: boolean; + /** Include not tagged Products. */ + includeNotTaggedProducts?: boolean; } -/** Contains response data for the listByService operation. */ -export type CertificateListByServiceResponse = CertificateCollection; +/** Contains response data for the listByTags operation. */ +export type ProductListByTagsResponse = TagResourceCollection; /** Optional parameters. */ -export interface CertificateGetEntityTagOptionalParams +export interface ProductListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type CertificateGetEntityTagResponse = CertificateGetEntityTagHeaders; +/** Contains response data for the listByServiceNext operation. */ +export type ProductListByServiceNextResponse = ProductCollection; /** Optional parameters. */ -export interface CertificateGetOptionalParams +export interface ProductListByTagsNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type CertificateGetResponse = CertificateGetHeaders & - CertificateContract; +/** Contains response data for the listByTagsNext operation. */ +export type ProductListByTagsNextResponse = TagResourceCollection; /** Optional parameters. */ -export interface CertificateCreateOrUpdateOptionalParams +export interface ProductApiListByProductOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the createOrUpdate operation. */ -export type CertificateCreateOrUpdateResponse = CertificateCreateOrUpdateHeaders & - CertificateContract; - -/** Optional parameters. */ -export interface CertificateDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByProduct operation. */ +export type ProductApiListByProductResponse = ApiCollection; /** Optional parameters. */ -export interface CertificateRefreshSecretOptionalParams +export interface ProductApiCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the refreshSecret operation. */ -export type CertificateRefreshSecretResponse = CertificateRefreshSecretHeaders & - CertificateContract; +/** Contains response data for the checkEntityExists operation. */ +export type ProductApiCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface CertificateListByServiceNextOptionalParams +export interface ProductApiCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type CertificateListByServiceNextResponse = CertificateCollection; - -/** Optional parameters. */ -export interface PerformConnectivityCheckAsyncOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the performConnectivityCheckAsync operation. */ -export type PerformConnectivityCheckAsyncResponse = ConnectivityCheckResponse; +/** Contains response data for the createOrUpdate operation. */ +export type ProductApiCreateOrUpdateResponse = ApiContract; /** Optional parameters. */ -export interface ContentTypeListByServiceOptionalParams +export interface ProductApiDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type ContentTypeListByServiceResponse = ContentTypeCollection; - /** Optional parameters. */ -export interface ContentTypeGetOptionalParams +export interface ProductApiListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ContentTypeGetResponse = ContentTypeGetHeaders & - ContentTypeContract; +/** Contains response data for the listByProductNext operation. */ +export type ProductApiListByProductNextResponse = ApiCollection; /** Optional parameters. */ -export interface ContentTypeCreateOrUpdateOptionalParams +export interface ProductGroupListByProductOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | |
| displayName | filter | eq, ne | |
| description | filter | eq, ne | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the createOrUpdate operation. */ -export type ContentTypeCreateOrUpdateResponse = ContentTypeCreateOrUpdateHeaders & - ContentTypeContract; - -/** Optional parameters. */ -export interface ContentTypeDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByProduct operation. */ +export type ProductGroupListByProductResponse = GroupCollection; /** Optional parameters. */ -export interface ContentTypeListByServiceNextOptionalParams +export interface ProductGroupCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ContentTypeListByServiceNextResponse = ContentTypeCollection; +/** Contains response data for the checkEntityExists operation. */ +export type ProductGroupCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface ContentItemListByServiceOptionalParams +export interface ProductGroupCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type ContentItemListByServiceResponse = ContentItemCollection; +/** Contains response data for the createOrUpdate operation. */ +export type ProductGroupCreateOrUpdateResponse = GroupContract; /** Optional parameters. */ -export interface ContentItemGetEntityTagOptionalParams +export interface ProductGroupDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type ContentItemGetEntityTagResponse = ContentItemGetEntityTagHeaders; - /** Optional parameters. */ -export interface ContentItemGetOptionalParams +export interface ProductGroupListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ContentItemGetResponse = ContentItemGetHeaders & - ContentItemContract; +/** Contains response data for the listByProductNext operation. */ +export type ProductGroupListByProductNextResponse = GroupCollection; /** Optional parameters. */ -export interface ContentItemCreateOrUpdateOptionalParams +export interface ProductSubscriptionsListOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| user | expand | | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the createOrUpdate operation. */ -export type ContentItemCreateOrUpdateResponse = ContentItemCreateOrUpdateHeaders & - ContentItemContract; - -/** Optional parameters. */ -export interface ContentItemDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the list operation. */ +export type ProductSubscriptionsListResponse = SubscriptionCollection; /** Optional parameters. */ -export interface ContentItemListByServiceNextOptionalParams +export interface ProductSubscriptionsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ContentItemListByServiceNextResponse = ContentItemCollection; +/** Contains response data for the listNext operation. */ +export type ProductSubscriptionsListNextResponse = SubscriptionCollection; /** Optional parameters. */ -export interface DeletedServicesListBySubscriptionOptionalParams +export interface ProductPolicyListByProductOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type DeletedServicesListBySubscriptionResponse = DeletedServicesCollection; +/** Contains response data for the listByProduct operation. */ +export type ProductPolicyListByProductResponse = PolicyCollection; /** Optional parameters. */ -export interface DeletedServicesGetByNameOptionalParams +export interface ProductPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByName operation. */ -export type DeletedServicesGetByNameResponse = DeletedServiceContract; +/** Contains response data for the getEntityTag operation. */ +export type ProductPolicyGetEntityTagResponse = + ProductPolicyGetEntityTagHeaders; /** Optional parameters. */ -export interface DeletedServicesPurgeOptionalParams +export interface ProductPolicyGetOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Policy Export Format. */ + format?: PolicyExportFormat; } +/** Contains response data for the get operation. */ +export type ProductPolicyGetResponse = ProductPolicyGetHeaders & PolicyContract; + /** Optional parameters. */ -export interface DeletedServicesListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions {} +export interface ProductPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} -/** Contains response data for the listBySubscriptionNext operation. */ -export type DeletedServicesListBySubscriptionNextResponse = DeletedServicesCollection; +/** Contains response data for the createOrUpdate operation. */ +export type ProductPolicyCreateOrUpdateResponse = + ProductPolicyCreateOrUpdateHeaders & PolicyContract; /** Optional parameters. */ -export interface ApiManagementOperationsListOptionalParams +export interface ProductPolicyDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ApiManagementOperationsListResponse = OperationListResult; - /** Optional parameters. */ -export interface ApiManagementOperationsListNextOptionalParams +export interface ProductPolicyListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ApiManagementOperationsListNextResponse = OperationListResult; +/** Contains response data for the listByProductNext operation. */ +export type ProductPolicyListByProductNextResponse = PolicyCollection; /** Optional parameters. */ -export interface ApiManagementServiceSkusListAvailableServiceSkusOptionalParams +export interface ProductWikiGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAvailableServiceSkus operation. */ -export type ApiManagementServiceSkusListAvailableServiceSkusResponse = ResourceSkuResults; +/** Contains response data for the getEntityTag operation. */ +export type ProductWikiGetEntityTagResponse = ProductWikiGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiManagementServiceSkusListAvailableServiceSkusNextOptionalParams +export interface ProductWikiGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAvailableServiceSkusNext operation. */ -export type ApiManagementServiceSkusListAvailableServiceSkusNextResponse = ResourceSkuResults; +/** Contains response data for the get operation. */ +export type ProductWikiGetResponse = ProductWikiGetHeaders & WikiContract; /** Optional parameters. */ -export interface ApiManagementServiceRestoreOptionalParams +export interface ProductWikiCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; } -/** Contains response data for the restore operation. */ -export type ApiManagementServiceRestoreResponse = ApiManagementServiceResource; +/** Contains response data for the createOrUpdate operation. */ +export type ProductWikiCreateOrUpdateResponse = + ProductWikiCreateOrUpdateHeaders & WikiContract; /** Optional parameters. */ -export interface ApiManagementServiceBackupOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ProductWikiUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the backup operation. */ -export type ApiManagementServiceBackupResponse = ApiManagementServiceResource; +/** Contains response data for the update operation. */ +export type ProductWikiUpdateResponse = ProductWikiUpdateHeaders & WikiContract; /** Optional parameters. */ -export interface ApiManagementServiceCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ApiManagementServiceCreateOrUpdateResponse = ApiManagementServiceResource; +export interface ProductWikiDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiManagementServiceUpdateOptionalParams +export interface ProductWikisListOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the update operation. */ -export type ApiManagementServiceUpdateResponse = ApiManagementServiceResource; +/** Contains response data for the list operation. */ +export type ProductWikisListResponse = ProductWikisListHeaders & WikiCollection; /** Optional parameters. */ -export interface ApiManagementServiceGetOptionalParams +export interface ProductWikisListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ApiManagementServiceGetResponse = ApiManagementServiceResource; - -/** Optional parameters. */ -export interface ApiManagementServiceDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +/** Contains response data for the listNext operation. */ +export type ProductWikisListNextResponse = ProductWikisListNextHeaders & + WikiCollection; /** Optional parameters. */ -export interface ApiManagementServiceMigrateToStv2OptionalParams +export interface ProductApiLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the migrateToStv2 operation. */ -export type ApiManagementServiceMigrateToStv2Response = ApiManagementServiceResource; - -/** Optional parameters. */ -export interface ApiManagementServiceListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type ApiManagementServiceListByResourceGroupResponse = ApiManagementServiceListResult; +/** Contains response data for the listByProduct operation. */ +export type ProductApiLinkListByProductResponse = ProductApiLinkCollection; /** Optional parameters. */ -export interface ApiManagementServiceListOptionalParams +export interface ProductApiLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ApiManagementServiceListResponse = ApiManagementServiceListResult; +/** Contains response data for the get operation. */ +export type ProductApiLinkGetResponse = ProductApiLinkGetHeaders & + ProductApiLinkContract; /** Optional parameters. */ -export interface ApiManagementServiceGetSsoTokenOptionalParams +export interface ProductApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getSsoToken operation. */ -export type ApiManagementServiceGetSsoTokenResponse = ApiManagementServiceGetSsoTokenResult; +/** Contains response data for the createOrUpdate operation. */ +export type ProductApiLinkCreateOrUpdateResponse = ProductApiLinkContract; /** Optional parameters. */ -export interface ApiManagementServiceCheckNameAvailabilityOptionalParams +export interface ProductApiLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkNameAvailability operation. */ -export type ApiManagementServiceCheckNameAvailabilityResponse = ApiManagementServiceNameAvailabilityResult; - /** Optional parameters. */ -export interface ApiManagementServiceGetDomainOwnershipIdentifierOptionalParams +export interface ProductApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getDomainOwnershipIdentifier operation. */ -export type ApiManagementServiceGetDomainOwnershipIdentifierResponse = ApiManagementServiceGetDomainOwnershipIdentifierResult; +/** Contains response data for the listByProductNext operation. */ +export type ProductApiLinkListByProductNextResponse = ProductApiLinkCollection; /** Optional parameters. */ -export interface ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams +export interface ProductGroupLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** Parameters supplied to the Apply Network Configuration operation. If the parameters are empty, all the regions in which the Api Management service is deployed will be updated sequentially without incurring downtime in the region. */ - parameters?: ApiManagementServiceApplyNetworkConfigurationParameters; - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| groupId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the applyNetworkConfigurationUpdates operation. */ -export type ApiManagementServiceApplyNetworkConfigurationUpdatesResponse = ApiManagementServiceResource; +/** Contains response data for the listByProduct operation. */ +export type ProductGroupLinkListByProductResponse = ProductGroupLinkCollection; /** Optional parameters. */ -export interface ApiManagementServiceListByResourceGroupNextOptionalParams +export interface ProductGroupLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type ApiManagementServiceListByResourceGroupNextResponse = ApiManagementServiceListResult; +/** Contains response data for the get operation. */ +export type ProductGroupLinkGetResponse = ProductGroupLinkGetHeaders & + ProductGroupLinkContract; /** Optional parameters. */ -export interface ApiManagementServiceListNextOptionalParams +export interface ProductGroupLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ApiManagementServiceListNextResponse = ApiManagementServiceListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ProductGroupLinkCreateOrUpdateResponse = ProductGroupLinkContract; /** Optional parameters. */ -export interface DiagnosticListByServiceOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +export interface ProductGroupLinkDeleteOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type DiagnosticListByServiceResponse = DiagnosticCollection; +/** Optional parameters. */ +export interface ProductGroupLinkListByProductNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByProductNext operation. */ +export type ProductGroupLinkListByProductNextResponse = + ProductGroupLinkCollection; /** Optional parameters. */ -export interface DiagnosticGetEntityTagOptionalParams +export interface QuotaByCounterKeysListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type DiagnosticGetEntityTagResponse = DiagnosticGetEntityTagHeaders; +/** Contains response data for the listByService operation. */ +export type QuotaByCounterKeysListByServiceResponse = QuotaCounterCollection; /** Optional parameters. */ -export interface DiagnosticGetOptionalParams +export interface QuotaByCounterKeysUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DiagnosticGetResponse = DiagnosticGetHeaders & DiagnosticContract; +/** Contains response data for the update operation. */ +export type QuotaByCounterKeysUpdateResponse = QuotaCounterCollection; /** Optional parameters. */ -export interface DiagnosticCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface QuotaByPeriodKeysGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DiagnosticCreateOrUpdateResponse = DiagnosticCreateOrUpdateHeaders & - DiagnosticContract; +/** Contains response data for the get operation. */ +export type QuotaByPeriodKeysGetResponse = QuotaCounterContract; /** Optional parameters. */ -export interface DiagnosticUpdateOptionalParams +export interface QuotaByPeriodKeysUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type DiagnosticUpdateResponse = DiagnosticUpdateHeaders & - DiagnosticContract; +export type QuotaByPeriodKeysUpdateResponse = QuotaCounterContract; /** Optional parameters. */ -export interface DiagnosticDeleteOptionalParams +export interface RegionListByServiceOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByService operation. */ +export type RegionListByServiceResponse = RegionListResult; + /** Optional parameters. */ -export interface DiagnosticListByServiceNextOptionalParams +export interface RegionListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type DiagnosticListByServiceNextResponse = DiagnosticCollection; +export type RegionListByServiceNextResponse = RegionListResult; /** Optional parameters. */ -export interface EmailTemplateListByServiceOptionalParams +export interface ReportsListByApiOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; + /** OData order by query option. */ + orderby?: string; } -/** Contains response data for the listByService operation. */ -export type EmailTemplateListByServiceResponse = EmailTemplateCollection; - -/** Optional parameters. */ -export interface EmailTemplateGetEntityTagOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getEntityTag operation. */ -export type EmailTemplateGetEntityTagResponse = EmailTemplateGetEntityTagHeaders; +/** Contains response data for the listByApi operation. */ +export type ReportsListByApiResponse = ReportCollection; /** Optional parameters. */ -export interface EmailTemplateGetOptionalParams - extends coreClient.OperationOptions {} +export interface ReportsListByUserOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** OData order by query option. */ + orderby?: string; +} -/** Contains response data for the get operation. */ -export type EmailTemplateGetResponse = EmailTemplateGetHeaders & - EmailTemplateContract; +/** Contains response data for the listByUser operation. */ +export type ReportsListByUserResponse = ReportCollection; /** Optional parameters. */ -export interface EmailTemplateCreateOrUpdateOptionalParams +export interface ReportsListByOperationOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** OData order by query option. */ + orderby?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type EmailTemplateCreateOrUpdateResponse = EmailTemplateContract; +/** Contains response data for the listByOperation operation. */ +export type ReportsListByOperationResponse = ReportCollection; /** Optional parameters. */ -export interface EmailTemplateUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type EmailTemplateUpdateResponse = EmailTemplateUpdateHeaders & - EmailTemplateContract; +export interface ReportsListByProductOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** OData order by query option. */ + orderby?: string; +} -/** Optional parameters. */ -export interface EmailTemplateDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByProduct operation. */ +export type ReportsListByProductResponse = ReportCollection; /** Optional parameters. */ -export interface EmailTemplateListByServiceNextOptionalParams - extends coreClient.OperationOptions {} +export interface ReportsListByGeoOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} -/** Contains response data for the listByServiceNext operation. */ -export type EmailTemplateListByServiceNextResponse = EmailTemplateCollection; +/** Contains response data for the listByGeo operation. */ +export type ReportsListByGeoResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayListByServiceOptionalParams +export interface ReportsListBySubscriptionOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| region | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; + /** OData order by query option. */ + orderby?: string; } -/** Contains response data for the listByService operation. */ -export type GatewayListByServiceResponse = GatewayCollection; +/** Contains response data for the listBySubscription operation. */ +export type ReportsListBySubscriptionResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayGetEntityTagOptionalParams - extends coreClient.OperationOptions {} +export interface ReportsListByTimeOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** OData order by query option. */ + orderby?: string; +} -/** Contains response data for the getEntityTag operation. */ -export type GatewayGetEntityTagResponse = GatewayGetEntityTagHeaders; +/** Contains response data for the listByTime operation. */ +export type ReportsListByTimeResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayGetOptionalParams extends coreClient.OperationOptions {} +export interface ReportsListByRequestOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} -/** Contains response data for the get operation. */ -export type GatewayGetResponse = GatewayGetHeaders & GatewayContract; +/** Contains response data for the listByRequest operation. */ +export type ReportsListByRequestResponse = RequestReportCollection; /** Optional parameters. */ -export interface GatewayCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface ReportsListByApiNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type GatewayCreateOrUpdateResponse = GatewayCreateOrUpdateHeaders & - GatewayContract; +/** Contains response data for the listByApiNext operation. */ +export type ReportsListByApiNextResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayUpdateOptionalParams +export interface ReportsListByUserNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type GatewayUpdateResponse = GatewayUpdateHeaders & GatewayContract; +/** Contains response data for the listByUserNext operation. */ +export type ReportsListByUserNextResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayDeleteOptionalParams +export interface ReportsListByOperationNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByOperationNext operation. */ +export type ReportsListByOperationNextResponse = ReportCollection; + /** Optional parameters. */ -export interface GatewayListKeysOptionalParams +export interface ReportsListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listKeys operation. */ -export type GatewayListKeysResponse = GatewayListKeysHeaders & - GatewayKeysContract; +/** Contains response data for the listByProductNext operation. */ +export type ReportsListByProductNextResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayRegenerateKeyOptionalParams +export interface ReportsListByGeoNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByGeoNext operation. */ +export type ReportsListByGeoNextResponse = ReportCollection; + /** Optional parameters. */ -export interface GatewayGenerateTokenOptionalParams +export interface ReportsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateToken operation. */ -export type GatewayGenerateTokenResponse = GatewayTokenContract; +/** Contains response data for the listBySubscriptionNext operation. */ +export type ReportsListBySubscriptionNextResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayListByServiceNextOptionalParams +export interface ReportsListByTimeNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type GatewayListByServiceNextResponse = GatewayCollection; +/** Contains response data for the listByTimeNext operation. */ +export type ReportsListByTimeNextResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayHostnameConfigurationListByServiceOptionalParams +export interface GlobalSchemaListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| hostname | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -9400,91 +12634,92 @@ export interface GatewayHostnameConfigurationListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type GatewayHostnameConfigurationListByServiceResponse = GatewayHostnameConfigurationCollection; +export type GlobalSchemaListByServiceResponse = GlobalSchemaCollection; /** Optional parameters. */ -export interface GatewayHostnameConfigurationGetEntityTagOptionalParams +export interface GlobalSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type GatewayHostnameConfigurationGetEntityTagResponse = GatewayHostnameConfigurationGetEntityTagHeaders; +export type GlobalSchemaGetEntityTagResponse = GlobalSchemaGetEntityTagHeaders; /** Optional parameters. */ -export interface GatewayHostnameConfigurationGetOptionalParams +export interface GlobalSchemaGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type GatewayHostnameConfigurationGetResponse = GatewayHostnameConfigurationGetHeaders & - GatewayHostnameConfigurationContract; +export type GlobalSchemaGetResponse = GlobalSchemaGetHeaders & + GlobalSchemaContract; /** Optional parameters. */ -export interface GatewayHostnameConfigurationCreateOrUpdateOptionalParams +export interface GlobalSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ -export type GatewayHostnameConfigurationCreateOrUpdateResponse = GatewayHostnameConfigurationCreateOrUpdateHeaders & - GatewayHostnameConfigurationContract; +export type GlobalSchemaCreateOrUpdateResponse = + GlobalSchemaCreateOrUpdateHeaders & GlobalSchemaContract; /** Optional parameters. */ -export interface GatewayHostnameConfigurationDeleteOptionalParams +export interface GlobalSchemaDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface GatewayHostnameConfigurationListByServiceNextOptionalParams +export interface GlobalSchemaListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type GatewayHostnameConfigurationListByServiceNextResponse = GatewayHostnameConfigurationCollection; +export type GlobalSchemaListByServiceNextResponse = GlobalSchemaCollection; /** Optional parameters. */ -export interface GatewayApiListByServiceOptionalParams +export interface TenantSettingsListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** Not used */ filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; } /** Contains response data for the listByService operation. */ -export type GatewayApiListByServiceResponse = ApiCollection; +export type TenantSettingsListByServiceResponse = TenantSettingsCollection; /** Optional parameters. */ -export interface GatewayApiGetEntityTagOptionalParams +export interface TenantSettingsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type GatewayApiGetEntityTagResponse = GatewayApiGetEntityTagHeaders; +/** Contains response data for the get operation. */ +export type TenantSettingsGetResponse = TenantSettingsGetHeaders & + TenantSettingsContract; /** Optional parameters. */ -export interface GatewayApiCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Association entity details. */ - parameters?: AssociationContract; -} +export interface TenantSettingsListByServiceNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type GatewayApiCreateOrUpdateResponse = ApiContract; +/** Contains response data for the listByServiceNext operation. */ +export type TenantSettingsListByServiceNextResponse = TenantSettingsCollection; /** Optional parameters. */ -export interface GatewayApiDeleteOptionalParams +export interface ApiManagementSkusListOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the list operation. */ +export type ApiManagementSkusListResponse = ApiManagementSkusResult; + /** Optional parameters. */ -export interface GatewayApiListByServiceNextOptionalParams +export interface ApiManagementSkusListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type GatewayApiListByServiceNextResponse = ApiCollection; +/** Contains response data for the listNext operation. */ +export type ApiManagementSkusListNextResponse = ApiManagementSkusResult; /** Optional parameters. */ -export interface GatewayCertificateAuthorityListByServiceOptionalParams +export interface SubscriptionListOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq, ne | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| user | expand | | |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -9492,106 +12727,91 @@ export interface GatewayCertificateAuthorityListByServiceOptionalParams skip?: number; } -/** Contains response data for the listByService operation. */ -export type GatewayCertificateAuthorityListByServiceResponse = GatewayCertificateAuthorityCollection; +/** Contains response data for the list operation. */ +export type SubscriptionListResponse = SubscriptionCollection; /** Optional parameters. */ -export interface GatewayCertificateAuthorityGetEntityTagOptionalParams +export interface SubscriptionGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type GatewayCertificateAuthorityGetEntityTagResponse = GatewayCertificateAuthorityGetEntityTagHeaders; +export type SubscriptionGetEntityTagResponse = SubscriptionGetEntityTagHeaders; /** Optional parameters. */ -export interface GatewayCertificateAuthorityGetOptionalParams +export interface SubscriptionGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type GatewayCertificateAuthorityGetResponse = GatewayCertificateAuthorityGetHeaders & - GatewayCertificateAuthorityContract; +export type SubscriptionGetResponse = SubscriptionGetHeaders & + SubscriptionContract; /** Optional parameters. */ -export interface GatewayCertificateAuthorityCreateOrUpdateOptionalParams +export interface SubscriptionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** + * Notify change in Subscription State. + * - If false, do not send any email notification for change of state of subscription + * - If true, send email notification of change of state of subscription + */ + notify?: boolean; + /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ + appType?: AppType; } /** Contains response data for the createOrUpdate operation. */ -export type GatewayCertificateAuthorityCreateOrUpdateResponse = GatewayCertificateAuthorityCreateOrUpdateHeaders & - GatewayCertificateAuthorityContract; - -/** Optional parameters. */ -export interface GatewayCertificateAuthorityDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface GatewayCertificateAuthorityListByServiceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServiceNext operation. */ -export type GatewayCertificateAuthorityListByServiceNextResponse = GatewayCertificateAuthorityCollection; +export type SubscriptionCreateOrUpdateResponse = + SubscriptionCreateOrUpdateHeaders & SubscriptionContract; /** Optional parameters. */ -export interface GroupListByServiceOptionalParams +export interface SubscriptionUpdateOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| externalId | filter | eq | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; + /** + * Notify change in Subscription State. + * - If false, do not send any email notification for change of state of subscription + * - If true, send email notification of change of state of subscription + */ + notify?: boolean; + /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ + appType?: AppType; } -/** Contains response data for the listByService operation. */ -export type GroupListByServiceResponse = GroupCollection; +/** Contains response data for the update operation. */ +export type SubscriptionUpdateResponse = SubscriptionUpdateHeaders & + SubscriptionContract; /** Optional parameters. */ -export interface GroupGetEntityTagOptionalParams +export interface SubscriptionDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type GroupGetEntityTagResponse = GroupGetEntityTagHeaders; - -/** Optional parameters. */ -export interface GroupGetOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type GroupGetResponse = GroupGetHeaders & GroupContract; - /** Optional parameters. */ -export interface GroupCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type GroupCreateOrUpdateResponse = GroupCreateOrUpdateHeaders & - GroupContract; +export interface SubscriptionRegeneratePrimaryKeyOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface GroupUpdateOptionalParams +export interface SubscriptionRegenerateSecondaryKeyOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type GroupUpdateResponse = GroupUpdateHeaders & GroupContract; - /** Optional parameters. */ -export interface GroupDeleteOptionalParams +export interface SubscriptionListSecretsOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listSecrets operation. */ +export type SubscriptionListSecretsResponse = SubscriptionListSecretsHeaders & + SubscriptionKeysContract; + /** Optional parameters. */ -export interface GroupListByServiceNextOptionalParams +export interface SubscriptionListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type GroupListByServiceNextResponse = GroupCollection; +/** Contains response data for the listNext operation. */ +export type SubscriptionListNextResponse = SubscriptionCollection; /** Optional parameters. */ -export interface GroupUserListOptionalParams +export interface TagResourceListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| firstName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| lastName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| email | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| registrationDate | filter | ge, le, eq, ne, gt, lt | |
| note | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| aid | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| isCurrent | filter | eq | |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -9599,100 +12819,100 @@ export interface GroupUserListOptionalParams skip?: number; } -/** Contains response data for the list operation. */ -export type GroupUserListResponse = UserCollection; +/** Contains response data for the listByService operation. */ +export type TagResourceListByServiceResponse = TagResourceCollection; /** Optional parameters. */ -export interface GroupUserCheckEntityExistsOptionalParams +export interface TagResourceListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkEntityExists operation. */ -export type GroupUserCheckEntityExistsResponse = { - body: boolean; -}; +/** Contains response data for the listByServiceNext operation. */ +export type TagResourceListByServiceNextResponse = TagResourceCollection; /** Optional parameters. */ -export interface GroupUserCreateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the create operation. */ -export type GroupUserCreateResponse = UserContract; +export interface TagApiLinkListByProductOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} -/** Optional parameters. */ -export interface GroupUserDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByProduct operation. */ +export type TagApiLinkListByProductResponse = TagApiLinkCollection; /** Optional parameters. */ -export interface GroupUserListNextOptionalParams +export interface TagApiLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type GroupUserListNextResponse = UserCollection; +/** Contains response data for the get operation. */ +export type TagApiLinkGetResponse = TagApiLinkGetHeaders & TagApiLinkContract; /** Optional parameters. */ -export interface IdentityProviderListByServiceOptionalParams +export interface TagApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type IdentityProviderListByServiceResponse = IdentityProviderList; +/** Contains response data for the createOrUpdate operation. */ +export type TagApiLinkCreateOrUpdateResponse = TagApiLinkContract; /** Optional parameters. */ -export interface IdentityProviderGetEntityTagOptionalParams +export interface TagApiLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type IdentityProviderGetEntityTagResponse = IdentityProviderGetEntityTagHeaders; - /** Optional parameters. */ -export interface IdentityProviderGetOptionalParams +export interface TagApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type IdentityProviderGetResponse = IdentityProviderGetHeaders & - IdentityProviderContract; +/** Contains response data for the listByProductNext operation. */ +export type TagApiLinkListByProductNextResponse = TagApiLinkCollection; /** Optional parameters. */ -export interface IdentityProviderCreateOrUpdateOptionalParams +export interface TagOperationLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| operationId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the createOrUpdate operation. */ -export type IdentityProviderCreateOrUpdateResponse = IdentityProviderCreateOrUpdateHeaders & - IdentityProviderContract; +/** Contains response data for the listByProduct operation. */ +export type TagOperationLinkListByProductResponse = TagOperationLinkCollection; /** Optional parameters. */ -export interface IdentityProviderUpdateOptionalParams +export interface TagOperationLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type IdentityProviderUpdateResponse = IdentityProviderUpdateHeaders & - IdentityProviderContract; +/** Contains response data for the get operation. */ +export type TagOperationLinkGetResponse = TagOperationLinkGetHeaders & + TagOperationLinkContract; /** Optional parameters. */ -export interface IdentityProviderDeleteOptionalParams +export interface TagOperationLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type TagOperationLinkCreateOrUpdateResponse = TagOperationLinkContract; + /** Optional parameters. */ -export interface IdentityProviderListSecretsOptionalParams +export interface TagOperationLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSecrets operation. */ -export type IdentityProviderListSecretsResponse = IdentityProviderListSecretsHeaders & - ClientSecretContract; - /** Optional parameters. */ -export interface IdentityProviderListByServiceNextOptionalParams +export interface TagOperationLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type IdentityProviderListByServiceNextResponse = IdentityProviderList; +/** Contains response data for the listByProductNext operation. */ +export type TagOperationLinkListByProductNextResponse = + TagOperationLinkCollection; /** Optional parameters. */ -export interface IssueListByServiceOptionalParams +export interface TagProductLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| title | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| authorName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -9700,125 +12920,121 @@ export interface IssueListByServiceOptionalParams skip?: number; } -/** Contains response data for the listByService operation. */ -export type IssueListByServiceResponse = IssueCollection; +/** Contains response data for the listByProduct operation. */ +export type TagProductLinkListByProductResponse = TagProductLinkCollection; /** Optional parameters. */ -export interface IssueGetOptionalParams extends coreClient.OperationOptions {} +export interface TagProductLinkGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type TagProductLinkGetResponse = TagProductLinkGetHeaders & + TagProductLinkContract; + +/** Optional parameters. */ +export interface TagProductLinkCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type TagProductLinkCreateOrUpdateResponse = TagProductLinkContract; -/** Contains response data for the get operation. */ -export type IssueGetResponse = IssueGetHeaders & IssueContract; +/** Optional parameters. */ +export interface TagProductLinkDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface IssueListByServiceNextOptionalParams +export interface TagProductLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type IssueListByServiceNextResponse = IssueCollection; +/** Contains response data for the listByProductNext operation. */ +export type TagProductLinkListByProductNextResponse = TagProductLinkCollection; /** Optional parameters. */ -export interface LoggerListByServiceOptionalParams +export interface TenantAccessListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| loggerType | filter | eq | |
| resourceId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** Not used */ filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; } /** Contains response data for the listByService operation. */ -export type LoggerListByServiceResponse = LoggerCollection; +export type TenantAccessListByServiceResponse = AccessInformationCollection; /** Optional parameters. */ -export interface LoggerGetEntityTagOptionalParams +export interface TenantAccessGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type LoggerGetEntityTagResponse = LoggerGetEntityTagHeaders; +export type TenantAccessGetEntityTagResponse = TenantAccessGetEntityTagHeaders; /** Optional parameters. */ -export interface LoggerGetOptionalParams extends coreClient.OperationOptions {} +export interface TenantAccessGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type LoggerGetResponse = LoggerGetHeaders & LoggerContract; +export type TenantAccessGetResponse = TenantAccessGetHeaders & + AccessInformationContract; /** Optional parameters. */ -export interface LoggerCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface TenantAccessCreateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type LoggerCreateOrUpdateResponse = LoggerCreateOrUpdateHeaders & - LoggerContract; +/** Contains response data for the create operation. */ +export type TenantAccessCreateResponse = TenantAccessCreateHeaders & + AccessInformationContract; /** Optional parameters. */ -export interface LoggerUpdateOptionalParams +export interface TenantAccessUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type LoggerUpdateResponse = LoggerUpdateHeaders & LoggerContract; +export type TenantAccessUpdateResponse = TenantAccessUpdateHeaders & + AccessInformationContract; /** Optional parameters. */ -export interface LoggerDeleteOptionalParams +export interface TenantAccessRegeneratePrimaryKeyOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface LoggerListByServiceNextOptionalParams +export interface TenantAccessRegenerateSecondaryKeyOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type LoggerListByServiceNextResponse = LoggerCollection; - /** Optional parameters. */ -export interface NamedValueListByServiceOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| tags | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith, any, all |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** When set to true, the response contains only named value entities which failed refresh. */ - isKeyVaultRefreshFailed?: boolean; -} +export interface TenantAccessListSecretsOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type NamedValueListByServiceResponse = NamedValueCollection; +/** Contains response data for the listSecrets operation. */ +export type TenantAccessListSecretsResponse = TenantAccessListSecretsHeaders & + AccessInformationSecretsContract; /** Optional parameters. */ -export interface NamedValueGetEntityTagOptionalParams +export interface TenantAccessListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type NamedValueGetEntityTagResponse = NamedValueGetEntityTagHeaders; +/** Contains response data for the listByServiceNext operation. */ +export type TenantAccessListByServiceNextResponse = AccessInformationCollection; /** Optional parameters. */ -export interface NamedValueGetOptionalParams +export interface TenantAccessGitRegeneratePrimaryKeyOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type NamedValueGetResponse = NamedValueGetHeaders & NamedValueContract; +/** Optional parameters. */ +export interface TenantAccessGitRegenerateSecondaryKeyOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface NamedValueCreateOrUpdateOptionalParams +export interface TenantConfigurationDeployOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type NamedValueCreateOrUpdateResponse = NamedValueCreateOrUpdateHeaders & - NamedValueContract; +/** Contains response data for the deploy operation. */ +export type TenantConfigurationDeployResponse = OperationResultContract; /** Optional parameters. */ -export interface NamedValueUpdateOptionalParams +export interface TenantConfigurationSaveOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9826,24 +13042,11 @@ export interface NamedValueUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type NamedValueUpdateResponse = NamedValueUpdateHeaders & - NamedValueContract; - -/** Optional parameters. */ -export interface NamedValueDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface NamedValueListValueOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listValue operation. */ -export type NamedValueListValueResponse = NamedValueListValueHeaders & - NamedValueSecretContract; +/** Contains response data for the save operation. */ +export type TenantConfigurationSaveResponse = OperationResultContract; /** Optional parameters. */ -export interface NamedValueRefreshSecretOptionalParams +export interface TenantConfigurationValidateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9851,125 +13054,178 @@ export interface NamedValueRefreshSecretOptionalParams resumeFrom?: string; } -/** Contains response data for the refreshSecret operation. */ -export type NamedValueRefreshSecretResponse = NamedValueRefreshSecretHeaders & - NamedValueContract; - -/** Optional parameters. */ -export interface NamedValueListByServiceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServiceNext operation. */ -export type NamedValueListByServiceNextResponse = NamedValueCollection; - -/** Optional parameters. */ -export interface NetworkStatusListByServiceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByService operation. */ -export type NetworkStatusListByServiceResponse = NetworkStatusContractByLocation[]; +/** Contains response data for the validate operation. */ +export type TenantConfigurationValidateResponse = OperationResultContract; /** Optional parameters. */ -export interface NetworkStatusListByLocationOptionalParams +export interface TenantConfigurationGetSyncStateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type NetworkStatusListByLocationResponse = NetworkStatusContract; +/** Contains response data for the getSyncState operation. */ +export type TenantConfigurationGetSyncStateResponse = + TenantConfigurationSyncStateContract; /** Optional parameters. */ -export interface NotificationListByServiceOptionalParams +export interface UserListByServiceOptionalParams extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| firstName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| lastName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| email | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| registrationDate | filter | ge, le, eq, ne, gt, lt | |
| note | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| groups | expand | | |
*/ + filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; + /** Detailed Group in response. */ + expandGroups?: boolean; } /** Contains response data for the listByService operation. */ -export type NotificationListByServiceResponse = NotificationCollection; +export type UserListByServiceResponse = UserCollection; /** Optional parameters. */ -export interface NotificationGetOptionalParams +export interface UserGetEntityTagOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the getEntityTag operation. */ +export type UserGetEntityTagResponse = UserGetEntityTagHeaders; + +/** Optional parameters. */ +export interface UserGetOptionalParams extends coreClient.OperationOptions {} + /** Contains response data for the get operation. */ -export type NotificationGetResponse = NotificationContract; +export type UserGetResponse = UserGetHeaders & UserContract; /** Optional parameters. */ -export interface NotificationCreateOrUpdateOptionalParams +export interface UserCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** Send an Email notification to the User. */ + notify?: boolean; } /** Contains response data for the createOrUpdate operation. */ -export type NotificationCreateOrUpdateResponse = NotificationContract; +export type UserCreateOrUpdateResponse = UserCreateOrUpdateHeaders & + UserContract; /** Optional parameters. */ -export interface NotificationListByServiceNextOptionalParams +export interface UserUpdateOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type UserUpdateResponse = UserUpdateHeaders & UserContract; + +/** Optional parameters. */ +export interface UserDeleteOptionalParams extends coreClient.OperationOptions { + /** Whether to delete user's subscription or not. */ + deleteSubscriptions?: boolean; + /** Send an Account Closed Email notification to the User. */ + notify?: boolean; + /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ + appType?: AppType; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the delete operation. */ +export type UserDeleteResponse = UserDeleteHeaders; + +/** Optional parameters. */ +export interface UserGenerateSsoUrlOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type NotificationListByServiceNextResponse = NotificationCollection; +/** Contains response data for the generateSsoUrl operation. */ +export type UserGenerateSsoUrlResponse = GenerateSsoUrlResult; /** Optional parameters. */ -export interface NotificationRecipientUserListByNotificationOptionalParams +export interface UserGetSharedAccessTokenOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByNotification operation. */ -export type NotificationRecipientUserListByNotificationResponse = RecipientUserCollection; +/** Contains response data for the getSharedAccessToken operation. */ +export type UserGetSharedAccessTokenResponse = UserTokenResult; /** Optional parameters. */ -export interface NotificationRecipientUserCheckEntityExistsOptionalParams +export interface UserListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkEntityExists operation. */ -export type NotificationRecipientUserCheckEntityExistsResponse = { - body: boolean; -}; +/** Contains response data for the listByServiceNext operation. */ +export type UserListByServiceNextResponse = UserCollection; /** Optional parameters. */ -export interface NotificationRecipientUserCreateOrUpdateOptionalParams +export interface UserGroupListOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|------------------------|-----------------------------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the list operation. */ +export type UserGroupListResponse = GroupCollection; + +/** Optional parameters. */ +export interface UserGroupListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type NotificationRecipientUserCreateOrUpdateResponse = RecipientUserContract; +/** Contains response data for the listNext operation. */ +export type UserGroupListNextResponse = GroupCollection; /** Optional parameters. */ -export interface NotificationRecipientUserDeleteOptionalParams +export interface UserSubscriptionListOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|------------------------|-----------------------------------|
|name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the list operation. */ +export type UserSubscriptionListResponse = SubscriptionCollection; + +/** Optional parameters. */ +export interface UserSubscriptionGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type UserSubscriptionGetResponse = UserSubscriptionGetHeaders & + SubscriptionContract; + /** Optional parameters. */ -export interface NotificationRecipientEmailListByNotificationOptionalParams +export interface UserSubscriptionListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByNotification operation. */ -export type NotificationRecipientEmailListByNotificationResponse = RecipientEmailCollection; +/** Contains response data for the listNext operation. */ +export type UserSubscriptionListNextResponse = SubscriptionCollection; /** Optional parameters. */ -export interface NotificationRecipientEmailCheckEntityExistsOptionalParams +export interface UserIdentitiesListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkEntityExists operation. */ -export type NotificationRecipientEmailCheckEntityExistsResponse = { - body: boolean; -}; +/** Contains response data for the list operation. */ +export type UserIdentitiesListResponse = UserIdentityCollection; /** Optional parameters. */ -export interface NotificationRecipientEmailCreateOrUpdateOptionalParams +export interface UserIdentitiesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type NotificationRecipientEmailCreateOrUpdateResponse = RecipientEmailContract; +/** Contains response data for the listNext operation. */ +export type UserIdentitiesListNextResponse = UserIdentityCollection; /** Optional parameters. */ -export interface NotificationRecipientEmailDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface UserConfirmationPasswordSendOptionalParams + extends coreClient.OperationOptions { + /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ + appType?: AppType; +} /** Optional parameters. */ -export interface OpenIdConnectProviderListByServiceOptionalParams +export interface WorkspaceListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |

| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -9978,152 +13234,134 @@ export interface OpenIdConnectProviderListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type OpenIdConnectProviderListByServiceResponse = OpenIdConnectProviderCollection; +export type WorkspaceListByServiceResponse = WorkspaceCollection; /** Optional parameters. */ -export interface OpenIdConnectProviderGetEntityTagOptionalParams +export interface WorkspaceGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type OpenIdConnectProviderGetEntityTagResponse = OpenIdConnectProviderGetEntityTagHeaders; +export type WorkspaceGetEntityTagResponse = WorkspaceGetEntityTagHeaders; /** Optional parameters. */ -export interface OpenIdConnectProviderGetOptionalParams +export interface WorkspaceGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type OpenIdConnectProviderGetResponse = OpenIdConnectProviderGetHeaders & - OpenidConnectProviderContract; +export type WorkspaceGetResponse = WorkspaceGetHeaders & WorkspaceContract; /** Optional parameters. */ -export interface OpenIdConnectProviderCreateOrUpdateOptionalParams +export interface WorkspaceCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type OpenIdConnectProviderCreateOrUpdateResponse = OpenIdConnectProviderCreateOrUpdateHeaders & - OpenidConnectProviderContract; +export type WorkspaceCreateOrUpdateResponse = WorkspaceCreateOrUpdateHeaders & + WorkspaceContract; /** Optional parameters. */ -export interface OpenIdConnectProviderUpdateOptionalParams +export interface WorkspaceUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type OpenIdConnectProviderUpdateResponse = OpenIdConnectProviderUpdateHeaders & - OpenidConnectProviderContract; - -/** Optional parameters. */ -export interface OpenIdConnectProviderDeleteOptionalParams - extends coreClient.OperationOptions {} +export type WorkspaceUpdateResponse = WorkspaceUpdateHeaders & + WorkspaceContract; /** Optional parameters. */ -export interface OpenIdConnectProviderListSecretsOptionalParams +export interface WorkspaceDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSecrets operation. */ -export type OpenIdConnectProviderListSecretsResponse = OpenIdConnectProviderListSecretsHeaders & - ClientSecretContract; - /** Optional parameters. */ -export interface OpenIdConnectProviderListByServiceNextOptionalParams +export interface WorkspaceListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type OpenIdConnectProviderListByServiceNextResponse = OpenIdConnectProviderCollection; - -/** Optional parameters. */ -export interface OutboundNetworkDependenciesEndpointsListByServiceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByService operation. */ -export type OutboundNetworkDependenciesEndpointsListByServiceResponse = OutboundEnvironmentEndpointList; +export type WorkspaceListByServiceNextResponse = WorkspaceCollection; /** Optional parameters. */ -export interface PolicyListByServiceOptionalParams +export interface WorkspacePolicyListByApiOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type PolicyListByServiceResponse = PolicyCollection; +/** Contains response data for the listByApi operation. */ +export type WorkspacePolicyListByApiResponse = PolicyCollection; /** Optional parameters. */ -export interface PolicyGetEntityTagOptionalParams +export interface WorkspacePolicyGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type PolicyGetEntityTagResponse = PolicyGetEntityTagHeaders; +export type WorkspacePolicyGetEntityTagResponse = + WorkspacePolicyGetEntityTagHeaders; /** Optional parameters. */ -export interface PolicyGetOptionalParams extends coreClient.OperationOptions { +export interface WorkspacePolicyGetOptionalParams + extends coreClient.OperationOptions { /** Policy Export Format. */ format?: PolicyExportFormat; } /** Contains response data for the get operation. */ -export type PolicyGetResponse = PolicyGetHeaders & PolicyContract; +export type WorkspacePolicyGetResponse = WorkspacePolicyGetHeaders & + PolicyContract; /** Optional parameters. */ -export interface PolicyCreateOrUpdateOptionalParams +export interface WorkspacePolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type PolicyCreateOrUpdateResponse = PolicyCreateOrUpdateHeaders & - PolicyContract; +export type WorkspacePolicyCreateOrUpdateResponse = + WorkspacePolicyCreateOrUpdateHeaders & PolicyContract; /** Optional parameters. */ -export interface PolicyDeleteOptionalParams +export interface WorkspacePolicyDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface PolicyDescriptionListByServiceOptionalParams - extends coreClient.OperationOptions { - /** Policy scope. */ - scope?: PolicyScopeContract; -} +export interface WorkspacePolicyListByApiNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type PolicyDescriptionListByServiceResponse = PolicyDescriptionCollection; +/** Contains response data for the listByApiNext operation. */ +export type WorkspacePolicyListByApiNextResponse = PolicyCollection; /** Optional parameters. */ -export interface PolicyFragmentListByServiceOptionalParams +export interface WorkspaceNamedValueListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter, orderBy | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| value | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| tags | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith, any, all |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** OData order by query option. */ - orderby?: string; + /** Query parameter to fetch named value entities based on refresh status. */ + isKeyVaultRefreshFailed?: KeyVaultRefreshState; } /** Contains response data for the listByService operation. */ -export type PolicyFragmentListByServiceResponse = PolicyFragmentCollection; +export type WorkspaceNamedValueListByServiceResponse = NamedValueCollection; /** Optional parameters. */ -export interface PolicyFragmentGetEntityTagOptionalParams +export interface WorkspaceNamedValueGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type PolicyFragmentGetEntityTagResponse = PolicyFragmentGetEntityTagHeaders; +export type WorkspaceNamedValueGetEntityTagResponse = + WorkspaceNamedValueGetEntityTagHeaders; /** Optional parameters. */ -export interface PolicyFragmentGetOptionalParams - extends coreClient.OperationOptions { - /** Policy fragment content format. */ - format?: PolicyFragmentContentFormat; -} +export interface WorkspaceNamedValueGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PolicyFragmentGetResponse = PolicyFragmentGetHeaders & - PolicyFragmentContract; +export type WorkspaceNamedValueGetResponse = WorkspaceNamedValueGetHeaders & + NamedValueContract; /** Optional parameters. */ -export interface PolicyFragmentCreateOrUpdateOptionalParams +export interface WorkspaceNamedValueCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; @@ -10134,73 +13372,58 @@ export interface PolicyFragmentCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type PolicyFragmentCreateOrUpdateResponse = PolicyFragmentCreateOrUpdateHeaders & - PolicyFragmentContract; - -/** Optional parameters. */ -export interface PolicyFragmentDeleteOptionalParams - extends coreClient.OperationOptions {} +export type WorkspaceNamedValueCreateOrUpdateResponse = + WorkspaceNamedValueCreateOrUpdateHeaders & NamedValueContract; /** Optional parameters. */ -export interface PolicyFragmentListReferencesOptionalParams +export interface WorkspaceNamedValueUpdateOptionalParams extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listReferences operation. */ -export type PolicyFragmentListReferencesResponse = ResourceCollection; - -/** Optional parameters. */ -export interface PortalConfigListByServiceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByService operation. */ -export type PortalConfigListByServiceResponse = PortalConfigCollection; +/** Contains response data for the update operation. */ +export type WorkspaceNamedValueUpdateResponse = + WorkspaceNamedValueUpdateHeaders & NamedValueContract; /** Optional parameters. */ -export interface PortalConfigGetEntityTagOptionalParams +export interface WorkspaceNamedValueDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type PortalConfigGetEntityTagResponse = PortalConfigGetEntityTagHeaders; - /** Optional parameters. */ -export interface PortalConfigGetOptionalParams +export interface WorkspaceNamedValueListValueOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type PortalConfigGetResponse = PortalConfigGetHeaders & - PortalConfigContract; +/** Contains response data for the listValue operation. */ +export type WorkspaceNamedValueListValueResponse = + WorkspaceNamedValueListValueHeaders & NamedValueSecretContract; /** Optional parameters. */ -export interface PortalConfigUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceNamedValueRefreshSecretOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the update operation. */ -export type PortalConfigUpdateResponse = PortalConfigContract; +/** Contains response data for the refreshSecret operation. */ +export type WorkspaceNamedValueRefreshSecretResponse = + WorkspaceNamedValueRefreshSecretHeaders & NamedValueContract; /** Optional parameters. */ -export interface PortalConfigCreateOrUpdateOptionalParams +export interface WorkspaceNamedValueListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type PortalConfigCreateOrUpdateResponse = PortalConfigContract; +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceNamedValueListByServiceNextResponse = NamedValueCollection; /** Optional parameters. */ -export interface PortalRevisionListByServiceOptionalParams +export interface WorkspaceGlobalSchemaListByServiceOptionalParams extends coreClient.OperationOptions { - /** - * | Field | Supported operators | Supported functions | - * |-------------|------------------------|-----------------------------------| - * - * |name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith| - * |description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith| - * |isCurrent | eq, ne | | - * - */ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -10209,26 +13432,29 @@ export interface PortalRevisionListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type PortalRevisionListByServiceResponse = PortalRevisionCollection; +export type WorkspaceGlobalSchemaListByServiceResponse = GlobalSchemaCollection; /** Optional parameters. */ -export interface PortalRevisionGetEntityTagOptionalParams +export interface WorkspaceGlobalSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type PortalRevisionGetEntityTagResponse = PortalRevisionGetEntityTagHeaders; +export type WorkspaceGlobalSchemaGetEntityTagResponse = + WorkspaceGlobalSchemaGetEntityTagHeaders; /** Optional parameters. */ -export interface PortalRevisionGetOptionalParams +export interface WorkspaceGlobalSchemaGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PortalRevisionGetResponse = PortalRevisionGetHeaders & - PortalRevisionContract; +export type WorkspaceGlobalSchemaGetResponse = WorkspaceGlobalSchemaGetHeaders & + GlobalSchemaContract; /** Optional parameters. */ -export interface PortalRevisionCreateOrUpdateOptionalParams +export interface WorkspaceGlobalSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -10236,269 +13462,195 @@ export interface PortalRevisionCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type PortalRevisionCreateOrUpdateResponse = PortalRevisionCreateOrUpdateHeaders & - PortalRevisionContract; +export type WorkspaceGlobalSchemaCreateOrUpdateResponse = + WorkspaceGlobalSchemaCreateOrUpdateHeaders & GlobalSchemaContract; /** Optional parameters. */ -export interface PortalRevisionUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type PortalRevisionUpdateResponse = PortalRevisionUpdateHeaders & - PortalRevisionContract; +export interface WorkspaceGlobalSchemaDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface PortalRevisionListByServiceNextOptionalParams +export interface WorkspaceGlobalSchemaListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type PortalRevisionListByServiceNextResponse = PortalRevisionCollection; +export type WorkspaceGlobalSchemaListByServiceNextResponse = + GlobalSchemaCollection; /** Optional parameters. */ -export interface PortalSettingsListByServiceOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceNotificationListByServiceOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} /** Contains response data for the listByService operation. */ -export type PortalSettingsListByServiceResponse = PortalSettingsCollection; - -/** Optional parameters. */ -export interface SignInSettingsGetEntityTagOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getEntityTag operation. */ -export type SignInSettingsGetEntityTagResponse = SignInSettingsGetEntityTagHeaders; +export type WorkspaceNotificationListByServiceResponse = NotificationCollection; /** Optional parameters. */ -export interface SignInSettingsGetOptionalParams +export interface WorkspaceNotificationGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SignInSettingsGetResponse = SignInSettingsGetHeaders & - PortalSigninSettings; - -/** Optional parameters. */ -export interface SignInSettingsUpdateOptionalParams - extends coreClient.OperationOptions {} +export type WorkspaceNotificationGetResponse = NotificationContract; /** Optional parameters. */ -export interface SignInSettingsCreateOrUpdateOptionalParams +export interface WorkspaceNotificationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type SignInSettingsCreateOrUpdateResponse = PortalSigninSettings; - -/** Optional parameters. */ -export interface SignUpSettingsGetEntityTagOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getEntityTag operation. */ -export type SignUpSettingsGetEntityTagResponse = SignUpSettingsGetEntityTagHeaders; - -/** Optional parameters. */ -export interface SignUpSettingsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type SignUpSettingsGetResponse = SignUpSettingsGetHeaders & - PortalSignupSettings; +export type WorkspaceNotificationCreateOrUpdateResponse = NotificationContract; /** Optional parameters. */ -export interface SignUpSettingsUpdateOptionalParams +export interface WorkspaceNotificationListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface SignUpSettingsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type SignUpSettingsCreateOrUpdateResponse = PortalSignupSettings; +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceNotificationListByServiceNextResponse = + NotificationCollection; /** Optional parameters. */ -export interface DelegationSettingsGetEntityTagOptionalParams +export interface WorkspaceNotificationRecipientUserListByNotificationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type DelegationSettingsGetEntityTagResponse = DelegationSettingsGetEntityTagHeaders; +/** Contains response data for the listByNotification operation. */ +export type WorkspaceNotificationRecipientUserListByNotificationResponse = + RecipientUserCollection; /** Optional parameters. */ -export interface DelegationSettingsGetOptionalParams +export interface WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DelegationSettingsGetResponse = DelegationSettingsGetHeaders & - PortalDelegationSettings; +/** Contains response data for the checkEntityExists operation. */ +export type WorkspaceNotificationRecipientUserCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface DelegationSettingsUpdateOptionalParams +export interface WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface DelegationSettingsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} - /** Contains response data for the createOrUpdate operation. */ -export type DelegationSettingsCreateOrUpdateResponse = PortalDelegationSettings; +export type WorkspaceNotificationRecipientUserCreateOrUpdateResponse = + RecipientUserContract; /** Optional parameters. */ -export interface DelegationSettingsListSecretsOptionalParams +export interface WorkspaceNotificationRecipientUserDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSecrets operation. */ -export type DelegationSettingsListSecretsResponse = PortalSettingValidationKeyContract; - /** Optional parameters. */ -export interface PrivateEndpointConnectionListByServiceOptionalParams +export interface WorkspaceNotificationRecipientEmailListByNotificationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type PrivateEndpointConnectionListByServiceResponse = PrivateEndpointConnectionListResult; +/** Contains response data for the listByNotification operation. */ +export type WorkspaceNotificationRecipientEmailListByNotificationResponse = + RecipientEmailCollection; /** Optional parameters. */ -export interface PrivateEndpointConnectionGetByNameOptionalParams +export interface WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByName operation. */ -export type PrivateEndpointConnectionGetByNameResponse = PrivateEndpointConnection; - -/** Optional parameters. */ -export interface PrivateEndpointConnectionCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type PrivateEndpointConnectionCreateOrUpdateResponse = PrivateEndpointConnection; - -/** Optional parameters. */ -export interface PrivateEndpointConnectionDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +/** Contains response data for the checkEntityExists operation. */ +export type WorkspaceNotificationRecipientEmailCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams +export interface WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listPrivateLinkResources operation. */ -export type PrivateEndpointConnectionListPrivateLinkResourcesResponse = PrivateLinkResourceListResult; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceNotificationRecipientEmailCreateOrUpdateResponse = + RecipientEmailContract; /** Optional parameters. */ -export interface PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams +export interface WorkspaceNotificationRecipientEmailDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getPrivateLinkResource operation. */ -export type PrivateEndpointConnectionGetPrivateLinkResourceResponse = PrivateLinkResource; - /** Optional parameters. */ -export interface ProductListByServiceOptionalParams +export interface WorkspacePolicyFragmentListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| groups | expand | | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter, orderBy | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| value | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** Products which are part of a specific tag. */ - tags?: string; - /** When set to true, the response contains an array of groups that have visibility to the product. The default is false. */ - expandGroups?: boolean; + /** OData order by query option. */ + orderby?: string; } /** Contains response data for the listByService operation. */ -export type ProductListByServiceResponse = ProductCollection; +export type WorkspacePolicyFragmentListByServiceResponse = + PolicyFragmentCollection; /** Optional parameters. */ -export interface ProductGetEntityTagOptionalParams +export interface WorkspacePolicyFragmentGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ProductGetEntityTagResponse = ProductGetEntityTagHeaders; +export type WorkspacePolicyFragmentGetEntityTagResponse = + WorkspacePolicyFragmentGetEntityTagHeaders; /** Optional parameters. */ -export interface ProductGetOptionalParams extends coreClient.OperationOptions {} +export interface WorkspacePolicyFragmentGetOptionalParams + extends coreClient.OperationOptions { + /** Policy fragment content format. */ + format?: PolicyFragmentContentFormat; +} /** Contains response data for the get operation. */ -export type ProductGetResponse = ProductGetHeaders & ProductContract; +export type WorkspacePolicyFragmentGetResponse = + WorkspacePolicyFragmentGetHeaders & PolicyFragmentContract; /** Optional parameters. */ -export interface ProductCreateOrUpdateOptionalParams +export interface WorkspacePolicyFragmentCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ProductCreateOrUpdateResponse = ProductCreateOrUpdateHeaders & - ProductContract; +export type WorkspacePolicyFragmentCreateOrUpdateResponse = + WorkspacePolicyFragmentCreateOrUpdateHeaders & PolicyFragmentContract; /** Optional parameters. */ -export interface ProductUpdateOptionalParams +export interface WorkspacePolicyFragmentDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ProductUpdateResponse = ProductUpdateHeaders & ProductContract; - -/** Optional parameters. */ -export interface ProductDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delete existing subscriptions associated with the product or not. */ - deleteSubscriptions?: boolean; -} - /** Optional parameters. */ -export interface ProductListByTagsOptionalParams +export interface WorkspacePolicyFragmentListReferencesOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | substringof, contains, startswith, endswith |
*/ - filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** Include not tagged Products. */ - includeNotTaggedProducts?: boolean; } -/** Contains response data for the listByTags operation. */ -export type ProductListByTagsResponse = TagResourceCollection; +/** Contains response data for the listReferences operation. */ +export type WorkspacePolicyFragmentListReferencesResponse = ResourceCollection; /** Optional parameters. */ -export interface ProductListByServiceNextOptionalParams +export interface WorkspacePolicyFragmentListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ProductListByServiceNextResponse = ProductCollection; - -/** Optional parameters. */ -export interface ProductListByTagsNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByTagsNext operation. */ -export type ProductListByTagsNextResponse = TagResourceCollection; +export type WorkspacePolicyFragmentListByServiceNextResponse = + PolicyFragmentCollection; /** Optional parameters. */ -export interface ProductApiListByProductOptionalParams +export interface WorkspaceGroupListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| externalId | filter | eq | |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -10506,40 +13658,59 @@ export interface ProductApiListByProductOptionalParams skip?: number; } -/** Contains response data for the listByProduct operation. */ -export type ProductApiListByProductResponse = ApiCollection; +/** Contains response data for the listByService operation. */ +export type WorkspaceGroupListByServiceResponse = GroupCollection; /** Optional parameters. */ -export interface ProductApiCheckEntityExistsOptionalParams +export interface WorkspaceGroupGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkEntityExists operation. */ -export type ProductApiCheckEntityExistsResponse = { - body: boolean; -}; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceGroupGetEntityTagResponse = + WorkspaceGroupGetEntityTagHeaders; /** Optional parameters. */ -export interface ProductApiCreateOrUpdateOptionalParams +export interface WorkspaceGroupGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type WorkspaceGroupGetResponse = WorkspaceGroupGetHeaders & + GroupContract; + +/** Optional parameters. */ +export interface WorkspaceGroupCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + /** Contains response data for the createOrUpdate operation. */ -export type ProductApiCreateOrUpdateResponse = ApiContract; +export type WorkspaceGroupCreateOrUpdateResponse = + WorkspaceGroupCreateOrUpdateHeaders & GroupContract; /** Optional parameters. */ -export interface ProductApiDeleteOptionalParams +export interface WorkspaceGroupUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the update operation. */ +export type WorkspaceGroupUpdateResponse = WorkspaceGroupUpdateHeaders & + GroupContract; + /** Optional parameters. */ -export interface ProductApiListByProductNextOptionalParams +export interface WorkspaceGroupDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByProductNext operation. */ -export type ProductApiListByProductNextResponse = ApiCollection; +/** Optional parameters. */ +export interface WorkspaceGroupListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceGroupListByServiceNextResponse = GroupCollection; /** Optional parameters. */ -export interface ProductGroupListByProductOptionalParams +export interface WorkspaceGroupUserListOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | |
| displayName | filter | eq, ne | |
| description | filter | eq, ne | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| firstName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| lastName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| email | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| registrationDate | filter | ge, le, eq, ne, gt, lt | |
| note | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -10547,38 +13718,38 @@ export interface ProductGroupListByProductOptionalParams skip?: number; } -/** Contains response data for the listByProduct operation. */ -export type ProductGroupListByProductResponse = GroupCollection; +/** Contains response data for the list operation. */ +export type WorkspaceGroupUserListResponse = UserCollection; /** Optional parameters. */ -export interface ProductGroupCheckEntityExistsOptionalParams +export interface WorkspaceGroupUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the checkEntityExists operation. */ -export type ProductGroupCheckEntityExistsResponse = { +export type WorkspaceGroupUserCheckEntityExistsResponse = { body: boolean; }; /** Optional parameters. */ -export interface ProductGroupCreateOrUpdateOptionalParams +export interface WorkspaceGroupUserCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ProductGroupCreateOrUpdateResponse = GroupContract; +/** Contains response data for the create operation. */ +export type WorkspaceGroupUserCreateResponse = UserContract; /** Optional parameters. */ -export interface ProductGroupDeleteOptionalParams +export interface WorkspaceGroupUserDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ProductGroupListByProductNextOptionalParams +export interface WorkspaceGroupUserListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByProductNext operation. */ -export type ProductGroupListByProductNextResponse = GroupCollection; +/** Contains response data for the listNext operation. */ +export type WorkspaceGroupUserListNextResponse = UserCollection; /** Optional parameters. */ -export interface ProductSubscriptionsListOptionalParams +export interface WorkspaceSubscriptionListOptionalParams extends coreClient.OperationOptions { /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| user | expand | | |
*/ filter?: string; @@ -10589,94 +13760,91 @@ export interface ProductSubscriptionsListOptionalParams } /** Contains response data for the list operation. */ -export type ProductSubscriptionsListResponse = SubscriptionCollection; - -/** Optional parameters. */ -export interface ProductSubscriptionsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ProductSubscriptionsListNextResponse = SubscriptionCollection; - -/** Optional parameters. */ -export interface ProductPolicyListByProductOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByProduct operation. */ -export type ProductPolicyListByProductResponse = PolicyCollection; +export type WorkspaceSubscriptionListResponse = SubscriptionCollection; /** Optional parameters. */ -export interface ProductPolicyGetEntityTagOptionalParams +export interface WorkspaceSubscriptionGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ProductPolicyGetEntityTagResponse = ProductPolicyGetEntityTagHeaders; +export type WorkspaceSubscriptionGetEntityTagResponse = + WorkspaceSubscriptionGetEntityTagHeaders; /** Optional parameters. */ -export interface ProductPolicyGetOptionalParams - extends coreClient.OperationOptions { - /** Policy Export Format. */ - format?: PolicyExportFormat; -} +export interface WorkspaceSubscriptionGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ProductPolicyGetResponse = ProductPolicyGetHeaders & PolicyContract; +export type WorkspaceSubscriptionGetResponse = WorkspaceSubscriptionGetHeaders & + SubscriptionContract; /** Optional parameters. */ -export interface ProductPolicyCreateOrUpdateOptionalParams +export interface WorkspaceSubscriptionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** + * Notify change in Subscription State. + * - If false, do not send any email notification for change of state of subscription + * - If true, send email notification of change of state of subscription + */ + notify?: boolean; + /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ + appType?: AppType; } /** Contains response data for the createOrUpdate operation. */ -export type ProductPolicyCreateOrUpdateResponse = ProductPolicyCreateOrUpdateHeaders & - PolicyContract; +export type WorkspaceSubscriptionCreateOrUpdateResponse = + WorkspaceSubscriptionCreateOrUpdateHeaders & SubscriptionContract; /** Optional parameters. */ -export interface ProductPolicyDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceSubscriptionUpdateOptionalParams + extends coreClient.OperationOptions { + /** + * Notify change in Subscription State. + * - If false, do not send any email notification for change of state of subscription + * - If true, send email notification of change of state of subscription + */ + notify?: boolean; + /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ + appType?: AppType; +} + +/** Contains response data for the update operation. */ +export type WorkspaceSubscriptionUpdateResponse = + WorkspaceSubscriptionUpdateHeaders & SubscriptionContract; /** Optional parameters. */ -export interface ProductWikiGetEntityTagOptionalParams +export interface WorkspaceSubscriptionDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type ProductWikiGetEntityTagResponse = ProductWikiGetEntityTagHeaders; - /** Optional parameters. */ -export interface ProductWikiGetOptionalParams +export interface WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ProductWikiGetResponse = ProductWikiGetHeaders & WikiContract; - /** Optional parameters. */ -export interface ProductWikiCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ProductWikiCreateOrUpdateResponse = ProductWikiCreateOrUpdateHeaders & - WikiContract; +export interface WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ProductWikiUpdateOptionalParams +export interface WorkspaceSubscriptionListSecretsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ProductWikiUpdateResponse = ProductWikiUpdateHeaders & WikiContract; +/** Contains response data for the listSecrets operation. */ +export type WorkspaceSubscriptionListSecretsResponse = + WorkspaceSubscriptionListSecretsHeaders & SubscriptionKeysContract; /** Optional parameters. */ -export interface ProductWikiDeleteOptionalParams +export interface WorkspaceSubscriptionListNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listNext operation. */ +export type WorkspaceSubscriptionListNextResponse = SubscriptionCollection; + /** Optional parameters. */ -export interface ProductWikisListOptionalParams +export interface WorkspaceApiVersionSetListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -10684,314 +13852,372 @@ export interface ProductWikisListOptionalParams skip?: number; } -/** Contains response data for the list operation. */ -export type ProductWikisListResponse = ProductWikisListHeaders & WikiCollection; - -/** Optional parameters. */ -export interface ProductWikisListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ProductWikisListNextResponse = ProductWikisListNextHeaders & - WikiCollection; +/** Contains response data for the listByService operation. */ +export type WorkspaceApiVersionSetListByServiceResponse = + ApiVersionSetCollection; /** Optional parameters. */ -export interface QuotaByCounterKeysListByServiceOptionalParams +export interface WorkspaceApiVersionSetGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type QuotaByCounterKeysListByServiceResponse = QuotaCounterCollection; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceApiVersionSetGetEntityTagResponse = + WorkspaceApiVersionSetGetEntityTagHeaders; /** Optional parameters. */ -export interface QuotaByCounterKeysUpdateOptionalParams +export interface WorkspaceApiVersionSetGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type QuotaByCounterKeysUpdateResponse = QuotaCounterCollection; +/** Contains response data for the get operation. */ +export type WorkspaceApiVersionSetGetResponse = + WorkspaceApiVersionSetGetHeaders & ApiVersionSetContract; /** Optional parameters. */ -export interface QuotaByPeriodKeysGetOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceApiVersionSetCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} -/** Contains response data for the get operation. */ -export type QuotaByPeriodKeysGetResponse = QuotaCounterContract; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceApiVersionSetCreateOrUpdateResponse = + WorkspaceApiVersionSetCreateOrUpdateHeaders & ApiVersionSetContract; /** Optional parameters. */ -export interface QuotaByPeriodKeysUpdateOptionalParams +export interface WorkspaceApiVersionSetUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type QuotaByPeriodKeysUpdateResponse = QuotaCounterContract; +export type WorkspaceApiVersionSetUpdateResponse = + WorkspaceApiVersionSetUpdateHeaders & ApiVersionSetContract; /** Optional parameters. */ -export interface RegionListByServiceOptionalParams +export interface WorkspaceApiVersionSetDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type RegionListByServiceResponse = RegionListResult; - /** Optional parameters. */ -export interface RegionListByServiceNextOptionalParams +export interface WorkspaceApiVersionSetListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type RegionListByServiceNextResponse = RegionListResult; +export type WorkspaceApiVersionSetListByServiceNextResponse = + ApiVersionSetCollection; /** Optional parameters. */ -export interface ReportsListByApiOptionalParams +export interface WorkspaceApiListByServiceOptionalParams extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| isCurrent | filter | eq, ne | |
*/ + filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** OData order by query option. */ - orderby?: string; + /** Include tags in the response. */ + tags?: string; + /** Include full ApiVersionSet resource in response */ + expandApiVersionSet?: boolean; } -/** Contains response data for the listByApi operation. */ -export type ReportsListByApiResponse = ReportCollection; +/** Contains response data for the listByService operation. */ +export type WorkspaceApiListByServiceResponse = ApiCollection; /** Optional parameters. */ -export interface ReportsListByUserOptionalParams - extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** OData order by query option. */ - orderby?: string; -} +export interface WorkspaceApiGetEntityTagOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByUser operation. */ -export type ReportsListByUserResponse = ReportCollection; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceApiGetEntityTagResponse = WorkspaceApiGetEntityTagHeaders; /** Optional parameters. */ -export interface ReportsListByOperationOptionalParams - extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** OData order by query option. */ - orderby?: string; -} +export interface WorkspaceApiGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByOperation operation. */ -export type ReportsListByOperationResponse = ReportCollection; +/** Contains response data for the get operation. */ +export type WorkspaceApiGetResponse = WorkspaceApiGetHeaders & ApiContract; /** Optional parameters. */ -export interface ReportsListByProductOptionalParams +export interface WorkspaceApiCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** OData order by query option. */ - orderby?: string; + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByProduct operation. */ -export type ReportsListByProductResponse = ReportCollection; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceApiCreateOrUpdateResponse = + WorkspaceApiCreateOrUpdateHeaders & ApiContract; /** Optional parameters. */ -export interface ReportsListByGeoOptionalParams - extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +export interface WorkspaceApiUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByGeo operation. */ -export type ReportsListByGeoResponse = ReportCollection; +/** Contains response data for the update operation. */ +export type WorkspaceApiUpdateResponse = WorkspaceApiUpdateHeaders & + ApiContract; /** Optional parameters. */ -export interface ReportsListBySubscriptionOptionalParams +export interface WorkspaceApiDeleteOptionalParams extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** OData order by query option. */ - orderby?: string; + /** Delete all revisions of the Api. */ + deleteRevisions?: boolean; } -/** Contains response data for the listBySubscription operation. */ -export type ReportsListBySubscriptionResponse = ReportCollection; +/** Optional parameters. */ +export interface WorkspaceApiListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceApiListByServiceNextResponse = ApiCollection; /** Optional parameters. */ -export interface ReportsListByTimeOptionalParams +export interface WorkspaceApiRevisionListByServiceOptionalParams extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** OData order by query option. */ - orderby?: string; } -/** Contains response data for the listByTime operation. */ -export type ReportsListByTimeResponse = ReportCollection; +/** Contains response data for the listByService operation. */ +export type WorkspaceApiRevisionListByServiceResponse = ApiRevisionCollection; /** Optional parameters. */ -export interface ReportsListByRequestOptionalParams +export interface WorkspaceApiRevisionListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceApiRevisionListByServiceNextResponse = + ApiRevisionCollection; + +/** Optional parameters. */ +export interface WorkspaceApiReleaseListByServiceOptionalParams extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| notes | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; } -/** Contains response data for the listByRequest operation. */ -export type ReportsListByRequestResponse = RequestReportCollection; - -/** Optional parameters. */ -export interface ReportsListByApiNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByApiNext operation. */ -export type ReportsListByApiNextResponse = ReportCollection; +/** Contains response data for the listByService operation. */ +export type WorkspaceApiReleaseListByServiceResponse = ApiReleaseCollection; /** Optional parameters. */ -export interface ReportsListByUserNextOptionalParams +export interface WorkspaceApiReleaseGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByUserNext operation. */ -export type ReportsListByUserNextResponse = ReportCollection; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceApiReleaseGetEntityTagResponse = + WorkspaceApiReleaseGetEntityTagHeaders; /** Optional parameters. */ -export interface ReportsListByOperationNextOptionalParams +export interface WorkspaceApiReleaseGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByOperationNext operation. */ -export type ReportsListByOperationNextResponse = ReportCollection; +/** Contains response data for the get operation. */ +export type WorkspaceApiReleaseGetResponse = WorkspaceApiReleaseGetHeaders & + ApiReleaseContract; /** Optional parameters. */ -export interface ReportsListByProductNextOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceApiReleaseCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} -/** Contains response data for the listByProductNext operation. */ -export type ReportsListByProductNextResponse = ReportCollection; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceApiReleaseCreateOrUpdateResponse = + WorkspaceApiReleaseCreateOrUpdateHeaders & ApiReleaseContract; /** Optional parameters. */ -export interface ReportsListByGeoNextOptionalParams +export interface WorkspaceApiReleaseUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByGeoNext operation. */ -export type ReportsListByGeoNextResponse = ReportCollection; +/** Contains response data for the update operation. */ +export type WorkspaceApiReleaseUpdateResponse = + WorkspaceApiReleaseUpdateHeaders & ApiReleaseContract; /** Optional parameters. */ -export interface ReportsListBySubscriptionNextOptionalParams +export interface WorkspaceApiReleaseDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type ReportsListBySubscriptionNextResponse = ReportCollection; - /** Optional parameters. */ -export interface ReportsListByTimeNextOptionalParams +export interface WorkspaceApiReleaseListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTimeNext operation. */ -export type ReportsListByTimeNextResponse = ReportCollection; +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceApiReleaseListByServiceNextResponse = ApiReleaseCollection; /** Optional parameters. */ -export interface GlobalSchemaListByServiceOptionalParams +export interface WorkspaceApiOperationListByApiOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; + /** Include tags in the response. */ + tags?: string; } -/** Contains response data for the listByService operation. */ -export type GlobalSchemaListByServiceResponse = GlobalSchemaCollection; +/** Contains response data for the listByApi operation. */ +export type WorkspaceApiOperationListByApiResponse = OperationCollection; /** Optional parameters. */ -export interface GlobalSchemaGetEntityTagOptionalParams +export interface WorkspaceApiOperationGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type GlobalSchemaGetEntityTagResponse = GlobalSchemaGetEntityTagHeaders; +export type WorkspaceApiOperationGetEntityTagResponse = + WorkspaceApiOperationGetEntityTagHeaders; /** Optional parameters. */ -export interface GlobalSchemaGetOptionalParams +export interface WorkspaceApiOperationGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type GlobalSchemaGetResponse = GlobalSchemaGetHeaders & - GlobalSchemaContract; +export type WorkspaceApiOperationGetResponse = WorkspaceApiOperationGetHeaders & + OperationContract; /** Optional parameters. */ -export interface GlobalSchemaCreateOrUpdateOptionalParams +export interface WorkspaceApiOperationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ -export type GlobalSchemaCreateOrUpdateResponse = GlobalSchemaCreateOrUpdateHeaders & - GlobalSchemaContract; +export type WorkspaceApiOperationCreateOrUpdateResponse = + WorkspaceApiOperationCreateOrUpdateHeaders & OperationContract; /** Optional parameters. */ -export interface GlobalSchemaDeleteOptionalParams +export interface WorkspaceApiOperationUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the update operation. */ +export type WorkspaceApiOperationUpdateResponse = + WorkspaceApiOperationUpdateHeaders & OperationContract; + /** Optional parameters. */ -export interface GlobalSchemaListByServiceNextOptionalParams +export interface WorkspaceApiOperationDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type GlobalSchemaListByServiceNextResponse = GlobalSchemaCollection; +/** Optional parameters. */ +export interface WorkspaceApiOperationListByApiNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApiNext operation. */ +export type WorkspaceApiOperationListByApiNextResponse = OperationCollection; /** Optional parameters. */ -export interface TenantSettingsListByServiceOptionalParams +export interface WorkspaceApiOperationPolicyListByOperationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByOperation operation. */ +export type WorkspaceApiOperationPolicyListByOperationResponse = + PolicyCollection; + +/** Optional parameters. */ +export interface WorkspaceApiOperationPolicyGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceApiOperationPolicyGetEntityTagResponse = + WorkspaceApiOperationPolicyGetEntityTagHeaders; + +/** Optional parameters. */ +export interface WorkspaceApiOperationPolicyGetOptionalParams extends coreClient.OperationOptions { - /** Not used */ - filter?: string; + /** Policy Export Format. */ + format?: PolicyExportFormat; } -/** Contains response data for the listByService operation. */ -export type TenantSettingsListByServiceResponse = TenantSettingsCollection; +/** Contains response data for the get operation. */ +export type WorkspaceApiOperationPolicyGetResponse = + WorkspaceApiOperationPolicyGetHeaders & PolicyContract; /** Optional parameters. */ -export interface TenantSettingsGetOptionalParams +export interface WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceApiOperationPolicyCreateOrUpdateResponse = + WorkspaceApiOperationPolicyCreateOrUpdateHeaders & PolicyContract; + +/** Optional parameters. */ +export interface WorkspaceApiOperationPolicyDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type TenantSettingsGetResponse = TenantSettingsGetHeaders & - TenantSettingsContract; +/** Optional parameters. */ +export interface WorkspaceApiOperationPolicyListByOperationNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByOperationNext operation. */ +export type WorkspaceApiOperationPolicyListByOperationNextResponse = + PolicyCollection; /** Optional parameters. */ -export interface TenantSettingsListByServiceNextOptionalParams +export interface WorkspaceApiPolicyListByApiOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type TenantSettingsListByServiceNextResponse = TenantSettingsCollection; +/** Contains response data for the listByApi operation. */ +export type WorkspaceApiPolicyListByApiResponse = PolicyCollection; /** Optional parameters. */ -export interface ApiManagementSkusListOptionalParams +export interface WorkspaceApiPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ApiManagementSkusListResponse = ApiManagementSkusResult; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceApiPolicyGetEntityTagResponse = + WorkspaceApiPolicyGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiManagementSkusListNextOptionalParams +export interface WorkspaceApiPolicyGetOptionalParams + extends coreClient.OperationOptions { + /** Policy Export Format. */ + format?: PolicyExportFormat; +} + +/** Contains response data for the get operation. */ +export type WorkspaceApiPolicyGetResponse = WorkspaceApiPolicyGetHeaders & + PolicyContract; + +/** Optional parameters. */ +export interface WorkspaceApiPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceApiPolicyCreateOrUpdateResponse = + WorkspaceApiPolicyCreateOrUpdateHeaders & PolicyContract; + +/** Optional parameters. */ +export interface WorkspaceApiPolicyDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ApiManagementSkusListNextResponse = ApiManagementSkusResult; +/** Optional parameters. */ +export interface WorkspaceApiPolicyListByApiNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApiNext operation. */ +export type WorkspaceApiPolicyListByApiNextResponse = PolicyCollection; /** Optional parameters. */ -export interface SubscriptionListOptionalParams +export interface WorkspaceApiSchemaListByApiOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| user | expand | | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| contentType | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -10999,306 +14225,313 @@ export interface SubscriptionListOptionalParams skip?: number; } -/** Contains response data for the list operation. */ -export type SubscriptionListResponse = SubscriptionCollection; +/** Contains response data for the listByApi operation. */ +export type WorkspaceApiSchemaListByApiResponse = SchemaCollection; /** Optional parameters. */ -export interface SubscriptionGetEntityTagOptionalParams +export interface WorkspaceApiSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type SubscriptionGetEntityTagResponse = SubscriptionGetEntityTagHeaders; +export type WorkspaceApiSchemaGetEntityTagResponse = + WorkspaceApiSchemaGetEntityTagHeaders; /** Optional parameters. */ -export interface SubscriptionGetOptionalParams +export interface WorkspaceApiSchemaGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SubscriptionGetResponse = SubscriptionGetHeaders & - SubscriptionContract; +export type WorkspaceApiSchemaGetResponse = WorkspaceApiSchemaGetHeaders & + SchemaContract; /** Optional parameters. */ -export interface SubscriptionCreateOrUpdateOptionalParams +export interface WorkspaceApiSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; - /** - * Notify change in Subscription State. - * - If false, do not send any email notification for change of state of subscription - * - If true, send email notification of change of state of subscription - */ - notify?: boolean; - /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ - appType?: AppType; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ -export type SubscriptionCreateOrUpdateResponse = SubscriptionCreateOrUpdateHeaders & - SubscriptionContract; +export type WorkspaceApiSchemaCreateOrUpdateResponse = + WorkspaceApiSchemaCreateOrUpdateHeaders & SchemaContract; /** Optional parameters. */ -export interface SubscriptionUpdateOptionalParams +export interface WorkspaceApiSchemaDeleteOptionalParams extends coreClient.OperationOptions { - /** - * Notify change in Subscription State. - * - If false, do not send any email notification for change of state of subscription - * - If true, send email notification of change of state of subscription - */ - notify?: boolean; - /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ - appType?: AppType; + /** If true removes all references to the schema before deleting it. */ + force?: boolean; } -/** Contains response data for the update operation. */ -export type SubscriptionUpdateResponse = SubscriptionUpdateHeaders & - SubscriptionContract; - /** Optional parameters. */ -export interface SubscriptionDeleteOptionalParams +export interface WorkspaceApiSchemaListByApiNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByApiNext operation. */ +export type WorkspaceApiSchemaListByApiNextResponse = SchemaCollection; + +/** Optional parameters. */ +export interface WorkspaceProductListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| groups | expand | | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Products which are part of a specific tag. */ + tags?: string; + /** When set to true, the response contains an array of groups that have visibility to the product. The default is false. */ + expandGroups?: boolean; +} + +/** Contains response data for the listByService operation. */ +export type WorkspaceProductListByServiceResponse = ProductCollection; + /** Optional parameters. */ -export interface SubscriptionRegeneratePrimaryKeyOptionalParams +export interface WorkspaceProductGetEntityTagOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceProductGetEntityTagResponse = + WorkspaceProductGetEntityTagHeaders; + /** Optional parameters. */ -export interface SubscriptionRegenerateSecondaryKeyOptionalParams +export interface WorkspaceProductGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type WorkspaceProductGetResponse = WorkspaceProductGetHeaders & + ProductContract; + /** Optional parameters. */ -export interface SubscriptionListSecretsOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceProductCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} -/** Contains response data for the listSecrets operation. */ -export type SubscriptionListSecretsResponse = SubscriptionListSecretsHeaders & - SubscriptionKeysContract; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceProductCreateOrUpdateResponse = + WorkspaceProductCreateOrUpdateHeaders & ProductContract; /** Optional parameters. */ -export interface SubscriptionListNextOptionalParams +export interface WorkspaceProductUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type SubscriptionListNextResponse = SubscriptionCollection; +/** Contains response data for the update operation. */ +export type WorkspaceProductUpdateResponse = WorkspaceProductUpdateHeaders & + ProductContract; /** Optional parameters. */ -export interface TagResourceListByServiceOptionalParams +export interface WorkspaceProductDeleteOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| aid | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| isCurrent | filter | eq | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; + /** Delete existing subscriptions associated with the product or not. */ + deleteSubscriptions?: boolean; } -/** Contains response data for the listByService operation. */ -export type TagResourceListByServiceResponse = TagResourceCollection; - /** Optional parameters. */ -export interface TagResourceListByServiceNextOptionalParams +export interface WorkspaceProductListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type TagResourceListByServiceNextResponse = TagResourceCollection; +export type WorkspaceProductListByServiceNextResponse = ProductCollection; /** Optional parameters. */ -export interface TenantAccessListByServiceOptionalParams +export interface WorkspaceProductApiLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** Not used */ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the listByService operation. */ -export type TenantAccessListByServiceResponse = AccessInformationCollection; +/** Contains response data for the listByProduct operation. */ +export type WorkspaceProductApiLinkListByProductResponse = + ProductApiLinkCollection; /** Optional parameters. */ -export interface TenantAccessGetEntityTagOptionalParams +export interface WorkspaceProductApiLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type TenantAccessGetEntityTagResponse = TenantAccessGetEntityTagHeaders; +/** Contains response data for the get operation. */ +export type WorkspaceProductApiLinkGetResponse = + WorkspaceProductApiLinkGetHeaders & ProductApiLinkContract; /** Optional parameters. */ -export interface TenantAccessGetOptionalParams +export interface WorkspaceProductApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type TenantAccessGetResponse = TenantAccessGetHeaders & - AccessInformationContract; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceProductApiLinkCreateOrUpdateResponse = + ProductApiLinkContract; /** Optional parameters. */ -export interface TenantAccessCreateOptionalParams +export interface WorkspaceProductApiLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type TenantAccessCreateResponse = TenantAccessCreateHeaders & - AccessInformationContract; - /** Optional parameters. */ -export interface TenantAccessUpdateOptionalParams +export interface WorkspaceProductApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type TenantAccessUpdateResponse = TenantAccessUpdateHeaders & - AccessInformationContract; +/** Contains response data for the listByProductNext operation. */ +export type WorkspaceProductApiLinkListByProductNextResponse = + ProductApiLinkCollection; /** Optional parameters. */ -export interface TenantAccessRegeneratePrimaryKeyOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceProductGroupLinkListByProductOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| groupId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByProduct operation. */ +export type WorkspaceProductGroupLinkListByProductResponse = + ProductGroupLinkCollection; /** Optional parameters. */ -export interface TenantAccessRegenerateSecondaryKeyOptionalParams +export interface WorkspaceProductGroupLinkGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type WorkspaceProductGroupLinkGetResponse = + WorkspaceProductGroupLinkGetHeaders & ProductGroupLinkContract; + /** Optional parameters. */ -export interface TenantAccessListSecretsOptionalParams +export interface WorkspaceProductGroupLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSecrets operation. */ -export type TenantAccessListSecretsResponse = TenantAccessListSecretsHeaders & - AccessInformationSecretsContract; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceProductGroupLinkCreateOrUpdateResponse = + ProductGroupLinkContract; /** Optional parameters. */ -export interface TenantAccessListByServiceNextOptionalParams +export interface WorkspaceProductGroupLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type TenantAccessListByServiceNextResponse = AccessInformationCollection; - /** Optional parameters. */ -export interface TenantAccessGitRegeneratePrimaryKeyOptionalParams +export interface WorkspaceProductGroupLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByProductNext operation. */ +export type WorkspaceProductGroupLinkListByProductNextResponse = + ProductGroupLinkCollection; + /** Optional parameters. */ -export interface TenantAccessGitRegenerateSecondaryKeyOptionalParams +export interface WorkspaceProductPolicyListByProductOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByProduct operation. */ +export type WorkspaceProductPolicyListByProductResponse = PolicyCollection; + /** Optional parameters. */ -export interface TenantConfigurationDeployOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface WorkspaceProductPolicyGetEntityTagOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the deploy operation. */ -export type TenantConfigurationDeployResponse = OperationResultContract; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceProductPolicyGetEntityTagResponse = + WorkspaceProductPolicyGetEntityTagHeaders; /** Optional parameters. */ -export interface TenantConfigurationSaveOptionalParams +export interface WorkspaceProductPolicyGetOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Policy Export Format. */ + format?: PolicyExportFormat; } -/** Contains response data for the save operation. */ -export type TenantConfigurationSaveResponse = OperationResultContract; +/** Contains response data for the get operation. */ +export type WorkspaceProductPolicyGetResponse = + WorkspaceProductPolicyGetHeaders & PolicyContract; /** Optional parameters. */ -export interface TenantConfigurationValidateOptionalParams +export interface WorkspaceProductPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; } -/** Contains response data for the validate operation. */ -export type TenantConfigurationValidateResponse = OperationResultContract; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceProductPolicyCreateOrUpdateResponse = + WorkspaceProductPolicyCreateOrUpdateHeaders & PolicyContract; /** Optional parameters. */ -export interface TenantConfigurationGetSyncStateOptionalParams +export interface WorkspaceProductPolicyDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getSyncState operation. */ -export type TenantConfigurationGetSyncStateResponse = TenantConfigurationSyncStateContract; - /** Optional parameters. */ -export interface UserListByServiceOptionalParams +export interface WorkspaceTagListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| firstName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| lastName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| email | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| registrationDate | filter | ge, le, eq, ne, gt, lt | |
| note | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| groups | expand | | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** Detailed Group in response. */ - expandGroups?: boolean; + /** Scope like 'apis', 'products' or 'apis/{apiId} */ + scope?: string; } /** Contains response data for the listByService operation. */ -export type UserListByServiceResponse = UserCollection; +export type WorkspaceTagListByServiceResponse = TagCollection; /** Optional parameters. */ -export interface UserGetEntityTagOptionalParams +export interface WorkspaceTagGetEntityStateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type UserGetEntityTagResponse = UserGetEntityTagHeaders; +/** Contains response data for the getEntityState operation. */ +export type WorkspaceTagGetEntityStateResponse = + WorkspaceTagGetEntityStateHeaders; /** Optional parameters. */ -export interface UserGetOptionalParams extends coreClient.OperationOptions {} +export interface WorkspaceTagGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type UserGetResponse = UserGetHeaders & UserContract; +export type WorkspaceTagGetResponse = WorkspaceTagGetHeaders & TagContract; /** Optional parameters. */ -export interface UserCreateOrUpdateOptionalParams +export interface WorkspaceTagCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; - /** Send an Email notification to the User. */ - notify?: boolean; } /** Contains response data for the createOrUpdate operation. */ -export type UserCreateOrUpdateResponse = UserCreateOrUpdateHeaders & - UserContract; - -/** Optional parameters. */ -export interface UserUpdateOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type UserUpdateResponse = UserUpdateHeaders & UserContract; - -/** Optional parameters. */ -export interface UserDeleteOptionalParams extends coreClient.OperationOptions { - /** Whether to delete user's subscription or not. */ - deleteSubscriptions?: boolean; - /** Send an Account Closed Email notification to the User. */ - notify?: boolean; - /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ - appType?: AppType; -} +export type WorkspaceTagCreateOrUpdateResponse = + WorkspaceTagCreateOrUpdateHeaders & TagContract; /** Optional parameters. */ -export interface UserGenerateSsoUrlOptionalParams +export interface WorkspaceTagUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateSsoUrl operation. */ -export type UserGenerateSsoUrlResponse = GenerateSsoUrlResult; +/** Contains response data for the update operation. */ +export type WorkspaceTagUpdateResponse = WorkspaceTagUpdateHeaders & + TagContract; /** Optional parameters. */ -export interface UserGetSharedAccessTokenOptionalParams +export interface WorkspaceTagDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getSharedAccessToken operation. */ -export type UserGetSharedAccessTokenResponse = UserTokenResult; - /** Optional parameters. */ -export interface UserListByServiceNextOptionalParams +export interface WorkspaceTagListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type UserListByServiceNextResponse = UserCollection; +export type WorkspaceTagListByServiceNextResponse = TagCollection; /** Optional parameters. */ -export interface UserGroupListOptionalParams +export interface WorkspaceTagApiLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|------------------------|-----------------------------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -11306,20 +14539,39 @@ export interface UserGroupListOptionalParams skip?: number; } -/** Contains response data for the list operation. */ -export type UserGroupListResponse = GroupCollection; +/** Contains response data for the listByProduct operation. */ +export type WorkspaceTagApiLinkListByProductResponse = TagApiLinkCollection; /** Optional parameters. */ -export interface UserGroupListNextOptionalParams +export interface WorkspaceTagApiLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type UserGroupListNextResponse = GroupCollection; +/** Contains response data for the get operation. */ +export type WorkspaceTagApiLinkGetResponse = WorkspaceTagApiLinkGetHeaders & + TagApiLinkContract; /** Optional parameters. */ -export interface UserSubscriptionListOptionalParams +export interface WorkspaceTagApiLinkCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceTagApiLinkCreateOrUpdateResponse = TagApiLinkContract; + +/** Optional parameters. */ +export interface WorkspaceTagApiLinkDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface WorkspaceTagApiLinkListByProductNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByProductNext operation. */ +export type WorkspaceTagApiLinkListByProductNextResponse = TagApiLinkCollection; + +/** Optional parameters. */ +export interface WorkspaceTagOperationLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|------------------------|-----------------------------------|
|name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| operationId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -11327,49 +14579,42 @@ export interface UserSubscriptionListOptionalParams skip?: number; } -/** Contains response data for the list operation. */ -export type UserSubscriptionListResponse = SubscriptionCollection; +/** Contains response data for the listByProduct operation. */ +export type WorkspaceTagOperationLinkListByProductResponse = + TagOperationLinkCollection; /** Optional parameters. */ -export interface UserSubscriptionGetOptionalParams +export interface WorkspaceTagOperationLinkGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type UserSubscriptionGetResponse = UserSubscriptionGetHeaders & - SubscriptionContract; +export type WorkspaceTagOperationLinkGetResponse = + WorkspaceTagOperationLinkGetHeaders & TagOperationLinkContract; /** Optional parameters. */ -export interface UserSubscriptionListNextOptionalParams +export interface WorkspaceTagOperationLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type UserSubscriptionListNextResponse = SubscriptionCollection; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceTagOperationLinkCreateOrUpdateResponse = + TagOperationLinkContract; /** Optional parameters. */ -export interface UserIdentitiesListOptionalParams +export interface WorkspaceTagOperationLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type UserIdentitiesListResponse = UserIdentityCollection; - /** Optional parameters. */ -export interface UserIdentitiesListNextOptionalParams +export interface WorkspaceTagOperationLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type UserIdentitiesListNextResponse = UserIdentityCollection; - -/** Optional parameters. */ -export interface UserConfirmationPasswordSendOptionalParams - extends coreClient.OperationOptions { - /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ - appType?: AppType; -} +/** Contains response data for the listByProductNext operation. */ +export type WorkspaceTagOperationLinkListByProductNextResponse = + TagOperationLinkCollection; /** Optional parameters. */ -export interface DocumentationListByServiceOptionalParams +export interface WorkspaceTagProductLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -11377,53 +14622,44 @@ export interface DocumentationListByServiceOptionalParams skip?: number; } -/** Contains response data for the listByService operation. */ -export type DocumentationListByServiceResponse = DocumentationCollection; - -/** Optional parameters. */ -export interface DocumentationGetEntityTagOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getEntityTag operation. */ -export type DocumentationGetEntityTagResponse = DocumentationGetEntityTagHeaders; +/** Contains response data for the listByProduct operation. */ +export type WorkspaceTagProductLinkListByProductResponse = + TagProductLinkCollection; /** Optional parameters. */ -export interface DocumentationGetOptionalParams +export interface WorkspaceTagProductLinkGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DocumentationGetResponse = DocumentationGetHeaders & - DocumentationContract; +export type WorkspaceTagProductLinkGetResponse = + WorkspaceTagProductLinkGetHeaders & TagProductLinkContract; /** Optional parameters. */ -export interface DocumentationCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface WorkspaceTagProductLinkCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type DocumentationCreateOrUpdateResponse = DocumentationCreateOrUpdateHeaders & - DocumentationContract; +export type WorkspaceTagProductLinkCreateOrUpdateResponse = + TagProductLinkContract; /** Optional parameters. */ -export interface DocumentationUpdateOptionalParams +export interface WorkspaceTagProductLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DocumentationUpdateResponse = DocumentationUpdateHeaders & - DocumentationContract; - /** Optional parameters. */ -export interface DocumentationDeleteOptionalParams +export interface WorkspaceTagProductLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByProductNext operation. */ +export type WorkspaceTagProductLinkListByProductNextResponse = + TagProductLinkCollection; + /** Optional parameters. */ -export interface DocumentationListByServiceNextOptionalParams +export interface WorkspaceApiExportGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type DocumentationListByServiceNextResponse = DocumentationCollection; +/** Contains response data for the get operation. */ +export type WorkspaceApiExportGetResponse = ApiExportResult; /** Optional parameters. */ export interface ApiManagementClientOptionalParams diff --git a/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts index 8234e98b768a..c2f980920a39 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts @@ -8,971 +8,1173 @@ import * as coreClient from "@azure/core-client"; -export const ApiCollection: coreClient.CompositeMapper = { - serializedName: "ApiCollection", +export const AllPoliciesCollection: coreClient.CompositeMapper = { + serializedName: "AllPoliciesCollection", type: { name: "Composite", - className: "ApiCollection", + className: "AllPoliciesCollection", modelProperties: { value: { serializedName: "value", - readOnly: true, xmlName: "value", - xmlElementName: "ApiContract", + xmlElementName: "AllPoliciesContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApiContract" - } - } - } - }, - count: { - serializedName: "count", - xmlName: "count", - type: { - name: "Number" - } + className: "AllPoliciesContract", + }, + }, + }, }, nextLink: { serializedName: "nextLink", - readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiVersionSetContractDetails: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetContractDetails", +export const Resource: coreClient.CompositeMapper = { + serializedName: "Resource", type: { name: "Composite", - className: "ApiVersionSetContractDetails", + className: "Resource", modelProperties: { id: { serializedName: "id", + readOnly: true, xmlName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", + readOnly: true, xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, - description: { - serializedName: "description", - xmlName: "description", + type: { + serializedName: "type", + readOnly: true, + xmlName: "type", type: { - name: "String" - } + name: "String", + }, }, - versioningScheme: { - serializedName: "versioningScheme", - xmlName: "versioningScheme", + }, + }, +}; + +export const ErrorResponse: coreClient.CompositeMapper = { + serializedName: "ErrorResponse", + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + code: { + serializedName: "error.code", + xmlName: "error.code", type: { - name: "String" - } + name: "String", + }, }, - versionQueryName: { - serializedName: "versionQueryName", - xmlName: "versionQueryName", + message: { + serializedName: "error.message", + xmlName: "error.message", type: { - name: "String" - } + name: "String", + }, }, - versionHeaderName: { - serializedName: "versionHeaderName", - xmlName: "versionHeaderName", + details: { + serializedName: "error.details", + xmlName: "error.details", + xmlElementName: "ErrorFieldContract", type: { - name: "String" - } - } - } - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorFieldContract", + }, + }, + }, + }, + }, + }, }; -export const ApiEntityBaseContract: coreClient.CompositeMapper = { - serializedName: "ApiEntityBaseContract", +export const ErrorResponseBody: coreClient.CompositeMapper = { + serializedName: "ErrorResponseBody", type: { name: "Composite", - className: "ApiEntityBaseContract", + className: "ErrorResponseBody", modelProperties: { - description: { - serializedName: "description", - xmlName: "description", + code: { + serializedName: "code", + xmlName: "code", type: { - name: "String" - } + name: "String", + }, }, - authenticationSettings: { - serializedName: "authenticationSettings", - xmlName: "authenticationSettings", + message: { + serializedName: "message", + xmlName: "message", type: { - name: "Composite", - className: "AuthenticationSettingsContract" - } + name: "String", + }, }, - subscriptionKeyParameterNames: { - serializedName: "subscriptionKeyParameterNames", - xmlName: "subscriptionKeyParameterNames", + details: { + serializedName: "details", + xmlName: "details", + xmlElementName: "ErrorFieldContract", type: { - name: "Composite", - className: "SubscriptionKeyParameterNamesContract" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorFieldContract", + }, + }, + }, }, - apiType: { - serializedName: "type", - xmlName: "type", + }, + }, +}; + +export const ErrorFieldContract: coreClient.CompositeMapper = { + serializedName: "ErrorFieldContract", + type: { + name: "Composite", + className: "ErrorFieldContract", + modelProperties: { + code: { + serializedName: "code", + xmlName: "code", type: { - name: "String" - } - }, - apiRevision: { - constraints: { - MaxLength: 100, - MinLength: 1 + name: "String", }, - serializedName: "apiRevision", - xmlName: "apiRevision", - type: { - name: "String" - } }, - apiVersion: { - constraints: { - MaxLength: 100 - }, - serializedName: "apiVersion", - xmlName: "apiVersion", + message: { + serializedName: "message", + xmlName: "message", type: { - name: "String" - } + name: "String", + }, }, - isCurrent: { - serializedName: "isCurrent", - xmlName: "isCurrent", + target: { + serializedName: "target", + xmlName: "target", type: { - name: "Boolean" - } + name: "String", + }, }, - isOnline: { - serializedName: "isOnline", + }, + }, +}; + +export const ApiManagementGatewayBaseProperties: coreClient.CompositeMapper = { + serializedName: "ApiManagementGatewayBaseProperties", + type: { + name: "Composite", + className: "ApiManagementGatewayBaseProperties", + modelProperties: { + provisioningState: { + serializedName: "provisioningState", readOnly: true, - xmlName: "isOnline", - type: { - name: "Boolean" - } - }, - apiRevisionDescription: { - constraints: { - MaxLength: 256 - }, - serializedName: "apiRevisionDescription", - xmlName: "apiRevisionDescription", + xmlName: "provisioningState", type: { - name: "String" - } - }, - apiVersionDescription: { - constraints: { - MaxLength: 256 + name: "String", }, - serializedName: "apiVersionDescription", - xmlName: "apiVersionDescription", - type: { - name: "String" - } }, - apiVersionSetId: { - serializedName: "apiVersionSetId", - xmlName: "apiVersionSetId", + targetProvisioningState: { + serializedName: "targetProvisioningState", + readOnly: true, + xmlName: "targetProvisioningState", type: { - name: "String" - } + name: "String", + }, }, - subscriptionRequired: { - serializedName: "subscriptionRequired", - xmlName: "subscriptionRequired", + createdAtUtc: { + serializedName: "createdAtUtc", + readOnly: true, + xmlName: "createdAtUtc", type: { - name: "Boolean" - } + name: "DateTime", + }, }, - termsOfServiceUrl: { - serializedName: "termsOfServiceUrl", - xmlName: "termsOfServiceUrl", + frontend: { + serializedName: "frontend", + xmlName: "frontend", type: { - name: "String" - } + name: "Composite", + className: "FrontendConfiguration", + }, }, - contact: { - serializedName: "contact", - xmlName: "contact", + backend: { + serializedName: "backend", + xmlName: "backend", type: { name: "Composite", - className: "ApiContactInformation" - } + className: "BackendConfiguration", + }, }, - license: { - serializedName: "license", - xmlName: "license", + configurationApi: { + serializedName: "configurationApi", + xmlName: "configurationApi", type: { name: "Composite", - className: "ApiLicenseInformation" - } - } - } - } + className: "GatewayConfigurationApi", + }, + }, + }, + }, }; -export const AuthenticationSettingsContract: coreClient.CompositeMapper = { - serializedName: "AuthenticationSettingsContract", +export const FrontendConfiguration: coreClient.CompositeMapper = { + serializedName: "FrontendConfiguration", type: { name: "Composite", - className: "AuthenticationSettingsContract", + className: "FrontendConfiguration", modelProperties: { - oAuth2: { - serializedName: "oAuth2", - xmlName: "oAuth2", - type: { - name: "Composite", - className: "OAuth2AuthenticationSettingsContract" - } - }, - openid: { - serializedName: "openid", - xmlName: "openid", - type: { - name: "Composite", - className: "OpenIdAuthenticationSettingsContract" - } - }, - oAuth2AuthenticationSettings: { - serializedName: "oAuth2AuthenticationSettings", - xmlName: "oAuth2AuthenticationSettings", - xmlElementName: "OAuth2AuthenticationSettingsContract", + defaultHostname: { + serializedName: "defaultHostname", + readOnly: true, + xmlName: "defaultHostname", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OAuth2AuthenticationSettingsContract" - } - } - } + name: "String", + }, }, - openidAuthenticationSettings: { - serializedName: "openidAuthenticationSettings", - xmlName: "openidAuthenticationSettings", - xmlElementName: "OpenIdAuthenticationSettingsContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OpenIdAuthenticationSettingsContract" - } - } - } - } - } - } + }, + }, }; -export const OAuth2AuthenticationSettingsContract: coreClient.CompositeMapper = { - serializedName: "OAuth2AuthenticationSettingsContract", +export const BackendConfiguration: coreClient.CompositeMapper = { + serializedName: "BackendConfiguration", type: { name: "Composite", - className: "OAuth2AuthenticationSettingsContract", + className: "BackendConfiguration", modelProperties: { - authorizationServerId: { - serializedName: "authorizationServerId", - xmlName: "authorizationServerId", + subnet: { + serializedName: "subnet", + xmlName: "subnet", type: { - name: "String" - } + name: "Composite", + className: "BackendSubnetConfiguration", + }, }, - scope: { - serializedName: "scope", - xmlName: "scope", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const OpenIdAuthenticationSettingsContract: coreClient.CompositeMapper = { - serializedName: "OpenIdAuthenticationSettingsContract", +export const BackendSubnetConfiguration: coreClient.CompositeMapper = { + serializedName: "BackendSubnetConfiguration", type: { name: "Composite", - className: "OpenIdAuthenticationSettingsContract", + className: "BackendSubnetConfiguration", modelProperties: { - openidProviderId: { - serializedName: "openidProviderId", - xmlName: "openidProviderId", + id: { + serializedName: "id", + xmlName: "id", type: { - name: "String" - } + name: "String", + }, }, - bearerTokenSendingMethods: { - serializedName: "bearerTokenSendingMethods", - xmlName: "bearerTokenSendingMethods", - xmlElementName: "BearerTokenSendingMethods", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } + }, + }, }; -export const SubscriptionKeyParameterNamesContract: coreClient.CompositeMapper = { - serializedName: "SubscriptionKeyParameterNamesContract", +export const GatewayConfigurationApi: coreClient.CompositeMapper = { + serializedName: "GatewayConfigurationApi", type: { name: "Composite", - className: "SubscriptionKeyParameterNamesContract", + className: "GatewayConfigurationApi", modelProperties: { - header: { - serializedName: "header", - xmlName: "header", + hostname: { + serializedName: "hostname", + readOnly: true, + xmlName: "hostname", type: { - name: "String" - } + name: "String", + }, }, - query: { - serializedName: "query", - xmlName: "query", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ApiContactInformation: coreClient.CompositeMapper = { - serializedName: "ApiContactInformation", +export const ApiManagementGatewaySkuProperties: coreClient.CompositeMapper = { + serializedName: "ApiManagementGatewaySkuProperties", type: { name: "Composite", - className: "ApiContactInformation", + className: "ApiManagementGatewaySkuProperties", modelProperties: { name: { serializedName: "name", + required: true, xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, - url: { - serializedName: "url", - xmlName: "url", + capacity: { + serializedName: "capacity", + xmlName: "capacity", type: { - name: "String" - } + name: "Number", + }, }, - email: { - serializedName: "email", - xmlName: "email", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ApiLicenseInformation: coreClient.CompositeMapper = { - serializedName: "ApiLicenseInformation", +export const SystemData: coreClient.CompositeMapper = { + serializedName: "SystemData", type: { name: "Composite", - className: "ApiLicenseInformation", + className: "SystemData", modelProperties: { - name: { - serializedName: "name", - xmlName: "name", + createdBy: { + serializedName: "createdBy", + xmlName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, - url: { - serializedName: "url", - xmlName: "url", + createdByType: { + serializedName: "createdByType", + xmlName: "createdByType", + type: { + name: "String", + }, + }, + createdAt: { + serializedName: "createdAt", + xmlName: "createdAt", + type: { + name: "DateTime", + }, + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + xmlName: "lastModifiedBy", + type: { + name: "String", + }, + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + xmlName: "lastModifiedByType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + xmlName: "lastModifiedAt", + type: { + name: "DateTime", + }, + }, + }, + }, }; -export const Resource: coreClient.CompositeMapper = { - serializedName: "Resource", +export const ApimResource: coreClient.CompositeMapper = { + serializedName: "ApimResource", type: { name: "Composite", - className: "Resource", + className: "ApimResource", modelProperties: { id: { serializedName: "id", readOnly: true, xmlName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, xmlName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + tags: { + serializedName: "tags", + xmlName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, }; -export const ErrorResponse: coreClient.CompositeMapper = { - serializedName: "ErrorResponse", +export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { + serializedName: "ErrorResponseAutoGenerated", type: { name: "Composite", - className: "ErrorResponse", + className: "ErrorResponseAutoGenerated", modelProperties: { - code: { - serializedName: "error.code", - xmlName: "error.code", - type: { - name: "String" - } - }, - message: { - serializedName: "error.message", - xmlName: "error.message", + error: { + serializedName: "error", + xmlName: "error", type: { - name: "String" - } + name: "Composite", + className: "ErrorDetail", + }, }, - details: { - serializedName: "error.details", - xmlName: "error.details", - xmlElementName: "ErrorFieldContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorFieldContract" - } - } - } - } - } - } + }, + }, }; -export const ErrorResponseBody: coreClient.CompositeMapper = { - serializedName: "ErrorResponseBody", +export const ErrorDetail: coreClient.CompositeMapper = { + serializedName: "ErrorDetail", type: { name: "Composite", - className: "ErrorResponseBody", + className: "ErrorDetail", modelProperties: { code: { serializedName: "code", + readOnly: true, xmlName: "code", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", + readOnly: true, xmlName: "message", type: { - name: "String" - } + name: "String", + }, + }, + target: { + serializedName: "target", + readOnly: true, + xmlName: "target", + type: { + name: "String", + }, }, details: { serializedName: "details", + readOnly: true, xmlName: "details", - xmlElementName: "ErrorFieldContract", + xmlElementName: "ErrorDetail", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail", + }, + }, + }, + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + xmlName: "additionalInfo", + xmlElementName: "ErrorAdditionalInfo", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ErrorFieldContract" - } - } - } - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; -export const ErrorFieldContract: coreClient.CompositeMapper = { - serializedName: "ErrorFieldContract", +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { + serializedName: "ErrorAdditionalInfo", type: { name: "Composite", - className: "ErrorFieldContract", + className: "ErrorAdditionalInfo", modelProperties: { - code: { - serializedName: "code", - xmlName: "code", + type: { + serializedName: "type", + readOnly: true, + xmlName: "type", type: { - name: "String" - } + name: "String", + }, }, - message: { - serializedName: "message", - xmlName: "message", + info: { + serializedName: "info", + readOnly: true, + xmlName: "info", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "any" } }, + }, }, - target: { - serializedName: "target", - xmlName: "target", + }, + }, +}; + +export const ApiManagementGatewaySkuPropertiesForPatch: coreClient.CompositeMapper = + { + serializedName: "ApiManagementGatewaySkuPropertiesForPatch", + type: { + name: "Composite", + className: "ApiManagementGatewaySkuPropertiesForPatch", + modelProperties: { + name: { + serializedName: "name", + xmlName: "name", + type: { + name: "String", + }, + }, + capacity: { + serializedName: "capacity", + xmlName: "capacity", + type: { + name: "Number", + }, + }, + }, + }, + }; + +export const ApiManagementGatewayListResult: coreClient.CompositeMapper = { + serializedName: "ApiManagementGatewayListResult", + type: { + name: "Composite", + className: "ApiManagementGatewayListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + xmlName: "value", + xmlElementName: "ApiManagementGatewayResource", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiManagementGatewayResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiCreateOrUpdateParameter: coreClient.CompositeMapper = { - serializedName: "ApiCreateOrUpdateParameter", +export const ApiCollection: coreClient.CompositeMapper = { + serializedName: "ApiCollection", type: { name: "Composite", - className: "ApiCreateOrUpdateParameter", + className: "ApiCollection", modelProperties: { - description: { - serializedName: "properties.description", - xmlName: "properties.description", + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "ApiContract", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiContract", + }, + }, + }, }, - authenticationSettings: { - serializedName: "properties.authenticationSettings", - xmlName: "properties.authenticationSettings", + count: { + serializedName: "count", + xmlName: "count", type: { - name: "Composite", - className: "AuthenticationSettingsContract" - } + name: "Number", + }, }, - subscriptionKeyParameterNames: { - serializedName: "properties.subscriptionKeyParameterNames", - xmlName: "properties.subscriptionKeyParameterNames", + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", type: { - name: "Composite", - className: "SubscriptionKeyParameterNamesContract" - } + name: "String", + }, }, - apiType: { - serializedName: "properties.type", - xmlName: "properties.type", + }, + }, +}; + +export const ApiVersionSetContractDetails: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetContractDetails", + type: { + name: "Composite", + className: "ApiVersionSetContractDetails", + modelProperties: { + id: { + serializedName: "id", + xmlName: "id", type: { - name: "String" - } - }, - apiRevision: { - constraints: { - MaxLength: 100, - MinLength: 1 + name: "String", }, - serializedName: "properties.apiRevision", - xmlName: "properties.apiRevision", + }, + name: { + serializedName: "name", + xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, - apiVersion: { - constraints: { - MaxLength: 100 + description: { + serializedName: "description", + xmlName: "description", + type: { + name: "String", }, - serializedName: "properties.apiVersion", - xmlName: "properties.apiVersion", + }, + versioningScheme: { + serializedName: "versioningScheme", + xmlName: "versioningScheme", type: { - name: "String" - } + name: "String", + }, }, - isCurrent: { - serializedName: "properties.isCurrent", - xmlName: "properties.isCurrent", + versionQueryName: { + serializedName: "versionQueryName", + xmlName: "versionQueryName", type: { - name: "Boolean" - } + name: "String", + }, }, - isOnline: { - serializedName: "properties.isOnline", - readOnly: true, - xmlName: "properties.isOnline", + versionHeaderName: { + serializedName: "versionHeaderName", + xmlName: "versionHeaderName", type: { - name: "Boolean" - } + name: "String", + }, + }, + }, + }, +}; + +export const ApiEntityBaseContract: coreClient.CompositeMapper = { + serializedName: "ApiEntityBaseContract", + type: { + name: "Composite", + className: "ApiEntityBaseContract", + modelProperties: { + description: { + serializedName: "description", + xmlName: "description", + type: { + name: "String", + }, + }, + authenticationSettings: { + serializedName: "authenticationSettings", + xmlName: "authenticationSettings", + type: { + name: "Composite", + className: "AuthenticationSettingsContract", + }, + }, + subscriptionKeyParameterNames: { + serializedName: "subscriptionKeyParameterNames", + xmlName: "subscriptionKeyParameterNames", + type: { + name: "Composite", + className: "SubscriptionKeyParameterNamesContract", + }, + }, + apiType: { + serializedName: "type", + xmlName: "type", + type: { + name: "String", + }, + }, + apiRevision: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "apiRevision", + xmlName: "apiRevision", + type: { + name: "String", + }, + }, + apiVersion: { + constraints: { + MaxLength: 100, + }, + serializedName: "apiVersion", + xmlName: "apiVersion", + type: { + name: "String", + }, + }, + isCurrent: { + serializedName: "isCurrent", + xmlName: "isCurrent", + type: { + name: "Boolean", + }, + }, + isOnline: { + serializedName: "isOnline", + readOnly: true, + xmlName: "isOnline", + type: { + name: "Boolean", + }, }, apiRevisionDescription: { constraints: { - MaxLength: 256 + MaxLength: 256, }, - serializedName: "properties.apiRevisionDescription", - xmlName: "properties.apiRevisionDescription", + serializedName: "apiRevisionDescription", + xmlName: "apiRevisionDescription", type: { - name: "String" - } + name: "String", + }, }, apiVersionDescription: { constraints: { - MaxLength: 256 + MaxLength: 256, }, - serializedName: "properties.apiVersionDescription", - xmlName: "properties.apiVersionDescription", + serializedName: "apiVersionDescription", + xmlName: "apiVersionDescription", type: { - name: "String" - } + name: "String", + }, }, apiVersionSetId: { - serializedName: "properties.apiVersionSetId", - xmlName: "properties.apiVersionSetId", + serializedName: "apiVersionSetId", + xmlName: "apiVersionSetId", type: { - name: "String" - } + name: "String", + }, }, subscriptionRequired: { - serializedName: "properties.subscriptionRequired", - xmlName: "properties.subscriptionRequired", + serializedName: "subscriptionRequired", + xmlName: "subscriptionRequired", type: { - name: "Boolean" - } + name: "Boolean", + }, }, termsOfServiceUrl: { - serializedName: "properties.termsOfServiceUrl", - xmlName: "properties.termsOfServiceUrl", + serializedName: "termsOfServiceUrl", + xmlName: "termsOfServiceUrl", type: { - name: "String" - } + name: "String", + }, }, contact: { - serializedName: "properties.contact", - xmlName: "properties.contact", + serializedName: "contact", + xmlName: "contact", type: { name: "Composite", - className: "ApiContactInformation" - } + className: "ApiContactInformation", + }, }, license: { - serializedName: "properties.license", - xmlName: "properties.license", + serializedName: "license", + xmlName: "license", type: { name: "Composite", - className: "ApiLicenseInformation" - } + className: "ApiLicenseInformation", + }, }, - sourceApiId: { - serializedName: "properties.sourceApiId", - xmlName: "properties.sourceApiId", + }, + }, +}; + +export const AuthenticationSettingsContract: coreClient.CompositeMapper = { + serializedName: "AuthenticationSettingsContract", + type: { + name: "Composite", + className: "AuthenticationSettingsContract", + modelProperties: { + oAuth2: { + serializedName: "oAuth2", + xmlName: "oAuth2", type: { - name: "String" - } - }, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 + name: "Composite", + className: "OAuth2AuthenticationSettingsContract", }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", - type: { - name: "String" - } }, - serviceUrl: { - constraints: { - MaxLength: 2000 - }, - serializedName: "properties.serviceUrl", - xmlName: "properties.serviceUrl", + openid: { + serializedName: "openid", + xmlName: "openid", type: { - name: "String" - } - }, - path: { - constraints: { - MaxLength: 400 + name: "Composite", + className: "OpenIdAuthenticationSettingsContract", }, - serializedName: "properties.path", - xmlName: "properties.path", - type: { - name: "String" - } }, - protocols: { - serializedName: "properties.protocols", - xmlName: "properties.protocols", - xmlElementName: "Protocol", + oAuth2AuthenticationSettings: { + serializedName: "oAuth2AuthenticationSettings", + xmlName: "oAuth2AuthenticationSettings", + xmlElementName: "OAuth2AuthenticationSettingsContract", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "Composite", + className: "OAuth2AuthenticationSettingsContract", + }, + }, + }, }, - apiVersionSet: { - serializedName: "properties.apiVersionSet", - xmlName: "properties.apiVersionSet", + openidAuthenticationSettings: { + serializedName: "openidAuthenticationSettings", + xmlName: "openidAuthenticationSettings", + xmlElementName: "OpenIdAuthenticationSettingsContract", type: { - name: "Composite", - className: "ApiVersionSetContractDetails" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OpenIdAuthenticationSettingsContract", + }, + }, + }, }, - value: { - serializedName: "properties.value", - xmlName: "properties.value", - type: { - name: "String" - } + }, + }, +}; + +export const OAuth2AuthenticationSettingsContract: coreClient.CompositeMapper = + { + serializedName: "OAuth2AuthenticationSettingsContract", + type: { + name: "Composite", + className: "OAuth2AuthenticationSettingsContract", + modelProperties: { + authorizationServerId: { + serializedName: "authorizationServerId", + xmlName: "authorizationServerId", + type: { + name: "String", + }, + }, + scope: { + serializedName: "scope", + xmlName: "scope", + type: { + name: "String", + }, + }, }, - format: { - serializedName: "properties.format", - xmlName: "properties.format", - type: { - name: "String" - } + }, + }; + +export const OpenIdAuthenticationSettingsContract: coreClient.CompositeMapper = + { + serializedName: "OpenIdAuthenticationSettingsContract", + type: { + name: "Composite", + className: "OpenIdAuthenticationSettingsContract", + modelProperties: { + openidProviderId: { + serializedName: "openidProviderId", + xmlName: "openidProviderId", + type: { + name: "String", + }, + }, + bearerTokenSendingMethods: { + serializedName: "bearerTokenSendingMethods", + xmlName: "bearerTokenSendingMethods", + xmlElementName: "BearerTokenSendingMethods", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, }, - wsdlSelector: { - serializedName: "properties.wsdlSelector", - xmlName: "properties.wsdlSelector", + }, + }; + +export const SubscriptionKeyParameterNamesContract: coreClient.CompositeMapper = + { + serializedName: "SubscriptionKeyParameterNamesContract", + type: { + name: "Composite", + className: "SubscriptionKeyParameterNamesContract", + modelProperties: { + header: { + serializedName: "header", + xmlName: "header", + type: { + name: "String", + }, + }, + query: { + serializedName: "query", + xmlName: "query", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiContactInformation: coreClient.CompositeMapper = { + serializedName: "ApiContactInformation", + type: { + name: "Composite", + className: "ApiContactInformation", + modelProperties: { + name: { + serializedName: "name", + xmlName: "name", type: { - name: "Composite", - className: "ApiCreateOrUpdatePropertiesWsdlSelector" - } + name: "String", + }, }, - soapApiType: { - serializedName: "properties.apiType", - xmlName: "properties.apiType", + url: { + serializedName: "url", + xmlName: "url", type: { - name: "String" - } + name: "String", + }, }, - translateRequiredQueryParametersConduct: { - serializedName: "properties.translateRequiredQueryParameters", - xmlName: "properties.translateRequiredQueryParameters", + email: { + serializedName: "email", + xmlName: "email", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiCreateOrUpdatePropertiesWsdlSelector: coreClient.CompositeMapper = { - serializedName: "ApiCreateOrUpdatePropertiesWsdlSelector", +export const ApiLicenseInformation: coreClient.CompositeMapper = { + serializedName: "ApiLicenseInformation", type: { name: "Composite", - className: "ApiCreateOrUpdatePropertiesWsdlSelector", + className: "ApiLicenseInformation", modelProperties: { - wsdlServiceName: { - serializedName: "wsdlServiceName", - xmlName: "wsdlServiceName", + name: { + serializedName: "name", + xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, - wsdlEndpointName: { - serializedName: "wsdlEndpointName", - xmlName: "wsdlEndpointName", + url: { + serializedName: "url", + xmlName: "url", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiUpdateContract: coreClient.CompositeMapper = { - serializedName: "ApiUpdateContract", +export const ApiCreateOrUpdateParameter: coreClient.CompositeMapper = { + serializedName: "ApiCreateOrUpdateParameter", type: { name: "Composite", - className: "ApiUpdateContract", + className: "ApiCreateOrUpdateParameter", modelProperties: { description: { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, authenticationSettings: { serializedName: "properties.authenticationSettings", xmlName: "properties.authenticationSettings", type: { name: "Composite", - className: "AuthenticationSettingsContract" - } + className: "AuthenticationSettingsContract", + }, }, subscriptionKeyParameterNames: { serializedName: "properties.subscriptionKeyParameterNames", xmlName: "properties.subscriptionKeyParameterNames", type: { name: "Composite", - className: "SubscriptionKeyParameterNamesContract" - } + className: "SubscriptionKeyParameterNamesContract", + }, }, apiType: { serializedName: "properties.type", xmlName: "properties.type", type: { - name: "String" - } + name: "String", + }, }, apiRevision: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.apiRevision", xmlName: "properties.apiRevision", type: { - name: "String" - } + name: "String", + }, }, apiVersion: { constraints: { - MaxLength: 100 + MaxLength: 100, }, serializedName: "properties.apiVersion", xmlName: "properties.apiVersion", type: { - name: "String" - } + name: "String", + }, }, isCurrent: { serializedName: "properties.isCurrent", xmlName: "properties.isCurrent", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isOnline: { serializedName: "properties.isOnline", readOnly: true, xmlName: "properties.isOnline", type: { - name: "Boolean" - } + name: "Boolean", + }, }, apiRevisionDescription: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "properties.apiRevisionDescription", xmlName: "properties.apiRevisionDescription", type: { - name: "String" - } + name: "String", + }, }, apiVersionDescription: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "properties.apiVersionDescription", xmlName: "properties.apiVersionDescription", type: { - name: "String" - } + name: "String", + }, }, apiVersionSetId: { serializedName: "properties.apiVersionSetId", xmlName: "properties.apiVersionSetId", type: { - name: "String" - } + name: "String", + }, }, subscriptionRequired: { serializedName: "properties.subscriptionRequired", xmlName: "properties.subscriptionRequired", type: { - name: "Boolean" - } + name: "Boolean", + }, }, termsOfServiceUrl: { serializedName: "properties.termsOfServiceUrl", xmlName: "properties.termsOfServiceUrl", type: { - name: "String" - } + name: "String", + }, }, contact: { serializedName: "properties.contact", xmlName: "properties.contact", type: { name: "Composite", - className: "ApiContactInformation" - } + className: "ApiContactInformation", + }, }, license: { serializedName: "properties.license", xmlName: "properties.license", type: { name: "Composite", - className: "ApiLicenseInformation" - } + className: "ApiLicenseInformation", + }, + }, + sourceApiId: { + serializedName: "properties.sourceApiId", + xmlName: "properties.sourceApiId", + type: { + name: "String", + }, }, displayName: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, serviceUrl: { constraints: { MaxLength: 2000, - MinLength: 1 }, serializedName: "properties.serviceUrl", xmlName: "properties.serviceUrl", type: { - name: "String" - } + name: "String", + }, }, path: { constraints: { - MaxLength: 400 + MaxLength: 400, }, serializedName: "properties.path", xmlName: "properties.path", type: { - name: "String" - } + name: "String", + }, }, protocols: { serializedName: "properties.protocols", @@ -982,17 +1184,272 @@ export const ApiUpdateContract: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } -}; - -export const ApiRevisionCollection: coreClient.CompositeMapper = { - serializedName: "ApiRevisionCollection", + name: "String", + }, + }, + }, + }, + apiVersionSet: { + serializedName: "properties.apiVersionSet", + xmlName: "properties.apiVersionSet", + type: { + name: "Composite", + className: "ApiVersionSetContractDetails", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", + type: { + name: "String", + }, + }, + value: { + serializedName: "properties.value", + xmlName: "properties.value", + type: { + name: "String", + }, + }, + format: { + serializedName: "properties.format", + xmlName: "properties.format", + type: { + name: "String", + }, + }, + wsdlSelector: { + serializedName: "properties.wsdlSelector", + xmlName: "properties.wsdlSelector", + type: { + name: "Composite", + className: "ApiCreateOrUpdatePropertiesWsdlSelector", + }, + }, + soapApiType: { + serializedName: "properties.apiType", + xmlName: "properties.apiType", + type: { + name: "String", + }, + }, + translateRequiredQueryParametersConduct: { + serializedName: "properties.translateRequiredQueryParameters", + xmlName: "properties.translateRequiredQueryParameters", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ApiCreateOrUpdatePropertiesWsdlSelector: coreClient.CompositeMapper = + { + serializedName: "ApiCreateOrUpdatePropertiesWsdlSelector", + type: { + name: "Composite", + className: "ApiCreateOrUpdatePropertiesWsdlSelector", + modelProperties: { + wsdlServiceName: { + serializedName: "wsdlServiceName", + xmlName: "wsdlServiceName", + type: { + name: "String", + }, + }, + wsdlEndpointName: { + serializedName: "wsdlEndpointName", + xmlName: "wsdlEndpointName", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiUpdateContract: coreClient.CompositeMapper = { + serializedName: "ApiUpdateContract", + type: { + name: "Composite", + className: "ApiUpdateContract", + modelProperties: { + description: { + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String", + }, + }, + authenticationSettings: { + serializedName: "properties.authenticationSettings", + xmlName: "properties.authenticationSettings", + type: { + name: "Composite", + className: "AuthenticationSettingsContract", + }, + }, + subscriptionKeyParameterNames: { + serializedName: "properties.subscriptionKeyParameterNames", + xmlName: "properties.subscriptionKeyParameterNames", + type: { + name: "Composite", + className: "SubscriptionKeyParameterNamesContract", + }, + }, + apiType: { + serializedName: "properties.type", + xmlName: "properties.type", + type: { + name: "String", + }, + }, + apiRevision: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "properties.apiRevision", + xmlName: "properties.apiRevision", + type: { + name: "String", + }, + }, + apiVersion: { + constraints: { + MaxLength: 100, + }, + serializedName: "properties.apiVersion", + xmlName: "properties.apiVersion", + type: { + name: "String", + }, + }, + isCurrent: { + serializedName: "properties.isCurrent", + xmlName: "properties.isCurrent", + type: { + name: "Boolean", + }, + }, + isOnline: { + serializedName: "properties.isOnline", + readOnly: true, + xmlName: "properties.isOnline", + type: { + name: "Boolean", + }, + }, + apiRevisionDescription: { + constraints: { + MaxLength: 256, + }, + serializedName: "properties.apiRevisionDescription", + xmlName: "properties.apiRevisionDescription", + type: { + name: "String", + }, + }, + apiVersionDescription: { + constraints: { + MaxLength: 256, + }, + serializedName: "properties.apiVersionDescription", + xmlName: "properties.apiVersionDescription", + type: { + name: "String", + }, + }, + apiVersionSetId: { + serializedName: "properties.apiVersionSetId", + xmlName: "properties.apiVersionSetId", + type: { + name: "String", + }, + }, + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + xmlName: "properties.subscriptionRequired", + type: { + name: "Boolean", + }, + }, + termsOfServiceUrl: { + serializedName: "properties.termsOfServiceUrl", + xmlName: "properties.termsOfServiceUrl", + type: { + name: "String", + }, + }, + contact: { + serializedName: "properties.contact", + xmlName: "properties.contact", + type: { + name: "Composite", + className: "ApiContactInformation", + }, + }, + license: { + serializedName: "properties.license", + xmlName: "properties.license", + type: { + name: "Composite", + className: "ApiLicenseInformation", + }, + }, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String", + }, + }, + serviceUrl: { + constraints: { + MaxLength: 2000, + MinLength: 1, + }, + serializedName: "properties.serviceUrl", + xmlName: "properties.serviceUrl", + type: { + name: "String", + }, + }, + path: { + constraints: { + MaxLength: 400, + }, + serializedName: "properties.path", + xmlName: "properties.path", + type: { + name: "String", + }, + }, + protocols: { + serializedName: "properties.protocols", + xmlName: "properties.protocols", + xmlElementName: "Protocol", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const ApiRevisionCollection: coreClient.CompositeMapper = { + serializedName: "ApiRevisionCollection", type: { name: "Composite", className: "ApiRevisionCollection", @@ -1007,28 +1464,28 @@ export const ApiRevisionCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiRevisionContract" - } - } - } + className: "ApiRevisionContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiRevisionContract: coreClient.CompositeMapper = { @@ -1042,74 +1499,74 @@ export const ApiRevisionContract: coreClient.CompositeMapper = { readOnly: true, xmlName: "apiId", type: { - name: "String" - } + name: "String", + }, }, apiRevision: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "apiRevision", readOnly: true, xmlName: "apiRevision", type: { - name: "String" - } + name: "String", + }, }, createdDateTime: { serializedName: "createdDateTime", readOnly: true, xmlName: "createdDateTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, updatedDateTime: { serializedName: "updatedDateTime", readOnly: true, xmlName: "updatedDateTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, description: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "description", readOnly: true, xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, privateUrl: { serializedName: "privateUrl", readOnly: true, xmlName: "privateUrl", type: { - name: "String" - } + name: "String", + }, }, isOnline: { serializedName: "isOnline", readOnly: true, xmlName: "isOnline", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isCurrent: { serializedName: "isCurrent", readOnly: true, xmlName: "isCurrent", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ApiReleaseCollection: coreClient.CompositeMapper = { @@ -1128,28 +1585,28 @@ export const ApiReleaseCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiReleaseContract" - } - } - } + className: "ApiReleaseContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationCollection: coreClient.CompositeMapper = { @@ -1168,28 +1625,28 @@ export const OperationCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OperationContract" - } - } - } + className: "OperationContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationEntityBaseContract: coreClient.CompositeMapper = { @@ -1207,28 +1664,28 @@ export const OperationEntityBaseContract: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ParameterContract" - } - } - } + className: "ParameterContract", + }, + }, + }, }, description: { constraints: { - MaxLength: 1000 + MaxLength: 1000, }, serializedName: "description", xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, request: { serializedName: "request", xmlName: "request", type: { name: "Composite", - className: "RequestContract" - } + className: "RequestContract", + }, }, responses: { serializedName: "responses", @@ -1239,20 +1696,20 @@ export const OperationEntityBaseContract: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResponseContract" - } - } - } + className: "ResponseContract", + }, + }, + }, }, policies: { serializedName: "policies", xmlName: "policies", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ParameterContract: coreClient.CompositeMapper = { @@ -1266,37 +1723,37 @@ export const ParameterContract: coreClient.CompositeMapper = { required: true, xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", required: true, xmlName: "type", type: { - name: "String" - } + name: "String", + }, }, defaultValue: { serializedName: "defaultValue", xmlName: "defaultValue", type: { - name: "String" - } + name: "String", + }, }, required: { serializedName: "required", xmlName: "required", type: { - name: "Boolean" - } + name: "Boolean", + }, }, values: { serializedName: "values", @@ -1306,24 +1763,24 @@ export const ParameterContract: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, schemaId: { serializedName: "schemaId", xmlName: "schemaId", type: { - name: "String" - } + name: "String", + }, }, typeName: { serializedName: "typeName", xmlName: "typeName", type: { - name: "String" - } + name: "String", + }, }, examples: { serializedName: "examples", @@ -1331,12 +1788,12 @@ export const ParameterContract: coreClient.CompositeMapper = { type: { name: "Dictionary", value: { - type: { name: "Composite", className: "ParameterExampleContract" } - } - } - } - } - } + type: { name: "Composite", className: "ParameterExampleContract" }, + }, + }, + }, + }, + }, }; export const ParameterExampleContract: coreClient.CompositeMapper = { @@ -1349,32 +1806,32 @@ export const ParameterExampleContract: coreClient.CompositeMapper = { serializedName: "summary", xmlName: "summary", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", xmlName: "value", type: { - name: "any" - } + name: "any", + }, }, externalValue: { serializedName: "externalValue", xmlName: "externalValue", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RequestContract: coreClient.CompositeMapper = { @@ -1387,8 +1844,8 @@ export const RequestContract: coreClient.CompositeMapper = { serializedName: "description", xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, queryParameters: { serializedName: "queryParameters", @@ -1399,10 +1856,10 @@ export const RequestContract: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ParameterContract" - } - } - } + className: "ParameterContract", + }, + }, + }, }, headers: { serializedName: "headers", @@ -1413,10 +1870,10 @@ export const RequestContract: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ParameterContract" - } - } - } + className: "ParameterContract", + }, + }, + }, }, representations: { serializedName: "representations", @@ -1427,13 +1884,13 @@ export const RequestContract: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RepresentationContract" - } - } - } - } - } - } + className: "RepresentationContract", + }, + }, + }, + }, + }, + }, }; export const RepresentationContract: coreClient.CompositeMapper = { @@ -1447,22 +1904,22 @@ export const RepresentationContract: coreClient.CompositeMapper = { required: true, xmlName: "contentType", type: { - name: "String" - } + name: "String", + }, }, schemaId: { serializedName: "schemaId", xmlName: "schemaId", type: { - name: "String" - } + name: "String", + }, }, typeName: { serializedName: "typeName", xmlName: "typeName", type: { - name: "String" - } + name: "String", + }, }, formParameters: { serializedName: "formParameters", @@ -1473,10 +1930,10 @@ export const RepresentationContract: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ParameterContract" - } - } - } + className: "ParameterContract", + }, + }, + }, }, examples: { serializedName: "examples", @@ -1484,12 +1941,12 @@ export const RepresentationContract: coreClient.CompositeMapper = { type: { name: "Dictionary", value: { - type: { name: "Composite", className: "ParameterExampleContract" } - } - } - } - } - } + type: { name: "Composite", className: "ParameterExampleContract" }, + }, + }, + }, + }, + }, }; export const ResponseContract: coreClient.CompositeMapper = { @@ -1503,15 +1960,15 @@ export const ResponseContract: coreClient.CompositeMapper = { required: true, xmlName: "statusCode", type: { - name: "Number" - } + name: "Number", + }, }, description: { serializedName: "description", xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, representations: { serializedName: "representations", @@ -1522,10 +1979,10 @@ export const ResponseContract: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RepresentationContract" - } - } - } + className: "RepresentationContract", + }, + }, + }, }, headers: { serializedName: "headers", @@ -1536,13 +1993,13 @@ export const ResponseContract: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ParameterContract" - } - } - } - } - } - } + className: "ParameterContract", + }, + }, + }, + }, + }, + }, }; export const OperationUpdateContract: coreClient.CompositeMapper = { @@ -1560,28 +2017,28 @@ export const OperationUpdateContract: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ParameterContract" - } - } - } + className: "ParameterContract", + }, + }, + }, }, description: { constraints: { - MaxLength: 1000 + MaxLength: 1000, }, serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, request: { serializedName: "properties.request", xmlName: "properties.request", type: { name: "Composite", - className: "RequestContract" - } + className: "RequestContract", + }, }, responses: { serializedName: "properties.responses", @@ -1592,49 +2049,49 @@ export const OperationUpdateContract: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResponseContract" - } - } - } + className: "ResponseContract", + }, + }, + }, }, policies: { serializedName: "properties.policies", xmlName: "properties.policies", type: { - name: "String" - } + name: "String", + }, }, displayName: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, method: { serializedName: "properties.method", xmlName: "properties.method", type: { - name: "String" - } + name: "String", + }, }, urlTemplate: { constraints: { MaxLength: 1000, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.urlTemplate", xmlName: "properties.urlTemplate", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PolicyCollection: coreClient.CompositeMapper = { @@ -1652,27 +2109,27 @@ export const PolicyCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PolicyContract" - } - } - } + className: "PolicyContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TagCollection: coreClient.CompositeMapper = { @@ -1690,27 +2147,27 @@ export const TagCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TagContract" - } - } - } + className: "TagContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResolverCollection: coreClient.CompositeMapper = { @@ -1729,28 +2186,28 @@ export const ResolverCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResolverContract" - } - } - } + className: "ResolverContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResolverUpdateContract: coreClient.CompositeMapper = { @@ -1762,37 +2219,37 @@ export const ResolverUpdateContract: coreClient.CompositeMapper = { displayName: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, path: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.path", xmlName: "properties.path", type: { - name: "String" - } + name: "String", + }, }, description: { constraints: { - MaxLength: 1000 + MaxLength: 1000, }, serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProductCollection: coreClient.CompositeMapper = { @@ -1810,27 +2267,27 @@ export const ProductCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ProductContract" - } - } - } + className: "ProductContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProductEntityBaseParameters: coreClient.CompositeMapper = { @@ -1841,52 +2298,52 @@ export const ProductEntityBaseParameters: coreClient.CompositeMapper = { modelProperties: { description: { constraints: { - MaxLength: 1000 + MaxLength: 1000, }, serializedName: "description", xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, terms: { serializedName: "terms", xmlName: "terms", type: { - name: "String" - } + name: "String", + }, }, subscriptionRequired: { serializedName: "subscriptionRequired", xmlName: "subscriptionRequired", type: { - name: "Boolean" - } + name: "Boolean", + }, }, approvalRequired: { serializedName: "approvalRequired", xmlName: "approvalRequired", type: { - name: "Boolean" - } + name: "Boolean", + }, }, subscriptionsLimit: { serializedName: "subscriptionsLimit", xmlName: "subscriptionsLimit", type: { - name: "Number" - } + name: "Number", + }, }, state: { serializedName: "state", xmlName: "state", type: { name: "Enum", - allowedValues: ["notPublished", "published"] - } - } - } - } + allowedValues: ["notPublished", "published"], + }, + }, + }, + }, }; export const SchemaCollection: coreClient.CompositeMapper = { @@ -1905,28 +2362,28 @@ export const SchemaCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SchemaContract" - } - } - } + className: "SchemaContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiagnosticCollection: coreClient.CompositeMapper = { @@ -1944,27 +2401,27 @@ export const DiagnosticCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiagnosticContract" - } - } - } + className: "DiagnosticContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SamplingSettings: coreClient.CompositeMapper = { @@ -1977,22 +2434,22 @@ export const SamplingSettings: coreClient.CompositeMapper = { serializedName: "samplingType", xmlName: "samplingType", type: { - name: "String" - } + name: "String", + }, }, percentage: { constraints: { InclusiveMaximum: 100, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "percentage", xmlName: "percentage", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const PipelineDiagnosticSettings: coreClient.CompositeMapper = { @@ -2006,19 +2463,19 @@ export const PipelineDiagnosticSettings: coreClient.CompositeMapper = { xmlName: "request", type: { name: "Composite", - className: "HttpMessageDiagnostic" - } + className: "HttpMessageDiagnostic", + }, }, response: { serializedName: "response", xmlName: "response", type: { name: "Composite", - className: "HttpMessageDiagnostic" - } - } - } - } + className: "HttpMessageDiagnostic", + }, + }, + }, + }, }; export const HttpMessageDiagnostic: coreClient.CompositeMapper = { @@ -2035,29 +2492,29 @@ export const HttpMessageDiagnostic: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, body: { serializedName: "body", xmlName: "body", type: { name: "Composite", - className: "BodyDiagnosticSettings" - } + className: "BodyDiagnosticSettings", + }, }, dataMasking: { serializedName: "dataMasking", xmlName: "dataMasking", type: { name: "Composite", - className: "DataMasking" - } - } - } - } + className: "DataMasking", + }, + }, + }, + }, }; export const BodyDiagnosticSettings: coreClient.CompositeMapper = { @@ -2068,16 +2525,16 @@ export const BodyDiagnosticSettings: coreClient.CompositeMapper = { modelProperties: { bytes: { constraints: { - InclusiveMaximum: 8192 + InclusiveMaximum: 8192, }, serializedName: "bytes", xmlName: "bytes", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const DataMasking: coreClient.CompositeMapper = { @@ -2095,10 +2552,10 @@ export const DataMasking: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataMaskingEntity" - } - } - } + className: "DataMaskingEntity", + }, + }, + }, }, headers: { serializedName: "headers", @@ -2109,13 +2566,13 @@ export const DataMasking: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataMaskingEntity" - } - } - } - } - } - } + className: "DataMaskingEntity", + }, + }, + }, + }, + }, + }, }; export const DataMaskingEntity: coreClient.CompositeMapper = { @@ -2128,18 +2585,18 @@ export const DataMaskingEntity: coreClient.CompositeMapper = { serializedName: "value", xmlName: "value", type: { - name: "String" - } + name: "String", + }, }, mode: { serializedName: "mode", xmlName: "mode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IssueCollection: coreClient.CompositeMapper = { @@ -2158,28 +2615,28 @@ export const IssueCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IssueContract" - } - } - } + className: "IssueContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IssueContractBaseProperties: coreClient.CompositeMapper = { @@ -2192,25 +2649,25 @@ export const IssueContractBaseProperties: coreClient.CompositeMapper = { serializedName: "createdDate", xmlName: "createdDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, state: { serializedName: "state", xmlName: "state", type: { - name: "String" - } + name: "String", + }, }, apiId: { serializedName: "apiId", xmlName: "apiId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IssueUpdateContract: coreClient.CompositeMapper = { @@ -2223,46 +2680,46 @@ export const IssueUpdateContract: coreClient.CompositeMapper = { serializedName: "properties.createdDate", xmlName: "properties.createdDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, state: { serializedName: "properties.state", xmlName: "properties.state", type: { - name: "String" - } + name: "String", + }, }, apiId: { serializedName: "properties.apiId", xmlName: "properties.apiId", type: { - name: "String" - } + name: "String", + }, }, title: { serializedName: "properties.title", xmlName: "properties.title", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, userId: { serializedName: "properties.userId", xmlName: "properties.userId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IssueCommentCollection: coreClient.CompositeMapper = { @@ -2281,28 +2738,28 @@ export const IssueCommentCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IssueCommentContract" - } - } - } + className: "IssueCommentContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IssueAttachmentCollection: coreClient.CompositeMapper = { @@ -2321,28 +2778,28 @@ export const IssueAttachmentCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IssueAttachmentContract" - } - } - } + className: "IssueAttachmentContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TagDescriptionCollection: coreClient.CompositeMapper = { @@ -2360,27 +2817,27 @@ export const TagDescriptionCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TagDescriptionContract" - } - } - } + className: "TagDescriptionContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TagDescriptionBaseProperties: coreClient.CompositeMapper = { @@ -2393,28 +2850,28 @@ export const TagDescriptionBaseProperties: coreClient.CompositeMapper = { serializedName: "description", xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, externalDocsUrl: { constraints: { - MaxLength: 2000 + MaxLength: 2000, }, serializedName: "externalDocsUrl", xmlName: "externalDocsUrl", type: { - name: "String" - } + name: "String", + }, }, externalDocsDescription: { serializedName: "externalDocsDescription", xmlName: "externalDocsDescription", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TagDescriptionCreateParameters: coreClient.CompositeMapper = { @@ -2427,28 +2884,28 @@ export const TagDescriptionCreateParameters: coreClient.CompositeMapper = { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, externalDocsUrl: { constraints: { - MaxLength: 2000 + MaxLength: 2000, }, serializedName: "properties.externalDocsUrl", xmlName: "properties.externalDocsUrl", type: { - name: "String" - } + name: "String", + }, }, externalDocsDescription: { serializedName: "properties.externalDocsDescription", xmlName: "properties.externalDocsDescription", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TagResourceCollection: coreClient.CompositeMapper = { @@ -2466,27 +2923,27 @@ export const TagResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TagResourceContract" - } - } - } + className: "TagResourceContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TagResourceContract: coreClient.CompositeMapper = { @@ -2500,35 +2957,35 @@ export const TagResourceContract: coreClient.CompositeMapper = { xmlName: "tag", type: { name: "Composite", - className: "TagResourceContractProperties" - } + className: "TagResourceContractProperties", + }, }, api: { serializedName: "api", xmlName: "api", type: { name: "Composite", - className: "ApiTagResourceContractProperties" - } + className: "ApiTagResourceContractProperties", + }, }, operation: { serializedName: "operation", xmlName: "operation", type: { name: "Composite", - className: "OperationTagResourceContractProperties" - } + className: "OperationTagResourceContractProperties", + }, }, product: { serializedName: "product", xmlName: "product", type: { name: "Composite", - className: "ProductTagResourceContractProperties" - } - } - } - } + className: "ProductTagResourceContractProperties", + }, + }, + }, + }, }; export const TagResourceContractProperties: coreClient.CompositeMapper = { @@ -2541,96 +2998,97 @@ export const TagResourceContractProperties: coreClient.CompositeMapper = { serializedName: "id", xmlName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { constraints: { MaxLength: 160, - MinLength: 1 + MinLength: 1, }, serializedName: "name", xmlName: "name", type: { - name: "String" - } - } - } - } -}; - -export const OperationTagResourceContractProperties: coreClient.CompositeMapper = { - serializedName: "OperationTagResourceContractProperties", - type: { - name: "Composite", - className: "OperationTagResourceContractProperties", - modelProperties: { - id: { - serializedName: "id", - xmlName: "id", - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - xmlName: "name", - type: { - name: "String" - } - }, - apiName: { - serializedName: "apiName", - readOnly: true, - xmlName: "apiName", - type: { - name: "String" - } - }, - apiRevision: { - serializedName: "apiRevision", - readOnly: true, - xmlName: "apiRevision", - type: { - name: "String" - } - }, - apiVersion: { - serializedName: "apiVersion", - readOnly: true, - xmlName: "apiVersion", - type: { - name: "String" - } - }, - description: { - serializedName: "description", - readOnly: true, - xmlName: "description", - type: { - name: "String" - } + name: "String", + }, }, - method: { - serializedName: "method", - readOnly: true, - xmlName: "method", - type: { - name: "String" - } + }, + }, +}; + +export const OperationTagResourceContractProperties: coreClient.CompositeMapper = + { + serializedName: "OperationTagResourceContractProperties", + type: { + name: "Composite", + className: "OperationTagResourceContractProperties", + modelProperties: { + id: { + serializedName: "id", + xmlName: "id", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + readOnly: true, + xmlName: "name", + type: { + name: "String", + }, + }, + apiName: { + serializedName: "apiName", + readOnly: true, + xmlName: "apiName", + type: { + name: "String", + }, + }, + apiRevision: { + serializedName: "apiRevision", + readOnly: true, + xmlName: "apiRevision", + type: { + name: "String", + }, + }, + apiVersion: { + serializedName: "apiVersion", + readOnly: true, + xmlName: "apiVersion", + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + readOnly: true, + xmlName: "description", + type: { + name: "String", + }, + }, + method: { + serializedName: "method", + readOnly: true, + xmlName: "method", + type: { + name: "String", + }, + }, + urlTemplate: { + serializedName: "urlTemplate", + readOnly: true, + xmlName: "urlTemplate", + type: { + name: "String", + }, + }, }, - urlTemplate: { - serializedName: "urlTemplate", - readOnly: true, - xmlName: "urlTemplate", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const WikiDocumentationContract: coreClient.CompositeMapper = { serializedName: "WikiDocumentationContract", @@ -2642,11 +3100,11 @@ export const WikiDocumentationContract: coreClient.CompositeMapper = { serializedName: "documentationId", xmlName: "documentationId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WikiUpdateContract: coreClient.CompositeMapper = { @@ -2664,13 +3122,13 @@ export const WikiUpdateContract: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "WikiDocumentationContract" - } - } - } - } - } - } + className: "WikiDocumentationContract", + }, + }, + }, + }, + }, + }, }; export const WikiCollection: coreClient.CompositeMapper = { @@ -2689,21 +3147,21 @@ export const WikiCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "WikiContract" - } - } - } + className: "WikiContract", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiExportResult: coreClient.CompositeMapper = { @@ -2716,26 +3174,26 @@ export const ApiExportResult: coreClient.CompositeMapper = { serializedName: "id", xmlName: "id", type: { - name: "String" - } + name: "String", + }, }, exportResultFormat: { serializedName: "format", xmlName: "format", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", xmlName: "value", type: { name: "Composite", - className: "ApiExportResultValue" - } - } - } - } + className: "ApiExportResultValue", + }, + }, + }, + }, }; export const ApiExportResultValue: coreClient.CompositeMapper = { @@ -2748,11 +3206,11 @@ export const ApiExportResultValue: coreClient.CompositeMapper = { serializedName: "link", xmlName: "link", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiVersionSetCollection: coreClient.CompositeMapper = { @@ -2770,27 +3228,27 @@ export const ApiVersionSetCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiVersionSetContract" - } - } - } + className: "ApiVersionSetContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiVersionSetEntityBase: coreClient.CompositeMapper = { @@ -2803,33 +3261,33 @@ export const ApiVersionSetEntityBase: coreClient.CompositeMapper = { serializedName: "description", xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, versionQueryName: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "versionQueryName", xmlName: "versionQueryName", type: { - name: "String" - } + name: "String", + }, }, versionHeaderName: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "versionHeaderName", xmlName: "versionHeaderName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiVersionSetUpdateParameters: coreClient.CompositeMapper = { @@ -2842,381 +3300,172 @@ export const ApiVersionSetUpdateParameters: coreClient.CompositeMapper = { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, versionQueryName: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.versionQueryName", xmlName: "properties.versionQueryName", type: { - name: "String" - } + name: "String", + }, }, versionHeaderName: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.versionHeaderName", xmlName: "properties.versionHeaderName", type: { - name: "String" - } + name: "String", + }, }, displayName: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, versioningScheme: { serializedName: "properties.versioningScheme", xmlName: "properties.versioningScheme", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationServerCollection: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerCollection", +export const AuthorizationProviderCollection: coreClient.CompositeMapper = { + serializedName: "AuthorizationProviderCollection", type: { name: "Composite", - className: "AuthorizationServerCollection", + className: "AuthorizationProviderCollection", modelProperties: { value: { serializedName: "value", xmlName: "value", - xmlElementName: "AuthorizationServerContract", + xmlElementName: "AuthorizationProviderContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AuthorizationServerContract" - } - } - } - }, - count: { - serializedName: "count", - xmlName: "count", - type: { - name: "Number" - } + className: "AuthorizationProviderContract", + }, + }, + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationServerContractBaseProperties: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerContractBaseProperties", +export const AuthorizationProviderOAuth2Settings: coreClient.CompositeMapper = { + serializedName: "AuthorizationProviderOAuth2Settings", type: { name: "Composite", - className: "AuthorizationServerContractBaseProperties", + className: "AuthorizationProviderOAuth2Settings", modelProperties: { - description: { - serializedName: "description", - xmlName: "description", + redirectUrl: { + serializedName: "redirectUrl", + xmlName: "redirectUrl", type: { - name: "String" - } + name: "String", + }, }, - authorizationMethods: { - serializedName: "authorizationMethods", - xmlName: "authorizationMethods", - xmlElementName: "AuthorizationMethod", - type: { - name: "Sequence", - element: { - type: { - name: "Enum", - allowedValues: [ - "HEAD", - "OPTIONS", - "TRACE", - "GET", - "POST", - "PUT", - "PATCH", - "DELETE" - ] - } - } - } - }, - clientAuthenticationMethod: { - serializedName: "clientAuthenticationMethod", - xmlName: "clientAuthenticationMethod", - xmlElementName: "ClientAuthenticationMethod", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - tokenBodyParameters: { - serializedName: "tokenBodyParameters", - xmlName: "tokenBodyParameters", - xmlElementName: "TokenBodyParameterContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TokenBodyParameterContract" - } - } - } - }, - tokenEndpoint: { - serializedName: "tokenEndpoint", - xmlName: "tokenEndpoint", - type: { - name: "String" - } - }, - supportState: { - serializedName: "supportState", - xmlName: "supportState", - type: { - name: "Boolean" - } - }, - defaultScope: { - serializedName: "defaultScope", - xmlName: "defaultScope", - type: { - name: "String" - } - }, - bearerTokenSendingMethods: { - serializedName: "bearerTokenSendingMethods", - xmlName: "bearerTokenSendingMethods", - xmlElementName: "BearerTokenSendingMethod", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - resourceOwnerUsername: { - serializedName: "resourceOwnerUsername", - xmlName: "resourceOwnerUsername", - type: { - name: "String" - } - }, - resourceOwnerPassword: { - serializedName: "resourceOwnerPassword", - xmlName: "resourceOwnerPassword", - type: { - name: "String" - } - } - } - } -}; - -export const TokenBodyParameterContract: coreClient.CompositeMapper = { - serializedName: "TokenBodyParameterContract", - type: { - name: "Composite", - className: "TokenBodyParameterContract", - modelProperties: { - name: { - serializedName: "name", - required: true, - xmlName: "name", - type: { - name: "String" - } - }, - value: { - serializedName: "value", - required: true, - xmlName: "value", - type: { - name: "String" - } - } - } - } -}; - -export const AuthorizationServerSecretsContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerSecretsContract", - type: { - name: "Composite", - className: "AuthorizationServerSecretsContract", - modelProperties: { - clientSecret: { - serializedName: "clientSecret", - xmlName: "clientSecret", - type: { - name: "String" - } - }, - resourceOwnerUsername: { - serializedName: "resourceOwnerUsername", - xmlName: "resourceOwnerUsername", - type: { - name: "String" - } - }, - resourceOwnerPassword: { - serializedName: "resourceOwnerPassword", - xmlName: "resourceOwnerPassword", - type: { - name: "String" - } - } - } - } -}; - -export const AuthorizationProviderCollection: coreClient.CompositeMapper = { - serializedName: "AuthorizationProviderCollection", - type: { - name: "Composite", - className: "AuthorizationProviderCollection", - modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - xmlElementName: "AuthorizationProviderContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AuthorizationProviderContract" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - xmlName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const AuthorizationProviderOAuth2Settings: coreClient.CompositeMapper = { - serializedName: "AuthorizationProviderOAuth2Settings", - type: { - name: "Composite", - className: "AuthorizationProviderOAuth2Settings", - modelProperties: { - redirectUrl: { - serializedName: "redirectUrl", - xmlName: "redirectUrl", - type: { - name: "String" - } - }, - grantTypes: { - serializedName: "grantTypes", - xmlName: "grantTypes", - type: { - name: "Composite", - className: "AuthorizationProviderOAuth2GrantTypes" - } - } - } - } -}; - -export const AuthorizationProviderOAuth2GrantTypes: coreClient.CompositeMapper = { - serializedName: "AuthorizationProviderOAuth2GrantTypes", - type: { - name: "Composite", - className: "AuthorizationProviderOAuth2GrantTypes", - modelProperties: { - authorizationCode: { - serializedName: "authorizationCode", - xmlName: "authorizationCode", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - clientCredentials: { - serializedName: "clientCredentials", - xmlName: "clientCredentials", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const AuthorizationCollection: coreClient.CompositeMapper = { - serializedName: "AuthorizationCollection", - type: { - name: "Composite", - className: "AuthorizationCollection", - modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - xmlElementName: "AuthorizationContract", + grantTypes: { + serializedName: "grantTypes", + xmlName: "grantTypes", + type: { + name: "Composite", + className: "AuthorizationProviderOAuth2GrantTypes", + }, + }, + }, + }, +}; + +export const AuthorizationProviderOAuth2GrantTypes: coreClient.CompositeMapper = + { + serializedName: "AuthorizationProviderOAuth2GrantTypes", + type: { + name: "Composite", + className: "AuthorizationProviderOAuth2GrantTypes", + modelProperties: { + authorizationCode: { + serializedName: "authorizationCode", + xmlName: "authorizationCode", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + clientCredentials: { + serializedName: "clientCredentials", + xmlName: "clientCredentials", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, + }; + +export const AuthorizationCollection: coreClient.CompositeMapper = { + serializedName: "AuthorizationCollection", + type: { + name: "Composite", + className: "AuthorizationCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "AuthorizationContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AuthorizationContract" - } - } - } + className: "AuthorizationContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AuthorizationError: coreClient.CompositeMapper = { @@ -3229,18 +3478,18 @@ export const AuthorizationError: coreClient.CompositeMapper = { serializedName: "code", xmlName: "code", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", xmlName: "message", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AuthorizationLoginRequestContract: coreClient.CompositeMapper = { @@ -3253,11 +3502,11 @@ export const AuthorizationLoginRequestContract: coreClient.CompositeMapper = { serializedName: "postLoginRedirectUrl", xmlName: "postLoginRedirectUrl", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AuthorizationLoginResponseContract: coreClient.CompositeMapper = { @@ -3270,29 +3519,30 @@ export const AuthorizationLoginResponseContract: coreClient.CompositeMapper = { serializedName: "loginLink", xmlName: "loginLink", type: { - name: "String" - } - } - } - } -}; - -export const AuthorizationConfirmConsentCodeRequestContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationConfirmConsentCodeRequestContract", - type: { - name: "Composite", - className: "AuthorizationConfirmConsentCodeRequestContract", - modelProperties: { - consentCode: { - serializedName: "consentCode", - xmlName: "consentCode", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const AuthorizationConfirmConsentCodeRequestContract: coreClient.CompositeMapper = + { + serializedName: "AuthorizationConfirmConsentCodeRequestContract", + type: { + name: "Composite", + className: "AuthorizationConfirmConsentCodeRequestContract", + modelProperties: { + consentCode: { + serializedName: "consentCode", + xmlName: "consentCode", + type: { + name: "String", + }, + }, + }, + }, + }; export const AuthorizationAccessPolicyCollection: coreClient.CompositeMapper = { serializedName: "AuthorizationAccessPolicyCollection", @@ -3309,140 +3559,374 @@ export const AuthorizationAccessPolicyCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AuthorizationAccessPolicyContract" - } - } - } + className: "AuthorizationAccessPolicyContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const BackendCollection: coreClient.CompositeMapper = { - serializedName: "BackendCollection", +export const AuthorizationServerCollection: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerCollection", type: { name: "Composite", - className: "BackendCollection", + className: "AuthorizationServerCollection", modelProperties: { value: { serializedName: "value", xmlName: "value", - xmlElementName: "BackendContract", + xmlElementName: "AuthorizationServerContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "BackendContract" - } - } - } + className: "AuthorizationServerContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const AuthorizationServerContractBaseProperties: coreClient.CompositeMapper = + { + serializedName: "AuthorizationServerContractBaseProperties", + type: { + name: "Composite", + className: "AuthorizationServerContractBaseProperties", + modelProperties: { + description: { + serializedName: "description", + xmlName: "description", + type: { + name: "String", + }, + }, + authorizationMethods: { + serializedName: "authorizationMethods", + xmlName: "authorizationMethods", + xmlElementName: "AuthorizationMethod", + type: { + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "HEAD", + "OPTIONS", + "TRACE", + "GET", + "POST", + "PUT", + "PATCH", + "DELETE", + ], + }, + }, + }, + }, + clientAuthenticationMethod: { + serializedName: "clientAuthenticationMethod", + xmlName: "clientAuthenticationMethod", + xmlElementName: "ClientAuthenticationMethod", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + tokenBodyParameters: { + serializedName: "tokenBodyParameters", + xmlName: "tokenBodyParameters", + xmlElementName: "TokenBodyParameterContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TokenBodyParameterContract", + }, + }, + }, + }, + tokenEndpoint: { + serializedName: "tokenEndpoint", + xmlName: "tokenEndpoint", + type: { + name: "String", + }, + }, + supportState: { + serializedName: "supportState", + xmlName: "supportState", + type: { + name: "Boolean", + }, + }, + defaultScope: { + serializedName: "defaultScope", + xmlName: "defaultScope", + type: { + name: "String", + }, + }, + bearerTokenSendingMethods: { + serializedName: "bearerTokenSendingMethods", + xmlName: "bearerTokenSendingMethods", + xmlElementName: "BearerTokenSendingMethod", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + resourceOwnerUsername: { + serializedName: "resourceOwnerUsername", + xmlName: "resourceOwnerUsername", + type: { + name: "String", + }, + }, + resourceOwnerPassword: { + serializedName: "resourceOwnerPassword", + xmlName: "resourceOwnerPassword", + type: { + name: "String", + }, + }, + }, + }, + }; -export const BackendBaseParameters: coreClient.CompositeMapper = { - serializedName: "BackendBaseParameters", +export const TokenBodyParameterContract: coreClient.CompositeMapper = { + serializedName: "TokenBodyParameterContract", type: { name: "Composite", - className: "BackendBaseParameters", + className: "TokenBodyParameterContract", modelProperties: { - title: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "title", - xmlName: "title", + name: { + serializedName: "name", + required: true, + xmlName: "name", type: { - name: "String" - } - }, - description: { - constraints: { - MaxLength: 2000, - MinLength: 1 + name: "String", }, - serializedName: "description", - xmlName: "description", - type: { - name: "String" - } }, - resourceId: { - constraints: { - MaxLength: 2000, - MinLength: 1 + value: { + serializedName: "value", + required: true, + xmlName: "value", + type: { + name: "String", }, - serializedName: "resourceId", - xmlName: "resourceId", + }, + }, + }, +}; + +export const AuthorizationServerSecretsContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerSecretsContract", + type: { + name: "Composite", + className: "AuthorizationServerSecretsContract", + modelProperties: { + clientSecret: { + serializedName: "clientSecret", + xmlName: "clientSecret", type: { - name: "String" - } + name: "String", + }, }, - properties: { - serializedName: "properties", - xmlName: "properties", + resourceOwnerUsername: { + serializedName: "resourceOwnerUsername", + xmlName: "resourceOwnerUsername", type: { - name: "Composite", - className: "BackendProperties" - } + name: "String", + }, }, - credentials: { + resourceOwnerPassword: { + serializedName: "resourceOwnerPassword", + xmlName: "resourceOwnerPassword", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const BackendCollection: coreClient.CompositeMapper = { + serializedName: "BackendCollection", + type: { + name: "Composite", + className: "BackendCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "BackendContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BackendContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const BackendBaseParameters: coreClient.CompositeMapper = { + serializedName: "BackendBaseParameters", + type: { + name: "Composite", + className: "BackendBaseParameters", + modelProperties: { + title: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "title", + xmlName: "title", + type: { + name: "String", + }, + }, + description: { + constraints: { + MaxLength: 2000, + MinLength: 1, + }, + serializedName: "description", + xmlName: "description", + type: { + name: "String", + }, + }, + resourceId: { + constraints: { + MaxLength: 2000, + MinLength: 1, + }, + serializedName: "resourceId", + xmlName: "resourceId", + type: { + name: "String", + }, + }, + properties: { + serializedName: "properties", + xmlName: "properties", + type: { + name: "Composite", + className: "BackendProperties", + }, + }, + credentials: { serializedName: "credentials", xmlName: "credentials", type: { name: "Composite", - className: "BackendCredentialsContract" - } + className: "BackendCredentialsContract", + }, }, proxy: { serializedName: "proxy", xmlName: "proxy", type: { name: "Composite", - className: "BackendProxyContract" - } + className: "BackendProxyContract", + }, }, tls: { serializedName: "tls", xmlName: "tls", type: { name: "Composite", - className: "BackendTlsProperties" - } - } - } - } + className: "BackendTlsProperties", + }, + }, + circuitBreaker: { + serializedName: "circuitBreaker", + xmlName: "circuitBreaker", + type: { + name: "Composite", + className: "BackendCircuitBreaker", + }, + }, + pool: { + serializedName: "pool", + xmlName: "pool", + type: { + name: "Composite", + className: "BackendBaseParametersPool", + }, + }, + type: { + serializedName: "type", + xmlName: "type", + type: { + name: "String", + }, + }, + }, + }, }; export const BackendProperties: coreClient.CompositeMapper = { @@ -3456,86 +3940,87 @@ export const BackendProperties: coreClient.CompositeMapper = { xmlName: "serviceFabricCluster", type: { name: "Composite", - className: "BackendServiceFabricClusterProperties" - } - } - } - } -}; - -export const BackendServiceFabricClusterProperties: coreClient.CompositeMapper = { - serializedName: "BackendServiceFabricClusterProperties", - type: { - name: "Composite", - className: "BackendServiceFabricClusterProperties", - modelProperties: { - clientCertificateId: { - serializedName: "clientCertificateId", - xmlName: "clientCertificateId", - type: { - name: "String" - } - }, - clientCertificatethumbprint: { - serializedName: "clientCertificatethumbprint", - xmlName: "clientCertificatethumbprint", - type: { - name: "String" - } - }, - maxPartitionResolutionRetries: { - serializedName: "maxPartitionResolutionRetries", - xmlName: "maxPartitionResolutionRetries", - type: { - name: "Number" - } + className: "BackendServiceFabricClusterProperties", + }, }, - managementEndpoints: { - serializedName: "managementEndpoints", - required: true, - xmlName: "managementEndpoints", - xmlElementName: - "BackendServiceFabricClusterPropertiesManagementEndpointsItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - serverCertificateThumbprints: { - serializedName: "serverCertificateThumbprints", - xmlName: "serverCertificateThumbprints", - xmlElementName: - "BackendServiceFabricClusterPropertiesServerCertificateThumbprintsItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + }, + }, +}; + +export const BackendServiceFabricClusterProperties: coreClient.CompositeMapper = + { + serializedName: "BackendServiceFabricClusterProperties", + type: { + name: "Composite", + className: "BackendServiceFabricClusterProperties", + modelProperties: { + clientCertificateId: { + serializedName: "clientCertificateId", + xmlName: "clientCertificateId", + type: { + name: "String", + }, + }, + clientCertificatethumbprint: { + serializedName: "clientCertificatethumbprint", + xmlName: "clientCertificatethumbprint", + type: { + name: "String", + }, + }, + maxPartitionResolutionRetries: { + serializedName: "maxPartitionResolutionRetries", + xmlName: "maxPartitionResolutionRetries", + type: { + name: "Number", + }, + }, + managementEndpoints: { + serializedName: "managementEndpoints", + required: true, + xmlName: "managementEndpoints", + xmlElementName: + "BackendServiceFabricClusterPropertiesManagementEndpointsItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + serverCertificateThumbprints: { + serializedName: "serverCertificateThumbprints", + xmlName: "serverCertificateThumbprints", + xmlElementName: + "BackendServiceFabricClusterPropertiesServerCertificateThumbprintsItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + serverX509Names: { + serializedName: "serverX509Names", + xmlName: "serverX509Names", + xmlElementName: "X509CertificateName", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "X509CertificateName", + }, + }, + }, + }, }, - serverX509Names: { - serializedName: "serverX509Names", - xmlName: "serverX509Names", - xmlElementName: "X509CertificateName", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "X509CertificateName" - } - } - } - } - } - } -}; + }, + }; export const X509CertificateName: coreClient.CompositeMapper = { serializedName: "X509CertificateName", @@ -3547,18 +4032,18 @@ export const X509CertificateName: coreClient.CompositeMapper = { serializedName: "name", xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, issuerCertificateThumbprint: { serializedName: "issuerCertificateThumbprint", xmlName: "issuerCertificateThumbprint", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BackendCredentialsContract: coreClient.CompositeMapper = { @@ -3569,7 +4054,7 @@ export const BackendCredentialsContract: coreClient.CompositeMapper = { modelProperties: { certificateIds: { constraints: { - MaxItems: 32 + MaxItems: 32, }, serializedName: "certificateIds", xmlName: "certificateIds", @@ -3578,14 +4063,14 @@ export const BackendCredentialsContract: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, certificate: { constraints: { - MaxItems: 32 + MaxItems: 32, }, serializedName: "certificate", xmlName: "certificate", @@ -3594,10 +4079,10 @@ export const BackendCredentialsContract: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, query: { serializedName: "query", @@ -3605,9 +4090,9 @@ export const BackendCredentialsContract: coreClient.CompositeMapper = { type: { name: "Dictionary", value: { - type: { name: "Sequence", element: { type: { name: "String" } } } - } - } + type: { name: "Sequence", element: { type: { name: "String" } } }, + }, + }, }, header: { serializedName: "header", @@ -3615,55 +4100,56 @@ export const BackendCredentialsContract: coreClient.CompositeMapper = { type: { name: "Dictionary", value: { - type: { name: "Sequence", element: { type: { name: "String" } } } - } - } + type: { name: "Sequence", element: { type: { name: "String" } } }, + }, + }, }, authorization: { serializedName: "authorization", xmlName: "authorization", type: { name: "Composite", - className: "BackendAuthorizationHeaderCredentials" - } - } - } - } -}; - -export const BackendAuthorizationHeaderCredentials: coreClient.CompositeMapper = { - serializedName: "BackendAuthorizationHeaderCredentials", - type: { - name: "Composite", - className: "BackendAuthorizationHeaderCredentials", - modelProperties: { - scheme: { - constraints: { - MaxLength: 100, - MinLength: 1 + className: "BackendAuthorizationHeaderCredentials", }, - serializedName: "scheme", - required: true, - xmlName: "scheme", - type: { - name: "String" - } }, - parameter: { - constraints: { - MaxLength: 300, - MinLength: 1 + }, + }, +}; + +export const BackendAuthorizationHeaderCredentials: coreClient.CompositeMapper = + { + serializedName: "BackendAuthorizationHeaderCredentials", + type: { + name: "Composite", + className: "BackendAuthorizationHeaderCredentials", + modelProperties: { + scheme: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "scheme", + required: true, + xmlName: "scheme", + type: { + name: "String", + }, }, - serializedName: "parameter", - required: true, - xmlName: "parameter", - type: { - name: "String" - } - } - } - } -}; + parameter: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "parameter", + required: true, + xmlName: "parameter", + type: { + name: "String", + }, + }, + }, + }, + }; export const BackendProxyContract: coreClient.CompositeMapper = { serializedName: "BackendProxyContract", @@ -3674,31 +4160,31 @@ export const BackendProxyContract: coreClient.CompositeMapper = { url: { constraints: { MaxLength: 2000, - MinLength: 1 + MinLength: 1, }, serializedName: "url", required: true, xmlName: "url", type: { - name: "String" - } + name: "String", + }, }, username: { serializedName: "username", xmlName: "username", type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "password", xmlName: "password", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BackendTlsProperties: coreClient.CompositeMapper = { @@ -3712,150 +4198,376 @@ export const BackendTlsProperties: coreClient.CompositeMapper = { serializedName: "validateCertificateChain", xmlName: "validateCertificateChain", type: { - name: "Boolean" - } + name: "Boolean", + }, }, validateCertificateName: { defaultValue: true, serializedName: "validateCertificateName", xmlName: "validateCertificateName", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; -export const BackendUpdateParameters: coreClient.CompositeMapper = { - serializedName: "BackendUpdateParameters", +export const BackendCircuitBreaker: coreClient.CompositeMapper = { + serializedName: "BackendCircuitBreaker", type: { name: "Composite", - className: "BackendUpdateParameters", + className: "BackendCircuitBreaker", modelProperties: { - title: { + rules: { constraints: { - MaxLength: 300, - MinLength: 1 + MaxItems: 15, }, - serializedName: "properties.title", - xmlName: "properties.title", + serializedName: "rules", + xmlName: "rules", + xmlElementName: "CircuitBreakerRule", type: { - name: "String" - } - }, - description: { - constraints: { - MaxLength: 2000, - MinLength: 1 + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CircuitBreakerRule", + }, + }, }, - serializedName: "properties.description", - xmlName: "properties.description", - type: { - name: "String" - } }, - resourceId: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "properties.resourceId", - xmlName: "properties.resourceId", + }, + }, +}; + +export const CircuitBreakerRule: coreClient.CompositeMapper = { + serializedName: "CircuitBreakerRule", + type: { + name: "Composite", + className: "CircuitBreakerRule", + modelProperties: { + name: { + serializedName: "name", + xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, - properties: { - serializedName: "properties.properties", - xmlName: "properties.properties", + failureCondition: { + serializedName: "failureCondition", + xmlName: "failureCondition", type: { name: "Composite", - className: "BackendProperties" - } + className: "CircuitBreakerFailureCondition", + }, }, - credentials: { - serializedName: "properties.credentials", - xmlName: "properties.credentials", + tripDuration: { + serializedName: "tripDuration", + xmlName: "tripDuration", type: { - name: "Composite", - className: "BackendCredentialsContract" - } + name: "TimeSpan", + }, }, - proxy: { - serializedName: "properties.proxy", - xmlName: "properties.proxy", + }, + }, +}; + +export const CircuitBreakerFailureCondition: coreClient.CompositeMapper = { + serializedName: "CircuitBreakerFailureCondition", + type: { + name: "Composite", + className: "CircuitBreakerFailureCondition", + modelProperties: { + count: { + serializedName: "count", + xmlName: "count", type: { - name: "Composite", - className: "BackendProxyContract" - } + name: "Number", + }, }, - tls: { - serializedName: "properties.tls", - xmlName: "properties.tls", + percentage: { + serializedName: "percentage", + xmlName: "percentage", type: { - name: "Composite", - className: "BackendTlsProperties" - } + name: "Number", + }, }, - url: { + interval: { + serializedName: "interval", + xmlName: "interval", + type: { + name: "TimeSpan", + }, + }, + statusCodeRanges: { constraints: { - MaxLength: 2000, - MinLength: 1 + MaxItems: 10, }, - serializedName: "properties.url", - xmlName: "properties.url", + serializedName: "statusCodeRanges", + xmlName: "statusCodeRanges", + xmlElementName: "FailureStatusCodeRange", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FailureStatusCodeRange", + }, + }, + }, }, - protocol: { - serializedName: "properties.protocol", - xmlName: "properties.protocol", + errorReasons: { + constraints: { + MaxItems: 10, + }, + serializedName: "errorReasons", + xmlName: "errorReasons", + xmlElementName: "CircuitBreakerFailureConditionErrorReasonsItem", type: { - name: "String" - } - } - } - } + name: "Sequence", + element: { + constraints: { + MaxLength: 200, + }, + type: { + name: "String", + }, + }, + }, + }, + }, + }, }; -export const CacheCollection: coreClient.CompositeMapper = { - serializedName: "CacheCollection", +export const FailureStatusCodeRange: coreClient.CompositeMapper = { + serializedName: "FailureStatusCodeRange", type: { name: "Composite", - className: "CacheCollection", + className: "FailureStatusCodeRange", modelProperties: { - value: { - serializedName: "value", - xmlName: "value", + min: { + constraints: { + InclusiveMaximum: 599, + InclusiveMinimum: 200, + }, + serializedName: "min", + xmlName: "min", + type: { + name: "Number", + }, + }, + max: { + constraints: { + InclusiveMaximum: 599, + InclusiveMinimum: 200, + }, + serializedName: "max", + xmlName: "max", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const BackendPool: coreClient.CompositeMapper = { + serializedName: "BackendPool", + type: { + name: "Composite", + className: "BackendPool", + modelProperties: { + services: { + constraints: { + MinItems: 1, + }, + serializedName: "services", + xmlName: "services", + xmlElementName: "BackendPoolItem", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BackendPoolItem", + }, + }, + }, + }, + }, + }, +}; + +export const BackendPoolItem: coreClient.CompositeMapper = { + serializedName: "BackendPoolItem", + type: { + name: "Composite", + className: "BackendPoolItem", + modelProperties: { + id: { + serializedName: "id", + required: true, + xmlName: "id", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const BackendUpdateParameters: coreClient.CompositeMapper = { + serializedName: "BackendUpdateParameters", + type: { + name: "Composite", + className: "BackendUpdateParameters", + modelProperties: { + title: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "properties.title", + xmlName: "properties.title", + type: { + name: "String", + }, + }, + description: { + constraints: { + MaxLength: 2000, + MinLength: 1, + }, + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String", + }, + }, + resourceId: { + constraints: { + MaxLength: 2000, + MinLength: 1, + }, + serializedName: "properties.resourceId", + xmlName: "properties.resourceId", + type: { + name: "String", + }, + }, + properties: { + serializedName: "properties.properties", + xmlName: "properties.properties", + type: { + name: "Composite", + className: "BackendProperties", + }, + }, + credentials: { + serializedName: "properties.credentials", + xmlName: "properties.credentials", + type: { + name: "Composite", + className: "BackendCredentialsContract", + }, + }, + proxy: { + serializedName: "properties.proxy", + xmlName: "properties.proxy", + type: { + name: "Composite", + className: "BackendProxyContract", + }, + }, + tls: { + serializedName: "properties.tls", + xmlName: "properties.tls", + type: { + name: "Composite", + className: "BackendTlsProperties", + }, + }, + circuitBreaker: { + serializedName: "properties.circuitBreaker", + xmlName: "properties.circuitBreaker", + type: { + name: "Composite", + className: "BackendCircuitBreaker", + }, + }, + pool: { + serializedName: "properties.pool", + xmlName: "properties.pool", + type: { + name: "Composite", + className: "BackendBaseParametersPool", + }, + }, + type: { + serializedName: "properties.type", + xmlName: "properties.type", + type: { + name: "String", + }, + }, + url: { + constraints: { + MaxLength: 2000, + MinLength: 1, + }, + serializedName: "properties.url", + xmlName: "properties.url", + type: { + name: "String", + }, + }, + protocol: { + serializedName: "properties.protocol", + xmlName: "properties.protocol", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const CacheCollection: coreClient.CompositeMapper = { + serializedName: "CacheCollection", + type: { + name: "Composite", + className: "CacheCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", xmlElementName: "CacheContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "CacheContract" - } - } - } + className: "CacheContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CacheUpdateParameters: coreClient.CompositeMapper = { @@ -3866,46 +4578,46 @@ export const CacheUpdateParameters: coreClient.CompositeMapper = { modelProperties: { description: { constraints: { - MaxLength: 2000 + MaxLength: 2000, }, serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, connectionString: { constraints: { - MaxLength: 300 + MaxLength: 300, }, serializedName: "properties.connectionString", xmlName: "properties.connectionString", type: { - name: "String" - } + name: "String", + }, }, useFromLocation: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "properties.useFromLocation", xmlName: "properties.useFromLocation", type: { - name: "String" - } + name: "String", + }, }, resourceId: { constraints: { - MaxLength: 2000 + MaxLength: 2000, }, serializedName: "properties.resourceId", xmlName: "properties.resourceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CertificateCollection: coreClient.CompositeMapper = { @@ -3923,59 +4635,60 @@ export const CertificateCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CertificateContract" - } - } - } + className: "CertificateContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const KeyVaultLastAccessStatusContractProperties: coreClient.CompositeMapper = { - serializedName: "KeyVaultLastAccessStatusContractProperties", - type: { - name: "Composite", - className: "KeyVaultLastAccessStatusContractProperties", - modelProperties: { - code: { - serializedName: "code", - xmlName: "code", - type: { - name: "String" - } + name: "String", + }, }, - message: { - serializedName: "message", - xmlName: "message", - type: { - name: "String" - } + }, + }, +}; + +export const KeyVaultLastAccessStatusContractProperties: coreClient.CompositeMapper = + { + serializedName: "KeyVaultLastAccessStatusContractProperties", + type: { + name: "Composite", + className: "KeyVaultLastAccessStatusContractProperties", + modelProperties: { + code: { + serializedName: "code", + xmlName: "code", + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + xmlName: "message", + type: { + name: "String", + }, + }, + timeStampUtc: { + serializedName: "timeStampUtc", + xmlName: "timeStampUtc", + type: { + name: "DateTime", + }, + }, }, - timeStampUtc: { - serializedName: "timeStampUtc", - xmlName: "timeStampUtc", - type: { - name: "DateTime" - } - } - } - } -}; + }, + }; export const KeyVaultContractCreateProperties: coreClient.CompositeMapper = { serializedName: "KeyVaultContractCreateProperties", @@ -3987,18 +4700,18 @@ export const KeyVaultContractCreateProperties: coreClient.CompositeMapper = { serializedName: "secretIdentifier", xmlName: "secretIdentifier", type: { - name: "String" - } + name: "String", + }, }, identityClientId: { serializedName: "identityClientId", xmlName: "identityClientId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CertificateCreateOrUpdateParameters: coreClient.CompositeMapper = { @@ -4011,26 +4724,26 @@ export const CertificateCreateOrUpdateParameters: coreClient.CompositeMapper = { serializedName: "properties.data", xmlName: "properties.data", type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "properties.password", xmlName: "properties.password", type: { - name: "String" - } + name: "String", + }, }, keyVault: { serializedName: "properties.keyVault", xmlName: "properties.keyVault", type: { name: "Composite", - className: "KeyVaultContractCreateProperties" - } - } - } - } + className: "KeyVaultContractCreateProperties", + }, + }, + }, + }, }; export const ConnectivityCheckRequest: coreClient.CompositeMapper = { @@ -4044,41 +4757,41 @@ export const ConnectivityCheckRequest: coreClient.CompositeMapper = { xmlName: "source", type: { name: "Composite", - className: "ConnectivityCheckRequestSource" - } + className: "ConnectivityCheckRequestSource", + }, }, destination: { serializedName: "destination", xmlName: "destination", type: { name: "Composite", - className: "ConnectivityCheckRequestDestination" - } + className: "ConnectivityCheckRequestDestination", + }, }, preferredIPVersion: { serializedName: "preferredIPVersion", xmlName: "preferredIPVersion", type: { - name: "String" - } + name: "String", + }, }, protocol: { serializedName: "protocol", xmlName: "protocol", type: { - name: "String" - } + name: "String", + }, }, protocolConfiguration: { serializedName: "protocolConfiguration", xmlName: "protocolConfiguration", type: { name: "Composite", - className: "ConnectivityCheckRequestProtocolConfiguration" - } - } - } - } + className: "ConnectivityCheckRequestProtocolConfiguration", + }, + }, + }, + }, }; export const ConnectivityCheckRequestSource: coreClient.CompositeMapper = { @@ -4092,18 +4805,18 @@ export const ConnectivityCheckRequestSource: coreClient.CompositeMapper = { required: true, xmlName: "region", type: { - name: "String" - } + name: "String", + }, }, instance: { serializedName: "instance", xmlName: "instance", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ConnectivityCheckRequestDestination: coreClient.CompositeMapper = { @@ -4117,84 +4830,87 @@ export const ConnectivityCheckRequestDestination: coreClient.CompositeMapper = { required: true, xmlName: "address", type: { - name: "String" - } + name: "String", + }, }, port: { serializedName: "port", required: true, xmlName: "port", type: { - name: "Number" - } - } - } - } -}; - -export const ConnectivityCheckRequestProtocolConfiguration: coreClient.CompositeMapper = { - serializedName: "ConnectivityCheckRequestProtocolConfiguration", - type: { - name: "Composite", - className: "ConnectivityCheckRequestProtocolConfiguration", - modelProperties: { - httpConfiguration: { - serializedName: "HTTPConfiguration", - xmlName: "HTTPConfiguration", - type: { - name: "Composite", - className: - "ConnectivityCheckRequestProtocolConfigurationHttpConfiguration" - } - } - } - } -}; - -export const ConnectivityCheckRequestProtocolConfigurationHttpConfiguration: coreClient.CompositeMapper = { - serializedName: - "ConnectivityCheckRequestProtocolConfigurationHttpConfiguration", - type: { - name: "Composite", - className: "ConnectivityCheckRequestProtocolConfigurationHttpConfiguration", - modelProperties: { - method: { - serializedName: "method", - xmlName: "method", - type: { - name: "String" - } + name: "Number", + }, }, - validStatusCodes: { - serializedName: "validStatusCodes", - xmlName: "validStatusCodes", - xmlElementName: "ArrayItemschema", - type: { - name: "Sequence", - element: { - type: { - name: "Number" - } - } - } + }, + }, +}; + +export const ConnectivityCheckRequestProtocolConfiguration: coreClient.CompositeMapper = + { + serializedName: "ConnectivityCheckRequestProtocolConfiguration", + type: { + name: "Composite", + className: "ConnectivityCheckRequestProtocolConfiguration", + modelProperties: { + httpConfiguration: { + serializedName: "HTTPConfiguration", + xmlName: "HTTPConfiguration", + type: { + name: "Composite", + className: + "ConnectivityCheckRequestProtocolConfigurationHttpConfiguration", + }, + }, }, - headers: { - serializedName: "headers", - xmlName: "headers", - xmlElementName: "HttpHeader", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HttpHeader" - } - } - } - } - } - } -}; + }, + }; + +export const ConnectivityCheckRequestProtocolConfigurationHttpConfiguration: coreClient.CompositeMapper = + { + serializedName: + "ConnectivityCheckRequestProtocolConfigurationHttpConfiguration", + type: { + name: "Composite", + className: + "ConnectivityCheckRequestProtocolConfigurationHttpConfiguration", + modelProperties: { + method: { + serializedName: "method", + xmlName: "method", + type: { + name: "String", + }, + }, + validStatusCodes: { + serializedName: "validStatusCodes", + xmlName: "validStatusCodes", + xmlElementName: "ArrayItemschema", + type: { + name: "Sequence", + element: { + type: { + name: "Number", + }, + }, + }, + }, + headers: { + serializedName: "headers", + xmlName: "headers", + xmlElementName: "HttpHeader", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HttpHeader", + }, + }, + }, + }, + }, + }, + }; export const HttpHeader: coreClient.CompositeMapper = { serializedName: "HttpHeader", @@ -4207,19 +4923,19 @@ export const HttpHeader: coreClient.CompositeMapper = { required: true, xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", required: true, xmlName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ConnectivityCheckResponse: coreClient.CompositeMapper = { @@ -4238,61 +4954,61 @@ export const ConnectivityCheckResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ConnectivityHop" - } - } - } + className: "ConnectivityHop", + }, + }, + }, }, connectionStatus: { serializedName: "connectionStatus", readOnly: true, xmlName: "connectionStatus", type: { - name: "String" - } + name: "String", + }, }, avgLatencyInMs: { serializedName: "avgLatencyInMs", readOnly: true, xmlName: "avgLatencyInMs", type: { - name: "Number" - } + name: "Number", + }, }, minLatencyInMs: { serializedName: "minLatencyInMs", readOnly: true, xmlName: "minLatencyInMs", type: { - name: "Number" - } + name: "Number", + }, }, maxLatencyInMs: { serializedName: "maxLatencyInMs", readOnly: true, xmlName: "maxLatencyInMs", type: { - name: "Number" - } + name: "Number", + }, }, probesSent: { serializedName: "probesSent", readOnly: true, xmlName: "probesSent", type: { - name: "Number" - } + name: "Number", + }, }, probesFailed: { serializedName: "probesFailed", readOnly: true, xmlName: "probesFailed", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ConnectivityHop: coreClient.CompositeMapper = { @@ -4306,32 +5022,32 @@ export const ConnectivityHop: coreClient.CompositeMapper = { readOnly: true, xmlName: "type", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, xmlName: "id", type: { - name: "String" - } + name: "String", + }, }, address: { serializedName: "address", readOnly: true, xmlName: "address", type: { - name: "String" - } + name: "String", + }, }, resourceId: { serializedName: "resourceId", readOnly: true, xmlName: "resourceId", type: { - name: "String" - } + name: "String", + }, }, nextHopIds: { serializedName: "nextHopIds", @@ -4342,10 +5058,10 @@ export const ConnectivityHop: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, issues: { serializedName: "issues", @@ -4357,13 +5073,13 @@ export const ConnectivityHop: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ConnectivityIssue" - } - } - } - } - } - } + className: "ConnectivityIssue", + }, + }, + }, + }, + }, + }, }; export const ConnectivityIssue: coreClient.CompositeMapper = { @@ -4377,24 +5093,24 @@ export const ConnectivityIssue: coreClient.CompositeMapper = { readOnly: true, xmlName: "origin", type: { - name: "String" - } + name: "String", + }, }, severity: { serializedName: "severity", readOnly: true, xmlName: "severity", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, xmlName: "type", type: { - name: "String" - } + name: "String", + }, }, context: { serializedName: "context", @@ -4406,13 +5122,13 @@ export const ConnectivityIssue: coreClient.CompositeMapper = { element: { type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, + }, + }, }; export const ContentTypeCollection: coreClient.CompositeMapper = { @@ -4431,21 +5147,21 @@ export const ContentTypeCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ContentTypeContract" - } - } - } + className: "ContentTypeContract", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ContentItemCollection: coreClient.CompositeMapper = { @@ -4464,21 +5180,21 @@ export const ContentItemCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ContentItemContract" - } - } - } + className: "ContentItemContract", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeletedServicesCollection: coreClient.CompositeMapper = { @@ -4497,22 +5213,22 @@ export const DeletedServicesCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DeletedServiceContract" - } - } - } + className: "DeletedServiceContract", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; export const OperationListResult: coreClient.CompositeMapper = { serializedName: "OperationListResult", @@ -4529,20 +5245,20 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } + className: "Operation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -4555,34 +5271,34 @@ export const Operation: coreClient.CompositeMapper = { serializedName: "name", xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, display: { serializedName: "display", xmlName: "display", type: { name: "Composite", - className: "OperationDisplay" - } + className: "OperationDisplay", + }, }, origin: { serializedName: "origin", xmlName: "origin", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", xmlName: "properties", type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -4595,32 +5311,32 @@ export const OperationDisplay: coreClient.CompositeMapper = { serializedName: "provider", xmlName: "provider", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", xmlName: "operation", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", xmlName: "resource", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", xmlName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSkuResults: coreClient.CompositeMapper = { @@ -4639,20 +5355,20 @@ export const ResourceSkuResults: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuResult" - } - } - } + className: "ResourceSkuResult", + }, + }, + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSkuResult: coreClient.CompositeMapper = { @@ -4666,27 +5382,27 @@ export const ResourceSkuResult: coreClient.CompositeMapper = { readOnly: true, xmlName: "resourceType", type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", xmlName: "sku", type: { name: "Composite", - className: "ResourceSku" - } + className: "ResourceSku", + }, }, capacity: { serializedName: "capacity", xmlName: "capacity", type: { name: "Composite", - className: "ResourceSkuCapacity" - } - } - } - } + className: "ResourceSkuCapacity", + }, + }, + }, + }, }; export const ResourceSku: coreClient.CompositeMapper = { @@ -4699,11 +5415,11 @@ export const ResourceSku: coreClient.CompositeMapper = { serializedName: "name", xmlName: "name", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSkuCapacity: coreClient.CompositeMapper = { @@ -4717,92 +5433,93 @@ export const ResourceSkuCapacity: coreClient.CompositeMapper = { readOnly: true, xmlName: "minimum", type: { - name: "Number" - } + name: "Number", + }, }, maximum: { serializedName: "maximum", readOnly: true, xmlName: "maximum", type: { - name: "Number" - } + name: "Number", + }, }, default: { serializedName: "default", readOnly: true, xmlName: "default", type: { - name: "Number" - } + name: "Number", + }, }, scaleType: { serializedName: "scaleType", readOnly: true, xmlName: "scaleType", type: { - name: "String" - } - } - } - } -}; - -export const ApiManagementServiceBackupRestoreParameters: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceBackupRestoreParameters", - type: { - name: "Composite", - className: "ApiManagementServiceBackupRestoreParameters", - modelProperties: { - storageAccount: { - serializedName: "storageAccount", - required: true, - xmlName: "storageAccount", - type: { - name: "String" - } - }, - containerName: { - serializedName: "containerName", - required: true, - xmlName: "containerName", - type: { - name: "String" - } - }, - backupName: { - serializedName: "backupName", - required: true, - xmlName: "backupName", - type: { - name: "String" - } - }, - accessType: { - defaultValue: "AccessKey", - serializedName: "accessType", - xmlName: "accessType", - type: { - name: "String" - } + name: "String", + }, }, - accessKey: { - serializedName: "accessKey", - xmlName: "accessKey", - type: { - name: "String" - } + }, + }, +}; + +export const ApiManagementServiceBackupRestoreParameters: coreClient.CompositeMapper = + { + serializedName: "ApiManagementServiceBackupRestoreParameters", + type: { + name: "Composite", + className: "ApiManagementServiceBackupRestoreParameters", + modelProperties: { + storageAccount: { + serializedName: "storageAccount", + required: true, + xmlName: "storageAccount", + type: { + name: "String", + }, + }, + containerName: { + serializedName: "containerName", + required: true, + xmlName: "containerName", + type: { + name: "String", + }, + }, + backupName: { + serializedName: "backupName", + required: true, + xmlName: "backupName", + type: { + name: "String", + }, + }, + accessType: { + defaultValue: "AccessKey", + serializedName: "accessType", + xmlName: "accessType", + type: { + name: "String", + }, + }, + accessKey: { + serializedName: "accessKey", + xmlName: "accessKey", + type: { + name: "String", + }, + }, + clientId: { + serializedName: "clientId", + xmlName: "clientId", + type: { + name: "String", + }, + }, }, - clientId: { - serializedName: "clientId", - xmlName: "clientId", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { serializedName: "ApiManagementServiceBaseProperties", @@ -4812,85 +5529,85 @@ export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { modelProperties: { notificationSenderEmail: { constraints: { - MaxLength: 100 + MaxLength: 100, }, serializedName: "notificationSenderEmail", xmlName: "notificationSenderEmail", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, xmlName: "provisioningState", type: { - name: "String" - } + name: "String", + }, }, targetProvisioningState: { serializedName: "targetProvisioningState", readOnly: true, xmlName: "targetProvisioningState", type: { - name: "String" - } + name: "String", + }, }, createdAtUtc: { serializedName: "createdAtUtc", readOnly: true, xmlName: "createdAtUtc", type: { - name: "DateTime" - } + name: "DateTime", + }, }, gatewayUrl: { serializedName: "gatewayUrl", readOnly: true, xmlName: "gatewayUrl", type: { - name: "String" - } + name: "String", + }, }, gatewayRegionalUrl: { serializedName: "gatewayRegionalUrl", readOnly: true, xmlName: "gatewayRegionalUrl", type: { - name: "String" - } + name: "String", + }, }, portalUrl: { serializedName: "portalUrl", readOnly: true, xmlName: "portalUrl", type: { - name: "String" - } + name: "String", + }, }, managementApiUrl: { serializedName: "managementApiUrl", readOnly: true, xmlName: "managementApiUrl", type: { - name: "String" - } + name: "String", + }, }, scmUrl: { serializedName: "scmUrl", readOnly: true, xmlName: "scmUrl", type: { - name: "String" - } + name: "String", + }, }, developerPortalUrl: { serializedName: "developerPortalUrl", readOnly: true, xmlName: "developerPortalUrl", type: { - name: "String" - } + name: "String", + }, }, hostnameConfigurations: { serializedName: "hostnameConfigurations", @@ -4901,10 +5618,10 @@ export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "HostnameConfiguration" - } - } - } + className: "HostnameConfiguration", + }, + }, + }, }, publicIPAddresses: { serializedName: "publicIPAddresses", @@ -4916,10 +5633,10 @@ export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, privateIPAddresses: { serializedName: "privateIPAddresses", @@ -4931,32 +5648,40 @@ export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, publicIpAddressId: { serializedName: "publicIpAddressId", xmlName: "publicIpAddressId", type: { - name: "String" - } + name: "String", + }, }, publicNetworkAccess: { serializedName: "publicNetworkAccess", xmlName: "publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, + }, + configurationApi: { + serializedName: "configurationApi", + xmlName: "configurationApi", + type: { + name: "Composite", + className: "ConfigurationApi", + }, }, virtualNetworkConfiguration: { serializedName: "virtualNetworkConfiguration", xmlName: "virtualNetworkConfiguration", type: { name: "Composite", - className: "VirtualNetworkConfiguration" - } + className: "VirtualNetworkConfiguration", + }, }, additionalLocations: { serializedName: "additionalLocations", @@ -4967,18 +5692,18 @@ export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AdditionalLocation" - } - } - } + className: "AdditionalLocation", + }, + }, + }, }, customProperties: { serializedName: "customProperties", xmlName: "customProperties", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, certificates: { serializedName: "certificates", @@ -4989,25 +5714,25 @@ export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CertificateConfiguration" - } - } - } + className: "CertificateConfiguration", + }, + }, + }, }, enableClientCertificate: { defaultValue: false, serializedName: "enableClientCertificate", xmlName: "enableClientCertificate", type: { - name: "Boolean" - } + name: "Boolean", + }, }, natGatewayState: { serializedName: "natGatewayState", xmlName: "natGatewayState", type: { - name: "String" - } + name: "String", + }, }, outboundPublicIPAddresses: { serializedName: "outboundPublicIPAddresses", @@ -5019,42 +5744,42 @@ export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, disableGateway: { defaultValue: false, serializedName: "disableGateway", xmlName: "disableGateway", type: { - name: "Boolean" - } + name: "Boolean", + }, }, virtualNetworkType: { defaultValue: "None", serializedName: "virtualNetworkType", xmlName: "virtualNetworkType", type: { - name: "String" - } + name: "String", + }, }, apiVersionConstraint: { serializedName: "apiVersionConstraint", xmlName: "apiVersionConstraint", type: { name: "Composite", - className: "ApiVersionConstraint" - } + className: "ApiVersionConstraint", + }, }, restore: { defaultValue: false, serializedName: "restore", xmlName: "restore", type: { - name: "Boolean" - } + name: "Boolean", + }, }, privateEndpointConnections: { serializedName: "privateEndpointConnections", @@ -5065,21 +5790,37 @@ export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RemotePrivateEndpointConnectionWrapper" - } - } - } + className: "RemotePrivateEndpointConnectionWrapper", + }, + }, + }, }, platformVersion: { serializedName: "platformVersion", readOnly: true, xmlName: "platformVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + legacyPortalStatus: { + defaultValue: "Enabled", + serializedName: "legacyPortalStatus", + xmlName: "legacyPortalStatus", + type: { + name: "String", + }, + }, + developerPortalStatus: { + defaultValue: "Enabled", + serializedName: "developerPortalStatus", + xmlName: "developerPortalStatus", + type: { + name: "String", + }, + }, + }, + }, }; export const HostnameConfiguration: coreClient.CompositeMapper = { @@ -5093,85 +5834,85 @@ export const HostnameConfiguration: coreClient.CompositeMapper = { required: true, xmlName: "type", type: { - name: "String" - } + name: "String", + }, }, hostName: { serializedName: "hostName", required: true, xmlName: "hostName", type: { - name: "String" - } + name: "String", + }, }, keyVaultId: { serializedName: "keyVaultId", xmlName: "keyVaultId", type: { - name: "String" - } + name: "String", + }, }, identityClientId: { serializedName: "identityClientId", xmlName: "identityClientId", type: { - name: "String" - } + name: "String", + }, }, encodedCertificate: { serializedName: "encodedCertificate", xmlName: "encodedCertificate", type: { - name: "String" - } + name: "String", + }, }, certificatePassword: { serializedName: "certificatePassword", xmlName: "certificatePassword", type: { - name: "String" - } + name: "String", + }, }, defaultSslBinding: { defaultValue: false, serializedName: "defaultSslBinding", xmlName: "defaultSslBinding", type: { - name: "Boolean" - } + name: "Boolean", + }, }, negotiateClientCertificate: { defaultValue: false, serializedName: "negotiateClientCertificate", xmlName: "negotiateClientCertificate", type: { - name: "Boolean" - } + name: "Boolean", + }, }, certificate: { serializedName: "certificate", xmlName: "certificate", type: { name: "Composite", - className: "CertificateInformation" - } + className: "CertificateInformation", + }, }, certificateSource: { serializedName: "certificateSource", xmlName: "certificateSource", type: { - name: "String" - } + name: "String", + }, }, certificateStatus: { serializedName: "certificateStatus", xmlName: "certificateStatus", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CertificateInformation: coreClient.CompositeMapper = { @@ -5185,27 +5926,45 @@ export const CertificateInformation: coreClient.CompositeMapper = { required: true, xmlName: "expiry", type: { - name: "DateTime" - } + name: "DateTime", + }, }, thumbprint: { serializedName: "thumbprint", required: true, xmlName: "thumbprint", type: { - name: "String" - } + name: "String", + }, }, subject: { serializedName: "subject", required: true, xmlName: "subject", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const ConfigurationApi: coreClient.CompositeMapper = { + serializedName: "ConfigurationApi", + type: { + name: "Composite", + className: "ConfigurationApi", + modelProperties: { + legacyApi: { + defaultValue: "Enabled", + serializedName: "legacyApi", + xmlName: "legacyApi", + type: { + name: "String", + }, + }, + }, + }, }; export const VirtualNetworkConfiguration: coreClient.CompositeMapper = { @@ -5219,31 +5978,31 @@ export const VirtualNetworkConfiguration: coreClient.CompositeMapper = { readOnly: true, xmlName: "vnetid", type: { - name: "String" - } + name: "String", + }, }, subnetname: { serializedName: "subnetname", readOnly: true, xmlName: "subnetname", type: { - name: "String" - } + name: "String", + }, }, subnetResourceId: { constraints: { Pattern: new RegExp( - "^\\/subscriptions\\/[^/]*\\/resourceGroups\\/[^/]*\\/providers\\/Microsoft.(ClassicNetwork|Network)\\/virtualNetworks\\/[^/]*\\/subnets\\/[^/]*$" - ) + "^\\/subscriptions\\/[^/]*\\/resourceGroups\\/[^/]*\\/providers\\/Microsoft.(ClassicNetwork|Network)\\/virtualNetworks\\/[^/]*\\/subnets\\/[^/]*$", + ), }, serializedName: "subnetResourceId", xmlName: "subnetResourceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AdditionalLocation: coreClient.CompositeMapper = { @@ -5257,16 +6016,16 @@ export const AdditionalLocation: coreClient.CompositeMapper = { required: true, xmlName: "location", type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", xmlName: "sku", type: { name: "Composite", - className: "ApiManagementServiceSkuProperties" - } + className: "ApiManagementServiceSkuProperties", + }, }, zones: { serializedName: "zones", @@ -5276,10 +6035,10 @@ export const AdditionalLocation: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, publicIPAddresses: { serializedName: "publicIPAddresses", @@ -5290,10 +6049,10 @@ export const AdditionalLocation: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, privateIPAddresses: { serializedName: "privateIPAddresses", @@ -5304,40 +6063,40 @@ export const AdditionalLocation: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, publicIpAddressId: { serializedName: "publicIpAddressId", xmlName: "publicIpAddressId", type: { - name: "String" - } + name: "String", + }, }, virtualNetworkConfiguration: { serializedName: "virtualNetworkConfiguration", xmlName: "virtualNetworkConfiguration", type: { name: "Composite", - className: "VirtualNetworkConfiguration" - } + className: "VirtualNetworkConfiguration", + }, }, gatewayRegionalUrl: { serializedName: "gatewayRegionalUrl", readOnly: true, xmlName: "gatewayRegionalUrl", type: { - name: "String" - } + name: "String", + }, }, natGatewayState: { serializedName: "natGatewayState", xmlName: "natGatewayState", type: { - name: "String" - } + name: "String", + }, }, outboundPublicIPAddresses: { serializedName: "outboundPublicIPAddresses", @@ -5348,29 +6107,29 @@ export const AdditionalLocation: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, disableGateway: { defaultValue: false, serializedName: "disableGateway", xmlName: "disableGateway", type: { - name: "Boolean" - } + name: "Boolean", + }, }, platformVersion: { serializedName: "platformVersion", readOnly: true, xmlName: "platformVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiManagementServiceSkuProperties: coreClient.CompositeMapper = { @@ -5384,19 +6143,19 @@ export const ApiManagementServiceSkuProperties: coreClient.CompositeMapper = { required: true, xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, capacity: { serializedName: "capacity", required: true, xmlName: "capacity", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const CertificateConfiguration: coreClient.CompositeMapper = { @@ -5409,34 +6168,34 @@ export const CertificateConfiguration: coreClient.CompositeMapper = { serializedName: "encodedCertificate", xmlName: "encodedCertificate", type: { - name: "String" - } + name: "String", + }, }, certificatePassword: { serializedName: "certificatePassword", xmlName: "certificatePassword", type: { - name: "String" - } + name: "String", + }, }, storeName: { serializedName: "storeName", required: true, xmlName: "storeName", type: { - name: "String" - } + name: "String", + }, }, certificate: { serializedName: "certificate", xmlName: "certificate", type: { name: "Composite", - className: "CertificateInformation" - } - } - } - } + className: "CertificateInformation", + }, + }, + }, + }, }; export const ApiVersionConstraint: coreClient.CompositeMapper = { @@ -5449,82 +6208,83 @@ export const ApiVersionConstraint: coreClient.CompositeMapper = { serializedName: "minApiVersion", xmlName: "minApiVersion", type: { - name: "String" - } - } - } - } -}; - -export const RemotePrivateEndpointConnectionWrapper: coreClient.CompositeMapper = { - serializedName: "RemotePrivateEndpointConnectionWrapper", - type: { - name: "Composite", - className: "RemotePrivateEndpointConnectionWrapper", - modelProperties: { - id: { - serializedName: "id", - xmlName: "id", - type: { - name: "String" - } - }, - name: { - serializedName: "name", - xmlName: "name", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - xmlName: "type", - type: { - name: "String" - } - }, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - xmlName: "properties.privateEndpoint", - type: { - name: "Composite", - className: "ArmIdWrapper" - } - }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", - xmlName: "properties.privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" - } + name: "String", + }, }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - xmlName: "properties.provisioningState", + }, + }, +}; + +export const RemotePrivateEndpointConnectionWrapper: coreClient.CompositeMapper = + { + serializedName: "RemotePrivateEndpointConnectionWrapper", + type: { + name: "Composite", + className: "RemotePrivateEndpointConnectionWrapper", + modelProperties: { + id: { + serializedName: "id", + xmlName: "id", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + xmlName: "name", + type: { + name: "String", + }, + }, type: { - name: "String" - } + serializedName: "type", + xmlName: "type", + type: { + name: "String", + }, + }, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + xmlName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "ArmIdWrapper", + }, + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + xmlName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", + type: { + name: "String", + }, + }, + groupIds: { + serializedName: "properties.groupIds", + readOnly: true, + xmlName: "properties.groupIds", + xmlElementName: + "PrivateEndpointConnectionWrapperPropertiesGroupIdsItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, }, - groupIds: { - serializedName: "properties.groupIds", - readOnly: true, - xmlName: "properties.groupIds", - xmlElementName: - "PrivateEndpointConnectionWrapperPropertiesGroupIdsItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; + }, + }; export const ArmIdWrapper: coreClient.CompositeMapper = { serializedName: "ArmIdWrapper", @@ -5537,11 +6297,11 @@ export const ArmIdWrapper: coreClient.CompositeMapper = { readOnly: true, xmlName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { @@ -5554,25 +6314,25 @@ export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { serializedName: "status", xmlName: "status", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, actionsRequired: { serializedName: "actionsRequired", xmlName: "actionsRequired", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiManagementServiceIdentity: coreClient.CompositeMapper = { @@ -5586,24 +6346,24 @@ export const ApiManagementServiceIdentity: coreClient.CompositeMapper = { required: true, xmlName: "type", type: { - name: "String" - } + name: "String", + }, }, principalId: { serializedName: "principalId", readOnly: true, xmlName: "principalId", type: { - name: "Uuid" - } + name: "Uuid", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, xmlName: "tenantId", type: { - name: "Uuid" - } + name: "Uuid", + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", @@ -5611,12 +6371,12 @@ export const ApiManagementServiceIdentity: coreClient.CompositeMapper = { type: { name: "Dictionary", value: { - type: { name: "Composite", className: "UserIdentityProperties" } - } - } - } - } - } + type: { name: "Composite", className: "UserIdentityProperties" }, + }, + }, + }, + }, + }, }; export const UserIdentityProperties: coreClient.CompositeMapper = { @@ -5629,119 +6389,42 @@ export const UserIdentityProperties: coreClient.CompositeMapper = { serializedName: "principalId", xmlName: "principalId", type: { - name: "String" - } + name: "String", + }, }, clientId: { serializedName: "clientId", xmlName: "clientId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SystemData: coreClient.CompositeMapper = { - serializedName: "SystemData", +export const MigrateToStv2Contract: coreClient.CompositeMapper = { + serializedName: "MigrateToStv2Contract", type: { name: "Composite", - className: "SystemData", + className: "MigrateToStv2Contract", modelProperties: { - createdBy: { - serializedName: "createdBy", - xmlName: "createdBy", - type: { - name: "String" - } - }, - createdByType: { - serializedName: "createdByType", - xmlName: "createdByType", - type: { - name: "String" - } - }, - createdAt: { - serializedName: "createdAt", - xmlName: "createdAt", - type: { - name: "DateTime" - } - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", - xmlName: "lastModifiedBy", - type: { - name: "String" - } - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", - xmlName: "lastModifiedByType", + mode: { + serializedName: "mode", + xmlName: "mode", type: { - name: "String" - } + name: "String", + }, }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - xmlName: "lastModifiedAt", - type: { - name: "DateTime" - } - } - } - } + }, + }, }; -export const ApimResource: coreClient.CompositeMapper = { - serializedName: "ApimResource", +export const ApiManagementServiceListResult: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceListResult", type: { name: "Composite", - className: "ApimResource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - xmlName: "id", - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - xmlName: "name", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - xmlName: "type", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - xmlName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const ApiManagementServiceListResult: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceListResult", - type: { - name: "Composite", - className: "ApiManagementServiceListResult", + className: "ApiManagementServiceListResult", modelProperties: { value: { serializedName: "value", @@ -5753,124 +6436,186 @@ export const ApiManagementServiceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiManagementServiceResource" - } - } - } + className: "ApiManagementServiceResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const ApiManagementServiceGetSsoTokenResult: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceGetSsoTokenResult", - type: { - name: "Composite", - className: "ApiManagementServiceGetSsoTokenResult", - modelProperties: { - redirectUri: { - serializedName: "redirectUri", - xmlName: "redirectUri", - type: { - name: "String" - } - } - } - } -}; - -export const ApiManagementServiceCheckNameAvailabilityParameters: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceCheckNameAvailabilityParameters", - type: { - name: "Composite", - className: "ApiManagementServiceCheckNameAvailabilityParameters", - modelProperties: { - name: { - serializedName: "name", - required: true, - xmlName: "name", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ApiManagementServiceGetSsoTokenResult: coreClient.CompositeMapper = + { + serializedName: "ApiManagementServiceGetSsoTokenResult", + type: { + name: "Composite", + className: "ApiManagementServiceGetSsoTokenResult", + modelProperties: { + redirectUri: { + serializedName: "redirectUri", + xmlName: "redirectUri", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiManagementServiceCheckNameAvailabilityParameters: coreClient.CompositeMapper = + { + serializedName: "ApiManagementServiceCheckNameAvailabilityParameters", + type: { + name: "Composite", + className: "ApiManagementServiceCheckNameAvailabilityParameters", + modelProperties: { + name: { + serializedName: "name", + required: true, + xmlName: "name", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiManagementServiceNameAvailabilityResult: coreClient.CompositeMapper = + { + serializedName: "ApiManagementServiceNameAvailabilityResult", + type: { + name: "Composite", + className: "ApiManagementServiceNameAvailabilityResult", + modelProperties: { + nameAvailable: { + serializedName: "nameAvailable", + readOnly: true, + xmlName: "nameAvailable", + type: { + name: "Boolean", + }, + }, + message: { + serializedName: "message", + readOnly: true, + xmlName: "message", + type: { + name: "String", + }, + }, + reason: { + serializedName: "reason", + xmlName: "reason", + type: { + name: "Enum", + allowedValues: ["Valid", "Invalid", "AlreadyExists"], + }, + }, + }, + }, + }; + +export const ApiManagementServiceGetDomainOwnershipIdentifierResult: coreClient.CompositeMapper = + { + serializedName: "ApiManagementServiceGetDomainOwnershipIdentifierResult", + type: { + name: "Composite", + className: "ApiManagementServiceGetDomainOwnershipIdentifierResult", + modelProperties: { + domainOwnershipIdentifier: { + serializedName: "domainOwnershipIdentifier", + readOnly: true, + xmlName: "domainOwnershipIdentifier", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiManagementServiceApplyNetworkConfigurationParameters: coreClient.CompositeMapper = + { + serializedName: "ApiManagementServiceApplyNetworkConfigurationParameters", + type: { + name: "Composite", + className: "ApiManagementServiceApplyNetworkConfigurationParameters", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiManagementServiceNameAvailabilityResult: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceNameAvailabilityResult", +export const DocumentationCollection: coreClient.CompositeMapper = { + serializedName: "DocumentationCollection", type: { name: "Composite", - className: "ApiManagementServiceNameAvailabilityResult", + className: "DocumentationCollection", modelProperties: { - nameAvailable: { - serializedName: "nameAvailable", + value: { + serializedName: "value", readOnly: true, - xmlName: "nameAvailable", + xmlName: "value", + xmlElementName: "DocumentationContract", type: { - name: "Boolean" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DocumentationContract", + }, + }, + }, }, - message: { - serializedName: "message", + nextLink: { + serializedName: "nextLink", readOnly: true, - xmlName: "message", + xmlName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, - reason: { - serializedName: "reason", - xmlName: "reason", - type: { - name: "Enum", - allowedValues: ["Valid", "Invalid", "AlreadyExists"] - } - } - } - } + }, + }, }; -export const ApiManagementServiceGetDomainOwnershipIdentifierResult: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceGetDomainOwnershipIdentifierResult", +export const DocumentationUpdateContract: coreClient.CompositeMapper = { + serializedName: "DocumentationUpdateContract", type: { name: "Composite", - className: "ApiManagementServiceGetDomainOwnershipIdentifierResult", + className: "DocumentationUpdateContract", modelProperties: { - domainOwnershipIdentifier: { - serializedName: "domainOwnershipIdentifier", - readOnly: true, - xmlName: "domainOwnershipIdentifier", + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { - name: "String" - } - } - } - } -}; - -export const ApiManagementServiceApplyNetworkConfigurationParameters: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceApplyNetworkConfigurationParameters", - type: { - name: "Composite", - className: "ApiManagementServiceApplyNetworkConfigurationParameters", - modelProperties: { - location: { - serializedName: "location", - xmlName: "location", + name: "String", + }, + }, + content: { + serializedName: "properties.content", + xmlName: "properties.content", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EmailTemplateCollection: coreClient.CompositeMapper = { @@ -5888,73 +6633,74 @@ export const EmailTemplateCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EmailTemplateContract" - } - } - } + className: "EmailTemplateContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const EmailTemplateParametersContractProperties: coreClient.CompositeMapper = { - serializedName: "EmailTemplateParametersContractProperties", - type: { - name: "Composite", - className: "EmailTemplateParametersContractProperties", - modelProperties: { - name: { - constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 + name: "String", }, - serializedName: "name", - xmlName: "name", - type: { - name: "String" - } }, - title: { - constraints: { - MaxLength: 4096, - MinLength: 1 + }, + }, +}; + +export const EmailTemplateParametersContractProperties: coreClient.CompositeMapper = + { + serializedName: "EmailTemplateParametersContractProperties", + type: { + name: "Composite", + className: "EmailTemplateParametersContractProperties", + modelProperties: { + name: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1, + }, + serializedName: "name", + xmlName: "name", + type: { + name: "String", + }, }, - serializedName: "title", - xmlName: "title", - type: { - name: "String" - } - }, - description: { - constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 + title: { + constraints: { + MaxLength: 4096, + MinLength: 1, + }, + serializedName: "title", + xmlName: "title", + type: { + name: "String", + }, }, - serializedName: "description", - xmlName: "description", - type: { - name: "String" - } - } - } - } -}; + description: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1, + }, + serializedName: "description", + xmlName: "description", + type: { + name: "String", + }, + }, + }, + }, + }; export const EmailTemplateUpdateParameters: coreClient.CompositeMapper = { serializedName: "EmailTemplateUpdateParameters", @@ -5965,37 +6711,37 @@ export const EmailTemplateUpdateParameters: coreClient.CompositeMapper = { subject: { constraints: { MaxLength: 1000, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.subject", xmlName: "properties.subject", type: { - name: "String" - } + name: "String", + }, }, title: { serializedName: "properties.title", xmlName: "properties.title", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, body: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "properties.body", xmlName: "properties.body", type: { - name: "String" - } + name: "String", + }, }, parameters: { serializedName: "properties.parameters", @@ -6006,13 +6752,13 @@ export const EmailTemplateUpdateParameters: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EmailTemplateParametersContractProperties" - } - } - } - } - } - } + className: "EmailTemplateParametersContractProperties", + }, + }, + }, + }, + }, + }, }; export const GatewayCollection: coreClient.CompositeMapper = { @@ -6031,28 +6777,28 @@ export const GatewayCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GatewayContract" - } - } - } + className: "GatewayContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceLocationDataContract: coreClient.CompositeMapper = { @@ -6063,47 +6809,47 @@ export const ResourceLocationDataContract: coreClient.CompositeMapper = { modelProperties: { name: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "name", required: true, xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, city: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "city", xmlName: "city", type: { - name: "String" - } + name: "String", + }, }, district: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "district", xmlName: "district", type: { - name: "String" - } + name: "String", + }, }, countryOrRegion: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "countryOrRegion", xmlName: "countryOrRegion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GatewayKeysContract: coreClient.CompositeMapper = { @@ -6116,38 +6862,39 @@ export const GatewayKeysContract: coreClient.CompositeMapper = { serializedName: "primary", xmlName: "primary", type: { - name: "String" - } + name: "String", + }, }, secondary: { serializedName: "secondary", xmlName: "secondary", type: { - name: "String" - } - } - } - } -}; - -export const GatewayKeyRegenerationRequestContract: coreClient.CompositeMapper = { - serializedName: "GatewayKeyRegenerationRequestContract", - type: { - name: "Composite", - className: "GatewayKeyRegenerationRequestContract", - modelProperties: { - keyType: { - serializedName: "keyType", - required: true, - xmlName: "keyType", - type: { - name: "Enum", - allowedValues: ["primary", "secondary"] - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const GatewayKeyRegenerationRequestContract: coreClient.CompositeMapper = + { + serializedName: "GatewayKeyRegenerationRequestContract", + type: { + name: "Composite", + className: "GatewayKeyRegenerationRequestContract", + modelProperties: { + keyType: { + serializedName: "keyType", + required: true, + xmlName: "keyType", + type: { + name: "Enum", + allowedValues: ["primary", "secondary"], + }, + }, + }, + }, + }; export const GatewayTokenRequestContract: coreClient.CompositeMapper = { serializedName: "GatewayTokenRequestContract", @@ -6161,19 +6908,19 @@ export const GatewayTokenRequestContract: coreClient.CompositeMapper = { xmlName: "keyType", type: { name: "Enum", - allowedValues: ["primary", "secondary"] - } + allowedValues: ["primary", "secondary"], + }, }, expiry: { serializedName: "expiry", required: true, xmlName: "expiry", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const GatewayTokenContract: coreClient.CompositeMapper = { @@ -6186,77 +6933,152 @@ export const GatewayTokenContract: coreClient.CompositeMapper = { serializedName: "value", xmlName: "value", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const GatewayHostnameConfigurationCollection: coreClient.CompositeMapper = + { + serializedName: "GatewayHostnameConfigurationCollection", + type: { + name: "Composite", + className: "GatewayHostnameConfigurationCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "GatewayHostnameConfigurationContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GatewayHostnameConfigurationContract", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const GatewayCertificateAuthorityCollection: coreClient.CompositeMapper = + { + serializedName: "GatewayCertificateAuthorityCollection", + type: { + name: "Composite", + className: "GatewayCertificateAuthorityCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "GatewayCertificateAuthorityContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GatewayCertificateAuthorityContract", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; -export const GatewayHostnameConfigurationCollection: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfigurationCollection", +export const GatewayListDebugCredentialsContract: coreClient.CompositeMapper = { + serializedName: "GatewayListDebugCredentialsContract", type: { name: "Composite", - className: "GatewayHostnameConfigurationCollection", + className: "GatewayListDebugCredentialsContract", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - xmlName: "value", - xmlElementName: "GatewayHostnameConfigurationContract", + credentialsExpireAfter: { + serializedName: "credentialsExpireAfter", + xmlName: "credentialsExpireAfter", + type: { + name: "TimeSpan", + }, + }, + purposes: { + serializedName: "purposes", + required: true, + xmlName: "purposes", + xmlElementName: "GatewayListDebugCredentialsContractPurpose", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "GatewayHostnameConfigurationContract" - } - } - } + name: "String", + }, + }, + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - xmlName: "nextLink", + apiId: { + serializedName: "apiId", + required: true, + xmlName: "apiId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayCertificateAuthorityCollection: coreClient.CompositeMapper = { - serializedName: "GatewayCertificateAuthorityCollection", +export const GatewayDebugCredentialsContract: coreClient.CompositeMapper = { + serializedName: "GatewayDebugCredentialsContract", type: { name: "Composite", - className: "GatewayCertificateAuthorityCollection", + className: "GatewayDebugCredentialsContract", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - xmlName: "value", - xmlElementName: "GatewayCertificateAuthorityContract", + token: { + serializedName: "token", + xmlName: "token", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GatewayCertificateAuthorityContract" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - xmlName: "nextLink", + }, + }, +}; + +export const GatewayListTraceContract: coreClient.CompositeMapper = { + serializedName: "GatewayListTraceContract", + type: { + name: "Composite", + className: "GatewayListTraceContract", + modelProperties: { + traceId: { + serializedName: "traceId", + xmlName: "traceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GroupCollection: coreClient.CompositeMapper = { @@ -6274,27 +7096,27 @@ export const GroupCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GroupContract" - } - } - } + className: "GroupContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GroupContractProperties: coreClient.CompositeMapper = { @@ -6306,50 +7128,50 @@ export const GroupContractProperties: coreClient.CompositeMapper = { displayName: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, serializedName: "displayName", required: true, xmlName: "displayName", type: { - name: "String" - } + name: "String", + }, }, description: { constraints: { - MaxLength: 1000 + MaxLength: 1000, }, serializedName: "description", xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, builtIn: { serializedName: "builtIn", readOnly: true, xmlName: "builtIn", type: { - name: "Boolean" - } + name: "Boolean", + }, }, type: { serializedName: "type", xmlName: "type", type: { name: "Enum", - allowedValues: ["custom", "system", "external"] - } + allowedValues: ["custom", "system", "external"], + }, }, externalId: { serializedName: "externalId", xmlName: "externalId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GroupCreateParameters: coreClient.CompositeMapper = { @@ -6361,38 +7183,38 @@ export const GroupCreateParameters: coreClient.CompositeMapper = { displayName: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "properties.type", xmlName: "properties.type", type: { name: "Enum", - allowedValues: ["custom", "system", "external"] - } + allowedValues: ["custom", "system", "external"], + }, }, externalId: { serializedName: "properties.externalId", xmlName: "properties.externalId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GroupUpdateParameters: coreClient.CompositeMapper = { @@ -6404,38 +7226,38 @@ export const GroupUpdateParameters: coreClient.CompositeMapper = { displayName: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "properties.type", xmlName: "properties.type", type: { name: "Enum", - allowedValues: ["custom", "system", "external"] - } + allowedValues: ["custom", "system", "external"], + }, }, externalId: { serializedName: "properties.externalId", xmlName: "properties.externalId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserCollection: coreClient.CompositeMapper = { @@ -6453,27 +7275,27 @@ export const UserCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UserContract" - } - } - } + className: "UserContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserEntityBaseParameters: coreClient.CompositeMapper = { @@ -6487,15 +7309,15 @@ export const UserEntityBaseParameters: coreClient.CompositeMapper = { serializedName: "state", xmlName: "state", type: { - name: "String" - } + name: "String", + }, }, note: { serializedName: "note", xmlName: "note", type: { - name: "String" - } + name: "String", + }, }, identities: { serializedName: "identities", @@ -6506,13 +7328,13 @@ export const UserEntityBaseParameters: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UserIdentityContract" - } - } - } - } - } - } + className: "UserIdentityContract", + }, + }, + }, + }, + }, + }, }; export const UserIdentityContract: coreClient.CompositeMapper = { @@ -6525,18 +7347,18 @@ export const UserIdentityContract: coreClient.CompositeMapper = { serializedName: "provider", xmlName: "provider", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", xmlName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IdentityProviderList: coreClient.CompositeMapper = { @@ -6554,27 +7376,27 @@ export const IdentityProviderList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IdentityProviderContract" - } - } - } + className: "IdentityProviderContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IdentityProviderBaseParameters: coreClient.CompositeMapper = { @@ -6587,19 +7409,19 @@ export const IdentityProviderBaseParameters: coreClient.CompositeMapper = { serializedName: "type", xmlName: "type", type: { - name: "String" - } + name: "String", + }, }, signinTenant: { serializedName: "signinTenant", xmlName: "signinTenant", type: { - name: "String" - } + name: "String", + }, }, allowedTenants: { constraints: { - MaxItems: 32 + MaxItems: 32, }, serializedName: "allowedTenants", xmlName: "allowedTenants", @@ -6608,70 +7430,70 @@ export const IdentityProviderBaseParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, authority: { serializedName: "authority", xmlName: "authority", type: { - name: "String" - } + name: "String", + }, }, signupPolicyName: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "signupPolicyName", xmlName: "signupPolicyName", type: { - name: "String" - } + name: "String", + }, }, signinPolicyName: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "signinPolicyName", xmlName: "signinPolicyName", type: { - name: "String" - } + name: "String", + }, }, profileEditingPolicyName: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "profileEditingPolicyName", xmlName: "profileEditingPolicyName", type: { - name: "String" - } + name: "String", + }, }, passwordResetPolicyName: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "passwordResetPolicyName", xmlName: "passwordResetPolicyName", type: { - name: "String" - } + name: "String", + }, }, clientLibrary: { constraints: { - MaxLength: 16 + MaxLength: 16, }, serializedName: "clientLibrary", xmlName: "clientLibrary", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IdentityProviderUpdateParameters: coreClient.CompositeMapper = { @@ -6684,19 +7506,19 @@ export const IdentityProviderUpdateParameters: coreClient.CompositeMapper = { serializedName: "properties.type", xmlName: "properties.type", type: { - name: "String" - } + name: "String", + }, }, signinTenant: { serializedName: "properties.signinTenant", xmlName: "properties.signinTenant", type: { - name: "String" - } + name: "String", + }, }, allowedTenants: { constraints: { - MaxItems: 32 + MaxItems: 32, }, serializedName: "properties.allowedTenants", xmlName: "properties.allowedTenants", @@ -6705,90 +7527,90 @@ export const IdentityProviderUpdateParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, authority: { serializedName: "properties.authority", xmlName: "properties.authority", type: { - name: "String" - } + name: "String", + }, }, signupPolicyName: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "properties.signupPolicyName", xmlName: "properties.signupPolicyName", type: { - name: "String" - } + name: "String", + }, }, signinPolicyName: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "properties.signinPolicyName", xmlName: "properties.signinPolicyName", type: { - name: "String" - } + name: "String", + }, }, profileEditingPolicyName: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "properties.profileEditingPolicyName", xmlName: "properties.profileEditingPolicyName", type: { - name: "String" - } + name: "String", + }, }, passwordResetPolicyName: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "properties.passwordResetPolicyName", xmlName: "properties.passwordResetPolicyName", type: { - name: "String" - } + name: "String", + }, }, clientLibrary: { constraints: { - MaxLength: 16 + MaxLength: 16, }, serializedName: "properties.clientLibrary", xmlName: "properties.clientLibrary", type: { - name: "String" - } + name: "String", + }, }, clientId: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "properties.clientId", xmlName: "properties.clientId", type: { - name: "String" - } + name: "String", + }, }, clientSecret: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "properties.clientSecret", xmlName: "properties.clientSecret", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClientSecretContract: coreClient.CompositeMapper = { @@ -6801,11 +7623,11 @@ export const ClientSecretContract: coreClient.CompositeMapper = { serializedName: "clientSecret", xmlName: "clientSecret", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LoggerCollection: coreClient.CompositeMapper = { @@ -6823,27 +7645,27 @@ export const LoggerCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LoggerContract" - } - } - } + className: "LoggerContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LoggerUpdateContract: coreClient.CompositeMapper = { @@ -6856,33 +7678,33 @@ export const LoggerUpdateContract: coreClient.CompositeMapper = { serializedName: "properties.loggerType", xmlName: "properties.loggerType", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, credentials: { serializedName: "properties.credentials", xmlName: "properties.credentials", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, isBuffered: { serializedName: "properties.isBuffered", xmlName: "properties.isBuffered", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const NamedValueCollection: coreClient.CompositeMapper = { @@ -6900,27 +7722,27 @@ export const NamedValueCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NamedValueContract" - } - } - } + className: "NamedValueContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NamedValueEntityBaseParameters: coreClient.CompositeMapper = { @@ -6931,7 +7753,7 @@ export const NamedValueEntityBaseParameters: coreClient.CompositeMapper = { modelProperties: { tags: { constraints: { - MaxItems: 32 + MaxItems: 32, }, serializedName: "tags", xmlName: "tags", @@ -6940,20 +7762,20 @@ export const NamedValueEntityBaseParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, secret: { serializedName: "secret", xmlName: "secret", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const NamedValueUpdateParameters: coreClient.CompositeMapper = { @@ -6964,7 +7786,7 @@ export const NamedValueUpdateParameters: coreClient.CompositeMapper = { modelProperties: { tags: { constraints: { - MaxItems: 32 + MaxItems: 32, }, serializedName: "properties.tags", xmlName: "properties.tags", @@ -6973,51 +7795,51 @@ export const NamedValueUpdateParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, secret: { serializedName: "properties.secret", xmlName: "properties.secret", type: { - name: "Boolean" - } + name: "Boolean", + }, }, displayName: { constraints: { Pattern: new RegExp("^[A-Za-z0-9-._]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, value: { constraints: { MaxLength: 4096, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.value", xmlName: "properties.value", type: { - name: "String" - } + name: "String", + }, }, keyVault: { serializedName: "properties.keyVault", xmlName: "properties.keyVault", type: { name: "Composite", - className: "KeyVaultContractCreateProperties" - } - } - } - } + className: "KeyVaultContractCreateProperties", + }, + }, + }, + }, }; export const NamedValueSecretContract: coreClient.CompositeMapper = { @@ -7030,11 +7852,11 @@ export const NamedValueSecretContract: coreClient.CompositeMapper = { serializedName: "value", xmlName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetworkStatusContractByLocation: coreClient.CompositeMapper = { @@ -7045,24 +7867,24 @@ export const NetworkStatusContractByLocation: coreClient.CompositeMapper = { modelProperties: { location: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "location", xmlName: "location", type: { - name: "String" - } + name: "String", + }, }, networkStatus: { serializedName: "networkStatus", xmlName: "networkStatus", type: { name: "Composite", - className: "NetworkStatusContract" - } - } - } - } + className: "NetworkStatusContract", + }, + }, + }, + }, }; export const NetworkStatusContract: coreClient.CompositeMapper = { @@ -7080,10 +7902,10 @@ export const NetworkStatusContract: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, connectivityStatus: { serializedName: "connectivityStatus", @@ -7095,13 +7917,13 @@ export const NetworkStatusContract: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ConnectivityStatusContract" - } - } - } - } - } - } + className: "ConnectivityStatusContract", + }, + }, + }, + }, + }, + }, }; export const ConnectivityStatusContract: coreClient.CompositeMapper = { @@ -7112,64 +7934,64 @@ export const ConnectivityStatusContract: coreClient.CompositeMapper = { modelProperties: { name: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "name", required: true, xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", required: true, xmlName: "status", type: { - name: "String" - } + name: "String", + }, }, error: { serializedName: "error", xmlName: "error", type: { - name: "String" - } + name: "String", + }, }, lastUpdated: { serializedName: "lastUpdated", required: true, xmlName: "lastUpdated", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastStatusChange: { serializedName: "lastStatusChange", required: true, xmlName: "lastStatusChange", type: { - name: "DateTime" - } + name: "DateTime", + }, }, resourceType: { serializedName: "resourceType", required: true, xmlName: "resourceType", type: { - name: "String" - } + name: "String", + }, }, isOptional: { serializedName: "isOptional", required: true, xmlName: "isOptional", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const NotificationCollection: coreClient.CompositeMapper = { @@ -7187,27 +8009,27 @@ export const NotificationCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NotificationContract" - } - } - } + className: "NotificationContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RecipientsContractProperties: coreClient.CompositeMapper = { @@ -7224,10 +8046,10 @@ export const RecipientsContractProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, users: { serializedName: "users", @@ -7237,13 +8059,13 @@ export const RecipientsContractProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const RecipientUserCollection: coreClient.CompositeMapper = { @@ -7261,27 +8083,27 @@ export const RecipientUserCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RecipientUserContract" - } - } - } + className: "RecipientUserContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RecipientEmailCollection: coreClient.CompositeMapper = { @@ -7299,27 +8121,27 @@ export const RecipientEmailCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RecipientEmailContract" - } - } - } + className: "RecipientEmailContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OpenIdConnectProviderCollection: coreClient.CompositeMapper = { @@ -7337,27 +8159,27 @@ export const OpenIdConnectProviderCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OpenidConnectProviderContract" - } - } - } + className: "OpenidConnectProviderContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OpenidConnectProviderUpdateContract: coreClient.CompositeMapper = { @@ -7368,58 +8190,58 @@ export const OpenidConnectProviderUpdateContract: coreClient.CompositeMapper = { modelProperties: { displayName: { constraints: { - MaxLength: 50 + MaxLength: 50, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, metadataEndpoint: { serializedName: "properties.metadataEndpoint", xmlName: "properties.metadataEndpoint", type: { - name: "String" - } + name: "String", + }, }, clientId: { serializedName: "properties.clientId", xmlName: "properties.clientId", type: { - name: "String" - } + name: "String", + }, }, clientSecret: { serializedName: "properties.clientSecret", xmlName: "properties.clientSecret", type: { - name: "String" - } + name: "String", + }, }, useInTestConsole: { serializedName: "properties.useInTestConsole", xmlName: "properties.useInTestConsole", type: { - name: "Boolean" - } + name: "Boolean", + }, }, useInApiDocumentation: { serializedName: "properties.useInApiDocumentation", xmlName: "properties.useInApiDocumentation", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const OutboundEnvironmentEndpointList: coreClient.CompositeMapper = { @@ -7438,21 +8260,21 @@ export const OutboundEnvironmentEndpointList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OutboundEnvironmentEndpoint" - } - } - } + className: "OutboundEnvironmentEndpoint", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { @@ -7465,8 +8287,8 @@ export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { serializedName: "category", xmlName: "category", type: { - name: "String" - } + name: "String", + }, }, endpoints: { serializedName: "endpoints", @@ -7477,13 +8299,13 @@ export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EndpointDependency" - } - } - } - } - } - } + className: "EndpointDependency", + }, + }, + }, + }, + }, + }, }; export const EndpointDependency: coreClient.CompositeMapper = { @@ -7496,8 +8318,8 @@ export const EndpointDependency: coreClient.CompositeMapper = { serializedName: "domainName", xmlName: "domainName", type: { - name: "String" - } + name: "String", + }, }, endpointDetails: { serializedName: "endpointDetails", @@ -7508,13 +8330,13 @@ export const EndpointDependency: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EndpointDetail" - } - } - } - } - } - } + className: "EndpointDetail", + }, + }, + }, + }, + }, + }, }; export const EndpointDetail: coreClient.CompositeMapper = { @@ -7527,18 +8349,18 @@ export const EndpointDetail: coreClient.CompositeMapper = { serializedName: "port", xmlName: "port", type: { - name: "Number" - } + name: "Number", + }, }, region: { serializedName: "region", xmlName: "region", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PolicyDescriptionCollection: coreClient.CompositeMapper = { @@ -7556,20 +8378,20 @@ export const PolicyDescriptionCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PolicyDescriptionContract" - } - } - } + className: "PolicyDescriptionContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const PolicyFragmentCollection: coreClient.CompositeMapper = { @@ -7587,27 +8409,27 @@ export const PolicyFragmentCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PolicyFragmentContract" - } - } - } + className: "PolicyFragmentContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceCollection: coreClient.CompositeMapper = { @@ -7625,27 +8447,114 @@ export const ResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceCollectionValueItem" - } - } - } + className: "ResourceCollectionValueItem", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const PolicyRestrictionCollection: coreClient.CompositeMapper = { + serializedName: "PolicyRestrictionCollection", + type: { + name: "Composite", + className: "PolicyRestrictionCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "PolicyRestrictionContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PolicyRestrictionContract", + }, + }, + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const PolicyRestrictionUpdateContract: coreClient.CompositeMapper = { + serializedName: "PolicyRestrictionUpdateContract", + type: { + name: "Composite", + className: "PolicyRestrictionUpdateContract", + modelProperties: { + scope: { + serializedName: "properties.scope", + xmlName: "properties.scope", + type: { + name: "String", + }, + }, + requireBase: { + defaultValue: "false", + serializedName: "properties.requireBase", + xmlName: "properties.requireBase", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const OperationResultLogItemContract: coreClient.CompositeMapper = { + serializedName: "OperationResultLogItemContract", + type: { + name: "Composite", + className: "OperationResultLogItemContract", + modelProperties: { + objectType: { + serializedName: "objectType", + xmlName: "objectType", + type: { + name: "String", + }, + }, + action: { + serializedName: "action", + xmlName: "action", + type: { + name: "String", + }, + }, + objectKey: { + serializedName: "objectKey", + xmlName: "objectKey", + type: { + name: "String", + }, + }, + }, + }, }; export const PortalConfigCollection: coreClient.CompositeMapper = { @@ -7663,21 +8572,21 @@ export const PortalConfigCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PortalConfigContract" - } - } - } + className: "PortalConfigContract", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PortalConfigPropertiesSignin: coreClient.CompositeMapper = { @@ -7691,11 +8600,11 @@ export const PortalConfigPropertiesSignin: coreClient.CompositeMapper = { serializedName: "require", xmlName: "require", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const PortalConfigPropertiesSignup: coreClient.CompositeMapper = { @@ -7709,37 +8618,38 @@ export const PortalConfigPropertiesSignup: coreClient.CompositeMapper = { xmlName: "termsOfService", type: { name: "Composite", - className: "PortalConfigTermsOfServiceProperties" - } - } - } - } -}; - -export const PortalConfigTermsOfServiceProperties: coreClient.CompositeMapper = { - serializedName: "PortalConfigTermsOfServiceProperties", - type: { - name: "Composite", - className: "PortalConfigTermsOfServiceProperties", - modelProperties: { - text: { - serializedName: "text", - xmlName: "text", - type: { - name: "String" - } + className: "PortalConfigTermsOfServiceProperties", + }, }, - requireConsent: { - defaultValue: false, - serializedName: "requireConsent", - xmlName: "requireConsent", - type: { - name: "Boolean" - } - } - } - } -}; + }, + }, +}; + +export const PortalConfigTermsOfServiceProperties: coreClient.CompositeMapper = + { + serializedName: "PortalConfigTermsOfServiceProperties", + type: { + name: "Composite", + className: "PortalConfigTermsOfServiceProperties", + modelProperties: { + text: { + serializedName: "text", + xmlName: "text", + type: { + name: "String", + }, + }, + requireConsent: { + defaultValue: false, + serializedName: "requireConsent", + xmlName: "requireConsent", + type: { + name: "Boolean", + }, + }, + }, + }, + }; export const PortalConfigDelegationProperties: coreClient.CompositeMapper = { serializedName: "PortalConfigDelegationProperties", @@ -7752,33 +8662,33 @@ export const PortalConfigDelegationProperties: coreClient.CompositeMapper = { serializedName: "delegateRegistration", xmlName: "delegateRegistration", type: { - name: "Boolean" - } + name: "Boolean", + }, }, delegateSubscription: { defaultValue: false, serializedName: "delegateSubscription", xmlName: "delegateSubscription", type: { - name: "Boolean" - } + name: "Boolean", + }, }, delegationUrl: { serializedName: "delegationUrl", xmlName: "delegationUrl", type: { - name: "String" - } + name: "String", + }, }, validationKey: { serializedName: "validationKey", xmlName: "validationKey", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PortalConfigCorsProperties: coreClient.CompositeMapper = { @@ -7795,13 +8705,13 @@ export const PortalConfigCorsProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const PortalConfigCspProperties: coreClient.CompositeMapper = { @@ -7815,8 +8725,8 @@ export const PortalConfigCspProperties: coreClient.CompositeMapper = { serializedName: "mode", xmlName: "mode", type: { - name: "String" - } + name: "String", + }, }, reportUri: { serializedName: "reportUri", @@ -7826,10 +8736,10 @@ export const PortalConfigCspProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, allowedSources: { serializedName: "allowedSources", @@ -7839,13 +8749,13 @@ export const PortalConfigCspProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const PortalRevisionCollection: coreClient.CompositeMapper = { @@ -7864,21 +8774,21 @@ export const PortalRevisionCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PortalRevisionContract" - } - } - } + className: "PortalRevisionContract", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PortalSettingsCollection: coreClient.CompositeMapper = { @@ -7896,55 +8806,57 @@ export const PortalSettingsCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PortalSettingsContract" - } - } - } + className: "PortalSettingsContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } - } - } - } -}; - -export const SubscriptionsDelegationSettingsProperties: coreClient.CompositeMapper = { - serializedName: "SubscriptionsDelegationSettingsProperties", - type: { - name: "Composite", - className: "SubscriptionsDelegationSettingsProperties", - modelProperties: { - enabled: { - serializedName: "enabled", - xmlName: "enabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const RegistrationDelegationSettingsProperties: coreClient.CompositeMapper = { - serializedName: "RegistrationDelegationSettingsProperties", - type: { - name: "Composite", - className: "RegistrationDelegationSettingsProperties", - modelProperties: { - enabled: { - serializedName: "enabled", - xmlName: "enabled", - type: { - name: "Boolean" - } - } - } - } -}; + name: "Number", + }, + }, + }, + }, +}; + +export const SubscriptionsDelegationSettingsProperties: coreClient.CompositeMapper = + { + serializedName: "SubscriptionsDelegationSettingsProperties", + type: { + name: "Composite", + className: "SubscriptionsDelegationSettingsProperties", + modelProperties: { + enabled: { + serializedName: "enabled", + xmlName: "enabled", + type: { + name: "Boolean", + }, + }, + }, + }, + }; + +export const RegistrationDelegationSettingsProperties: coreClient.CompositeMapper = + { + serializedName: "RegistrationDelegationSettingsProperties", + type: { + name: "Composite", + className: "RegistrationDelegationSettingsProperties", + modelProperties: { + enabled: { + serializedName: "enabled", + xmlName: "enabled", + type: { + name: "Boolean", + }, + }, + }, + }, + }; export const TermsOfServiceProperties: coreClient.CompositeMapper = { serializedName: "TermsOfServiceProperties", @@ -7956,25 +8868,25 @@ export const TermsOfServiceProperties: coreClient.CompositeMapper = { serializedName: "text", xmlName: "text", type: { - name: "String" - } + name: "String", + }, }, enabled: { serializedName: "enabled", xmlName: "enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, consentRequired: { serializedName: "consentRequired", xmlName: "consentRequired", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const PortalSettingValidationKeyContract: coreClient.CompositeMapper = { @@ -7987,11 +8899,11 @@ export const PortalSettingValidationKeyContract: coreClient.CompositeMapper = { serializedName: "validationKey", xmlName: "validationKey", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { @@ -8009,13 +8921,13 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, + }, + }, + }, }; export const PrivateEndpoint: coreClient.CompositeMapper = { @@ -8029,11 +8941,11 @@ export const PrivateEndpoint: coreClient.CompositeMapper = { readOnly: true, xmlName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpointConnectionRequest: coreClient.CompositeMapper = { @@ -8046,44 +8958,45 @@ export const PrivateEndpointConnectionRequest: coreClient.CompositeMapper = { serializedName: "id", xmlName: "id", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", xmlName: "properties", type: { name: "Composite", - className: "PrivateEndpointConnectionRequestProperties" - } - } - } - } -}; + className: "PrivateEndpointConnectionRequestProperties", + }, + }, + }, + }, +}; + +export const PrivateEndpointConnectionRequestProperties: coreClient.CompositeMapper = + { + serializedName: "PrivateEndpointConnectionRequestProperties", + type: { + name: "Composite", + className: "PrivateEndpointConnectionRequestProperties", + modelProperties: { + privateLinkServiceConnectionState: { + serializedName: "privateLinkServiceConnectionState", + xmlName: "privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + }, + }, + }, + }, + }; -export const PrivateEndpointConnectionRequestProperties: coreClient.CompositeMapper = { - serializedName: "PrivateEndpointConnectionRequestProperties", +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { + serializedName: "PrivateLinkResourceListResult", type: { name: "Composite", - className: "PrivateEndpointConnectionRequestProperties", - modelProperties: { - privateLinkServiceConnectionState: { - serializedName: "privateLinkServiceConnectionState", - xmlName: "privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" - } - } - } - } -}; - -export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { - serializedName: "PrivateLinkResourceListResult", - type: { - name: "Composite", - className: "PrivateLinkResourceListResult", + className: "PrivateLinkResourceListResult", modelProperties: { value: { serializedName: "value", @@ -8094,13 +9007,13 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" - } - } - } - } - } - } + className: "PrivateLinkResource", + }, + }, + }, + }, + }, + }, }; export const ProductUpdateParameters: coreClient.CompositeMapper = { @@ -8111,63 +9024,63 @@ export const ProductUpdateParameters: coreClient.CompositeMapper = { modelProperties: { description: { constraints: { - MaxLength: 1000 + MaxLength: 1000, }, serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, terms: { serializedName: "properties.terms", xmlName: "properties.terms", type: { - name: "String" - } + name: "String", + }, }, subscriptionRequired: { serializedName: "properties.subscriptionRequired", xmlName: "properties.subscriptionRequired", type: { - name: "Boolean" - } + name: "Boolean", + }, }, approvalRequired: { serializedName: "properties.approvalRequired", xmlName: "properties.approvalRequired", type: { - name: "Boolean" - } + name: "Boolean", + }, }, subscriptionsLimit: { serializedName: "properties.subscriptionsLimit", xmlName: "properties.subscriptionsLimit", type: { - name: "Number" - } + name: "Number", + }, }, state: { serializedName: "properties.state", xmlName: "properties.state", type: { name: "Enum", - allowedValues: ["notPublished", "published"] - } + allowedValues: ["notPublished", "published"], + }, }, displayName: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SubscriptionCollection: coreClient.CompositeMapper = { @@ -8185,27 +9098,103 @@ export const SubscriptionCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubscriptionContract" - } - } - } + className: "SubscriptionContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ProductApiLinkCollection: coreClient.CompositeMapper = { + serializedName: "ProductApiLinkCollection", + type: { + name: "Composite", + className: "ProductApiLinkCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "ProductApiLinkContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProductApiLinkContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ProductGroupLinkCollection: coreClient.CompositeMapper = { + serializedName: "ProductGroupLinkCollection", + type: { + name: "Composite", + className: "ProductGroupLinkCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "ProductGroupLinkContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProductGroupLinkContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const QuotaCounterCollection: coreClient.CompositeMapper = { @@ -8223,27 +9212,27 @@ export const QuotaCounterCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "QuotaCounterContract" - } - } - } + className: "QuotaCounterContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const QuotaCounterContract: coreClient.CompositeMapper = { @@ -8254,52 +9243,52 @@ export const QuotaCounterContract: coreClient.CompositeMapper = { modelProperties: { counterKey: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "counterKey", required: true, xmlName: "counterKey", type: { - name: "String" - } + name: "String", + }, }, periodKey: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "periodKey", required: true, xmlName: "periodKey", type: { - name: "String" - } + name: "String", + }, }, periodStartTime: { serializedName: "periodStartTime", required: true, xmlName: "periodStartTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, periodEndTime: { serializedName: "periodEndTime", required: true, xmlName: "periodEndTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, value: { serializedName: "value", xmlName: "value", type: { name: "Composite", - className: "QuotaCounterValueContractProperties" - } - } - } - } + className: "QuotaCounterValueContractProperties", + }, + }, + }, + }, }; export const QuotaCounterValueContractProperties: coreClient.CompositeMapper = { @@ -8312,18 +9301,18 @@ export const QuotaCounterValueContractProperties: coreClient.CompositeMapper = { serializedName: "callsCount", xmlName: "callsCount", type: { - name: "Number" - } + name: "Number", + }, }, kbTransferred: { serializedName: "kbTransferred", xmlName: "kbTransferred", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const QuotaCounterValueUpdateContract: coreClient.CompositeMapper = { @@ -8336,18 +9325,18 @@ export const QuotaCounterValueUpdateContract: coreClient.CompositeMapper = { serializedName: "properties.callsCount", xmlName: "properties.callsCount", type: { - name: "Number" - } + name: "Number", + }, }, kbTransferred: { serializedName: "properties.kbTransferred", xmlName: "properties.kbTransferred", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const RegionListResult: coreClient.CompositeMapper = { @@ -8365,27 +9354,27 @@ export const RegionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RegionContract" - } - } - } + className: "RegionContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RegionContract: coreClient.CompositeMapper = { @@ -8399,25 +9388,25 @@ export const RegionContract: coreClient.CompositeMapper = { readOnly: true, xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, isMasterRegion: { serializedName: "isMasterRegion", xmlName: "isMasterRegion", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isDeleted: { serializedName: "isDeleted", xmlName: "isDeleted", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ReportCollection: coreClient.CompositeMapper = { @@ -8435,27 +9424,27 @@ export const ReportCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ReportRecordContract" - } - } - } + className: "ReportRecordContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ReportRecordContract: coreClient.CompositeMapper = { @@ -8468,188 +9457,188 @@ export const ReportRecordContract: coreClient.CompositeMapper = { serializedName: "name", xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, timestamp: { serializedName: "timestamp", xmlName: "timestamp", type: { - name: "DateTime" - } + name: "DateTime", + }, }, interval: { serializedName: "interval", xmlName: "interval", type: { - name: "String" - } + name: "String", + }, }, country: { serializedName: "country", xmlName: "country", type: { - name: "String" - } + name: "String", + }, }, region: { serializedName: "region", xmlName: "region", type: { - name: "String" - } + name: "String", + }, }, zip: { serializedName: "zip", xmlName: "zip", type: { - name: "String" - } + name: "String", + }, }, userId: { serializedName: "userId", readOnly: true, xmlName: "userId", type: { - name: "String" - } + name: "String", + }, }, productId: { serializedName: "productId", readOnly: true, xmlName: "productId", type: { - name: "String" - } + name: "String", + }, }, apiId: { serializedName: "apiId", xmlName: "apiId", type: { - name: "String" - } + name: "String", + }, }, operationId: { serializedName: "operationId", xmlName: "operationId", type: { - name: "String" - } + name: "String", + }, }, apiRegion: { serializedName: "apiRegion", xmlName: "apiRegion", type: { - name: "String" - } + name: "String", + }, }, subscriptionId: { serializedName: "subscriptionId", xmlName: "subscriptionId", type: { - name: "String" - } + name: "String", + }, }, callCountSuccess: { serializedName: "callCountSuccess", xmlName: "callCountSuccess", type: { - name: "Number" - } + name: "Number", + }, }, callCountBlocked: { serializedName: "callCountBlocked", xmlName: "callCountBlocked", type: { - name: "Number" - } + name: "Number", + }, }, callCountFailed: { serializedName: "callCountFailed", xmlName: "callCountFailed", type: { - name: "Number" - } + name: "Number", + }, }, callCountOther: { serializedName: "callCountOther", xmlName: "callCountOther", type: { - name: "Number" - } + name: "Number", + }, }, callCountTotal: { serializedName: "callCountTotal", xmlName: "callCountTotal", type: { - name: "Number" - } + name: "Number", + }, }, bandwidth: { serializedName: "bandwidth", xmlName: "bandwidth", type: { - name: "Number" - } + name: "Number", + }, }, cacheHitCount: { serializedName: "cacheHitCount", xmlName: "cacheHitCount", type: { - name: "Number" - } + name: "Number", + }, }, cacheMissCount: { serializedName: "cacheMissCount", xmlName: "cacheMissCount", type: { - name: "Number" - } + name: "Number", + }, }, apiTimeAvg: { serializedName: "apiTimeAvg", xmlName: "apiTimeAvg", type: { - name: "Number" - } + name: "Number", + }, }, apiTimeMin: { serializedName: "apiTimeMin", xmlName: "apiTimeMin", type: { - name: "Number" - } + name: "Number", + }, }, apiTimeMax: { serializedName: "apiTimeMax", xmlName: "apiTimeMax", type: { - name: "Number" - } + name: "Number", + }, }, serviceTimeAvg: { serializedName: "serviceTimeAvg", xmlName: "serviceTimeAvg", type: { - name: "Number" - } + name: "Number", + }, }, serviceTimeMin: { serializedName: "serviceTimeMin", xmlName: "serviceTimeMin", type: { - name: "Number" - } + name: "Number", + }, }, serviceTimeMax: { serializedName: "serviceTimeMax", xmlName: "serviceTimeMax", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const RequestReportCollection: coreClient.CompositeMapper = { @@ -8667,20 +9656,20 @@ export const RequestReportCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RequestReportRecordContract" - } - } - } + className: "RequestReportRecordContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const RequestReportRecordContract: coreClient.CompositeMapper = { @@ -8693,132 +9682,132 @@ export const RequestReportRecordContract: coreClient.CompositeMapper = { serializedName: "apiId", xmlName: "apiId", type: { - name: "String" - } + name: "String", + }, }, operationId: { serializedName: "operationId", xmlName: "operationId", type: { - name: "String" - } + name: "String", + }, }, productId: { serializedName: "productId", readOnly: true, xmlName: "productId", type: { - name: "String" - } + name: "String", + }, }, userId: { serializedName: "userId", readOnly: true, xmlName: "userId", type: { - name: "String" - } + name: "String", + }, }, method: { serializedName: "method", xmlName: "method", type: { - name: "String" - } + name: "String", + }, }, url: { serializedName: "url", xmlName: "url", type: { - name: "String" - } + name: "String", + }, }, ipAddress: { serializedName: "ipAddress", xmlName: "ipAddress", type: { - name: "String" - } + name: "String", + }, }, backendResponseCode: { serializedName: "backendResponseCode", xmlName: "backendResponseCode", type: { - name: "String" - } + name: "String", + }, }, responseCode: { serializedName: "responseCode", xmlName: "responseCode", type: { - name: "Number" - } + name: "Number", + }, }, responseSize: { serializedName: "responseSize", xmlName: "responseSize", type: { - name: "Number" - } + name: "Number", + }, }, timestamp: { serializedName: "timestamp", xmlName: "timestamp", type: { - name: "DateTime" - } + name: "DateTime", + }, }, cache: { serializedName: "cache", xmlName: "cache", type: { - name: "String" - } + name: "String", + }, }, apiTime: { serializedName: "apiTime", xmlName: "apiTime", type: { - name: "Number" - } + name: "Number", + }, }, serviceTime: { serializedName: "serviceTime", xmlName: "serviceTime", type: { - name: "Number" - } + name: "Number", + }, }, apiRegion: { serializedName: "apiRegion", xmlName: "apiRegion", type: { - name: "String" - } + name: "String", + }, }, subscriptionId: { serializedName: "subscriptionId", xmlName: "subscriptionId", type: { - name: "String" - } + name: "String", + }, }, requestId: { serializedName: "requestId", xmlName: "requestId", type: { - name: "String" - } + name: "String", + }, }, requestSize: { serializedName: "requestSize", xmlName: "requestSize", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const GlobalSchemaCollection: coreClient.CompositeMapper = { @@ -8837,28 +9826,28 @@ export const GlobalSchemaCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GlobalSchemaContract" - } - } - } + className: "GlobalSchemaContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TenantSettingsCollection: coreClient.CompositeMapper = { @@ -8877,21 +9866,21 @@ export const TenantSettingsCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TenantSettingsContract" - } - } - } + className: "TenantSettingsContract", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiManagementSkusResult: coreClient.CompositeMapper = { @@ -8910,21 +9899,21 @@ export const ApiManagementSkusResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiManagementSku" - } - } - } + className: "ApiManagementSku", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiManagementSku: coreClient.CompositeMapper = { @@ -8938,56 +9927,56 @@ export const ApiManagementSku: coreClient.CompositeMapper = { readOnly: true, xmlName: "resourceType", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", readOnly: true, xmlName: "tier", type: { - name: "String" - } + name: "String", + }, }, size: { serializedName: "size", readOnly: true, xmlName: "size", type: { - name: "String" - } + name: "String", + }, }, family: { serializedName: "family", readOnly: true, xmlName: "family", type: { - name: "String" - } + name: "String", + }, }, kind: { serializedName: "kind", readOnly: true, xmlName: "kind", type: { - name: "String" - } + name: "String", + }, }, capacity: { serializedName: "capacity", xmlName: "capacity", type: { name: "Composite", - className: "ApiManagementSkuCapacity" - } + className: "ApiManagementSkuCapacity", + }, }, locations: { serializedName: "locations", @@ -8998,10 +9987,10 @@ export const ApiManagementSku: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, locationInfo: { serializedName: "locationInfo", @@ -9013,10 +10002,10 @@ export const ApiManagementSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiManagementSkuLocationInfo" - } - } - } + className: "ApiManagementSkuLocationInfo", + }, + }, + }, }, apiVersions: { serializedName: "apiVersions", @@ -9027,10 +10016,10 @@ export const ApiManagementSku: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, costs: { serializedName: "costs", @@ -9042,10 +10031,10 @@ export const ApiManagementSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiManagementSkuCosts" - } - } - } + className: "ApiManagementSkuCosts", + }, + }, + }, }, capabilities: { serializedName: "capabilities", @@ -9057,10 +10046,10 @@ export const ApiManagementSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiManagementSkuCapabilities" - } - } - } + className: "ApiManagementSkuCapabilities", + }, + }, + }, }, restrictions: { serializedName: "restrictions", @@ -9072,13 +10061,13 @@ export const ApiManagementSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiManagementSkuRestrictions" - } - } - } - } - } - } + className: "ApiManagementSkuRestrictions", + }, + }, + }, + }, + }, + }, }; export const ApiManagementSkuCapacity: coreClient.CompositeMapper = { @@ -9092,24 +10081,24 @@ export const ApiManagementSkuCapacity: coreClient.CompositeMapper = { readOnly: true, xmlName: "minimum", type: { - name: "Number" - } + name: "Number", + }, }, maximum: { serializedName: "maximum", readOnly: true, xmlName: "maximum", type: { - name: "Number" - } + name: "Number", + }, }, default: { serializedName: "default", readOnly: true, xmlName: "default", type: { - name: "Number" - } + name: "Number", + }, }, scaleType: { serializedName: "scaleType", @@ -9117,11 +10106,11 @@ export const ApiManagementSkuCapacity: coreClient.CompositeMapper = { xmlName: "scaleType", type: { name: "Enum", - allowedValues: ["Automatic", "Manual", "None"] - } - } - } - } + allowedValues: ["Automatic", "Manual", "None"], + }, + }, + }, + }, }; export const ApiManagementSkuLocationInfo: coreClient.CompositeMapper = { @@ -9135,8 +10124,8 @@ export const ApiManagementSkuLocationInfo: coreClient.CompositeMapper = { readOnly: true, xmlName: "location", type: { - name: "String" - } + name: "String", + }, }, zones: { serializedName: "zones", @@ -9147,10 +10136,10 @@ export const ApiManagementSkuLocationInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, zoneDetails: { serializedName: "zoneDetails", @@ -9162,13 +10151,13 @@ export const ApiManagementSkuLocationInfo: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiManagementSkuZoneDetails" - } - } - } - } - } - } + className: "ApiManagementSkuZoneDetails", + }, + }, + }, + }, + }, + }, }; export const ApiManagementSkuZoneDetails: coreClient.CompositeMapper = { @@ -9186,10 +10175,10 @@ export const ApiManagementSkuZoneDetails: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, capabilities: { serializedName: "capabilities", @@ -9201,13 +10190,13 @@ export const ApiManagementSkuZoneDetails: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiManagementSkuCapabilities" - } - } - } - } - } - } + className: "ApiManagementSkuCapabilities", + }, + }, + }, + }, + }, + }, }; export const ApiManagementSkuCapabilities: coreClient.CompositeMapper = { @@ -9221,19 +10210,19 @@ export const ApiManagementSkuCapabilities: coreClient.CompositeMapper = { readOnly: true, xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", readOnly: true, xmlName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiManagementSkuCosts: coreClient.CompositeMapper = { @@ -9247,27 +10236,27 @@ export const ApiManagementSkuCosts: coreClient.CompositeMapper = { readOnly: true, xmlName: "meterID", type: { - name: "String" - } + name: "String", + }, }, quantity: { serializedName: "quantity", readOnly: true, xmlName: "quantity", type: { - name: "Number" - } + name: "Number", + }, }, extendedUnit: { serializedName: "extendedUnit", readOnly: true, xmlName: "extendedUnit", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiManagementSkuRestrictions: coreClient.CompositeMapper = { @@ -9282,8 +10271,8 @@ export const ApiManagementSkuRestrictions: coreClient.CompositeMapper = { xmlName: "type", type: { name: "Enum", - allowedValues: ["Location", "Zone"] - } + allowedValues: ["Location", "Zone"], + }, }, values: { serializedName: "values", @@ -9294,18 +10283,18 @@ export const ApiManagementSkuRestrictions: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, restrictionInfo: { serializedName: "restrictionInfo", xmlName: "restrictionInfo", type: { name: "Composite", - className: "ApiManagementSkuRestrictionInfo" - } + className: "ApiManagementSkuRestrictionInfo", + }, }, reasonCode: { serializedName: "reasonCode", @@ -9313,11 +10302,11 @@ export const ApiManagementSkuRestrictions: coreClient.CompositeMapper = { xmlName: "reasonCode", type: { name: "Enum", - allowedValues: ["QuotaId", "NotAvailableForSubscription"] - } - } - } - } + allowedValues: ["QuotaId", "NotAvailableForSubscription"], + }, + }, + }, + }, }; export const ApiManagementSkuRestrictionInfo: coreClient.CompositeMapper = { @@ -9335,10 +10324,10 @@ export const ApiManagementSkuRestrictionInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, zones: { serializedName: "zones", @@ -9349,13 +10338,13 @@ export const ApiManagementSkuRestrictionInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const SubscriptionCreateParameters: coreClient.CompositeMapper = { @@ -9368,48 +10357,48 @@ export const SubscriptionCreateParameters: coreClient.CompositeMapper = { serializedName: "properties.ownerId", xmlName: "properties.ownerId", type: { - name: "String" - } + name: "String", + }, }, scope: { serializedName: "properties.scope", xmlName: "properties.scope", type: { - name: "String" - } + name: "String", + }, }, displayName: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, primaryKey: { constraints: { MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.primaryKey", xmlName: "properties.primaryKey", type: { - name: "String" - } + name: "String", + }, }, secondaryKey: { constraints: { MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.secondaryKey", xmlName: "properties.secondaryKey", type: { - name: "String" - } + name: "String", + }, }, state: { serializedName: "properties.state", @@ -9422,19 +10411,19 @@ export const SubscriptionCreateParameters: coreClient.CompositeMapper = { "expired", "submitted", "rejected", - "cancelled" - ] - } + "cancelled", + ], + }, }, allowTracing: { serializedName: "properties.allowTracing", xmlName: "properties.allowTracing", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SubscriptionUpdateParameters: coreClient.CompositeMapper = { @@ -9447,51 +10436,51 @@ export const SubscriptionUpdateParameters: coreClient.CompositeMapper = { serializedName: "properties.ownerId", xmlName: "properties.ownerId", type: { - name: "String" - } + name: "String", + }, }, scope: { serializedName: "properties.scope", xmlName: "properties.scope", type: { - name: "String" - } + name: "String", + }, }, expirationDate: { serializedName: "properties.expirationDate", xmlName: "properties.expirationDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, displayName: { serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, primaryKey: { constraints: { MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.primaryKey", xmlName: "properties.primaryKey", type: { - name: "String" - } + name: "String", + }, }, secondaryKey: { constraints: { MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.secondaryKey", xmlName: "properties.secondaryKey", type: { - name: "String" - } + name: "String", + }, }, state: { serializedName: "properties.state", @@ -9504,26 +10493,26 @@ export const SubscriptionUpdateParameters: coreClient.CompositeMapper = { "expired", "submitted", "rejected", - "cancelled" - ] - } + "cancelled", + ], + }, }, stateComment: { serializedName: "properties.stateComment", xmlName: "properties.stateComment", type: { - name: "String" - } + name: "String", + }, }, allowTracing: { serializedName: "properties.allowTracing", xmlName: "properties.allowTracing", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SubscriptionKeysContract: coreClient.CompositeMapper = { @@ -9535,27 +10524,27 @@ export const SubscriptionKeysContract: coreClient.CompositeMapper = { primaryKey: { constraints: { MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "primaryKey", xmlName: "primaryKey", type: { - name: "String" - } + name: "String", + }, }, secondaryKey: { constraints: { MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "secondaryKey", xmlName: "secondaryKey", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TagCreateUpdateParameters: coreClient.CompositeMapper = { @@ -9567,94 +10556,208 @@ export const TagCreateUpdateParameters: coreClient.CompositeMapper = { displayName: { constraints: { MaxLength: 160, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AccessInformationCollection: coreClient.CompositeMapper = { - serializedName: "AccessInformationCollection", +export const TagApiLinkCollection: coreClient.CompositeMapper = { + serializedName: "TagApiLinkCollection", type: { name: "Composite", - className: "AccessInformationCollection", + className: "TagApiLinkCollection", modelProperties: { value: { serializedName: "value", - readOnly: true, xmlName: "value", - xmlElementName: "AccessInformationContract", + xmlElementName: "TagApiLinkContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AccessInformationContract" - } - } - } + className: "TagApiLinkContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", - readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AccessInformationCreateParameters: coreClient.CompositeMapper = { - serializedName: "AccessInformationCreateParameters", +export const TagOperationLinkCollection: coreClient.CompositeMapper = { + serializedName: "TagOperationLinkCollection", type: { name: "Composite", - className: "AccessInformationCreateParameters", + className: "TagOperationLinkCollection", modelProperties: { - principalId: { - serializedName: "properties.principalId", - xmlName: "properties.principalId", - type: { - name: "String" - } - }, - primaryKey: { - serializedName: "properties.primaryKey", - xmlName: "properties.primaryKey", + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "TagOperationLinkContract", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TagOperationLinkContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const TagProductLinkCollection: coreClient.CompositeMapper = { + serializedName: "TagProductLinkCollection", + type: { + name: "Composite", + className: "TagProductLinkCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "TagProductLinkContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TagProductLinkContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const AccessInformationCollection: coreClient.CompositeMapper = { + serializedName: "AccessInformationCollection", + type: { + name: "Composite", + className: "AccessInformationCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "AccessInformationContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AccessInformationContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const AccessInformationCreateParameters: coreClient.CompositeMapper = { + serializedName: "AccessInformationCreateParameters", + type: { + name: "Composite", + className: "AccessInformationCreateParameters", + modelProperties: { + principalId: { + serializedName: "properties.principalId", + xmlName: "properties.principalId", + type: { + name: "String", + }, + }, + primaryKey: { + serializedName: "properties.primaryKey", + xmlName: "properties.primaryKey", + type: { + name: "String", + }, }, secondaryKey: { serializedName: "properties.secondaryKey", xmlName: "properties.secondaryKey", type: { - name: "String" - } + name: "String", + }, }, enabled: { serializedName: "properties.enabled", xmlName: "properties.enabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const AccessInformationUpdateParameters: coreClient.CompositeMapper = { @@ -9667,11 +10770,11 @@ export const AccessInformationUpdateParameters: coreClient.CompositeMapper = { serializedName: "properties.enabled", xmlName: "properties.enabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const AccessInformationSecretsContract: coreClient.CompositeMapper = { @@ -9684,39 +10787,39 @@ export const AccessInformationSecretsContract: coreClient.CompositeMapper = { serializedName: "id", xmlName: "id", type: { - name: "String" - } + name: "String", + }, }, principalId: { serializedName: "principalId", xmlName: "principalId", type: { - name: "String" - } + name: "String", + }, }, primaryKey: { serializedName: "primaryKey", xmlName: "primaryKey", type: { - name: "String" - } + name: "String", + }, }, secondaryKey: { serializedName: "secondaryKey", xmlName: "secondaryKey", type: { - name: "String" - } + name: "String", + }, }, enabled: { serializedName: "enabled", xmlName: "enabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const DeployConfigurationParameters: coreClient.CompositeMapper = { @@ -9729,49 +10832,18 @@ export const DeployConfigurationParameters: coreClient.CompositeMapper = { serializedName: "properties.branch", xmlName: "properties.branch", type: { - name: "String" - } + name: "String", + }, }, force: { serializedName: "properties.force", xmlName: "properties.force", type: { - name: "Boolean" - } - } - } - } -}; - -export const OperationResultLogItemContract: coreClient.CompositeMapper = { - serializedName: "OperationResultLogItemContract", - type: { - name: "Composite", - className: "OperationResultLogItemContract", - modelProperties: { - objectType: { - serializedName: "objectType", - xmlName: "objectType", - type: { - name: "String" - } - }, - action: { - serializedName: "action", - xmlName: "action", - type: { - name: "String" - } + name: "Boolean", + }, }, - objectKey: { - serializedName: "objectKey", - xmlName: "objectKey", - type: { - name: "String" - } - } - } - } + }, + }, }; export const SaveConfigurationParameter: coreClient.CompositeMapper = { @@ -9784,18 +10856,18 @@ export const SaveConfigurationParameter: coreClient.CompositeMapper = { serializedName: "properties.branch", xmlName: "properties.branch", type: { - name: "String" - } + name: "String", + }, }, force: { serializedName: "properties.force", xmlName: "properties.force", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const UserCreateParameters: coreClient.CompositeMapper = { @@ -9809,15 +10881,15 @@ export const UserCreateParameters: coreClient.CompositeMapper = { serializedName: "properties.state", xmlName: "properties.state", type: { - name: "String" - } + name: "String", + }, }, note: { serializedName: "properties.note", xmlName: "properties.note", type: { - name: "String" - } + name: "String", + }, }, identities: { serializedName: "properties.identities", @@ -9828,67 +10900,67 @@ export const UserCreateParameters: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UserIdentityContract" - } - } - } + className: "UserIdentityContract", + }, + }, + }, }, email: { constraints: { MaxLength: 254, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.email", xmlName: "properties.email", type: { - name: "String" - } + name: "String", + }, }, firstName: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.firstName", xmlName: "properties.firstName", type: { - name: "String" - } + name: "String", + }, }, lastName: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.lastName", xmlName: "properties.lastName", type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "properties.password", xmlName: "properties.password", type: { - name: "String" - } + name: "String", + }, }, appType: { serializedName: "properties.appType", xmlName: "properties.appType", type: { - name: "String" - } + name: "String", + }, }, confirmation: { serializedName: "properties.confirmation", xmlName: "properties.confirmation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserUpdateParameters: coreClient.CompositeMapper = { @@ -9902,15 +10974,15 @@ export const UserUpdateParameters: coreClient.CompositeMapper = { serializedName: "properties.state", xmlName: "properties.state", type: { - name: "String" - } + name: "String", + }, }, note: { serializedName: "properties.note", xmlName: "properties.note", type: { - name: "String" - } + name: "String", + }, }, identities: { serializedName: "properties.identities", @@ -9921,53 +10993,53 @@ export const UserUpdateParameters: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UserIdentityContract" - } - } - } + className: "UserIdentityContract", + }, + }, + }, }, email: { constraints: { MaxLength: 254, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.email", xmlName: "properties.email", type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "properties.password", xmlName: "properties.password", type: { - name: "String" - } + name: "String", + }, }, firstName: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.firstName", xmlName: "properties.firstName", type: { - name: "String" - } + name: "String", + }, }, lastName: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.lastName", xmlName: "properties.lastName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GenerateSsoUrlResult: coreClient.CompositeMapper = { @@ -9980,11 +11052,11 @@ export const GenerateSsoUrlResult: coreClient.CompositeMapper = { serializedName: "value", xmlName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserIdentityCollection: coreClient.CompositeMapper = { @@ -10002,27 +11074,27 @@ export const UserIdentityCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UserIdentityContract" - } - } - } + className: "UserIdentityContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserTokenParameters: coreClient.CompositeMapper = { @@ -10036,18 +11108,18 @@ export const UserTokenParameters: coreClient.CompositeMapper = { xmlName: "properties.keyType", type: { name: "Enum", - allowedValues: ["primary", "secondary"] - } + allowedValues: ["primary", "secondary"], + }, }, expiry: { serializedName: "properties.expiry", xmlName: "properties.expiry", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const UserTokenResult: coreClient.CompositeMapper = { @@ -10060,68 +11132,66 @@ export const UserTokenResult: coreClient.CompositeMapper = { serializedName: "value", xmlName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DocumentationCollection: coreClient.CompositeMapper = { - serializedName: "DocumentationCollection", +export const WorkspaceCollection: coreClient.CompositeMapper = { + serializedName: "WorkspaceCollection", type: { name: "Composite", - className: "DocumentationCollection", + className: "WorkspaceCollection", modelProperties: { value: { serializedName: "value", - readOnly: true, xmlName: "value", - xmlElementName: "DocumentationContract", + xmlElementName: "WorkspaceContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DocumentationContract" - } - } - } + className: "WorkspaceContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, }, nextLink: { serializedName: "nextLink", - readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DocumentationUpdateContract: coreClient.CompositeMapper = { - serializedName: "DocumentationUpdateContract", +export const GatewaySku: coreClient.CompositeMapper = { + serializedName: "GatewaySku", type: { name: "Composite", - className: "DocumentationUpdateContract", + className: "GatewaySku", modelProperties: { - title: { - serializedName: "properties.title", - xmlName: "properties.title", + name: { + serializedName: "name", + xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, - content: { - serializedName: "properties.content", - xmlName: "properties.content", - type: { - name: "String" - } - } - } - } + }, + }, }; export const ApiRevisionInfoContract: coreClient.CompositeMapper = { @@ -10134,39 +11204,70 @@ export const ApiRevisionInfoContract: coreClient.CompositeMapper = { serializedName: "sourceApiId", xmlName: "sourceApiId", type: { - name: "String" - } + name: "String", + }, }, apiVersionName: { constraints: { - MaxLength: 100 + MaxLength: 100, }, serializedName: "apiVersionName", xmlName: "apiVersionName", type: { - name: "String" - } + name: "String", + }, }, apiRevisionDescription: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "apiRevisionDescription", xmlName: "apiRevisionDescription", type: { - name: "String" - } + name: "String", + }, }, apiVersionSet: { serializedName: "apiVersionSet", xmlName: "apiVersionSet", type: { name: "Composite", - className: "ApiVersionSetContractDetails" - } - } - } - } + className: "ApiVersionSetContractDetails", + }, + }, + }, + }, +}; + +export const PolicyWithComplianceCollection: coreClient.CompositeMapper = { + serializedName: "PolicyWithComplianceCollection", + type: { + name: "Composite", + className: "PolicyWithComplianceCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "PolicyWithComplianceContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PolicyWithComplianceContract", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, }; export const QuotaCounterValueContract: coreClient.CompositeMapper = { @@ -10179,18 +11280,18 @@ export const QuotaCounterValueContract: coreClient.CompositeMapper = { serializedName: "value.callsCount", xmlName: "value.callsCount", type: { - name: "Number" - } + name: "Number", + }, }, kbTransferred: { serializedName: "value.kbTransferred", xmlName: "value.kbTransferred", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ResolverResultLogItemContract: coreClient.CompositeMapper = { @@ -10203,261 +11304,71 @@ export const ResolverResultLogItemContract: coreClient.CompositeMapper = { serializedName: "objectType", xmlName: "objectType", type: { - name: "String" - } + name: "String", + }, }, action: { serializedName: "action", xmlName: "action", type: { - name: "String" - } + name: "String", + }, }, objectKey: { serializedName: "objectKey", xmlName: "objectKey", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiContractProperties: coreClient.CompositeMapper = { - serializedName: "ApiContractProperties", +export const ProxyResource: coreClient.CompositeMapper = { + serializedName: "ProxyResource", type: { name: "Composite", - className: "ApiContractProperties", + className: "ProxyResource", modelProperties: { - ...ApiEntityBaseContract.type.modelProperties, - sourceApiId: { - serializedName: "sourceApiId", - xmlName: "sourceApiId", + ...Resource.type.modelProperties, + }, + }, +}; + +export const PrivateEndpointConnection: coreClient.CompositeMapper = { + serializedName: "PrivateEndpointConnection", + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + ...Resource.type.modelProperties, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + xmlName: "properties.privateEndpoint", type: { - name: "String" - } - }, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 + name: "Composite", + className: "PrivateEndpoint", }, - serializedName: "displayName", - xmlName: "displayName", - type: { - name: "String" - } - }, - serviceUrl: { - constraints: { - MaxLength: 2000 - }, - serializedName: "serviceUrl", - xmlName: "serviceUrl", - type: { - name: "String" - } - }, - path: { - constraints: { - MaxLength: 400 - }, - serializedName: "path", - required: true, - xmlName: "path", - type: { - name: "String" - } - }, - protocols: { - serializedName: "protocols", - xmlName: "protocols", - xmlElementName: "Protocol", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - apiVersionSet: { - serializedName: "apiVersionSet", - xmlName: "apiVersionSet", - type: { - name: "Composite", - className: "ApiVersionSetContractDetails" - } - } - } - } -}; - -export const ApiContractUpdateProperties: coreClient.CompositeMapper = { - serializedName: "ApiContractUpdateProperties", - type: { - name: "Composite", - className: "ApiContractUpdateProperties", - modelProperties: { - ...ApiEntityBaseContract.type.modelProperties, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "displayName", - xmlName: "displayName", - type: { - name: "String" - } - }, - serviceUrl: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "serviceUrl", - xmlName: "serviceUrl", - type: { - name: "String" - } - }, - path: { - constraints: { - MaxLength: 400 - }, - serializedName: "path", - xmlName: "path", - type: { - name: "String" - } - }, - protocols: { - serializedName: "protocols", - xmlName: "protocols", - xmlElementName: "Protocol", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ApiTagResourceContractProperties: coreClient.CompositeMapper = { - serializedName: "ApiTagResourceContractProperties", - type: { - name: "Composite", - className: "ApiTagResourceContractProperties", - modelProperties: { - ...ApiEntityBaseContract.type.modelProperties, - id: { - serializedName: "id", - xmlName: "id", - type: { - name: "String" - } - }, - name: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "name", - xmlName: "name", - type: { - name: "String" - } - }, - serviceUrl: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "serviceUrl", - xmlName: "serviceUrl", - type: { - name: "String" - } - }, - path: { - constraints: { - MaxLength: 400 - }, - serializedName: "path", - xmlName: "path", - type: { - name: "String" - } - }, - protocols: { - serializedName: "protocols", - xmlName: "protocols", - xmlElementName: "Protocol", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ProxyResource: coreClient.CompositeMapper = { - serializedName: "ProxyResource", - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties - } - } -}; - -export const PrivateEndpointConnection: coreClient.CompositeMapper = { - serializedName: "PrivateEndpointConnection", - type: { - name: "Composite", - className: "PrivateEndpointConnection", - modelProperties: { - ...Resource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - xmlName: "properties.privateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpoint" - } }, privateLinkServiceConnectionState: { serializedName: "properties.privateLinkServiceConnectionState", xmlName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState" - } + className: "PrivateLinkServiceConnectionState", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, xmlName: "properties.provisioningState", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResource: coreClient.CompositeMapper = { @@ -10472,8 +11383,8 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { readOnly: true, xmlName: "properties.groupId", type: { - name: "String" - } + name: "String", + }, }, requiredMembers: { serializedName: "properties.requiredMembers", @@ -10484,10 +11395,10 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, requiredZoneNames: { serializedName: "properties.requiredZoneNames", @@ -10497,150 +11408,1278 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; -export const OperationContractProperties: coreClient.CompositeMapper = { - serializedName: "OperationContractProperties", +export const ApiManagementGatewayProperties: coreClient.CompositeMapper = { + serializedName: "ApiManagementGatewayProperties", type: { name: "Composite", - className: "OperationContractProperties", + className: "ApiManagementGatewayProperties", modelProperties: { - ...OperationEntityBaseContract.type.modelProperties, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 + ...ApiManagementGatewayBaseProperties.type.modelProperties, + }, + }, +}; + +export const ApiManagementGatewayUpdateProperties: coreClient.CompositeMapper = + { + serializedName: "ApiManagementGatewayUpdateProperties", + type: { + name: "Composite", + className: "ApiManagementGatewayUpdateProperties", + modelProperties: { + ...ApiManagementGatewayBaseProperties.type.modelProperties, + }, + }, + }; + +export const ApiManagementGatewayResource: coreClient.CompositeMapper = { + serializedName: "ApiManagementGatewayResource", + type: { + name: "Composite", + className: "ApiManagementGatewayResource", + modelProperties: { + ...ApimResource.type.modelProperties, + sku: { + serializedName: "sku", + xmlName: "sku", + type: { + name: "Composite", + className: "ApiManagementGatewaySkuProperties", }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + }, + systemData: { + serializedName: "systemData", + xmlName: "systemData", type: { - name: "String" - } + name: "Composite", + className: "SystemData", + }, }, - method: { - serializedName: "method", + location: { + serializedName: "location", required: true, - xmlName: "method", + xmlName: "location", type: { - name: "String" - } + name: "String", + }, }, - urlTemplate: { - constraints: { - MaxLength: 1000, - MinLength: 1 + etag: { + serializedName: "etag", + readOnly: true, + xmlName: "etag", + type: { + name: "String", }, - serializedName: "urlTemplate", - required: true, - xmlName: "urlTemplate", + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { - name: "String" - } - } - } - } -}; - -export const OperationUpdateContractProperties: coreClient.CompositeMapper = { - serializedName: "OperationUpdateContractProperties", - type: { - name: "Composite", - className: "OperationUpdateContractProperties", - modelProperties: { - ...OperationEntityBaseContract.type.modelProperties, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 + name: "String", }, - serializedName: "displayName", - xmlName: "displayName", + }, + targetProvisioningState: { + serializedName: "properties.targetProvisioningState", + readOnly: true, + xmlName: "properties.targetProvisioningState", type: { - name: "String" - } + name: "String", + }, }, - method: { - serializedName: "method", - xmlName: "method", + createdAtUtc: { + serializedName: "properties.createdAtUtc", + readOnly: true, + xmlName: "properties.createdAtUtc", type: { - name: "String" - } + name: "DateTime", + }, }, - urlTemplate: { - constraints: { - MaxLength: 1000, - MinLength: 1 + frontend: { + serializedName: "properties.frontend", + xmlName: "properties.frontend", + type: { + name: "Composite", + className: "FrontendConfiguration", }, - serializedName: "urlTemplate", - xmlName: "urlTemplate", + }, + backend: { + serializedName: "properties.backend", + xmlName: "properties.backend", type: { - name: "String" - } - } - } - } -}; + name: "Composite", + className: "BackendConfiguration", + }, + }, + configurationApi: { + serializedName: "properties.configurationApi", + xmlName: "properties.configurationApi", + type: { + name: "Composite", + className: "GatewayConfigurationApi", + }, + }, + }, + }, +}; + +export const ApiManagementGatewayUpdateParameters: coreClient.CompositeMapper = + { + serializedName: "ApiManagementGatewayUpdateParameters", + type: { + name: "Composite", + className: "ApiManagementGatewayUpdateParameters", + modelProperties: { + ...ApimResource.type.modelProperties, + sku: { + serializedName: "sku", + xmlName: "sku", + type: { + name: "Composite", + className: "ApiManagementGatewaySkuPropertiesForPatch", + }, + }, + etag: { + serializedName: "etag", + readOnly: true, + xmlName: "etag", + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", + type: { + name: "String", + }, + }, + targetProvisioningState: { + serializedName: "properties.targetProvisioningState", + readOnly: true, + xmlName: "properties.targetProvisioningState", + type: { + name: "String", + }, + }, + createdAtUtc: { + serializedName: "properties.createdAtUtc", + readOnly: true, + xmlName: "properties.createdAtUtc", + type: { + name: "DateTime", + }, + }, + frontend: { + serializedName: "properties.frontend", + xmlName: "properties.frontend", + type: { + name: "Composite", + className: "FrontendConfiguration", + }, + }, + backend: { + serializedName: "properties.backend", + xmlName: "properties.backend", + type: { + name: "Composite", + className: "BackendConfiguration", + }, + }, + configurationApi: { + serializedName: "properties.configurationApi", + xmlName: "properties.configurationApi", + type: { + name: "Composite", + className: "GatewayConfigurationApi", + }, + }, + }, + }, + }; -export const ProductContractProperties: coreClient.CompositeMapper = { - serializedName: "ProductContractProperties", +export const ApiManagementServiceResource: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceResource", type: { name: "Composite", - className: "ProductContractProperties", + className: "ApiManagementServiceResource", + modelProperties: { + ...ApimResource.type.modelProperties, + sku: { + serializedName: "sku", + xmlName: "sku", + type: { + name: "Composite", + className: "ApiManagementServiceSkuProperties", + }, + }, + identity: { + serializedName: "identity", + xmlName: "identity", + type: { + name: "Composite", + className: "ApiManagementServiceIdentity", + }, + }, + systemData: { + serializedName: "systemData", + xmlName: "systemData", + type: { + name: "Composite", + className: "SystemData", + }, + }, + location: { + serializedName: "location", + required: true, + xmlName: "location", + type: { + name: "String", + }, + }, + etag: { + serializedName: "etag", + readOnly: true, + xmlName: "etag", + type: { + name: "String", + }, + }, + zones: { + serializedName: "zones", + xmlName: "zones", + xmlElementName: "ApiManagementServiceResourceZonesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + notificationSenderEmail: { + constraints: { + MaxLength: 100, + }, + serializedName: "properties.notificationSenderEmail", + xmlName: "properties.notificationSenderEmail", + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", + type: { + name: "String", + }, + }, + targetProvisioningState: { + serializedName: "properties.targetProvisioningState", + readOnly: true, + xmlName: "properties.targetProvisioningState", + type: { + name: "String", + }, + }, + createdAtUtc: { + serializedName: "properties.createdAtUtc", + readOnly: true, + xmlName: "properties.createdAtUtc", + type: { + name: "DateTime", + }, + }, + gatewayUrl: { + serializedName: "properties.gatewayUrl", + readOnly: true, + xmlName: "properties.gatewayUrl", + type: { + name: "String", + }, + }, + gatewayRegionalUrl: { + serializedName: "properties.gatewayRegionalUrl", + readOnly: true, + xmlName: "properties.gatewayRegionalUrl", + type: { + name: "String", + }, + }, + portalUrl: { + serializedName: "properties.portalUrl", + readOnly: true, + xmlName: "properties.portalUrl", + type: { + name: "String", + }, + }, + managementApiUrl: { + serializedName: "properties.managementApiUrl", + readOnly: true, + xmlName: "properties.managementApiUrl", + type: { + name: "String", + }, + }, + scmUrl: { + serializedName: "properties.scmUrl", + readOnly: true, + xmlName: "properties.scmUrl", + type: { + name: "String", + }, + }, + developerPortalUrl: { + serializedName: "properties.developerPortalUrl", + readOnly: true, + xmlName: "properties.developerPortalUrl", + type: { + name: "String", + }, + }, + hostnameConfigurations: { + serializedName: "properties.hostnameConfigurations", + xmlName: "properties.hostnameConfigurations", + xmlElementName: "HostnameConfiguration", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HostnameConfiguration", + }, + }, + }, + }, + publicIPAddresses: { + serializedName: "properties.publicIPAddresses", + readOnly: true, + xmlName: "properties.publicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPublicIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + privateIPAddresses: { + serializedName: "properties.privateIPAddresses", + readOnly: true, + xmlName: "properties.privateIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + publicIpAddressId: { + serializedName: "properties.publicIpAddressId", + xmlName: "properties.publicIpAddressId", + type: { + name: "String", + }, + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + xmlName: "properties.publicNetworkAccess", + type: { + name: "String", + }, + }, + configurationApi: { + serializedName: "properties.configurationApi", + xmlName: "properties.configurationApi", + type: { + name: "Composite", + className: "ConfigurationApi", + }, + }, + virtualNetworkConfiguration: { + serializedName: "properties.virtualNetworkConfiguration", + xmlName: "properties.virtualNetworkConfiguration", + type: { + name: "Composite", + className: "VirtualNetworkConfiguration", + }, + }, + additionalLocations: { + serializedName: "properties.additionalLocations", + xmlName: "properties.additionalLocations", + xmlElementName: "AdditionalLocation", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdditionalLocation", + }, + }, + }, + }, + customProperties: { + serializedName: "properties.customProperties", + xmlName: "properties.customProperties", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + certificates: { + serializedName: "properties.certificates", + xmlName: "properties.certificates", + xmlElementName: "CertificateConfiguration", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateConfiguration", + }, + }, + }, + }, + enableClientCertificate: { + defaultValue: false, + serializedName: "properties.enableClientCertificate", + xmlName: "properties.enableClientCertificate", + type: { + name: "Boolean", + }, + }, + natGatewayState: { + serializedName: "properties.natGatewayState", + xmlName: "properties.natGatewayState", + type: { + name: "String", + }, + }, + outboundPublicIPAddresses: { + serializedName: "properties.outboundPublicIPAddresses", + readOnly: true, + xmlName: "properties.outboundPublicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + disableGateway: { + defaultValue: false, + serializedName: "properties.disableGateway", + xmlName: "properties.disableGateway", + type: { + name: "Boolean", + }, + }, + virtualNetworkType: { + defaultValue: "None", + serializedName: "properties.virtualNetworkType", + xmlName: "properties.virtualNetworkType", + type: { + name: "String", + }, + }, + apiVersionConstraint: { + serializedName: "properties.apiVersionConstraint", + xmlName: "properties.apiVersionConstraint", + type: { + name: "Composite", + className: "ApiVersionConstraint", + }, + }, + restore: { + defaultValue: false, + serializedName: "properties.restore", + xmlName: "properties.restore", + type: { + name: "Boolean", + }, + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + xmlName: "properties.privateEndpointConnections", + xmlElementName: "RemotePrivateEndpointConnectionWrapper", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RemotePrivateEndpointConnectionWrapper", + }, + }, + }, + }, + platformVersion: { + serializedName: "properties.platformVersion", + readOnly: true, + xmlName: "properties.platformVersion", + type: { + name: "String", + }, + }, + legacyPortalStatus: { + defaultValue: "Enabled", + serializedName: "properties.legacyPortalStatus", + xmlName: "properties.legacyPortalStatus", + type: { + name: "String", + }, + }, + developerPortalStatus: { + defaultValue: "Enabled", + serializedName: "properties.developerPortalStatus", + xmlName: "properties.developerPortalStatus", + type: { + name: "String", + }, + }, + publisherEmail: { + constraints: { + MaxLength: 100, + }, + serializedName: "properties.publisherEmail", + required: true, + xmlName: "properties.publisherEmail", + type: { + name: "String", + }, + }, + publisherName: { + constraints: { + MaxLength: 100, + }, + serializedName: "properties.publisherName", + required: true, + xmlName: "properties.publisherName", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ApiManagementServiceUpdateParameters: coreClient.CompositeMapper = + { + serializedName: "ApiManagementServiceUpdateParameters", + type: { + name: "Composite", + className: "ApiManagementServiceUpdateParameters", + modelProperties: { + ...ApimResource.type.modelProperties, + sku: { + serializedName: "sku", + xmlName: "sku", + type: { + name: "Composite", + className: "ApiManagementServiceSkuProperties", + }, + }, + identity: { + serializedName: "identity", + xmlName: "identity", + type: { + name: "Composite", + className: "ApiManagementServiceIdentity", + }, + }, + etag: { + serializedName: "etag", + readOnly: true, + xmlName: "etag", + type: { + name: "String", + }, + }, + zones: { + serializedName: "zones", + xmlName: "zones", + xmlElementName: "ApiManagementServiceUpdateParametersZonesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + notificationSenderEmail: { + constraints: { + MaxLength: 100, + }, + serializedName: "properties.notificationSenderEmail", + xmlName: "properties.notificationSenderEmail", + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", + type: { + name: "String", + }, + }, + targetProvisioningState: { + serializedName: "properties.targetProvisioningState", + readOnly: true, + xmlName: "properties.targetProvisioningState", + type: { + name: "String", + }, + }, + createdAtUtc: { + serializedName: "properties.createdAtUtc", + readOnly: true, + xmlName: "properties.createdAtUtc", + type: { + name: "DateTime", + }, + }, + gatewayUrl: { + serializedName: "properties.gatewayUrl", + readOnly: true, + xmlName: "properties.gatewayUrl", + type: { + name: "String", + }, + }, + gatewayRegionalUrl: { + serializedName: "properties.gatewayRegionalUrl", + readOnly: true, + xmlName: "properties.gatewayRegionalUrl", + type: { + name: "String", + }, + }, + portalUrl: { + serializedName: "properties.portalUrl", + readOnly: true, + xmlName: "properties.portalUrl", + type: { + name: "String", + }, + }, + managementApiUrl: { + serializedName: "properties.managementApiUrl", + readOnly: true, + xmlName: "properties.managementApiUrl", + type: { + name: "String", + }, + }, + scmUrl: { + serializedName: "properties.scmUrl", + readOnly: true, + xmlName: "properties.scmUrl", + type: { + name: "String", + }, + }, + developerPortalUrl: { + serializedName: "properties.developerPortalUrl", + readOnly: true, + xmlName: "properties.developerPortalUrl", + type: { + name: "String", + }, + }, + hostnameConfigurations: { + serializedName: "properties.hostnameConfigurations", + xmlName: "properties.hostnameConfigurations", + xmlElementName: "HostnameConfiguration", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HostnameConfiguration", + }, + }, + }, + }, + publicIPAddresses: { + serializedName: "properties.publicIPAddresses", + readOnly: true, + xmlName: "properties.publicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPublicIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + privateIPAddresses: { + serializedName: "properties.privateIPAddresses", + readOnly: true, + xmlName: "properties.privateIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + publicIpAddressId: { + serializedName: "properties.publicIpAddressId", + xmlName: "properties.publicIpAddressId", + type: { + name: "String", + }, + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + xmlName: "properties.publicNetworkAccess", + type: { + name: "String", + }, + }, + configurationApi: { + serializedName: "properties.configurationApi", + xmlName: "properties.configurationApi", + type: { + name: "Composite", + className: "ConfigurationApi", + }, + }, + virtualNetworkConfiguration: { + serializedName: "properties.virtualNetworkConfiguration", + xmlName: "properties.virtualNetworkConfiguration", + type: { + name: "Composite", + className: "VirtualNetworkConfiguration", + }, + }, + additionalLocations: { + serializedName: "properties.additionalLocations", + xmlName: "properties.additionalLocations", + xmlElementName: "AdditionalLocation", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdditionalLocation", + }, + }, + }, + }, + customProperties: { + serializedName: "properties.customProperties", + xmlName: "properties.customProperties", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + certificates: { + serializedName: "properties.certificates", + xmlName: "properties.certificates", + xmlElementName: "CertificateConfiguration", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateConfiguration", + }, + }, + }, + }, + enableClientCertificate: { + defaultValue: false, + serializedName: "properties.enableClientCertificate", + xmlName: "properties.enableClientCertificate", + type: { + name: "Boolean", + }, + }, + natGatewayState: { + serializedName: "properties.natGatewayState", + xmlName: "properties.natGatewayState", + type: { + name: "String", + }, + }, + outboundPublicIPAddresses: { + serializedName: "properties.outboundPublicIPAddresses", + readOnly: true, + xmlName: "properties.outboundPublicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + disableGateway: { + defaultValue: false, + serializedName: "properties.disableGateway", + xmlName: "properties.disableGateway", + type: { + name: "Boolean", + }, + }, + virtualNetworkType: { + defaultValue: "None", + serializedName: "properties.virtualNetworkType", + xmlName: "properties.virtualNetworkType", + type: { + name: "String", + }, + }, + apiVersionConstraint: { + serializedName: "properties.apiVersionConstraint", + xmlName: "properties.apiVersionConstraint", + type: { + name: "Composite", + className: "ApiVersionConstraint", + }, + }, + restore: { + defaultValue: false, + serializedName: "properties.restore", + xmlName: "properties.restore", + type: { + name: "Boolean", + }, + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + xmlName: "properties.privateEndpointConnections", + xmlElementName: "RemotePrivateEndpointConnectionWrapper", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RemotePrivateEndpointConnectionWrapper", + }, + }, + }, + }, + platformVersion: { + serializedName: "properties.platformVersion", + readOnly: true, + xmlName: "properties.platformVersion", + type: { + name: "String", + }, + }, + legacyPortalStatus: { + defaultValue: "Enabled", + serializedName: "properties.legacyPortalStatus", + xmlName: "properties.legacyPortalStatus", + type: { + name: "String", + }, + }, + developerPortalStatus: { + defaultValue: "Enabled", + serializedName: "properties.developerPortalStatus", + xmlName: "properties.developerPortalStatus", + type: { + name: "String", + }, + }, + publisherEmail: { + constraints: { + MaxLength: 100, + }, + serializedName: "properties.publisherEmail", + xmlName: "properties.publisherEmail", + type: { + name: "String", + }, + }, + publisherName: { + constraints: { + MaxLength: 100, + }, + serializedName: "properties.publisherName", + xmlName: "properties.publisherName", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiContractProperties: coreClient.CompositeMapper = { + serializedName: "ApiContractProperties", + type: { + name: "Composite", + className: "ApiContractProperties", + modelProperties: { + ...ApiEntityBaseContract.type.modelProperties, + sourceApiId: { + serializedName: "sourceApiId", + xmlName: "sourceApiId", + type: { + name: "String", + }, + }, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "displayName", + xmlName: "displayName", + type: { + name: "String", + }, + }, + serviceUrl: { + constraints: { + MaxLength: 2000, + }, + serializedName: "serviceUrl", + xmlName: "serviceUrl", + type: { + name: "String", + }, + }, + path: { + constraints: { + MaxLength: 400, + }, + serializedName: "path", + required: true, + xmlName: "path", + type: { + name: "String", + }, + }, + protocols: { + serializedName: "protocols", + xmlName: "protocols", + xmlElementName: "Protocol", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + apiVersionSet: { + serializedName: "apiVersionSet", + xmlName: "apiVersionSet", + type: { + name: "Composite", + className: "ApiVersionSetContractDetails", + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + xmlName: "provisioningState", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ApiContractUpdateProperties: coreClient.CompositeMapper = { + serializedName: "ApiContractUpdateProperties", + type: { + name: "Composite", + className: "ApiContractUpdateProperties", + modelProperties: { + ...ApiEntityBaseContract.type.modelProperties, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "displayName", + xmlName: "displayName", + type: { + name: "String", + }, + }, + serviceUrl: { + constraints: { + MaxLength: 2000, + MinLength: 1, + }, + serializedName: "serviceUrl", + xmlName: "serviceUrl", + type: { + name: "String", + }, + }, + path: { + constraints: { + MaxLength: 400, + }, + serializedName: "path", + xmlName: "path", + type: { + name: "String", + }, + }, + protocols: { + serializedName: "protocols", + xmlName: "protocols", + xmlElementName: "Protocol", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const ApiTagResourceContractProperties: coreClient.CompositeMapper = { + serializedName: "ApiTagResourceContractProperties", + type: { + name: "Composite", + className: "ApiTagResourceContractProperties", + modelProperties: { + ...ApiEntityBaseContract.type.modelProperties, + id: { + serializedName: "id", + xmlName: "id", + type: { + name: "String", + }, + }, + name: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "name", + xmlName: "name", + type: { + name: "String", + }, + }, + serviceUrl: { + constraints: { + MaxLength: 2000, + MinLength: 1, + }, + serializedName: "serviceUrl", + xmlName: "serviceUrl", + type: { + name: "String", + }, + }, + path: { + constraints: { + MaxLength: 400, + }, + serializedName: "path", + xmlName: "path", + type: { + name: "String", + }, + }, + protocols: { + serializedName: "protocols", + xmlName: "protocols", + xmlElementName: "Protocol", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const OperationContractProperties: coreClient.CompositeMapper = { + serializedName: "OperationContractProperties", + type: { + name: "Composite", + className: "OperationContractProperties", modelProperties: { - ...ProductEntityBaseParameters.type.modelProperties, + ...OperationEntityBaseContract.type.modelProperties, displayName: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, serializedName: "displayName", required: true, xmlName: "displayName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + method: { + serializedName: "method", + required: true, + xmlName: "method", + type: { + name: "String", + }, + }, + urlTemplate: { + constraints: { + MaxLength: 1000, + MinLength: 1, + }, + serializedName: "urlTemplate", + required: true, + xmlName: "urlTemplate", + type: { + name: "String", + }, + }, + }, + }, }; -export const ProductTagResourceContractProperties: coreClient.CompositeMapper = { - serializedName: "ProductTagResourceContractProperties", +export const OperationUpdateContractProperties: coreClient.CompositeMapper = { + serializedName: "OperationUpdateContractProperties", type: { name: "Composite", - className: "ProductTagResourceContractProperties", + className: "OperationUpdateContractProperties", modelProperties: { - ...ProductEntityBaseParameters.type.modelProperties, - id: { - serializedName: "id", - xmlName: "id", + ...OperationEntityBaseContract.type.modelProperties, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "displayName", + xmlName: "displayName", type: { - name: "String" - } + name: "String", + }, }, - name: { + method: { + serializedName: "method", + xmlName: "method", + type: { + name: "String", + }, + }, + urlTemplate: { + constraints: { + MaxLength: 1000, + MinLength: 1, + }, + serializedName: "urlTemplate", + xmlName: "urlTemplate", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ProductContractProperties: coreClient.CompositeMapper = { + serializedName: "ProductContractProperties", + type: { + name: "Composite", + className: "ProductContractProperties", + modelProperties: { + ...ProductEntityBaseParameters.type.modelProperties, + displayName: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, - serializedName: "name", + serializedName: "displayName", required: true, - xmlName: "name", + xmlName: "displayName", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ProductTagResourceContractProperties: coreClient.CompositeMapper = + { + serializedName: "ProductTagResourceContractProperties", + type: { + name: "Composite", + className: "ProductTagResourceContractProperties", + modelProperties: { + ...ProductEntityBaseParameters.type.modelProperties, + id: { + serializedName: "id", + xmlName: "id", + type: { + name: "String", + }, + }, + name: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "name", + required: true, + xmlName: "name", + type: { + name: "String", + }, + }, + }, + }, + }; export const ProductUpdateProperties: coreClient.CompositeMapper = { serializedName: "ProductUpdateProperties", @@ -10652,16 +12691,16 @@ export const ProductUpdateProperties: coreClient.CompositeMapper = { displayName: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, serializedName: "displayName", xmlName: "displayName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IssueContractProperties: coreClient.CompositeMapper = { @@ -10676,27 +12715,27 @@ export const IssueContractProperties: coreClient.CompositeMapper = { required: true, xmlName: "title", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", required: true, xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, userId: { serializedName: "userId", required: true, xmlName: "userId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IssueUpdateContractProperties: coreClient.CompositeMapper = { @@ -10710,25 +12749,25 @@ export const IssueUpdateContractProperties: coreClient.CompositeMapper = { serializedName: "title", xmlName: "title", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, userId: { serializedName: "userId", xmlName: "userId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TagDescriptionContractProperties: coreClient.CompositeMapper = { @@ -10742,22 +12781,22 @@ export const TagDescriptionContractProperties: coreClient.CompositeMapper = { serializedName: "tagId", xmlName: "tagId", type: { - name: "String" - } + name: "String", + }, }, displayName: { constraints: { MaxLength: 160, - MinLength: 1 + MinLength: 1, }, serializedName: "displayName", xmlName: "displayName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiVersionSetContractProperties: coreClient.CompositeMapper = { @@ -10770,8139 +12809,9528 @@ export const ApiVersionSetContractProperties: coreClient.CompositeMapper = { displayName: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "displayName", required: true, xmlName: "displayName", type: { - name: "String" - } + name: "String", + }, }, versioningScheme: { serializedName: "versioningScheme", required: true, xmlName: "versioningScheme", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ApiVersionSetUpdateParametersProperties: coreClient.CompositeMapper = + { + serializedName: "ApiVersionSetUpdateParametersProperties", + type: { + name: "Composite", + className: "ApiVersionSetUpdateParametersProperties", + modelProperties: { + ...ApiVersionSetEntityBase.type.modelProperties, + displayName: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "displayName", + xmlName: "displayName", + type: { + name: "String", + }, + }, + versioningScheme: { + serializedName: "versioningScheme", + xmlName: "versioningScheme", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const AuthorizationServerContractProperties: coreClient.CompositeMapper = + { + serializedName: "AuthorizationServerContractProperties", + type: { + name: "Composite", + className: "AuthorizationServerContractProperties", + modelProperties: { + ...AuthorizationServerContractBaseProperties.type.modelProperties, + displayName: { + constraints: { + MaxLength: 50, + MinLength: 1, + }, + serializedName: "displayName", + required: true, + xmlName: "displayName", + type: { + name: "String", + }, + }, + useInTestConsole: { + serializedName: "useInTestConsole", + xmlName: "useInTestConsole", + type: { + name: "Boolean", + }, + }, + useInApiDocumentation: { + serializedName: "useInApiDocumentation", + xmlName: "useInApiDocumentation", + type: { + name: "Boolean", + }, + }, + clientRegistrationEndpoint: { + serializedName: "clientRegistrationEndpoint", + required: true, + xmlName: "clientRegistrationEndpoint", + type: { + name: "String", + }, + }, + authorizationEndpoint: { + serializedName: "authorizationEndpoint", + required: true, + xmlName: "authorizationEndpoint", + type: { + name: "String", + }, + }, + grantTypes: { + serializedName: "grantTypes", + required: true, + xmlName: "grantTypes", + xmlElementName: "GrantType", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + clientId: { + serializedName: "clientId", + required: true, + xmlName: "clientId", + type: { + name: "String", + }, + }, + clientSecret: { + serializedName: "clientSecret", + xmlName: "clientSecret", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const AuthorizationServerUpdateContractProperties: coreClient.CompositeMapper = + { + serializedName: "AuthorizationServerUpdateContractProperties", + type: { + name: "Composite", + className: "AuthorizationServerUpdateContractProperties", + modelProperties: { + ...AuthorizationServerContractBaseProperties.type.modelProperties, + displayName: { + constraints: { + MaxLength: 50, + MinLength: 1, + }, + serializedName: "displayName", + xmlName: "displayName", + type: { + name: "String", + }, + }, + useInTestConsole: { + serializedName: "useInTestConsole", + xmlName: "useInTestConsole", + type: { + name: "Boolean", + }, + }, + useInApiDocumentation: { + serializedName: "useInApiDocumentation", + xmlName: "useInApiDocumentation", + type: { + name: "Boolean", + }, + }, + clientRegistrationEndpoint: { + serializedName: "clientRegistrationEndpoint", + xmlName: "clientRegistrationEndpoint", + type: { + name: "String", + }, + }, + authorizationEndpoint: { + serializedName: "authorizationEndpoint", + xmlName: "authorizationEndpoint", + type: { + name: "String", + }, + }, + grantTypes: { + serializedName: "grantTypes", + xmlName: "grantTypes", + xmlElementName: "GrantType", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + clientId: { + serializedName: "clientId", + xmlName: "clientId", + type: { + name: "String", + }, + }, + clientSecret: { + serializedName: "clientSecret", + xmlName: "clientSecret", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiVersionSetUpdateParametersProperties: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetUpdateParametersProperties", +export const BackendContractProperties: coreClient.CompositeMapper = { + serializedName: "BackendContractProperties", type: { name: "Composite", - className: "ApiVersionSetUpdateParametersProperties", + className: "BackendContractProperties", modelProperties: { - ...ApiVersionSetEntityBase.type.modelProperties, - displayName: { + ...BackendBaseParameters.type.modelProperties, + url: { constraints: { - MaxLength: 100, - MinLength: 1 + MaxLength: 2000, + MinLength: 1, }, - serializedName: "displayName", - xmlName: "displayName", + serializedName: "url", + required: true, + xmlName: "url", type: { - name: "String" - } + name: "String", + }, }, - versioningScheme: { - serializedName: "versioningScheme", - xmlName: "versioningScheme", + protocol: { + serializedName: "protocol", + required: true, + xmlName: "protocol", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationServerContractProperties: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerContractProperties", +export const BackendUpdateParameterProperties: coreClient.CompositeMapper = { + serializedName: "BackendUpdateParameterProperties", type: { name: "Composite", - className: "AuthorizationServerContractProperties", + className: "BackendUpdateParameterProperties", modelProperties: { - ...AuthorizationServerContractBaseProperties.type.modelProperties, - displayName: { + ...BackendBaseParameters.type.modelProperties, + url: { constraints: { - MaxLength: 50, - MinLength: 1 + MaxLength: 2000, + MinLength: 1, }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + serializedName: "url", + xmlName: "url", type: { - name: "String" - } + name: "String", + }, }, - useInTestConsole: { - serializedName: "useInTestConsole", - xmlName: "useInTestConsole", + protocol: { + serializedName: "protocol", + xmlName: "protocol", type: { - name: "Boolean" - } + name: "String", + }, }, - useInApiDocumentation: { - serializedName: "useInApiDocumentation", - xmlName: "useInApiDocumentation", + }, + }, +}; + +export const BackendBaseParametersPool: coreClient.CompositeMapper = { + serializedName: "BackendBaseParametersPool", + type: { + name: "Composite", + className: "BackendBaseParametersPool", + modelProperties: { + ...BackendPool.type.modelProperties, + }, + }, +}; + +export const KeyVaultContractProperties: coreClient.CompositeMapper = { + serializedName: "KeyVaultContractProperties", + type: { + name: "Composite", + className: "KeyVaultContractProperties", + modelProperties: { + ...KeyVaultContractCreateProperties.type.modelProperties, + lastStatus: { + serializedName: "lastStatus", + xmlName: "lastStatus", type: { - name: "Boolean" - } + name: "Composite", + className: "KeyVaultLastAccessStatusContractProperties", + }, }, - clientRegistrationEndpoint: { - serializedName: "clientRegistrationEndpoint", + }, + }, +}; + +export const ApiManagementServiceProperties: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceProperties", + type: { + name: "Composite", + className: "ApiManagementServiceProperties", + modelProperties: { + ...ApiManagementServiceBaseProperties.type.modelProperties, + publisherEmail: { + constraints: { + MaxLength: 100, + }, + serializedName: "publisherEmail", required: true, - xmlName: "clientRegistrationEndpoint", + xmlName: "publisherEmail", type: { - name: "String" - } + name: "String", + }, }, - authorizationEndpoint: { - serializedName: "authorizationEndpoint", + publisherName: { + constraints: { + MaxLength: 100, + }, + serializedName: "publisherName", required: true, - xmlName: "authorizationEndpoint", + xmlName: "publisherName", type: { - name: "String" - } + name: "String", + }, }, - grantTypes: { - serializedName: "grantTypes", - required: true, - xmlName: "grantTypes", - xmlElementName: "GrantType", + }, + }, +}; + +export const ApiManagementServiceUpdateProperties: coreClient.CompositeMapper = + { + serializedName: "ApiManagementServiceUpdateProperties", + type: { + name: "Composite", + className: "ApiManagementServiceUpdateProperties", + modelProperties: { + ...ApiManagementServiceBaseProperties.type.modelProperties, + publisherEmail: { + constraints: { + MaxLength: 100, + }, + serializedName: "publisherEmail", + xmlName: "publisherEmail", + type: { + name: "String", + }, + }, + publisherName: { + constraints: { + MaxLength: 100, + }, + serializedName: "publisherName", + xmlName: "publisherName", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const UserContractProperties: coreClient.CompositeMapper = { + serializedName: "UserContractProperties", + type: { + name: "Composite", + className: "UserContractProperties", + modelProperties: { + ...UserEntityBaseParameters.type.modelProperties, + firstName: { + serializedName: "firstName", + xmlName: "firstName", + type: { + name: "String", + }, + }, + lastName: { + serializedName: "lastName", + xmlName: "lastName", + type: { + name: "String", + }, + }, + email: { + serializedName: "email", + xmlName: "email", + type: { + name: "String", + }, + }, + registrationDate: { + serializedName: "registrationDate", + xmlName: "registrationDate", + type: { + name: "DateTime", + }, + }, + groups: { + serializedName: "groups", + readOnly: true, + xmlName: "groups", + xmlElementName: "GroupContractProperties", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } - }, - clientId: { - serializedName: "clientId", - required: true, - xmlName: "clientId", - type: { - name: "String" - } + name: "Composite", + className: "GroupContractProperties", + }, + }, + }, }, - clientSecret: { - serializedName: "clientSecret", - xmlName: "clientSecret", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const AuthorizationServerUpdateContractProperties: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerUpdateContractProperties", +export const UserCreateParameterProperties: coreClient.CompositeMapper = { + serializedName: "UserCreateParameterProperties", type: { name: "Composite", - className: "AuthorizationServerUpdateContractProperties", + className: "UserCreateParameterProperties", modelProperties: { - ...AuthorizationServerContractBaseProperties.type.modelProperties, - displayName: { + ...UserEntityBaseParameters.type.modelProperties, + email: { constraints: { - MaxLength: 50, - MinLength: 1 + MaxLength: 254, + MinLength: 1, }, - serializedName: "displayName", - xmlName: "displayName", - type: { - name: "String" - } - }, - useInTestConsole: { - serializedName: "useInTestConsole", - xmlName: "useInTestConsole", + serializedName: "email", + required: true, + xmlName: "email", type: { - name: "Boolean" - } + name: "String", + }, }, - useInApiDocumentation: { - serializedName: "useInApiDocumentation", - xmlName: "useInApiDocumentation", + firstName: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "firstName", + required: true, + xmlName: "firstName", type: { - name: "Boolean" - } + name: "String", + }, }, - clientRegistrationEndpoint: { - serializedName: "clientRegistrationEndpoint", - xmlName: "clientRegistrationEndpoint", + lastName: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "lastName", + required: true, + xmlName: "lastName", type: { - name: "String" - } + name: "String", + }, }, - authorizationEndpoint: { - serializedName: "authorizationEndpoint", - xmlName: "authorizationEndpoint", + password: { + serializedName: "password", + xmlName: "password", type: { - name: "String" - } + name: "String", + }, }, - grantTypes: { - serializedName: "grantTypes", - xmlName: "grantTypes", - xmlElementName: "GrantType", + appType: { + serializedName: "appType", + xmlName: "appType", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - clientId: { - serializedName: "clientId", - xmlName: "clientId", + confirmation: { + serializedName: "confirmation", + xmlName: "confirmation", type: { - name: "String" - } + name: "String", + }, }, - clientSecret: { - serializedName: "clientSecret", - xmlName: "clientSecret", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const BackendContractProperties: coreClient.CompositeMapper = { - serializedName: "BackendContractProperties", +export const UserUpdateParametersProperties: coreClient.CompositeMapper = { + serializedName: "UserUpdateParametersProperties", type: { name: "Composite", - className: "BackendContractProperties", + className: "UserUpdateParametersProperties", modelProperties: { - ...BackendBaseParameters.type.modelProperties, - url: { + ...UserEntityBaseParameters.type.modelProperties, + email: { constraints: { - MaxLength: 2000, - MinLength: 1 + MaxLength: 254, + MinLength: 1, }, - serializedName: "url", - required: true, - xmlName: "url", + serializedName: "email", + xmlName: "email", type: { - name: "String" - } + name: "String", + }, }, - protocol: { - serializedName: "protocol", - required: true, - xmlName: "protocol", + password: { + serializedName: "password", + xmlName: "password", type: { - name: "String" - } - } - } - } -}; - -export const BackendUpdateParameterProperties: coreClient.CompositeMapper = { - serializedName: "BackendUpdateParameterProperties", - type: { - name: "Composite", - className: "BackendUpdateParameterProperties", - modelProperties: { - ...BackendBaseParameters.type.modelProperties, - url: { + name: "String", + }, + }, + firstName: { constraints: { - MaxLength: 2000, - MinLength: 1 + MaxLength: 100, + MinLength: 1, }, - serializedName: "url", - xmlName: "url", + serializedName: "firstName", + xmlName: "firstName", type: { - name: "String" - } + name: "String", + }, }, - protocol: { - serializedName: "protocol", - xmlName: "protocol", - type: { - name: "String" - } - } - } - } -}; - -export const KeyVaultContractProperties: coreClient.CompositeMapper = { - serializedName: "KeyVaultContractProperties", - type: { - name: "Composite", - className: "KeyVaultContractProperties", - modelProperties: { - ...KeyVaultContractCreateProperties.type.modelProperties, - lastStatus: { - serializedName: "lastStatus", - xmlName: "lastStatus", + lastName: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "lastName", + xmlName: "lastName", type: { - name: "Composite", - className: "KeyVaultLastAccessStatusContractProperties" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiManagementServiceProperties: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceProperties", +export const IdentityProviderContractProperties: coreClient.CompositeMapper = { + serializedName: "IdentityProviderContractProperties", type: { name: "Composite", - className: "ApiManagementServiceProperties", + className: "IdentityProviderContractProperties", modelProperties: { - ...ApiManagementServiceBaseProperties.type.modelProperties, - publisherEmail: { + ...IdentityProviderBaseParameters.type.modelProperties, + clientId: { constraints: { - MaxLength: 100 + MinLength: 1, }, - serializedName: "publisherEmail", + serializedName: "clientId", required: true, - xmlName: "publisherEmail", + xmlName: "clientId", type: { - name: "String" - } + name: "String", + }, }, - publisherName: { + clientSecret: { constraints: { - MaxLength: 100 + MinLength: 1, }, - serializedName: "publisherName", - required: true, - xmlName: "publisherName", + serializedName: "clientSecret", + xmlName: "clientSecret", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const IdentityProviderCreateContractProperties: coreClient.CompositeMapper = + { + serializedName: "IdentityProviderCreateContractProperties", + type: { + name: "Composite", + className: "IdentityProviderCreateContractProperties", + modelProperties: { + ...IdentityProviderBaseParameters.type.modelProperties, + clientId: { + constraints: { + MinLength: 1, + }, + serializedName: "clientId", + required: true, + xmlName: "clientId", + type: { + name: "String", + }, + }, + clientSecret: { + constraints: { + MinLength: 1, + }, + serializedName: "clientSecret", + required: true, + xmlName: "clientSecret", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiManagementServiceUpdateProperties: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceUpdateProperties", +export const IdentityProviderUpdateProperties: coreClient.CompositeMapper = { + serializedName: "IdentityProviderUpdateProperties", type: { name: "Composite", - className: "ApiManagementServiceUpdateProperties", + className: "IdentityProviderUpdateProperties", modelProperties: { - ...ApiManagementServiceBaseProperties.type.modelProperties, - publisherEmail: { + ...IdentityProviderBaseParameters.type.modelProperties, + clientId: { constraints: { - MaxLength: 100 + MinLength: 1, }, - serializedName: "publisherEmail", - xmlName: "publisherEmail", + serializedName: "clientId", + xmlName: "clientId", type: { - name: "String" - } + name: "String", + }, }, - publisherName: { + clientSecret: { constraints: { - MaxLength: 100 + MinLength: 1, }, - serializedName: "publisherName", - xmlName: "publisherName", + serializedName: "clientSecret", + xmlName: "clientSecret", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiManagementServiceResource: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceResource", +export const NamedValueContractProperties: coreClient.CompositeMapper = { + serializedName: "NamedValueContractProperties", type: { name: "Composite", - className: "ApiManagementServiceResource", + className: "NamedValueContractProperties", modelProperties: { - ...ApimResource.type.modelProperties, - sku: { - serializedName: "sku", - xmlName: "sku", + ...NamedValueEntityBaseParameters.type.modelProperties, + displayName: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1, + }, + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { - name: "Composite", - className: "ApiManagementServiceSkuProperties" - } + name: "String", + }, }, - identity: { - serializedName: "identity", - xmlName: "identity", + value: { + constraints: { + MaxLength: 4096, + }, + serializedName: "value", + xmlName: "value", type: { - name: "Composite", - className: "ApiManagementServiceIdentity" - } + name: "String", + }, }, - systemData: { - serializedName: "systemData", - xmlName: "systemData", + keyVault: { + serializedName: "keyVault", + xmlName: "keyVault", type: { name: "Composite", - className: "SystemData" - } - }, - location: { - serializedName: "location", - required: true, - xmlName: "location", - type: { - name: "String" - } + className: "KeyVaultContractProperties", + }, }, - etag: { - serializedName: "etag", + provisioningState: { + serializedName: "provisioningState", readOnly: true, - xmlName: "etag", + xmlName: "provisioningState", type: { - name: "String" - } + name: "String", + }, }, - zones: { - serializedName: "zones", - xmlName: "zones", - xmlElementName: "ApiManagementServiceResourceZonesItem", + }, + }, +}; + +export const NamedValueCreateContractProperties: coreClient.CompositeMapper = { + serializedName: "NamedValueCreateContractProperties", + type: { + name: "Composite", + className: "NamedValueCreateContractProperties", + modelProperties: { + ...NamedValueEntityBaseParameters.type.modelProperties, + displayName: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1, + }, + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - notificationSenderEmail: { + value: { constraints: { - MaxLength: 100 + MaxLength: 4096, }, - serializedName: "properties.notificationSenderEmail", - xmlName: "properties.notificationSenderEmail", + serializedName: "value", + xmlName: "value", type: { - name: "String" - } + name: "String", + }, }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - xmlName: "properties.provisioningState", + keyVault: { + serializedName: "keyVault", + xmlName: "keyVault", type: { - name: "String" - } + name: "Composite", + className: "KeyVaultContractCreateProperties", + }, }, - targetProvisioningState: { - serializedName: "properties.targetProvisioningState", - readOnly: true, - xmlName: "properties.targetProvisioningState", + }, + }, +}; + +export const NamedValueUpdateParameterProperties: coreClient.CompositeMapper = { + serializedName: "NamedValueUpdateParameterProperties", + type: { + name: "Composite", + className: "NamedValueUpdateParameterProperties", + modelProperties: { + ...NamedValueEntityBaseParameters.type.modelProperties, + displayName: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1, + }, + serializedName: "displayName", + xmlName: "displayName", type: { - name: "String" - } + name: "String", + }, }, - createdAtUtc: { - serializedName: "properties.createdAtUtc", - readOnly: true, - xmlName: "properties.createdAtUtc", + value: { + constraints: { + MaxLength: 4096, + MinLength: 1, + }, + serializedName: "value", + xmlName: "value", type: { - name: "DateTime" - } + name: "String", + }, }, - gatewayUrl: { - serializedName: "properties.gatewayUrl", - readOnly: true, - xmlName: "properties.gatewayUrl", + keyVault: { + serializedName: "keyVault", + xmlName: "keyVault", type: { - name: "String" - } + name: "Composite", + className: "KeyVaultContractCreateProperties", + }, }, - gatewayRegionalUrl: { - serializedName: "properties.gatewayRegionalUrl", - readOnly: true, - xmlName: "properties.gatewayRegionalUrl", + }, + }, +}; + +export const AllPoliciesContract: coreClient.CompositeMapper = { + serializedName: "AllPoliciesContract", + type: { + name: "Composite", + className: "AllPoliciesContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + referencePolicyId: { + serializedName: "properties.referencePolicyId", + xmlName: "properties.referencePolicyId", type: { - name: "String" - } + name: "String", + }, }, - portalUrl: { - serializedName: "properties.portalUrl", - readOnly: true, - xmlName: "properties.portalUrl", + complianceState: { + serializedName: "properties.complianceState", + xmlName: "properties.complianceState", type: { - name: "String" - } + name: "String", + }, }, - managementApiUrl: { - serializedName: "properties.managementApiUrl", - readOnly: true, - xmlName: "properties.managementApiUrl", + }, + }, +}; + +export const ApiContract: coreClient.CompositeMapper = { + serializedName: "ApiContract", + type: { + name: "Composite", + className: "ApiContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - scmUrl: { - serializedName: "properties.scmUrl", - readOnly: true, - xmlName: "properties.scmUrl", + authenticationSettings: { + serializedName: "properties.authenticationSettings", + xmlName: "properties.authenticationSettings", type: { - name: "String" - } + name: "Composite", + className: "AuthenticationSettingsContract", + }, }, - developerPortalUrl: { - serializedName: "properties.developerPortalUrl", - readOnly: true, - xmlName: "properties.developerPortalUrl", + subscriptionKeyParameterNames: { + serializedName: "properties.subscriptionKeyParameterNames", + xmlName: "properties.subscriptionKeyParameterNames", type: { - name: "String" - } + name: "Composite", + className: "SubscriptionKeyParameterNamesContract", + }, }, - hostnameConfigurations: { - serializedName: "properties.hostnameConfigurations", - xmlName: "properties.hostnameConfigurations", - xmlElementName: "HostnameConfiguration", + apiType: { + serializedName: "properties.type", + xmlName: "properties.type", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HostnameConfiguration" - } - } - } + name: "String", + }, }, - publicIPAddresses: { - serializedName: "properties.publicIPAddresses", - readOnly: true, - xmlName: "properties.publicIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPublicIPAddressesItem", + apiRevision: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "properties.apiRevision", + xmlName: "properties.apiRevision", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - privateIPAddresses: { - serializedName: "properties.privateIPAddresses", - readOnly: true, - xmlName: "properties.privateIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", + apiVersion: { + constraints: { + MaxLength: 100, + }, + serializedName: "properties.apiVersion", + xmlName: "properties.apiVersion", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - publicIpAddressId: { - serializedName: "properties.publicIpAddressId", - xmlName: "properties.publicIpAddressId", + isCurrent: { + serializedName: "properties.isCurrent", + xmlName: "properties.isCurrent", type: { - name: "String" - } + name: "Boolean", + }, }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - xmlName: "properties.publicNetworkAccess", + isOnline: { + serializedName: "properties.isOnline", + readOnly: true, + xmlName: "properties.isOnline", type: { - name: "String" - } + name: "Boolean", + }, }, - virtualNetworkConfiguration: { - serializedName: "properties.virtualNetworkConfiguration", - xmlName: "properties.virtualNetworkConfiguration", + apiRevisionDescription: { + constraints: { + MaxLength: 256, + }, + serializedName: "properties.apiRevisionDescription", + xmlName: "properties.apiRevisionDescription", type: { - name: "Composite", - className: "VirtualNetworkConfiguration" - } + name: "String", + }, }, - additionalLocations: { - serializedName: "properties.additionalLocations", - xmlName: "properties.additionalLocations", - xmlElementName: "AdditionalLocation", + apiVersionDescription: { + constraints: { + MaxLength: 256, + }, + serializedName: "properties.apiVersionDescription", + xmlName: "properties.apiVersionDescription", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AdditionalLocation" - } - } - } + name: "String", + }, }, - customProperties: { - serializedName: "properties.customProperties", - xmlName: "properties.customProperties", + apiVersionSetId: { + serializedName: "properties.apiVersionSetId", + xmlName: "properties.apiVersionSetId", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, - certificates: { - serializedName: "properties.certificates", - xmlName: "properties.certificates", - xmlElementName: "CertificateConfiguration", + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + xmlName: "properties.subscriptionRequired", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CertificateConfiguration" - } - } - } + name: "Boolean", + }, }, - enableClientCertificate: { - defaultValue: false, - serializedName: "properties.enableClientCertificate", - xmlName: "properties.enableClientCertificate", + termsOfServiceUrl: { + serializedName: "properties.termsOfServiceUrl", + xmlName: "properties.termsOfServiceUrl", type: { - name: "Boolean" - } + name: "String", + }, }, - natGatewayState: { - serializedName: "properties.natGatewayState", - xmlName: "properties.natGatewayState", + contact: { + serializedName: "properties.contact", + xmlName: "properties.contact", type: { - name: "String" - } + name: "Composite", + className: "ApiContactInformation", + }, }, - outboundPublicIPAddresses: { - serializedName: "properties.outboundPublicIPAddresses", - readOnly: true, - xmlName: "properties.outboundPublicIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", + license: { + serializedName: "properties.license", + xmlName: "properties.license", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Composite", + className: "ApiLicenseInformation", + }, }, - disableGateway: { - defaultValue: false, - serializedName: "properties.disableGateway", - xmlName: "properties.disableGateway", + sourceApiId: { + serializedName: "properties.sourceApiId", + xmlName: "properties.sourceApiId", type: { - name: "Boolean" - } + name: "String", + }, }, - virtualNetworkType: { - defaultValue: "None", - serializedName: "properties.virtualNetworkType", - xmlName: "properties.virtualNetworkType", + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - apiVersionConstraint: { - serializedName: "properties.apiVersionConstraint", - xmlName: "properties.apiVersionConstraint", + serviceUrl: { + constraints: { + MaxLength: 2000, + }, + serializedName: "properties.serviceUrl", + xmlName: "properties.serviceUrl", type: { - name: "Composite", - className: "ApiVersionConstraint" - } + name: "String", + }, }, - restore: { - defaultValue: false, - serializedName: "properties.restore", - xmlName: "properties.restore", + path: { + constraints: { + MaxLength: 400, + }, + serializedName: "properties.path", + xmlName: "properties.path", type: { - name: "Boolean" - } + name: "String", + }, }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - xmlName: "properties.privateEndpointConnections", - xmlElementName: "RemotePrivateEndpointConnectionWrapper", + protocols: { + serializedName: "properties.protocols", + xmlName: "properties.protocols", + xmlElementName: "Protocol", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "RemotePrivateEndpointConnectionWrapper" - } - } - } + name: "String", + }, + }, + }, }, - platformVersion: { - serializedName: "properties.platformVersion", + apiVersionSet: { + serializedName: "properties.apiVersionSet", + xmlName: "properties.apiVersionSet", + type: { + name: "Composite", + className: "ApiVersionSetContractDetails", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, - xmlName: "properties.platformVersion", + xmlName: "properties.provisioningState", type: { - name: "String" - } + name: "String", + }, }, - publisherEmail: { - constraints: { - MaxLength: 100 + }, + }, +}; + +export const ApiReleaseContract: coreClient.CompositeMapper = { + serializedName: "ApiReleaseContract", + type: { + name: "Composite", + className: "ApiReleaseContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + apiId: { + serializedName: "properties.apiId", + xmlName: "properties.apiId", + type: { + name: "String", }, - serializedName: "properties.publisherEmail", - required: true, - xmlName: "properties.publisherEmail", + }, + createdDateTime: { + serializedName: "properties.createdDateTime", + readOnly: true, + xmlName: "properties.createdDateTime", type: { - name: "String" - } + name: "DateTime", + }, }, - publisherName: { - constraints: { - MaxLength: 100 + updatedDateTime: { + serializedName: "properties.updatedDateTime", + readOnly: true, + xmlName: "properties.updatedDateTime", + type: { + name: "DateTime", }, - serializedName: "properties.publisherName", - required: true, - xmlName: "properties.publisherName", + }, + notes: { + serializedName: "properties.notes", + xmlName: "properties.notes", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiManagementServiceUpdateParameters: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceUpdateParameters", +export const OperationContract: coreClient.CompositeMapper = { + serializedName: "OperationContract", type: { name: "Composite", - className: "ApiManagementServiceUpdateParameters", + className: "OperationContract", modelProperties: { - ...ApimResource.type.modelProperties, - sku: { - serializedName: "sku", - xmlName: "sku", + ...ProxyResource.type.modelProperties, + templateParameters: { + serializedName: "properties.templateParameters", + xmlName: "properties.templateParameters", + xmlElementName: "ParameterContract", type: { - name: "Composite", - className: "ApiManagementServiceSkuProperties" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ParameterContract", + }, + }, + }, }, - identity: { - serializedName: "identity", - xmlName: "identity", + description: { + constraints: { + MaxLength: 1000, + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Composite", - className: "ApiManagementServiceIdentity" - } + name: "String", + }, }, - etag: { - serializedName: "etag", - readOnly: true, - xmlName: "etag", + request: { + serializedName: "properties.request", + xmlName: "properties.request", type: { - name: "String" - } + name: "Composite", + className: "RequestContract", + }, }, - zones: { - serializedName: "zones", - xmlName: "zones", - xmlElementName: "ApiManagementServiceUpdateParametersZonesItem", + responses: { + serializedName: "properties.responses", + xmlName: "properties.responses", + xmlElementName: "ResponseContract", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } - }, - notificationSenderEmail: { - constraints: { - MaxLength: 100 + name: "Composite", + className: "ResponseContract", + }, + }, }, - serializedName: "properties.notificationSenderEmail", - xmlName: "properties.notificationSenderEmail", + }, + policies: { + serializedName: "properties.policies", + xmlName: "properties.policies", type: { - name: "String" - } + name: "String", + }, }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - xmlName: "properties.provisioningState", + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - targetProvisioningState: { - serializedName: "properties.targetProvisioningState", - readOnly: true, - xmlName: "properties.targetProvisioningState", + method: { + serializedName: "properties.method", + xmlName: "properties.method", type: { - name: "String" - } + name: "String", + }, }, - createdAtUtc: { - serializedName: "properties.createdAtUtc", - readOnly: true, - xmlName: "properties.createdAtUtc", + urlTemplate: { + constraints: { + MaxLength: 1000, + MinLength: 1, + }, + serializedName: "properties.urlTemplate", + xmlName: "properties.urlTemplate", type: { - name: "DateTime" - } + name: "String", + }, }, - gatewayUrl: { - serializedName: "properties.gatewayUrl", - readOnly: true, - xmlName: "properties.gatewayUrl", + }, + }, +}; + +export const PolicyContract: coreClient.CompositeMapper = { + serializedName: "PolicyContract", + type: { + name: "Composite", + className: "PolicyContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + value: { + serializedName: "properties.value", + xmlName: "properties.value", type: { - name: "String" - } + name: "String", + }, }, - gatewayRegionalUrl: { - serializedName: "properties.gatewayRegionalUrl", - readOnly: true, - xmlName: "properties.gatewayRegionalUrl", + format: { + defaultValue: "xml", + serializedName: "properties.format", + xmlName: "properties.format", type: { - name: "String" - } + name: "String", + }, }, - portalUrl: { - serializedName: "properties.portalUrl", - readOnly: true, - xmlName: "properties.portalUrl", + }, + }, +}; + +export const TagContract: coreClient.CompositeMapper = { + serializedName: "TagContract", + type: { + name: "Composite", + className: "TagContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + constraints: { + MaxLength: 160, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - managementApiUrl: { - serializedName: "properties.managementApiUrl", - readOnly: true, - xmlName: "properties.managementApiUrl", + }, + }, +}; + +export const ResolverContract: coreClient.CompositeMapper = { + serializedName: "ResolverContract", + type: { + name: "Composite", + className: "ResolverContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - scmUrl: { - serializedName: "properties.scmUrl", - readOnly: true, - xmlName: "properties.scmUrl", + path: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "properties.path", + xmlName: "properties.path", type: { - name: "String" - } + name: "String", + }, }, - developerPortalUrl: { - serializedName: "properties.developerPortalUrl", - readOnly: true, - xmlName: "properties.developerPortalUrl", + description: { + constraints: { + MaxLength: 1000, + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - hostnameConfigurations: { - serializedName: "properties.hostnameConfigurations", - xmlName: "properties.hostnameConfigurations", - xmlElementName: "HostnameConfiguration", + }, + }, +}; + +export const ProductContract: coreClient.CompositeMapper = { + serializedName: "ProductContract", + type: { + name: "Composite", + className: "ProductContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { + constraints: { + MaxLength: 1000, + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HostnameConfiguration" - } - } - } + name: "String", + }, }, - publicIPAddresses: { - serializedName: "properties.publicIPAddresses", - readOnly: true, - xmlName: "properties.publicIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPublicIPAddressesItem", + terms: { + serializedName: "properties.terms", + xmlName: "properties.terms", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - privateIPAddresses: { - serializedName: "properties.privateIPAddresses", - readOnly: true, - xmlName: "properties.privateIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + xmlName: "properties.subscriptionRequired", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Boolean", + }, }, - publicIpAddressId: { - serializedName: "properties.publicIpAddressId", - xmlName: "properties.publicIpAddressId", + approvalRequired: { + serializedName: "properties.approvalRequired", + xmlName: "properties.approvalRequired", type: { - name: "String" - } + name: "Boolean", + }, }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - xmlName: "properties.publicNetworkAccess", + subscriptionsLimit: { + serializedName: "properties.subscriptionsLimit", + xmlName: "properties.subscriptionsLimit", type: { - name: "String" - } + name: "Number", + }, }, - virtualNetworkConfiguration: { - serializedName: "properties.virtualNetworkConfiguration", - xmlName: "properties.virtualNetworkConfiguration", + state: { + serializedName: "properties.state", + xmlName: "properties.state", type: { - name: "Composite", - className: "VirtualNetworkConfiguration" - } + name: "Enum", + allowedValues: ["notPublished", "published"], + }, }, - additionalLocations: { - serializedName: "properties.additionalLocations", - xmlName: "properties.additionalLocations", - xmlElementName: "AdditionalLocation", + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AdditionalLocation" - } - } - } + name: "String", + }, }, - customProperties: { - serializedName: "properties.customProperties", - xmlName: "properties.customProperties", + }, + }, +}; + +export const SchemaContract: coreClient.CompositeMapper = { + serializedName: "SchemaContract", + type: { + name: "Composite", + className: "SchemaContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + contentType: { + serializedName: "properties.contentType", + xmlName: "properties.contentType", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, - certificates: { - serializedName: "properties.certificates", - xmlName: "properties.certificates", - xmlElementName: "CertificateConfiguration", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CertificateConfiguration" - } - } - } + name: "String", + }, }, - enableClientCertificate: { - defaultValue: false, - serializedName: "properties.enableClientCertificate", - xmlName: "properties.enableClientCertificate", + value: { + serializedName: "properties.document.value", + xmlName: "properties.document.value", type: { - name: "Boolean" - } + name: "String", + }, }, - natGatewayState: { - serializedName: "properties.natGatewayState", - xmlName: "properties.natGatewayState", + definitions: { + serializedName: "properties.document.definitions", + xmlName: "properties.document.definitions", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "any" } }, + }, }, - outboundPublicIPAddresses: { - serializedName: "properties.outboundPublicIPAddresses", - readOnly: true, - xmlName: "properties.outboundPublicIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", + components: { + serializedName: "properties.document.components", + xmlName: "properties.document.components", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Dictionary", + value: { type: { name: "any" } }, + }, }, - disableGateway: { - defaultValue: false, - serializedName: "properties.disableGateway", - xmlName: "properties.disableGateway", + }, + }, +}; + +export const DiagnosticContract: coreClient.CompositeMapper = { + serializedName: "DiagnosticContract", + type: { + name: "Composite", + className: "DiagnosticContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + alwaysLog: { + serializedName: "properties.alwaysLog", + xmlName: "properties.alwaysLog", type: { - name: "Boolean" - } + name: "String", + }, }, - virtualNetworkType: { - defaultValue: "None", - serializedName: "properties.virtualNetworkType", - xmlName: "properties.virtualNetworkType", + loggerId: { + serializedName: "properties.loggerId", + xmlName: "properties.loggerId", type: { - name: "String" - } + name: "String", + }, }, - apiVersionConstraint: { - serializedName: "properties.apiVersionConstraint", - xmlName: "properties.apiVersionConstraint", + sampling: { + serializedName: "properties.sampling", + xmlName: "properties.sampling", type: { name: "Composite", - className: "ApiVersionConstraint" - } + className: "SamplingSettings", + }, }, - restore: { - defaultValue: false, - serializedName: "properties.restore", - xmlName: "properties.restore", + frontend: { + serializedName: "properties.frontend", + xmlName: "properties.frontend", type: { - name: "Boolean" - } + name: "Composite", + className: "PipelineDiagnosticSettings", + }, }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - xmlName: "properties.privateEndpointConnections", - xmlElementName: "RemotePrivateEndpointConnectionWrapper", + backend: { + serializedName: "properties.backend", + xmlName: "properties.backend", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RemotePrivateEndpointConnectionWrapper" - } - } - } + name: "Composite", + className: "PipelineDiagnosticSettings", + }, }, - platformVersion: { - serializedName: "properties.platformVersion", - readOnly: true, - xmlName: "properties.platformVersion", + logClientIp: { + serializedName: "properties.logClientIp", + xmlName: "properties.logClientIp", type: { - name: "String" - } - }, - publisherEmail: { - constraints: { - MaxLength: 100 + name: "Boolean", }, - serializedName: "properties.publisherEmail", - xmlName: "properties.publisherEmail", - type: { - name: "String" - } }, - publisherName: { - constraints: { - MaxLength: 100 - }, - serializedName: "properties.publisherName", - xmlName: "properties.publisherName", - type: { - name: "String" - } - } - } - } -}; - -export const UserContractProperties: coreClient.CompositeMapper = { - serializedName: "UserContractProperties", - type: { - name: "Composite", - className: "UserContractProperties", - modelProperties: { - ...UserEntityBaseParameters.type.modelProperties, - firstName: { - serializedName: "firstName", - xmlName: "firstName", + httpCorrelationProtocol: { + serializedName: "properties.httpCorrelationProtocol", + xmlName: "properties.httpCorrelationProtocol", type: { - name: "String" - } + name: "String", + }, }, - lastName: { - serializedName: "lastName", - xmlName: "lastName", + verbosity: { + serializedName: "properties.verbosity", + xmlName: "properties.verbosity", type: { - name: "String" - } + name: "String", + }, }, - email: { - serializedName: "email", - xmlName: "email", + operationNameFormat: { + serializedName: "properties.operationNameFormat", + xmlName: "properties.operationNameFormat", type: { - name: "String" - } + name: "String", + }, }, - registrationDate: { - serializedName: "registrationDate", - xmlName: "registrationDate", + metrics: { + serializedName: "properties.metrics", + xmlName: "properties.metrics", type: { - name: "DateTime" - } + name: "Boolean", + }, }, - groups: { - serializedName: "groups", - readOnly: true, - xmlName: "groups", - xmlElementName: "GroupContractProperties", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GroupContractProperties" - } - } - } - } - } - } + }, + }, }; -export const UserCreateParameterProperties: coreClient.CompositeMapper = { - serializedName: "UserCreateParameterProperties", +export const IssueContract: coreClient.CompositeMapper = { + serializedName: "IssueContract", type: { name: "Composite", - className: "UserCreateParameterProperties", + className: "IssueContract", modelProperties: { - ...UserEntityBaseParameters.type.modelProperties, - email: { - constraints: { - MaxLength: 254, - MinLength: 1 - }, - serializedName: "email", - required: true, - xmlName: "email", + ...ProxyResource.type.modelProperties, + createdDate: { + serializedName: "properties.createdDate", + xmlName: "properties.createdDate", type: { - name: "String" - } - }, - firstName: { - constraints: { - MaxLength: 100, - MinLength: 1 + name: "DateTime", }, - serializedName: "firstName", - required: true, - xmlName: "firstName", - type: { - name: "String" - } }, - lastName: { - constraints: { - MaxLength: 100, - MinLength: 1 + state: { + serializedName: "properties.state", + xmlName: "properties.state", + type: { + name: "String", }, - serializedName: "lastName", - required: true, - xmlName: "lastName", + }, + apiId: { + serializedName: "properties.apiId", + xmlName: "properties.apiId", type: { - name: "String" - } + name: "String", + }, }, - password: { - serializedName: "password", - xmlName: "password", + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { - name: "String" - } + name: "String", + }, }, - appType: { - serializedName: "appType", - xmlName: "appType", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - confirmation: { - serializedName: "confirmation", - xmlName: "confirmation", + userId: { + serializedName: "properties.userId", + xmlName: "properties.userId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const UserUpdateParametersProperties: coreClient.CompositeMapper = { - serializedName: "UserUpdateParametersProperties", +export const IssueCommentContract: coreClient.CompositeMapper = { + serializedName: "IssueCommentContract", type: { name: "Composite", - className: "UserUpdateParametersProperties", + className: "IssueCommentContract", modelProperties: { - ...UserEntityBaseParameters.type.modelProperties, - email: { - constraints: { - MaxLength: 254, - MinLength: 1 - }, - serializedName: "email", - xmlName: "email", + ...ProxyResource.type.modelProperties, + text: { + serializedName: "properties.text", + xmlName: "properties.text", type: { - name: "String" - } + name: "String", + }, }, - password: { - serializedName: "password", - xmlName: "password", + createdDate: { + serializedName: "properties.createdDate", + xmlName: "properties.createdDate", type: { - name: "String" - } - }, - firstName: { - constraints: { - MaxLength: 100, - MinLength: 1 + name: "DateTime", }, - serializedName: "firstName", - xmlName: "firstName", - type: { - name: "String" - } }, - lastName: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "lastName", - xmlName: "lastName", + userId: { + serializedName: "properties.userId", + xmlName: "properties.userId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderContractProperties: coreClient.CompositeMapper = { - serializedName: "IdentityProviderContractProperties", +export const IssueAttachmentContract: coreClient.CompositeMapper = { + serializedName: "IssueAttachmentContract", type: { name: "Composite", - className: "IdentityProviderContractProperties", + className: "IssueAttachmentContract", modelProperties: { - ...IdentityProviderBaseParameters.type.modelProperties, - clientId: { - constraints: { - MinLength: 1 - }, - serializedName: "clientId", - required: true, - xmlName: "clientId", + ...ProxyResource.type.modelProperties, + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { - name: "String" - } + name: "String", + }, }, - clientSecret: { - constraints: { - MinLength: 1 + contentFormat: { + serializedName: "properties.contentFormat", + xmlName: "properties.contentFormat", + type: { + name: "String", }, - serializedName: "clientSecret", - xmlName: "clientSecret", + }, + content: { + serializedName: "properties.content", + xmlName: "properties.content", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderCreateContractProperties: coreClient.CompositeMapper = { - serializedName: "IdentityProviderCreateContractProperties", +export const TagDescriptionContract: coreClient.CompositeMapper = { + serializedName: "TagDescriptionContract", type: { name: "Composite", - className: "IdentityProviderCreateContractProperties", + className: "TagDescriptionContract", modelProperties: { - ...IdentityProviderBaseParameters.type.modelProperties, - clientId: { + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String", + }, + }, + externalDocsUrl: { constraints: { - MinLength: 1 + MaxLength: 2000, }, - serializedName: "clientId", - required: true, - xmlName: "clientId", + serializedName: "properties.externalDocsUrl", + xmlName: "properties.externalDocsUrl", + type: { + name: "String", + }, + }, + externalDocsDescription: { + serializedName: "properties.externalDocsDescription", + xmlName: "properties.externalDocsDescription", type: { - name: "String" - } + name: "String", + }, }, - clientSecret: { + tagId: { + serializedName: "properties.tagId", + xmlName: "properties.tagId", + type: { + name: "String", + }, + }, + displayName: { constraints: { - MinLength: 1 + MaxLength: 160, + MinLength: 1, }, - serializedName: "clientSecret", - required: true, - xmlName: "clientSecret", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderUpdateProperties: coreClient.CompositeMapper = { - serializedName: "IdentityProviderUpdateProperties", +export const WikiContract: coreClient.CompositeMapper = { + serializedName: "WikiContract", type: { name: "Composite", - className: "IdentityProviderUpdateProperties", + className: "WikiContract", modelProperties: { - ...IdentityProviderBaseParameters.type.modelProperties, - clientId: { - constraints: { - MinLength: 1 - }, - serializedName: "clientId", - xmlName: "clientId", + ...ProxyResource.type.modelProperties, + documents: { + serializedName: "properties.documents", + xmlName: "properties.documents", + xmlElementName: "WikiDocumentationContract", type: { - name: "String" - } - }, - clientSecret: { - constraints: { - MinLength: 1 + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WikiDocumentationContract", + }, + }, }, - serializedName: "clientSecret", - xmlName: "clientSecret", - type: { - name: "String" - } - } - } - } + }, + }, + }, }; -export const NamedValueContractProperties: coreClient.CompositeMapper = { - serializedName: "NamedValueContractProperties", +export const ApiVersionSetContract: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetContract", type: { name: "Composite", - className: "NamedValueContractProperties", + className: "ApiVersionSetContract", modelProperties: { - ...NamedValueEntityBaseParameters.type.modelProperties, - displayName: { + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String", + }, + }, + versionQueryName: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "properties.versionQueryName", + xmlName: "properties.versionQueryName", + type: { + name: "String", + }, + }, + versionHeaderName: { constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 + MaxLength: 100, + MinLength: 1, }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + serializedName: "properties.versionHeaderName", + xmlName: "properties.versionHeaderName", type: { - name: "String" - } + name: "String", + }, }, - value: { + displayName: { constraints: { - MaxLength: 4096 + MaxLength: 100, + MinLength: 1, }, - serializedName: "value", - xmlName: "value", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - keyVault: { - serializedName: "keyVault", - xmlName: "keyVault", + versioningScheme: { + serializedName: "properties.versioningScheme", + xmlName: "properties.versioningScheme", type: { - name: "Composite", - className: "KeyVaultContractProperties" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NamedValueCreateContractProperties: coreClient.CompositeMapper = { - serializedName: "NamedValueCreateContractProperties", +export const AuthorizationProviderContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationProviderContract", type: { name: "Composite", - className: "NamedValueCreateContractProperties", + className: "AuthorizationProviderContract", modelProperties: { - ...NamedValueEntityBaseParameters.type.modelProperties, + ...ProxyResource.type.modelProperties, displayName: { constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 + MaxLength: 300, + MinLength: 1, }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } - }, - value: { - constraints: { - MaxLength: 4096 + name: "String", }, - serializedName: "value", - xmlName: "value", + }, + identityProvider: { + serializedName: "properties.identityProvider", + xmlName: "properties.identityProvider", type: { - name: "String" - } + name: "String", + }, }, - keyVault: { - serializedName: "keyVault", - xmlName: "keyVault", + oauth2: { + serializedName: "properties.oauth2", + xmlName: "properties.oauth2", type: { name: "Composite", - className: "KeyVaultContractCreateProperties" - } - } - } - } + className: "AuthorizationProviderOAuth2Settings", + }, + }, + }, + }, }; -export const NamedValueUpdateParameterProperties: coreClient.CompositeMapper = { - serializedName: "NamedValueUpdateParameterProperties", +export const AuthorizationContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationContract", type: { name: "Composite", - className: "NamedValueUpdateParameterProperties", + className: "AuthorizationContract", modelProperties: { - ...NamedValueEntityBaseParameters.type.modelProperties, - displayName: { - constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 - }, - serializedName: "displayName", - xmlName: "displayName", + ...ProxyResource.type.modelProperties, + authorizationType: { + serializedName: "properties.authorizationType", + xmlName: "properties.authorizationType", type: { - name: "String" - } + name: "String", + }, }, - value: { - constraints: { - MaxLength: 4096, - MinLength: 1 + oAuth2GrantType: { + serializedName: "properties.oauth2grantType", + xmlName: "properties.oauth2grantType", + type: { + name: "String", }, - serializedName: "value", - xmlName: "value", + }, + parameters: { + serializedName: "properties.parameters", + xmlName: "properties.parameters", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - keyVault: { - serializedName: "keyVault", - xmlName: "keyVault", + error: { + serializedName: "properties.error", + xmlName: "properties.error", type: { name: "Composite", - className: "KeyVaultContractCreateProperties" - } - } - } - } + className: "AuthorizationError", + }, + }, + status: { + serializedName: "properties.status", + xmlName: "properties.status", + type: { + name: "String", + }, + }, + }, + }, }; -export const ApiCreateOrUpdateProperties: coreClient.CompositeMapper = { - serializedName: "ApiCreateOrUpdateProperties", +export const AuthorizationAccessPolicyContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationAccessPolicyContract", type: { name: "Composite", - className: "ApiCreateOrUpdateProperties", + className: "AuthorizationAccessPolicyContract", modelProperties: { - ...ApiContractProperties.type.modelProperties, - value: { - serializedName: "value", - xmlName: "value", - type: { - name: "String" - } - }, - format: { - serializedName: "format", - xmlName: "format", + ...ProxyResource.type.modelProperties, + appIds: { + serializedName: "properties.appIds", + xmlName: "properties.appIds", + xmlElementName: "AuthorizationAccessPolicyContractPropertiesAppIdsItem", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - wsdlSelector: { - serializedName: "wsdlSelector", - xmlName: "wsdlSelector", + tenantId: { + serializedName: "properties.tenantId", + xmlName: "properties.tenantId", type: { - name: "Composite", - className: "ApiCreateOrUpdatePropertiesWsdlSelector" - } + name: "String", + }, }, - soapApiType: { - serializedName: "apiType", - xmlName: "apiType", + objectId: { + serializedName: "properties.objectId", + xmlName: "properties.objectId", type: { - name: "String" - } + name: "String", + }, }, - translateRequiredQueryParametersConduct: { - serializedName: "translateRequiredQueryParameters", - xmlName: "translateRequiredQueryParameters", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ApiContract: coreClient.CompositeMapper = { - serializedName: "ApiContract", +export const AuthorizationServerContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerContract", type: { name: "Composite", - className: "ApiContract", + className: "AuthorizationServerContract", modelProperties: { ...ProxyResource.type.modelProperties, description: { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } - }, - authenticationSettings: { - serializedName: "properties.authenticationSettings", - xmlName: "properties.authenticationSettings", - type: { - name: "Composite", - className: "AuthenticationSettingsContract" - } - }, - subscriptionKeyParameterNames: { - serializedName: "properties.subscriptionKeyParameterNames", - xmlName: "properties.subscriptionKeyParameterNames", - type: { - name: "Composite", - className: "SubscriptionKeyParameterNamesContract" - } - }, - apiType: { - serializedName: "properties.type", - xmlName: "properties.type", - type: { - name: "String" - } - }, - apiRevision: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "properties.apiRevision", - xmlName: "properties.apiRevision", - type: { - name: "String" - } - }, - apiVersion: { - constraints: { - MaxLength: 100 + name: "String", }, - serializedName: "properties.apiVersion", - xmlName: "properties.apiVersion", - type: { - name: "String" - } }, - isCurrent: { - serializedName: "properties.isCurrent", - xmlName: "properties.isCurrent", + authorizationMethods: { + serializedName: "properties.authorizationMethods", + xmlName: "properties.authorizationMethods", + xmlElementName: "AuthorizationMethod", type: { - name: "Boolean" - } + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "HEAD", + "OPTIONS", + "TRACE", + "GET", + "POST", + "PUT", + "PATCH", + "DELETE", + ], + }, + }, + }, }, - isOnline: { - serializedName: "properties.isOnline", - readOnly: true, - xmlName: "properties.isOnline", + clientAuthenticationMethod: { + serializedName: "properties.clientAuthenticationMethod", + xmlName: "properties.clientAuthenticationMethod", + xmlElementName: "ClientAuthenticationMethod", type: { - name: "Boolean" - } - }, - apiRevisionDescription: { - constraints: { - MaxLength: 256 + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, - serializedName: "properties.apiRevisionDescription", - xmlName: "properties.apiRevisionDescription", - type: { - name: "String" - } }, - apiVersionDescription: { - constraints: { - MaxLength: 256 - }, - serializedName: "properties.apiVersionDescription", - xmlName: "properties.apiVersionDescription", + tokenBodyParameters: { + serializedName: "properties.tokenBodyParameters", + xmlName: "properties.tokenBodyParameters", + xmlElementName: "TokenBodyParameterContract", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TokenBodyParameterContract", + }, + }, + }, }, - apiVersionSetId: { - serializedName: "properties.apiVersionSetId", - xmlName: "properties.apiVersionSetId", + tokenEndpoint: { + serializedName: "properties.tokenEndpoint", + xmlName: "properties.tokenEndpoint", type: { - name: "String" - } + name: "String", + }, }, - subscriptionRequired: { - serializedName: "properties.subscriptionRequired", - xmlName: "properties.subscriptionRequired", + supportState: { + serializedName: "properties.supportState", + xmlName: "properties.supportState", type: { - name: "Boolean" - } + name: "Boolean", + }, }, - termsOfServiceUrl: { - serializedName: "properties.termsOfServiceUrl", - xmlName: "properties.termsOfServiceUrl", + defaultScope: { + serializedName: "properties.defaultScope", + xmlName: "properties.defaultScope", type: { - name: "String" - } + name: "String", + }, }, - contact: { - serializedName: "properties.contact", - xmlName: "properties.contact", + bearerTokenSendingMethods: { + serializedName: "properties.bearerTokenSendingMethods", + xmlName: "properties.bearerTokenSendingMethods", + xmlElementName: "BearerTokenSendingMethod", type: { - name: "Composite", - className: "ApiContactInformation" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - license: { - serializedName: "properties.license", - xmlName: "properties.license", + resourceOwnerUsername: { + serializedName: "properties.resourceOwnerUsername", + xmlName: "properties.resourceOwnerUsername", type: { - name: "Composite", - className: "ApiLicenseInformation" - } + name: "String", + }, }, - sourceApiId: { - serializedName: "properties.sourceApiId", - xmlName: "properties.sourceApiId", + resourceOwnerPassword: { + serializedName: "properties.resourceOwnerPassword", + xmlName: "properties.resourceOwnerPassword", type: { - name: "String" - } + name: "String", + }, }, displayName: { constraints: { - MaxLength: 300, - MinLength: 1 + MaxLength: 50, + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - serviceUrl: { - constraints: { - MaxLength: 2000 + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", + type: { + name: "Boolean", }, - serializedName: "properties.serviceUrl", - xmlName: "properties.serviceUrl", + }, + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", type: { - name: "String" - } + name: "Boolean", + }, }, - path: { - constraints: { - MaxLength: 400 + clientRegistrationEndpoint: { + serializedName: "properties.clientRegistrationEndpoint", + xmlName: "properties.clientRegistrationEndpoint", + type: { + name: "String", }, - serializedName: "properties.path", - xmlName: "properties.path", + }, + authorizationEndpoint: { + serializedName: "properties.authorizationEndpoint", + xmlName: "properties.authorizationEndpoint", type: { - name: "String" - } + name: "String", + }, }, - protocols: { - serializedName: "properties.protocols", - xmlName: "properties.protocols", - xmlElementName: "Protocol", + grantTypes: { + serializedName: "properties.grantTypes", + xmlName: "properties.grantTypes", + xmlElementName: "GrantType", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - apiVersionSet: { - serializedName: "properties.apiVersionSet", - xmlName: "properties.apiVersionSet", + clientId: { + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { - name: "Composite", - className: "ApiVersionSetContractDetails" - } - } - } - } + name: "String", + }, + }, + clientSecret: { + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", + type: { + name: "String", + }, + }, + }, + }, }; -export const ApiReleaseContract: coreClient.CompositeMapper = { - serializedName: "ApiReleaseContract", +export const AuthorizationServerUpdateContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerUpdateContract", type: { name: "Composite", - className: "ApiReleaseContract", + className: "AuthorizationServerUpdateContract", modelProperties: { ...ProxyResource.type.modelProperties, - apiId: { - serializedName: "properties.apiId", - xmlName: "properties.apiId", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - createdDateTime: { - serializedName: "properties.createdDateTime", - readOnly: true, - xmlName: "properties.createdDateTime", + authorizationMethods: { + serializedName: "properties.authorizationMethods", + xmlName: "properties.authorizationMethods", + xmlElementName: "AuthorizationMethod", type: { - name: "DateTime" - } + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "HEAD", + "OPTIONS", + "TRACE", + "GET", + "POST", + "PUT", + "PATCH", + "DELETE", + ], + }, + }, + }, }, - updatedDateTime: { - serializedName: "properties.updatedDateTime", - readOnly: true, - xmlName: "properties.updatedDateTime", + clientAuthenticationMethod: { + serializedName: "properties.clientAuthenticationMethod", + xmlName: "properties.clientAuthenticationMethod", + xmlElementName: "ClientAuthenticationMethod", type: { - name: "DateTime" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - notes: { - serializedName: "properties.notes", - xmlName: "properties.notes", - type: { - name: "String" - } - } - } - } -}; - -export const OperationContract: coreClient.CompositeMapper = { - serializedName: "OperationContract", - type: { - name: "Composite", - className: "OperationContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - templateParameters: { - serializedName: "properties.templateParameters", - xmlName: "properties.templateParameters", - xmlElementName: "ParameterContract", + tokenBodyParameters: { + serializedName: "properties.tokenBodyParameters", + xmlName: "properties.tokenBodyParameters", + xmlElementName: "TokenBodyParameterContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ParameterContract" - } - } - } + className: "TokenBodyParameterContract", + }, + }, + }, }, - description: { - constraints: { - MaxLength: 1000 + tokenEndpoint: { + serializedName: "properties.tokenEndpoint", + xmlName: "properties.tokenEndpoint", + type: { + name: "String", }, - serializedName: "properties.description", - xmlName: "properties.description", + }, + supportState: { + serializedName: "properties.supportState", + xmlName: "properties.supportState", type: { - name: "String" - } + name: "Boolean", + }, }, - request: { - serializedName: "properties.request", - xmlName: "properties.request", + defaultScope: { + serializedName: "properties.defaultScope", + xmlName: "properties.defaultScope", type: { - name: "Composite", - className: "RequestContract" - } + name: "String", + }, }, - responses: { - serializedName: "properties.responses", - xmlName: "properties.responses", - xmlElementName: "ResponseContract", + bearerTokenSendingMethods: { + serializedName: "properties.bearerTokenSendingMethods", + xmlName: "properties.bearerTokenSendingMethods", + xmlElementName: "BearerTokenSendingMethod", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ResponseContract" - } - } - } + name: "String", + }, + }, + }, }, - policies: { - serializedName: "properties.policies", - xmlName: "properties.policies", + resourceOwnerUsername: { + serializedName: "properties.resourceOwnerUsername", + xmlName: "properties.resourceOwnerUsername", + type: { + name: "String", + }, + }, + resourceOwnerPassword: { + serializedName: "properties.resourceOwnerPassword", + xmlName: "properties.resourceOwnerPassword", type: { - name: "String" - } + name: "String", + }, }, displayName: { constraints: { - MaxLength: 300, - MinLength: 1 + MaxLength: 50, + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - method: { - serializedName: "properties.method", - xmlName: "properties.method", + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", type: { - name: "String" - } + name: "Boolean", + }, }, - urlTemplate: { - constraints: { - MaxLength: 1000, - MinLength: 1 + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", + type: { + name: "Boolean", }, - serializedName: "properties.urlTemplate", - xmlName: "properties.urlTemplate", + }, + clientRegistrationEndpoint: { + serializedName: "properties.clientRegistrationEndpoint", + xmlName: "properties.clientRegistrationEndpoint", type: { - name: "String" - } - } - } - } -}; - -export const PolicyContract: coreClient.CompositeMapper = { - serializedName: "PolicyContract", - type: { - name: "Composite", - className: "PolicyContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - value: { - serializedName: "properties.value", - xmlName: "properties.value", + name: "String", + }, + }, + authorizationEndpoint: { + serializedName: "properties.authorizationEndpoint", + xmlName: "properties.authorizationEndpoint", type: { - name: "String" - } + name: "String", + }, }, - format: { - defaultValue: "xml", - serializedName: "properties.format", - xmlName: "properties.format", + grantTypes: { + serializedName: "properties.grantTypes", + xmlName: "properties.grantTypes", + xmlElementName: "GrantType", type: { - name: "String" - } - } - } - } -}; - -export const TagContract: coreClient.CompositeMapper = { - serializedName: "TagContract", - type: { - name: "Composite", - className: "TagContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - displayName: { - constraints: { - MaxLength: 160, - MinLength: 1 + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + }, + clientId: { + serializedName: "properties.clientId", + xmlName: "properties.clientId", + type: { + name: "String", + }, + }, + clientSecret: { + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ResolverContract: coreClient.CompositeMapper = { - serializedName: "ResolverContract", +export const BackendContract: coreClient.CompositeMapper = { + serializedName: "BackendContract", type: { name: "Composite", - className: "ResolverContract", + className: "BackendContract", modelProperties: { ...ProxyResource.type.modelProperties, - displayName: { + title: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "properties.title", + xmlName: "properties.title", type: { - name: "String" - } - }, - path: { - constraints: { - MaxLength: 300, - MinLength: 1 + name: "String", }, - serializedName: "properties.path", - xmlName: "properties.path", - type: { - name: "String" - } }, description: { constraints: { - MaxLength: 1000 + MaxLength: 2000, + MinLength: 1, }, serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } - } - } - } -}; - -export const ProductContract: coreClient.CompositeMapper = { - serializedName: "ProductContract", - type: { - name: "Composite", - className: "ProductContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - description: { + name: "String", + }, + }, + resourceId: { constraints: { - MaxLength: 1000 + MaxLength: 2000, + MinLength: 1, }, - serializedName: "properties.description", - xmlName: "properties.description", + serializedName: "properties.resourceId", + xmlName: "properties.resourceId", type: { - name: "String" - } + name: "String", + }, }, - terms: { - serializedName: "properties.terms", - xmlName: "properties.terms", + properties: { + serializedName: "properties.properties", + xmlName: "properties.properties", + type: { + name: "Composite", + className: "BackendProperties", + }, + }, + credentials: { + serializedName: "properties.credentials", + xmlName: "properties.credentials", type: { - name: "String" - } + name: "Composite", + className: "BackendCredentialsContract", + }, }, - subscriptionRequired: { - serializedName: "properties.subscriptionRequired", - xmlName: "properties.subscriptionRequired", + proxy: { + serializedName: "properties.proxy", + xmlName: "properties.proxy", type: { - name: "Boolean" - } + name: "Composite", + className: "BackendProxyContract", + }, }, - approvalRequired: { - serializedName: "properties.approvalRequired", - xmlName: "properties.approvalRequired", + tls: { + serializedName: "properties.tls", + xmlName: "properties.tls", type: { - name: "Boolean" - } + name: "Composite", + className: "BackendTlsProperties", + }, }, - subscriptionsLimit: { - serializedName: "properties.subscriptionsLimit", - xmlName: "properties.subscriptionsLimit", + circuitBreaker: { + serializedName: "properties.circuitBreaker", + xmlName: "properties.circuitBreaker", type: { - name: "Number" - } + name: "Composite", + className: "BackendCircuitBreaker", + }, }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", + pool: { + serializedName: "properties.pool", + xmlName: "properties.pool", type: { - name: "Enum", - allowedValues: ["notPublished", "published"] - } + name: "Composite", + className: "BackendBaseParametersPool", + }, }, - displayName: { + typePropertiesType: { + serializedName: "properties.type", + xmlName: "properties.type", + type: { + name: "String", + }, + }, + url: { constraints: { - MaxLength: 300, - MinLength: 1 + MaxLength: 2000, + MinLength: 1, }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "properties.url", + xmlName: "properties.url", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + protocol: { + serializedName: "properties.protocol", + xmlName: "properties.protocol", + type: { + name: "String", + }, + }, + }, + }, }; -export const SchemaContract: coreClient.CompositeMapper = { - serializedName: "SchemaContract", +export const BackendReconnectContract: coreClient.CompositeMapper = { + serializedName: "BackendReconnectContract", type: { name: "Composite", - className: "SchemaContract", + className: "BackendReconnectContract", modelProperties: { ...ProxyResource.type.modelProperties, - contentType: { - serializedName: "properties.contentType", - xmlName: "properties.contentType", - type: { - name: "String" - } - }, - value: { - serializedName: "properties.document.value", - xmlName: "properties.document.value", - type: { - name: "String" - } - }, - definitions: { - serializedName: "properties.document.definitions", - xmlName: "properties.document.definitions", + after: { + serializedName: "properties.after", + xmlName: "properties.after", type: { - name: "Dictionary", - value: { type: { name: "any" } } - } + name: "TimeSpan", + }, }, - components: { - serializedName: "properties.document.components", - xmlName: "properties.document.components", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + }, + }, }; -export const DiagnosticContract: coreClient.CompositeMapper = { - serializedName: "DiagnosticContract", +export const CacheContract: coreClient.CompositeMapper = { + serializedName: "CacheContract", type: { name: "Composite", - className: "DiagnosticContract", + className: "CacheContract", modelProperties: { ...ProxyResource.type.modelProperties, - alwaysLog: { - serializedName: "properties.alwaysLog", - xmlName: "properties.alwaysLog", - type: { - name: "String" - } - }, - loggerId: { - serializedName: "properties.loggerId", - xmlName: "properties.loggerId", - type: { - name: "String" - } - }, - sampling: { - serializedName: "properties.sampling", - xmlName: "properties.sampling", - type: { - name: "Composite", - className: "SamplingSettings" - } - }, - frontend: { - serializedName: "properties.frontend", - xmlName: "properties.frontend", - type: { - name: "Composite", - className: "PipelineDiagnosticSettings" - } - }, - backend: { - serializedName: "properties.backend", - xmlName: "properties.backend", - type: { - name: "Composite", - className: "PipelineDiagnosticSettings" - } - }, - logClientIp: { - serializedName: "properties.logClientIp", - xmlName: "properties.logClientIp", + description: { + constraints: { + MaxLength: 2000, + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Boolean" - } + name: "String", + }, }, - httpCorrelationProtocol: { - serializedName: "properties.httpCorrelationProtocol", - xmlName: "properties.httpCorrelationProtocol", + connectionString: { + constraints: { + MaxLength: 300, + }, + serializedName: "properties.connectionString", + xmlName: "properties.connectionString", type: { - name: "String" - } + name: "String", + }, }, - verbosity: { - serializedName: "properties.verbosity", - xmlName: "properties.verbosity", + useFromLocation: { + constraints: { + MaxLength: 256, + }, + serializedName: "properties.useFromLocation", + xmlName: "properties.useFromLocation", type: { - name: "String" - } + name: "String", + }, }, - operationNameFormat: { - serializedName: "properties.operationNameFormat", - xmlName: "properties.operationNameFormat", + resourceId: { + constraints: { + MaxLength: 2000, + }, + serializedName: "properties.resourceId", + xmlName: "properties.resourceId", type: { - name: "String" - } + name: "String", + }, }, - metrics: { - serializedName: "properties.metrics", - xmlName: "properties.metrics", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; -export const IssueContract: coreClient.CompositeMapper = { - serializedName: "IssueContract", +export const CertificateContract: coreClient.CompositeMapper = { + serializedName: "CertificateContract", type: { name: "Composite", - className: "IssueContract", + className: "CertificateContract", modelProperties: { ...ProxyResource.type.modelProperties, - createdDate: { - serializedName: "properties.createdDate", - xmlName: "properties.createdDate", - type: { - name: "DateTime" - } - }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", + subject: { + serializedName: "properties.subject", + xmlName: "properties.subject", type: { - name: "String" - } + name: "String", + }, }, - apiId: { - serializedName: "properties.apiId", - xmlName: "properties.apiId", + thumbprint: { + serializedName: "properties.thumbprint", + xmlName: "properties.thumbprint", type: { - name: "String" - } + name: "String", + }, }, - title: { - serializedName: "properties.title", - xmlName: "properties.title", + expirationDate: { + serializedName: "properties.expirationDate", + xmlName: "properties.expirationDate", type: { - name: "String" - } + name: "DateTime", + }, }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + keyVault: { + serializedName: "properties.keyVault", + xmlName: "properties.keyVault", type: { - name: "String" - } + name: "Composite", + className: "KeyVaultContractProperties", + }, }, - userId: { - serializedName: "properties.userId", - xmlName: "properties.userId", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const IssueCommentContract: coreClient.CompositeMapper = { - serializedName: "IssueCommentContract", +export const ContentTypeContract: coreClient.CompositeMapper = { + serializedName: "ContentTypeContract", type: { name: "Composite", - className: "IssueCommentContract", + className: "ContentTypeContract", modelProperties: { ...ProxyResource.type.modelProperties, - text: { - serializedName: "properties.text", - xmlName: "properties.text", + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", type: { - name: "String" - } + name: "String", + }, }, - createdDate: { - serializedName: "properties.createdDate", - xmlName: "properties.createdDate", + namePropertiesName: { + serializedName: "properties.name", + xmlName: "properties.name", type: { - name: "DateTime" - } + name: "String", + }, }, - userId: { - serializedName: "properties.userId", - xmlName: "properties.userId", + description: { + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String", + }, + }, + schema: { + serializedName: "properties.schema", + xmlName: "properties.schema", + type: { + name: "Dictionary", + value: { type: { name: "any" } }, + }, + }, + version: { + serializedName: "properties.version", + xmlName: "properties.version", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IssueAttachmentContract: coreClient.CompositeMapper = { - serializedName: "IssueAttachmentContract", +export const ContentItemContract: coreClient.CompositeMapper = { + serializedName: "ContentItemContract", type: { name: "Composite", - className: "IssueAttachmentContract", + className: "ContentItemContract", modelProperties: { ...ProxyResource.type.modelProperties, - title: { - serializedName: "properties.title", - xmlName: "properties.title", - type: { - name: "String" - } - }, - contentFormat: { - serializedName: "properties.contentFormat", - xmlName: "properties.contentFormat", + properties: { + serializedName: "properties", + xmlName: "properties", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "any" } }, + }, }, - content: { - serializedName: "properties.content", - xmlName: "properties.content", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const TagDescriptionContract: coreClient.CompositeMapper = { - serializedName: "TagDescriptionContract", +export const DeletedServiceContract: coreClient.CompositeMapper = { + serializedName: "DeletedServiceContract", type: { name: "Composite", - className: "TagDescriptionContract", + className: "DeletedServiceContract", modelProperties: { ...ProxyResource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + location: { + serializedName: "location", + readOnly: true, + xmlName: "location", type: { - name: "String" - } - }, - externalDocsUrl: { - constraints: { - MaxLength: 2000 + name: "String", }, - serializedName: "properties.externalDocsUrl", - xmlName: "properties.externalDocsUrl", - type: { - name: "String" - } }, - externalDocsDescription: { - serializedName: "properties.externalDocsDescription", - xmlName: "properties.externalDocsDescription", + serviceId: { + serializedName: "properties.serviceId", + xmlName: "properties.serviceId", type: { - name: "String" - } + name: "String", + }, }, - tagId: { - serializedName: "properties.tagId", - xmlName: "properties.tagId", + scheduledPurgeDate: { + serializedName: "properties.scheduledPurgeDate", + xmlName: "properties.scheduledPurgeDate", type: { - name: "String" - } - }, - displayName: { - constraints: { - MaxLength: 160, - MinLength: 1 + name: "DateTime", }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + }, + deletionDate: { + serializedName: "properties.deletionDate", + xmlName: "properties.deletionDate", type: { - name: "String" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; -export const WikiContract: coreClient.CompositeMapper = { - serializedName: "WikiContract", +export const DocumentationContract: coreClient.CompositeMapper = { + serializedName: "DocumentationContract", type: { name: "Composite", - className: "WikiContract", + className: "DocumentationContract", modelProperties: { ...ProxyResource.type.modelProperties, - documents: { - serializedName: "properties.documents", - xmlName: "properties.documents", - xmlElementName: "WikiDocumentationContract", + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WikiDocumentationContract" - } - } - } - } - } - } + name: "String", + }, + }, + content: { + serializedName: "properties.content", + xmlName: "properties.content", + type: { + name: "String", + }, + }, + }, + }, }; -export const ApiVersionSetContract: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetContract", +export const EmailTemplateContract: coreClient.CompositeMapper = { + serializedName: "EmailTemplateContract", type: { name: "Composite", - className: "ApiVersionSetContract", + className: "EmailTemplateContract", modelProperties: { ...ProxyResource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", - type: { - name: "String" - } - }, - versionQueryName: { + subject: { constraints: { - MaxLength: 100, - MinLength: 1 + MaxLength: 1000, + MinLength: 1, }, - serializedName: "properties.versionQueryName", - xmlName: "properties.versionQueryName", + serializedName: "properties.subject", + xmlName: "properties.subject", type: { - name: "String" - } - }, - versionHeaderName: { - constraints: { - MaxLength: 100, - MinLength: 1 + name: "String", }, - serializedName: "properties.versionHeaderName", - xmlName: "properties.versionHeaderName", - type: { - name: "String" - } }, - displayName: { + body: { constraints: { - MaxLength: 100, - MinLength: 1 + MinLength: 1, }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "properties.body", + xmlName: "properties.body", type: { - name: "String" - } + name: "String", + }, }, - versioningScheme: { - serializedName: "properties.versioningScheme", - xmlName: "properties.versioningScheme", + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { - name: "String" - } - } - } - } -}; - -export const AuthorizationServerContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerContract", - type: { - name: "Composite", - className: "AuthorizationServerContract", - modelProperties: { - ...ProxyResource.type.modelProperties, + name: "String", + }, + }, description: { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } - }, - authorizationMethods: { - serializedName: "properties.authorizationMethods", - xmlName: "properties.authorizationMethods", - xmlElementName: "AuthorizationMethod", - type: { - name: "Sequence", - element: { - type: { - name: "Enum", - allowedValues: [ - "HEAD", - "OPTIONS", - "TRACE", - "GET", - "POST", - "PUT", - "PATCH", - "DELETE" - ] - } - } - } + name: "String", + }, }, - clientAuthenticationMethod: { - serializedName: "properties.clientAuthenticationMethod", - xmlName: "properties.clientAuthenticationMethod", - xmlElementName: "ClientAuthenticationMethod", + isDefault: { + serializedName: "properties.isDefault", + readOnly: true, + xmlName: "properties.isDefault", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Boolean", + }, }, - tokenBodyParameters: { - serializedName: "properties.tokenBodyParameters", - xmlName: "properties.tokenBodyParameters", - xmlElementName: "TokenBodyParameterContract", + parameters: { + serializedName: "properties.parameters", + xmlName: "properties.parameters", + xmlElementName: "EmailTemplateParametersContractProperties", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TokenBodyParameterContract" - } - } - } - }, - tokenEndpoint: { - serializedName: "properties.tokenEndpoint", - xmlName: "properties.tokenEndpoint", - type: { - name: "String" - } + className: "EmailTemplateParametersContractProperties", + }, + }, + }, }, - supportState: { - serializedName: "properties.supportState", - xmlName: "properties.supportState", + }, + }, +}; + +export const GatewayContract: coreClient.CompositeMapper = { + serializedName: "GatewayContract", + type: { + name: "Composite", + className: "GatewayContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + locationData: { + serializedName: "properties.locationData", + xmlName: "properties.locationData", type: { - name: "Boolean" - } + name: "Composite", + className: "ResourceLocationDataContract", + }, }, - defaultScope: { - serializedName: "properties.defaultScope", - xmlName: "properties.defaultScope", + description: { + constraints: { + MaxLength: 1000, + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - bearerTokenSendingMethods: { - serializedName: "properties.bearerTokenSendingMethods", - xmlName: "properties.bearerTokenSendingMethods", - xmlElementName: "BearerTokenSendingMethod", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + }, + }, +}; + +export const GatewayHostnameConfigurationContract: coreClient.CompositeMapper = + { + serializedName: "GatewayHostnameConfigurationContract", + type: { + name: "Composite", + className: "GatewayHostnameConfigurationContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + hostname: { + serializedName: "properties.hostname", + xmlName: "properties.hostname", + type: { + name: "String", + }, + }, + certificateId: { + serializedName: "properties.certificateId", + xmlName: "properties.certificateId", + type: { + name: "String", + }, + }, + negotiateClientCertificate: { + serializedName: "properties.negotiateClientCertificate", + xmlName: "properties.negotiateClientCertificate", + type: { + name: "Boolean", + }, + }, + tls10Enabled: { + serializedName: "properties.tls10Enabled", + xmlName: "properties.tls10Enabled", + type: { + name: "Boolean", + }, + }, + tls11Enabled: { + serializedName: "properties.tls11Enabled", + xmlName: "properties.tls11Enabled", + type: { + name: "Boolean", + }, + }, + http2Enabled: { + serializedName: "properties.http2Enabled", + xmlName: "properties.http2Enabled", + type: { + name: "Boolean", + }, + }, }, - resourceOwnerUsername: { - serializedName: "properties.resourceOwnerUsername", - xmlName: "properties.resourceOwnerUsername", + }, + }; + +export const AssociationContract: coreClient.CompositeMapper = { + serializedName: "AssociationContract", + type: { + name: "Composite", + className: "AssociationContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + defaultValue: "created", + isConstant: true, + serializedName: "properties.provisioningState", type: { - name: "String" - } + name: "String", + }, }, - resourceOwnerPassword: { - serializedName: "properties.resourceOwnerPassword", - xmlName: "properties.resourceOwnerPassword", + }, + }, +}; + +export const GatewayCertificateAuthorityContract: coreClient.CompositeMapper = { + serializedName: "GatewayCertificateAuthorityContract", + type: { + name: "Composite", + className: "GatewayCertificateAuthorityContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + isTrusted: { + serializedName: "properties.isTrusted", + xmlName: "properties.isTrusted", type: { - name: "String" - } + name: "Boolean", + }, }, + }, + }, +}; + +export const GroupContract: coreClient.CompositeMapper = { + serializedName: "GroupContract", + type: { + name: "Composite", + className: "GroupContract", + modelProperties: { + ...ProxyResource.type.modelProperties, displayName: { constraints: { - MaxLength: 50, - MinLength: 1 + MaxLength: 300, + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } - }, - useInTestConsole: { - serializedName: "properties.useInTestConsole", - xmlName: "properties.useInTestConsole", - type: { - name: "Boolean" - } - }, - useInApiDocumentation: { - serializedName: "properties.useInApiDocumentation", - xmlName: "properties.useInApiDocumentation", - type: { - name: "Boolean" - } + name: "String", + }, }, - clientRegistrationEndpoint: { - serializedName: "properties.clientRegistrationEndpoint", - xmlName: "properties.clientRegistrationEndpoint", + description: { + constraints: { + MaxLength: 1000, + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - authorizationEndpoint: { - serializedName: "properties.authorizationEndpoint", - xmlName: "properties.authorizationEndpoint", + builtIn: { + serializedName: "properties.builtIn", + readOnly: true, + xmlName: "properties.builtIn", type: { - name: "String" - } + name: "Boolean", + }, }, - grantTypes: { - serializedName: "properties.grantTypes", - xmlName: "properties.grantTypes", - xmlElementName: "GrantType", + typePropertiesType: { + serializedName: "properties.type", + xmlName: "properties.type", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Enum", + allowedValues: ["custom", "system", "external"], + }, }, - clientId: { - serializedName: "properties.clientId", - xmlName: "properties.clientId", + externalId: { + serializedName: "properties.externalId", + xmlName: "properties.externalId", type: { - name: "String" - } + name: "String", + }, }, - clientSecret: { - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const AuthorizationServerUpdateContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerUpdateContract", +export const UserContract: coreClient.CompositeMapper = { + serializedName: "UserContract", type: { name: "Composite", - className: "AuthorizationServerUpdateContract", + className: "UserContract", modelProperties: { ...ProxyResource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + state: { + defaultValue: "active", + serializedName: "properties.state", + xmlName: "properties.state", type: { - name: "String" - } + name: "String", + }, }, - authorizationMethods: { - serializedName: "properties.authorizationMethods", - xmlName: "properties.authorizationMethods", - xmlElementName: "AuthorizationMethod", + note: { + serializedName: "properties.note", + xmlName: "properties.note", type: { - name: "Sequence", - element: { - type: { - name: "Enum", - allowedValues: [ - "HEAD", - "OPTIONS", - "TRACE", - "GET", - "POST", - "PUT", - "PATCH", - "DELETE" - ] - } - } - } + name: "String", + }, }, - clientAuthenticationMethod: { - serializedName: "properties.clientAuthenticationMethod", - xmlName: "properties.clientAuthenticationMethod", - xmlElementName: "ClientAuthenticationMethod", + identities: { + serializedName: "properties.identities", + xmlName: "properties.identities", + xmlElementName: "UserIdentityContract", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "Composite", + className: "UserIdentityContract", + }, + }, + }, }, - tokenBodyParameters: { - serializedName: "properties.tokenBodyParameters", - xmlName: "properties.tokenBodyParameters", - xmlElementName: "TokenBodyParameterContract", + firstName: { + serializedName: "properties.firstName", + xmlName: "properties.firstName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TokenBodyParameterContract" - } - } - } + name: "String", + }, }, - tokenEndpoint: { - serializedName: "properties.tokenEndpoint", - xmlName: "properties.tokenEndpoint", + lastName: { + serializedName: "properties.lastName", + xmlName: "properties.lastName", type: { - name: "String" - } + name: "String", + }, }, - supportState: { - serializedName: "properties.supportState", - xmlName: "properties.supportState", + email: { + serializedName: "properties.email", + xmlName: "properties.email", type: { - name: "Boolean" - } + name: "String", + }, }, - defaultScope: { - serializedName: "properties.defaultScope", - xmlName: "properties.defaultScope", + registrationDate: { + serializedName: "properties.registrationDate", + xmlName: "properties.registrationDate", type: { - name: "String" - } + name: "DateTime", + }, }, - bearerTokenSendingMethods: { - serializedName: "properties.bearerTokenSendingMethods", - xmlName: "properties.bearerTokenSendingMethods", - xmlElementName: "BearerTokenSendingMethod", + groups: { + serializedName: "properties.groups", + readOnly: true, + xmlName: "properties.groups", + xmlElementName: "GroupContractProperties", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "Composite", + className: "GroupContractProperties", + }, + }, + }, }, - resourceOwnerUsername: { - serializedName: "properties.resourceOwnerUsername", - xmlName: "properties.resourceOwnerUsername", + }, + }, +}; + +export const IdentityProviderContract: coreClient.CompositeMapper = { + serializedName: "IdentityProviderContract", + type: { + name: "Composite", + className: "IdentityProviderContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + typePropertiesType: { + serializedName: "properties.type", + xmlName: "properties.type", type: { - name: "String" - } + name: "String", + }, }, - resourceOwnerPassword: { - serializedName: "properties.resourceOwnerPassword", - xmlName: "properties.resourceOwnerPassword", + signinTenant: { + serializedName: "properties.signinTenant", + xmlName: "properties.signinTenant", type: { - name: "String" - } + name: "String", + }, }, - displayName: { + allowedTenants: { constraints: { - MaxLength: 50, - MinLength: 1 + MaxItems: 32, }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "properties.allowedTenants", + xmlName: "properties.allowedTenants", + xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - useInTestConsole: { - serializedName: "properties.useInTestConsole", - xmlName: "properties.useInTestConsole", + authority: { + serializedName: "properties.authority", + xmlName: "properties.authority", + type: { + name: "String", + }, + }, + signupPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.signupPolicyName", + xmlName: "properties.signupPolicyName", type: { - name: "Boolean" - } + name: "String", + }, }, - useInApiDocumentation: { - serializedName: "properties.useInApiDocumentation", - xmlName: "properties.useInApiDocumentation", + signinPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.signinPolicyName", + xmlName: "properties.signinPolicyName", type: { - name: "Boolean" - } + name: "String", + }, }, - clientRegistrationEndpoint: { - serializedName: "properties.clientRegistrationEndpoint", - xmlName: "properties.clientRegistrationEndpoint", + profileEditingPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.profileEditingPolicyName", + xmlName: "properties.profileEditingPolicyName", type: { - name: "String" - } + name: "String", + }, }, - authorizationEndpoint: { - serializedName: "properties.authorizationEndpoint", - xmlName: "properties.authorizationEndpoint", + passwordResetPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.passwordResetPolicyName", + xmlName: "properties.passwordResetPolicyName", type: { - name: "String" - } + name: "String", + }, }, - grantTypes: { - serializedName: "properties.grantTypes", - xmlName: "properties.grantTypes", - xmlElementName: "GrantType", + clientLibrary: { + constraints: { + MaxLength: 16, + }, + serializedName: "properties.clientLibrary", + xmlName: "properties.clientLibrary", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, clientId: { + constraints: { + MinLength: 1, + }, serializedName: "properties.clientId", xmlName: "properties.clientId", type: { - name: "String" - } + name: "String", + }, }, clientSecret: { + constraints: { + MinLength: 1, + }, serializedName: "properties.clientSecret", xmlName: "properties.clientSecret", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationProviderContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationProviderContract", +export const IdentityProviderCreateContract: coreClient.CompositeMapper = { + serializedName: "IdentityProviderCreateContract", type: { name: "Composite", - className: "AuthorizationProviderContract", + className: "IdentityProviderCreateContract", modelProperties: { ...ProxyResource.type.modelProperties, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 + typePropertiesType: { + serializedName: "properties.type", + xmlName: "properties.type", + type: { + name: "String", }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + }, + signinTenant: { + serializedName: "properties.signinTenant", + xmlName: "properties.signinTenant", type: { - name: "String" - } + name: "String", + }, }, - identityProvider: { - serializedName: "properties.identityProvider", - xmlName: "properties.identityProvider", + allowedTenants: { + constraints: { + MaxItems: 32, + }, + serializedName: "properties.allowedTenants", + xmlName: "properties.allowedTenants", + xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - oauth2: { - serializedName: "properties.oauth2", - xmlName: "properties.oauth2", + authority: { + serializedName: "properties.authority", + xmlName: "properties.authority", type: { - name: "Composite", - className: "AuthorizationProviderOAuth2Settings" - } - } - } - } -}; - -export const AuthorizationContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationContract", - type: { - name: "Composite", - className: "AuthorizationContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - authorizationType: { - serializedName: "properties.authorizationType", - xmlName: "properties.authorizationType", + name: "String", + }, + }, + signupPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.signupPolicyName", + xmlName: "properties.signupPolicyName", type: { - name: "String" - } + name: "String", + }, }, - oAuth2GrantType: { - serializedName: "properties.oauth2grantType", - xmlName: "properties.oauth2grantType", + signinPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.signinPolicyName", + xmlName: "properties.signinPolicyName", type: { - name: "String" - } + name: "String", + }, }, - parameters: { - serializedName: "properties.parameters", - xmlName: "properties.parameters", + profileEditingPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.profileEditingPolicyName", + xmlName: "properties.profileEditingPolicyName", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, - error: { - serializedName: "properties.error", - xmlName: "properties.error", + passwordResetPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.passwordResetPolicyName", + xmlName: "properties.passwordResetPolicyName", type: { - name: "Composite", - className: "AuthorizationError" - } + name: "String", + }, }, - status: { - serializedName: "properties.status", - xmlName: "properties.status", + clientLibrary: { + constraints: { + MaxLength: 16, + }, + serializedName: "properties.clientLibrary", + xmlName: "properties.clientLibrary", type: { - name: "String" - } - } - } - } -}; - -export const AuthorizationAccessPolicyContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationAccessPolicyContract", - type: { - name: "Composite", - className: "AuthorizationAccessPolicyContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - tenantId: { - serializedName: "properties.tenantId", - xmlName: "properties.tenantId", + name: "String", + }, + }, + clientId: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { - name: "String" - } + name: "String", + }, }, - objectId: { - serializedName: "properties.objectId", - xmlName: "properties.objectId", + clientSecret: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const BackendContract: coreClient.CompositeMapper = { - serializedName: "BackendContract", +export const LoggerContract: coreClient.CompositeMapper = { + serializedName: "LoggerContract", type: { name: "Composite", - className: "BackendContract", + className: "LoggerContract", modelProperties: { ...ProxyResource.type.modelProperties, - title: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "properties.title", - xmlName: "properties.title", + loggerType: { + serializedName: "properties.loggerType", + xmlName: "properties.loggerType", type: { - name: "String" - } + name: "String", + }, }, description: { constraints: { - MaxLength: 2000, - MinLength: 1 + MaxLength: 256, }, serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } - }, - resourceId: { - constraints: { - MaxLength: 2000, - MinLength: 1 + name: "String", }, - serializedName: "properties.resourceId", - xmlName: "properties.resourceId", - type: { - name: "String" - } - }, - properties: { - serializedName: "properties.properties", - xmlName: "properties.properties", - type: { - name: "Composite", - className: "BackendProperties" - } }, credentials: { serializedName: "properties.credentials", xmlName: "properties.credentials", type: { - name: "Composite", - className: "BackendCredentialsContract" - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - proxy: { - serializedName: "properties.proxy", - xmlName: "properties.proxy", + isBuffered: { + serializedName: "properties.isBuffered", + xmlName: "properties.isBuffered", type: { - name: "Composite", - className: "BackendProxyContract" - } + name: "Boolean", + }, }, - tls: { - serializedName: "properties.tls", - xmlName: "properties.tls", + resourceId: { + serializedName: "properties.resourceId", + xmlName: "properties.resourceId", type: { - name: "Composite", - className: "BackendTlsProperties" - } - }, - url: { - constraints: { - MaxLength: 2000, - MinLength: 1 + name: "String", }, - serializedName: "properties.url", - xmlName: "properties.url", - type: { - name: "String" - } }, - protocol: { - serializedName: "properties.protocol", - xmlName: "properties.protocol", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const BackendReconnectContract: coreClient.CompositeMapper = { - serializedName: "BackendReconnectContract", - type: { - name: "Composite", - className: "BackendReconnectContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - after: { - serializedName: "properties.after", - xmlName: "properties.after", - type: { - name: "TimeSpan" - } - } - } - } -}; - -export const CacheContract: coreClient.CompositeMapper = { - serializedName: "CacheContract", +export const NamedValueContract: coreClient.CompositeMapper = { + serializedName: "NamedValueContract", type: { name: "Composite", - className: "CacheContract", + className: "NamedValueContract", modelProperties: { ...ProxyResource.type.modelProperties, - description: { + tags: { constraints: { - MaxLength: 2000 + MaxItems: 32, }, - serializedName: "properties.description", - xmlName: "properties.description", + serializedName: "properties.tags", + xmlName: "properties.tags", + xmlElementName: "NamedValueEntityBaseParametersTagsItem", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - connectionString: { + secret: { + serializedName: "properties.secret", + xmlName: "properties.secret", + type: { + name: "Boolean", + }, + }, + displayName: { constraints: { - MaxLength: 300 + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1, }, - serializedName: "properties.connectionString", - xmlName: "properties.connectionString", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - useFromLocation: { + value: { constraints: { - MaxLength: 256 + MaxLength: 4096, }, - serializedName: "properties.useFromLocation", - xmlName: "properties.useFromLocation", + serializedName: "properties.value", + xmlName: "properties.value", type: { - name: "String" - } + name: "String", + }, }, - resourceId: { - constraints: { - MaxLength: 2000 + keyVault: { + serializedName: "properties.keyVault", + xmlName: "properties.keyVault", + type: { + name: "Composite", + className: "KeyVaultContractProperties", }, - serializedName: "properties.resourceId", - xmlName: "properties.resourceId", + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CertificateContract: coreClient.CompositeMapper = { - serializedName: "CertificateContract", +export const NamedValueCreateContract: coreClient.CompositeMapper = { + serializedName: "NamedValueCreateContract", type: { name: "Composite", - className: "CertificateContract", + className: "NamedValueCreateContract", modelProperties: { ...ProxyResource.type.modelProperties, - subject: { - serializedName: "properties.subject", - xmlName: "properties.subject", + tags: { + constraints: { + MaxItems: 32, + }, + serializedName: "properties.tags", + xmlName: "properties.tags", + xmlElementName: "NamedValueEntityBaseParametersTagsItem", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - thumbprint: { - serializedName: "properties.thumbprint", - xmlName: "properties.thumbprint", + secret: { + serializedName: "properties.secret", + xmlName: "properties.secret", type: { - name: "String" - } + name: "Boolean", + }, }, - expirationDate: { - serializedName: "properties.expirationDate", - xmlName: "properties.expirationDate", + displayName: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String", + }, + }, + value: { + constraints: { + MaxLength: 4096, + }, + serializedName: "properties.value", + xmlName: "properties.value", type: { - name: "DateTime" - } + name: "String", + }, }, keyVault: { serializedName: "properties.keyVault", xmlName: "properties.keyVault", type: { name: "Composite", - className: "KeyVaultContractProperties" - } - } - } - } + className: "KeyVaultContractCreateProperties", + }, + }, + }, + }, }; -export const ContentTypeContract: coreClient.CompositeMapper = { - serializedName: "ContentTypeContract", +export const NotificationContract: coreClient.CompositeMapper = { + serializedName: "NotificationContract", type: { name: "Composite", - className: "ContentTypeContract", + className: "NotificationContract", modelProperties: { ...ProxyResource.type.modelProperties, - idPropertiesId: { - serializedName: "properties.id", - xmlName: "properties.id", - type: { - name: "String" - } - }, - namePropertiesName: { - serializedName: "properties.name", - xmlName: "properties.name", + title: { + constraints: { + MaxLength: 1000, + MinLength: 1, + }, + serializedName: "properties.title", + xmlName: "properties.title", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - schema: { - serializedName: "properties.schema", - xmlName: "properties.schema", + recipients: { + serializedName: "properties.recipients", + xmlName: "properties.recipients", type: { - name: "Dictionary", - value: { type: { name: "any" } } - } + name: "Composite", + className: "RecipientsContractProperties", + }, }, - version: { - serializedName: "properties.version", - xmlName: "properties.version", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ContentItemContract: coreClient.CompositeMapper = { - serializedName: "ContentItemContract", +export const RecipientUserContract: coreClient.CompositeMapper = { + serializedName: "RecipientUserContract", type: { name: "Composite", - className: "ContentItemContract", + className: "RecipientUserContract", modelProperties: { ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - xmlName: "properties", + userId: { + serializedName: "properties.userId", + xmlName: "properties.userId", type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DeletedServiceContract: coreClient.CompositeMapper = { - serializedName: "DeletedServiceContract", +export const RecipientEmailContract: coreClient.CompositeMapper = { + serializedName: "RecipientEmailContract", type: { name: "Composite", - className: "DeletedServiceContract", + className: "RecipientEmailContract", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, - xmlName: "location", - type: { - name: "String" - } - }, - serviceId: { - serializedName: "properties.serviceId", - xmlName: "properties.serviceId", - type: { - name: "String" - } - }, - scheduledPurgeDate: { - serializedName: "properties.scheduledPurgeDate", - xmlName: "properties.scheduledPurgeDate", + email: { + serializedName: "properties.email", + xmlName: "properties.email", type: { - name: "DateTime" - } + name: "String", + }, }, - deletionDate: { - serializedName: "properties.deletionDate", - xmlName: "properties.deletionDate", - type: { - name: "DateTime" - } - } - } - } + }, + }, }; -export const EmailTemplateContract: coreClient.CompositeMapper = { - serializedName: "EmailTemplateContract", +export const OpenidConnectProviderContract: coreClient.CompositeMapper = { + serializedName: "OpenidConnectProviderContract", type: { name: "Composite", - className: "EmailTemplateContract", + className: "OpenidConnectProviderContract", modelProperties: { ...ProxyResource.type.modelProperties, - subject: { + displayName: { constraints: { - MaxLength: 1000, - MinLength: 1 + MaxLength: 50, }, - serializedName: "properties.subject", - xmlName: "properties.subject", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - body: { - constraints: { - MinLength: 1 + description: { + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String", }, - serializedName: "properties.body", - xmlName: "properties.body", + }, + metadataEndpoint: { + serializedName: "properties.metadataEndpoint", + xmlName: "properties.metadataEndpoint", type: { - name: "String" - } + name: "String", + }, }, - title: { - serializedName: "properties.title", - xmlName: "properties.title", + clientId: { + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { - name: "String" - } + name: "String", + }, }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + clientSecret: { + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { - name: "String" - } + name: "String", + }, }, - isDefault: { - serializedName: "properties.isDefault", - readOnly: true, - xmlName: "properties.isDefault", + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", type: { - name: "Boolean" - } + name: "Boolean", + }, }, - parameters: { - serializedName: "properties.parameters", - xmlName: "properties.parameters", - xmlElementName: "EmailTemplateParametersContractProperties", + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EmailTemplateParametersContractProperties" - } - } - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; -export const GatewayContract: coreClient.CompositeMapper = { - serializedName: "GatewayContract", +export const PolicyDescriptionContract: coreClient.CompositeMapper = { + serializedName: "PolicyDescriptionContract", type: { name: "Composite", - className: "GatewayContract", + className: "PolicyDescriptionContract", modelProperties: { ...ProxyResource.type.modelProperties, - locationData: { - serializedName: "properties.locationData", - xmlName: "properties.locationData", - type: { - name: "Composite", - className: "ResourceLocationDataContract" - } - }, description: { - constraints: { - MaxLength: 1000 - }, serializedName: "properties.description", + readOnly: true, xmlName: "properties.description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + scope: { + serializedName: "properties.scope", + readOnly: true, + xmlName: "properties.scope", + type: { + name: "Number", + }, + }, + }, + }, }; -export const GatewayHostnameConfigurationContract: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfigurationContract", +export const PolicyFragmentContract: coreClient.CompositeMapper = { + serializedName: "PolicyFragmentContract", type: { name: "Composite", - className: "GatewayHostnameConfigurationContract", + className: "PolicyFragmentContract", modelProperties: { ...ProxyResource.type.modelProperties, - hostname: { - serializedName: "properties.hostname", - xmlName: "properties.hostname", - type: { - name: "String" - } - }, - certificateId: { - serializedName: "properties.certificateId", - xmlName: "properties.certificateId", - type: { - name: "String" - } - }, - negotiateClientCertificate: { - serializedName: "properties.negotiateClientCertificate", - xmlName: "properties.negotiateClientCertificate", + value: { + serializedName: "properties.value", + xmlName: "properties.value", type: { - name: "Boolean" - } + name: "String", + }, }, - tls10Enabled: { - serializedName: "properties.tls10Enabled", - xmlName: "properties.tls10Enabled", + description: { + constraints: { + MaxLength: 1000, + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Boolean" - } + name: "String", + }, }, - tls11Enabled: { - serializedName: "properties.tls11Enabled", - xmlName: "properties.tls11Enabled", + format: { + serializedName: "properties.format", + xmlName: "properties.format", type: { - name: "Boolean" - } + name: "String", + }, }, - http2Enabled: { - serializedName: "properties.http2Enabled", - xmlName: "properties.http2Enabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const AssociationContract: coreClient.CompositeMapper = { - serializedName: "AssociationContract", - type: { - name: "Composite", - className: "AssociationContract", - modelProperties: { - ...ProxyResource.type.modelProperties, provisioningState: { - defaultValue: "created", - isConstant: true, serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayCertificateAuthorityContract: coreClient.CompositeMapper = { - serializedName: "GatewayCertificateAuthorityContract", +export const ResourceCollectionValueItem: coreClient.CompositeMapper = { + serializedName: "ResourceCollectionValueItem", type: { name: "Composite", - className: "GatewayCertificateAuthorityContract", + className: "ResourceCollectionValueItem", modelProperties: { ...ProxyResource.type.modelProperties, - isTrusted: { - serializedName: "properties.isTrusted", - xmlName: "properties.isTrusted", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; -export const GroupContract: coreClient.CompositeMapper = { - serializedName: "GroupContract", +export const PolicyRestrictionContract: coreClient.CompositeMapper = { + serializedName: "PolicyRestrictionContract", type: { name: "Composite", - className: "GroupContract", + className: "PolicyRestrictionContract", modelProperties: { ...ProxyResource.type.modelProperties, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + scope: { + serializedName: "properties.scope", + xmlName: "properties.scope", type: { - name: "String" - } - }, - description: { - constraints: { - MaxLength: 1000 + name: "String", }, - serializedName: "properties.description", - xmlName: "properties.description", - type: { - name: "String" - } - }, - builtIn: { - serializedName: "properties.builtIn", - readOnly: true, - xmlName: "properties.builtIn", - type: { - name: "Boolean" - } }, - typePropertiesType: { - serializedName: "properties.type", - xmlName: "properties.type", + requireBase: { + defaultValue: "false", + serializedName: "properties.requireBase", + xmlName: "properties.requireBase", type: { - name: "Enum", - allowedValues: ["custom", "system", "external"] - } + name: "String", + }, }, - externalId: { - serializedName: "properties.externalId", - xmlName: "properties.externalId", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const UserContract: coreClient.CompositeMapper = { - serializedName: "UserContract", +export const OperationResultContract: coreClient.CompositeMapper = { + serializedName: "OperationResultContract", type: { name: "Composite", - className: "UserContract", + className: "OperationResultContract", modelProperties: { ...ProxyResource.type.modelProperties, - state: { - defaultValue: "active", - serializedName: "properties.state", - xmlName: "properties.state", - type: { - name: "String" - } - }, - note: { - serializedName: "properties.note", - xmlName: "properties.note", + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", type: { - name: "String" - } + name: "String", + }, }, - identities: { - serializedName: "properties.identities", - xmlName: "properties.identities", - xmlElementName: "UserIdentityContract", + status: { + serializedName: "properties.status", + xmlName: "properties.status", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UserIdentityContract" - } - } - } + name: "Enum", + allowedValues: ["Started", "InProgress", "Succeeded", "Failed"], + }, }, - firstName: { - serializedName: "properties.firstName", - xmlName: "properties.firstName", + started: { + serializedName: "properties.started", + xmlName: "properties.started", type: { - name: "String" - } + name: "DateTime", + }, }, - lastName: { - serializedName: "properties.lastName", - xmlName: "properties.lastName", + updated: { + serializedName: "properties.updated", + xmlName: "properties.updated", type: { - name: "String" - } + name: "DateTime", + }, }, - email: { - serializedName: "properties.email", - xmlName: "properties.email", + resultInfo: { + serializedName: "properties.resultInfo", + xmlName: "properties.resultInfo", type: { - name: "String" - } + name: "String", + }, }, - registrationDate: { - serializedName: "properties.registrationDate", - xmlName: "properties.registrationDate", + error: { + serializedName: "properties.error", + xmlName: "properties.error", type: { - name: "DateTime" - } + name: "Composite", + className: "ErrorResponseBody", + }, }, - groups: { - serializedName: "properties.groups", + actionLog: { + serializedName: "properties.actionLog", readOnly: true, - xmlName: "properties.groups", - xmlElementName: "GroupContractProperties", + xmlName: "properties.actionLog", + xmlElementName: "OperationResultLogItemContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "GroupContractProperties" - } - } - } - } - } - } + className: "OperationResultLogItemContract", + }, + }, + }, + }, + }, + }, }; -export const IdentityProviderContract: coreClient.CompositeMapper = { - serializedName: "IdentityProviderContract", +export const PortalConfigContract: coreClient.CompositeMapper = { + serializedName: "PortalConfigContract", type: { name: "Composite", - className: "IdentityProviderContract", + className: "PortalConfigContract", modelProperties: { ...ProxyResource.type.modelProperties, - typePropertiesType: { - serializedName: "properties.type", - xmlName: "properties.type", + enableBasicAuth: { + defaultValue: true, + serializedName: "properties.enableBasicAuth", + xmlName: "properties.enableBasicAuth", type: { - name: "String" - } + name: "Boolean", + }, }, - signinTenant: { - serializedName: "properties.signinTenant", - xmlName: "properties.signinTenant", + signin: { + serializedName: "properties.signin", + xmlName: "properties.signin", type: { - name: "String" - } - }, - allowedTenants: { - constraints: { - MaxItems: 32 + name: "Composite", + className: "PortalConfigPropertiesSignin", }, - serializedName: "properties.allowedTenants", - xmlName: "properties.allowedTenants", - xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } }, - authority: { - serializedName: "properties.authority", - xmlName: "properties.authority", + signup: { + serializedName: "properties.signup", + xmlName: "properties.signup", type: { - name: "String" - } - }, - signupPolicyName: { - constraints: { - MinLength: 1 + name: "Composite", + className: "PortalConfigPropertiesSignup", }, - serializedName: "properties.signupPolicyName", - xmlName: "properties.signupPolicyName", - type: { - name: "String" - } }, - signinPolicyName: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.signinPolicyName", - xmlName: "properties.signinPolicyName", + delegation: { + serializedName: "properties.delegation", + xmlName: "properties.delegation", type: { - name: "String" - } + name: "Composite", + className: "PortalConfigDelegationProperties", + }, }, - profileEditingPolicyName: { - constraints: { - MinLength: 1 + cors: { + serializedName: "properties.cors", + xmlName: "properties.cors", + type: { + name: "Composite", + className: "PortalConfigCorsProperties", }, - serializedName: "properties.profileEditingPolicyName", - xmlName: "properties.profileEditingPolicyName", + }, + csp: { + serializedName: "properties.csp", + xmlName: "properties.csp", type: { - name: "String" - } + name: "Composite", + className: "PortalConfigCspProperties", + }, }, - passwordResetPolicyName: { + }, + }, +}; + +export const PortalRevisionContract: coreClient.CompositeMapper = { + serializedName: "PortalRevisionContract", + type: { + name: "Composite", + className: "PortalRevisionContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { constraints: { - MinLength: 1 + MaxLength: 2000, }, - serializedName: "properties.passwordResetPolicyName", - xmlName: "properties.passwordResetPolicyName", + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - clientLibrary: { + statusDetails: { constraints: { - MaxLength: 16 + MaxLength: 2000, + }, + serializedName: "properties.statusDetails", + readOnly: true, + xmlName: "properties.statusDetails", + type: { + name: "String", }, - serializedName: "properties.clientLibrary", - xmlName: "properties.clientLibrary", + }, + status: { + serializedName: "properties.status", + readOnly: true, + xmlName: "properties.status", type: { - name: "String" - } + name: "String", + }, }, - clientId: { - constraints: { - MinLength: 1 + isCurrent: { + serializedName: "properties.isCurrent", + xmlName: "properties.isCurrent", + type: { + name: "Boolean", }, - serializedName: "properties.clientId", - xmlName: "properties.clientId", + }, + createdDateTime: { + serializedName: "properties.createdDateTime", + readOnly: true, + xmlName: "properties.createdDateTime", type: { - name: "String" - } + name: "DateTime", + }, }, - clientSecret: { - constraints: { - MinLength: 1 + updatedDateTime: { + serializedName: "properties.updatedDateTime", + readOnly: true, + xmlName: "properties.updatedDateTime", + type: { + name: "DateTime", }, - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderCreateContract: coreClient.CompositeMapper = { - serializedName: "IdentityProviderCreateContract", +export const PortalSettingsContract: coreClient.CompositeMapper = { + serializedName: "PortalSettingsContract", type: { name: "Composite", - className: "IdentityProviderCreateContract", + className: "PortalSettingsContract", modelProperties: { ...ProxyResource.type.modelProperties, - typePropertiesType: { - serializedName: "properties.type", - xmlName: "properties.type", + url: { + serializedName: "properties.url", + xmlName: "properties.url", type: { - name: "String" - } + name: "String", + }, }, - signinTenant: { - serializedName: "properties.signinTenant", - xmlName: "properties.signinTenant", + validationKey: { + serializedName: "properties.validationKey", + xmlName: "properties.validationKey", type: { - name: "String" - } - }, - allowedTenants: { - constraints: { - MaxItems: 32 + name: "String", }, - serializedName: "properties.allowedTenants", - xmlName: "properties.allowedTenants", - xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } }, - authority: { - serializedName: "properties.authority", - xmlName: "properties.authority", + subscriptions: { + serializedName: "properties.subscriptions", + xmlName: "properties.subscriptions", type: { - name: "String" - } - }, - signupPolicyName: { - constraints: { - MinLength: 1 + name: "Composite", + className: "SubscriptionsDelegationSettingsProperties", }, - serializedName: "properties.signupPolicyName", - xmlName: "properties.signupPolicyName", - type: { - name: "String" - } }, - signinPolicyName: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.signinPolicyName", - xmlName: "properties.signinPolicyName", + userRegistration: { + serializedName: "properties.userRegistration", + xmlName: "properties.userRegistration", type: { - name: "String" - } - }, - profileEditingPolicyName: { - constraints: { - MinLength: 1 + name: "Composite", + className: "RegistrationDelegationSettingsProperties", }, - serializedName: "properties.profileEditingPolicyName", - xmlName: "properties.profileEditingPolicyName", - type: { - name: "String" - } }, - passwordResetPolicyName: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.passwordResetPolicyName", - xmlName: "properties.passwordResetPolicyName", + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", type: { - name: "String" - } - }, - clientLibrary: { - constraints: { - MaxLength: 16 + name: "Boolean", }, - serializedName: "properties.clientLibrary", - xmlName: "properties.clientLibrary", - type: { - name: "String" - } }, - clientId: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.clientId", - xmlName: "properties.clientId", + termsOfService: { + serializedName: "properties.termsOfService", + xmlName: "properties.termsOfService", type: { - name: "String" - } - }, - clientSecret: { - constraints: { - MinLength: 1 + name: "Composite", + className: "TermsOfServiceProperties", }, - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + }, + }, + }, +}; + +export const PortalSigninSettings: coreClient.CompositeMapper = { + serializedName: "PortalSigninSettings", + type: { + name: "Composite", + className: "PortalSigninSettings", + modelProperties: { + ...ProxyResource.type.modelProperties, + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", type: { - name: "String" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; -export const LoggerContract: coreClient.CompositeMapper = { - serializedName: "LoggerContract", +export const PortalSignupSettings: coreClient.CompositeMapper = { + serializedName: "PortalSignupSettings", type: { name: "Composite", - className: "LoggerContract", + className: "PortalSignupSettings", modelProperties: { ...ProxyResource.type.modelProperties, - loggerType: { - serializedName: "properties.loggerType", - xmlName: "properties.loggerType", + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", type: { - name: "String" - } + name: "Boolean", + }, }, - description: { - constraints: { - MaxLength: 256 + termsOfService: { + serializedName: "properties.termsOfService", + xmlName: "properties.termsOfService", + type: { + name: "Composite", + className: "TermsOfServiceProperties", }, - serializedName: "properties.description", - xmlName: "properties.description", + }, + }, + }, +}; + +export const PortalDelegationSettings: coreClient.CompositeMapper = { + serializedName: "PortalDelegationSettings", + type: { + name: "Composite", + className: "PortalDelegationSettings", + modelProperties: { + ...ProxyResource.type.modelProperties, + url: { + serializedName: "properties.url", + xmlName: "properties.url", type: { - name: "String" - } + name: "String", + }, }, - credentials: { - serializedName: "properties.credentials", - xmlName: "properties.credentials", + validationKey: { + serializedName: "properties.validationKey", + xmlName: "properties.validationKey", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, - isBuffered: { - serializedName: "properties.isBuffered", - xmlName: "properties.isBuffered", + subscriptions: { + serializedName: "properties.subscriptions", + xmlName: "properties.subscriptions", type: { - name: "Boolean" - } + name: "Composite", + className: "SubscriptionsDelegationSettingsProperties", + }, }, - resourceId: { - serializedName: "properties.resourceId", - xmlName: "properties.resourceId", + userRegistration: { + serializedName: "properties.userRegistration", + xmlName: "properties.userRegistration", type: { - name: "String" - } - } - } - } + name: "Composite", + className: "RegistrationDelegationSettingsProperties", + }, + }, + }, + }, }; -export const NamedValueContract: coreClient.CompositeMapper = { - serializedName: "NamedValueContract", +export const SubscriptionContract: coreClient.CompositeMapper = { + serializedName: "SubscriptionContract", type: { name: "Composite", - className: "NamedValueContract", + className: "SubscriptionContract", modelProperties: { ...ProxyResource.type.modelProperties, - tags: { - constraints: { - MaxItems: 32 - }, - serializedName: "properties.tags", - xmlName: "properties.tags", - xmlElementName: "NamedValueEntityBaseParametersTagsItem", + ownerId: { + serializedName: "properties.ownerId", + xmlName: "properties.ownerId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - secret: { - serializedName: "properties.secret", - xmlName: "properties.secret", + scope: { + serializedName: "properties.scope", + xmlName: "properties.scope", type: { - name: "Boolean" - } + name: "String", + }, }, displayName: { constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 + MaxLength: 100, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - value: { - constraints: { - MaxLength: 4096 + state: { + serializedName: "properties.state", + xmlName: "properties.state", + type: { + name: "Enum", + allowedValues: [ + "suspended", + "active", + "expired", + "submitted", + "rejected", + "cancelled", + ], }, - serializedName: "properties.value", - xmlName: "properties.value", + }, + createdDate: { + serializedName: "properties.createdDate", + readOnly: true, + xmlName: "properties.createdDate", + type: { + name: "DateTime", + }, + }, + startDate: { + serializedName: "properties.startDate", + xmlName: "properties.startDate", type: { - name: "String" - } + name: "DateTime", + }, }, - keyVault: { - serializedName: "properties.keyVault", - xmlName: "properties.keyVault", + expirationDate: { + serializedName: "properties.expirationDate", + xmlName: "properties.expirationDate", type: { - name: "Composite", - className: "KeyVaultContractProperties" - } - } - } - } -}; - -export const NamedValueCreateContract: coreClient.CompositeMapper = { - serializedName: "NamedValueCreateContract", - type: { - name: "Composite", - className: "NamedValueCreateContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - tags: { - constraints: { - MaxItems: 32 + name: "DateTime", }, - serializedName: "properties.tags", - xmlName: "properties.tags", - xmlElementName: "NamedValueEntityBaseParametersTagsItem", + }, + endDate: { + serializedName: "properties.endDate", + xmlName: "properties.endDate", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "DateTime", + }, }, - secret: { - serializedName: "properties.secret", - xmlName: "properties.secret", + notificationDate: { + serializedName: "properties.notificationDate", + xmlName: "properties.notificationDate", type: { - name: "Boolean" - } + name: "DateTime", + }, }, - displayName: { + primaryKey: { constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "properties.primaryKey", + xmlName: "properties.primaryKey", type: { - name: "String" - } + name: "String", + }, }, - value: { + secondaryKey: { constraints: { - MaxLength: 4096 + MaxLength: 256, + MinLength: 1, }, - serializedName: "properties.value", - xmlName: "properties.value", + serializedName: "properties.secondaryKey", + xmlName: "properties.secondaryKey", type: { - name: "String" - } + name: "String", + }, }, - keyVault: { - serializedName: "properties.keyVault", - xmlName: "properties.keyVault", + stateComment: { + serializedName: "properties.stateComment", + xmlName: "properties.stateComment", type: { - name: "Composite", - className: "KeyVaultContractCreateProperties" - } - } - } - } -}; - -export const NotificationContract: coreClient.CompositeMapper = { - serializedName: "NotificationContract", - type: { - name: "Composite", - className: "NotificationContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - title: { - constraints: { - MaxLength: 1000, - MinLength: 1 + name: "String", }, - serializedName: "properties.title", - xmlName: "properties.title", - type: { - name: "String" - } }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + allowTracing: { + serializedName: "properties.allowTracing", + xmlName: "properties.allowTracing", type: { - name: "String" - } + name: "Boolean", + }, }, - recipients: { - serializedName: "properties.recipients", - xmlName: "properties.recipients", - type: { - name: "Composite", - className: "RecipientsContractProperties" - } - } - } - } + }, + }, }; -export const RecipientUserContract: coreClient.CompositeMapper = { - serializedName: "RecipientUserContract", +export const ProductApiLinkContract: coreClient.CompositeMapper = { + serializedName: "ProductApiLinkContract", type: { name: "Composite", - className: "RecipientUserContract", + className: "ProductApiLinkContract", modelProperties: { ...ProxyResource.type.modelProperties, - userId: { - serializedName: "properties.userId", - xmlName: "properties.userId", + apiId: { + serializedName: "properties.apiId", + xmlName: "properties.apiId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const RecipientEmailContract: coreClient.CompositeMapper = { - serializedName: "RecipientEmailContract", +export const ProductGroupLinkContract: coreClient.CompositeMapper = { + serializedName: "ProductGroupLinkContract", type: { name: "Composite", - className: "RecipientEmailContract", + className: "ProductGroupLinkContract", modelProperties: { ...ProxyResource.type.modelProperties, - email: { - serializedName: "properties.email", - xmlName: "properties.email", + groupId: { + serializedName: "properties.groupId", + xmlName: "properties.groupId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const OpenidConnectProviderContract: coreClient.CompositeMapper = { - serializedName: "OpenidConnectProviderContract", +export const GlobalSchemaContract: coreClient.CompositeMapper = { + serializedName: "GlobalSchemaContract", type: { name: "Composite", - className: "OpenidConnectProviderContract", + className: "GlobalSchemaContract", modelProperties: { ...ProxyResource.type.modelProperties, - displayName: { - constraints: { - MaxLength: 50 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + schemaType: { + serializedName: "properties.schemaType", + xmlName: "properties.schemaType", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - metadataEndpoint: { - serializedName: "properties.metadataEndpoint", - xmlName: "properties.metadataEndpoint", + value: { + serializedName: "properties.value", + xmlName: "properties.value", type: { - name: "String" - } + name: "any", + }, }, - clientId: { - serializedName: "properties.clientId", - xmlName: "properties.clientId", + document: { + serializedName: "properties.document", + xmlName: "properties.document", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "any" } }, + }, }, - clientSecret: { - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { - name: "String" - } + name: "String", + }, }, - useInTestConsole: { - serializedName: "properties.useInTestConsole", - xmlName: "properties.useInTestConsole", + }, + }, +}; + +export const TenantSettingsContract: coreClient.CompositeMapper = { + serializedName: "TenantSettingsContract", + type: { + name: "Composite", + className: "TenantSettingsContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + settings: { + serializedName: "properties.settings", + xmlName: "properties.settings", type: { - name: "Boolean" - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - useInApiDocumentation: { - serializedName: "properties.useInApiDocumentation", - xmlName: "properties.useInApiDocumentation", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; -export const PolicyDescriptionContract: coreClient.CompositeMapper = { - serializedName: "PolicyDescriptionContract", +export const TagApiLinkContract: coreClient.CompositeMapper = { + serializedName: "TagApiLinkContract", type: { name: "Composite", - className: "PolicyDescriptionContract", + className: "TagApiLinkContract", modelProperties: { ...ProxyResource.type.modelProperties, - description: { - serializedName: "properties.description", - readOnly: true, - xmlName: "properties.description", + apiId: { + serializedName: "properties.apiId", + xmlName: "properties.apiId", type: { - name: "String" - } + name: "String", + }, }, - scope: { - serializedName: "properties.scope", - readOnly: true, - xmlName: "properties.scope", + }, + }, +}; + +export const TagOperationLinkContract: coreClient.CompositeMapper = { + serializedName: "TagOperationLinkContract", + type: { + name: "Composite", + className: "TagOperationLinkContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + operationId: { + serializedName: "properties.operationId", + xmlName: "properties.operationId", type: { - name: "Number" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PolicyFragmentContract: coreClient.CompositeMapper = { - serializedName: "PolicyFragmentContract", +export const TagProductLinkContract: coreClient.CompositeMapper = { + serializedName: "TagProductLinkContract", type: { name: "Composite", - className: "PolicyFragmentContract", + className: "TagProductLinkContract", modelProperties: { ...ProxyResource.type.modelProperties, - value: { - serializedName: "properties.value", - xmlName: "properties.value", + productId: { + serializedName: "properties.productId", + xmlName: "properties.productId", type: { - name: "String" - } + name: "String", + }, }, - description: { - constraints: { - MaxLength: 1000 + }, + }, +}; + +export const AccessInformationContract: coreClient.CompositeMapper = { + serializedName: "AccessInformationContract", + type: { + name: "Composite", + className: "AccessInformationContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", + type: { + name: "String", }, - serializedName: "properties.description", - xmlName: "properties.description", + }, + principalId: { + serializedName: "properties.principalId", + xmlName: "properties.principalId", type: { - name: "String" - } + name: "String", + }, }, - format: { - serializedName: "properties.format", - xmlName: "properties.format", + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", type: { - name: "String" - } - } - } - } -}; + name: "Boolean", + }, + }, + }, + }, +}; + +export const TenantConfigurationSyncStateContract: coreClient.CompositeMapper = + { + serializedName: "TenantConfigurationSyncStateContract", + type: { + name: "Composite", + className: "TenantConfigurationSyncStateContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + branch: { + serializedName: "properties.branch", + xmlName: "properties.branch", + type: { + name: "String", + }, + }, + commitId: { + serializedName: "properties.commitId", + xmlName: "properties.commitId", + type: { + name: "String", + }, + }, + isExport: { + serializedName: "properties.isExport", + xmlName: "properties.isExport", + type: { + name: "Boolean", + }, + }, + isSynced: { + serializedName: "properties.isSynced", + xmlName: "properties.isSynced", + type: { + name: "Boolean", + }, + }, + isGitEnabled: { + serializedName: "properties.isGitEnabled", + xmlName: "properties.isGitEnabled", + type: { + name: "Boolean", + }, + }, + syncDate: { + serializedName: "properties.syncDate", + xmlName: "properties.syncDate", + type: { + name: "DateTime", + }, + }, + configurationChangeDate: { + serializedName: "properties.configurationChangeDate", + xmlName: "properties.configurationChangeDate", + type: { + name: "DateTime", + }, + }, + lastOperationId: { + serializedName: "properties.lastOperationId", + xmlName: "properties.lastOperationId", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ResourceCollectionValueItem: coreClient.CompositeMapper = { - serializedName: "ResourceCollectionValueItem", +export const WorkspaceContract: coreClient.CompositeMapper = { + serializedName: "WorkspaceContract", type: { name: "Composite", - className: "ResourceCollectionValueItem", + className: "WorkspaceContract", modelProperties: { - ...ProxyResource.type.modelProperties - } - } + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String", + }, + }, + description: { + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String", + }, + }, + }, + }, }; -export const PortalConfigContract: coreClient.CompositeMapper = { - serializedName: "PortalConfigContract", +export const PolicyWithComplianceContract: coreClient.CompositeMapper = { + serializedName: "PolicyWithComplianceContract", type: { name: "Composite", - className: "PortalConfigContract", + className: "PolicyWithComplianceContract", modelProperties: { ...ProxyResource.type.modelProperties, - enableBasicAuth: { - defaultValue: true, - serializedName: "properties.enableBasicAuth", - xmlName: "properties.enableBasicAuth", - type: { - name: "Boolean" - } - }, - signin: { - serializedName: "properties.signin", - xmlName: "properties.signin", - type: { - name: "Composite", - className: "PortalConfigPropertiesSignin" - } - }, - signup: { - serializedName: "properties.signup", - xmlName: "properties.signup", - type: { - name: "Composite", - className: "PortalConfigPropertiesSignup" - } - }, - delegation: { - serializedName: "properties.delegation", - xmlName: "properties.delegation", + referencePolicyId: { + serializedName: "properties.referencePolicyId", + xmlName: "properties.referencePolicyId", type: { - name: "Composite", - className: "PortalConfigDelegationProperties" - } + name: "String", + }, }, - cors: { - serializedName: "properties.cors", - xmlName: "properties.cors", + complianceState: { + serializedName: "properties.complianceState", + xmlName: "properties.complianceState", type: { - name: "Composite", - className: "PortalConfigCorsProperties" - } + name: "String", + }, }, - csp: { - serializedName: "properties.csp", - xmlName: "properties.csp", - type: { - name: "Composite", - className: "PortalConfigCspProperties" - } - } - } - } + }, + }, }; -export const PortalRevisionContract: coreClient.CompositeMapper = { - serializedName: "PortalRevisionContract", +export const ResolverResultContract: coreClient.CompositeMapper = { + serializedName: "ResolverResultContract", type: { name: "Composite", - className: "PortalRevisionContract", + className: "ResolverResultContract", modelProperties: { ...ProxyResource.type.modelProperties, - description: { - constraints: { - MaxLength: 2000 - }, - serializedName: "properties.description", - xmlName: "properties.description", + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", type: { - name: "String" - } - }, - statusDetails: { - constraints: { - MaxLength: 2000 + name: "String", }, - serializedName: "properties.statusDetails", - readOnly: true, - xmlName: "properties.statusDetails", - type: { - name: "String" - } }, status: { serializedName: "properties.status", - readOnly: true, xmlName: "properties.status", type: { - name: "String" - } + name: "Enum", + allowedValues: ["Started", "InProgress", "Succeeded", "Failed"], + }, }, - isCurrent: { - serializedName: "properties.isCurrent", - xmlName: "properties.isCurrent", + started: { + serializedName: "properties.started", + xmlName: "properties.started", type: { - name: "Boolean" - } + name: "DateTime", + }, }, - createdDateTime: { - serializedName: "properties.createdDateTime", - readOnly: true, - xmlName: "properties.createdDateTime", + updated: { + serializedName: "properties.updated", + xmlName: "properties.updated", type: { - name: "DateTime" - } + name: "DateTime", + }, }, - updatedDateTime: { - serializedName: "properties.updatedDateTime", + resultInfo: { + serializedName: "properties.resultInfo", + xmlName: "properties.resultInfo", + type: { + name: "String", + }, + }, + error: { + serializedName: "properties.error", + xmlName: "properties.error", + type: { + name: "Composite", + className: "ErrorResponseBody", + }, + }, + actionLog: { + serializedName: "properties.actionLog", readOnly: true, - xmlName: "properties.updatedDateTime", + xmlName: "properties.actionLog", + xmlElementName: "ResolverResultLogItemContract", type: { - name: "DateTime" - } - } - } - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResolverResultLogItemContract", + }, + }, + }, + }, + }, + }, }; -export const PortalSettingsContract: coreClient.CompositeMapper = { - serializedName: "PortalSettingsContract", +export const ApiCreateOrUpdateProperties: coreClient.CompositeMapper = { + serializedName: "ApiCreateOrUpdateProperties", type: { name: "Composite", - className: "PortalSettingsContract", + className: "ApiCreateOrUpdateProperties", modelProperties: { - ...ProxyResource.type.modelProperties, - url: { - serializedName: "properties.url", - xmlName: "properties.url", + ...ApiContractProperties.type.modelProperties, + value: { + serializedName: "value", + xmlName: "value", type: { - name: "String" - } + name: "String", + }, }, - validationKey: { - serializedName: "properties.validationKey", - xmlName: "properties.validationKey", + format: { + serializedName: "format", + xmlName: "format", type: { - name: "String" - } + name: "String", + }, }, - subscriptions: { - serializedName: "properties.subscriptions", - xmlName: "properties.subscriptions", + wsdlSelector: { + serializedName: "wsdlSelector", + xmlName: "wsdlSelector", type: { name: "Composite", - className: "SubscriptionsDelegationSettingsProperties" - } + className: "ApiCreateOrUpdatePropertiesWsdlSelector", + }, }, - userRegistration: { - serializedName: "properties.userRegistration", - xmlName: "properties.userRegistration", + soapApiType: { + serializedName: "apiType", + xmlName: "apiType", type: { - name: "Composite", - className: "RegistrationDelegationSettingsProperties" - } + name: "String", + }, }, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", + translateRequiredQueryParametersConduct: { + serializedName: "translateRequiredQueryParameters", + xmlName: "translateRequiredQueryParameters", type: { - name: "Boolean" - } + name: "String", + }, }, - termsOfService: { - serializedName: "properties.termsOfService", - xmlName: "properties.termsOfService", - type: { - name: "Composite", - className: "TermsOfServiceProperties" - } - } - } - } + }, + }, }; -export const PortalSigninSettings: coreClient.CompositeMapper = { - serializedName: "PortalSigninSettings", +export const ApiManagementGatewayUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementGateway_updateHeaders", type: { name: "Composite", - className: "PortalSigninSettings", + className: "ApiManagementGatewayUpdateHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "Boolean" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalSignupSettings: coreClient.CompositeMapper = { - serializedName: "PortalSignupSettings", +export const ApiManagementGatewayDeleteHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementGateway_deleteHeaders", type: { name: "Composite", - className: "PortalSignupSettings", + className: "ApiManagementGatewayDeleteHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "Boolean" - } + name: "String", + }, }, - termsOfService: { - serializedName: "properties.termsOfService", - xmlName: "properties.termsOfService", - type: { - name: "Composite", - className: "TermsOfServiceProperties" - } - } - } - } + }, + }, }; -export const PortalDelegationSettings: coreClient.CompositeMapper = { - serializedName: "PortalDelegationSettings", +export const ApiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Api_getEntityTagHeaders", type: { name: "Composite", - className: "PortalDelegationSettings", + className: "ApiGetEntityTagHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - url: { - serializedName: "properties.url", - xmlName: "properties.url", - type: { - name: "String" - } - }, - validationKey: { - serializedName: "properties.validationKey", - xmlName: "properties.validationKey", - type: { - name: "String" - } - }, - subscriptions: { - serializedName: "properties.subscriptions", - xmlName: "properties.subscriptions", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Composite", - className: "SubscriptionsDelegationSettingsProperties" - } + name: "String", + }, }, - userRegistration: { - serializedName: "properties.userRegistration", - xmlName: "properties.userRegistration", - type: { - name: "Composite", - className: "RegistrationDelegationSettingsProperties" - } - } - } - } + }, + }, }; -export const SubscriptionContract: coreClient.CompositeMapper = { - serializedName: "SubscriptionContract", +export const ApiGetHeaders: coreClient.CompositeMapper = { + serializedName: "Api_getHeaders", type: { name: "Composite", - className: "SubscriptionContract", + className: "ApiGetHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - ownerId: { - serializedName: "properties.ownerId", - xmlName: "properties.ownerId", - type: { - name: "String" - } - }, - scope: { - serializedName: "properties.scope", - xmlName: "properties.scope", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } - }, - displayName: { - constraints: { - MaxLength: 100 + name: "String", }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", - type: { - name: "String" - } - }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", - type: { - name: "Enum", - allowedValues: [ - "suspended", - "active", - "expired", - "submitted", - "rejected", - "cancelled" - ] - } }, - createdDate: { - serializedName: "properties.createdDate", - readOnly: true, - xmlName: "properties.createdDate", + }, + }, +}; + +export const ApiCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Api_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "DateTime" - } + name: "String", + }, }, - startDate: { - serializedName: "properties.startDate", - xmlName: "properties.startDate", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "DateTime" - } + name: "String", + }, }, - expirationDate: { - serializedName: "properties.expirationDate", - xmlName: "properties.expirationDate", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", type: { - name: "DateTime" - } + name: "String", + }, }, - endDate: { - serializedName: "properties.endDate", - xmlName: "properties.endDate", + }, + }, +}; + +export const ApiUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Api_updateHeaders", + type: { + name: "Composite", + className: "ApiUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "DateTime" - } + name: "String", + }, }, - notificationDate: { - serializedName: "properties.notificationDate", - xmlName: "properties.notificationDate", + }, + }, +}; + +export const ApiDeleteHeaders: coreClient.CompositeMapper = { + serializedName: "Api_deleteHeaders", + type: { + name: "Composite", + className: "ApiDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", type: { - name: "DateTime" - } - }, - primaryKey: { - constraints: { - MaxLength: 256, - MinLength: 1 + name: "String", }, - serializedName: "properties.primaryKey", - xmlName: "properties.primaryKey", - type: { - name: "String" - } }, - secondaryKey: { - constraints: { - MaxLength: 256, - MinLength: 1 - }, - serializedName: "properties.secondaryKey", - xmlName: "properties.secondaryKey", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", type: { - name: "String" - } + name: "String", + }, }, - stateComment: { - serializedName: "properties.stateComment", - xmlName: "properties.stateComment", + }, + }, +}; + +export const ApiReleaseGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiRelease_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiReleaseGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - allowTracing: { - serializedName: "properties.allowTracing", - xmlName: "properties.allowTracing", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; -export const GlobalSchemaContract: coreClient.CompositeMapper = { - serializedName: "GlobalSchemaContract", +export const ApiReleaseGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiRelease_getHeaders", type: { name: "Composite", - className: "GlobalSchemaContract", + className: "ApiReleaseGetHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - schemaType: { - serializedName: "properties.schemaType", - xmlName: "properties.schemaType", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + }, + }, +}; + +export const ApiReleaseCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiRelease_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiReleaseCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - value: { - serializedName: "properties.value", - xmlName: "properties.value", + }, + }, +}; + +export const ApiReleaseUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiRelease_updateHeaders", + type: { + name: "Composite", + className: "ApiReleaseUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "any" - } + name: "String", + }, }, - document: { - serializedName: "properties.document", - xmlName: "properties.document", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + }, + }, }; -export const TenantSettingsContract: coreClient.CompositeMapper = { - serializedName: "TenantSettingsContract", +export const ApiOperationGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperation_getEntityTagHeaders", type: { name: "Composite", - className: "TenantSettingsContract", + className: "ApiOperationGetEntityTagHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - settings: { - serializedName: "properties.settings", - xmlName: "properties.settings", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AccessInformationContract: coreClient.CompositeMapper = { - serializedName: "AccessInformationContract", +export const ApiOperationGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperation_getHeaders", type: { name: "Composite", - className: "AccessInformationContract", + className: "ApiOperationGetHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - idPropertiesId: { - serializedName: "properties.id", - xmlName: "properties.id", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - principalId: { - serializedName: "properties.principalId", - xmlName: "properties.principalId", + }, + }, +}; + +export const ApiOperationCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperation_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiOperationCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; -export const OperationResultContract: coreClient.CompositeMapper = { - serializedName: "OperationResultContract", +export const ApiOperationUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperation_updateHeaders", type: { name: "Composite", - className: "OperationResultContract", + className: "ApiOperationUpdateHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - idPropertiesId: { - serializedName: "properties.id", - xmlName: "properties.id", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - status: { - serializedName: "properties.status", - xmlName: "properties.status", - type: { - name: "Enum", - allowedValues: ["Started", "InProgress", "Succeeded", "Failed"] - } + }, + }, +}; + +export const ApiOperationPolicyGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiOperationPolicy_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiOperationPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, }, - started: { - serializedName: "properties.started", - xmlName: "properties.started", + }, + }; + +export const ApiOperationPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperationPolicy_getHeaders", + type: { + name: "Composite", + className: "ApiOperationPolicyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "DateTime" - } + name: "String", + }, }, - updated: { - serializedName: "properties.updated", - xmlName: "properties.updated", - type: { - name: "DateTime" - } + }, + }, +}; + +export const ApiOperationPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiOperationPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiOperationPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, }, - resultInfo: { - serializedName: "properties.resultInfo", - xmlName: "properties.resultInfo", + }, + }; + +export const TagGetEntityStateByOperationHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getEntityStateByOperationHeaders", + type: { + name: "Composite", + className: "TagGetEntityStateByOperationHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - error: { - serializedName: "properties.error", - xmlName: "properties.error", + }, + }, +}; + +export const TagGetByOperationHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getByOperationHeaders", + type: { + name: "Composite", + className: "TagGetByOperationHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Composite", - className: "ErrorResponseBody" - } + name: "String", + }, }, - actionLog: { - serializedName: "properties.actionLog", - readOnly: true, - xmlName: "properties.actionLog", - xmlElementName: "OperationResultLogItemContract", + }, + }, +}; + +export const TagGetEntityStateByApiHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getEntityStateByApiHeaders", + type: { + name: "Composite", + className: "TagGetEntityStateByApiHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationResultLogItemContract" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TenantConfigurationSyncStateContract: coreClient.CompositeMapper = { - serializedName: "TenantConfigurationSyncStateContract", +export const TagGetByApiHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getByApiHeaders", type: { name: "Composite", - className: "TenantConfigurationSyncStateContract", + className: "TagGetByApiHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - branch: { - serializedName: "properties.branch", - xmlName: "properties.branch", - type: { - name: "String" - } - }, - commitId: { - serializedName: "properties.commitId", - xmlName: "properties.commitId", - type: { - name: "String" - } - }, - isExport: { - serializedName: "properties.isExport", - xmlName: "properties.isExport", - type: { - name: "Boolean" - } - }, - isSynced: { - serializedName: "properties.isSynced", - xmlName: "properties.isSynced", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Boolean" - } + name: "String", + }, }, - isGitEnabled: { - serializedName: "properties.isGitEnabled", - xmlName: "properties.isGitEnabled", + }, + }, +}; + +export const TagAssignToApiHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_assignToApiHeaders", + type: { + name: "Composite", + className: "TagAssignToApiHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Boolean" - } + name: "String", + }, }, - syncDate: { - serializedName: "properties.syncDate", - xmlName: "properties.syncDate", + }, + }, +}; + +export const TagGetEntityStateByProductHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getEntityStateByProductHeaders", + type: { + name: "Composite", + className: "TagGetEntityStateByProductHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "DateTime" - } + name: "String", + }, }, - configurationChangeDate: { - serializedName: "properties.configurationChangeDate", - xmlName: "properties.configurationChangeDate", + }, + }, +}; + +export const TagGetByProductHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getByProductHeaders", + type: { + name: "Composite", + className: "TagGetByProductHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "DateTime" - } + name: "String", + }, }, - lastOperationId: { - serializedName: "properties.lastOperationId", - xmlName: "properties.lastOperationId", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const DocumentationContract: coreClient.CompositeMapper = { - serializedName: "DocumentationContract", +export const TagGetEntityStateHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getEntityStateHeaders", type: { name: "Composite", - className: "DocumentationContract", + className: "TagGetEntityStateHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - title: { - serializedName: "properties.title", - xmlName: "properties.title", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - content: { - serializedName: "properties.content", - xmlName: "properties.content", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ResolverResultContract: coreClient.CompositeMapper = { - serializedName: "ResolverResultContract", +export const TagGetHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getHeaders", type: { name: "Composite", - className: "ResolverResultContract", + className: "TagGetHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - idPropertiesId: { - serializedName: "properties.id", - xmlName: "properties.id", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - status: { - serializedName: "properties.status", - xmlName: "properties.status", + }, + }, +}; + +export const TagCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_createOrUpdateHeaders", + type: { + name: "Composite", + className: "TagCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Enum", - allowedValues: ["Started", "InProgress", "Succeeded", "Failed"] - } + name: "String", + }, }, - started: { - serializedName: "properties.started", - xmlName: "properties.started", + }, + }, +}; + +export const TagUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_updateHeaders", + type: { + name: "Composite", + className: "TagUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "DateTime" - } + name: "String", + }, }, - updated: { - serializedName: "properties.updated", - xmlName: "properties.updated", - type: { - name: "DateTime" - } + }, + }, +}; + +export const GraphQLApiResolverGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "GraphQLApiResolver_getEntityTagHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, }, - resultInfo: { - serializedName: "properties.resultInfo", - xmlName: "properties.resultInfo", + }, + }; + +export const GraphQLApiResolverGetHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_getHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - error: { - serializedName: "properties.error", - xmlName: "properties.error", - type: { - name: "Composite", - className: "ErrorResponseBody" - } + }, + }, +}; + +export const GraphQLApiResolverCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "GraphQLApiResolver_createOrUpdateHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, }, - actionLog: { - serializedName: "properties.actionLog", - readOnly: true, - xmlName: "properties.actionLog", - xmlElementName: "ResolverResultLogItemContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResolverResultLogItemContract" - } - } - } - } - } - } -}; + }, + }; -export const ApiGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Api_getEntityTagHeaders", +export const GraphQLApiResolverUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_updateHeaders", type: { name: "Composite", - className: "ApiGetEntityTagHeaders", + className: "GraphQLApiResolverUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const GraphQLApiResolverPolicyGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "GraphQLApiResolverPolicy_getEntityTagHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiGetHeaders: coreClient.CompositeMapper = { - serializedName: "Api_getHeaders", +export const GraphQLApiResolverPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolverPolicy_getHeaders", type: { name: "Composite", - className: "ApiGetHeaders", + className: "GraphQLApiResolverPolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const GraphQLApiResolverPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "GraphQLApiResolverPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Api_createOrUpdateHeaders", +export const ApiPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiPolicy_getEntityTagHeaders", type: { name: "Composite", - className: "ApiCreateOrUpdateHeaders", + className: "ApiPolicyGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Api_updateHeaders", +export const ApiPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiPolicy_getHeaders", type: { name: "Composite", - className: "ApiUpdateHeaders", + className: "ApiPolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiReleaseGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiRelease_getEntityTagHeaders", +export const ApiPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiPolicy_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiReleaseGetEntityTagHeaders", + className: "ApiPolicyCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiReleaseGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiRelease_getHeaders", +export const ApiSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiSchema_getEntityTagHeaders", type: { name: "Composite", - className: "ApiReleaseGetHeaders", + className: "ApiSchemaGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiReleaseCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiRelease_createOrUpdateHeaders", +export const ApiSchemaGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiSchema_getHeaders", type: { name: "Composite", - className: "ApiReleaseCreateOrUpdateHeaders", + className: "ApiSchemaGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiReleaseUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiRelease_updateHeaders", +export const ApiSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiSchema_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiReleaseUpdateHeaders", + className: "ApiSchemaCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, }; -export const ApiOperationGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperation_getEntityTagHeaders", +export const ApiDiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiDiagnostic_getEntityTagHeaders", type: { name: "Composite", - className: "ApiOperationGetEntityTagHeaders", + className: "ApiDiagnosticGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiOperationGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperation_getHeaders", +export const ApiDiagnosticGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiDiagnostic_getHeaders", type: { name: "Composite", - className: "ApiOperationGetHeaders", + className: "ApiDiagnosticGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiOperationCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperation_createOrUpdateHeaders", +export const ApiDiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiDiagnostic_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiOperationCreateOrUpdateHeaders", + className: "ApiDiagnosticCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiOperationUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperation_updateHeaders", +export const ApiDiagnosticUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiDiagnostic_updateHeaders", type: { name: "Composite", - className: "ApiOperationUpdateHeaders", + className: "ApiDiagnosticUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiOperationPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperationPolicy_getEntityTagHeaders", +export const ApiIssueGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssue_getEntityTagHeaders", type: { name: "Composite", - className: "ApiOperationPolicyGetEntityTagHeaders", + className: "ApiIssueGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiOperationPolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperationPolicy_getHeaders", +export const ApiIssueGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssue_getHeaders", type: { name: "Composite", - className: "ApiOperationPolicyGetHeaders", + className: "ApiIssueGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiOperationPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperationPolicy_createOrUpdateHeaders", +export const ApiIssueCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssue_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiOperationPolicyCreateOrUpdateHeaders", + className: "ApiIssueCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagGetEntityStateByOperationHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getEntityStateByOperationHeaders", +export const ApiIssueUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssue_updateHeaders", type: { name: "Composite", - className: "TagGetEntityStateByOperationHeaders", + className: "ApiIssueUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagGetByOperationHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getByOperationHeaders", +export const ApiIssueCommentGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssueComment_getEntityTagHeaders", type: { name: "Composite", - className: "TagGetByOperationHeaders", + className: "ApiIssueCommentGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagGetEntityStateByApiHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getEntityStateByApiHeaders", +export const ApiIssueCommentGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssueComment_getHeaders", type: { name: "Composite", - className: "TagGetEntityStateByApiHeaders", + className: "ApiIssueCommentGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ApiIssueCommentCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiIssueComment_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiIssueCommentCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiIssueAttachmentGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiIssueAttachment_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiIssueAttachmentGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const TagGetByApiHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getByApiHeaders", +export const ApiIssueAttachmentGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssueAttachment_getHeaders", type: { name: "Composite", - className: "TagGetByApiHeaders", + className: "ApiIssueAttachmentGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ApiIssueAttachmentCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiIssueAttachment_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiIssueAttachmentCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiTagDescriptionGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiTagDescription_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiTagDescriptionGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const TagAssignToApiHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_assignToApiHeaders", +export const ApiTagDescriptionGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiTagDescription_getHeaders", type: { name: "Composite", - className: "TagAssignToApiHeaders", + className: "ApiTagDescriptionGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ApiTagDescriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiTagDescription_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiTagDescriptionCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const TagGetEntityStateByProductHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getEntityStateByProductHeaders", +export const ApiWikiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_getEntityTagHeaders", type: { name: "Composite", - className: "TagGetEntityStateByProductHeaders", + className: "ApiWikiGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagGetByProductHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getByProductHeaders", +export const ApiWikiGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_getHeaders", type: { name: "Composite", - className: "TagGetByProductHeaders", + className: "ApiWikiGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagGetEntityStateHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getEntityStateHeaders", +export const ApiWikiCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_createOrUpdateHeaders", type: { name: "Composite", - className: "TagGetEntityStateHeaders", + className: "ApiWikiCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagGetHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getHeaders", +export const ApiWikiUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_updateHeaders", type: { name: "Composite", - className: "TagGetHeaders", + className: "ApiWikiUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_createOrUpdateHeaders", +export const ApiVersionSetGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiVersionSet_getEntityTagHeaders", type: { name: "Composite", - className: "TagCreateOrUpdateHeaders", + className: "ApiVersionSetGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_updateHeaders", +export const ApiVersionSetGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiVersionSet_getHeaders", type: { name: "Composite", - className: "TagUpdateHeaders", + className: "ApiVersionSetGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GraphQLApiResolverGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolver_getEntityTagHeaders", +export const ApiVersionSetCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiVersionSet_createOrUpdateHeaders", type: { name: "Composite", - className: "GraphQLApiResolverGetEntityTagHeaders", + className: "ApiVersionSetCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GraphQLApiResolverGetHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolver_getHeaders", +export const ApiVersionSetUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiVersionSet_updateHeaders", type: { name: "Composite", - className: "GraphQLApiResolverGetHeaders", + className: "ApiVersionSetUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GraphQLApiResolverCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolver_createOrUpdateHeaders", +export const AuthorizationProviderGetHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationProvider_getHeaders", type: { name: "Composite", - className: "GraphQLApiResolverCreateOrUpdateHeaders", + className: "AuthorizationProviderGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const AuthorizationProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "AuthorizationProvider_createOrUpdateHeaders", + type: { + name: "Composite", + className: "AuthorizationProviderCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const GraphQLApiResolverUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolver_updateHeaders", +export const AuthorizationGetHeaders: coreClient.CompositeMapper = { + serializedName: "Authorization_getHeaders", type: { name: "Composite", - className: "GraphQLApiResolverUpdateHeaders", + className: "AuthorizationGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GraphQLApiResolverPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolverPolicy_getEntityTagHeaders", +export const AuthorizationCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Authorization_createOrUpdateHeaders", type: { name: "Composite", - className: "GraphQLApiResolverPolicyGetEntityTagHeaders", + className: "AuthorizationCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const AuthorizationConfirmConsentCodeHeaders: coreClient.CompositeMapper = + { + serializedName: "Authorization_confirmConsentCodeHeaders", + type: { + name: "Composite", + className: "AuthorizationConfirmConsentCodeHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const GraphQLApiResolverPolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolverPolicy_getHeaders", +export const AuthorizationLoginLinksPostHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationLoginLinks_postHeaders", type: { name: "Composite", - className: "GraphQLApiResolverPolicyGetHeaders", + className: "AuthorizationLoginLinksPostHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GraphQLApiResolverPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolverPolicy_createOrUpdateHeaders", +export const AuthorizationAccessPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationAccessPolicy_getHeaders", type: { name: "Composite", - className: "GraphQLApiResolverPolicyCreateOrUpdateHeaders", + className: "AuthorizationAccessPolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const AuthorizationAccessPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "AuthorizationAccessPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "AuthorizationAccessPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const AuthorizationServerGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "AuthorizationServer_getEntityTagHeaders", + type: { + name: "Composite", + className: "AuthorizationServerGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiPolicy_getEntityTagHeaders", +export const AuthorizationServerGetHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationServer_getHeaders", type: { name: "Composite", - className: "ApiPolicyGetEntityTagHeaders", + className: "AuthorizationServerGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const AuthorizationServerCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "AuthorizationServer_createOrUpdateHeaders", + type: { + name: "Composite", + className: "AuthorizationServerCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiPolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiPolicy_getHeaders", +export const AuthorizationServerUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationServer_updateHeaders", type: { name: "Composite", - className: "ApiPolicyGetHeaders", + className: "AuthorizationServerUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const AuthorizationServerListSecretsHeaders: coreClient.CompositeMapper = + { + serializedName: "AuthorizationServer_listSecretsHeaders", + type: { + name: "Composite", + className: "AuthorizationServerListSecretsHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiPolicy_createOrUpdateHeaders", +export const BackendGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Backend_getEntityTagHeaders", type: { name: "Composite", - className: "ApiPolicyCreateOrUpdateHeaders", + className: "BackendGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiSchema_getEntityTagHeaders", +export const BackendGetHeaders: coreClient.CompositeMapper = { + serializedName: "Backend_getHeaders", type: { name: "Composite", - className: "ApiSchemaGetEntityTagHeaders", + className: "BackendGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiSchemaGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiSchema_getHeaders", +export const BackendCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Backend_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiSchemaGetHeaders", + className: "BackendCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiSchema_createOrUpdateHeaders", +export const BackendUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Backend_updateHeaders", type: { name: "Composite", - className: "ApiSchemaCreateOrUpdateHeaders", + className: "BackendUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiDiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiDiagnostic_getEntityTagHeaders", +export const CacheGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Cache_getEntityTagHeaders", type: { name: "Composite", - className: "ApiDiagnosticGetEntityTagHeaders", + className: "CacheGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiDiagnosticGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiDiagnostic_getHeaders", +export const CacheGetHeaders: coreClient.CompositeMapper = { + serializedName: "Cache_getHeaders", type: { name: "Composite", - className: "ApiDiagnosticGetHeaders", + className: "CacheGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiDiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiDiagnostic_createOrUpdateHeaders", +export const CacheCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Cache_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiDiagnosticCreateOrUpdateHeaders", + className: "CacheCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiDiagnosticUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiDiagnostic_updateHeaders", +export const CacheUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Cache_updateHeaders", type: { name: "Composite", - className: "ApiDiagnosticUpdateHeaders", + className: "CacheUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssue_getEntityTagHeaders", +export const CertificateGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Certificate_getEntityTagHeaders", type: { name: "Composite", - className: "ApiIssueGetEntityTagHeaders", + className: "CertificateGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssue_getHeaders", +export const CertificateGetHeaders: coreClient.CompositeMapper = { + serializedName: "Certificate_getHeaders", type: { name: "Composite", - className: "ApiIssueGetHeaders", + className: "CertificateGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssue_createOrUpdateHeaders", +export const CertificateCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Certificate_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiIssueCreateOrUpdateHeaders", + className: "CertificateCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssue_updateHeaders", +export const CertificateRefreshSecretHeaders: coreClient.CompositeMapper = { + serializedName: "Certificate_refreshSecretHeaders", type: { name: "Composite", - className: "ApiIssueUpdateHeaders", + className: "CertificateRefreshSecretHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ApiManagementClientPerformConnectivityCheckAsyncHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiManagementClient_performConnectivityCheckAsyncHeaders", + type: { + name: "Composite", + className: "ApiManagementClientPerformConnectivityCheckAsyncHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiIssueCommentGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueComment_getEntityTagHeaders", +export const ContentTypeGetHeaders: coreClient.CompositeMapper = { + serializedName: "ContentType_getHeaders", type: { name: "Composite", - className: "ApiIssueCommentGetEntityTagHeaders", + className: "ContentTypeGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueCommentGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueComment_getHeaders", +export const ContentTypeCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ContentType_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiIssueCommentGetHeaders", + className: "ContentTypeCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueCommentCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueComment_createOrUpdateHeaders", +export const ContentItemGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ContentItem_getEntityTagHeaders", type: { name: "Composite", - className: "ApiIssueCommentCreateOrUpdateHeaders", + className: "ContentItemGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueAttachmentGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueAttachment_getEntityTagHeaders", +export const ContentItemGetHeaders: coreClient.CompositeMapper = { + serializedName: "ContentItem_getHeaders", type: { name: "Composite", - className: "ApiIssueAttachmentGetEntityTagHeaders", + className: "ContentItemGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueAttachmentGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueAttachment_getHeaders", +export const ContentItemCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ContentItem_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiIssueAttachmentGetHeaders", + className: "ContentItemCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueAttachmentCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueAttachment_createOrUpdateHeaders", +export const DeletedServicesPurgeHeaders: coreClient.CompositeMapper = { + serializedName: "DeletedServices_purgeHeaders", type: { name: "Composite", - className: "ApiIssueAttachmentCreateOrUpdateHeaders", + className: "DeletedServicesPurgeHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiTagDescriptionGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiTagDescription_getEntityTagHeaders", +export const ApiManagementServiceRestoreHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_restoreHeaders", type: { name: "Composite", - className: "ApiTagDescriptionGetEntityTagHeaders", + className: "ApiManagementServiceRestoreHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiTagDescriptionGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiTagDescription_getHeaders", +export const ApiManagementServiceBackupHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_backupHeaders", type: { name: "Composite", - className: "ApiTagDescriptionGetHeaders", + className: "ApiManagementServiceBackupHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiTagDescriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiTagDescription_createOrUpdateHeaders", +export const ApiManagementServiceUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_updateHeaders", type: { name: "Composite", - className: "ApiTagDescriptionCreateOrUpdateHeaders", + className: "ApiManagementServiceUpdateHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiWikiGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiWiki_getEntityTagHeaders", +export const ApiManagementServiceDeleteHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_deleteHeaders", type: { name: "Composite", - className: "ApiWikiGetEntityTagHeaders", + className: "ApiManagementServiceDeleteHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ApiManagementServiceMigrateToStv2Headers: coreClient.CompositeMapper = + { + serializedName: "ApiManagementService_migrateToStv2Headers", + type: { + name: "Composite", + className: "ApiManagementServiceMigrateToStv2Headers", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders: coreClient.CompositeMapper = + { + serializedName: + "ApiManagementService_applyNetworkConfigurationUpdatesHeaders", + type: { + name: "Composite", + className: "ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiWikiGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiWiki_getHeaders", +export const DiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Diagnostic_getEntityTagHeaders", type: { name: "Composite", - className: "ApiWikiGetHeaders", + className: "DiagnosticGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiWikiCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiWiki_createOrUpdateHeaders", +export const DiagnosticGetHeaders: coreClient.CompositeMapper = { + serializedName: "Diagnostic_getHeaders", type: { name: "Composite", - className: "ApiWikiCreateOrUpdateHeaders", + className: "DiagnosticGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiWikiUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiWiki_updateHeaders", +export const DiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Diagnostic_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiWikiUpdateHeaders", + className: "DiagnosticCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiVersionSetGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiVersionSet_getEntityTagHeaders", +export const DiagnosticUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Diagnostic_updateHeaders", type: { name: "Composite", - className: "ApiVersionSetGetEntityTagHeaders", + className: "DiagnosticUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiVersionSetGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiVersionSet_getHeaders", +export const DocumentationGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_getEntityTagHeaders", type: { name: "Composite", - className: "ApiVersionSetGetHeaders", + className: "DocumentationGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiVersionSetCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiVersionSet_createOrUpdateHeaders", +export const DocumentationGetHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_getHeaders", type: { name: "Composite", - className: "ApiVersionSetCreateOrUpdateHeaders", + className: "DocumentationGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiVersionSetUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiVersionSet_updateHeaders", +export const DocumentationCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiVersionSetUpdateHeaders", + className: "DocumentationCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationServerGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_getEntityTagHeaders", +export const DocumentationUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_updateHeaders", type: { name: "Composite", - className: "AuthorizationServerGetEntityTagHeaders", + className: "DocumentationUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationServerGetHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_getHeaders", +export const EmailTemplateGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "EmailTemplate_getEntityTagHeaders", type: { name: "Composite", - className: "AuthorizationServerGetHeaders", + className: "EmailTemplateGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationServerCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_createOrUpdateHeaders", +export const EmailTemplateGetHeaders: coreClient.CompositeMapper = { + serializedName: "EmailTemplate_getHeaders", type: { name: "Composite", - className: "AuthorizationServerCreateOrUpdateHeaders", + className: "EmailTemplateGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationServerUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_updateHeaders", +export const EmailTemplateUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "EmailTemplate_updateHeaders", type: { name: "Composite", - className: "AuthorizationServerUpdateHeaders", + className: "EmailTemplateUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationServerListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_listSecretsHeaders", +export const GatewayGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_getEntityTagHeaders", type: { name: "Composite", - className: "AuthorizationServerListSecretsHeaders", + className: "GatewayGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationProviderGetHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationProvider_getHeaders", +export const GatewayGetHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_getHeaders", type: { name: "Composite", - className: "AuthorizationProviderGetHeaders", + className: "GatewayGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationProvider_createOrUpdateHeaders", +export const GatewayCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_createOrUpdateHeaders", type: { name: "Composite", - className: "AuthorizationProviderCreateOrUpdateHeaders", + className: "GatewayCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationGetHeaders: coreClient.CompositeMapper = { - serializedName: "Authorization_getHeaders", +export const GatewayUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_updateHeaders", type: { name: "Composite", - className: "AuthorizationGetHeaders", + className: "GatewayUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Authorization_createOrUpdateHeaders", +export const GatewayListKeysHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_listKeysHeaders", type: { name: "Composite", - className: "AuthorizationCreateOrUpdateHeaders", + className: "GatewayListKeysHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const GatewayHostnameConfigurationGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "GatewayHostnameConfiguration_getEntityTagHeaders", + type: { + name: "Composite", + className: "GatewayHostnameConfigurationGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const GatewayHostnameConfigurationGetHeaders: coreClient.CompositeMapper = + { + serializedName: "GatewayHostnameConfiguration_getHeaders", + type: { + name: "Composite", + className: "GatewayHostnameConfigurationGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const GatewayHostnameConfigurationCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "GatewayHostnameConfiguration_createOrUpdateHeaders", + type: { + name: "Composite", + className: "GatewayHostnameConfigurationCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const AuthorizationConfirmConsentCodeHeaders: coreClient.CompositeMapper = { - serializedName: "Authorization_confirmConsentCodeHeaders", +export const GatewayApiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "GatewayApi_getEntityTagHeaders", type: { name: "Composite", - className: "AuthorizationConfirmConsentCodeHeaders", + className: "GatewayApiGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const GatewayCertificateAuthorityGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "GatewayCertificateAuthority_getEntityTagHeaders", + type: { + name: "Composite", + className: "GatewayCertificateAuthorityGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const GatewayCertificateAuthorityGetHeaders: coreClient.CompositeMapper = + { + serializedName: "GatewayCertificateAuthority_getHeaders", + type: { + name: "Composite", + className: "GatewayCertificateAuthorityGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const GatewayCertificateAuthorityCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "GatewayCertificateAuthority_createOrUpdateHeaders", + type: { + name: "Composite", + className: "GatewayCertificateAuthorityCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const AuthorizationLoginLinksPostHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationLoginLinks_postHeaders", +export const GroupGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Group_getEntityTagHeaders", type: { name: "Composite", - className: "AuthorizationLoginLinksPostHeaders", + className: "GroupGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationAccessPolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationAccessPolicy_getHeaders", +export const GroupGetHeaders: coreClient.CompositeMapper = { + serializedName: "Group_getHeaders", type: { name: "Composite", - className: "AuthorizationAccessPolicyGetHeaders", + className: "GroupGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationAccessPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationAccessPolicy_createOrUpdateHeaders", +export const GroupCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Group_createOrUpdateHeaders", type: { name: "Composite", - className: "AuthorizationAccessPolicyCreateOrUpdateHeaders", + className: "GroupCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const BackendGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Backend_getEntityTagHeaders", +export const GroupUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Group_updateHeaders", type: { name: "Composite", - className: "BackendGetEntityTagHeaders", + className: "GroupUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const BackendGetHeaders: coreClient.CompositeMapper = { - serializedName: "Backend_getHeaders", +export const IdentityProviderGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "IdentityProvider_getEntityTagHeaders", type: { name: "Composite", - className: "BackendGetHeaders", + className: "IdentityProviderGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const BackendCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Backend_createOrUpdateHeaders", +export const IdentityProviderGetHeaders: coreClient.CompositeMapper = { + serializedName: "IdentityProvider_getHeaders", type: { name: "Composite", - className: "BackendCreateOrUpdateHeaders", + className: "IdentityProviderGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const IdentityProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "IdentityProvider_createOrUpdateHeaders", + type: { + name: "Composite", + className: "IdentityProviderCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const BackendUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Backend_updateHeaders", +export const IdentityProviderUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "IdentityProvider_updateHeaders", type: { name: "Composite", - className: "BackendUpdateHeaders", + className: "IdentityProviderUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CacheGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Cache_getEntityTagHeaders", +export const IdentityProviderListSecretsHeaders: coreClient.CompositeMapper = { + serializedName: "IdentityProvider_listSecretsHeaders", type: { name: "Composite", - className: "CacheGetEntityTagHeaders", + className: "IdentityProviderListSecretsHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CacheGetHeaders: coreClient.CompositeMapper = { - serializedName: "Cache_getHeaders", +export const IssueGetHeaders: coreClient.CompositeMapper = { + serializedName: "Issue_getHeaders", type: { name: "Composite", - className: "CacheGetHeaders", + className: "IssueGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CacheCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Cache_createOrUpdateHeaders", +export const LoggerGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Logger_getEntityTagHeaders", type: { name: "Composite", - className: "CacheCreateOrUpdateHeaders", + className: "LoggerGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CacheUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Cache_updateHeaders", +export const LoggerGetHeaders: coreClient.CompositeMapper = { + serializedName: "Logger_getHeaders", type: { name: "Composite", - className: "CacheUpdateHeaders", + className: "LoggerGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CertificateGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Certificate_getEntityTagHeaders", +export const LoggerCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Logger_createOrUpdateHeaders", type: { name: "Composite", - className: "CertificateGetEntityTagHeaders", + className: "LoggerCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CertificateGetHeaders: coreClient.CompositeMapper = { - serializedName: "Certificate_getHeaders", +export const LoggerUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Logger_updateHeaders", type: { name: "Composite", - className: "CertificateGetHeaders", + className: "LoggerUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CertificateCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Certificate_createOrUpdateHeaders", +export const NamedValueGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_getEntityTagHeaders", type: { name: "Composite", - className: "CertificateCreateOrUpdateHeaders", + className: "NamedValueGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CertificateRefreshSecretHeaders: coreClient.CompositeMapper = { - serializedName: "Certificate_refreshSecretHeaders", +export const NamedValueGetHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_getHeaders", type: { name: "Composite", - className: "CertificateRefreshSecretHeaders", + className: "NamedValueGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ContentTypeGetHeaders: coreClient.CompositeMapper = { - serializedName: "ContentType_getHeaders", +export const NamedValueCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_createOrUpdateHeaders", type: { name: "Composite", - className: "ContentTypeGetHeaders", + className: "NamedValueCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, }; -export const ContentTypeCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ContentType_createOrUpdateHeaders", +export const NamedValueUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_updateHeaders", type: { name: "Composite", - className: "ContentTypeCreateOrUpdateHeaders", + className: "NamedValueUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ContentItemGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ContentItem_getEntityTagHeaders", +export const NamedValueListValueHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_listValueHeaders", type: { name: "Composite", - className: "ContentItemGetEntityTagHeaders", + className: "NamedValueListValueHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ContentItemGetHeaders: coreClient.CompositeMapper = { - serializedName: "ContentItem_getHeaders", +export const NamedValueRefreshSecretHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_refreshSecretHeaders", type: { name: "Composite", - className: "ContentItemGetHeaders", + className: "NamedValueRefreshSecretHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const OpenIdConnectProviderGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "OpenIdConnectProvider_getEntityTagHeaders", + type: { + name: "Composite", + className: "OpenIdConnectProviderGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ContentItemCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ContentItem_createOrUpdateHeaders", +export const OpenIdConnectProviderGetHeaders: coreClient.CompositeMapper = { + serializedName: "OpenIdConnectProvider_getHeaders", type: { name: "Composite", - className: "ContentItemCreateOrUpdateHeaders", + className: "OpenIdConnectProviderGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const OpenIdConnectProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "OpenIdConnectProvider_createOrUpdateHeaders", + type: { + name: "Composite", + className: "OpenIdConnectProviderCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const DeletedServicesPurgeHeaders: coreClient.CompositeMapper = { - serializedName: "DeletedServices_purgeHeaders", +export const OpenIdConnectProviderUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "OpenIdConnectProvider_updateHeaders", type: { name: "Composite", - className: "DeletedServicesPurgeHeaders", + className: "OpenIdConnectProviderUpdateHeaders", modelProperties: { - location: { - serializedName: "location", - xmlName: "location", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const OpenIdConnectProviderListSecretsHeaders: coreClient.CompositeMapper = + { + serializedName: "OpenIdConnectProvider_listSecretsHeaders", + type: { + name: "Composite", + className: "OpenIdConnectProviderListSecretsHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiManagementServiceRestoreHeaders: coreClient.CompositeMapper = { - serializedName: "ApiManagementService_restoreHeaders", +export const PolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Policy_getEntityTagHeaders", type: { name: "Composite", - className: "ApiManagementServiceRestoreHeaders", + className: "PolicyGetEntityTagHeaders", modelProperties: { - location: { - serializedName: "location", - xmlName: "location", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiManagementServiceBackupHeaders: coreClient.CompositeMapper = { - serializedName: "ApiManagementService_backupHeaders", +export const PolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "Policy_getHeaders", type: { name: "Composite", - className: "ApiManagementServiceBackupHeaders", + className: "PolicyGetHeaders", modelProperties: { - location: { - serializedName: "location", - xmlName: "location", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiManagementServiceMigrateToStv2Headers: coreClient.CompositeMapper = { - serializedName: "ApiManagementService_migrateToStv2Headers", +export const PolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Policy_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiManagementServiceMigrateToStv2Headers", + className: "PolicyCreateOrUpdateHeaders", modelProperties: { - location: { - serializedName: "location", - xmlName: "location", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders: coreClient.CompositeMapper = { - serializedName: - "ApiManagementService_applyNetworkConfigurationUpdatesHeaders", +export const PolicyFragmentGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyFragment_getEntityTagHeaders", type: { name: "Composite", - className: "ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders", + className: "PolicyFragmentGetEntityTagHeaders", modelProperties: { - location: { - serializedName: "location", - xmlName: "location", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Diagnostic_getEntityTagHeaders", +export const PolicyFragmentGetHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyFragment_getHeaders", type: { name: "Composite", - className: "DiagnosticGetEntityTagHeaders", + className: "PolicyFragmentGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DiagnosticGetHeaders: coreClient.CompositeMapper = { - serializedName: "Diagnostic_getHeaders", +export const PolicyFragmentCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyFragment_createOrUpdateHeaders", type: { name: "Composite", - className: "DiagnosticGetHeaders", + className: "PolicyFragmentCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const PolicyRestrictionGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "PolicyRestriction_getEntityTagHeaders", + type: { + name: "Composite", + className: "PolicyRestrictionGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const DiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Diagnostic_createOrUpdateHeaders", +export const PolicyRestrictionGetHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyRestriction_getHeaders", type: { name: "Composite", - className: "DiagnosticCreateOrUpdateHeaders", + className: "PolicyRestrictionGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const PolicyRestrictionCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "PolicyRestriction_createOrUpdateHeaders", + type: { + name: "Composite", + className: "PolicyRestrictionCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const DiagnosticUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Diagnostic_updateHeaders", +export const PolicyRestrictionUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyRestriction_updateHeaders", type: { name: "Composite", - className: "DiagnosticUpdateHeaders", + className: "PolicyRestrictionUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const PolicyRestrictionValidationsByServiceHeaders: coreClient.CompositeMapper = + { + serializedName: "PolicyRestrictionValidations_byServiceHeaders", + type: { + name: "Composite", + className: "PolicyRestrictionValidationsByServiceHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; -export const EmailTemplateGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "EmailTemplate_getEntityTagHeaders", +export const PortalConfigGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "PortalConfig_getEntityTagHeaders", type: { name: "Composite", - className: "EmailTemplateGetEntityTagHeaders", + className: "PortalConfigGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const EmailTemplateGetHeaders: coreClient.CompositeMapper = { - serializedName: "EmailTemplate_getHeaders", +export const PortalConfigGetHeaders: coreClient.CompositeMapper = { + serializedName: "PortalConfig_getHeaders", type: { name: "Composite", - className: "EmailTemplateGetHeaders", + className: "PortalConfigGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const EmailTemplateUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "EmailTemplate_updateHeaders", +export const PortalRevisionGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "PortalRevision_getEntityTagHeaders", type: { name: "Composite", - className: "EmailTemplateUpdateHeaders", + className: "PortalRevisionGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_getEntityTagHeaders", +export const PortalRevisionGetHeaders: coreClient.CompositeMapper = { + serializedName: "PortalRevision_getHeaders", type: { name: "Composite", - className: "GatewayGetEntityTagHeaders", + className: "PortalRevisionGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayGetHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_getHeaders", +export const PortalRevisionCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "PortalRevision_createOrUpdateHeaders", type: { name: "Composite", - className: "GatewayGetHeaders", + className: "PortalRevisionCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, }; -export const GatewayCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_createOrUpdateHeaders", +export const PortalRevisionUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "PortalRevision_updateHeaders", type: { name: "Composite", - className: "GatewayCreateOrUpdateHeaders", + className: "PortalRevisionUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_updateHeaders", +export const SignInSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "SignInSettings_getEntityTagHeaders", type: { name: "Composite", - className: "GatewayUpdateHeaders", + className: "SignInSettingsGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayListKeysHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_listKeysHeaders", +export const SignInSettingsGetHeaders: coreClient.CompositeMapper = { + serializedName: "SignInSettings_getHeaders", type: { name: "Composite", - className: "GatewayListKeysHeaders", + className: "SignInSettingsGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayHostnameConfigurationGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfiguration_getEntityTagHeaders", +export const SignUpSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "SignUpSettings_getEntityTagHeaders", type: { name: "Composite", - className: "GatewayHostnameConfigurationGetEntityTagHeaders", + className: "SignUpSettingsGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayHostnameConfigurationGetHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfiguration_getHeaders", +export const SignUpSettingsGetHeaders: coreClient.CompositeMapper = { + serializedName: "SignUpSettings_getHeaders", type: { name: "Composite", - className: "GatewayHostnameConfigurationGetHeaders", + className: "SignUpSettingsGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const DelegationSettingsGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "DelegationSettings_getEntityTagHeaders", + type: { + name: "Composite", + className: "DelegationSettingsGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const GatewayHostnameConfigurationCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfiguration_createOrUpdateHeaders", +export const DelegationSettingsGetHeaders: coreClient.CompositeMapper = { + serializedName: "DelegationSettings_getHeaders", type: { name: "Composite", - className: "GatewayHostnameConfigurationCreateOrUpdateHeaders", + className: "DelegationSettingsGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const PrivateEndpointConnectionCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "PrivateEndpointConnection_createOrUpdateHeaders", + type: { + name: "Composite", + className: "PrivateEndpointConnectionCreateOrUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const PrivateEndpointConnectionDeleteHeaders: coreClient.CompositeMapper = + { + serializedName: "PrivateEndpointConnection_deleteHeaders", + type: { + name: "Composite", + className: "PrivateEndpointConnectionDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; -export const GatewayApiGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayApi_getEntityTagHeaders", +export const ProductGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Product_getEntityTagHeaders", type: { name: "Composite", - className: "GatewayApiGetEntityTagHeaders", + className: "ProductGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayCertificateAuthorityGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayCertificateAuthority_getEntityTagHeaders", +export const ProductGetHeaders: coreClient.CompositeMapper = { + serializedName: "Product_getHeaders", type: { name: "Composite", - className: "GatewayCertificateAuthorityGetEntityTagHeaders", + className: "ProductGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayCertificateAuthorityGetHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayCertificateAuthority_getHeaders", +export const ProductCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Product_createOrUpdateHeaders", type: { name: "Composite", - className: "GatewayCertificateAuthorityGetHeaders", + className: "ProductCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayCertificateAuthorityCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayCertificateAuthority_createOrUpdateHeaders", +export const ProductUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Product_updateHeaders", type: { name: "Composite", - className: "GatewayCertificateAuthorityCreateOrUpdateHeaders", + className: "ProductUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GroupGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Group_getEntityTagHeaders", +export const ProductPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ProductPolicy_getEntityTagHeaders", type: { name: "Composite", - className: "GroupGetEntityTagHeaders", + className: "ProductPolicyGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GroupGetHeaders: coreClient.CompositeMapper = { - serializedName: "Group_getHeaders", +export const ProductPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "ProductPolicy_getHeaders", type: { name: "Composite", - className: "GroupGetHeaders", + className: "ProductPolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GroupCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Group_createOrUpdateHeaders", +export const ProductPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ProductPolicy_createOrUpdateHeaders", type: { name: "Composite", - className: "GroupCreateOrUpdateHeaders", + className: "ProductPolicyCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GroupUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Group_updateHeaders", +export const ProductWikiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_getEntityTagHeaders", type: { name: "Composite", - className: "GroupUpdateHeaders", + className: "ProductWikiGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_getEntityTagHeaders", +export const ProductWikiGetHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_getHeaders", type: { name: "Composite", - className: "IdentityProviderGetEntityTagHeaders", + className: "ProductWikiGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderGetHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_getHeaders", +export const ProductWikiCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_createOrUpdateHeaders", type: { name: "Composite", - className: "IdentityProviderGetHeaders", + className: "ProductWikiCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_createOrUpdateHeaders", +export const ProductWikiUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_updateHeaders", type: { name: "Composite", - className: "IdentityProviderCreateOrUpdateHeaders", + className: "ProductWikiUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_updateHeaders", +export const ProductWikisListHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWikis_listHeaders", type: { name: "Composite", - className: "IdentityProviderUpdateHeaders", + className: "ProductWikisListHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_listSecretsHeaders", +export const ProductWikisListNextHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWikis_listNextHeaders", type: { name: "Composite", - className: "IdentityProviderListSecretsHeaders", + className: "ProductWikisListNextHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IssueGetHeaders: coreClient.CompositeMapper = { - serializedName: "Issue_getHeaders", +export const ProductApiLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "ProductApiLink_getHeaders", type: { name: "Composite", - className: "IssueGetHeaders", + className: "ProductApiLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const LoggerGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Logger_getEntityTagHeaders", +export const ProductGroupLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "ProductGroupLink_getHeaders", type: { name: "Composite", - className: "LoggerGetEntityTagHeaders", + className: "ProductGroupLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const LoggerGetHeaders: coreClient.CompositeMapper = { - serializedName: "Logger_getHeaders", +export const GlobalSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "GlobalSchema_getEntityTagHeaders", type: { name: "Composite", - className: "LoggerGetHeaders", + className: "GlobalSchemaGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const LoggerCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Logger_createOrUpdateHeaders", +export const GlobalSchemaGetHeaders: coreClient.CompositeMapper = { + serializedName: "GlobalSchema_getHeaders", type: { name: "Composite", - className: "LoggerCreateOrUpdateHeaders", + className: "GlobalSchemaGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const LoggerUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Logger_updateHeaders", +export const GlobalSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GlobalSchema_createOrUpdateHeaders", type: { name: "Composite", - className: "LoggerUpdateHeaders", + className: "GlobalSchemaCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, }; -export const NamedValueGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_getEntityTagHeaders", +export const TenantSettingsGetHeaders: coreClient.CompositeMapper = { + serializedName: "TenantSettings_getHeaders", type: { name: "Composite", - className: "NamedValueGetEntityTagHeaders", + className: "TenantSettingsGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NamedValueGetHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_getHeaders", +export const SubscriptionGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_getEntityTagHeaders", type: { name: "Composite", - className: "NamedValueGetHeaders", + className: "SubscriptionGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NamedValueCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_createOrUpdateHeaders", +export const SubscriptionGetHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_getHeaders", type: { name: "Composite", - className: "NamedValueCreateOrUpdateHeaders", + className: "SubscriptionGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NamedValueUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_updateHeaders", +export const SubscriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_createOrUpdateHeaders", type: { name: "Composite", - className: "NamedValueUpdateHeaders", + className: "SubscriptionCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NamedValueListValueHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_listValueHeaders", +export const SubscriptionUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_updateHeaders", type: { name: "Composite", - className: "NamedValueListValueHeaders", + className: "SubscriptionUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NamedValueRefreshSecretHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_refreshSecretHeaders", +export const SubscriptionListSecretsHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_listSecretsHeaders", type: { name: "Composite", - className: "NamedValueRefreshSecretHeaders", + className: "SubscriptionListSecretsHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const OpenIdConnectProviderGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_getEntityTagHeaders", +export const TagApiLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "TagApiLink_getHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderGetEntityTagHeaders", + className: "TagApiLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const OpenIdConnectProviderGetHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_getHeaders", +export const TagOperationLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "TagOperationLink_getHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderGetHeaders", + className: "TagOperationLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const OpenIdConnectProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_createOrUpdateHeaders", +export const TagProductLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "TagProductLink_getHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderCreateOrUpdateHeaders", + className: "TagProductLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const OpenIdConnectProviderUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_updateHeaders", +export const TenantAccessGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_getEntityTagHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderUpdateHeaders", + className: "TenantAccessGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const OpenIdConnectProviderListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_listSecretsHeaders", +export const TenantAccessGetHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_getHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderListSecretsHeaders", + className: "TenantAccessGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PolicyGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Policy_getEntityTagHeaders", +export const TenantAccessCreateHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_createHeaders", type: { name: "Composite", - className: "PolicyGetEntityTagHeaders", + className: "TenantAccessCreateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "Policy_getHeaders", +export const TenantAccessUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_updateHeaders", type: { name: "Composite", - className: "PolicyGetHeaders", + className: "TenantAccessUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Policy_createOrUpdateHeaders", +export const TenantAccessListSecretsHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_listSecretsHeaders", type: { name: "Composite", - className: "PolicyCreateOrUpdateHeaders", + className: "TenantAccessListSecretsHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PolicyFragmentGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "PolicyFragment_getEntityTagHeaders", +export const TenantConfigurationDeployHeaders: coreClient.CompositeMapper = { + serializedName: "TenantConfiguration_deployHeaders", type: { name: "Composite", - className: "PolicyFragmentGetEntityTagHeaders", + className: "TenantConfigurationDeployHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PolicyFragmentGetHeaders: coreClient.CompositeMapper = { - serializedName: "PolicyFragment_getHeaders", +export const TenantConfigurationSaveHeaders: coreClient.CompositeMapper = { + serializedName: "TenantConfiguration_saveHeaders", type: { name: "Composite", - className: "PolicyFragmentGetHeaders", + className: "TenantConfigurationSaveHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PolicyFragmentCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "PolicyFragment_createOrUpdateHeaders", +export const TenantConfigurationValidateHeaders: coreClient.CompositeMapper = { + serializedName: "TenantConfiguration_validateHeaders", type: { name: "Composite", - className: "PolicyFragmentCreateOrUpdateHeaders", + className: "TenantConfigurationValidateHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalConfigGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "PortalConfig_getEntityTagHeaders", +export const UserGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "User_getEntityTagHeaders", type: { name: "Composite", - className: "PortalConfigGetEntityTagHeaders", + className: "UserGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalConfigGetHeaders: coreClient.CompositeMapper = { - serializedName: "PortalConfig_getHeaders", +export const UserGetHeaders: coreClient.CompositeMapper = { + serializedName: "User_getHeaders", type: { name: "Composite", - className: "PortalConfigGetHeaders", + className: "UserGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalRevisionGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "PortalRevision_getEntityTagHeaders", +export const UserCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "User_createOrUpdateHeaders", type: { name: "Composite", - className: "PortalRevisionGetEntityTagHeaders", + className: "UserCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalRevisionGetHeaders: coreClient.CompositeMapper = { - serializedName: "PortalRevision_getHeaders", +export const UserUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "User_updateHeaders", type: { name: "Composite", - className: "PortalRevisionGetHeaders", + className: "UserUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalRevisionCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "PortalRevision_createOrUpdateHeaders", +export const UserDeleteHeaders: coreClient.CompositeMapper = { + serializedName: "User_deleteHeaders", type: { name: "Composite", - className: "PortalRevisionCreateOrUpdateHeaders", + className: "UserDeleteHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalRevisionUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "PortalRevision_updateHeaders", +export const UserSubscriptionGetHeaders: coreClient.CompositeMapper = { + serializedName: "UserSubscription_getHeaders", type: { name: "Composite", - className: "PortalRevisionUpdateHeaders", + className: "UserSubscriptionGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SignInSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "SignInSettings_getEntityTagHeaders", +export const WorkspaceGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Workspace_getEntityTagHeaders", type: { name: "Composite", - className: "SignInSettingsGetEntityTagHeaders", + className: "WorkspaceGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SignInSettingsGetHeaders: coreClient.CompositeMapper = { - serializedName: "SignInSettings_getHeaders", +export const WorkspaceGetHeaders: coreClient.CompositeMapper = { + serializedName: "Workspace_getHeaders", type: { name: "Composite", - className: "SignInSettingsGetHeaders", + className: "WorkspaceGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SignUpSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "SignUpSettings_getEntityTagHeaders", +export const WorkspaceCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Workspace_createOrUpdateHeaders", type: { name: "Composite", - className: "SignUpSettingsGetEntityTagHeaders", + className: "WorkspaceCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SignUpSettingsGetHeaders: coreClient.CompositeMapper = { - serializedName: "SignUpSettings_getHeaders", +export const WorkspaceUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Workspace_updateHeaders", type: { name: "Composite", - className: "SignUpSettingsGetHeaders", + className: "WorkspaceUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DelegationSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "DelegationSettings_getEntityTagHeaders", +export const WorkspacePolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspacePolicy_getEntityTagHeaders", type: { name: "Composite", - className: "DelegationSettingsGetEntityTagHeaders", + className: "WorkspacePolicyGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DelegationSettingsGetHeaders: coreClient.CompositeMapper = { - serializedName: "DelegationSettings_getHeaders", +export const WorkspacePolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspacePolicy_getHeaders", type: { name: "Composite", - className: "DelegationSettingsGetHeaders", + className: "WorkspacePolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspacePolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspacePolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspacePolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspaceNamedValueGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceNamedValue_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceNamedValueGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Product_getEntityTagHeaders", +export const WorkspaceNamedValueGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceNamedValue_getHeaders", type: { name: "Composite", - className: "ProductGetEntityTagHeaders", + className: "WorkspaceNamedValueGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceNamedValueCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceNamedValue_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceNamedValueCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductGetHeaders: coreClient.CompositeMapper = { - serializedName: "Product_getHeaders", +export const WorkspaceNamedValueUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceNamedValue_updateHeaders", type: { name: "Composite", - className: "ProductGetHeaders", + className: "WorkspaceNamedValueUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ProductCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Product_createOrUpdateHeaders", +export const WorkspaceNamedValueListValueHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceNamedValue_listValueHeaders", type: { name: "Composite", - className: "ProductCreateOrUpdateHeaders", + className: "WorkspaceNamedValueListValueHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceNamedValueRefreshSecretHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceNamedValue_refreshSecretHeaders", + type: { + name: "Composite", + className: "WorkspaceNamedValueRefreshSecretHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspaceGlobalSchemaGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceGlobalSchema_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceGlobalSchemaGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Product_updateHeaders", +export const WorkspaceGlobalSchemaGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGlobalSchema_getHeaders", type: { name: "Composite", - className: "ProductUpdateHeaders", + className: "WorkspaceGlobalSchemaGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceGlobalSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceGlobalSchema_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceGlobalSchemaCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspacePolicyFragmentGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspacePolicyFragment_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspacePolicyFragmentGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ProductPolicy_getEntityTagHeaders", +export const WorkspacePolicyFragmentGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspacePolicyFragment_getHeaders", type: { name: "Composite", - className: "ProductPolicyGetEntityTagHeaders", + className: "WorkspacePolicyFragmentGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspacePolicyFragmentCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspacePolicyFragment_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspacePolicyFragmentCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductPolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "ProductPolicy_getHeaders", +export const WorkspaceGroupGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGroup_getEntityTagHeaders", type: { name: "Composite", - className: "ProductPolicyGetHeaders", + className: "WorkspaceGroupGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ProductPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ProductPolicy_createOrUpdateHeaders", +export const WorkspaceGroupGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGroup_getHeaders", type: { name: "Composite", - className: "ProductPolicyCreateOrUpdateHeaders", + className: "WorkspaceGroupGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ProductWikiGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ProductWiki_getEntityTagHeaders", +export const WorkspaceGroupCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGroup_createOrUpdateHeaders", type: { name: "Composite", - className: "ProductWikiGetEntityTagHeaders", + className: "WorkspaceGroupCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ProductWikiGetHeaders: coreClient.CompositeMapper = { - serializedName: "ProductWiki_getHeaders", +export const WorkspaceGroupUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGroup_updateHeaders", type: { name: "Composite", - className: "ProductWikiGetHeaders", + className: "WorkspaceGroupUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceSubscriptionGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceSubscription_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceSubscriptionGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductWikiCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ProductWiki_createOrUpdateHeaders", +export const WorkspaceSubscriptionGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceSubscription_getHeaders", type: { name: "Composite", - className: "ProductWikiCreateOrUpdateHeaders", + className: "WorkspaceSubscriptionGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceSubscriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceSubscription_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceSubscriptionCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductWikiUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ProductWiki_updateHeaders", +export const WorkspaceSubscriptionUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceSubscription_updateHeaders", type: { name: "Composite", - className: "ProductWikiUpdateHeaders", + className: "WorkspaceSubscriptionUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceSubscriptionListSecretsHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceSubscription_listSecretsHeaders", + type: { + name: "Composite", + className: "WorkspaceSubscriptionListSecretsHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspaceApiVersionSetGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiVersionSet_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceApiVersionSetGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductWikisListHeaders: coreClient.CompositeMapper = { - serializedName: "ProductWikis_listHeaders", +export const WorkspaceApiVersionSetGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiVersionSet_getHeaders", type: { name: "Composite", - className: "ProductWikisListHeaders", + className: "WorkspaceApiVersionSetGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiVersionSetCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiVersionSet_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceApiVersionSetCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductWikisListNextHeaders: coreClient.CompositeMapper = { - serializedName: "ProductWikis_listNextHeaders", +export const WorkspaceApiVersionSetUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiVersionSet_updateHeaders", type: { name: "Composite", - className: "ProductWikisListNextHeaders", + className: "WorkspaceApiVersionSetUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GlobalSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GlobalSchema_getEntityTagHeaders", +export const WorkspaceApiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApi_getEntityTagHeaders", type: { name: "Composite", - className: "GlobalSchemaGetEntityTagHeaders", + className: "WorkspaceApiGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GlobalSchemaGetHeaders: coreClient.CompositeMapper = { - serializedName: "GlobalSchema_getHeaders", +export const WorkspaceApiGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApi_getHeaders", type: { name: "Composite", - className: "GlobalSchemaGetHeaders", + className: "WorkspaceApiGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GlobalSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GlobalSchema_createOrUpdateHeaders", +export const WorkspaceApiCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApi_createOrUpdateHeaders", type: { name: "Composite", - className: "GlobalSchemaCreateOrUpdateHeaders", + className: "WorkspaceApiCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, }; -export const TenantSettingsGetHeaders: coreClient.CompositeMapper = { - serializedName: "TenantSettings_getHeaders", +export const WorkspaceApiUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApi_updateHeaders", type: { name: "Composite", - className: "TenantSettingsGetHeaders", + className: "WorkspaceApiUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiReleaseGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiRelease_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceApiReleaseGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const SubscriptionGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_getEntityTagHeaders", +export const WorkspaceApiReleaseGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiRelease_getHeaders", type: { name: "Composite", - className: "SubscriptionGetEntityTagHeaders", + className: "WorkspaceApiReleaseGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiReleaseCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiRelease_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceApiReleaseCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const SubscriptionGetHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_getHeaders", +export const WorkspaceApiReleaseUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiRelease_updateHeaders", type: { name: "Composite", - className: "SubscriptionGetHeaders", + className: "WorkspaceApiReleaseUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiOperationGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiOperation_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceApiOperationGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const SubscriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_createOrUpdateHeaders", +export const WorkspaceApiOperationGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiOperation_getHeaders", type: { name: "Composite", - className: "SubscriptionCreateOrUpdateHeaders", + className: "WorkspaceApiOperationGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiOperationCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiOperation_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceApiOperationCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const SubscriptionUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_updateHeaders", +export const WorkspaceApiOperationUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiOperation_updateHeaders", type: { name: "Composite", - className: "SubscriptionUpdateHeaders", + className: "WorkspaceApiOperationUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiOperationPolicyGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiOperationPolicy_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceApiOperationPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspaceApiOperationPolicyGetHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiOperationPolicy_getHeaders", + type: { + name: "Composite", + className: "WorkspaceApiOperationPolicyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspaceApiOperationPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiOperationPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceApiOperationPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspaceApiPolicyGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiPolicy_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceApiPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const SubscriptionListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_listSecretsHeaders", +export const WorkspaceApiPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiPolicy_getHeaders", type: { name: "Composite", - className: "SubscriptionListSecretsHeaders", + className: "WorkspaceApiPolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceApiPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspaceApiSchemaGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiSchema_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceApiSchemaGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const TenantAccessGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_getEntityTagHeaders", +export const WorkspaceApiSchemaGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiSchema_getHeaders", type: { name: "Composite", - className: "TenantAccessGetEntityTagHeaders", + className: "WorkspaceApiSchemaGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiSchema_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceApiSchemaCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; -export const TenantAccessGetHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_getHeaders", +export const WorkspaceProductGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProduct_getEntityTagHeaders", type: { name: "Composite", - className: "TenantAccessGetHeaders", + className: "WorkspaceProductGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TenantAccessCreateHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_createHeaders", +export const WorkspaceProductGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProduct_getHeaders", type: { name: "Composite", - className: "TenantAccessCreateHeaders", + className: "WorkspaceProductGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceProductCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceProduct_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceProductCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const TenantAccessUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_updateHeaders", +export const WorkspaceProductUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProduct_updateHeaders", type: { name: "Composite", - className: "TenantAccessUpdateHeaders", + className: "WorkspaceProductUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TenantAccessListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_listSecretsHeaders", +export const WorkspaceProductApiLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProductApiLink_getHeaders", type: { name: "Composite", - className: "TenantAccessListSecretsHeaders", + className: "WorkspaceProductApiLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const UserGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "User_getEntityTagHeaders", +export const WorkspaceProductGroupLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProductGroupLink_getHeaders", type: { name: "Composite", - className: "UserGetEntityTagHeaders", + className: "WorkspaceProductGroupLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceProductPolicyGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceProductPolicy_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceProductPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const UserGetHeaders: coreClient.CompositeMapper = { - serializedName: "User_getHeaders", +export const WorkspaceProductPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProductPolicy_getHeaders", type: { name: "Composite", - className: "UserGetHeaders", + className: "WorkspaceProductPolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceProductPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceProductPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceProductPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const UserCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "User_createOrUpdateHeaders", +export const WorkspaceTagGetEntityStateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTag_getEntityStateHeaders", type: { name: "Composite", - className: "UserCreateOrUpdateHeaders", + className: "WorkspaceTagGetEntityStateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const UserUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "User_updateHeaders", +export const WorkspaceTagGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTag_getHeaders", type: { name: "Composite", - className: "UserUpdateHeaders", + className: "WorkspaceTagGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const UserSubscriptionGetHeaders: coreClient.CompositeMapper = { - serializedName: "UserSubscription_getHeaders", +export const WorkspaceTagCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTag_createOrUpdateHeaders", type: { name: "Composite", - className: "UserSubscriptionGetHeaders", + className: "WorkspaceTagCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DocumentationGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Documentation_getEntityTagHeaders", +export const WorkspaceTagUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTag_updateHeaders", type: { name: "Composite", - className: "DocumentationGetEntityTagHeaders", + className: "WorkspaceTagUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DocumentationGetHeaders: coreClient.CompositeMapper = { - serializedName: "Documentation_getHeaders", +export const WorkspaceTagApiLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTagApiLink_getHeaders", type: { name: "Composite", - className: "DocumentationGetHeaders", + className: "WorkspaceTagApiLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DocumentationCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Documentation_createOrUpdateHeaders", +export const WorkspaceTagOperationLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTagOperationLink_getHeaders", type: { name: "Composite", - className: "DocumentationCreateOrUpdateHeaders", + className: "WorkspaceTagOperationLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DocumentationUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Documentation_updateHeaders", +export const WorkspaceTagProductLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTagProductLink_getHeaders", type: { name: "Composite", - className: "DocumentationUpdateHeaders", + className: "WorkspaceTagProductLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts b/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts index 5fbad6e2b16b..833baca72cdd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts @@ -9,9 +9,11 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { + ApiManagementGatewayResource as ApiManagementGatewayResourceMapper, + ApiManagementGatewayUpdateParameters as ApiManagementGatewayUpdateParametersMapper, ApiCreateOrUpdateParameter as ApiCreateOrUpdateParameterMapper, ApiUpdateContract as ApiUpdateContractMapper, ApiReleaseContract as ApiReleaseContractMapper, @@ -32,13 +34,13 @@ import { WikiUpdateContract as WikiUpdateContractMapper, ApiVersionSetContract as ApiVersionSetContractMapper, ApiVersionSetUpdateParameters as ApiVersionSetUpdateParametersMapper, - AuthorizationServerContract as AuthorizationServerContractMapper, - AuthorizationServerUpdateContract as AuthorizationServerUpdateContractMapper, AuthorizationProviderContract as AuthorizationProviderContractMapper, AuthorizationContract as AuthorizationContractMapper, AuthorizationConfirmConsentCodeRequestContract as AuthorizationConfirmConsentCodeRequestContractMapper, AuthorizationLoginRequestContract as AuthorizationLoginRequestContractMapper, AuthorizationAccessPolicyContract as AuthorizationAccessPolicyContractMapper, + AuthorizationServerContract as AuthorizationServerContractMapper, + AuthorizationServerUpdateContract as AuthorizationServerUpdateContractMapper, BackendContract as BackendContractMapper, BackendUpdateParameters as BackendUpdateParametersMapper, BackendReconnectContract as BackendReconnectContractMapper, @@ -51,12 +53,17 @@ import { ApiManagementServiceBackupRestoreParameters as ApiManagementServiceBackupRestoreParametersMapper, ApiManagementServiceResource as ApiManagementServiceResourceMapper, ApiManagementServiceUpdateParameters as ApiManagementServiceUpdateParametersMapper, + MigrateToStv2Contract as MigrateToStv2ContractMapper, ApiManagementServiceCheckNameAvailabilityParameters as ApiManagementServiceCheckNameAvailabilityParametersMapper, ApiManagementServiceApplyNetworkConfigurationParameters as ApiManagementServiceApplyNetworkConfigurationParametersMapper, + DocumentationContract as DocumentationContractMapper, + DocumentationUpdateContract as DocumentationUpdateContractMapper, EmailTemplateUpdateParameters as EmailTemplateUpdateParametersMapper, GatewayContract as GatewayContractMapper, GatewayKeyRegenerationRequestContract as GatewayKeyRegenerationRequestContractMapper, GatewayTokenRequestContract as GatewayTokenRequestContractMapper, + GatewayListDebugCredentialsContract as GatewayListDebugCredentialsContractMapper, + GatewayListTraceContract as GatewayListTraceContractMapper, GatewayHostnameConfigurationContract as GatewayHostnameConfigurationContractMapper, AssociationContract as AssociationContractMapper, GatewayCertificateAuthorityContract as GatewayCertificateAuthorityContractMapper, @@ -71,6 +78,8 @@ import { OpenidConnectProviderContract as OpenidConnectProviderContractMapper, OpenidConnectProviderUpdateContract as OpenidConnectProviderUpdateContractMapper, PolicyFragmentContract as PolicyFragmentContractMapper, + PolicyRestrictionContract as PolicyRestrictionContractMapper, + PolicyRestrictionUpdateContract as PolicyRestrictionUpdateContractMapper, PortalConfigContract as PortalConfigContractMapper, PortalRevisionContract as PortalRevisionContractMapper, PortalSigninSettings as PortalSigninSettingsMapper, @@ -79,10 +88,15 @@ import { PrivateEndpointConnectionRequest as PrivateEndpointConnectionRequestMapper, ProductContract as ProductContractMapper, ProductUpdateParameters as ProductUpdateParametersMapper, + ProductApiLinkContract as ProductApiLinkContractMapper, + ProductGroupLinkContract as ProductGroupLinkContractMapper, QuotaCounterValueUpdateContract as QuotaCounterValueUpdateContractMapper, GlobalSchemaContract as GlobalSchemaContractMapper, SubscriptionCreateParameters as SubscriptionCreateParametersMapper, SubscriptionUpdateParameters as SubscriptionUpdateParametersMapper, + TagApiLinkContract as TagApiLinkContractMapper, + TagOperationLinkContract as TagOperationLinkContractMapper, + TagProductLinkContract as TagProductLinkContractMapper, AccessInformationCreateParameters as AccessInformationCreateParametersMapper, AccessInformationUpdateParameters as AccessInformationUpdateParametersMapper, DeployConfigurationParameters as DeployConfigurationParametersMapper, @@ -90,8 +104,7 @@ import { UserCreateParameters as UserCreateParametersMapper, UserUpdateParameters as UserUpdateParametersMapper, UserTokenParameters as UserTokenParametersMapper, - DocumentationContract as DocumentationContractMapper, - DocumentationUpdateContract as DocumentationUpdateContractMapper + WorkspaceContract as WorkspaceContractMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -101,9 +114,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -113,10 +126,10 @@ export const $host: OperationURLParameter = { required: true, xmlName: "$host", type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const resourceGroupName: OperationURLParameter = { @@ -124,15 +137,15 @@ export const resourceGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, xmlName: "resourceGroupName", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const serviceName: OperationURLParameter = { @@ -141,15 +154,91 @@ export const serviceName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"), MaxLength: 50, - MinLength: 1 + MinLength: 1, }, serializedName: "serviceName", required: true, xmlName: "serviceName", type: { - name: "String" - } - } + name: "String", + }, + }, +}; + +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2023-09-01-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String", + }, + }, +}; + +export const subscriptionId: OperationURLParameter = { + parameterPath: "subscriptionId", + mapper: { + serializedName: "subscriptionId", + required: true, + xmlName: "subscriptionId", + type: { + name: "Uuid", + }, + }, +}; + +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + xmlName: "nextLink", + type: { + name: "String", + }, + }, + skipEncoding: true, +}; + +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], + mapper: { + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", + type: { + name: "String", + }, + }, +}; + +export const parameters: OperationParameter = { + parameterPath: "parameters", + mapper: ApiManagementGatewayResourceMapper, +}; + +export const gatewayName: OperationURLParameter = { + parameterPath: "gatewayName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"), + MaxLength: 50, + MinLength: 1, + }, + serializedName: "gatewayName", + required: true, + xmlName: "gatewayName", + type: { + name: "String", + }, + }, +}; + +export const parameters1: OperationParameter = { + parameterPath: "parameters", + mapper: ApiManagementGatewayUpdateParametersMapper, }; export const filter: OperationQueryParameter = { @@ -158,37 +247,37 @@ export const filter: OperationQueryParameter = { serializedName: "$filter", xmlName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const top: OperationQueryParameter = { parameterPath: ["options", "top"], mapper: { constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "$top", xmlName: "$top", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const skip: OperationQueryParameter = { parameterPath: ["options", "skip"], mapper: { constraints: { - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "$skip", xmlName: "$skip", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const tags: OperationQueryParameter = { @@ -197,9 +286,9 @@ export const tags: OperationQueryParameter = { serializedName: "tags", xmlName: "tags", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const expandApiVersionSet: OperationQueryParameter = { @@ -208,36 +297,9 @@ export const expandApiVersionSet: OperationQueryParameter = { serializedName: "expandApiVersionSet", xmlName: "expandApiVersionSet", type: { - name: "Boolean" - } - } -}; - -export const apiVersion: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2022-08-01", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - -export const subscriptionId: OperationURLParameter = { - parameterPath: "subscriptionId", - mapper: { - constraints: { - MinLength: 1 + name: "Boolean", }, - serializedName: "subscriptionId", - required: true, - xmlName: "subscriptionId", - type: { - name: "String" - } - } + }, }; export const apiId: OperationURLParameter = { @@ -246,32 +308,20 @@ export const apiId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "apiId", required: true, xmlName: "apiId", type: { - name: "String" - } - } -}; - -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], - mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Content-Type", - type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters: OperationParameter = { +export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: ApiCreateOrUpdateParameterMapper + mapper: ApiCreateOrUpdateParameterMapper, }; export const ifMatch: OperationParameter = { @@ -280,14 +330,14 @@ export const ifMatch: OperationParameter = { serializedName: "If-Match", xmlName: "If-Match", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters1: OperationParameter = { +export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: ApiUpdateContractMapper + mapper: ApiUpdateContractMapper, }; export const ifMatch1: OperationParameter = { @@ -297,9 +347,9 @@ export const ifMatch1: OperationParameter = { required: true, xmlName: "If-Match", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const deleteRevisions: OperationQueryParameter = { @@ -308,9 +358,9 @@ export const deleteRevisions: OperationQueryParameter = { serializedName: "deleteRevisions", xmlName: "deleteRevisions", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const includeNotTaggedApis: OperationQueryParameter = { @@ -319,22 +369,9 @@ export const includeNotTaggedApis: OperationQueryParameter = { serializedName: "includeNotTaggedApis", xmlName: "includeNotTaggedApis", type: { - name: "Boolean" - } - } -}; - -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - xmlName: "nextLink", - type: { - name: "String" - } + name: "Boolean", + }, }, - skipEncoding: true }; export const apiId1: OperationURLParameter = { @@ -342,15 +379,15 @@ export const apiId1: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "apiId", required: true, xmlName: "apiId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const releaseId: OperationURLParameter = { @@ -359,20 +396,20 @@ export const releaseId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "releaseId", required: true, xmlName: "releaseId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters2: OperationParameter = { +export const parameters4: OperationParameter = { parameterPath: "parameters", - mapper: ApiReleaseContractMapper + mapper: ApiReleaseContractMapper, }; export const operationId: OperationURLParameter = { @@ -380,25 +417,25 @@ export const operationId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "operationId", required: true, xmlName: "operationId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters3: OperationParameter = { +export const parameters5: OperationParameter = { parameterPath: "parameters", - mapper: OperationContractMapper + mapper: OperationContractMapper, }; -export const parameters4: OperationParameter = { +export const parameters6: OperationParameter = { parameterPath: "parameters", - mapper: OperationUpdateContractMapper + mapper: OperationUpdateContractMapper, }; export const policyId: OperationURLParameter = { @@ -408,9 +445,9 @@ export const policyId: OperationURLParameter = { required: true, xmlName: "policyId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const format: OperationQueryParameter = { @@ -420,14 +457,14 @@ export const format: OperationQueryParameter = { serializedName: "format", xmlName: "format", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters5: OperationParameter = { +export const parameters7: OperationParameter = { parameterPath: "parameters", - mapper: PolicyContractMapper + mapper: PolicyContractMapper, }; export const tagId: OperationURLParameter = { @@ -436,15 +473,15 @@ export const tagId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "tagId", required: true, xmlName: "tagId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const productId: OperationURLParameter = { @@ -452,15 +489,15 @@ export const productId: OperationURLParameter = { mapper: { constraints: { MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "productId", required: true, xmlName: "productId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const scope: OperationQueryParameter = { @@ -469,14 +506,14 @@ export const scope: OperationQueryParameter = { serializedName: "scope", xmlName: "scope", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters6: OperationParameter = { +export const parameters8: OperationParameter = { parameterPath: "parameters", - mapper: TagCreateUpdateParametersMapper + mapper: TagCreateUpdateParametersMapper, }; export const resolverId: OperationURLParameter = { @@ -484,25 +521,25 @@ export const resolverId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "resolverId", required: true, xmlName: "resolverId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters7: OperationParameter = { +export const parameters9: OperationParameter = { parameterPath: "parameters", - mapper: ResolverContractMapper + mapper: ResolverContractMapper, }; -export const parameters8: OperationParameter = { +export const parameters10: OperationParameter = { parameterPath: "parameters", - mapper: ResolverUpdateContractMapper + mapper: ResolverUpdateContractMapper, }; export const accept1: OperationParameter = { @@ -513,9 +550,9 @@ export const accept1: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const schemaId: OperationURLParameter = { @@ -523,20 +560,20 @@ export const schemaId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "schemaId", required: true, xmlName: "schemaId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters9: OperationParameter = { +export const parameters11: OperationParameter = { parameterPath: "parameters", - mapper: SchemaContractMapper + mapper: SchemaContractMapper, }; export const force: OperationQueryParameter = { @@ -545,9 +582,9 @@ export const force: OperationQueryParameter = { serializedName: "force", xmlName: "force", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const diagnosticId: OperationURLParameter = { @@ -556,20 +593,20 @@ export const diagnosticId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "diagnosticId", required: true, xmlName: "diagnosticId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters10: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", - mapper: DiagnosticContractMapper + mapper: DiagnosticContractMapper, }; export const expandCommentsAttachments: OperationQueryParameter = { @@ -578,9 +615,9 @@ export const expandCommentsAttachments: OperationQueryParameter = { serializedName: "expandCommentsAttachments", xmlName: "expandCommentsAttachments", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const issueId: OperationURLParameter = { @@ -589,25 +626,25 @@ export const issueId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "issueId", required: true, xmlName: "issueId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters11: OperationParameter = { +export const parameters13: OperationParameter = { parameterPath: "parameters", - mapper: IssueContractMapper + mapper: IssueContractMapper, }; -export const parameters12: OperationParameter = { +export const parameters14: OperationParameter = { parameterPath: "parameters", - mapper: IssueUpdateContractMapper + mapper: IssueUpdateContractMapper, }; export const commentId: OperationURLParameter = { @@ -616,20 +653,20 @@ export const commentId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "commentId", required: true, xmlName: "commentId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters13: OperationParameter = { +export const parameters15: OperationParameter = { parameterPath: "parameters", - mapper: IssueCommentContractMapper + mapper: IssueCommentContractMapper, }; export const attachmentId: OperationURLParameter = { @@ -638,20 +675,20 @@ export const attachmentId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "attachmentId", required: true, xmlName: "attachmentId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters14: OperationParameter = { +export const parameters16: OperationParameter = { parameterPath: "parameters", - mapper: IssueAttachmentContractMapper + mapper: IssueAttachmentContractMapper, }; export const tagDescriptionId: OperationURLParameter = { @@ -660,20 +697,20 @@ export const tagDescriptionId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "tagDescriptionId", required: true, xmlName: "tagDescriptionId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters15: OperationParameter = { +export const parameters17: OperationParameter = { parameterPath: "parameters", - mapper: TagDescriptionCreateParametersMapper + mapper: TagDescriptionCreateParametersMapper, }; export const includeNotTaggedOperations: OperationQueryParameter = { @@ -682,19 +719,19 @@ export const includeNotTaggedOperations: OperationQueryParameter = { serializedName: "includeNotTaggedOperations", xmlName: "includeNotTaggedOperations", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; -export const parameters16: OperationParameter = { +export const parameters18: OperationParameter = { parameterPath: "parameters", - mapper: WikiContractMapper + mapper: WikiContractMapper, }; -export const parameters17: OperationParameter = { +export const parameters19: OperationParameter = { parameterPath: "parameters", - mapper: WikiUpdateContractMapper + mapper: WikiUpdateContractMapper, }; export const format1: OperationQueryParameter = { @@ -704,9 +741,9 @@ export const format1: OperationQueryParameter = { required: true, xmlName: "format", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const exportParam: OperationQueryParameter = { @@ -716,9 +753,9 @@ export const exportParam: OperationQueryParameter = { required: true, xmlName: "export", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const versionSetId: OperationURLParameter = { @@ -727,52 +764,25 @@ export const versionSetId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "versionSetId", required: true, xmlName: "versionSetId", type: { - name: "String" - } - } -}; - -export const parameters18: OperationParameter = { - parameterPath: "parameters", - mapper: ApiVersionSetContractMapper -}; - -export const parameters19: OperationParameter = { - parameterPath: "parameters", - mapper: ApiVersionSetUpdateParametersMapper -}; - -export const authsid: OperationURLParameter = { - parameterPath: "authsid", - mapper: { - constraints: { - Pattern: new RegExp("^[^*#&+:<>?]+$"), - MaxLength: 80, - MinLength: 1 + name: "String", }, - serializedName: "authsid", - required: true, - xmlName: "authsid", - type: { - name: "String" - } - } + }, }; export const parameters20: OperationParameter = { parameterPath: "parameters", - mapper: AuthorizationServerContractMapper + mapper: ApiVersionSetContractMapper, }; export const parameters21: OperationParameter = { parameterPath: "parameters", - mapper: AuthorizationServerUpdateContractMapper + mapper: ApiVersionSetUpdateParametersMapper, }; export const authorizationProviderId: OperationURLParameter = { @@ -781,20 +791,20 @@ export const authorizationProviderId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "authorizationProviderId", required: true, xmlName: "authorizationProviderId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters22: OperationParameter = { parameterPath: "parameters", - mapper: AuthorizationProviderContractMapper + mapper: AuthorizationProviderContractMapper, }; export const authorizationId: OperationURLParameter = { @@ -803,30 +813,30 @@ export const authorizationId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "authorizationId", required: true, xmlName: "authorizationId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters23: OperationParameter = { parameterPath: "parameters", - mapper: AuthorizationContractMapper + mapper: AuthorizationContractMapper, }; export const parameters24: OperationParameter = { parameterPath: "parameters", - mapper: AuthorizationConfirmConsentCodeRequestContractMapper + mapper: AuthorizationConfirmConsentCodeRequestContractMapper, }; export const parameters25: OperationParameter = { parameterPath: "parameters", - mapper: AuthorizationLoginRequestContractMapper + mapper: AuthorizationLoginRequestContractMapper, }; export const authorizationAccessPolicyId: OperationURLParameter = { @@ -835,78 +845,105 @@ export const authorizationAccessPolicyId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "authorizationAccessPolicyId", required: true, xmlName: "authorizationAccessPolicyId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters26: OperationParameter = { parameterPath: "parameters", - mapper: AuthorizationAccessPolicyContractMapper + mapper: AuthorizationAccessPolicyContractMapper, }; -export const backendId: OperationURLParameter = { - parameterPath: "backendId", +export const authsid: OperationURLParameter = { + parameterPath: "authsid", mapper: { constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, - serializedName: "backendId", + serializedName: "authsid", required: true, - xmlName: "backendId", + xmlName: "authsid", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters27: OperationParameter = { parameterPath: "parameters", - mapper: BackendContractMapper + mapper: AuthorizationServerContractMapper, }; export const parameters28: OperationParameter = { parameterPath: "parameters", - mapper: BackendUpdateParametersMapper -}; - -export const parameters29: OperationParameter = { - parameterPath: ["options", "parameters"], - mapper: BackendReconnectContractMapper + mapper: AuthorizationServerUpdateContractMapper, }; -export const cacheId: OperationURLParameter = { - parameterPath: "cacheId", +export const backendId: OperationURLParameter = { + parameterPath: "backendId", mapper: { constraints: { - Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, - serializedName: "cacheId", + serializedName: "backendId", required: true, - xmlName: "cacheId", + xmlName: "backendId", type: { - name: "String" - } - } + name: "String", + }, + }, +}; + +export const parameters29: OperationParameter = { + parameterPath: "parameters", + mapper: BackendContractMapper, }; export const parameters30: OperationParameter = { parameterPath: "parameters", - mapper: CacheContractMapper + mapper: BackendUpdateParametersMapper, }; export const parameters31: OperationParameter = { + parameterPath: ["options", "parameters"], + mapper: BackendReconnectContractMapper, +}; + +export const cacheId: OperationURLParameter = { + parameterPath: "cacheId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 80, + MinLength: 1, + }, + serializedName: "cacheId", + required: true, + xmlName: "cacheId", + type: { + name: "String", + }, + }, +}; + +export const parameters32: OperationParameter = { + parameterPath: "parameters", + mapper: CacheContractMapper, +}; + +export const parameters33: OperationParameter = { parameterPath: "parameters", - mapper: CacheUpdateParametersMapper + mapper: CacheUpdateParametersMapper, }; export const isKeyVaultRefreshFailed: OperationQueryParameter = { @@ -915,9 +952,9 @@ export const isKeyVaultRefreshFailed: OperationQueryParameter = { serializedName: "isKeyVaultRefreshFailed", xmlName: "isKeyVaultRefreshFailed", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const certificateId: OperationURLParameter = { @@ -926,25 +963,25 @@ export const certificateId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "certificateId", required: true, xmlName: "certificateId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters32: OperationParameter = { +export const parameters34: OperationParameter = { parameterPath: "parameters", - mapper: CertificateCreateOrUpdateParametersMapper + mapper: CertificateCreateOrUpdateParametersMapper, }; export const connectivityCheckRequestParams: OperationParameter = { parameterPath: "connectivityCheckRequestParams", - mapper: ConnectivityCheckRequestMapper + mapper: ConnectivityCheckRequestMapper, }; export const contentTypeId: OperationURLParameter = { @@ -952,20 +989,20 @@ export const contentTypeId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "contentTypeId", required: true, xmlName: "contentTypeId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters33: OperationParameter = { +export const parameters35: OperationParameter = { parameterPath: "parameters", - mapper: ContentTypeContractMapper + mapper: ContentTypeContractMapper, }; export const contentItemId: OperationURLParameter = { @@ -973,20 +1010,20 @@ export const contentItemId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "contentItemId", required: true, xmlName: "contentItemId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters34: OperationParameter = { +export const parameters36: OperationParameter = { parameterPath: "parameters", - mapper: ContentItemContractMapper + mapper: ContentItemContractMapper, }; export const location: OperationURLParameter = { @@ -996,34 +1033,66 @@ export const location: OperationURLParameter = { required: true, xmlName: "location", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters35: OperationParameter = { +export const parameters37: OperationParameter = { parameterPath: "parameters", - mapper: ApiManagementServiceBackupRestoreParametersMapper + mapper: ApiManagementServiceBackupRestoreParametersMapper, }; -export const parameters36: OperationParameter = { +export const parameters38: OperationParameter = { parameterPath: "parameters", - mapper: ApiManagementServiceResourceMapper + mapper: ApiManagementServiceResourceMapper, }; -export const parameters37: OperationParameter = { +export const parameters39: OperationParameter = { parameterPath: "parameters", - mapper: ApiManagementServiceUpdateParametersMapper + mapper: ApiManagementServiceUpdateParametersMapper, }; -export const parameters38: OperationParameter = { +export const parameters40: OperationParameter = { + parameterPath: ["options", "parameters"], + mapper: MigrateToStv2ContractMapper, +}; + +export const parameters41: OperationParameter = { parameterPath: "parameters", - mapper: ApiManagementServiceCheckNameAvailabilityParametersMapper + mapper: ApiManagementServiceCheckNameAvailabilityParametersMapper, }; -export const parameters39: OperationParameter = { +export const parameters42: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: ApiManagementServiceApplyNetworkConfigurationParametersMapper + mapper: ApiManagementServiceApplyNetworkConfigurationParametersMapper, +}; + +export const documentationId: OperationURLParameter = { + parameterPath: "documentationId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 256, + MinLength: 1, + }, + serializedName: "documentationId", + required: true, + xmlName: "documentationId", + type: { + name: "String", + }, + }, +}; + +export const parameters43: OperationParameter = { + parameterPath: "parameters", + mapper: DocumentationContractMapper, +}; + +export const parameters44: OperationParameter = { + parameterPath: "parameters", + mapper: DocumentationUpdateContractMapper, }; export const templateName: OperationURLParameter = { @@ -1033,14 +1102,14 @@ export const templateName: OperationURLParameter = { required: true, xmlName: "templateName", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters40: OperationParameter = { +export const parameters45: OperationParameter = { parameterPath: "parameters", - mapper: EmailTemplateUpdateParametersMapper + mapper: EmailTemplateUpdateParametersMapper, }; export const gatewayId: OperationURLParameter = { @@ -1048,30 +1117,40 @@ export const gatewayId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "gatewayId", required: true, xmlName: "gatewayId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters41: OperationParameter = { +export const parameters46: OperationParameter = { parameterPath: "parameters", - mapper: GatewayContractMapper + mapper: GatewayContractMapper, }; -export const parameters42: OperationParameter = { +export const parameters47: OperationParameter = { parameterPath: "parameters", - mapper: GatewayKeyRegenerationRequestContractMapper + mapper: GatewayKeyRegenerationRequestContractMapper, }; -export const parameters43: OperationParameter = { +export const parameters48: OperationParameter = { + parameterPath: "parameters", + mapper: GatewayTokenRequestContractMapper, +}; + +export const parameters49: OperationParameter = { + parameterPath: "parameters", + mapper: GatewayListDebugCredentialsContractMapper, +}; + +export const parameters50: OperationParameter = { parameterPath: "parameters", - mapper: GatewayTokenRequestContractMapper + mapper: GatewayListTraceContractMapper, }; export const hcId: OperationURLParameter = { @@ -1079,30 +1158,30 @@ export const hcId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "hcId", required: true, xmlName: "hcId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters44: OperationParameter = { +export const parameters51: OperationParameter = { parameterPath: "parameters", - mapper: GatewayHostnameConfigurationContractMapper + mapper: GatewayHostnameConfigurationContractMapper, }; -export const parameters45: OperationParameter = { +export const parameters52: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: AssociationContractMapper + mapper: AssociationContractMapper, }; -export const parameters46: OperationParameter = { +export const parameters53: OperationParameter = { parameterPath: "parameters", - mapper: GatewayCertificateAuthorityContractMapper + mapper: GatewayCertificateAuthorityContractMapper, }; export const groupId: OperationURLParameter = { @@ -1110,25 +1189,25 @@ export const groupId: OperationURLParameter = { mapper: { constraints: { MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "groupId", required: true, xmlName: "groupId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters47: OperationParameter = { +export const parameters54: OperationParameter = { parameterPath: "parameters", - mapper: GroupCreateParametersMapper + mapper: GroupCreateParametersMapper, }; -export const parameters48: OperationParameter = { +export const parameters55: OperationParameter = { parameterPath: "parameters", - mapper: GroupUpdateParametersMapper + mapper: GroupUpdateParametersMapper, }; export const userId: OperationURLParameter = { @@ -1136,15 +1215,15 @@ export const userId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "userId", required: true, xmlName: "userId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const identityProviderName: OperationURLParameter = { @@ -1154,19 +1233,19 @@ export const identityProviderName: OperationURLParameter = { required: true, xmlName: "identityProviderName", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters49: OperationParameter = { +export const parameters56: OperationParameter = { parameterPath: "parameters", - mapper: IdentityProviderCreateContractMapper + mapper: IdentityProviderCreateContractMapper, }; -export const parameters50: OperationParameter = { +export const parameters57: OperationParameter = { parameterPath: "parameters", - mapper: IdentityProviderUpdateParametersMapper + mapper: IdentityProviderUpdateParametersMapper, }; export const loggerId: OperationURLParameter = { @@ -1174,25 +1253,25 @@ export const loggerId: OperationURLParameter = { mapper: { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), - MaxLength: 256 + MaxLength: 256, }, serializedName: "loggerId", required: true, xmlName: "loggerId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters51: OperationParameter = { +export const parameters58: OperationParameter = { parameterPath: "parameters", - mapper: LoggerContractMapper + mapper: LoggerContractMapper, }; -export const parameters52: OperationParameter = { +export const parameters59: OperationParameter = { parameterPath: "parameters", - mapper: LoggerUpdateContractMapper + mapper: LoggerUpdateContractMapper, }; export const namedValueId: OperationURLParameter = { @@ -1200,40 +1279,40 @@ export const namedValueId: OperationURLParameter = { mapper: { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), - MaxLength: 256 + MaxLength: 256, }, serializedName: "namedValueId", required: true, xmlName: "namedValueId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters53: OperationParameter = { +export const parameters60: OperationParameter = { parameterPath: "parameters", - mapper: NamedValueCreateContractMapper + mapper: NamedValueCreateContractMapper, }; -export const parameters54: OperationParameter = { +export const parameters61: OperationParameter = { parameterPath: "parameters", - mapper: NamedValueUpdateParametersMapper + mapper: NamedValueUpdateParametersMapper, }; export const locationName: OperationURLParameter = { parameterPath: "locationName", mapper: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "locationName", required: true, xmlName: "locationName", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const notificationName: OperationURLParameter = { @@ -1243,9 +1322,9 @@ export const notificationName: OperationURLParameter = { required: true, xmlName: "notificationName", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const email: OperationURLParameter = { @@ -1255,9 +1334,9 @@ export const email: OperationURLParameter = { required: true, xmlName: "email", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const opid: OperationURLParameter = { @@ -1265,25 +1344,25 @@ export const opid: OperationURLParameter = { mapper: { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), - MaxLength: 256 + MaxLength: 256, }, serializedName: "opid", required: true, xmlName: "opid", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters55: OperationParameter = { +export const parameters62: OperationParameter = { parameterPath: "parameters", - mapper: OpenidConnectProviderContractMapper + mapper: OpenidConnectProviderContractMapper, }; -export const parameters56: OperationParameter = { +export const parameters63: OperationParameter = { parameterPath: "parameters", - mapper: OpenidConnectProviderUpdateContractMapper + mapper: OpenidConnectProviderUpdateContractMapper, }; export const scope1: OperationQueryParameter = { @@ -1293,9 +1372,9 @@ export const scope1: OperationQueryParameter = { xmlName: "scope", type: { name: "Enum", - allowedValues: ["Tenant", "Product", "Api", "Operation", "All"] - } - } + allowedValues: ["Tenant", "Product", "Api", "Operation", "All"], + }, + }, }; export const orderby: OperationQueryParameter = { @@ -1304,9 +1383,9 @@ export const orderby: OperationQueryParameter = { serializedName: "$orderby", xmlName: "$orderby", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const id: OperationURLParameter = { @@ -1315,15 +1394,15 @@ export const id: OperationURLParameter = { constraints: { Pattern: new RegExp("(^[\\w]+$)|(^[\\w][\\w\\-]+[\\w]$)"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "id", required: true, xmlName: "id", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const format2: OperationQueryParameter = { @@ -1332,14 +1411,40 @@ export const format2: OperationQueryParameter = { serializedName: "format", xmlName: "format", type: { - name: "String" - } - } + name: "String", + }, + }, +}; + +export const parameters64: OperationParameter = { + parameterPath: "parameters", + mapper: PolicyFragmentContractMapper, +}; + +export const policyRestrictionId: OperationURLParameter = { + parameterPath: "policyRestrictionId", + mapper: { + constraints: { + MaxLength: 80, + MinLength: 1, + }, + serializedName: "policyRestrictionId", + required: true, + xmlName: "policyRestrictionId", + type: { + name: "String", + }, + }, }; -export const parameters57: OperationParameter = { +export const parameters65: OperationParameter = { parameterPath: "parameters", - mapper: PolicyFragmentContractMapper + mapper: PolicyRestrictionContractMapper, +}; + +export const parameters66: OperationParameter = { + parameterPath: "parameters", + mapper: PolicyRestrictionUpdateContractMapper, }; export const portalConfigId: OperationURLParameter = { @@ -1347,20 +1452,20 @@ export const portalConfigId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "portalConfigId", required: true, xmlName: "portalConfigId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters58: OperationParameter = { +export const parameters67: OperationParameter = { parameterPath: "parameters", - mapper: PortalConfigContractMapper + mapper: PortalConfigContractMapper, }; export const portalRevisionId: OperationURLParameter = { @@ -1368,35 +1473,35 @@ export const portalRevisionId: OperationURLParameter = { mapper: { constraints: { MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "portalRevisionId", required: true, xmlName: "portalRevisionId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters59: OperationParameter = { +export const parameters68: OperationParameter = { parameterPath: "parameters", - mapper: PortalRevisionContractMapper + mapper: PortalRevisionContractMapper, }; -export const parameters60: OperationParameter = { +export const parameters69: OperationParameter = { parameterPath: "parameters", - mapper: PortalSigninSettingsMapper + mapper: PortalSigninSettingsMapper, }; -export const parameters61: OperationParameter = { +export const parameters70: OperationParameter = { parameterPath: "parameters", - mapper: PortalSignupSettingsMapper + mapper: PortalSignupSettingsMapper, }; -export const parameters62: OperationParameter = { +export const parameters71: OperationParameter = { parameterPath: "parameters", - mapper: PortalDelegationSettingsMapper + mapper: PortalDelegationSettingsMapper, }; export const privateEndpointConnectionName: OperationURLParameter = { @@ -1406,14 +1511,14 @@ export const privateEndpointConnectionName: OperationURLParameter = { required: true, xmlName: "privateEndpointConnectionName", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const privateEndpointConnectionRequest: OperationParameter = { parameterPath: "privateEndpointConnectionRequest", - mapper: PrivateEndpointConnectionRequestMapper + mapper: PrivateEndpointConnectionRequestMapper, }; export const privateLinkSubResourceName: OperationURLParameter = { @@ -1423,9 +1528,9 @@ export const privateLinkSubResourceName: OperationURLParameter = { required: true, xmlName: "privateLinkSubResourceName", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const expandGroups: OperationQueryParameter = { @@ -1434,19 +1539,19 @@ export const expandGroups: OperationQueryParameter = { serializedName: "expandGroups", xmlName: "expandGroups", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; -export const parameters63: OperationParameter = { +export const parameters72: OperationParameter = { parameterPath: "parameters", - mapper: ProductContractMapper + mapper: ProductContractMapper, }; -export const parameters64: OperationParameter = { +export const parameters73: OperationParameter = { parameterPath: "parameters", - mapper: ProductUpdateParametersMapper + mapper: ProductUpdateParametersMapper, }; export const deleteSubscriptions: OperationQueryParameter = { @@ -1455,9 +1560,9 @@ export const deleteSubscriptions: OperationQueryParameter = { serializedName: "deleteSubscriptions", xmlName: "deleteSubscriptions", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const includeNotTaggedProducts: OperationQueryParameter = { @@ -1466,9 +1571,53 @@ export const includeNotTaggedProducts: OperationQueryParameter = { serializedName: "includeNotTaggedProducts", xmlName: "includeNotTaggedProducts", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, +}; + +export const apiLinkId: OperationURLParameter = { + parameterPath: "apiLinkId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 80, + MinLength: 1, + }, + serializedName: "apiLinkId", + required: true, + xmlName: "apiLinkId", + type: { + name: "String", + }, + }, +}; + +export const parameters74: OperationParameter = { + parameterPath: "parameters", + mapper: ProductApiLinkContractMapper, +}; + +export const groupLinkId: OperationURLParameter = { + parameterPath: "groupLinkId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 80, + MinLength: 1, + }, + serializedName: "groupLinkId", + required: true, + xmlName: "groupLinkId", + type: { + name: "String", + }, + }, +}; + +export const parameters75: OperationParameter = { + parameterPath: "parameters", + mapper: ProductGroupLinkContractMapper, }; export const quotaCounterKey: OperationURLParameter = { @@ -1478,14 +1627,14 @@ export const quotaCounterKey: OperationURLParameter = { required: true, xmlName: "quotaCounterKey", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters65: OperationParameter = { +export const parameters76: OperationParameter = { parameterPath: "parameters", - mapper: QuotaCounterValueUpdateContractMapper + mapper: QuotaCounterValueUpdateContractMapper, }; export const quotaPeriodKey: OperationURLParameter = { @@ -1495,9 +1644,9 @@ export const quotaPeriodKey: OperationURLParameter = { required: true, xmlName: "quotaPeriodKey", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const filter1: OperationQueryParameter = { @@ -1507,9 +1656,9 @@ export const filter1: OperationQueryParameter = { required: true, xmlName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const interval: OperationQueryParameter = { @@ -1519,14 +1668,14 @@ export const interval: OperationQueryParameter = { required: true, xmlName: "interval", type: { - name: "TimeSpan" - } - } + name: "TimeSpan", + }, + }, }; -export const parameters66: OperationParameter = { +export const parameters77: OperationParameter = { parameterPath: "parameters", - mapper: GlobalSchemaContractMapper + mapper: GlobalSchemaContractMapper, }; export const settingsType: OperationURLParameter = { @@ -1536,9 +1685,9 @@ export const settingsType: OperationURLParameter = { required: true, xmlName: "settingsType", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const sid: OperationURLParameter = { @@ -1546,20 +1695,20 @@ export const sid: OperationURLParameter = { mapper: { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), - MaxLength: 256 + MaxLength: 256, }, serializedName: "sid", required: true, xmlName: "sid", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters67: OperationParameter = { +export const parameters78: OperationParameter = { parameterPath: "parameters", - mapper: SubscriptionCreateParametersMapper + mapper: SubscriptionCreateParametersMapper, }; export const notify: OperationQueryParameter = { @@ -1568,9 +1717,9 @@ export const notify: OperationQueryParameter = { serializedName: "notify", xmlName: "notify", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const appType: OperationQueryParameter = { @@ -1579,14 +1728,63 @@ export const appType: OperationQueryParameter = { serializedName: "appType", xmlName: "appType", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters68: OperationParameter = { +export const parameters79: OperationParameter = { + parameterPath: "parameters", + mapper: SubscriptionUpdateParametersMapper, +}; + +export const parameters80: OperationParameter = { + parameterPath: "parameters", + mapper: TagApiLinkContractMapper, +}; + +export const operationLinkId: OperationURLParameter = { + parameterPath: "operationLinkId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 80, + MinLength: 1, + }, + serializedName: "operationLinkId", + required: true, + xmlName: "operationLinkId", + type: { + name: "String", + }, + }, +}; + +export const parameters81: OperationParameter = { + parameterPath: "parameters", + mapper: TagOperationLinkContractMapper, +}; + +export const productLinkId: OperationURLParameter = { + parameterPath: "productLinkId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 80, + MinLength: 1, + }, + serializedName: "productLinkId", + required: true, + xmlName: "productLinkId", + type: { + name: "String", + }, + }, +}; + +export const parameters82: OperationParameter = { parameterPath: "parameters", - mapper: SubscriptionUpdateParametersMapper + mapper: TagProductLinkContractMapper, }; export const accessName: OperationURLParameter = { @@ -1596,24 +1794,24 @@ export const accessName: OperationURLParameter = { required: true, xmlName: "accessName", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters69: OperationParameter = { +export const parameters83: OperationParameter = { parameterPath: "parameters", - mapper: AccessInformationCreateParametersMapper + mapper: AccessInformationCreateParametersMapper, }; -export const parameters70: OperationParameter = { +export const parameters84: OperationParameter = { parameterPath: "parameters", - mapper: AccessInformationUpdateParametersMapper + mapper: AccessInformationUpdateParametersMapper, }; -export const parameters71: OperationParameter = { +export const parameters85: OperationParameter = { parameterPath: "parameters", - mapper: DeployConfigurationParametersMapper + mapper: DeployConfigurationParametersMapper, }; export const configurationName: OperationURLParameter = { @@ -1623,54 +1821,60 @@ export const configurationName: OperationURLParameter = { required: true, xmlName: "configurationName", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters72: OperationParameter = { +export const parameters86: OperationParameter = { parameterPath: "parameters", - mapper: SaveConfigurationParameterMapper + mapper: SaveConfigurationParameterMapper, }; -export const parameters73: OperationParameter = { +export const parameters87: OperationParameter = { parameterPath: "parameters", - mapper: UserCreateParametersMapper + mapper: UserCreateParametersMapper, }; -export const parameters74: OperationParameter = { +export const parameters88: OperationParameter = { parameterPath: "parameters", - mapper: UserUpdateParametersMapper + mapper: UserUpdateParametersMapper, }; -export const parameters75: OperationParameter = { +export const parameters89: OperationParameter = { parameterPath: "parameters", - mapper: UserTokenParametersMapper + mapper: UserTokenParametersMapper, }; -export const documentationId: OperationURLParameter = { - parameterPath: "documentationId", +export const workspaceId: OperationURLParameter = { + parameterPath: "workspaceId", mapper: { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), - MaxLength: 256, - MinLength: 1 + MaxLength: 80, + MinLength: 1, }, - serializedName: "documentationId", + serializedName: "workspaceId", required: true, - xmlName: "documentationId", + xmlName: "workspaceId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters76: OperationParameter = { +export const parameters90: OperationParameter = { parameterPath: "parameters", - mapper: DocumentationContractMapper + mapper: WorkspaceContractMapper, }; -export const parameters77: OperationParameter = { - parameterPath: "parameters", - mapper: DocumentationUpdateContractMapper +export const isKeyVaultRefreshFailed1: OperationQueryParameter = { + parameterPath: ["options", "isKeyVaultRefreshFailed"], + mapper: { + serializedName: "isKeyVaultRefreshFailed", + xmlName: "isKeyVaultRefreshFailed", + type: { + name: "String", + }, + }, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/allPolicies.ts b/sdk/apimanagement/arm-apimanagement/src/operations/allPolicies.ts new file mode 100644 index 000000000000..8e860e279b91 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/allPolicies.ts @@ -0,0 +1,201 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { AllPolicies } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + AllPoliciesContract, + AllPoliciesListByServiceNextOptionalParams, + AllPoliciesListByServiceOptionalParams, + AllPoliciesListByServiceResponse, + AllPoliciesListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing AllPolicies operations. */ +export class AllPoliciesImpl implements AllPolicies { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class AllPolicies class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Status of all policies of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + options?: AllPoliciesListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + options?: AllPoliciesListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: AllPoliciesListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + options?: AllPoliciesListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + )) { + yield* page; + } + } + + /** + * Status of all policies of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + options?: AllPoliciesListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listByServiceOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: AllPoliciesListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/allPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AllPoliciesCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AllPoliciesCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/api.ts b/sdk/apimanagement/arm-apimanagement/src/operations/api.ts index c1635689c9a8..7acbf6122cde 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/api.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/api.ts @@ -16,7 +16,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -39,8 +39,9 @@ import { ApiUpdateOptionalParams, ApiUpdateResponse, ApiDeleteOptionalParams, + ApiDeleteResponse, ApiListByServiceNextResponse, - ApiListByTagsNextResponse + ApiListByTagsNextResponse, } from "../models"; /// @@ -65,12 +66,12 @@ export class ApiImpl implements Api { public listByService( resourceGroupName: string, serviceName: string, - options?: ApiListByServiceOptionalParams + options?: ApiListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -87,9 +88,9 @@ export class ApiImpl implements Api { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -97,7 +98,7 @@ export class ApiImpl implements Api { resourceGroupName: string, serviceName: string, options?: ApiListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -105,7 +106,7 @@ export class ApiImpl implements Api { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -117,7 +118,7 @@ export class ApiImpl implements Api { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -129,12 +130,12 @@ export class ApiImpl implements Api { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: ApiListByServiceOptionalParams + options?: ApiListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -149,12 +150,12 @@ export class ApiImpl implements Api { public listByTags( resourceGroupName: string, serviceName: string, - options?: ApiListByTagsOptionalParams + options?: ApiListByTagsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByTagsPagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -171,9 +172,9 @@ export class ApiImpl implements Api { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -181,7 +182,7 @@ export class ApiImpl implements Api { resourceGroupName: string, serviceName: string, options?: ApiListByTagsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiListByTagsResponse; let continuationToken = settings?.continuationToken; @@ -197,7 +198,7 @@ export class ApiImpl implements Api { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -209,12 +210,12 @@ export class ApiImpl implements Api { private async *listByTagsPagingAll( resourceGroupName: string, serviceName: string, - options?: ApiListByTagsOptionalParams + options?: ApiListByTagsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByTagsPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -229,11 +230,11 @@ export class ApiImpl implements Api { private _listByService( resourceGroupName: string, serviceName: string, - options?: ApiListByServiceOptionalParams + options?: ApiListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -249,11 +250,11 @@ export class ApiImpl implements Api { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiGetEntityTagOptionalParams + options?: ApiGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -269,11 +270,11 @@ export class ApiImpl implements Api { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiGetOptionalParams + options?: ApiGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - getOperationSpec + getOperationSpec, ); } @@ -291,7 +292,7 @@ export class ApiImpl implements Api { serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, - options?: ApiCreateOrUpdateOptionalParams + options?: ApiCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -300,21 +301,20 @@ export class ApiImpl implements Api { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -323,8 +323,8 @@ export class ApiImpl implements Api { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -332,15 +332,15 @@ export class ApiImpl implements Api { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, apiId, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ApiCreateOrUpdateResponse, @@ -348,7 +348,7 @@ export class ApiImpl implements Api { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -368,14 +368,14 @@ export class ApiImpl implements Api { serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, - options?: ApiCreateOrUpdateOptionalParams + options?: ApiCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, apiId, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -397,11 +397,11 @@ export class ApiImpl implements Api { apiId: string, ifMatch: string, parameters: ApiUpdateContract, - options?: ApiUpdateOptionalParams + options?: ApiUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -415,17 +415,95 @@ export class ApiImpl implements Api { * response of the GET request or it should be * for unconditional update. * @param options The options parameters. */ - delete( + async beginDelete( resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, - options?: ApiDeleteOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, apiId, ifMatch, options }, - deleteOperationSpec + options?: ApiDeleteOptionalParams, + ): Promise< + SimplePollerLike, ApiDeleteResponse> + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, apiId, ifMatch, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + ApiDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Deletes the specified API of the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + apiId: string, + ifMatch: string, + options?: ApiDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + serviceName, + apiId, + ifMatch, + options, ); + return poller.pollUntilDone(); } /** @@ -437,11 +515,11 @@ export class ApiImpl implements Api { private _listByTags( resourceGroupName: string, serviceName: string, - options?: ApiListByTagsOptionalParams + options?: ApiListByTagsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByTagsOperationSpec + listByTagsOperationSpec, ); } @@ -456,11 +534,11 @@ export class ApiImpl implements Api { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ApiListByServiceNextOptionalParams + options?: ApiListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } @@ -475,11 +553,11 @@ export class ApiImpl implements Api { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ApiListByTagsNextOptionalParams + options?: ApiListByTagsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByTagsNextOperationSpec + listByTagsNextOperationSpec, ); } } @@ -487,45 +565,43 @@ export class ApiImpl implements Api { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiCollection + bodyMapper: Mappers.ApiCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, Parameters.tags, Parameters.expandApiVersionSet, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiGetEntityTagHeaders + headersMapper: Mappers.ApiGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -533,23 +609,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ApiContract, - headersMapper: Mappers.ApiGetHeaders + headersMapper: Mappers.ApiGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -557,93 +632,100 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ApiContract, - headersMapper: Mappers.ApiCreateOrUpdateHeaders + headersMapper: Mappers.ApiCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.ApiContract, - headersMapper: Mappers.ApiCreateOrUpdateHeaders + headersMapper: Mappers.ApiCreateOrUpdateHeaders, }, 202: { bodyMapper: Mappers.ApiContract, - headersMapper: Mappers.ApiCreateOrUpdateHeaders + headersMapper: Mappers.ApiCreateOrUpdateHeaders, }, 204: { bodyMapper: Mappers.ApiContract, - headersMapper: Mappers.ApiCreateOrUpdateHeaders + headersMapper: Mappers.ApiCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters, + requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.ApiContract, - headersMapper: Mappers.ApiUpdateHeaders + headersMapper: Mappers.ApiUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters1, + requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", httpMethod: "DELETE", responses: { - 200: {}, - 204: {}, + 200: { + headersMapper: Mappers.ApiDeleteHeaders, + }, + 201: { + headersMapper: Mappers.ApiDeleteHeaders, + }, + 202: { + headersMapper: Mappers.ApiDeleteHeaders, + }, + 204: { + headersMapper: Mappers.ApiDeleteHeaders, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.deleteRevisions], urlParameters: [ @@ -651,78 +733,77 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByTagsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apisByTags", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apisByTags", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.TagResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.includeNotTaggedApis + Parameters.includeNotTaggedApis, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiCollection + bodyMapper: Mappers.ApiCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTagsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.TagResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts index 7f8a30b7977e..ae1989ebd468 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts @@ -27,7 +27,7 @@ import { ApiDiagnosticUpdateOptionalParams, ApiDiagnosticUpdateResponse, ApiDiagnosticDeleteOptionalParams, - ApiDiagnosticListByServiceNextResponse + ApiDiagnosticListByServiceNextResponse, } from "../models"; /// @@ -54,13 +54,13 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiDiagnosticListByServiceOptionalParams + options?: ApiDiagnosticListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -78,9 +78,9 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -89,7 +89,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { serviceName: string, apiId: string, options?: ApiDiagnosticListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiDiagnosticListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -111,7 +111,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -124,13 +124,13 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiDiagnosticListByServiceOptionalParams + options?: ApiDiagnosticListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -147,11 +147,11 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiDiagnosticListByServiceOptionalParams + options?: ApiDiagnosticListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -169,11 +169,11 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { serviceName: string, apiId: string, diagnosticId: string, - options?: ApiDiagnosticGetEntityTagOptionalParams + options?: ApiDiagnosticGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, diagnosticId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -191,11 +191,11 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { serviceName: string, apiId: string, diagnosticId: string, - options?: ApiDiagnosticGetOptionalParams + options?: ApiDiagnosticGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, diagnosticId, options }, - getOperationSpec + getOperationSpec, ); } @@ -215,7 +215,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { apiId: string, diagnosticId: string, parameters: DiagnosticContract, - options?: ApiDiagnosticCreateOrUpdateOptionalParams + options?: ApiDiagnosticCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -224,9 +224,9 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { apiId, diagnosticId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -249,7 +249,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { diagnosticId: string, ifMatch: string, parameters: DiagnosticContract, - options?: ApiDiagnosticUpdateOptionalParams + options?: ApiDiagnosticUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -259,9 +259,9 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { diagnosticId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -282,11 +282,11 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { apiId: string, diagnosticId: string, ifMatch: string, - options?: ApiDiagnosticDeleteOptionalParams + options?: ApiDiagnosticDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, diagnosticId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -303,11 +303,11 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { serviceName: string, apiId: string, nextLink: string, - options?: ApiDiagnosticListByServiceNextOptionalParams + options?: ApiDiagnosticListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -315,44 +315,42 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiagnosticCollection + bodyMapper: Mappers.DiagnosticCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiDiagnosticGetEntityTagHeaders + headersMapper: Mappers.ApiDiagnosticGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -361,23 +359,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.DiagnosticContract, - headersMapper: Mappers.ApiDiagnosticGetHeaders + headersMapper: Mappers.ApiDiagnosticGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -386,29 +383,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.DiagnosticContract, - headersMapper: Mappers.ApiDiagnosticCreateOrUpdateHeaders + headersMapper: Mappers.ApiDiagnosticCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.DiagnosticContract, - headersMapper: Mappers.ApiDiagnosticCreateOrUpdateHeaders + headersMapper: Mappers.ApiDiagnosticCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -416,30 +412,29 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.DiagnosticContract, - headersMapper: Mappers.ApiDiagnosticUpdateHeaders + headersMapper: Mappers.ApiDiagnosticUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -447,26 +442,25 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -475,21 +469,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiagnosticCollection + bodyMapper: Mappers.DiagnosticCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -497,8 +491,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts index c87591913545..bc5866031af4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts @@ -15,7 +15,7 @@ import { ExportFormat, ExportApi, ApiExportGetOptionalParams, - ApiExportGetResponse + ApiExportGetResponse, } from "../models"; /** Class containing ApiExport operations. */ @@ -38,7 +38,7 @@ export class ApiExportImpl implements ApiExport { * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. * @param format Format in which to export the Api Details to the Storage Blob with Sas Key valid for 5 - * minutes. + * minutes. New formats can be added in the future. * @param exportParam Query parameter required to export the API details. * @param options The options parameters. */ @@ -48,11 +48,11 @@ export class ApiExportImpl implements ApiExport { apiId: string, format: ExportFormat, exportParam: ExportApi, - options?: ApiExportGetOptionalParams + options?: ApiExportGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, format, exportParam, options }, - getOperationSpec + getOperationSpec, ); } } @@ -60,29 +60,28 @@ export class ApiExportImpl implements ApiExport { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiExportResult + bodyMapper: Mappers.ApiExportResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.format1, - Parameters.exportParam + Parameters.exportParam, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssue.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssue.ts index 527cad10dd31..773c5da3acbb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssue.ts @@ -28,7 +28,7 @@ import { ApiIssueUpdateOptionalParams, ApiIssueUpdateResponse, ApiIssueDeleteOptionalParams, - ApiIssueListByServiceNextResponse + ApiIssueListByServiceNextResponse, } from "../models"; /// @@ -55,13 +55,13 @@ export class ApiIssueImpl implements ApiIssue { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiIssueListByServiceOptionalParams + options?: ApiIssueListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -79,9 +79,9 @@ export class ApiIssueImpl implements ApiIssue { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -90,7 +90,7 @@ export class ApiIssueImpl implements ApiIssue { serviceName: string, apiId: string, options?: ApiIssueListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiIssueListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -99,7 +99,7 @@ export class ApiIssueImpl implements ApiIssue { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -112,7 +112,7 @@ export class ApiIssueImpl implements ApiIssue { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -125,13 +125,13 @@ export class ApiIssueImpl implements ApiIssue { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiIssueListByServiceOptionalParams + options?: ApiIssueListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -148,11 +148,11 @@ export class ApiIssueImpl implements ApiIssue { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiIssueListByServiceOptionalParams + options?: ApiIssueListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -169,11 +169,11 @@ export class ApiIssueImpl implements ApiIssue { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueGetEntityTagOptionalParams + options?: ApiIssueGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -190,11 +190,11 @@ export class ApiIssueImpl implements ApiIssue { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueGetOptionalParams + options?: ApiIssueGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, options }, - getOperationSpec + getOperationSpec, ); } @@ -213,11 +213,11 @@ export class ApiIssueImpl implements ApiIssue { apiId: string, issueId: string, parameters: IssueContract, - options?: ApiIssueCreateOrUpdateOptionalParams + options?: ApiIssueCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -239,7 +239,7 @@ export class ApiIssueImpl implements ApiIssue { issueId: string, ifMatch: string, parameters: IssueUpdateContract, - options?: ApiIssueUpdateOptionalParams + options?: ApiIssueUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -249,9 +249,9 @@ export class ApiIssueImpl implements ApiIssue { issueId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -271,11 +271,11 @@ export class ApiIssueImpl implements ApiIssue { apiId: string, issueId: string, ifMatch: string, - options?: ApiIssueDeleteOptionalParams + options?: ApiIssueDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -292,11 +292,11 @@ export class ApiIssueImpl implements ApiIssue { serviceName: string, apiId: string, nextLink: string, - options?: ApiIssueListByServiceNextOptionalParams + options?: ApiIssueListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -304,45 +304,43 @@ export class ApiIssueImpl implements ApiIssue { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IssueCollection + bodyMapper: Mappers.IssueCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.expandCommentsAttachments + Parameters.expandCommentsAttachments, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiIssueGetEntityTagHeaders + headersMapper: Mappers.ApiIssueGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -351,27 +349,26 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.IssueContract, - headersMapper: Mappers.ApiIssueGetHeaders + headersMapper: Mappers.ApiIssueGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ Parameters.apiVersion, - Parameters.expandCommentsAttachments + Parameters.expandCommentsAttachments, ], urlParameters: [ Parameters.$host, @@ -379,29 +376,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.IssueContract, - headersMapper: Mappers.ApiIssueCreateOrUpdateHeaders + headersMapper: Mappers.ApiIssueCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.IssueContract, - headersMapper: Mappers.ApiIssueCreateOrUpdateHeaders + headersMapper: Mappers.ApiIssueCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters11, + requestBody: Parameters.parameters13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -409,30 +405,29 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.IssueContract, - headersMapper: Mappers.ApiIssueUpdateHeaders + headersMapper: Mappers.ApiIssueUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters12, + requestBody: Parameters.parameters14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -440,26 +435,25 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -468,21 +462,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IssueCollection + bodyMapper: Mappers.IssueCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -490,8 +484,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts index b4e477407b59..9601308402a6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts @@ -25,7 +25,7 @@ import { ApiIssueAttachmentCreateOrUpdateOptionalParams, ApiIssueAttachmentCreateOrUpdateResponse, ApiIssueAttachmentDeleteOptionalParams, - ApiIssueAttachmentListByServiceNextResponse + ApiIssueAttachmentListByServiceNextResponse, } from "../models"; /// @@ -54,14 +54,14 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueAttachmentListByServiceOptionalParams + options?: ApiIssueAttachmentListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, apiId, issueId, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { apiId, issueId, options, - settings + settings, ); - } + }, }; } @@ -92,7 +92,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { apiId: string, issueId: string, options?: ApiIssueAttachmentListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiIssueAttachmentListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -102,7 +102,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { serviceName, apiId, issueId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -116,7 +116,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { apiId, issueId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -130,14 +130,14 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueAttachmentListByServiceOptionalParams + options?: ApiIssueAttachmentListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, apiId, issueId, - options + options, )) { yield* page; } @@ -156,11 +156,11 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueAttachmentListByServiceOptionalParams + options?: ApiIssueAttachmentListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -179,11 +179,11 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { apiId: string, issueId: string, attachmentId: string, - options?: ApiIssueAttachmentGetEntityTagOptionalParams + options?: ApiIssueAttachmentGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, attachmentId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -202,11 +202,11 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { apiId: string, issueId: string, attachmentId: string, - options?: ApiIssueAttachmentGetOptionalParams + options?: ApiIssueAttachmentGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, attachmentId, options }, - getOperationSpec + getOperationSpec, ); } @@ -227,7 +227,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { issueId: string, attachmentId: string, parameters: IssueAttachmentContract, - options?: ApiIssueAttachmentCreateOrUpdateOptionalParams + options?: ApiIssueAttachmentCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -237,9 +237,9 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { issueId, attachmentId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -261,7 +261,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { issueId: string, attachmentId: string, ifMatch: string, - options?: ApiIssueAttachmentDeleteOptionalParams + options?: ApiIssueAttachmentDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -271,9 +271,9 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { issueId, attachmentId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -292,11 +292,11 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { apiId: string, issueId: string, nextLink: string, - options?: ApiIssueAttachmentListByServiceNextOptionalParams + options?: ApiIssueAttachmentListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -304,22 +304,21 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IssueAttachmentCollection + bodyMapper: Mappers.IssueAttachmentCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, @@ -327,22 +326,21 @@ const listByServiceOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiIssueAttachmentGetEntityTagHeaders + headersMapper: Mappers.ApiIssueAttachmentGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -352,23 +350,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId1, Parameters.issueId, - Parameters.attachmentId + Parameters.attachmentId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.IssueAttachmentContract, - headersMapper: Mappers.ApiIssueAttachmentGetHeaders + headersMapper: Mappers.ApiIssueAttachmentGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -378,29 +375,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId1, Parameters.issueId, - Parameters.attachmentId + Parameters.attachmentId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.IssueAttachmentContract, - headersMapper: Mappers.ApiIssueAttachmentCreateOrUpdateHeaders + headersMapper: Mappers.ApiIssueAttachmentCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.IssueAttachmentContract, - headersMapper: Mappers.ApiIssueAttachmentCreateOrUpdateHeaders + headersMapper: Mappers.ApiIssueAttachmentCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters14, + requestBody: Parameters.parameters16, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -409,26 +405,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId1, Parameters.issueId, - Parameters.attachmentId + Parameters.attachmentId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -438,21 +433,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId1, Parameters.issueId, - Parameters.attachmentId + Parameters.attachmentId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IssueAttachmentCollection + bodyMapper: Mappers.IssueAttachmentCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -461,8 +456,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.nextLink, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts index a7449a1a1e67..f34288058517 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts @@ -25,7 +25,7 @@ import { ApiIssueCommentCreateOrUpdateOptionalParams, ApiIssueCommentCreateOrUpdateResponse, ApiIssueCommentDeleteOptionalParams, - ApiIssueCommentListByServiceNextResponse + ApiIssueCommentListByServiceNextResponse, } from "../models"; /// @@ -54,14 +54,14 @@ export class ApiIssueCommentImpl implements ApiIssueComment { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueCommentListByServiceOptionalParams + options?: ApiIssueCommentListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, apiId, issueId, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class ApiIssueCommentImpl implements ApiIssueComment { apiId, issueId, options, - settings + settings, ); - } + }, }; } @@ -92,7 +92,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { apiId: string, issueId: string, options?: ApiIssueCommentListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiIssueCommentListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -102,7 +102,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { serviceName, apiId, issueId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -116,7 +116,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { apiId, issueId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -130,14 +130,14 @@ export class ApiIssueCommentImpl implements ApiIssueComment { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueCommentListByServiceOptionalParams + options?: ApiIssueCommentListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, apiId, issueId, - options + options, )) { yield* page; } @@ -156,11 +156,11 @@ export class ApiIssueCommentImpl implements ApiIssueComment { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueCommentListByServiceOptionalParams + options?: ApiIssueCommentListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -179,11 +179,11 @@ export class ApiIssueCommentImpl implements ApiIssueComment { apiId: string, issueId: string, commentId: string, - options?: ApiIssueCommentGetEntityTagOptionalParams + options?: ApiIssueCommentGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, commentId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -202,11 +202,11 @@ export class ApiIssueCommentImpl implements ApiIssueComment { apiId: string, issueId: string, commentId: string, - options?: ApiIssueCommentGetOptionalParams + options?: ApiIssueCommentGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, commentId, options }, - getOperationSpec + getOperationSpec, ); } @@ -227,7 +227,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { issueId: string, commentId: string, parameters: IssueCommentContract, - options?: ApiIssueCommentCreateOrUpdateOptionalParams + options?: ApiIssueCommentCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -237,9 +237,9 @@ export class ApiIssueCommentImpl implements ApiIssueComment { issueId, commentId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -261,7 +261,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { issueId: string, commentId: string, ifMatch: string, - options?: ApiIssueCommentDeleteOptionalParams + options?: ApiIssueCommentDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -271,9 +271,9 @@ export class ApiIssueCommentImpl implements ApiIssueComment { issueId, commentId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -292,11 +292,11 @@ export class ApiIssueCommentImpl implements ApiIssueComment { apiId: string, issueId: string, nextLink: string, - options?: ApiIssueCommentListByServiceNextOptionalParams + options?: ApiIssueCommentListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -304,22 +304,21 @@ export class ApiIssueCommentImpl implements ApiIssueComment { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IssueCommentCollection + bodyMapper: Mappers.IssueCommentCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, @@ -327,22 +326,21 @@ const listByServiceOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiIssueCommentGetEntityTagHeaders + headersMapper: Mappers.ApiIssueCommentGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -352,23 +350,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId1, Parameters.issueId, - Parameters.commentId + Parameters.commentId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.IssueCommentContract, - headersMapper: Mappers.ApiIssueCommentGetHeaders + headersMapper: Mappers.ApiIssueCommentGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -378,29 +375,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId1, Parameters.issueId, - Parameters.commentId + Parameters.commentId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.IssueCommentContract, - headersMapper: Mappers.ApiIssueCommentCreateOrUpdateHeaders + headersMapper: Mappers.ApiIssueCommentCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.IssueCommentContract, - headersMapper: Mappers.ApiIssueCommentCreateOrUpdateHeaders + headersMapper: Mappers.ApiIssueCommentCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters13, + requestBody: Parameters.parameters15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -409,26 +405,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId1, Parameters.issueId, - Parameters.commentId + Parameters.commentId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -438,21 +433,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId1, Parameters.issueId, - Parameters.commentId + Parameters.commentId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IssueCommentCollection + bodyMapper: Mappers.IssueCommentCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -461,8 +456,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.nextLink, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementGateway.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementGateway.ts new file mode 100644 index 000000000000..e74315e889eb --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementGateway.ts @@ -0,0 +1,728 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ApiManagementGateway } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ApiManagementGatewayResource, + ApiManagementGatewayListByResourceGroupNextOptionalParams, + ApiManagementGatewayListByResourceGroupOptionalParams, + ApiManagementGatewayListByResourceGroupResponse, + ApiManagementGatewayListNextOptionalParams, + ApiManagementGatewayListOptionalParams, + ApiManagementGatewayListResponse, + ApiManagementGatewayCreateOrUpdateOptionalParams, + ApiManagementGatewayCreateOrUpdateResponse, + ApiManagementGatewayUpdateParameters, + ApiManagementGatewayUpdateOptionalParams, + ApiManagementGatewayUpdateResponse, + ApiManagementGatewayGetOptionalParams, + ApiManagementGatewayGetResponse, + ApiManagementGatewayDeleteOptionalParams, + ApiManagementGatewayDeleteResponse, + ApiManagementGatewayListByResourceGroupNextResponse, + ApiManagementGatewayListNextResponse, +} from "../models"; + +/// +/** Class containing ApiManagementGateway operations. */ +export class ApiManagementGatewayImpl implements ApiManagementGateway { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ApiManagementGateway class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * List all API Management gateways within a resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public listByResourceGroup( + resourceGroupName: string, + options?: ApiManagementGatewayListByResourceGroupOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByResourceGroupPagingPage( + resourceGroupName, + options, + settings, + ); + }, + }; + } + + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: ApiManagementGatewayListByResourceGroupOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ApiManagementGatewayListByResourceGroupResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResourceGroup(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByResourceGroupNext( + resourceGroupName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: ApiManagementGatewayListByResourceGroupOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options, + )) { + yield* page; + } + } + + /** + * List all API Management gateways within a subscription. + * @param options The options parameters. + */ + public list( + options?: ApiManagementGatewayListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage(options, settings); + }, + }; + } + + private async *listPagingPage( + options?: ApiManagementGatewayListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ApiManagementGatewayListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + options?: ApiManagementGatewayListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } + } + + /** + * Creates or updates an API Management gateway. This is long running operation and could take several + * minutes to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + gatewayName: string, + parameters: ApiManagementGatewayResource, + options?: ApiManagementGatewayCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementGatewayCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, gatewayName, parameters, options }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + ApiManagementGatewayCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates an API Management gateway. This is long running operation and could take several + * minutes to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + gatewayName: string, + parameters: ApiManagementGatewayResource, + options?: ApiManagementGatewayCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + gatewayName, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Updates an existing API Management gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway operation. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + gatewayName: string, + parameters: ApiManagementGatewayUpdateParameters, + options?: ApiManagementGatewayUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementGatewayUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, gatewayName, parameters, options }, + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + ApiManagementGatewayUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * Updates an existing API Management gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway operation. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + gatewayName: string, + parameters: ApiManagementGatewayUpdateParameters, + options?: ApiManagementGatewayUpdateOptionalParams, + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + gatewayName, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Gets an API Management gateway resource description. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewayGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, gatewayName, options }, + getOperationSpec, + ); + } + + /** + * Deletes an existing API Management gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewayDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementGatewayDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, gatewayName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + ApiManagementGatewayDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * Deletes an existing API Management gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewayDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + gatewayName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * List all API Management gateways within a resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _listByResourceGroup( + resourceGroupName: string, + options?: ApiManagementGatewayListByResourceGroupOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByResourceGroupOperationSpec, + ); + } + + /** + * List all API Management gateways within a subscription. + * @param options The options parameters. + */ + private _list( + options?: ApiManagementGatewayListOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + + /** + * ListByResourceGroupNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. + */ + private _listByResourceGroupNext( + resourceGroupName: string, + nextLink: string, + options?: ApiManagementGatewayListByResourceGroupNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listByResourceGroupNextOperationSpec, + ); + } + + /** + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + nextLink: string, + options?: ApiManagementGatewayListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateways/{gatewayName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + 201: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + 202: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + 204: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + requestBody: Parameters.parameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.gatewayName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateways/{gatewayName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + 201: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + 202: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + 204: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + requestBody: Parameters.parameters1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.gatewayName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateways/{gatewayName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.gatewayName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateways/{gatewayName}", + httpMethod: "DELETE", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayResource, + headersMapper: Mappers.ApiManagementGatewayDeleteHeaders, + }, + 201: { + bodyMapper: Mappers.ApiManagementGatewayResource, + headersMapper: Mappers.ApiManagementGatewayDeleteHeaders, + }, + 202: { + bodyMapper: Mappers.ApiManagementGatewayResource, + headersMapper: Mappers.ApiManagementGatewayDeleteHeaders, + }, + 204: { + bodyMapper: Mappers.ApiManagementGatewayResource, + headersMapper: Mappers.ApiManagementGatewayDeleteHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.gatewayName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateway", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/gateway", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer, +}; +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementOperations.ts index a5f8d7391fd4..77fbd3f0e1ff 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementOperations.ts @@ -18,7 +18,7 @@ import { ApiManagementOperationsListNextOptionalParams, ApiManagementOperationsListOptionalParams, ApiManagementOperationsListResponse, - ApiManagementOperationsListNextResponse + ApiManagementOperationsListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class ApiManagementOperationsImpl implements ApiManagementOperations { * @param options The options parameters. */ public list( - options?: ApiManagementOperationsListOptionalParams + options?: ApiManagementOperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class ApiManagementOperationsImpl implements ApiManagementOperations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: ApiManagementOperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiManagementOperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class ApiManagementOperationsImpl implements ApiManagementOperations { } private async *listPagingAll( - options?: ApiManagementOperationsListOptionalParams + options?: ApiManagementOperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class ApiManagementOperationsImpl implements ApiManagementOperations { * @param options The options parameters. */ private _list( - options?: ApiManagementOperationsListOptionalParams + options?: ApiManagementOperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class ApiManagementOperationsImpl implements ApiManagementOperations { */ private _listNext( nextLink: string, - options?: ApiManagementOperationsListNextOptionalParams + options?: ApiManagementOperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts index 874d5245fd79..002825d7d28d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts @@ -16,7 +16,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -52,7 +52,7 @@ import { ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams, ApiManagementServiceApplyNetworkConfigurationUpdatesResponse, ApiManagementServiceListByResourceGroupNextResponse, - ApiManagementServiceListNextResponse + ApiManagementServiceListNextResponse, } from "../models"; /// @@ -75,7 +75,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { */ public listByResourceGroup( resourceGroupName: string, - options?: ApiManagementServiceListByResourceGroupOptionalParams + options?: ApiManagementServiceListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -92,16 +92,16 @@ export class ApiManagementServiceImpl implements ApiManagementService { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: ApiManagementServiceListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiManagementServiceListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -116,7 +116,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -127,11 +127,11 @@ export class ApiManagementServiceImpl implements ApiManagementService { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ApiManagementServiceListByResourceGroupOptionalParams + options?: ApiManagementServiceListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -142,7 +142,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { * @param options The options parameters. */ public list( - options?: ApiManagementServiceListOptionalParams + options?: ApiManagementServiceListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -157,13 +157,13 @@ export class ApiManagementServiceImpl implements ApiManagementService { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: ApiManagementServiceListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiManagementServiceListResponse; let continuationToken = settings?.continuationToken; @@ -184,7 +184,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { } private async *listPagingAll( - options?: ApiManagementServiceListOptionalParams + options?: ApiManagementServiceListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -204,7 +204,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, - options?: ApiManagementServiceRestoreOptionalParams + options?: ApiManagementServiceRestoreOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -213,21 +213,20 @@ export class ApiManagementServiceImpl implements ApiManagementService { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -236,8 +235,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -245,15 +244,15 @@ export class ApiManagementServiceImpl implements ApiManagementService { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, parameters, options }, - spec: restoreOperationSpec + spec: restoreOperationSpec, }); const poller = await createHttpPoller< ApiManagementServiceRestoreResponse, @@ -261,7 +260,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -280,13 +279,13 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, - options?: ApiManagementServiceRestoreOptionalParams + options?: ApiManagementServiceRestoreOptionalParams, ): Promise { const poller = await this.beginRestore( resourceGroupName, serviceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -303,7 +302,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, - options?: ApiManagementServiceBackupOptionalParams + options?: ApiManagementServiceBackupOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -312,21 +311,20 @@ export class ApiManagementServiceImpl implements ApiManagementService { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -335,8 +333,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -344,15 +342,15 @@ export class ApiManagementServiceImpl implements ApiManagementService { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, parameters, options }, - spec: backupOperationSpec + spec: backupOperationSpec, }); const poller = await createHttpPoller< ApiManagementServiceBackupResponse, @@ -360,7 +358,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -378,13 +376,13 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, - options?: ApiManagementServiceBackupOptionalParams + options?: ApiManagementServiceBackupOptionalParams, ): Promise { const poller = await this.beginBackup( resourceGroupName, serviceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -401,7 +399,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceResource, - options?: ApiManagementServiceCreateOrUpdateOptionalParams + options?: ApiManagementServiceCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -410,21 +408,20 @@ export class ApiManagementServiceImpl implements ApiManagementService { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -433,8 +430,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -442,22 +439,22 @@ export class ApiManagementServiceImpl implements ApiManagementService { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ApiManagementServiceCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -475,13 +472,13 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceResource, - options?: ApiManagementServiceCreateOrUpdateOptionalParams + options?: ApiManagementServiceCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -497,7 +494,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceUpdateParameters, - options?: ApiManagementServiceUpdateOptionalParams + options?: ApiManagementServiceUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -506,21 +503,20 @@ export class ApiManagementServiceImpl implements ApiManagementService { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -529,8 +525,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -538,22 +534,22 @@ export class ApiManagementServiceImpl implements ApiManagementService { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, parameters, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< ApiManagementServiceUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -570,13 +566,13 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceUpdateParameters, - options?: ApiManagementServiceUpdateOptionalParams + options?: ApiManagementServiceUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, serviceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -590,11 +586,11 @@ export class ApiManagementServiceImpl implements ApiManagementService { get( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceGetOptionalParams + options?: ApiManagementServiceGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -607,25 +603,24 @@ export class ApiManagementServiceImpl implements ApiManagementService { async beginDelete( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceDeleteOptionalParams + options?: ApiManagementServiceDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -634,8 +629,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -643,19 +638,19 @@ export class ApiManagementServiceImpl implements ApiManagementService { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -670,12 +665,12 @@ export class ApiManagementServiceImpl implements ApiManagementService { async beginDeleteAndWait( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceDeleteOptionalParams + options?: ApiManagementServiceDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, - options + options, ); return poller.pollUntilDone(); } @@ -691,7 +686,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { async beginMigrateToStv2( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceMigrateToStv2OptionalParams + options?: ApiManagementServiceMigrateToStv2OptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -700,21 +695,20 @@ export class ApiManagementServiceImpl implements ApiManagementService { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -723,8 +717,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -732,15 +726,15 @@ export class ApiManagementServiceImpl implements ApiManagementService { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, options }, - spec: migrateToStv2OperationSpec + spec: migrateToStv2OperationSpec, }); const poller = await createHttpPoller< ApiManagementServiceMigrateToStv2Response, @@ -748,7 +742,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -765,12 +759,12 @@ export class ApiManagementServiceImpl implements ApiManagementService { async beginMigrateToStv2AndWait( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceMigrateToStv2OptionalParams + options?: ApiManagementServiceMigrateToStv2OptionalParams, ): Promise { const poller = await this.beginMigrateToStv2( resourceGroupName, serviceName, - options + options, ); return poller.pollUntilDone(); } @@ -782,11 +776,11 @@ export class ApiManagementServiceImpl implements ApiManagementService { */ private _listByResourceGroup( resourceGroupName: string, - options?: ApiManagementServiceListByResourceGroupOptionalParams + options?: ApiManagementServiceListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -795,7 +789,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { * @param options The options parameters. */ private _list( - options?: ApiManagementServiceListOptionalParams + options?: ApiManagementServiceListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -809,11 +803,11 @@ export class ApiManagementServiceImpl implements ApiManagementService { getSsoToken( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceGetSsoTokenOptionalParams + options?: ApiManagementServiceGetSsoTokenOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getSsoTokenOperationSpec + getSsoTokenOperationSpec, ); } @@ -824,11 +818,11 @@ export class ApiManagementServiceImpl implements ApiManagementService { */ checkNameAvailability( parameters: ApiManagementServiceCheckNameAvailabilityParameters, - options?: ApiManagementServiceCheckNameAvailabilityOptionalParams + options?: ApiManagementServiceCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { parameters, options }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, ); } @@ -837,11 +831,11 @@ export class ApiManagementServiceImpl implements ApiManagementService { * @param options The options parameters. */ getDomainOwnershipIdentifier( - options?: ApiManagementServiceGetDomainOwnershipIdentifierOptionalParams + options?: ApiManagementServiceGetDomainOwnershipIdentifierOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - getDomainOwnershipIdentifierOperationSpec + getDomainOwnershipIdentifierOperationSpec, ); } @@ -855,32 +849,29 @@ export class ApiManagementServiceImpl implements ApiManagementService { async beginApplyNetworkConfigurationUpdates( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams + options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams, ): Promise< SimplePollerLike< - OperationState< - ApiManagementServiceApplyNetworkConfigurationUpdatesResponse - >, + OperationState, ApiManagementServiceApplyNetworkConfigurationUpdatesResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -889,8 +880,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -898,25 +889,23 @@ export class ApiManagementServiceImpl implements ApiManagementService { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, options }, - spec: applyNetworkConfigurationUpdatesOperationSpec + spec: applyNetworkConfigurationUpdatesOperationSpec, }); const poller = await createHttpPoller< ApiManagementServiceApplyNetworkConfigurationUpdatesResponse, - OperationState< - ApiManagementServiceApplyNetworkConfigurationUpdatesResponse - > + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -932,12 +921,12 @@ export class ApiManagementServiceImpl implements ApiManagementService { async beginApplyNetworkConfigurationUpdatesAndWait( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams + options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams, ): Promise { const poller = await this.beginApplyNetworkConfigurationUpdates( resourceGroupName, serviceName, - options + options, ); return poller.pollUntilDone(); } @@ -951,11 +940,11 @@ export class ApiManagementServiceImpl implements ApiManagementService { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ApiManagementServiceListByResourceGroupNextOptionalParams + options?: ApiManagementServiceListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -966,11 +955,11 @@ export class ApiManagementServiceImpl implements ApiManagementService { */ private _listNext( nextLink: string, - options?: ApiManagementServiceListNextOptionalParams + options?: ApiManagementServiceListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -978,162 +967,156 @@ export class ApiManagementServiceImpl implements ApiManagementService { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const restoreOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/restore", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/restore", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 201: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 202: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 204: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters35, + requestBody: Parameters.parameters37, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const backupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backup", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backup", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 201: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 202: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 204: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters35, + requestBody: Parameters.parameters37, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 201: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 202: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 204: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters36, + requestBody: Parameters.parameters38, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 201: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 202: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 204: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters37, + requestBody: Parameters.parameters39, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", httpMethod: "DELETE", responses: { 200: {}, @@ -1141,215 +1124,212 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const migrateToStv2OperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/migrateToStv2", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/migrateToStv2", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 201: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 202: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 204: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, + requestBody: Parameters.parameters40, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], - headerParameters: [Parameters.accept], - serializer + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceListResult + bodyMapper: Mappers.ApiManagementServiceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/service", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/service", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceListResult + bodyMapper: Mappers.ApiManagementServiceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getSsoTokenOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/getssotoken", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/getssotoken", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceGetSsoTokenResult + bodyMapper: Mappers.ApiManagementServiceGetSsoTokenResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/checkNameAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceNameAvailabilityResult + bodyMapper: Mappers.ApiManagementServiceNameAvailabilityResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters38, + requestBody: Parameters.parameters41, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getDomainOwnershipIdentifierOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/getDomainOwnershipIdentifier", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/getDomainOwnershipIdentifier", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceGetDomainOwnershipIdentifierResult + bodyMapper: + Mappers.ApiManagementServiceGetDomainOwnershipIdentifierResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; -const applyNetworkConfigurationUpdatesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/applynetworkconfigurationupdates", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.ApiManagementServiceResource - }, - 201: { - bodyMapper: Mappers.ApiManagementServiceResource - }, - 202: { - bodyMapper: Mappers.ApiManagementServiceResource - }, - 204: { - bodyMapper: Mappers.ApiManagementServiceResource +const applyNetworkConfigurationUpdatesOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/applynetworkconfigurationupdates", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementServiceResource, + }, + 201: { + bodyMapper: Mappers.ApiManagementServiceResource, + }, + 202: { + bodyMapper: Mappers.ApiManagementServiceResource, + }, + 204: { + bodyMapper: Mappers.ApiManagementServiceResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.parameters39, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.subscriptionId - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; + requestBody: Parameters.parameters42, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, + }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceListResult + bodyMapper: Mappers.ApiManagementServiceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceListResult + bodyMapper: Mappers.ApiManagementServiceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts index 4c96ac12b9bf..c14dc2a82f70 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts @@ -18,7 +18,7 @@ import { ApiManagementServiceSkusListAvailableServiceSkusNextOptionalParams, ApiManagementServiceSkusListAvailableServiceSkusOptionalParams, ApiManagementServiceSkusListAvailableServiceSkusResponse, - ApiManagementServiceSkusListAvailableServiceSkusNextResponse + ApiManagementServiceSkusListAvailableServiceSkusNextResponse, } from "../models"; /// @@ -43,12 +43,12 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { public listAvailableServiceSkus( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams + options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAvailableServiceSkusPagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -65,9 +65,9 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -75,7 +75,7 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { resourceGroupName: string, serviceName: string, options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiManagementServiceSkusListAvailableServiceSkusResponse; let continuationToken = settings?.continuationToken; @@ -83,7 +83,7 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { result = await this._listAvailableServiceSkus( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -95,7 +95,7 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,12 +107,12 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { private async *listAvailableServiceSkusPagingAll( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams + options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAvailableServiceSkusPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -127,11 +127,11 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { private _listAvailableServiceSkus( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams + options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listAvailableServiceSkusOperationSpec + listAvailableServiceSkusOperationSpec, ); } @@ -147,11 +147,11 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ApiManagementServiceSkusListAvailableServiceSkusNextOptionalParams + options?: ApiManagementServiceSkusListAvailableServiceSkusNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listAvailableServiceSkusNextOperationSpec + listAvailableServiceSkusNextOperationSpec, ); } } @@ -159,45 +159,44 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listAvailableServiceSkusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/skus", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/skus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceSkuResults + bodyMapper: Mappers.ResourceSkuResults, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAvailableServiceSkusNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceSkuResults + bodyMapper: Mappers.ResourceSkuResults, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementSkus.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementSkus.ts index fa148734690f..f00f87b6d9a1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementSkus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementSkus.ts @@ -18,7 +18,7 @@ import { ApiManagementSkusListNextOptionalParams, ApiManagementSkusListOptionalParams, ApiManagementSkusListResponse, - ApiManagementSkusListNextResponse + ApiManagementSkusListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class ApiManagementSkusImpl implements ApiManagementSkus { * @param options The options parameters. */ public list( - options?: ApiManagementSkusListOptionalParams + options?: ApiManagementSkusListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class ApiManagementSkusImpl implements ApiManagementSkus { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: ApiManagementSkusListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiManagementSkusListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class ApiManagementSkusImpl implements ApiManagementSkus { } private async *listPagingAll( - options?: ApiManagementSkusListOptionalParams + options?: ApiManagementSkusListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class ApiManagementSkusImpl implements ApiManagementSkus { * @param options The options parameters. */ private _list( - options?: ApiManagementSkusListOptionalParams + options?: ApiManagementSkusListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class ApiManagementSkusImpl implements ApiManagementSkus { */ private _listNext( nextLink: string, - options?: ApiManagementSkusListNextOptionalParams + options?: ApiManagementSkusListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -117,38 +117,37 @@ export class ApiManagementSkusImpl implements ApiManagementSkus { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/skus", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/skus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiManagementSkusResult + bodyMapper: Mappers.ApiManagementSkusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiManagementSkusResult + bodyMapper: Mappers.ApiManagementSkusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts index 719e17d32e77..5e711242e435 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts @@ -28,7 +28,7 @@ import { ApiOperationUpdateOptionalParams, ApiOperationUpdateResponse, ApiOperationDeleteOptionalParams, - ApiOperationListByApiNextResponse + ApiOperationListByApiNextResponse, } from "../models"; /// @@ -56,13 +56,13 @@ export class ApiOperationImpl implements ApiOperation { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiOperationListByApiOptionalParams + options?: ApiOperationListByApiOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByApiPagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class ApiOperationImpl implements ApiOperation { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -91,7 +91,7 @@ export class ApiOperationImpl implements ApiOperation { serviceName: string, apiId: string, options?: ApiOperationListByApiOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiOperationListByApiResponse; let continuationToken = settings?.continuationToken; @@ -100,7 +100,7 @@ export class ApiOperationImpl implements ApiOperation { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -113,7 +113,7 @@ export class ApiOperationImpl implements ApiOperation { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -126,13 +126,13 @@ export class ApiOperationImpl implements ApiOperation { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiOperationListByApiOptionalParams + options?: ApiOperationListByApiOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByApiPagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -150,11 +150,11 @@ export class ApiOperationImpl implements ApiOperation { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiOperationListByApiOptionalParams + options?: ApiOperationListByApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByApiOperationSpec + listByApiOperationSpec, ); } @@ -173,11 +173,11 @@ export class ApiOperationImpl implements ApiOperation { serviceName: string, apiId: string, operationId: string, - options?: ApiOperationGetEntityTagOptionalParams + options?: ApiOperationGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -196,11 +196,11 @@ export class ApiOperationImpl implements ApiOperation { serviceName: string, apiId: string, operationId: string, - options?: ApiOperationGetOptionalParams + options?: ApiOperationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, options }, - getOperationSpec + getOperationSpec, ); } @@ -221,7 +221,7 @@ export class ApiOperationImpl implements ApiOperation { apiId: string, operationId: string, parameters: OperationContract, - options?: ApiOperationCreateOrUpdateOptionalParams + options?: ApiOperationCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -230,9 +230,9 @@ export class ApiOperationImpl implements ApiOperation { apiId, operationId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -256,7 +256,7 @@ export class ApiOperationImpl implements ApiOperation { operationId: string, ifMatch: string, parameters: OperationUpdateContract, - options?: ApiOperationUpdateOptionalParams + options?: ApiOperationUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -266,9 +266,9 @@ export class ApiOperationImpl implements ApiOperation { operationId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -290,11 +290,11 @@ export class ApiOperationImpl implements ApiOperation { apiId: string, operationId: string, ifMatch: string, - options?: ApiOperationDeleteOptionalParams + options?: ApiOperationDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -312,11 +312,11 @@ export class ApiOperationImpl implements ApiOperation { serviceName: string, apiId: string, nextLink: string, - options?: ApiOperationListByApiNextOptionalParams + options?: ApiOperationListByApiNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByApiNextOperationSpec + listByApiNextOperationSpec, ); } } @@ -324,45 +324,43 @@ export class ApiOperationImpl implements ApiOperation { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationCollection + bodyMapper: Mappers.OperationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, Parameters.tags, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiOperationGetEntityTagHeaders + headersMapper: Mappers.ApiOperationGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -371,23 +369,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.OperationContract, - headersMapper: Mappers.ApiOperationGetHeaders + headersMapper: Mappers.ApiOperationGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -396,29 +393,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.OperationContract, - headersMapper: Mappers.ApiOperationCreateOrUpdateHeaders + headersMapper: Mappers.ApiOperationCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.OperationContract, - headersMapper: Mappers.ApiOperationCreateOrUpdateHeaders + headersMapper: Mappers.ApiOperationCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters3, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -426,30 +422,29 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.operationId + Parameters.operationId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.OperationContract, - headersMapper: Mappers.ApiOperationUpdateHeaders + headersMapper: Mappers.ApiOperationUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters4, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -457,26 +452,25 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.operationId + Parameters.operationId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -485,30 +479,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByApiNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationCollection + bodyMapper: Mappers.OperationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, + Parameters.nextLink, Parameters.apiId, - Parameters.nextLink ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiOperationPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperationPolicy.ts index 5bec2b5db52c..d019cbe1b697 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiOperationPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperationPolicy.ts @@ -22,7 +22,7 @@ import { PolicyContract, ApiOperationPolicyCreateOrUpdateOptionalParams, ApiOperationPolicyCreateOrUpdateResponse, - ApiOperationPolicyDeleteOptionalParams + ApiOperationPolicyDeleteOptionalParams, } from "../models"; /** Class containing ApiOperationPolicy operations. */ @@ -52,11 +52,11 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { serviceName: string, apiId: string, operationId: string, - options?: ApiOperationPolicyListByOperationOptionalParams + options?: ApiOperationPolicyListByOperationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, options }, - listByOperationOperationSpec + listByOperationOperationSpec, ); } @@ -77,11 +77,11 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { apiId: string, operationId: string, policyId: PolicyIdName, - options?: ApiOperationPolicyGetEntityTagOptionalParams + options?: ApiOperationPolicyGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, policyId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -102,11 +102,11 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { apiId: string, operationId: string, policyId: PolicyIdName, - options?: ApiOperationPolicyGetOptionalParams + options?: ApiOperationPolicyGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, policyId, options }, - getOperationSpec + getOperationSpec, ); } @@ -129,7 +129,7 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { operationId: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: ApiOperationPolicyCreateOrUpdateOptionalParams + options?: ApiOperationPolicyCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -139,9 +139,9 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { operationId, policyId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -165,7 +165,7 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { operationId: string, policyId: PolicyIdName, ifMatch: string, - options?: ApiOperationPolicyDeleteOptionalParams + options?: ApiOperationPolicyDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -175,9 +175,9 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { operationId, policyId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -185,16 +185,15 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByOperationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyCollection + bodyMapper: Mappers.PolicyCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -203,22 +202,21 @@ const listByOperationOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiOperationPolicyGetEntityTagHeaders + headersMapper: Mappers.ApiOperationPolicyGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -228,23 +226,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.operationId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ApiOperationPolicyGetHeaders + headersMapper: Mappers.ApiOperationPolicyGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.format], urlParameters: [ @@ -254,29 +251,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.operationId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ApiOperationPolicyCreateOrUpdateHeaders + headersMapper: Mappers.ApiOperationPolicyCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ApiOperationPolicyCreateOrUpdateHeaders + headersMapper: Mappers.ApiOperationPolicyCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -285,26 +281,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.operationId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -314,8 +309,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.operationId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts index 9bcc792f5dd5..012514520190 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts @@ -22,7 +22,7 @@ import { PolicyContract, ApiPolicyCreateOrUpdateOptionalParams, ApiPolicyCreateOrUpdateResponse, - ApiPolicyDeleteOptionalParams + ApiPolicyDeleteOptionalParams, } from "../models"; /** Class containing ApiPolicy operations. */ @@ -49,11 +49,11 @@ export class ApiPolicyImpl implements ApiPolicy { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiPolicyListByApiOptionalParams + options?: ApiPolicyListByApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByApiOperationSpec + listByApiOperationSpec, ); } @@ -71,11 +71,11 @@ export class ApiPolicyImpl implements ApiPolicy { serviceName: string, apiId: string, policyId: PolicyIdName, - options?: ApiPolicyGetEntityTagOptionalParams + options?: ApiPolicyGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, policyId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -93,11 +93,11 @@ export class ApiPolicyImpl implements ApiPolicy { serviceName: string, apiId: string, policyId: PolicyIdName, - options?: ApiPolicyGetOptionalParams + options?: ApiPolicyGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, policyId, options }, - getOperationSpec + getOperationSpec, ); } @@ -117,11 +117,11 @@ export class ApiPolicyImpl implements ApiPolicy { apiId: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: ApiPolicyCreateOrUpdateOptionalParams + options?: ApiPolicyCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, policyId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -142,11 +142,11 @@ export class ApiPolicyImpl implements ApiPolicy { apiId: string, policyId: PolicyIdName, ifMatch: string, - options?: ApiPolicyDeleteOptionalParams + options?: ApiPolicyDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, policyId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -156,16 +156,15 @@ const xmlSerializer = coreClient.createSerializer(Mappers, /* isXml */ true); const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyCollection + bodyMapper: Mappers.PolicyCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -173,22 +172,21 @@ const listByApiOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiPolicyGetEntityTagHeaders + headersMapper: Mappers.ApiPolicyGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -197,23 +195,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ApiPolicyGetHeaders + headersMapper: Mappers.ApiPolicyGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.format], urlParameters: [ @@ -222,30 +219,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept1], isXML: true, - serializer: xmlSerializer + serializer: xmlSerializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ApiPolicyCreateOrUpdateHeaders + headersMapper: Mappers.ApiPolicyCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ApiPolicyCreateOrUpdateHeaders + headersMapper: Mappers.ApiPolicyCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -253,26 +249,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -281,8 +276,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiProduct.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiProduct.ts index b9a226a7aadb..46e2621c7cda 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiProduct.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiProduct.ts @@ -18,7 +18,7 @@ import { ApiProductListByApisNextOptionalParams, ApiProductListByApisOptionalParams, ApiProductListByApisResponse, - ApiProductListByApisNextResponse + ApiProductListByApisNextResponse, } from "../models"; /// @@ -45,13 +45,13 @@ export class ApiProductImpl implements ApiProduct { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiProductListByApisOptionalParams + options?: ApiProductListByApisOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByApisPagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -69,9 +69,9 @@ export class ApiProductImpl implements ApiProduct { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class ApiProductImpl implements ApiProduct { serviceName: string, apiId: string, options?: ApiProductListByApisOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiProductListByApisResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class ApiProductImpl implements ApiProduct { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -102,7 +102,7 @@ export class ApiProductImpl implements ApiProduct { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,13 +115,13 @@ export class ApiProductImpl implements ApiProduct { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiProductListByApisOptionalParams + options?: ApiProductListByApisOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByApisPagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class ApiProductImpl implements ApiProduct { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiProductListByApisOptionalParams + options?: ApiProductListByApisOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByApisOperationSpec + listByApisOperationSpec, ); } @@ -159,11 +159,11 @@ export class ApiProductImpl implements ApiProduct { serviceName: string, apiId: string, nextLink: string, - options?: ApiProductListByApisNextOptionalParams + options?: ApiProductListByApisNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByApisNextOperationSpec + listByApisNextOperationSpec, ); } } @@ -171,43 +171,42 @@ export class ApiProductImpl implements ApiProduct { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByApisOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/products", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/products", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProductCollection + bodyMapper: Mappers.ProductCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByApisNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProductCollection + bodyMapper: Mappers.ProductCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -215,8 +214,8 @@ const listByApisNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts index 345185b5a2d9..3b4410f6f535 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts @@ -27,7 +27,7 @@ import { ApiReleaseUpdateOptionalParams, ApiReleaseUpdateResponse, ApiReleaseDeleteOptionalParams, - ApiReleaseListByServiceNextResponse + ApiReleaseListByServiceNextResponse, } from "../models"; /// @@ -56,13 +56,13 @@ export class ApiReleaseImpl implements ApiRelease { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiReleaseListByServiceOptionalParams + options?: ApiReleaseListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class ApiReleaseImpl implements ApiRelease { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -91,7 +91,7 @@ export class ApiReleaseImpl implements ApiRelease { serviceName: string, apiId: string, options?: ApiReleaseListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiReleaseListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -100,7 +100,7 @@ export class ApiReleaseImpl implements ApiRelease { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -113,7 +113,7 @@ export class ApiReleaseImpl implements ApiRelease { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -126,13 +126,13 @@ export class ApiReleaseImpl implements ApiRelease { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiReleaseListByServiceOptionalParams + options?: ApiReleaseListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -151,11 +151,11 @@ export class ApiReleaseImpl implements ApiRelease { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiReleaseListByServiceOptionalParams + options?: ApiReleaseListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -173,11 +173,11 @@ export class ApiReleaseImpl implements ApiRelease { serviceName: string, apiId: string, releaseId: string, - options?: ApiReleaseGetEntityTagOptionalParams + options?: ApiReleaseGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, releaseId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -195,11 +195,11 @@ export class ApiReleaseImpl implements ApiRelease { serviceName: string, apiId: string, releaseId: string, - options?: ApiReleaseGetOptionalParams + options?: ApiReleaseGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, releaseId, options }, - getOperationSpec + getOperationSpec, ); } @@ -219,11 +219,11 @@ export class ApiReleaseImpl implements ApiRelease { apiId: string, releaseId: string, parameters: ApiReleaseContract, - options?: ApiReleaseCreateOrUpdateOptionalParams + options?: ApiReleaseCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, releaseId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -246,7 +246,7 @@ export class ApiReleaseImpl implements ApiRelease { releaseId: string, ifMatch: string, parameters: ApiReleaseContract, - options?: ApiReleaseUpdateOptionalParams + options?: ApiReleaseUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -256,9 +256,9 @@ export class ApiReleaseImpl implements ApiRelease { releaseId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -279,11 +279,11 @@ export class ApiReleaseImpl implements ApiRelease { apiId: string, releaseId: string, ifMatch: string, - options?: ApiReleaseDeleteOptionalParams + options?: ApiReleaseDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, releaseId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -300,11 +300,11 @@ export class ApiReleaseImpl implements ApiRelease { serviceName: string, apiId: string, nextLink: string, - options?: ApiReleaseListByServiceNextOptionalParams + options?: ApiReleaseListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -312,44 +312,42 @@ export class ApiReleaseImpl implements ApiRelease { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiReleaseCollection + bodyMapper: Mappers.ApiReleaseCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiReleaseGetEntityTagHeaders + headersMapper: Mappers.ApiReleaseGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -358,23 +356,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.releaseId + Parameters.releaseId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ApiReleaseContract, - headersMapper: Mappers.ApiReleaseGetHeaders + headersMapper: Mappers.ApiReleaseGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -383,29 +380,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.releaseId + Parameters.releaseId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ApiReleaseContract, - headersMapper: Mappers.ApiReleaseCreateOrUpdateHeaders + headersMapper: Mappers.ApiReleaseCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.ApiReleaseContract, - headersMapper: Mappers.ApiReleaseCreateOrUpdateHeaders + headersMapper: Mappers.ApiReleaseCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters2, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -413,30 +409,29 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.releaseId + Parameters.releaseId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.ApiReleaseContract, - headersMapper: Mappers.ApiReleaseUpdateHeaders + headersMapper: Mappers.ApiReleaseUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters2, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -444,26 +439,25 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.releaseId + Parameters.releaseId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -472,21 +466,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.releaseId + Parameters.releaseId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiReleaseCollection + bodyMapper: Mappers.ApiReleaseCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -494,8 +488,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts index c76a9aa1f6bf..876ead3737e4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts @@ -18,7 +18,7 @@ import { ApiRevisionListByServiceNextOptionalParams, ApiRevisionListByServiceOptionalParams, ApiRevisionListByServiceResponse, - ApiRevisionListByServiceNextResponse + ApiRevisionListByServiceNextResponse, } from "../models"; /// @@ -45,13 +45,13 @@ export class ApiRevisionImpl implements ApiRevision { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiRevisionListByServiceOptionalParams + options?: ApiRevisionListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -69,9 +69,9 @@ export class ApiRevisionImpl implements ApiRevision { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class ApiRevisionImpl implements ApiRevision { serviceName: string, apiId: string, options?: ApiRevisionListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiRevisionListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class ApiRevisionImpl implements ApiRevision { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -102,7 +102,7 @@ export class ApiRevisionImpl implements ApiRevision { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,13 +115,13 @@ export class ApiRevisionImpl implements ApiRevision { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiRevisionListByServiceOptionalParams + options?: ApiRevisionListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class ApiRevisionImpl implements ApiRevision { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiRevisionListByServiceOptionalParams + options?: ApiRevisionListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -159,11 +159,11 @@ export class ApiRevisionImpl implements ApiRevision { serviceName: string, apiId: string, nextLink: string, - options?: ApiRevisionListByServiceNextOptionalParams + options?: ApiRevisionListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -171,43 +171,42 @@ export class ApiRevisionImpl implements ApiRevision { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/revisions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/revisions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiRevisionCollection + bodyMapper: Mappers.ApiRevisionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiRevisionCollection + bodyMapper: Mappers.ApiRevisionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -215,8 +214,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts index 81cdbcbce722..d26671dabc61 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts @@ -16,7 +16,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -31,7 +31,7 @@ import { ApiSchemaCreateOrUpdateOptionalParams, ApiSchemaCreateOrUpdateResponse, ApiSchemaDeleteOptionalParams, - ApiSchemaListByApiNextResponse + ApiSchemaListByApiNextResponse, } from "../models"; /// @@ -59,13 +59,13 @@ export class ApiSchemaImpl implements ApiSchema { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiSchemaListByApiOptionalParams + options?: ApiSchemaListByApiOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByApiPagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -83,9 +83,9 @@ export class ApiSchemaImpl implements ApiSchema { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -94,7 +94,7 @@ export class ApiSchemaImpl implements ApiSchema { serviceName: string, apiId: string, options?: ApiSchemaListByApiOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiSchemaListByApiResponse; let continuationToken = settings?.continuationToken; @@ -103,7 +103,7 @@ export class ApiSchemaImpl implements ApiSchema { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -116,7 +116,7 @@ export class ApiSchemaImpl implements ApiSchema { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -129,13 +129,13 @@ export class ApiSchemaImpl implements ApiSchema { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiSchemaListByApiOptionalParams + options?: ApiSchemaListByApiOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByApiPagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -153,11 +153,11 @@ export class ApiSchemaImpl implements ApiSchema { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiSchemaListByApiOptionalParams + options?: ApiSchemaListByApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByApiOperationSpec + listByApiOperationSpec, ); } @@ -175,11 +175,11 @@ export class ApiSchemaImpl implements ApiSchema { serviceName: string, apiId: string, schemaId: string, - options?: ApiSchemaGetEntityTagOptionalParams + options?: ApiSchemaGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, schemaId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -197,11 +197,11 @@ export class ApiSchemaImpl implements ApiSchema { serviceName: string, apiId: string, schemaId: string, - options?: ApiSchemaGetOptionalParams + options?: ApiSchemaGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, schemaId, options }, - getOperationSpec + getOperationSpec, ); } @@ -221,7 +221,7 @@ export class ApiSchemaImpl implements ApiSchema { apiId: string, schemaId: string, parameters: SchemaContract, - options?: ApiSchemaCreateOrUpdateOptionalParams + options?: ApiSchemaCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -230,21 +230,20 @@ export class ApiSchemaImpl implements ApiSchema { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -253,8 +252,8 @@ export class ApiSchemaImpl implements ApiSchema { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -262,8 +261,8 @@ export class ApiSchemaImpl implements ApiSchema { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -275,9 +274,9 @@ export class ApiSchemaImpl implements ApiSchema { apiId, schemaId, parameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ApiSchemaCreateOrUpdateResponse, @@ -285,7 +284,7 @@ export class ApiSchemaImpl implements ApiSchema { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -307,7 +306,7 @@ export class ApiSchemaImpl implements ApiSchema { apiId: string, schemaId: string, parameters: SchemaContract, - options?: ApiSchemaCreateOrUpdateOptionalParams + options?: ApiSchemaCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -315,7 +314,7 @@ export class ApiSchemaImpl implements ApiSchema { apiId, schemaId, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -337,11 +336,11 @@ export class ApiSchemaImpl implements ApiSchema { apiId: string, schemaId: string, ifMatch: string, - options?: ApiSchemaDeleteOptionalParams + options?: ApiSchemaDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, schemaId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -359,11 +358,11 @@ export class ApiSchemaImpl implements ApiSchema { serviceName: string, apiId: string, nextLink: string, - options?: ApiSchemaListByApiNextOptionalParams + options?: ApiSchemaListByApiNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByApiNextOperationSpec + listByApiNextOperationSpec, ); } } @@ -371,44 +370,42 @@ export class ApiSchemaImpl implements ApiSchema { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SchemaCollection + bodyMapper: Mappers.SchemaCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiSchemaGetEntityTagHeaders + headersMapper: Mappers.ApiSchemaGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -417,23 +414,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.schemaId + Parameters.schemaId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.SchemaContract, - headersMapper: Mappers.ApiSchemaGetHeaders + headersMapper: Mappers.ApiSchemaGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -442,37 +438,36 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.schemaId + Parameters.schemaId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.SchemaContract, - headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders + headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.SchemaContract, - headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders + headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders, }, 202: { bodyMapper: Mappers.SchemaContract, - headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders + headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders, }, 204: { bodyMapper: Mappers.SchemaContract, - headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders + headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters9, + requestBody: Parameters.parameters11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -480,26 +475,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.schemaId + Parameters.schemaId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.force], urlParameters: [ @@ -508,30 +502,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.schemaId + Parameters.schemaId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByApiNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SchemaCollection + bodyMapper: Mappers.SchemaCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, + Parameters.nextLink, Parameters.apiId, - Parameters.nextLink ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts index 34f2b6f132b9..32eebbe9d6a8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts @@ -26,7 +26,7 @@ import { ApiTagDescriptionCreateOrUpdateOptionalParams, ApiTagDescriptionCreateOrUpdateResponse, ApiTagDescriptionDeleteOptionalParams, - ApiTagDescriptionListByServiceNextResponse + ApiTagDescriptionListByServiceNextResponse, } from "../models"; /// @@ -55,13 +55,13 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiTagDescriptionListByServiceOptionalParams + options?: ApiTagDescriptionListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -79,9 +79,9 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -90,7 +90,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { serviceName: string, apiId: string, options?: ApiTagDescriptionListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiTagDescriptionListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -99,7 +99,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -112,7 +112,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -125,13 +125,13 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiTagDescriptionListByServiceOptionalParams + options?: ApiTagDescriptionListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -150,11 +150,11 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiTagDescriptionListByServiceOptionalParams + options?: ApiTagDescriptionListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -173,11 +173,11 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { serviceName: string, apiId: string, tagDescriptionId: string, - options?: ApiTagDescriptionGetEntityTagOptionalParams + options?: ApiTagDescriptionGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, tagDescriptionId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -196,11 +196,11 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { serviceName: string, apiId: string, tagDescriptionId: string, - options?: ApiTagDescriptionGetOptionalParams + options?: ApiTagDescriptionGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, tagDescriptionId, options }, - getOperationSpec + getOperationSpec, ); } @@ -221,7 +221,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { apiId: string, tagDescriptionId: string, parameters: TagDescriptionCreateParameters, - options?: ApiTagDescriptionCreateOrUpdateOptionalParams + options?: ApiTagDescriptionCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -230,9 +230,9 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { apiId, tagDescriptionId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -254,7 +254,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { apiId: string, tagDescriptionId: string, ifMatch: string, - options?: ApiTagDescriptionDeleteOptionalParams + options?: ApiTagDescriptionDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -263,9 +263,9 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { apiId, tagDescriptionId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -283,11 +283,11 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { serviceName: string, apiId: string, nextLink: string, - options?: ApiTagDescriptionListByServiceNextOptionalParams + options?: ApiTagDescriptionListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -295,44 +295,42 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagDescriptionCollection + bodyMapper: Mappers.TagDescriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiTagDescriptionGetEntityTagHeaders + headersMapper: Mappers.ApiTagDescriptionGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -341,23 +339,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.tagDescriptionId + Parameters.tagDescriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.TagDescriptionContract, - headersMapper: Mappers.ApiTagDescriptionGetHeaders + headersMapper: Mappers.ApiTagDescriptionGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -366,29 +363,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.tagDescriptionId + Parameters.tagDescriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.TagDescriptionContract, - headersMapper: Mappers.ApiTagDescriptionCreateOrUpdateHeaders + headersMapper: Mappers.ApiTagDescriptionCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.TagDescriptionContract, - headersMapper: Mappers.ApiTagDescriptionCreateOrUpdateHeaders + headersMapper: Mappers.ApiTagDescriptionCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters15, + requestBody: Parameters.parameters17, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -396,26 +392,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.tagDescriptionId + Parameters.tagDescriptionId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -424,30 +419,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.tagDescriptionId + Parameters.tagDescriptionId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagDescriptionCollection + bodyMapper: Mappers.TagDescriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, + Parameters.nextLink, Parameters.apiId, - Parameters.nextLink ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts index 2057a4b4532a..c852592590cc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts @@ -28,7 +28,7 @@ import { ApiVersionSetUpdateOptionalParams, ApiVersionSetUpdateResponse, ApiVersionSetDeleteOptionalParams, - ApiVersionSetListByServiceNextResponse + ApiVersionSetListByServiceNextResponse, } from "../models"; /// @@ -53,12 +53,12 @@ export class ApiVersionSetImpl implements ApiVersionSet { public listByService( resourceGroupName: string, serviceName: string, - options?: ApiVersionSetListByServiceOptionalParams + options?: ApiVersionSetListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -75,9 +75,9 @@ export class ApiVersionSetImpl implements ApiVersionSet { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { resourceGroupName: string, serviceName: string, options?: ApiVersionSetListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiVersionSetListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +93,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -105,7 +105,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,12 +117,12 @@ export class ApiVersionSetImpl implements ApiVersionSet { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: ApiVersionSetListByServiceOptionalParams + options?: ApiVersionSetListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -137,11 +137,11 @@ export class ApiVersionSetImpl implements ApiVersionSet { private _listByService( resourceGroupName: string, serviceName: string, - options?: ApiVersionSetListByServiceOptionalParams + options?: ApiVersionSetListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -157,11 +157,11 @@ export class ApiVersionSetImpl implements ApiVersionSet { resourceGroupName: string, serviceName: string, versionSetId: string, - options?: ApiVersionSetGetEntityTagOptionalParams + options?: ApiVersionSetGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, versionSetId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -177,11 +177,11 @@ export class ApiVersionSetImpl implements ApiVersionSet { resourceGroupName: string, serviceName: string, versionSetId: string, - options?: ApiVersionSetGetOptionalParams + options?: ApiVersionSetGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, versionSetId, options }, - getOperationSpec + getOperationSpec, ); } @@ -199,11 +199,11 @@ export class ApiVersionSetImpl implements ApiVersionSet { serviceName: string, versionSetId: string, parameters: ApiVersionSetContract, - options?: ApiVersionSetCreateOrUpdateOptionalParams + options?: ApiVersionSetCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, versionSetId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -224,7 +224,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { versionSetId: string, ifMatch: string, parameters: ApiVersionSetUpdateParameters, - options?: ApiVersionSetUpdateOptionalParams + options?: ApiVersionSetUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -233,9 +233,9 @@ export class ApiVersionSetImpl implements ApiVersionSet { versionSetId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -254,11 +254,11 @@ export class ApiVersionSetImpl implements ApiVersionSet { serviceName: string, versionSetId: string, ifMatch: string, - options?: ApiVersionSetDeleteOptionalParams + options?: ApiVersionSetDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, versionSetId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -273,11 +273,11 @@ export class ApiVersionSetImpl implements ApiVersionSet { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ApiVersionSetListByServiceNextOptionalParams + options?: ApiVersionSetListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -285,43 +285,41 @@ export class ApiVersionSetImpl implements ApiVersionSet { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiVersionSetCollection + bodyMapper: Mappers.ApiVersionSetCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiVersionSetGetEntityTagHeaders + headersMapper: Mappers.ApiVersionSetGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -329,23 +327,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.versionSetId + Parameters.versionSetId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ApiVersionSetContract, - headersMapper: Mappers.ApiVersionSetGetHeaders + headersMapper: Mappers.ApiVersionSetGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -353,85 +350,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.versionSetId + Parameters.versionSetId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ApiVersionSetContract, - headersMapper: Mappers.ApiVersionSetCreateOrUpdateHeaders + headersMapper: Mappers.ApiVersionSetCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.ApiVersionSetContract, - headersMapper: Mappers.ApiVersionSetCreateOrUpdateHeaders + headersMapper: Mappers.ApiVersionSetCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters18, + requestBody: Parameters.parameters20, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.versionSetId + Parameters.versionSetId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.ApiVersionSetContract, - headersMapper: Mappers.ApiVersionSetUpdateHeaders + headersMapper: Mappers.ApiVersionSetUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters19, + requestBody: Parameters.parameters21, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.versionSetId + Parameters.versionSetId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -439,29 +433,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.versionSetId + Parameters.versionSetId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiVersionSetCollection + bodyMapper: Mappers.ApiVersionSetCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiWiki.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiWiki.ts index 97883b205cfb..32f6640a5dbc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiWiki.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiWiki.ts @@ -22,7 +22,7 @@ import { WikiUpdateContract, ApiWikiUpdateOptionalParams, ApiWikiUpdateResponse, - ApiWikiDeleteOptionalParams + ApiWikiDeleteOptionalParams, } from "../models"; /** Class containing ApiWiki operations. */ @@ -48,11 +48,11 @@ export class ApiWikiImpl implements ApiWiki { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiWikiGetEntityTagOptionalParams + options?: ApiWikiGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -67,11 +67,11 @@ export class ApiWikiImpl implements ApiWiki { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiWikiGetOptionalParams + options?: ApiWikiGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - getOperationSpec + getOperationSpec, ); } @@ -88,11 +88,11 @@ export class ApiWikiImpl implements ApiWiki { serviceName: string, apiId: string, parameters: WikiContract, - options?: ApiWikiCreateOrUpdateOptionalParams + options?: ApiWikiCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -112,11 +112,11 @@ export class ApiWikiImpl implements ApiWiki { apiId: string, ifMatch: string, parameters: WikiUpdateContract, - options?: ApiWikiUpdateOptionalParams + options?: ApiWikiUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -134,11 +134,11 @@ export class ApiWikiImpl implements ApiWiki { serviceName: string, apiId: string, ifMatch: string, - options?: ApiWikiDeleteOptionalParams + options?: ApiWikiDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -146,16 +146,15 @@ export class ApiWikiImpl implements ApiWiki { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiWikiGetEntityTagHeaders + headersMapper: Mappers.ApiWikiGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -163,23 +162,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.WikiContract, - headersMapper: Mappers.ApiWikiGetHeaders + headersMapper: Mappers.ApiWikiGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -187,85 +185,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.WikiContract, - headersMapper: Mappers.ApiWikiCreateOrUpdateHeaders + headersMapper: Mappers.ApiWikiCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.WikiContract, - headersMapper: Mappers.ApiWikiCreateOrUpdateHeaders + headersMapper: Mappers.ApiWikiCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters16, + requestBody: Parameters.parameters18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.WikiContract, - headersMapper: Mappers.ApiWikiUpdateHeaders + headersMapper: Mappers.ApiWikiUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters17, + requestBody: Parameters.parameters19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -273,8 +268,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts index d4aeb49360f5..3e3dc2241d2f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts @@ -18,7 +18,7 @@ import { ApiWikisListNextOptionalParams, ApiWikisListOptionalParams, ApiWikisListResponse, - ApiWikisListNextResponse + ApiWikisListNextResponse, } from "../models"; /// @@ -45,13 +45,13 @@ export class ApiWikisImpl implements ApiWikis { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiWikisListOptionalParams + options?: ApiWikisListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -69,9 +69,9 @@ export class ApiWikisImpl implements ApiWikis { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class ApiWikisImpl implements ApiWikis { serviceName: string, apiId: string, options?: ApiWikisListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiWikisListResponse; let continuationToken = settings?.continuationToken; @@ -97,7 +97,7 @@ export class ApiWikisImpl implements ApiWikis { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -110,13 +110,13 @@ export class ApiWikisImpl implements ApiWikis { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiWikisListOptionalParams + options?: ApiWikisListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -133,11 +133,11 @@ export class ApiWikisImpl implements ApiWikis { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiWikisListOptionalParams + options?: ApiWikisListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listOperationSpec + listOperationSpec, ); } @@ -154,11 +154,11 @@ export class ApiWikisImpl implements ApiWikis { serviceName: string, apiId: string, nextLink: string, - options?: ApiWikisListNextOptionalParams + options?: ApiWikisListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -166,43 +166,42 @@ export class ApiWikisImpl implements ApiWikis { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WikiCollection + bodyMapper: Mappers.WikiCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WikiCollection + bodyMapper: Mappers.WikiCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -210,8 +209,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts index c347d55c595e..82d42ca5cb98 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts @@ -26,7 +26,7 @@ import { AuthorizationConfirmConsentCodeRequestContract, AuthorizationConfirmConsentCodeOptionalParams, AuthorizationConfirmConsentCodeResponse, - AuthorizationListByAuthorizationProviderNextResponse + AuthorizationListByAuthorizationProviderNextResponse, } from "../models"; /// @@ -53,13 +53,13 @@ export class AuthorizationImpl implements Authorization { resourceGroupName: string, serviceName: string, authorizationProviderId: string, - options?: AuthorizationListByAuthorizationProviderOptionalParams + options?: AuthorizationListByAuthorizationProviderOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAuthorizationProviderPagingAll( resourceGroupName, serviceName, authorizationProviderId, - options + options, ); return { next() { @@ -77,9 +77,9 @@ export class AuthorizationImpl implements Authorization { serviceName, authorizationProviderId, options, - settings + settings, ); - } + }, }; } @@ -88,7 +88,7 @@ export class AuthorizationImpl implements Authorization { serviceName: string, authorizationProviderId: string, options?: AuthorizationListByAuthorizationProviderOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AuthorizationListByAuthorizationProviderResponse; let continuationToken = settings?.continuationToken; @@ -97,7 +97,7 @@ export class AuthorizationImpl implements Authorization { resourceGroupName, serviceName, authorizationProviderId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -110,7 +110,7 @@ export class AuthorizationImpl implements Authorization { serviceName, authorizationProviderId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -123,13 +123,13 @@ export class AuthorizationImpl implements Authorization { resourceGroupName: string, serviceName: string, authorizationProviderId: string, - options?: AuthorizationListByAuthorizationProviderOptionalParams + options?: AuthorizationListByAuthorizationProviderOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAuthorizationProviderPagingPage( resourceGroupName, serviceName, authorizationProviderId, - options + options, )) { yield* page; } @@ -146,11 +146,11 @@ export class AuthorizationImpl implements Authorization { resourceGroupName: string, serviceName: string, authorizationProviderId: string, - options?: AuthorizationListByAuthorizationProviderOptionalParams + options?: AuthorizationListByAuthorizationProviderOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, authorizationProviderId, options }, - listByAuthorizationProviderOperationSpec + listByAuthorizationProviderOperationSpec, ); } @@ -167,7 +167,7 @@ export class AuthorizationImpl implements Authorization { serviceName: string, authorizationProviderId: string, authorizationId: string, - options?: AuthorizationGetOptionalParams + options?: AuthorizationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -175,9 +175,9 @@ export class AuthorizationImpl implements Authorization { serviceName, authorizationProviderId, authorizationId, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -196,7 +196,7 @@ export class AuthorizationImpl implements Authorization { authorizationProviderId: string, authorizationId: string, parameters: AuthorizationContract, - options?: AuthorizationCreateOrUpdateOptionalParams + options?: AuthorizationCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -205,9 +205,9 @@ export class AuthorizationImpl implements Authorization { authorizationProviderId, authorizationId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -227,7 +227,7 @@ export class AuthorizationImpl implements Authorization { authorizationProviderId: string, authorizationId: string, ifMatch: string, - options?: AuthorizationDeleteOptionalParams + options?: AuthorizationDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -236,9 +236,9 @@ export class AuthorizationImpl implements Authorization { authorizationProviderId, authorizationId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -257,7 +257,7 @@ export class AuthorizationImpl implements Authorization { authorizationProviderId: string, authorizationId: string, parameters: AuthorizationConfirmConsentCodeRequestContract, - options?: AuthorizationConfirmConsentCodeOptionalParams + options?: AuthorizationConfirmConsentCodeOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -266,9 +266,9 @@ export class AuthorizationImpl implements Authorization { authorizationProviderId, authorizationId, parameters, - options + options, }, - confirmConsentCodeOperationSpec + confirmConsentCodeOperationSpec, ); } @@ -286,7 +286,7 @@ export class AuthorizationImpl implements Authorization { serviceName: string, authorizationProviderId: string, nextLink: string, - options?: AuthorizationListByAuthorizationProviderNextOptionalParams + options?: AuthorizationListByAuthorizationProviderNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -294,9 +294,9 @@ export class AuthorizationImpl implements Authorization { serviceName, authorizationProviderId, nextLink, - options + options, }, - listByAuthorizationProviderNextOperationSpec + listByAuthorizationProviderNextOperationSpec, ); } } @@ -304,45 +304,43 @@ export class AuthorizationImpl implements Authorization { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByAuthorizationProviderOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationCollection + bodyMapper: Mappers.AuthorizationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authorizationProviderId + Parameters.authorizationProviderId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.AuthorizationContract, - headersMapper: Mappers.AuthorizationGetHeaders + headersMapper: Mappers.AuthorizationGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -351,27 +349,26 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.authorizationProviderId, - Parameters.authorizationId + Parameters.authorizationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.AuthorizationContract, - headersMapper: Mappers.AuthorizationCreateOrUpdateHeaders + headersMapper: Mappers.AuthorizationCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.AuthorizationContract, - headersMapper: Mappers.AuthorizationCreateOrUpdateHeaders + headersMapper: Mappers.AuthorizationCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters23, queryParameters: [Parameters.apiVersion], @@ -381,26 +378,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.authorizationProviderId, - Parameters.authorizationId + Parameters.authorizationId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -409,22 +405,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.authorizationProviderId, - Parameters.authorizationId + Parameters.authorizationId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const confirmConsentCodeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/confirmConsentCode", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/confirmConsentCode", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.AuthorizationConfirmConsentCodeHeaders + headersMapper: Mappers.AuthorizationConfirmConsentCodeHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters24, queryParameters: [Parameters.apiVersion], @@ -434,22 +429,22 @@ const confirmConsentCodeOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.authorizationProviderId, - Parameters.authorizationId + Parameters.authorizationId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByAuthorizationProviderNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationCollection + bodyMapper: Mappers.AuthorizationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -457,8 +452,8 @@ const listByAuthorizationProviderNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.authorizationProviderId + Parameters.authorizationProviderId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts index 021fe8debd36..37c3f55cd045 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts @@ -23,13 +23,14 @@ import { AuthorizationAccessPolicyCreateOrUpdateOptionalParams, AuthorizationAccessPolicyCreateOrUpdateResponse, AuthorizationAccessPolicyDeleteOptionalParams, - AuthorizationAccessPolicyListByAuthorizationNextResponse + AuthorizationAccessPolicyListByAuthorizationNextResponse, } from "../models"; /// /** Class containing AuthorizationAccessPolicy operations. */ export class AuthorizationAccessPolicyImpl - implements AuthorizationAccessPolicy { + implements AuthorizationAccessPolicy +{ private readonly client: ApiManagementClient; /** @@ -53,14 +54,14 @@ export class AuthorizationAccessPolicyImpl serviceName: string, authorizationProviderId: string, authorizationId: string, - options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAuthorizationPagingAll( resourceGroupName, serviceName, authorizationProviderId, authorizationId, - options + options, ); return { next() { @@ -79,9 +80,9 @@ export class AuthorizationAccessPolicyImpl authorizationProviderId, authorizationId, options, - settings + settings, ); - } + }, }; } @@ -91,7 +92,7 @@ export class AuthorizationAccessPolicyImpl authorizationProviderId: string, authorizationId: string, options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AuthorizationAccessPolicyListByAuthorizationResponse; let continuationToken = settings?.continuationToken; @@ -101,7 +102,7 @@ export class AuthorizationAccessPolicyImpl serviceName, authorizationProviderId, authorizationId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -115,7 +116,7 @@ export class AuthorizationAccessPolicyImpl authorizationProviderId, authorizationId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -129,14 +130,14 @@ export class AuthorizationAccessPolicyImpl serviceName: string, authorizationProviderId: string, authorizationId: string, - options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAuthorizationPagingPage( resourceGroupName, serviceName, authorizationProviderId, authorizationId, - options + options, )) { yield* page; } @@ -155,7 +156,7 @@ export class AuthorizationAccessPolicyImpl serviceName: string, authorizationProviderId: string, authorizationId: string, - options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -163,9 +164,9 @@ export class AuthorizationAccessPolicyImpl serviceName, authorizationProviderId, authorizationId, - options + options, }, - listByAuthorizationOperationSpec + listByAuthorizationOperationSpec, ); } @@ -184,7 +185,7 @@ export class AuthorizationAccessPolicyImpl authorizationProviderId: string, authorizationId: string, authorizationAccessPolicyId: string, - options?: AuthorizationAccessPolicyGetOptionalParams + options?: AuthorizationAccessPolicyGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -193,9 +194,9 @@ export class AuthorizationAccessPolicyImpl authorizationProviderId, authorizationId, authorizationAccessPolicyId, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -216,7 +217,7 @@ export class AuthorizationAccessPolicyImpl authorizationId: string, authorizationAccessPolicyId: string, parameters: AuthorizationAccessPolicyContract, - options?: AuthorizationAccessPolicyCreateOrUpdateOptionalParams + options?: AuthorizationAccessPolicyCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -226,9 +227,9 @@ export class AuthorizationAccessPolicyImpl authorizationId, authorizationAccessPolicyId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -250,7 +251,7 @@ export class AuthorizationAccessPolicyImpl authorizationId: string, authorizationAccessPolicyId: string, ifMatch: string, - options?: AuthorizationAccessPolicyDeleteOptionalParams + options?: AuthorizationAccessPolicyDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -260,9 +261,9 @@ export class AuthorizationAccessPolicyImpl authorizationId, authorizationAccessPolicyId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -281,7 +282,7 @@ export class AuthorizationAccessPolicyImpl authorizationProviderId: string, authorizationId: string, nextLink: string, - options?: AuthorizationAccessPolicyListByAuthorizationNextOptionalParams + options?: AuthorizationAccessPolicyListByAuthorizationNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -290,9 +291,9 @@ export class AuthorizationAccessPolicyImpl authorizationProviderId, authorizationId, nextLink, - options + options, }, - listByAuthorizationNextOperationSpec + listByAuthorizationNextOperationSpec, ); } } @@ -300,22 +301,21 @@ export class AuthorizationAccessPolicyImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByAuthorizationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationAccessPolicyCollection + bodyMapper: Mappers.AuthorizationAccessPolicyCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, @@ -323,23 +323,22 @@ const listByAuthorizationOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.authorizationProviderId, - Parameters.authorizationId + Parameters.authorizationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.AuthorizationAccessPolicyContract, - headersMapper: Mappers.AuthorizationAccessPolicyGetHeaders + headersMapper: Mappers.AuthorizationAccessPolicyGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -349,27 +348,26 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.authorizationProviderId, Parameters.authorizationId, - Parameters.authorizationAccessPolicyId + Parameters.authorizationAccessPolicyId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.AuthorizationAccessPolicyContract, - headersMapper: Mappers.AuthorizationAccessPolicyCreateOrUpdateHeaders + headersMapper: Mappers.AuthorizationAccessPolicyCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.AuthorizationAccessPolicyContract, - headersMapper: Mappers.AuthorizationAccessPolicyCreateOrUpdateHeaders + headersMapper: Mappers.AuthorizationAccessPolicyCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters26, queryParameters: [Parameters.apiVersion], @@ -380,26 +378,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.authorizationProviderId, Parameters.authorizationId, - Parameters.authorizationAccessPolicyId + Parameters.authorizationAccessPolicyId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -409,21 +406,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.authorizationProviderId, Parameters.authorizationId, - Parameters.authorizationAccessPolicyId + Parameters.authorizationAccessPolicyId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByAuthorizationNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationAccessPolicyCollection + bodyMapper: Mappers.AuthorizationAccessPolicyCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -432,8 +429,8 @@ const listByAuthorizationNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.nextLink, Parameters.authorizationProviderId, - Parameters.authorizationId + Parameters.authorizationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts index 7a86c6edba4f..69ef0fa99edc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts @@ -14,7 +14,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { AuthorizationLoginRequestContract, AuthorizationLoginLinksPostOptionalParams, - AuthorizationLoginLinksPostResponse + AuthorizationLoginLinksPostResponse, } from "../models"; /** Class containing AuthorizationLoginLinks operations. */ @@ -44,7 +44,7 @@ export class AuthorizationLoginLinksImpl implements AuthorizationLoginLinks { authorizationProviderId: string, authorizationId: string, parameters: AuthorizationLoginRequestContract, - options?: AuthorizationLoginLinksPostOptionalParams + options?: AuthorizationLoginLinksPostOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -53,9 +53,9 @@ export class AuthorizationLoginLinksImpl implements AuthorizationLoginLinks { authorizationProviderId, authorizationId, parameters, - options + options, }, - postOperationSpec + postOperationSpec, ); } } @@ -63,17 +63,16 @@ export class AuthorizationLoginLinksImpl implements AuthorizationLoginLinks { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const postOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/getLoginLinks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/getLoginLinks", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.AuthorizationLoginResponseContract, - headersMapper: Mappers.AuthorizationLoginLinksPostHeaders + headersMapper: Mappers.AuthorizationLoginLinksPostHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters25, queryParameters: [Parameters.apiVersion], @@ -83,9 +82,9 @@ const postOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.authorizationProviderId, - Parameters.authorizationId + Parameters.authorizationId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts index 603eae55b5fa..6aeeff62958c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts @@ -23,7 +23,7 @@ import { AuthorizationProviderCreateOrUpdateOptionalParams, AuthorizationProviderCreateOrUpdateResponse, AuthorizationProviderDeleteOptionalParams, - AuthorizationProviderListByServiceNextResponse + AuthorizationProviderListByServiceNextResponse, } from "../models"; /// @@ -48,12 +48,12 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { public listByService( resourceGroupName: string, serviceName: string, - options?: AuthorizationProviderListByServiceOptionalParams + options?: AuthorizationProviderListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -70,9 +70,9 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { resourceGroupName: string, serviceName: string, options?: AuthorizationProviderListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AuthorizationProviderListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -88,7 +88,7 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -100,7 +100,7 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -112,12 +112,12 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: AuthorizationProviderListByServiceOptionalParams + options?: AuthorizationProviderListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -132,11 +132,11 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { private _listByService( resourceGroupName: string, serviceName: string, - options?: AuthorizationProviderListByServiceOptionalParams + options?: AuthorizationProviderListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -151,11 +151,11 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { resourceGroupName: string, serviceName: string, authorizationProviderId: string, - options?: AuthorizationProviderGetOptionalParams + options?: AuthorizationProviderGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, authorizationProviderId, options }, - getOperationSpec + getOperationSpec, ); } @@ -172,7 +172,7 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { serviceName: string, authorizationProviderId: string, parameters: AuthorizationProviderContract, - options?: AuthorizationProviderCreateOrUpdateOptionalParams + options?: AuthorizationProviderCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -180,9 +180,9 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { serviceName, authorizationProviderId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -200,7 +200,7 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { serviceName: string, authorizationProviderId: string, ifMatch: string, - options?: AuthorizationProviderDeleteOptionalParams + options?: AuthorizationProviderDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -208,9 +208,9 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { serviceName, authorizationProviderId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -225,11 +225,11 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { resourceGroupName: string, serviceName: string, nextLink: string, - options?: AuthorizationProviderListByServiceNextOptionalParams + options?: AuthorizationProviderListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -237,44 +237,42 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationProviderCollection + bodyMapper: Mappers.AuthorizationProviderCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.AuthorizationProviderContract, - headersMapper: Mappers.AuthorizationProviderGetHeaders + headersMapper: Mappers.AuthorizationProviderGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -282,27 +280,26 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authorizationProviderId + Parameters.authorizationProviderId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.AuthorizationProviderContract, - headersMapper: Mappers.AuthorizationProviderCreateOrUpdateHeaders + headersMapper: Mappers.AuthorizationProviderCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.AuthorizationProviderContract, - headersMapper: Mappers.AuthorizationProviderCreateOrUpdateHeaders + headersMapper: Mappers.AuthorizationProviderCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters22, queryParameters: [Parameters.apiVersion], @@ -311,26 +308,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authorizationProviderId + Parameters.authorizationProviderId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -338,29 +334,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authorizationProviderId + Parameters.authorizationProviderId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationProviderCollection + bodyMapper: Mappers.AuthorizationProviderCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts index 99abc294e940..c3ecda153cf6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts @@ -30,7 +30,7 @@ import { AuthorizationServerDeleteOptionalParams, AuthorizationServerListSecretsOptionalParams, AuthorizationServerListSecretsResponse, - AuthorizationServerListByServiceNextResponse + AuthorizationServerListByServiceNextResponse, } from "../models"; /// @@ -55,12 +55,12 @@ export class AuthorizationServerImpl implements AuthorizationServer { public listByService( resourceGroupName: string, serviceName: string, - options?: AuthorizationServerListByServiceOptionalParams + options?: AuthorizationServerListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -77,9 +77,9 @@ export class AuthorizationServerImpl implements AuthorizationServer { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -87,7 +87,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { resourceGroupName: string, serviceName: string, options?: AuthorizationServerListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AuthorizationServerListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -95,7 +95,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -107,7 +107,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -119,12 +119,12 @@ export class AuthorizationServerImpl implements AuthorizationServer { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: AuthorizationServerListByServiceOptionalParams + options?: AuthorizationServerListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -139,11 +139,11 @@ export class AuthorizationServerImpl implements AuthorizationServer { private _listByService( resourceGroupName: string, serviceName: string, - options?: AuthorizationServerListByServiceOptionalParams + options?: AuthorizationServerListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -158,11 +158,11 @@ export class AuthorizationServerImpl implements AuthorizationServer { resourceGroupName: string, serviceName: string, authsid: string, - options?: AuthorizationServerGetEntityTagOptionalParams + options?: AuthorizationServerGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, authsid, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -177,11 +177,11 @@ export class AuthorizationServerImpl implements AuthorizationServer { resourceGroupName: string, serviceName: string, authsid: string, - options?: AuthorizationServerGetOptionalParams + options?: AuthorizationServerGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, authsid, options }, - getOperationSpec + getOperationSpec, ); } @@ -198,11 +198,11 @@ export class AuthorizationServerImpl implements AuthorizationServer { serviceName: string, authsid: string, parameters: AuthorizationServerContract, - options?: AuthorizationServerCreateOrUpdateOptionalParams + options?: AuthorizationServerCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, authsid, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -222,11 +222,11 @@ export class AuthorizationServerImpl implements AuthorizationServer { authsid: string, ifMatch: string, parameters: AuthorizationServerUpdateContract, - options?: AuthorizationServerUpdateOptionalParams + options?: AuthorizationServerUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, authsid, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -244,11 +244,11 @@ export class AuthorizationServerImpl implements AuthorizationServer { serviceName: string, authsid: string, ifMatch: string, - options?: AuthorizationServerDeleteOptionalParams + options?: AuthorizationServerDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, authsid, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -263,11 +263,11 @@ export class AuthorizationServerImpl implements AuthorizationServer { resourceGroupName: string, serviceName: string, authsid: string, - options?: AuthorizationServerListSecretsOptionalParams + options?: AuthorizationServerListSecretsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, authsid, options }, - listSecretsOperationSpec + listSecretsOperationSpec, ); } @@ -282,11 +282,11 @@ export class AuthorizationServerImpl implements AuthorizationServer { resourceGroupName: string, serviceName: string, nextLink: string, - options?: AuthorizationServerListByServiceNextOptionalParams + options?: AuthorizationServerListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -294,43 +294,41 @@ export class AuthorizationServerImpl implements AuthorizationServer { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationServerCollection + bodyMapper: Mappers.AuthorizationServerCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.AuthorizationServerGetEntityTagHeaders + headersMapper: Mappers.AuthorizationServerGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -338,23 +336,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authsid + Parameters.authsid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.AuthorizationServerContract, - headersMapper: Mappers.AuthorizationServerGetHeaders + headersMapper: Mappers.AuthorizationServerGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -362,85 +359,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authsid + Parameters.authsid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.AuthorizationServerContract, - headersMapper: Mappers.AuthorizationServerCreateOrUpdateHeaders + headersMapper: Mappers.AuthorizationServerCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.AuthorizationServerContract, - headersMapper: Mappers.AuthorizationServerCreateOrUpdateHeaders + headersMapper: Mappers.AuthorizationServerCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters20, + requestBody: Parameters.parameters27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authsid + Parameters.authsid, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.AuthorizationServerContract, - headersMapper: Mappers.AuthorizationServerUpdateHeaders + headersMapper: Mappers.AuthorizationServerUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters21, + requestBody: Parameters.parameters28, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authsid + Parameters.authsid, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -448,23 +442,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authsid + Parameters.authsid, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listSecretsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}/listSecrets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}/listSecrets", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.AuthorizationServerSecretsContract, - headersMapper: Mappers.AuthorizationServerListSecretsHeaders + headersMapper: Mappers.AuthorizationServerListSecretsHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -472,29 +465,29 @@ const listSecretsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authsid + Parameters.authsid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationServerCollection + bodyMapper: Mappers.AuthorizationServerCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts b/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts index c445f24cedbc..556eab5edd6a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts @@ -29,7 +29,7 @@ import { BackendUpdateResponse, BackendDeleteOptionalParams, BackendReconnectOptionalParams, - BackendListByServiceNextResponse + BackendListByServiceNextResponse, } from "../models"; /// @@ -54,12 +54,12 @@ export class BackendImpl implements Backend { public listByService( resourceGroupName: string, serviceName: string, - options?: BackendListByServiceOptionalParams + options?: BackendListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -76,9 +76,9 @@ export class BackendImpl implements Backend { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +86,7 @@ export class BackendImpl implements Backend { resourceGroupName: string, serviceName: string, options?: BackendListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BackendListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class BackendImpl implements Backend { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -106,7 +106,7 @@ export class BackendImpl implements Backend { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -118,12 +118,12 @@ export class BackendImpl implements Backend { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: BackendListByServiceOptionalParams + options?: BackendListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class BackendImpl implements Backend { private _listByService( resourceGroupName: string, serviceName: string, - options?: BackendListByServiceOptionalParams + options?: BackendListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -158,11 +158,11 @@ export class BackendImpl implements Backend { resourceGroupName: string, serviceName: string, backendId: string, - options?: BackendGetEntityTagOptionalParams + options?: BackendGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, backendId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -178,11 +178,11 @@ export class BackendImpl implements Backend { resourceGroupName: string, serviceName: string, backendId: string, - options?: BackendGetOptionalParams + options?: BackendGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, backendId, options }, - getOperationSpec + getOperationSpec, ); } @@ -200,11 +200,11 @@ export class BackendImpl implements Backend { serviceName: string, backendId: string, parameters: BackendContract, - options?: BackendCreateOrUpdateOptionalParams + options?: BackendCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, backendId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -225,7 +225,7 @@ export class BackendImpl implements Backend { backendId: string, ifMatch: string, parameters: BackendUpdateParameters, - options?: BackendUpdateOptionalParams + options?: BackendUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -234,9 +234,9 @@ export class BackendImpl implements Backend { backendId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -255,11 +255,11 @@ export class BackendImpl implements Backend { serviceName: string, backendId: string, ifMatch: string, - options?: BackendDeleteOptionalParams + options?: BackendDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, backendId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -276,11 +276,11 @@ export class BackendImpl implements Backend { resourceGroupName: string, serviceName: string, backendId: string, - options?: BackendReconnectOptionalParams + options?: BackendReconnectOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, backendId, options }, - reconnectOperationSpec + reconnectOperationSpec, ); } @@ -295,11 +295,11 @@ export class BackendImpl implements Backend { resourceGroupName: string, serviceName: string, nextLink: string, - options?: BackendListByServiceNextOptionalParams + options?: BackendListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -307,43 +307,41 @@ export class BackendImpl implements Backend { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BackendCollection + bodyMapper: Mappers.BackendCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.BackendGetEntityTagHeaders + headersMapper: Mappers.BackendGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -351,23 +349,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.backendId + Parameters.backendId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.BackendContract, - headersMapper: Mappers.BackendGetHeaders + headersMapper: Mappers.BackendGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -375,85 +372,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.backendId + Parameters.backendId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.BackendContract, - headersMapper: Mappers.BackendCreateOrUpdateHeaders + headersMapper: Mappers.BackendCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.BackendContract, - headersMapper: Mappers.BackendCreateOrUpdateHeaders + headersMapper: Mappers.BackendCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters27, + requestBody: Parameters.parameters29, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.backendId + Parameters.backendId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.BackendContract, - headersMapper: Mappers.BackendUpdateHeaders + headersMapper: Mappers.BackendUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters28, + requestBody: Parameters.parameters30, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.backendId + Parameters.backendId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -461,52 +455,51 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.backendId + Parameters.backendId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const reconnectOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}/reconnect", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}/reconnect", httpMethod: "POST", responses: { 202: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters29, + requestBody: Parameters.parameters31, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.backendId + Parameters.backendId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BackendCollection + bodyMapper: Mappers.BackendCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts b/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts index 4c8a2d9f2f7c..8f9f36634915 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts @@ -28,7 +28,7 @@ import { CacheUpdateOptionalParams, CacheUpdateResponse, CacheDeleteOptionalParams, - CacheListByServiceNextResponse + CacheListByServiceNextResponse, } from "../models"; /// @@ -53,12 +53,12 @@ export class CacheImpl implements Cache { public listByService( resourceGroupName: string, serviceName: string, - options?: CacheListByServiceOptionalParams + options?: CacheListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -75,9 +75,9 @@ export class CacheImpl implements Cache { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class CacheImpl implements Cache { resourceGroupName: string, serviceName: string, options?: CacheListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CacheListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +93,7 @@ export class CacheImpl implements Cache { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -105,7 +105,7 @@ export class CacheImpl implements Cache { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,12 +117,12 @@ export class CacheImpl implements Cache { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: CacheListByServiceOptionalParams + options?: CacheListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -137,11 +137,11 @@ export class CacheImpl implements Cache { private _listByService( resourceGroupName: string, serviceName: string, - options?: CacheListByServiceOptionalParams + options?: CacheListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -157,11 +157,11 @@ export class CacheImpl implements Cache { resourceGroupName: string, serviceName: string, cacheId: string, - options?: CacheGetEntityTagOptionalParams + options?: CacheGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, cacheId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -177,11 +177,11 @@ export class CacheImpl implements Cache { resourceGroupName: string, serviceName: string, cacheId: string, - options?: CacheGetOptionalParams + options?: CacheGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, cacheId, options }, - getOperationSpec + getOperationSpec, ); } @@ -199,11 +199,11 @@ export class CacheImpl implements Cache { serviceName: string, cacheId: string, parameters: CacheContract, - options?: CacheCreateOrUpdateOptionalParams + options?: CacheCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, cacheId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -224,11 +224,11 @@ export class CacheImpl implements Cache { cacheId: string, ifMatch: string, parameters: CacheUpdateParameters, - options?: CacheUpdateOptionalParams + options?: CacheUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, cacheId, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -247,11 +247,11 @@ export class CacheImpl implements Cache { serviceName: string, cacheId: string, ifMatch: string, - options?: CacheDeleteOptionalParams + options?: CacheDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, cacheId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -266,11 +266,11 @@ export class CacheImpl implements Cache { resourceGroupName: string, serviceName: string, nextLink: string, - options?: CacheListByServiceNextOptionalParams + options?: CacheListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -278,38 +278,36 @@ export class CacheImpl implements Cache { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CacheCollection + bodyMapper: Mappers.CacheCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.top, Parameters.skip, Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.skip], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.CacheGetEntityTagHeaders + headersMapper: Mappers.CacheGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -317,23 +315,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.cacheId + Parameters.cacheId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.CacheContract, - headersMapper: Mappers.CacheGetHeaders + headersMapper: Mappers.CacheGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -341,85 +338,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.cacheId + Parameters.cacheId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.CacheContract, - headersMapper: Mappers.CacheCreateOrUpdateHeaders + headersMapper: Mappers.CacheCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.CacheContract, - headersMapper: Mappers.CacheCreateOrUpdateHeaders + headersMapper: Mappers.CacheCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters30, + requestBody: Parameters.parameters32, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.cacheId + Parameters.cacheId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.CacheContract, - headersMapper: Mappers.CacheUpdateHeaders + headersMapper: Mappers.CacheUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters31, + requestBody: Parameters.parameters33, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.cacheId + Parameters.cacheId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -427,29 +421,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.cacheId + Parameters.cacheId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CacheCollection + bodyMapper: Mappers.CacheCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts b/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts index e4768349aeb3..d712736f1ab7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts @@ -28,7 +28,7 @@ import { CertificateDeleteOptionalParams, CertificateRefreshSecretOptionalParams, CertificateRefreshSecretResponse, - CertificateListByServiceNextResponse + CertificateListByServiceNextResponse, } from "../models"; /// @@ -53,12 +53,12 @@ export class CertificateImpl implements Certificate { public listByService( resourceGroupName: string, serviceName: string, - options?: CertificateListByServiceOptionalParams + options?: CertificateListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -75,9 +75,9 @@ export class CertificateImpl implements Certificate { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class CertificateImpl implements Certificate { resourceGroupName: string, serviceName: string, options?: CertificateListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CertificateListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +93,7 @@ export class CertificateImpl implements Certificate { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -105,7 +105,7 @@ export class CertificateImpl implements Certificate { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,12 +117,12 @@ export class CertificateImpl implements Certificate { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: CertificateListByServiceOptionalParams + options?: CertificateListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -137,11 +137,11 @@ export class CertificateImpl implements Certificate { private _listByService( resourceGroupName: string, serviceName: string, - options?: CertificateListByServiceOptionalParams + options?: CertificateListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -157,11 +157,11 @@ export class CertificateImpl implements Certificate { resourceGroupName: string, serviceName: string, certificateId: string, - options?: CertificateGetEntityTagOptionalParams + options?: CertificateGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, certificateId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -177,11 +177,11 @@ export class CertificateImpl implements Certificate { resourceGroupName: string, serviceName: string, certificateId: string, - options?: CertificateGetOptionalParams + options?: CertificateGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, certificateId, options }, - getOperationSpec + getOperationSpec, ); } @@ -199,11 +199,11 @@ export class CertificateImpl implements Certificate { serviceName: string, certificateId: string, parameters: CertificateCreateOrUpdateParameters, - options?: CertificateCreateOrUpdateOptionalParams + options?: CertificateCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, certificateId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -222,11 +222,11 @@ export class CertificateImpl implements Certificate { serviceName: string, certificateId: string, ifMatch: string, - options?: CertificateDeleteOptionalParams + options?: CertificateDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, certificateId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -242,11 +242,11 @@ export class CertificateImpl implements Certificate { resourceGroupName: string, serviceName: string, certificateId: string, - options?: CertificateRefreshSecretOptionalParams + options?: CertificateRefreshSecretOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, certificateId, options }, - refreshSecretOperationSpec + refreshSecretOperationSpec, ); } @@ -261,11 +261,11 @@ export class CertificateImpl implements Certificate { resourceGroupName: string, serviceName: string, nextLink: string, - options?: CertificateListByServiceNextOptionalParams + options?: CertificateListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -273,44 +273,42 @@ export class CertificateImpl implements Certificate { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CertificateCollection + bodyMapper: Mappers.CertificateCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.isKeyVaultRefreshFailed + Parameters.isKeyVaultRefreshFailed, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.CertificateGetEntityTagHeaders + headersMapper: Mappers.CertificateGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -318,23 +316,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.certificateId + Parameters.certificateId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.CertificateContract, - headersMapper: Mappers.CertificateGetHeaders + headersMapper: Mappers.CertificateGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -342,55 +339,53 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.certificateId + Parameters.certificateId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.CertificateContract, - headersMapper: Mappers.CertificateCreateOrUpdateHeaders + headersMapper: Mappers.CertificateCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.CertificateContract, - headersMapper: Mappers.CertificateCreateOrUpdateHeaders + headersMapper: Mappers.CertificateCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters32, + requestBody: Parameters.parameters34, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.certificateId + Parameters.certificateId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -398,23 +393,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.certificateId + Parameters.certificateId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const refreshSecretOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}/refreshSecret", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}/refreshSecret", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.CertificateContract, - headersMapper: Mappers.CertificateRefreshSecretHeaders + headersMapper: Mappers.CertificateRefreshSecretHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -422,29 +416,29 @@ const refreshSecretOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.certificateId + Parameters.certificateId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CertificateCollection + bodyMapper: Mappers.CertificateCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts b/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts index 3f3cc3eac3b8..431b17e63451 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts @@ -25,7 +25,7 @@ import { ContentItemCreateOrUpdateOptionalParams, ContentItemCreateOrUpdateResponse, ContentItemDeleteOptionalParams, - ContentItemListByServiceNextResponse + ContentItemListByServiceNextResponse, } from "../models"; /// @@ -52,13 +52,13 @@ export class ContentItemImpl implements ContentItem { resourceGroupName: string, serviceName: string, contentTypeId: string, - options?: ContentItemListByServiceOptionalParams + options?: ContentItemListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, contentTypeId, - options + options, ); return { next() { @@ -76,9 +76,9 @@ export class ContentItemImpl implements ContentItem { serviceName, contentTypeId, options, - settings + settings, ); - } + }, }; } @@ -87,7 +87,7 @@ export class ContentItemImpl implements ContentItem { serviceName: string, contentTypeId: string, options?: ContentItemListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ContentItemListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +96,7 @@ export class ContentItemImpl implements ContentItem { resourceGroupName, serviceName, contentTypeId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -109,7 +109,7 @@ export class ContentItemImpl implements ContentItem { serviceName, contentTypeId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -122,13 +122,13 @@ export class ContentItemImpl implements ContentItem { resourceGroupName: string, serviceName: string, contentTypeId: string, - options?: ContentItemListByServiceOptionalParams + options?: ContentItemListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, contentTypeId, - options + options, )) { yield* page; } @@ -145,11 +145,11 @@ export class ContentItemImpl implements ContentItem { resourceGroupName: string, serviceName: string, contentTypeId: string, - options?: ContentItemListByServiceOptionalParams + options?: ContentItemListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, contentTypeId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -167,11 +167,11 @@ export class ContentItemImpl implements ContentItem { serviceName: string, contentTypeId: string, contentItemId: string, - options?: ContentItemGetEntityTagOptionalParams + options?: ContentItemGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, contentTypeId, contentItemId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -188,11 +188,11 @@ export class ContentItemImpl implements ContentItem { serviceName: string, contentTypeId: string, contentItemId: string, - options?: ContentItemGetOptionalParams + options?: ContentItemGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, contentTypeId, contentItemId, options }, - getOperationSpec + getOperationSpec, ); } @@ -211,7 +211,7 @@ export class ContentItemImpl implements ContentItem { contentTypeId: string, contentItemId: string, parameters: ContentItemContract, - options?: ContentItemCreateOrUpdateOptionalParams + options?: ContentItemCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -220,9 +220,9 @@ export class ContentItemImpl implements ContentItem { contentTypeId, contentItemId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -242,7 +242,7 @@ export class ContentItemImpl implements ContentItem { contentTypeId: string, contentItemId: string, ifMatch: string, - options?: ContentItemDeleteOptionalParams + options?: ContentItemDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -251,9 +251,9 @@ export class ContentItemImpl implements ContentItem { contentTypeId, contentItemId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -270,11 +270,11 @@ export class ContentItemImpl implements ContentItem { serviceName: string, contentTypeId: string, nextLink: string, - options?: ContentItemListByServiceNextOptionalParams + options?: ContentItemListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, contentTypeId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -282,16 +282,15 @@ export class ContentItemImpl implements ContentItem { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ContentItemCollection + bodyMapper: Mappers.ContentItemCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -299,22 +298,21 @@ const listByServiceOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.contentTypeId + Parameters.contentTypeId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ContentItemGetEntityTagHeaders + headersMapper: Mappers.ContentItemGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -323,23 +321,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.contentTypeId, - Parameters.contentItemId + Parameters.contentItemId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ContentItemContract, - headersMapper: Mappers.ContentItemGetHeaders + headersMapper: Mappers.ContentItemGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -348,29 +345,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.contentTypeId, - Parameters.contentItemId + Parameters.contentItemId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ContentItemContract, - headersMapper: Mappers.ContentItemCreateOrUpdateHeaders + headersMapper: Mappers.ContentItemCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.ContentItemContract, - headersMapper: Mappers.ContentItemCreateOrUpdateHeaders + headersMapper: Mappers.ContentItemCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters34, + requestBody: Parameters.parameters36, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -378,26 +374,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.contentTypeId, - Parameters.contentItemId + Parameters.contentItemId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -406,21 +401,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.contentTypeId, - Parameters.contentItemId + Parameters.contentItemId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ContentItemCollection + bodyMapper: Mappers.ContentItemCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -428,8 +423,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.contentTypeId + Parameters.contentTypeId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts b/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts index e9208395eed7..3d08655a3c14 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts @@ -23,7 +23,7 @@ import { ContentTypeCreateOrUpdateOptionalParams, ContentTypeCreateOrUpdateResponse, ContentTypeDeleteOptionalParams, - ContentTypeListByServiceNextResponse + ContentTypeListByServiceNextResponse, } from "../models"; /// @@ -49,12 +49,12 @@ export class ContentTypeImpl implements ContentType { public listByService( resourceGroupName: string, serviceName: string, - options?: ContentTypeListByServiceOptionalParams + options?: ContentTypeListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -71,9 +71,9 @@ export class ContentTypeImpl implements ContentType { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -81,7 +81,7 @@ export class ContentTypeImpl implements ContentType { resourceGroupName: string, serviceName: string, options?: ContentTypeListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ContentTypeListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class ContentTypeImpl implements ContentType { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -101,7 +101,7 @@ export class ContentTypeImpl implements ContentType { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -113,12 +113,12 @@ export class ContentTypeImpl implements ContentType { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: ContentTypeListByServiceOptionalParams + options?: ContentTypeListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -134,11 +134,11 @@ export class ContentTypeImpl implements ContentType { private _listByService( resourceGroupName: string, serviceName: string, - options?: ContentTypeListByServiceOptionalParams + options?: ContentTypeListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -154,11 +154,11 @@ export class ContentTypeImpl implements ContentType { resourceGroupName: string, serviceName: string, contentTypeId: string, - options?: ContentTypeGetOptionalParams + options?: ContentTypeGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, contentTypeId, options }, - getOperationSpec + getOperationSpec, ); } @@ -177,11 +177,11 @@ export class ContentTypeImpl implements ContentType { serviceName: string, contentTypeId: string, parameters: ContentTypeContract, - options?: ContentTypeCreateOrUpdateOptionalParams + options?: ContentTypeCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, contentTypeId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -201,11 +201,11 @@ export class ContentTypeImpl implements ContentType { serviceName: string, contentTypeId: string, ifMatch: string, - options?: ContentTypeDeleteOptionalParams + options?: ContentTypeDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, contentTypeId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -220,11 +220,11 @@ export class ContentTypeImpl implements ContentType { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ContentTypeListByServiceNextOptionalParams + options?: ContentTypeListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -232,39 +232,37 @@ export class ContentTypeImpl implements ContentType { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ContentTypeCollection + bodyMapper: Mappers.ContentTypeCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ContentTypeContract, - headersMapper: Mappers.ContentTypeGetHeaders + headersMapper: Mappers.ContentTypeGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -272,55 +270,53 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.contentTypeId + Parameters.contentTypeId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ContentTypeContract, - headersMapper: Mappers.ContentTypeCreateOrUpdateHeaders + headersMapper: Mappers.ContentTypeCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.ContentTypeContract, - headersMapper: Mappers.ContentTypeCreateOrUpdateHeaders + headersMapper: Mappers.ContentTypeCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters33, + requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.contentTypeId + Parameters.contentTypeId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -328,29 +324,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.contentTypeId + Parameters.contentTypeId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ContentTypeCollection + bodyMapper: Mappers.ContentTypeCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts index d4a14c240964..095925c8b2bb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts @@ -21,7 +21,7 @@ import { DelegationSettingsCreateOrUpdateOptionalParams, DelegationSettingsCreateOrUpdateResponse, DelegationSettingsListSecretsOptionalParams, - DelegationSettingsListSecretsResponse + DelegationSettingsListSecretsResponse, } from "../models"; /** Class containing DelegationSettings operations. */ @@ -45,11 +45,11 @@ export class DelegationSettingsImpl implements DelegationSettings { getEntityTag( resourceGroupName: string, serviceName: string, - options?: DelegationSettingsGetEntityTagOptionalParams + options?: DelegationSettingsGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -62,11 +62,11 @@ export class DelegationSettingsImpl implements DelegationSettings { get( resourceGroupName: string, serviceName: string, - options?: DelegationSettingsGetOptionalParams + options?: DelegationSettingsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -84,11 +84,11 @@ export class DelegationSettingsImpl implements DelegationSettings { serviceName: string, ifMatch: string, parameters: PortalDelegationSettings, - options?: DelegationSettingsUpdateOptionalParams + options?: DelegationSettingsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -103,11 +103,11 @@ export class DelegationSettingsImpl implements DelegationSettings { resourceGroupName: string, serviceName: string, parameters: PortalDelegationSettings, - options?: DelegationSettingsCreateOrUpdateOptionalParams + options?: DelegationSettingsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -120,11 +120,11 @@ export class DelegationSettingsImpl implements DelegationSettings { listSecrets( resourceGroupName: string, serviceName: string, - options?: DelegationSettingsListSecretsOptionalParams + options?: DelegationSettingsListSecretsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listSecretsOperationSpec + listSecretsOperationSpec, ); } } @@ -132,123 +132,118 @@ export class DelegationSettingsImpl implements DelegationSettings { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.DelegationSettingsGetEntityTagHeaders + headersMapper: Mappers.DelegationSettingsGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PortalDelegationSettings, - headersMapper: Mappers.DelegationSettingsGetHeaders + headersMapper: Mappers.DelegationSettingsGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", httpMethod: "PATCH", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters62, + requestBody: Parameters.parameters71, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PortalDelegationSettings + bodyMapper: Mappers.PortalDelegationSettings, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters62, + requestBody: Parameters.parameters71, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const listSecretsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation/listSecrets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation/listSecrets", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.PortalSettingValidationKeyContract + bodyMapper: Mappers.PortalSettingValidationKeyContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts b/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts index 8dd8dab2cfc4..ad952848d334 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts @@ -16,7 +16,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -27,7 +27,7 @@ import { DeletedServicesGetByNameOptionalParams, DeletedServicesGetByNameResponse, DeletedServicesPurgeOptionalParams, - DeletedServicesListBySubscriptionNextResponse + DeletedServicesListBySubscriptionNextResponse, } from "../models"; /// @@ -48,7 +48,7 @@ export class DeletedServicesImpl implements DeletedServices { * @param options The options parameters. */ public listBySubscription( - options?: DeletedServicesListBySubscriptionOptionalParams + options?: DeletedServicesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -63,13 +63,13 @@ export class DeletedServicesImpl implements DeletedServices { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: DeletedServicesListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DeletedServicesListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -90,7 +90,7 @@ export class DeletedServicesImpl implements DeletedServices { } private async *listBySubscriptionPagingAll( - options?: DeletedServicesListBySubscriptionOptionalParams + options?: DeletedServicesListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -102,11 +102,11 @@ export class DeletedServicesImpl implements DeletedServices { * @param options The options parameters. */ private _listBySubscription( - options?: DeletedServicesListBySubscriptionOptionalParams + options?: DeletedServicesListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -119,11 +119,11 @@ export class DeletedServicesImpl implements DeletedServices { getByName( serviceName: string, location: string, - options?: DeletedServicesGetByNameOptionalParams + options?: DeletedServicesGetByNameOptionalParams, ): Promise { return this.client.sendOperationRequest( { serviceName, location, options }, - getByNameOperationSpec + getByNameOperationSpec, ); } @@ -136,25 +136,24 @@ export class DeletedServicesImpl implements DeletedServices { async beginPurge( serviceName: string, location: string, - options?: DeletedServicesPurgeOptionalParams + options?: DeletedServicesPurgeOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -163,8 +162,8 @@ export class DeletedServicesImpl implements DeletedServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -172,20 +171,20 @@ export class DeletedServicesImpl implements DeletedServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { serviceName, location, options }, - spec: purgeOperationSpec + spec: purgeOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -200,7 +199,7 @@ export class DeletedServicesImpl implements DeletedServices { async beginPurgeAndWait( serviceName: string, location: string, - options?: DeletedServicesPurgeOptionalParams + options?: DeletedServicesPurgeOptionalParams, ): Promise { const poller = await this.beginPurge(serviceName, location, options); return poller.pollUntilDone(); @@ -213,11 +212,11 @@ export class DeletedServicesImpl implements DeletedServices { */ private _listBySubscriptionNext( nextLink: string, - options?: DeletedServicesListBySubscriptionNextOptionalParams + options?: DeletedServicesListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } } @@ -225,47 +224,44 @@ export class DeletedServicesImpl implements DeletedServices { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/deletedservices", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/deletedservices", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedServicesCollection + bodyMapper: Mappers.DeletedServicesCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByNameOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/deletedservices/{serviceName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/deletedservices/{serviceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedServiceContract + bodyMapper: Mappers.DeletedServiceContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.serviceName, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const purgeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/deletedservices/{serviceName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/deletedservices/{serviceName}", httpMethod: "DELETE", responses: { 200: {}, @@ -273,35 +269,35 @@ const purgeOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.serviceName, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedServicesCollection + bodyMapper: Mappers.DeletedServicesCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts index d27a987dc82b..25b5fbcec6c1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts @@ -27,7 +27,7 @@ import { DiagnosticUpdateOptionalParams, DiagnosticUpdateResponse, DiagnosticDeleteOptionalParams, - DiagnosticListByServiceNextResponse + DiagnosticListByServiceNextResponse, } from "../models"; /// @@ -52,12 +52,12 @@ export class DiagnosticImpl implements Diagnostic { public listByService( resourceGroupName: string, serviceName: string, - options?: DiagnosticListByServiceOptionalParams + options?: DiagnosticListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -74,9 +74,9 @@ export class DiagnosticImpl implements Diagnostic { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +84,7 @@ export class DiagnosticImpl implements Diagnostic { resourceGroupName: string, serviceName: string, options?: DiagnosticListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DiagnosticListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -92,7 +92,7 @@ export class DiagnosticImpl implements Diagnostic { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -104,7 +104,7 @@ export class DiagnosticImpl implements Diagnostic { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -116,12 +116,12 @@ export class DiagnosticImpl implements Diagnostic { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: DiagnosticListByServiceOptionalParams + options?: DiagnosticListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -136,11 +136,11 @@ export class DiagnosticImpl implements Diagnostic { private _listByService( resourceGroupName: string, serviceName: string, - options?: DiagnosticListByServiceOptionalParams + options?: DiagnosticListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -156,11 +156,11 @@ export class DiagnosticImpl implements Diagnostic { resourceGroupName: string, serviceName: string, diagnosticId: string, - options?: DiagnosticGetEntityTagOptionalParams + options?: DiagnosticGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, diagnosticId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -176,11 +176,11 @@ export class DiagnosticImpl implements Diagnostic { resourceGroupName: string, serviceName: string, diagnosticId: string, - options?: DiagnosticGetOptionalParams + options?: DiagnosticGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, diagnosticId, options }, - getOperationSpec + getOperationSpec, ); } @@ -198,11 +198,11 @@ export class DiagnosticImpl implements Diagnostic { serviceName: string, diagnosticId: string, parameters: DiagnosticContract, - options?: DiagnosticCreateOrUpdateOptionalParams + options?: DiagnosticCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, diagnosticId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -223,7 +223,7 @@ export class DiagnosticImpl implements Diagnostic { diagnosticId: string, ifMatch: string, parameters: DiagnosticContract, - options?: DiagnosticUpdateOptionalParams + options?: DiagnosticUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -232,9 +232,9 @@ export class DiagnosticImpl implements Diagnostic { diagnosticId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -253,11 +253,11 @@ export class DiagnosticImpl implements Diagnostic { serviceName: string, diagnosticId: string, ifMatch: string, - options?: DiagnosticDeleteOptionalParams + options?: DiagnosticDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, diagnosticId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -272,11 +272,11 @@ export class DiagnosticImpl implements Diagnostic { resourceGroupName: string, serviceName: string, nextLink: string, - options?: DiagnosticListByServiceNextOptionalParams + options?: DiagnosticListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -284,43 +284,41 @@ export class DiagnosticImpl implements Diagnostic { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiagnosticCollection + bodyMapper: Mappers.DiagnosticCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.DiagnosticGetEntityTagHeaders + headersMapper: Mappers.DiagnosticGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -328,23 +326,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.DiagnosticContract, - headersMapper: Mappers.DiagnosticGetHeaders + headersMapper: Mappers.DiagnosticGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -352,85 +349,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.DiagnosticContract, - headersMapper: Mappers.DiagnosticCreateOrUpdateHeaders + headersMapper: Mappers.DiagnosticCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.DiagnosticContract, - headersMapper: Mappers.DiagnosticCreateOrUpdateHeaders + headersMapper: Mappers.DiagnosticCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.DiagnosticContract, - headersMapper: Mappers.DiagnosticUpdateHeaders + headersMapper: Mappers.DiagnosticUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -438,29 +432,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiagnosticCollection + bodyMapper: Mappers.DiagnosticCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts b/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts index 7550ac83335b..411424874fe7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts @@ -28,7 +28,7 @@ import { DocumentationUpdateOptionalParams, DocumentationUpdateResponse, DocumentationDeleteOptionalParams, - DocumentationListByServiceNextResponse + DocumentationListByServiceNextResponse, } from "../models"; /// @@ -53,12 +53,12 @@ export class DocumentationImpl implements Documentation { public listByService( resourceGroupName: string, serviceName: string, - options?: DocumentationListByServiceOptionalParams + options?: DocumentationListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -75,9 +75,9 @@ export class DocumentationImpl implements Documentation { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class DocumentationImpl implements Documentation { resourceGroupName: string, serviceName: string, options?: DocumentationListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DocumentationListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +93,7 @@ export class DocumentationImpl implements Documentation { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -105,7 +105,7 @@ export class DocumentationImpl implements Documentation { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,12 +117,12 @@ export class DocumentationImpl implements Documentation { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: DocumentationListByServiceOptionalParams + options?: DocumentationListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -137,11 +137,11 @@ export class DocumentationImpl implements Documentation { private _listByService( resourceGroupName: string, serviceName: string, - options?: DocumentationListByServiceOptionalParams + options?: DocumentationListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -157,11 +157,11 @@ export class DocumentationImpl implements Documentation { resourceGroupName: string, serviceName: string, documentationId: string, - options?: DocumentationGetEntityTagOptionalParams + options?: DocumentationGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, documentationId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -177,11 +177,11 @@ export class DocumentationImpl implements Documentation { resourceGroupName: string, serviceName: string, documentationId: string, - options?: DocumentationGetOptionalParams + options?: DocumentationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, documentationId, options }, - getOperationSpec + getOperationSpec, ); } @@ -199,11 +199,11 @@ export class DocumentationImpl implements Documentation { serviceName: string, documentationId: string, parameters: DocumentationContract, - options?: DocumentationCreateOrUpdateOptionalParams + options?: DocumentationCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, documentationId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -224,7 +224,7 @@ export class DocumentationImpl implements Documentation { documentationId: string, ifMatch: string, parameters: DocumentationUpdateContract, - options?: DocumentationUpdateOptionalParams + options?: DocumentationUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -233,9 +233,9 @@ export class DocumentationImpl implements Documentation { documentationId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -254,11 +254,11 @@ export class DocumentationImpl implements Documentation { serviceName: string, documentationId: string, ifMatch: string, - options?: DocumentationDeleteOptionalParams + options?: DocumentationDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, documentationId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -273,11 +273,11 @@ export class DocumentationImpl implements Documentation { resourceGroupName: string, serviceName: string, nextLink: string, - options?: DocumentationListByServiceNextOptionalParams + options?: DocumentationListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -285,43 +285,41 @@ export class DocumentationImpl implements Documentation { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DocumentationCollection + bodyMapper: Mappers.DocumentationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.DocumentationGetEntityTagHeaders + headersMapper: Mappers.DocumentationGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -329,23 +327,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.documentationId + Parameters.documentationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.DocumentationContract, - headersMapper: Mappers.DocumentationGetHeaders + headersMapper: Mappers.DocumentationGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -353,85 +350,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.documentationId + Parameters.documentationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.DocumentationContract, - headersMapper: Mappers.DocumentationCreateOrUpdateHeaders + headersMapper: Mappers.DocumentationCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.DocumentationContract, - headersMapper: Mappers.DocumentationCreateOrUpdateHeaders + headersMapper: Mappers.DocumentationCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters76, + requestBody: Parameters.parameters43, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.documentationId + Parameters.documentationId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.DocumentationContract, - headersMapper: Mappers.DocumentationUpdateHeaders + headersMapper: Mappers.DocumentationUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters77, + requestBody: Parameters.parameters44, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.documentationId + Parameters.documentationId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -439,29 +433,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.documentationId + Parameters.documentationId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DocumentationCollection + bodyMapper: Mappers.DocumentationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts b/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts index f718843e6496..83bbcbb749df 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts @@ -29,7 +29,7 @@ import { EmailTemplateUpdateOptionalParams, EmailTemplateUpdateResponse, EmailTemplateDeleteOptionalParams, - EmailTemplateListByServiceNextResponse + EmailTemplateListByServiceNextResponse, } from "../models"; /// @@ -54,12 +54,12 @@ export class EmailTemplateImpl implements EmailTemplate { public listByService( resourceGroupName: string, serviceName: string, - options?: EmailTemplateListByServiceOptionalParams + options?: EmailTemplateListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -76,9 +76,9 @@ export class EmailTemplateImpl implements EmailTemplate { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +86,7 @@ export class EmailTemplateImpl implements EmailTemplate { resourceGroupName: string, serviceName: string, options?: EmailTemplateListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: EmailTemplateListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class EmailTemplateImpl implements EmailTemplate { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -106,7 +106,7 @@ export class EmailTemplateImpl implements EmailTemplate { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -118,12 +118,12 @@ export class EmailTemplateImpl implements EmailTemplate { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: EmailTemplateListByServiceOptionalParams + options?: EmailTemplateListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class EmailTemplateImpl implements EmailTemplate { private _listByService( resourceGroupName: string, serviceName: string, - options?: EmailTemplateListByServiceOptionalParams + options?: EmailTemplateListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -157,11 +157,11 @@ export class EmailTemplateImpl implements EmailTemplate { resourceGroupName: string, serviceName: string, templateName: TemplateName, - options?: EmailTemplateGetEntityTagOptionalParams + options?: EmailTemplateGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, templateName, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -176,11 +176,11 @@ export class EmailTemplateImpl implements EmailTemplate { resourceGroupName: string, serviceName: string, templateName: TemplateName, - options?: EmailTemplateGetOptionalParams + options?: EmailTemplateGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, templateName, options }, - getOperationSpec + getOperationSpec, ); } @@ -197,11 +197,11 @@ export class EmailTemplateImpl implements EmailTemplate { serviceName: string, templateName: TemplateName, parameters: EmailTemplateUpdateParameters, - options?: EmailTemplateCreateOrUpdateOptionalParams + options?: EmailTemplateCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, templateName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -221,7 +221,7 @@ export class EmailTemplateImpl implements EmailTemplate { templateName: TemplateName, ifMatch: string, parameters: EmailTemplateUpdateParameters, - options?: EmailTemplateUpdateOptionalParams + options?: EmailTemplateUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -230,9 +230,9 @@ export class EmailTemplateImpl implements EmailTemplate { templateName, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -250,11 +250,11 @@ export class EmailTemplateImpl implements EmailTemplate { serviceName: string, templateName: TemplateName, ifMatch: string, - options?: EmailTemplateDeleteOptionalParams + options?: EmailTemplateDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, templateName, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -269,11 +269,11 @@ export class EmailTemplateImpl implements EmailTemplate { resourceGroupName: string, serviceName: string, nextLink: string, - options?: EmailTemplateListByServiceNextOptionalParams + options?: EmailTemplateListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -281,43 +281,41 @@ export class EmailTemplateImpl implements EmailTemplate { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EmailTemplateCollection + bodyMapper: Mappers.EmailTemplateCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.EmailTemplateGetEntityTagHeaders + headersMapper: Mappers.EmailTemplateGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -325,23 +323,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.templateName + Parameters.templateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.EmailTemplateContract, - headersMapper: Mappers.EmailTemplateGetHeaders + headersMapper: Mappers.EmailTemplateGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -349,83 +346,80 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.templateName + Parameters.templateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.EmailTemplateContract + bodyMapper: Mappers.EmailTemplateContract, }, 201: { - bodyMapper: Mappers.EmailTemplateContract + bodyMapper: Mappers.EmailTemplateContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters40, + requestBody: Parameters.parameters45, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.templateName + Parameters.templateName, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.EmailTemplateContract, - headersMapper: Mappers.EmailTemplateUpdateHeaders + headersMapper: Mappers.EmailTemplateUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters40, + requestBody: Parameters.parameters45, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.templateName + Parameters.templateName, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -433,29 +427,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.templateName + Parameters.templateName, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EmailTemplateCollection + bodyMapper: Mappers.EmailTemplateCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts index 490287bf253f..c974ff8de410 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts @@ -34,7 +34,14 @@ import { GatewayTokenRequestContract, GatewayGenerateTokenOptionalParams, GatewayGenerateTokenResponse, - GatewayListByServiceNextResponse + GatewayInvalidateDebugCredentialsOptionalParams, + GatewayListDebugCredentialsContract, + GatewayListDebugCredentialsOptionalParams, + GatewayListDebugCredentialsResponse, + GatewayListTraceContract, + GatewayListTraceOptionalParams, + GatewayListTraceResponse, + GatewayListByServiceNextResponse, } from "../models"; /// @@ -59,12 +66,12 @@ export class GatewayImpl implements Gateway { public listByService( resourceGroupName: string, serviceName: string, - options?: GatewayListByServiceOptionalParams + options?: GatewayListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -81,9 +88,9 @@ export class GatewayImpl implements Gateway { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -91,7 +98,7 @@ export class GatewayImpl implements Gateway { resourceGroupName: string, serviceName: string, options?: GatewayListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GatewayListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -99,7 +106,7 @@ export class GatewayImpl implements Gateway { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -111,7 +118,7 @@ export class GatewayImpl implements Gateway { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -123,12 +130,12 @@ export class GatewayImpl implements Gateway { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: GatewayListByServiceOptionalParams + options?: GatewayListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -143,11 +150,11 @@ export class GatewayImpl implements Gateway { private _listByService( resourceGroupName: string, serviceName: string, - options?: GatewayListByServiceOptionalParams + options?: GatewayListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -163,11 +170,11 @@ export class GatewayImpl implements Gateway { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayGetEntityTagOptionalParams + options?: GatewayGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -183,11 +190,11 @@ export class GatewayImpl implements Gateway { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayGetOptionalParams + options?: GatewayGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, options }, - getOperationSpec + getOperationSpec, ); } @@ -205,11 +212,11 @@ export class GatewayImpl implements Gateway { serviceName: string, gatewayId: string, parameters: GatewayContract, - options?: GatewayCreateOrUpdateOptionalParams + options?: GatewayCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -230,7 +237,7 @@ export class GatewayImpl implements Gateway { gatewayId: string, ifMatch: string, parameters: GatewayContract, - options?: GatewayUpdateOptionalParams + options?: GatewayUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -239,9 +246,9 @@ export class GatewayImpl implements Gateway { gatewayId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -260,11 +267,11 @@ export class GatewayImpl implements Gateway { serviceName: string, gatewayId: string, ifMatch: string, - options?: GatewayDeleteOptionalParams + options?: GatewayDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -280,11 +287,11 @@ export class GatewayImpl implements Gateway { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayListKeysOptionalParams + options?: GatewayListKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, options }, - listKeysOperationSpec + listKeysOperationSpec, ); } @@ -302,11 +309,11 @@ export class GatewayImpl implements Gateway { serviceName: string, gatewayId: string, parameters: GatewayKeyRegenerationRequestContract, - options?: GatewayRegenerateKeyOptionalParams + options?: GatewayRegenerateKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, parameters, options }, - regenerateKeyOperationSpec + regenerateKeyOperationSpec, ); } @@ -324,11 +331,75 @@ export class GatewayImpl implements Gateway { serviceName: string, gatewayId: string, parameters: GatewayTokenRequestContract, - options?: GatewayGenerateTokenOptionalParams + options?: GatewayGenerateTokenOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, parameters, options }, - generateTokenOperationSpec + generateTokenOperationSpec, + ); + } + + /** + * Action is invalidating all debug credentials issued for gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param options The options parameters. + */ + invalidateDebugCredentials( + resourceGroupName: string, + serviceName: string, + gatewayId: string, + options?: GatewayInvalidateDebugCredentialsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, gatewayId, options }, + invalidateDebugCredentialsOperationSpec, + ); + } + + /** + * Create new debug credentials for gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters List debug credentials properties. + * @param options The options parameters. + */ + listDebugCredentials( + resourceGroupName: string, + serviceName: string, + gatewayId: string, + parameters: GatewayListDebugCredentialsContract, + options?: GatewayListDebugCredentialsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, gatewayId, parameters, options }, + listDebugCredentialsOperationSpec, + ); + } + + /** + * Fetches trace collected by gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters List trace properties. + * @param options The options parameters. + */ + listTrace( + resourceGroupName: string, + serviceName: string, + gatewayId: string, + parameters: GatewayListTraceContract, + options?: GatewayListTraceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, gatewayId, parameters, options }, + listTraceOperationSpec, ); } @@ -343,11 +414,11 @@ export class GatewayImpl implements Gateway { resourceGroupName: string, serviceName: string, nextLink: string, - options?: GatewayListByServiceNextOptionalParams + options?: GatewayListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -355,43 +426,41 @@ export class GatewayImpl implements Gateway { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayCollection + bodyMapper: Mappers.GatewayCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.GatewayGetEntityTagHeaders + headersMapper: Mappers.GatewayGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -399,23 +468,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.GatewayContract, - headersMapper: Mappers.GatewayGetHeaders + headersMapper: Mappers.GatewayGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -423,85 +491,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.GatewayContract, - headersMapper: Mappers.GatewayCreateOrUpdateHeaders + headersMapper: Mappers.GatewayCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.GatewayContract, - headersMapper: Mappers.GatewayCreateOrUpdateHeaders + headersMapper: Mappers.GatewayCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters41, + requestBody: Parameters.parameters46, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.GatewayContract, - headersMapper: Mappers.GatewayUpdateHeaders + headersMapper: Mappers.GatewayUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters41, + requestBody: Parameters.parameters46, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -509,23 +574,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/listKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/listKeys", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.GatewayKeysContract, - headersMapper: Mappers.GatewayListKeysHeaders + headersMapper: Mappers.GatewayListKeysHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -533,77 +597,145 @@ const listKeysOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const regenerateKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/regenerateKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/regenerateKey", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters42, + requestBody: Parameters.parameters47, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const generateTokenOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/generateToken", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/generateToken", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.GatewayTokenContract + bodyMapper: Mappers.GatewayTokenContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters48, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.gatewayId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const invalidateDebugCredentialsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/invalidateDebugCredentials", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.gatewayId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listDebugCredentialsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/listDebugCredentials", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.GatewayDebugCredentialsContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters49, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.gatewayId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const listTraceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/listTrace", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } }, + }, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters43, + requestBody: Parameters.parameters50, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayCollection + bodyMapper: Mappers.GatewayCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts index b355825a6bfe..836f0c669e87 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts @@ -23,7 +23,7 @@ import { GatewayApiCreateOrUpdateOptionalParams, GatewayApiCreateOrUpdateResponse, GatewayApiDeleteOptionalParams, - GatewayApiListByServiceNextResponse + GatewayApiListByServiceNextResponse, } from "../models"; /// @@ -51,13 +51,13 @@ export class GatewayApiImpl implements GatewayApi { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayApiListByServiceOptionalParams + options?: GatewayApiListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, gatewayId, - options + options, ); return { next() { @@ -75,9 +75,9 @@ export class GatewayApiImpl implements GatewayApi { serviceName, gatewayId, options, - settings + settings, ); - } + }, }; } @@ -86,7 +86,7 @@ export class GatewayApiImpl implements GatewayApi { serviceName: string, gatewayId: string, options?: GatewayApiListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GatewayApiListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -95,7 +95,7 @@ export class GatewayApiImpl implements GatewayApi { resourceGroupName, serviceName, gatewayId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -108,7 +108,7 @@ export class GatewayApiImpl implements GatewayApi { serviceName, gatewayId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -121,13 +121,13 @@ export class GatewayApiImpl implements GatewayApi { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayApiListByServiceOptionalParams + options?: GatewayApiListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, gatewayId, - options + options, )) { yield* page; } @@ -145,11 +145,11 @@ export class GatewayApiImpl implements GatewayApi { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayApiListByServiceOptionalParams + options?: GatewayApiListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -167,11 +167,11 @@ export class GatewayApiImpl implements GatewayApi { serviceName: string, gatewayId: string, apiId: string, - options?: GatewayApiGetEntityTagOptionalParams + options?: GatewayApiGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, apiId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -189,11 +189,11 @@ export class GatewayApiImpl implements GatewayApi { serviceName: string, gatewayId: string, apiId: string, - options?: GatewayApiCreateOrUpdateOptionalParams + options?: GatewayApiCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, apiId, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -211,11 +211,11 @@ export class GatewayApiImpl implements GatewayApi { serviceName: string, gatewayId: string, apiId: string, - options?: GatewayApiDeleteOptionalParams + options?: GatewayApiDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, apiId, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -233,11 +233,11 @@ export class GatewayApiImpl implements GatewayApi { serviceName: string, gatewayId: string, nextLink: string, - options?: GatewayApiListByServiceNextOptionalParams + options?: GatewayApiListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -245,44 +245,42 @@ export class GatewayApiImpl implements GatewayApi { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiCollection + bodyMapper: Mappers.ApiCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.GatewayApiGetEntityTagHeaders + headersMapper: Mappers.GatewayApiGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -291,27 +289,26 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApiContract + bodyMapper: Mappers.ApiContract, }, 201: { - bodyMapper: Mappers.ApiContract + bodyMapper: Mappers.ApiContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters45, + requestBody: Parameters.parameters52, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -319,22 +316,21 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -343,21 +339,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiCollection + bodyMapper: Mappers.ApiCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -365,8 +361,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts index bac861289331..3d68f14f2188 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts @@ -25,13 +25,14 @@ import { GatewayCertificateAuthorityCreateOrUpdateOptionalParams, GatewayCertificateAuthorityCreateOrUpdateResponse, GatewayCertificateAuthorityDeleteOptionalParams, - GatewayCertificateAuthorityListByServiceNextResponse + GatewayCertificateAuthorityListByServiceNextResponse, } from "../models"; /// /** Class containing GatewayCertificateAuthority operations. */ export class GatewayCertificateAuthorityImpl - implements GatewayCertificateAuthority { + implements GatewayCertificateAuthority +{ private readonly client: ApiManagementClient; /** @@ -54,13 +55,13 @@ export class GatewayCertificateAuthorityImpl resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayCertificateAuthorityListByServiceOptionalParams + options?: GatewayCertificateAuthorityListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, gatewayId, - options + options, ); return { next() { @@ -78,9 +79,9 @@ export class GatewayCertificateAuthorityImpl serviceName, gatewayId, options, - settings + settings, ); - } + }, }; } @@ -89,7 +90,7 @@ export class GatewayCertificateAuthorityImpl serviceName: string, gatewayId: string, options?: GatewayCertificateAuthorityListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GatewayCertificateAuthorityListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +99,7 @@ export class GatewayCertificateAuthorityImpl resourceGroupName, serviceName, gatewayId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -111,7 +112,7 @@ export class GatewayCertificateAuthorityImpl serviceName, gatewayId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -124,13 +125,13 @@ export class GatewayCertificateAuthorityImpl resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayCertificateAuthorityListByServiceOptionalParams + options?: GatewayCertificateAuthorityListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, gatewayId, - options + options, )) { yield* page; } @@ -148,11 +149,11 @@ export class GatewayCertificateAuthorityImpl resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayCertificateAuthorityListByServiceOptionalParams + options?: GatewayCertificateAuthorityListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -171,11 +172,11 @@ export class GatewayCertificateAuthorityImpl serviceName: string, gatewayId: string, certificateId: string, - options?: GatewayCertificateAuthorityGetEntityTagOptionalParams + options?: GatewayCertificateAuthorityGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, certificateId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -194,11 +195,11 @@ export class GatewayCertificateAuthorityImpl serviceName: string, gatewayId: string, certificateId: string, - options?: GatewayCertificateAuthorityGetOptionalParams + options?: GatewayCertificateAuthorityGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, certificateId, options }, - getOperationSpec + getOperationSpec, ); } @@ -219,7 +220,7 @@ export class GatewayCertificateAuthorityImpl gatewayId: string, certificateId: string, parameters: GatewayCertificateAuthorityContract, - options?: GatewayCertificateAuthorityCreateOrUpdateOptionalParams + options?: GatewayCertificateAuthorityCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -228,9 +229,9 @@ export class GatewayCertificateAuthorityImpl gatewayId, certificateId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -252,7 +253,7 @@ export class GatewayCertificateAuthorityImpl gatewayId: string, certificateId: string, ifMatch: string, - options?: GatewayCertificateAuthorityDeleteOptionalParams + options?: GatewayCertificateAuthorityDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -261,9 +262,9 @@ export class GatewayCertificateAuthorityImpl gatewayId, certificateId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -281,11 +282,11 @@ export class GatewayCertificateAuthorityImpl serviceName: string, gatewayId: string, nextLink: string, - options?: GatewayCertificateAuthorityListByServiceNextOptionalParams + options?: GatewayCertificateAuthorityListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -293,44 +294,42 @@ export class GatewayCertificateAuthorityImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayCertificateAuthorityCollection + bodyMapper: Mappers.GatewayCertificateAuthorityCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.GatewayCertificateAuthorityGetEntityTagHeaders + headersMapper: Mappers.GatewayCertificateAuthorityGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -339,23 +338,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.certificateId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.GatewayCertificateAuthorityContract, - headersMapper: Mappers.GatewayCertificateAuthorityGetHeaders + headersMapper: Mappers.GatewayCertificateAuthorityGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -364,29 +362,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.certificateId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.GatewayCertificateAuthorityContract, - headersMapper: Mappers.GatewayCertificateAuthorityCreateOrUpdateHeaders + headersMapper: Mappers.GatewayCertificateAuthorityCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.GatewayCertificateAuthorityContract, - headersMapper: Mappers.GatewayCertificateAuthorityCreateOrUpdateHeaders + headersMapper: Mappers.GatewayCertificateAuthorityCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters46, + requestBody: Parameters.parameters53, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -394,26 +391,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.certificateId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -422,21 +418,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.certificateId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayCertificateAuthorityCollection + bodyMapper: Mappers.GatewayCertificateAuthorityCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -444,8 +440,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts index c65ce1a26b6b..c824b537b81e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts @@ -25,13 +25,14 @@ import { GatewayHostnameConfigurationCreateOrUpdateOptionalParams, GatewayHostnameConfigurationCreateOrUpdateResponse, GatewayHostnameConfigurationDeleteOptionalParams, - GatewayHostnameConfigurationListByServiceNextResponse + GatewayHostnameConfigurationListByServiceNextResponse, } from "../models"; /// /** Class containing GatewayHostnameConfiguration operations. */ export class GatewayHostnameConfigurationImpl - implements GatewayHostnameConfiguration { + implements GatewayHostnameConfiguration +{ private readonly client: ApiManagementClient; /** @@ -54,13 +55,13 @@ export class GatewayHostnameConfigurationImpl resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayHostnameConfigurationListByServiceOptionalParams + options?: GatewayHostnameConfigurationListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, gatewayId, - options + options, ); return { next() { @@ -78,9 +79,9 @@ export class GatewayHostnameConfigurationImpl serviceName, gatewayId, options, - settings + settings, ); - } + }, }; } @@ -89,7 +90,7 @@ export class GatewayHostnameConfigurationImpl serviceName: string, gatewayId: string, options?: GatewayHostnameConfigurationListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GatewayHostnameConfigurationListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +99,7 @@ export class GatewayHostnameConfigurationImpl resourceGroupName, serviceName, gatewayId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -111,7 +112,7 @@ export class GatewayHostnameConfigurationImpl serviceName, gatewayId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -124,13 +125,13 @@ export class GatewayHostnameConfigurationImpl resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayHostnameConfigurationListByServiceOptionalParams + options?: GatewayHostnameConfigurationListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, gatewayId, - options + options, )) { yield* page; } @@ -148,11 +149,11 @@ export class GatewayHostnameConfigurationImpl resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayHostnameConfigurationListByServiceOptionalParams + options?: GatewayHostnameConfigurationListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -172,11 +173,11 @@ export class GatewayHostnameConfigurationImpl serviceName: string, gatewayId: string, hcId: string, - options?: GatewayHostnameConfigurationGetEntityTagOptionalParams + options?: GatewayHostnameConfigurationGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, hcId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -195,11 +196,11 @@ export class GatewayHostnameConfigurationImpl serviceName: string, gatewayId: string, hcId: string, - options?: GatewayHostnameConfigurationGetOptionalParams + options?: GatewayHostnameConfigurationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, hcId, options }, - getOperationSpec + getOperationSpec, ); } @@ -220,11 +221,11 @@ export class GatewayHostnameConfigurationImpl gatewayId: string, hcId: string, parameters: GatewayHostnameConfigurationContract, - options?: GatewayHostnameConfigurationCreateOrUpdateOptionalParams + options?: GatewayHostnameConfigurationCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, hcId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -246,11 +247,11 @@ export class GatewayHostnameConfigurationImpl gatewayId: string, hcId: string, ifMatch: string, - options?: GatewayHostnameConfigurationDeleteOptionalParams + options?: GatewayHostnameConfigurationDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, hcId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -268,11 +269,11 @@ export class GatewayHostnameConfigurationImpl serviceName: string, gatewayId: string, nextLink: string, - options?: GatewayHostnameConfigurationListByServiceNextOptionalParams + options?: GatewayHostnameConfigurationListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -280,44 +281,42 @@ export class GatewayHostnameConfigurationImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayHostnameConfigurationCollection + bodyMapper: Mappers.GatewayHostnameConfigurationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.GatewayHostnameConfigurationGetEntityTagHeaders + headersMapper: Mappers.GatewayHostnameConfigurationGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -326,23 +325,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.gatewayId, - Parameters.hcId + Parameters.hcId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.GatewayHostnameConfigurationContract, - headersMapper: Mappers.GatewayHostnameConfigurationGetHeaders + headersMapper: Mappers.GatewayHostnameConfigurationGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -351,29 +349,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.gatewayId, - Parameters.hcId + Parameters.hcId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.GatewayHostnameConfigurationContract, - headersMapper: Mappers.GatewayHostnameConfigurationCreateOrUpdateHeaders + headersMapper: Mappers.GatewayHostnameConfigurationCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.GatewayHostnameConfigurationContract, - headersMapper: Mappers.GatewayHostnameConfigurationCreateOrUpdateHeaders + headersMapper: Mappers.GatewayHostnameConfigurationCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters44, + requestBody: Parameters.parameters51, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -381,26 +378,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.gatewayId, - Parameters.hcId + Parameters.hcId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -409,21 +405,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.gatewayId, - Parameters.hcId + Parameters.hcId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayHostnameConfigurationCollection + bodyMapper: Mappers.GatewayHostnameConfigurationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -431,8 +427,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts index 9081ec027225..a676200b9bff 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts @@ -16,7 +16,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -31,7 +31,7 @@ import { GlobalSchemaCreateOrUpdateOptionalParams, GlobalSchemaCreateOrUpdateResponse, GlobalSchemaDeleteOptionalParams, - GlobalSchemaListByServiceNextResponse + GlobalSchemaListByServiceNextResponse, } from "../models"; /// @@ -56,12 +56,12 @@ export class GlobalSchemaImpl implements GlobalSchema { public listByService( resourceGroupName: string, serviceName: string, - options?: GlobalSchemaListByServiceOptionalParams + options?: GlobalSchemaListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -78,9 +78,9 @@ export class GlobalSchemaImpl implements GlobalSchema { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -88,7 +88,7 @@ export class GlobalSchemaImpl implements GlobalSchema { resourceGroupName: string, serviceName: string, options?: GlobalSchemaListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GlobalSchemaListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +96,7 @@ export class GlobalSchemaImpl implements GlobalSchema { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -108,7 +108,7 @@ export class GlobalSchemaImpl implements GlobalSchema { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,12 +120,12 @@ export class GlobalSchemaImpl implements GlobalSchema { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: GlobalSchemaListByServiceOptionalParams + options?: GlobalSchemaListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -140,11 +140,11 @@ export class GlobalSchemaImpl implements GlobalSchema { private _listByService( resourceGroupName: string, serviceName: string, - options?: GlobalSchemaListByServiceOptionalParams + options?: GlobalSchemaListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -159,11 +159,11 @@ export class GlobalSchemaImpl implements GlobalSchema { resourceGroupName: string, serviceName: string, schemaId: string, - options?: GlobalSchemaGetEntityTagOptionalParams + options?: GlobalSchemaGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, schemaId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -178,11 +178,11 @@ export class GlobalSchemaImpl implements GlobalSchema { resourceGroupName: string, serviceName: string, schemaId: string, - options?: GlobalSchemaGetOptionalParams + options?: GlobalSchemaGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, schemaId, options }, - getOperationSpec + getOperationSpec, ); } @@ -199,7 +199,7 @@ export class GlobalSchemaImpl implements GlobalSchema { serviceName: string, schemaId: string, parameters: GlobalSchemaContract, - options?: GlobalSchemaCreateOrUpdateOptionalParams + options?: GlobalSchemaCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -208,21 +208,20 @@ export class GlobalSchemaImpl implements GlobalSchema { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -231,8 +230,8 @@ export class GlobalSchemaImpl implements GlobalSchema { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -240,15 +239,15 @@ export class GlobalSchemaImpl implements GlobalSchema { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, schemaId, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< GlobalSchemaCreateOrUpdateResponse, @@ -256,7 +255,7 @@ export class GlobalSchemaImpl implements GlobalSchema { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -275,14 +274,14 @@ export class GlobalSchemaImpl implements GlobalSchema { serviceName: string, schemaId: string, parameters: GlobalSchemaContract, - options?: GlobalSchemaCreateOrUpdateOptionalParams + options?: GlobalSchemaCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, schemaId, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -301,11 +300,11 @@ export class GlobalSchemaImpl implements GlobalSchema { serviceName: string, schemaId: string, ifMatch: string, - options?: GlobalSchemaDeleteOptionalParams + options?: GlobalSchemaDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, schemaId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -320,11 +319,11 @@ export class GlobalSchemaImpl implements GlobalSchema { resourceGroupName: string, serviceName: string, nextLink: string, - options?: GlobalSchemaListByServiceNextOptionalParams + options?: GlobalSchemaListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -332,43 +331,41 @@ export class GlobalSchemaImpl implements GlobalSchema { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GlobalSchemaCollection + bodyMapper: Mappers.GlobalSchemaCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.GlobalSchemaGetEntityTagHeaders + headersMapper: Mappers.GlobalSchemaGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -376,23 +373,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.schemaId + Parameters.schemaId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.GlobalSchemaContract, - headersMapper: Mappers.GlobalSchemaGetHeaders + headersMapper: Mappers.GlobalSchemaGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -400,63 +396,61 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.schemaId + Parameters.schemaId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.GlobalSchemaContract, - headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders + headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.GlobalSchemaContract, - headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders + headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders, }, 202: { bodyMapper: Mappers.GlobalSchemaContract, - headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders + headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders, }, 204: { bodyMapper: Mappers.GlobalSchemaContract, - headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders + headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters66, + requestBody: Parameters.parameters77, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.schemaId + Parameters.schemaId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -464,29 +458,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.schemaId + Parameters.schemaId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GlobalSchemaCollection + bodyMapper: Mappers.GlobalSchemaCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolver.ts b/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolver.ts index 1d2fa2cedd2a..ecca0117b086 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolver.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolver.ts @@ -28,7 +28,7 @@ import { GraphQLApiResolverUpdateOptionalParams, GraphQLApiResolverUpdateResponse, GraphQLApiResolverDeleteOptionalParams, - GraphQLApiResolverListByApiNextResponse + GraphQLApiResolverListByApiNextResponse, } from "../models"; /// @@ -56,13 +56,13 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { resourceGroupName: string, serviceName: string, apiId: string, - options?: GraphQLApiResolverListByApiOptionalParams + options?: GraphQLApiResolverListByApiOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByApiPagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -91,7 +91,7 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { serviceName: string, apiId: string, options?: GraphQLApiResolverListByApiOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GraphQLApiResolverListByApiResponse; let continuationToken = settings?.continuationToken; @@ -100,7 +100,7 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -113,7 +113,7 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -126,13 +126,13 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { resourceGroupName: string, serviceName: string, apiId: string, - options?: GraphQLApiResolverListByApiOptionalParams + options?: GraphQLApiResolverListByApiOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByApiPagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -150,11 +150,11 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { resourceGroupName: string, serviceName: string, apiId: string, - options?: GraphQLApiResolverListByApiOptionalParams + options?: GraphQLApiResolverListByApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByApiOperationSpec + listByApiOperationSpec, ); } @@ -173,11 +173,11 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { serviceName: string, apiId: string, resolverId: string, - options?: GraphQLApiResolverGetEntityTagOptionalParams + options?: GraphQLApiResolverGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, resolverId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -196,11 +196,11 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { serviceName: string, apiId: string, resolverId: string, - options?: GraphQLApiResolverGetOptionalParams + options?: GraphQLApiResolverGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, resolverId, options }, - getOperationSpec + getOperationSpec, ); } @@ -221,7 +221,7 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { apiId: string, resolverId: string, parameters: ResolverContract, - options?: GraphQLApiResolverCreateOrUpdateOptionalParams + options?: GraphQLApiResolverCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -230,9 +230,9 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { apiId, resolverId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -256,7 +256,7 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { resolverId: string, ifMatch: string, parameters: ResolverUpdateContract, - options?: GraphQLApiResolverUpdateOptionalParams + options?: GraphQLApiResolverUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -266,9 +266,9 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { resolverId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -290,11 +290,11 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { apiId: string, resolverId: string, ifMatch: string, - options?: GraphQLApiResolverDeleteOptionalParams + options?: GraphQLApiResolverDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, resolverId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -312,11 +312,11 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { serviceName: string, apiId: string, nextLink: string, - options?: GraphQLApiResolverListByApiNextOptionalParams + options?: GraphQLApiResolverListByApiNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByApiNextOperationSpec + listByApiNextOperationSpec, ); } } @@ -324,44 +324,42 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResolverCollection + bodyMapper: Mappers.ResolverCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.GraphQLApiResolverGetEntityTagHeaders + headersMapper: Mappers.GraphQLApiResolverGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -370,23 +368,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ResolverContract, - headersMapper: Mappers.GraphQLApiResolverGetHeaders + headersMapper: Mappers.GraphQLApiResolverGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -395,29 +392,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ResolverContract, - headersMapper: Mappers.GraphQLApiResolverCreateOrUpdateHeaders + headersMapper: Mappers.GraphQLApiResolverCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.ResolverContract, - headersMapper: Mappers.GraphQLApiResolverCreateOrUpdateHeaders + headersMapper: Mappers.GraphQLApiResolverCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -425,30 +421,29 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.ResolverContract, - headersMapper: Mappers.GraphQLApiResolverUpdateHeaders + headersMapper: Mappers.GraphQLApiResolverUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -456,26 +451,25 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -484,30 +478,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByApiNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResolverCollection + bodyMapper: Mappers.ResolverCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, + Parameters.nextLink, Parameters.apiId, - Parameters.nextLink ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolverPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolverPolicy.ts index 884fac6979f9..d064ae4aeac5 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolverPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolverPolicy.ts @@ -26,7 +26,7 @@ import { GraphQLApiResolverPolicyCreateOrUpdateOptionalParams, GraphQLApiResolverPolicyCreateOrUpdateResponse, GraphQLApiResolverPolicyDeleteOptionalParams, - GraphQLApiResolverPolicyListByResolverNextResponse + GraphQLApiResolverPolicyListByResolverNextResponse, } from "../models"; /// @@ -57,14 +57,14 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { serviceName: string, apiId: string, resolverId: string, - options?: GraphQLApiResolverPolicyListByResolverOptionalParams + options?: GraphQLApiResolverPolicyListByResolverOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResolverPagingAll( resourceGroupName, serviceName, apiId, resolverId, - options + options, ); return { next() { @@ -83,9 +83,9 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { apiId, resolverId, options, - settings + settings, ); - } + }, }; } @@ -95,7 +95,7 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { apiId: string, resolverId: string, options?: GraphQLApiResolverPolicyListByResolverOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GraphQLApiResolverPolicyListByResolverResponse; let continuationToken = settings?.continuationToken; @@ -105,7 +105,7 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { serviceName, apiId, resolverId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -119,7 +119,7 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { apiId, resolverId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -133,14 +133,14 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { serviceName: string, apiId: string, resolverId: string, - options?: GraphQLApiResolverPolicyListByResolverOptionalParams + options?: GraphQLApiResolverPolicyListByResolverOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResolverPagingPage( resourceGroupName, serviceName, apiId, resolverId, - options + options, )) { yield* page; } @@ -161,11 +161,11 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { serviceName: string, apiId: string, resolverId: string, - options?: GraphQLApiResolverPolicyListByResolverOptionalParams + options?: GraphQLApiResolverPolicyListByResolverOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, resolverId, options }, - listByResolverOperationSpec + listByResolverOperationSpec, ); } @@ -186,11 +186,11 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { apiId: string, resolverId: string, policyId: PolicyIdName, - options?: GraphQLApiResolverPolicyGetEntityTagOptionalParams + options?: GraphQLApiResolverPolicyGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, resolverId, policyId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -211,11 +211,11 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { apiId: string, resolverId: string, policyId: PolicyIdName, - options?: GraphQLApiResolverPolicyGetOptionalParams + options?: GraphQLApiResolverPolicyGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, resolverId, policyId, options }, - getOperationSpec + getOperationSpec, ); } @@ -238,7 +238,7 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { resolverId: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: GraphQLApiResolverPolicyCreateOrUpdateOptionalParams + options?: GraphQLApiResolverPolicyCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -248,9 +248,9 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { resolverId, policyId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -274,7 +274,7 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { resolverId: string, policyId: PolicyIdName, ifMatch: string, - options?: GraphQLApiResolverPolicyDeleteOptionalParams + options?: GraphQLApiResolverPolicyDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -284,9 +284,9 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { resolverId, policyId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -307,11 +307,11 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { apiId: string, resolverId: string, nextLink: string, - options?: GraphQLApiResolverPolicyListByResolverNextOptionalParams + options?: GraphQLApiResolverPolicyListByResolverNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, resolverId, nextLink, options }, - listByResolverNextOperationSpec + listByResolverNextOperationSpec, ); } } @@ -319,16 +319,15 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByResolverOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyCollection + bodyMapper: Mappers.PolicyCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -337,22 +336,21 @@ const listByResolverOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.GraphQLApiResolverPolicyGetEntityTagHeaders + headersMapper: Mappers.GraphQLApiResolverPolicyGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -362,23 +360,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.policyId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.GraphQLApiResolverPolicyGetHeaders + headersMapper: Mappers.GraphQLApiResolverPolicyGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.format], urlParameters: [ @@ -388,29 +385,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.policyId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.GraphQLApiResolverPolicyCreateOrUpdateHeaders + headersMapper: Mappers.GraphQLApiResolverPolicyCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.GraphQLApiResolverPolicyCreateOrUpdateHeaders + headersMapper: Mappers.GraphQLApiResolverPolicyCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -419,26 +415,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.policyId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -448,31 +443,31 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.policyId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByResolverNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyCollection + bodyMapper: Mappers.PolicyCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId, Parameters.nextLink, - Parameters.resolverId + Parameters.apiId, + Parameters.resolverId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/group.ts b/sdk/apimanagement/arm-apimanagement/src/operations/group.ts index d2e53a84fd5e..c79ee1e34849 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/group.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/group.ts @@ -29,7 +29,7 @@ import { GroupUpdateOptionalParams, GroupUpdateResponse, GroupDeleteOptionalParams, - GroupListByServiceNextResponse + GroupListByServiceNextResponse, } from "../models"; /// @@ -54,12 +54,12 @@ export class GroupImpl implements Group { public listByService( resourceGroupName: string, serviceName: string, - options?: GroupListByServiceOptionalParams + options?: GroupListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -76,9 +76,9 @@ export class GroupImpl implements Group { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +86,7 @@ export class GroupImpl implements Group { resourceGroupName: string, serviceName: string, options?: GroupListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GroupListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class GroupImpl implements Group { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -106,7 +106,7 @@ export class GroupImpl implements Group { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -118,12 +118,12 @@ export class GroupImpl implements Group { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: GroupListByServiceOptionalParams + options?: GroupListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class GroupImpl implements Group { private _listByService( resourceGroupName: string, serviceName: string, - options?: GroupListByServiceOptionalParams + options?: GroupListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -157,11 +157,11 @@ export class GroupImpl implements Group { resourceGroupName: string, serviceName: string, groupId: string, - options?: GroupGetEntityTagOptionalParams + options?: GroupGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -176,11 +176,11 @@ export class GroupImpl implements Group { resourceGroupName: string, serviceName: string, groupId: string, - options?: GroupGetOptionalParams + options?: GroupGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, options }, - getOperationSpec + getOperationSpec, ); } @@ -197,11 +197,11 @@ export class GroupImpl implements Group { serviceName: string, groupId: string, parameters: GroupCreateParameters, - options?: GroupCreateOrUpdateOptionalParams + options?: GroupCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -221,11 +221,11 @@ export class GroupImpl implements Group { groupId: string, ifMatch: string, parameters: GroupUpdateParameters, - options?: GroupUpdateOptionalParams + options?: GroupUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -243,11 +243,11 @@ export class GroupImpl implements Group { serviceName: string, groupId: string, ifMatch: string, - options?: GroupDeleteOptionalParams + options?: GroupDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -262,11 +262,11 @@ export class GroupImpl implements Group { resourceGroupName: string, serviceName: string, nextLink: string, - options?: GroupListByServiceNextOptionalParams + options?: GroupListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -274,43 +274,41 @@ export class GroupImpl implements Group { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GroupCollection + bodyMapper: Mappers.GroupCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.GroupGetEntityTagHeaders + headersMapper: Mappers.GroupGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -318,23 +316,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.GroupContract, - headersMapper: Mappers.GroupGetHeaders + headersMapper: Mappers.GroupGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -342,85 +339,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.GroupContract, - headersMapper: Mappers.GroupCreateOrUpdateHeaders + headersMapper: Mappers.GroupCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.GroupContract, - headersMapper: Mappers.GroupCreateOrUpdateHeaders + headersMapper: Mappers.GroupCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters47, + requestBody: Parameters.parameters54, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.GroupContract, - headersMapper: Mappers.GroupUpdateHeaders + headersMapper: Mappers.GroupUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters48, + requestBody: Parameters.parameters55, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -428,29 +422,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GroupCollection + bodyMapper: Mappers.GroupCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts b/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts index d0e13397ab74..274d17238eb8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts @@ -23,7 +23,7 @@ import { GroupUserCreateOptionalParams, GroupUserCreateResponse, GroupUserDeleteOptionalParams, - GroupUserListNextResponse + GroupUserListNextResponse, } from "../models"; /// @@ -50,13 +50,13 @@ export class GroupUserImpl implements GroupUser { resourceGroupName: string, serviceName: string, groupId: string, - options?: GroupUserListOptionalParams + options?: GroupUserListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, groupId, - options + options, ); return { next() { @@ -74,9 +74,9 @@ export class GroupUserImpl implements GroupUser { serviceName, groupId, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class GroupUserImpl implements GroupUser { serviceName: string, groupId: string, options?: GroupUserListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GroupUserListResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class GroupUserImpl implements GroupUser { resourceGroupName, serviceName, groupId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -107,7 +107,7 @@ export class GroupUserImpl implements GroupUser { serviceName, groupId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,13 +120,13 @@ export class GroupUserImpl implements GroupUser { resourceGroupName: string, serviceName: string, groupId: string, - options?: GroupUserListOptionalParams + options?: GroupUserListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, groupId, - options + options, )) { yield* page; } @@ -143,11 +143,11 @@ export class GroupUserImpl implements GroupUser { resourceGroupName: string, serviceName: string, groupId: string, - options?: GroupUserListOptionalParams + options?: GroupUserListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, options }, - listOperationSpec + listOperationSpec, ); } @@ -164,11 +164,11 @@ export class GroupUserImpl implements GroupUser { serviceName: string, groupId: string, userId: string, - options?: GroupUserCheckEntityExistsOptionalParams + options?: GroupUserCheckEntityExistsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, userId, options }, - checkEntityExistsOperationSpec + checkEntityExistsOperationSpec, ); } @@ -185,11 +185,11 @@ export class GroupUserImpl implements GroupUser { serviceName: string, groupId: string, userId: string, - options?: GroupUserCreateOptionalParams + options?: GroupUserCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, userId, options }, - createOperationSpec + createOperationSpec, ); } @@ -206,11 +206,11 @@ export class GroupUserImpl implements GroupUser { serviceName: string, groupId: string, userId: string, - options?: GroupUserDeleteOptionalParams + options?: GroupUserDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, userId, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -227,11 +227,11 @@ export class GroupUserImpl implements GroupUser { serviceName: string, groupId: string, nextLink: string, - options?: GroupUserListNextOptionalParams + options?: GroupUserListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -239,43 +239,41 @@ export class GroupUserImpl implements GroupUser { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UserCollection + bodyMapper: Mappers.UserCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkEntityExistsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", httpMethod: "HEAD", responses: { 204: {}, 404: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -284,25 +282,24 @@ const checkEntityExistsOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.groupId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.UserContract + bodyMapper: Mappers.UserContract, }, 201: { - bodyMapper: Mappers.UserContract + bodyMapper: Mappers.UserContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -311,21 +308,20 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.groupId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -334,21 +330,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.groupId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UserCollection + bodyMapper: Mappers.UserCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -356,8 +352,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts index 7718b64cc6b3..f08795cdec3e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts @@ -32,7 +32,7 @@ import { IdentityProviderDeleteOptionalParams, IdentityProviderListSecretsOptionalParams, IdentityProviderListSecretsResponse, - IdentityProviderListByServiceNextResponse + IdentityProviderListByServiceNextResponse, } from "../models"; /// @@ -57,12 +57,12 @@ export class IdentityProviderImpl implements IdentityProvider { public listByService( resourceGroupName: string, serviceName: string, - options?: IdentityProviderListByServiceOptionalParams + options?: IdentityProviderListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -79,9 +79,9 @@ export class IdentityProviderImpl implements IdentityProvider { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -89,7 +89,7 @@ export class IdentityProviderImpl implements IdentityProvider { resourceGroupName: string, serviceName: string, options?: IdentityProviderListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: IdentityProviderListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -97,7 +97,7 @@ export class IdentityProviderImpl implements IdentityProvider { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -109,7 +109,7 @@ export class IdentityProviderImpl implements IdentityProvider { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -121,12 +121,12 @@ export class IdentityProviderImpl implements IdentityProvider { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: IdentityProviderListByServiceOptionalParams + options?: IdentityProviderListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -141,11 +141,11 @@ export class IdentityProviderImpl implements IdentityProvider { private _listByService( resourceGroupName: string, serviceName: string, - options?: IdentityProviderListByServiceOptionalParams + options?: IdentityProviderListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -160,11 +160,11 @@ export class IdentityProviderImpl implements IdentityProvider { resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, - options?: IdentityProviderGetEntityTagOptionalParams + options?: IdentityProviderGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, identityProviderName, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -179,11 +179,11 @@ export class IdentityProviderImpl implements IdentityProvider { resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, - options?: IdentityProviderGetOptionalParams + options?: IdentityProviderGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, identityProviderName, options }, - getOperationSpec + getOperationSpec, ); } @@ -200,7 +200,7 @@ export class IdentityProviderImpl implements IdentityProvider { serviceName: string, identityProviderName: IdentityProviderType, parameters: IdentityProviderCreateContract, - options?: IdentityProviderCreateOrUpdateOptionalParams + options?: IdentityProviderCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -208,9 +208,9 @@ export class IdentityProviderImpl implements IdentityProvider { serviceName, identityProviderName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -230,7 +230,7 @@ export class IdentityProviderImpl implements IdentityProvider { identityProviderName: IdentityProviderType, ifMatch: string, parameters: IdentityProviderUpdateParameters, - options?: IdentityProviderUpdateOptionalParams + options?: IdentityProviderUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -239,9 +239,9 @@ export class IdentityProviderImpl implements IdentityProvider { identityProviderName, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -259,7 +259,7 @@ export class IdentityProviderImpl implements IdentityProvider { serviceName: string, identityProviderName: IdentityProviderType, ifMatch: string, - options?: IdentityProviderDeleteOptionalParams + options?: IdentityProviderDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -267,9 +267,9 @@ export class IdentityProviderImpl implements IdentityProvider { serviceName, identityProviderName, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -284,11 +284,11 @@ export class IdentityProviderImpl implements IdentityProvider { resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, - options?: IdentityProviderListSecretsOptionalParams + options?: IdentityProviderListSecretsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, identityProviderName, options }, - listSecretsOperationSpec + listSecretsOperationSpec, ); } @@ -303,11 +303,11 @@ export class IdentityProviderImpl implements IdentityProvider { resourceGroupName: string, serviceName: string, nextLink: string, - options?: IdentityProviderListByServiceNextOptionalParams + options?: IdentityProviderListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -315,38 +315,36 @@ export class IdentityProviderImpl implements IdentityProvider { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IdentityProviderList + bodyMapper: Mappers.IdentityProviderList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.IdentityProviderGetEntityTagHeaders + headersMapper: Mappers.IdentityProviderGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -354,23 +352,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.identityProviderName + Parameters.identityProviderName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.IdentityProviderContract, - headersMapper: Mappers.IdentityProviderGetHeaders + headersMapper: Mappers.IdentityProviderGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -378,85 +375,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.identityProviderName + Parameters.identityProviderName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.IdentityProviderContract, - headersMapper: Mappers.IdentityProviderCreateOrUpdateHeaders + headersMapper: Mappers.IdentityProviderCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.IdentityProviderContract, - headersMapper: Mappers.IdentityProviderCreateOrUpdateHeaders + headersMapper: Mappers.IdentityProviderCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters49, + requestBody: Parameters.parameters56, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.identityProviderName + Parameters.identityProviderName, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.IdentityProviderContract, - headersMapper: Mappers.IdentityProviderUpdateHeaders + headersMapper: Mappers.IdentityProviderUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters50, + requestBody: Parameters.parameters57, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.identityProviderName + Parameters.identityProviderName, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -464,23 +458,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.identityProviderName + Parameters.identityProviderName, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listSecretsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}/listSecrets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}/listSecrets", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.ClientSecretContract, - headersMapper: Mappers.IdentityProviderListSecretsHeaders + headersMapper: Mappers.IdentityProviderListSecretsHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -488,29 +481,29 @@ const listSecretsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.identityProviderName + Parameters.identityProviderName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IdentityProviderList + bodyMapper: Mappers.IdentityProviderList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/index.ts b/sdk/apimanagement/arm-apimanagement/src/operations/index.ts index 83434e88bcd2..09f3ef9b11f3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/index.ts @@ -6,6 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./allPolicies"; +export * from "./apiManagementGateway"; export * from "./api"; export * from "./apiRevision"; export * from "./apiRelease"; @@ -27,11 +29,11 @@ export * from "./apiWiki"; export * from "./apiWikis"; export * from "./apiExport"; export * from "./apiVersionSet"; -export * from "./authorizationServer"; export * from "./authorizationProvider"; export * from "./authorization"; export * from "./authorizationLoginLinks"; export * from "./authorizationAccessPolicy"; +export * from "./authorizationServer"; export * from "./backend"; export * from "./cache"; export * from "./certificate"; @@ -42,6 +44,7 @@ export * from "./apiManagementOperations"; export * from "./apiManagementServiceSkus"; export * from "./apiManagementService"; export * from "./diagnostic"; +export * from "./documentation"; export * from "./emailTemplate"; export * from "./gateway"; export * from "./gatewayHostnameConfiguration"; @@ -62,6 +65,8 @@ export * from "./outboundNetworkDependenciesEndpoints"; export * from "./policy"; export * from "./policyDescription"; export * from "./policyFragment"; +export * from "./policyRestriction"; +export * from "./policyRestrictionValidations"; export * from "./portalConfig"; export * from "./portalRevision"; export * from "./portalSettings"; @@ -76,6 +81,8 @@ export * from "./productSubscriptions"; export * from "./productPolicy"; export * from "./productWiki"; export * from "./productWikis"; +export * from "./productApiLink"; +export * from "./productGroupLink"; export * from "./quotaByCounterKeys"; export * from "./quotaByPeriodKeys"; export * from "./region"; @@ -85,6 +92,9 @@ export * from "./tenantSettings"; export * from "./apiManagementSkus"; export * from "./subscription"; export * from "./tagResource"; +export * from "./tagApiLink"; +export * from "./tagOperationLink"; +export * from "./tagProductLink"; export * from "./tenantAccess"; export * from "./tenantAccessGit"; export * from "./tenantConfiguration"; @@ -93,4 +103,31 @@ export * from "./userGroup"; export * from "./userSubscription"; export * from "./userIdentities"; export * from "./userConfirmationPassword"; -export * from "./documentation"; +export * from "./workspace"; +export * from "./workspacePolicy"; +export * from "./workspaceNamedValue"; +export * from "./workspaceGlobalSchema"; +export * from "./workspaceNotification"; +export * from "./workspaceNotificationRecipientUser"; +export * from "./workspaceNotificationRecipientEmail"; +export * from "./workspacePolicyFragment"; +export * from "./workspaceGroup"; +export * from "./workspaceGroupUser"; +export * from "./workspaceSubscription"; +export * from "./workspaceApiVersionSet"; +export * from "./workspaceApi"; +export * from "./workspaceApiRevision"; +export * from "./workspaceApiRelease"; +export * from "./workspaceApiOperation"; +export * from "./workspaceApiOperationPolicy"; +export * from "./workspaceApiPolicy"; +export * from "./workspaceApiSchema"; +export * from "./workspaceProduct"; +export * from "./workspaceProductApiLink"; +export * from "./workspaceProductGroupLink"; +export * from "./workspaceProductPolicy"; +export * from "./workspaceTag"; +export * from "./workspaceTagApiLink"; +export * from "./workspaceTagOperationLink"; +export * from "./workspaceTagProductLink"; +export * from "./workspaceApiExport"; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/issue.ts b/sdk/apimanagement/arm-apimanagement/src/operations/issue.ts index 55bf4c71ee76..a201a452f89d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/issue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/issue.ts @@ -20,7 +20,7 @@ import { IssueListByServiceResponse, IssueGetOptionalParams, IssueGetResponse, - IssueListByServiceNextResponse + IssueListByServiceNextResponse, } from "../models"; /// @@ -45,12 +45,12 @@ export class IssueImpl implements Issue { public listByService( resourceGroupName: string, serviceName: string, - options?: IssueListByServiceOptionalParams + options?: IssueListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -67,9 +67,9 @@ export class IssueImpl implements Issue { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -77,7 +77,7 @@ export class IssueImpl implements Issue { resourceGroupName: string, serviceName: string, options?: IssueListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: IssueListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -85,7 +85,7 @@ export class IssueImpl implements Issue { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -97,7 +97,7 @@ export class IssueImpl implements Issue { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -109,12 +109,12 @@ export class IssueImpl implements Issue { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: IssueListByServiceOptionalParams + options?: IssueListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -129,11 +129,11 @@ export class IssueImpl implements Issue { private _listByService( resourceGroupName: string, serviceName: string, - options?: IssueListByServiceOptionalParams + options?: IssueListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -148,11 +148,11 @@ export class IssueImpl implements Issue { resourceGroupName: string, serviceName: string, issueId: string, - options?: IssueGetOptionalParams + options?: IssueGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, issueId, options }, - getOperationSpec + getOperationSpec, ); } @@ -167,11 +167,11 @@ export class IssueImpl implements Issue { resourceGroupName: string, serviceName: string, nextLink: string, - options?: IssueListByServiceNextOptionalParams + options?: IssueListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -179,44 +179,42 @@ export class IssueImpl implements Issue { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/issues", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/issues", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IssueCollection + bodyMapper: Mappers.IssueCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/issues/{issueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/issues/{issueId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.IssueContract, - headersMapper: Mappers.IssueGetHeaders + headersMapper: Mappers.IssueGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -224,29 +222,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.issueId + Parameters.issueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IssueCollection + bodyMapper: Mappers.IssueCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts b/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts index 626d49673b05..b6058435d280 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts @@ -28,7 +28,7 @@ import { LoggerUpdateOptionalParams, LoggerUpdateResponse, LoggerDeleteOptionalParams, - LoggerListByServiceNextResponse + LoggerListByServiceNextResponse, } from "../models"; /// @@ -53,12 +53,12 @@ export class LoggerImpl implements Logger { public listByService( resourceGroupName: string, serviceName: string, - options?: LoggerListByServiceOptionalParams + options?: LoggerListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -75,9 +75,9 @@ export class LoggerImpl implements Logger { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class LoggerImpl implements Logger { resourceGroupName: string, serviceName: string, options?: LoggerListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: LoggerListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +93,7 @@ export class LoggerImpl implements Logger { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -105,7 +105,7 @@ export class LoggerImpl implements Logger { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,12 +117,12 @@ export class LoggerImpl implements Logger { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: LoggerListByServiceOptionalParams + options?: LoggerListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -137,11 +137,11 @@ export class LoggerImpl implements Logger { private _listByService( resourceGroupName: string, serviceName: string, - options?: LoggerListByServiceOptionalParams + options?: LoggerListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -156,11 +156,11 @@ export class LoggerImpl implements Logger { resourceGroupName: string, serviceName: string, loggerId: string, - options?: LoggerGetEntityTagOptionalParams + options?: LoggerGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, loggerId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -175,11 +175,11 @@ export class LoggerImpl implements Logger { resourceGroupName: string, serviceName: string, loggerId: string, - options?: LoggerGetOptionalParams + options?: LoggerGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, loggerId, options }, - getOperationSpec + getOperationSpec, ); } @@ -196,11 +196,11 @@ export class LoggerImpl implements Logger { serviceName: string, loggerId: string, parameters: LoggerContract, - options?: LoggerCreateOrUpdateOptionalParams + options?: LoggerCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, loggerId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -220,7 +220,7 @@ export class LoggerImpl implements Logger { loggerId: string, ifMatch: string, parameters: LoggerUpdateContract, - options?: LoggerUpdateOptionalParams + options?: LoggerUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -229,9 +229,9 @@ export class LoggerImpl implements Logger { loggerId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -249,11 +249,11 @@ export class LoggerImpl implements Logger { serviceName: string, loggerId: string, ifMatch: string, - options?: LoggerDeleteOptionalParams + options?: LoggerDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, loggerId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -268,11 +268,11 @@ export class LoggerImpl implements Logger { resourceGroupName: string, serviceName: string, nextLink: string, - options?: LoggerListByServiceNextOptionalParams + options?: LoggerListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -280,43 +280,41 @@ export class LoggerImpl implements Logger { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LoggerCollection + bodyMapper: Mappers.LoggerCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.LoggerGetEntityTagHeaders + headersMapper: Mappers.LoggerGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -324,23 +322,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.loggerId + Parameters.loggerId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.LoggerContract, - headersMapper: Mappers.LoggerGetHeaders + headersMapper: Mappers.LoggerGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -348,85 +345,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.loggerId + Parameters.loggerId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.LoggerContract, - headersMapper: Mappers.LoggerCreateOrUpdateHeaders + headersMapper: Mappers.LoggerCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.LoggerContract, - headersMapper: Mappers.LoggerCreateOrUpdateHeaders + headersMapper: Mappers.LoggerCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters51, + requestBody: Parameters.parameters58, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.loggerId + Parameters.loggerId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.LoggerContract, - headersMapper: Mappers.LoggerUpdateHeaders + headersMapper: Mappers.LoggerUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters52, + requestBody: Parameters.parameters59, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.loggerId + Parameters.loggerId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -434,29 +428,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.loggerId + Parameters.loggerId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LoggerCollection + bodyMapper: Mappers.LoggerCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts b/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts index c15754457817..670d46bfd72e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts @@ -16,7 +16,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -39,7 +39,7 @@ import { NamedValueListValueResponse, NamedValueRefreshSecretOptionalParams, NamedValueRefreshSecretResponse, - NamedValueListByServiceNextResponse + NamedValueListByServiceNextResponse, } from "../models"; /// @@ -64,12 +64,12 @@ export class NamedValueImpl implements NamedValue { public listByService( resourceGroupName: string, serviceName: string, - options?: NamedValueListByServiceOptionalParams + options?: NamedValueListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -86,9 +86,9 @@ export class NamedValueImpl implements NamedValue { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -96,7 +96,7 @@ export class NamedValueImpl implements NamedValue { resourceGroupName: string, serviceName: string, options?: NamedValueListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: NamedValueListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -104,7 +104,7 @@ export class NamedValueImpl implements NamedValue { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -116,7 +116,7 @@ export class NamedValueImpl implements NamedValue { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -128,12 +128,12 @@ export class NamedValueImpl implements NamedValue { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: NamedValueListByServiceOptionalParams + options?: NamedValueListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -148,11 +148,11 @@ export class NamedValueImpl implements NamedValue { private _listByService( resourceGroupName: string, serviceName: string, - options?: NamedValueListByServiceOptionalParams + options?: NamedValueListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -167,11 +167,11 @@ export class NamedValueImpl implements NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueGetEntityTagOptionalParams + options?: NamedValueGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, namedValueId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -186,11 +186,11 @@ export class NamedValueImpl implements NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueGetOptionalParams + options?: NamedValueGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, namedValueId, options }, - getOperationSpec + getOperationSpec, ); } @@ -207,7 +207,7 @@ export class NamedValueImpl implements NamedValue { serviceName: string, namedValueId: string, parameters: NamedValueCreateContract, - options?: NamedValueCreateOrUpdateOptionalParams + options?: NamedValueCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -216,21 +216,20 @@ export class NamedValueImpl implements NamedValue { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -239,8 +238,8 @@ export class NamedValueImpl implements NamedValue { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -248,8 +247,8 @@ export class NamedValueImpl implements NamedValue { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -260,9 +259,9 @@ export class NamedValueImpl implements NamedValue { serviceName, namedValueId, parameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< NamedValueCreateOrUpdateResponse, @@ -270,7 +269,7 @@ export class NamedValueImpl implements NamedValue { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -289,14 +288,14 @@ export class NamedValueImpl implements NamedValue { serviceName: string, namedValueId: string, parameters: NamedValueCreateContract, - options?: NamedValueCreateOrUpdateOptionalParams + options?: NamedValueCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, namedValueId, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -317,7 +316,7 @@ export class NamedValueImpl implements NamedValue { namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, - options?: NamedValueUpdateOptionalParams + options?: NamedValueUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -326,21 +325,20 @@ export class NamedValueImpl implements NamedValue { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -349,8 +347,8 @@ export class NamedValueImpl implements NamedValue { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -358,8 +356,8 @@ export class NamedValueImpl implements NamedValue { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -371,9 +369,9 @@ export class NamedValueImpl implements NamedValue { namedValueId, ifMatch, parameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< NamedValueUpdateResponse, @@ -381,7 +379,7 @@ export class NamedValueImpl implements NamedValue { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -403,7 +401,7 @@ export class NamedValueImpl implements NamedValue { namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, - options?: NamedValueUpdateOptionalParams + options?: NamedValueUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -411,7 +409,7 @@ export class NamedValueImpl implements NamedValue { namedValueId, ifMatch, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -430,11 +428,11 @@ export class NamedValueImpl implements NamedValue { serviceName: string, namedValueId: string, ifMatch: string, - options?: NamedValueDeleteOptionalParams + options?: NamedValueDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, namedValueId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -449,11 +447,11 @@ export class NamedValueImpl implements NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueListValueOptionalParams + options?: NamedValueListValueOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, namedValueId, options }, - listValueOperationSpec + listValueOperationSpec, ); } @@ -468,7 +466,7 @@ export class NamedValueImpl implements NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueRefreshSecretOptionalParams + options?: NamedValueRefreshSecretOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -477,21 +475,20 @@ export class NamedValueImpl implements NamedValue { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -500,8 +497,8 @@ export class NamedValueImpl implements NamedValue { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -509,15 +506,15 @@ export class NamedValueImpl implements NamedValue { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, namedValueId, options }, - spec: refreshSecretOperationSpec + spec: refreshSecretOperationSpec, }); const poller = await createHttpPoller< NamedValueRefreshSecretResponse, @@ -525,7 +522,7 @@ export class NamedValueImpl implements NamedValue { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -542,13 +539,13 @@ export class NamedValueImpl implements NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueRefreshSecretOptionalParams + options?: NamedValueRefreshSecretOptionalParams, ): Promise { const poller = await this.beginRefreshSecret( resourceGroupName, serviceName, namedValueId, - options + options, ); return poller.pollUntilDone(); } @@ -564,11 +561,11 @@ export class NamedValueImpl implements NamedValue { resourceGroupName: string, serviceName: string, nextLink: string, - options?: NamedValueListByServiceNextOptionalParams + options?: NamedValueListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -576,44 +573,42 @@ export class NamedValueImpl implements NamedValue { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NamedValueCollection + bodyMapper: Mappers.NamedValueCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.isKeyVaultRefreshFailed + Parameters.isKeyVaultRefreshFailed, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.NamedValueGetEntityTagHeaders + headersMapper: Mappers.NamedValueGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -621,23 +616,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.namedValueId + Parameters.namedValueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueGetHeaders + headersMapper: Mappers.NamedValueGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -645,105 +639,102 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.namedValueId + Parameters.namedValueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueCreateOrUpdateHeaders + headersMapper: Mappers.NamedValueCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueCreateOrUpdateHeaders + headersMapper: Mappers.NamedValueCreateOrUpdateHeaders, }, 202: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueCreateOrUpdateHeaders + headersMapper: Mappers.NamedValueCreateOrUpdateHeaders, }, 204: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueCreateOrUpdateHeaders + headersMapper: Mappers.NamedValueCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters53, + requestBody: Parameters.parameters60, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.namedValueId + Parameters.namedValueId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueUpdateHeaders + headersMapper: Mappers.NamedValueUpdateHeaders, }, 201: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueUpdateHeaders + headersMapper: Mappers.NamedValueUpdateHeaders, }, 202: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueUpdateHeaders + headersMapper: Mappers.NamedValueUpdateHeaders, }, 204: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueUpdateHeaders + headersMapper: Mappers.NamedValueUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters54, + requestBody: Parameters.parameters61, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.namedValueId + Parameters.namedValueId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -751,23 +742,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.namedValueId + Parameters.namedValueId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listValueOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}/listValue", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}/listValue", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.NamedValueSecretContract, - headersMapper: Mappers.NamedValueListValueHeaders + headersMapper: Mappers.NamedValueListValueHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -775,35 +765,34 @@ const listValueOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.namedValueId + Parameters.namedValueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const refreshSecretOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}/refreshSecret", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}/refreshSecret", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueRefreshSecretHeaders + headersMapper: Mappers.NamedValueRefreshSecretHeaders, }, 201: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueRefreshSecretHeaders + headersMapper: Mappers.NamedValueRefreshSecretHeaders, }, 202: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueRefreshSecretHeaders + headersMapper: Mappers.NamedValueRefreshSecretHeaders, }, 204: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueRefreshSecretHeaders + headersMapper: Mappers.NamedValueRefreshSecretHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -811,29 +800,29 @@ const refreshSecretOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.namedValueId + Parameters.namedValueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NamedValueCollection + bodyMapper: Mappers.NamedValueCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/networkStatus.ts b/sdk/apimanagement/arm-apimanagement/src/operations/networkStatus.ts index 8f9ab94e7fee..847e9546512c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/networkStatus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/networkStatus.ts @@ -15,7 +15,7 @@ import { NetworkStatusListByServiceOptionalParams, NetworkStatusListByServiceResponse, NetworkStatusListByLocationOptionalParams, - NetworkStatusListByLocationResponse + NetworkStatusListByLocationResponse, } from "../models"; /** Class containing NetworkStatus operations. */ @@ -40,11 +40,11 @@ export class NetworkStatusImpl implements NetworkStatus { listByService( resourceGroupName: string, serviceName: string, - options?: NetworkStatusListByServiceOptionalParams + options?: NetworkStatusListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -61,11 +61,11 @@ export class NetworkStatusImpl implements NetworkStatus { resourceGroupName: string, serviceName: string, locationName: string, - options?: NetworkStatusListByLocationOptionalParams + options?: NetworkStatusListByLocationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, locationName, options }, - listByLocationOperationSpec + listByLocationOperationSpec, ); } } @@ -73,8 +73,7 @@ export class NetworkStatusImpl implements NetworkStatus { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/networkstatus", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/networkstatus", httpMethod: "GET", responses: { 200: { @@ -84,37 +83,36 @@ const listByServiceOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "NetworkStatusContractByLocation" - } - } - } - } + className: "NetworkStatusContractByLocation", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByLocationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/locations/{locationName}/networkstatus", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/locations/{locationName}/networkstatus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NetworkStatusContract + bodyMapper: Mappers.NetworkStatusContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -122,8 +120,8 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/notification.ts b/sdk/apimanagement/arm-apimanagement/src/operations/notification.ts index 330f9607e8cb..420fe329e4ed 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/notification.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/notification.ts @@ -23,7 +23,7 @@ import { NotificationGetResponse, NotificationCreateOrUpdateOptionalParams, NotificationCreateOrUpdateResponse, - NotificationListByServiceNextResponse + NotificationListByServiceNextResponse, } from "../models"; /// @@ -48,12 +48,12 @@ export class NotificationImpl implements Notification { public listByService( resourceGroupName: string, serviceName: string, - options?: NotificationListByServiceOptionalParams + options?: NotificationListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -70,9 +70,9 @@ export class NotificationImpl implements Notification { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class NotificationImpl implements Notification { resourceGroupName: string, serviceName: string, options?: NotificationListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: NotificationListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -88,7 +88,7 @@ export class NotificationImpl implements Notification { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -100,7 +100,7 @@ export class NotificationImpl implements Notification { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -112,12 +112,12 @@ export class NotificationImpl implements Notification { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: NotificationListByServiceOptionalParams + options?: NotificationListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -132,11 +132,11 @@ export class NotificationImpl implements Notification { private _listByService( resourceGroupName: string, serviceName: string, - options?: NotificationListByServiceOptionalParams + options?: NotificationListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -151,11 +151,11 @@ export class NotificationImpl implements Notification { resourceGroupName: string, serviceName: string, notificationName: NotificationName, - options?: NotificationGetOptionalParams + options?: NotificationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, options }, - getOperationSpec + getOperationSpec, ); } @@ -170,11 +170,11 @@ export class NotificationImpl implements Notification { resourceGroupName: string, serviceName: string, notificationName: NotificationName, - options?: NotificationCreateOrUpdateOptionalParams + options?: NotificationCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -189,11 +189,11 @@ export class NotificationImpl implements Notification { resourceGroupName: string, serviceName: string, nextLink: string, - options?: NotificationListByServiceNextOptionalParams + options?: NotificationListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -201,38 +201,36 @@ export class NotificationImpl implements Notification { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NotificationCollection + bodyMapper: Mappers.NotificationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.top, Parameters.skip, Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.skip], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NotificationContract + bodyMapper: Mappers.NotificationContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -240,22 +238,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.notificationName + Parameters.notificationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.NotificationContract + bodyMapper: Mappers.NotificationContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -263,29 +260,29 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.notificationName + Parameters.notificationName, ], headerParameters: [Parameters.accept, Parameters.ifMatch], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NotificationCollection + bodyMapper: Mappers.NotificationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientEmail.ts b/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientEmail.ts index 5532326268f3..4ffa289f9a94 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientEmail.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientEmail.ts @@ -19,12 +19,13 @@ import { NotificationRecipientEmailCheckEntityExistsResponse, NotificationRecipientEmailCreateOrUpdateOptionalParams, NotificationRecipientEmailCreateOrUpdateResponse, - NotificationRecipientEmailDeleteOptionalParams + NotificationRecipientEmailDeleteOptionalParams, } from "../models"; /** Class containing NotificationRecipientEmail operations. */ export class NotificationRecipientEmailImpl - implements NotificationRecipientEmail { + implements NotificationRecipientEmail +{ private readonly client: ApiManagementClient; /** @@ -46,11 +47,11 @@ export class NotificationRecipientEmailImpl resourceGroupName: string, serviceName: string, notificationName: NotificationName, - options?: NotificationRecipientEmailListByNotificationOptionalParams + options?: NotificationRecipientEmailListByNotificationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, options }, - listByNotificationOperationSpec + listByNotificationOperationSpec, ); } @@ -67,11 +68,11 @@ export class NotificationRecipientEmailImpl serviceName: string, notificationName: NotificationName, email: string, - options?: NotificationRecipientEmailCheckEntityExistsOptionalParams + options?: NotificationRecipientEmailCheckEntityExistsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, email, options }, - checkEntityExistsOperationSpec + checkEntityExistsOperationSpec, ); } @@ -88,11 +89,11 @@ export class NotificationRecipientEmailImpl serviceName: string, notificationName: NotificationName, email: string, - options?: NotificationRecipientEmailCreateOrUpdateOptionalParams + options?: NotificationRecipientEmailCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, email, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -109,11 +110,11 @@ export class NotificationRecipientEmailImpl serviceName: string, notificationName: NotificationName, email: string, - options?: NotificationRecipientEmailDeleteOptionalParams + options?: NotificationRecipientEmailDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, email, options }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -121,16 +122,15 @@ export class NotificationRecipientEmailImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByNotificationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RecipientEmailCollection + bodyMapper: Mappers.RecipientEmailCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -138,21 +138,20 @@ const listByNotificationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.notificationName + Parameters.notificationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkEntityExistsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", httpMethod: "HEAD", responses: { 204: {}, 404: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -161,25 +160,24 @@ const checkEntityExistsOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.notificationName, - Parameters.email + Parameters.email, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.RecipientEmailContract + bodyMapper: Mappers.RecipientEmailContract, }, 201: { - bodyMapper: Mappers.RecipientEmailContract + bodyMapper: Mappers.RecipientEmailContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -188,21 +186,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.notificationName, - Parameters.email + Parameters.email, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -211,8 +208,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.notificationName, - Parameters.email + Parameters.email, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientUser.ts b/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientUser.ts index ff459bec71fd..2d9c8cb5f5c5 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientUser.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientUser.ts @@ -19,12 +19,13 @@ import { NotificationRecipientUserCheckEntityExistsResponse, NotificationRecipientUserCreateOrUpdateOptionalParams, NotificationRecipientUserCreateOrUpdateResponse, - NotificationRecipientUserDeleteOptionalParams + NotificationRecipientUserDeleteOptionalParams, } from "../models"; /** Class containing NotificationRecipientUser operations. */ export class NotificationRecipientUserImpl - implements NotificationRecipientUser { + implements NotificationRecipientUser +{ private readonly client: ApiManagementClient; /** @@ -46,11 +47,11 @@ export class NotificationRecipientUserImpl resourceGroupName: string, serviceName: string, notificationName: NotificationName, - options?: NotificationRecipientUserListByNotificationOptionalParams + options?: NotificationRecipientUserListByNotificationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, options }, - listByNotificationOperationSpec + listByNotificationOperationSpec, ); } @@ -67,11 +68,11 @@ export class NotificationRecipientUserImpl serviceName: string, notificationName: NotificationName, userId: string, - options?: NotificationRecipientUserCheckEntityExistsOptionalParams + options?: NotificationRecipientUserCheckEntityExistsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, userId, options }, - checkEntityExistsOperationSpec + checkEntityExistsOperationSpec, ); } @@ -88,11 +89,11 @@ export class NotificationRecipientUserImpl serviceName: string, notificationName: NotificationName, userId: string, - options?: NotificationRecipientUserCreateOrUpdateOptionalParams + options?: NotificationRecipientUserCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, userId, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -109,11 +110,11 @@ export class NotificationRecipientUserImpl serviceName: string, notificationName: NotificationName, userId: string, - options?: NotificationRecipientUserDeleteOptionalParams + options?: NotificationRecipientUserDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, userId, options }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -121,16 +122,15 @@ export class NotificationRecipientUserImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByNotificationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RecipientUserCollection + bodyMapper: Mappers.RecipientUserCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -138,21 +138,20 @@ const listByNotificationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.notificationName + Parameters.notificationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkEntityExistsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", httpMethod: "HEAD", responses: { 204: {}, 404: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -161,25 +160,24 @@ const checkEntityExistsOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.userId, - Parameters.notificationName + Parameters.notificationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.RecipientUserContract + bodyMapper: Mappers.RecipientUserContract, }, 201: { - bodyMapper: Mappers.RecipientUserContract + bodyMapper: Mappers.RecipientUserContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -188,21 +186,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.userId, - Parameters.notificationName + Parameters.notificationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -211,8 +208,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.userId, - Parameters.notificationName + Parameters.notificationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts index 6f214aac252c..4ceead2ef896 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts @@ -30,7 +30,7 @@ import { OpenIdConnectProviderDeleteOptionalParams, OpenIdConnectProviderListSecretsOptionalParams, OpenIdConnectProviderListSecretsResponse, - OpenIdConnectProviderListByServiceNextResponse + OpenIdConnectProviderListByServiceNextResponse, } from "../models"; /// @@ -55,12 +55,12 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { public listByService( resourceGroupName: string, serviceName: string, - options?: OpenIdConnectProviderListByServiceOptionalParams + options?: OpenIdConnectProviderListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -77,9 +77,9 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -87,7 +87,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { resourceGroupName: string, serviceName: string, options?: OpenIdConnectProviderListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OpenIdConnectProviderListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -95,7 +95,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -107,7 +107,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -119,12 +119,12 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: OpenIdConnectProviderListByServiceOptionalParams + options?: OpenIdConnectProviderListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -139,11 +139,11 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { private _listByService( resourceGroupName: string, serviceName: string, - options?: OpenIdConnectProviderListByServiceOptionalParams + options?: OpenIdConnectProviderListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -158,11 +158,11 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { resourceGroupName: string, serviceName: string, opid: string, - options?: OpenIdConnectProviderGetEntityTagOptionalParams + options?: OpenIdConnectProviderGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, opid, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -177,11 +177,11 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { resourceGroupName: string, serviceName: string, opid: string, - options?: OpenIdConnectProviderGetOptionalParams + options?: OpenIdConnectProviderGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, opid, options }, - getOperationSpec + getOperationSpec, ); } @@ -198,11 +198,11 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { serviceName: string, opid: string, parameters: OpenidConnectProviderContract, - options?: OpenIdConnectProviderCreateOrUpdateOptionalParams + options?: OpenIdConnectProviderCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, opid, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -222,11 +222,11 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { opid: string, ifMatch: string, parameters: OpenidConnectProviderUpdateContract, - options?: OpenIdConnectProviderUpdateOptionalParams + options?: OpenIdConnectProviderUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, opid, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -244,11 +244,11 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { serviceName: string, opid: string, ifMatch: string, - options?: OpenIdConnectProviderDeleteOptionalParams + options?: OpenIdConnectProviderDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, opid, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -263,11 +263,11 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { resourceGroupName: string, serviceName: string, opid: string, - options?: OpenIdConnectProviderListSecretsOptionalParams + options?: OpenIdConnectProviderListSecretsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, opid, options }, - listSecretsOperationSpec + listSecretsOperationSpec, ); } @@ -282,11 +282,11 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { resourceGroupName: string, serviceName: string, nextLink: string, - options?: OpenIdConnectProviderListByServiceNextOptionalParams + options?: OpenIdConnectProviderListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -294,43 +294,41 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OpenIdConnectProviderCollection + bodyMapper: Mappers.OpenIdConnectProviderCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.OpenIdConnectProviderGetEntityTagHeaders + headersMapper: Mappers.OpenIdConnectProviderGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -338,23 +336,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.opid + Parameters.opid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.OpenidConnectProviderContract, - headersMapper: Mappers.OpenIdConnectProviderGetHeaders + headersMapper: Mappers.OpenIdConnectProviderGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -362,85 +359,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.opid + Parameters.opid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.OpenidConnectProviderContract, - headersMapper: Mappers.OpenIdConnectProviderCreateOrUpdateHeaders + headersMapper: Mappers.OpenIdConnectProviderCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.OpenidConnectProviderContract, - headersMapper: Mappers.OpenIdConnectProviderCreateOrUpdateHeaders + headersMapper: Mappers.OpenIdConnectProviderCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters55, + requestBody: Parameters.parameters62, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.opid + Parameters.opid, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.OpenidConnectProviderContract, - headersMapper: Mappers.OpenIdConnectProviderUpdateHeaders + headersMapper: Mappers.OpenIdConnectProviderUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters56, + requestBody: Parameters.parameters63, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.opid + Parameters.opid, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -448,23 +442,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.opid + Parameters.opid, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listSecretsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}/listSecrets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}/listSecrets", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.ClientSecretContract, - headersMapper: Mappers.OpenIdConnectProviderListSecretsHeaders + headersMapper: Mappers.OpenIdConnectProviderListSecretsHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -472,29 +465,29 @@ const listSecretsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.opid + Parameters.opid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OpenIdConnectProviderCollection + bodyMapper: Mappers.OpenIdConnectProviderCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts index 91d1fdf3b4ec..ffe3bb290b59 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts @@ -18,7 +18,7 @@ import { OperationListByTagsNextOptionalParams, OperationListByTagsOptionalParams, OperationListByTagsResponse, - OperationListByTagsNextResponse + OperationListByTagsNextResponse, } from "../models"; /// @@ -46,13 +46,13 @@ export class OperationOperationsImpl implements OperationOperations { resourceGroupName: string, serviceName: string, apiId: string, - options?: OperationListByTagsOptionalParams + options?: OperationListByTagsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByTagsPagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -70,9 +70,9 @@ export class OperationOperationsImpl implements OperationOperations { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -81,7 +81,7 @@ export class OperationOperationsImpl implements OperationOperations { serviceName: string, apiId: string, options?: OperationListByTagsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OperationListByTagsResponse; let continuationToken = settings?.continuationToken; @@ -90,7 +90,7 @@ export class OperationOperationsImpl implements OperationOperations { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -103,7 +103,7 @@ export class OperationOperationsImpl implements OperationOperations { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -116,13 +116,13 @@ export class OperationOperationsImpl implements OperationOperations { resourceGroupName: string, serviceName: string, apiId: string, - options?: OperationListByTagsOptionalParams + options?: OperationListByTagsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByTagsPagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -140,11 +140,11 @@ export class OperationOperationsImpl implements OperationOperations { resourceGroupName: string, serviceName: string, apiId: string, - options?: OperationListByTagsOptionalParams + options?: OperationListByTagsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByTagsOperationSpec + listByTagsOperationSpec, ); } @@ -162,11 +162,11 @@ export class OperationOperationsImpl implements OperationOperations { serviceName: string, apiId: string, nextLink: string, - options?: OperationListByTagsNextOptionalParams + options?: OperationListByTagsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByTagsNextOperationSpec + listByTagsNextOperationSpec, ); } } @@ -174,53 +174,52 @@ export class OperationOperationsImpl implements OperationOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByTagsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operationsByTags", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operationsByTags", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.TagResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.includeNotTaggedOperations + Parameters.includeNotTaggedOperations, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTagsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.TagResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, + Parameters.nextLink, Parameters.apiId, - Parameters.nextLink ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/outboundNetworkDependenciesEndpoints.ts b/sdk/apimanagement/arm-apimanagement/src/operations/outboundNetworkDependenciesEndpoints.ts index 5ac8f335aa65..b3114f1e912b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/outboundNetworkDependenciesEndpoints.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/outboundNetworkDependenciesEndpoints.ts @@ -13,12 +13,13 @@ import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; import { OutboundNetworkDependenciesEndpointsListByServiceOptionalParams, - OutboundNetworkDependenciesEndpointsListByServiceResponse + OutboundNetworkDependenciesEndpointsListByServiceResponse, } from "../models"; /** Class containing OutboundNetworkDependenciesEndpoints operations. */ export class OutboundNetworkDependenciesEndpointsImpl - implements OutboundNetworkDependenciesEndpoints { + implements OutboundNetworkDependenciesEndpoints +{ private readonly client: ApiManagementClient; /** @@ -38,11 +39,11 @@ export class OutboundNetworkDependenciesEndpointsImpl listByService( resourceGroupName: string, serviceName: string, - options?: OutboundNetworkDependenciesEndpointsListByServiceOptionalParams + options?: OutboundNetworkDependenciesEndpointsListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } } @@ -50,24 +51,23 @@ export class OutboundNetworkDependenciesEndpointsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/outboundNetworkDependenciesEndpoints", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/outboundNetworkDependenciesEndpoints", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OutboundEnvironmentEndpointList + bodyMapper: Mappers.OutboundEnvironmentEndpointList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts index d278cdfc55fc..6f04d710333f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts @@ -6,12 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { Policy } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; import { + PolicyContract, + PolicyListByServiceNextOptionalParams, PolicyListByServiceOptionalParams, PolicyListByServiceResponse, PolicyIdName, @@ -19,12 +23,13 @@ import { PolicyGetEntityTagResponse, PolicyGetOptionalParams, PolicyGetResponse, - PolicyContract, PolicyCreateOrUpdateOptionalParams, PolicyCreateOrUpdateResponse, - PolicyDeleteOptionalParams + PolicyDeleteOptionalParams, + PolicyListByServiceNextResponse, } from "../models"; +/// /** Class containing Policy operations. */ export class PolicyImpl implements Policy { private readonly client: ApiManagementClient; @@ -43,14 +48,98 @@ export class PolicyImpl implements Policy { * @param serviceName The name of the API Management service. * @param options The options parameters. */ - listByService( + public listByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + options?: PolicyListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: PolicyListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: PolicyListByServiceOptionalParams + options?: PolicyListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + )) { + yield* page; + } + } + + /** + * Lists all the Global Policy definitions of the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -65,11 +154,11 @@ export class PolicyImpl implements Policy { resourceGroupName: string, serviceName: string, policyId: PolicyIdName, - options?: PolicyGetEntityTagOptionalParams + options?: PolicyGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, policyId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -84,11 +173,11 @@ export class PolicyImpl implements Policy { resourceGroupName: string, serviceName: string, policyId: PolicyIdName, - options?: PolicyGetOptionalParams + options?: PolicyGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, policyId, options }, - getOperationSpec + getOperationSpec, ); } @@ -105,11 +194,11 @@ export class PolicyImpl implements Policy { serviceName: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: PolicyCreateOrUpdateOptionalParams + options?: PolicyCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, policyId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -127,11 +216,30 @@ export class PolicyImpl implements Policy { serviceName: string, policyId: PolicyIdName, ifMatch: string, - options?: PolicyDeleteOptionalParams + options?: PolicyDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, policyId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: PolicyListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec, ); } } @@ -139,38 +247,36 @@ export class PolicyImpl implements Policy { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyCollection + bodyMapper: Mappers.PolicyCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.PolicyGetEntityTagHeaders + headersMapper: Mappers.PolicyGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -178,23 +284,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.PolicyGetHeaders + headersMapper: Mappers.PolicyGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.format], urlParameters: [ @@ -202,55 +307,53 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.PolicyCreateOrUpdateHeaders + headersMapper: Mappers.PolicyCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.PolicyCreateOrUpdateHeaders + headersMapper: Mappers.PolicyCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -258,8 +361,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts index 2f563e88f50e..0a3f565cf433 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; import { PolicyDescriptionListByServiceOptionalParams, - PolicyDescriptionListByServiceResponse + PolicyDescriptionListByServiceResponse, } from "../models"; /** Class containing PolicyDescription operations. */ @@ -37,11 +37,11 @@ export class PolicyDescriptionImpl implements PolicyDescription { listByService( resourceGroupName: string, serviceName: string, - options?: PolicyDescriptionListByServiceOptionalParams + options?: PolicyDescriptionListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } } @@ -49,24 +49,23 @@ export class PolicyDescriptionImpl implements PolicyDescription { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyDescriptions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyDescriptions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyDescriptionCollection + bodyMapper: Mappers.PolicyDescriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.scope1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts index b6d25f5fb6b7..18b9600503d3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts @@ -6,6 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { PolicyFragment } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -14,24 +16,27 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { + PolicyFragmentContract, + PolicyFragmentListByServiceNextOptionalParams, PolicyFragmentListByServiceOptionalParams, PolicyFragmentListByServiceResponse, PolicyFragmentGetEntityTagOptionalParams, PolicyFragmentGetEntityTagResponse, PolicyFragmentGetOptionalParams, PolicyFragmentGetResponse, - PolicyFragmentContract, PolicyFragmentCreateOrUpdateOptionalParams, PolicyFragmentCreateOrUpdateResponse, PolicyFragmentDeleteOptionalParams, PolicyFragmentListReferencesOptionalParams, - PolicyFragmentListReferencesResponse + PolicyFragmentListReferencesResponse, + PolicyFragmentListByServiceNextResponse, } from "../models"; +/// /** Class containing PolicyFragment operations. */ export class PolicyFragmentImpl implements PolicyFragment { private readonly client: ApiManagementClient; @@ -50,14 +55,98 @@ export class PolicyFragmentImpl implements PolicyFragment { * @param serviceName The name of the API Management service. * @param options The options parameters. */ - listByService( + public listByService( resourceGroupName: string, serviceName: string, - options?: PolicyFragmentListByServiceOptionalParams + options?: PolicyFragmentListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + options?: PolicyFragmentListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: PolicyFragmentListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + options?: PolicyFragmentListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + )) { + yield* page; + } + } + + /** + * Gets all policy fragments. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyFragmentListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -72,11 +161,11 @@ export class PolicyFragmentImpl implements PolicyFragment { resourceGroupName: string, serviceName: string, id: string, - options?: PolicyFragmentGetEntityTagOptionalParams + options?: PolicyFragmentGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, id, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -91,11 +180,11 @@ export class PolicyFragmentImpl implements PolicyFragment { resourceGroupName: string, serviceName: string, id: string, - options?: PolicyFragmentGetOptionalParams + options?: PolicyFragmentGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, id, options }, - getOperationSpec + getOperationSpec, ); } @@ -112,7 +201,7 @@ export class PolicyFragmentImpl implements PolicyFragment { serviceName: string, id: string, parameters: PolicyFragmentContract, - options?: PolicyFragmentCreateOrUpdateOptionalParams + options?: PolicyFragmentCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -121,21 +210,20 @@ export class PolicyFragmentImpl implements PolicyFragment { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -144,8 +232,8 @@ export class PolicyFragmentImpl implements PolicyFragment { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -153,15 +241,15 @@ export class PolicyFragmentImpl implements PolicyFragment { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, id, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< PolicyFragmentCreateOrUpdateResponse, @@ -169,7 +257,7 @@ export class PolicyFragmentImpl implements PolicyFragment { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -188,14 +276,14 @@ export class PolicyFragmentImpl implements PolicyFragment { serviceName: string, id: string, parameters: PolicyFragmentContract, - options?: PolicyFragmentCreateOrUpdateOptionalParams + options?: PolicyFragmentCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, id, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -214,11 +302,11 @@ export class PolicyFragmentImpl implements PolicyFragment { serviceName: string, id: string, ifMatch: string, - options?: PolicyFragmentDeleteOptionalParams + options?: PolicyFragmentDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, id, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -233,11 +321,30 @@ export class PolicyFragmentImpl implements PolicyFragment { resourceGroupName: string, serviceName: string, id: string, - options?: PolicyFragmentListReferencesOptionalParams + options?: PolicyFragmentListReferencesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, id, options }, - listReferencesOperationSpec + listReferencesOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: PolicyFragmentListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec, ); } } @@ -245,44 +352,42 @@ export class PolicyFragmentImpl implements PolicyFragment { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyFragmentCollection + bodyMapper: Mappers.PolicyFragmentCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.orderby + Parameters.orderby, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.PolicyFragmentGetEntityTagHeaders + headersMapper: Mappers.PolicyFragmentGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -290,23 +395,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PolicyFragmentContract, - headersMapper: Mappers.PolicyFragmentGetHeaders + headersMapper: Mappers.PolicyFragmentGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.format2], urlParameters: [ @@ -314,63 +418,61 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PolicyFragmentContract, - headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders + headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.PolicyFragmentContract, - headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders + headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders, }, 202: { bodyMapper: Mappers.PolicyFragmentContract, - headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders + headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders, }, 204: { bodyMapper: Mappers.PolicyFragmentContract, - headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders + headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters57, + requestBody: Parameters.parameters64, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.id + Parameters.id, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -378,31 +480,51 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listReferencesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}/listReferences", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}/listReferences", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ResourceCollection + bodyMapper: Mappers.ResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.top, Parameters.skip, Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.id + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policyRestriction.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policyRestriction.ts new file mode 100644 index 000000000000..bb29593246a6 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policyRestriction.ts @@ -0,0 +1,454 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { PolicyRestriction } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + PolicyRestrictionContract, + PolicyRestrictionListByServiceNextOptionalParams, + PolicyRestrictionListByServiceOptionalParams, + PolicyRestrictionListByServiceResponse, + PolicyRestrictionGetEntityTagOptionalParams, + PolicyRestrictionGetEntityTagResponse, + PolicyRestrictionGetOptionalParams, + PolicyRestrictionGetResponse, + PolicyRestrictionCreateOrUpdateOptionalParams, + PolicyRestrictionCreateOrUpdateResponse, + PolicyRestrictionUpdateContract, + PolicyRestrictionUpdateOptionalParams, + PolicyRestrictionUpdateResponse, + PolicyRestrictionDeleteOptionalParams, + PolicyRestrictionListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing PolicyRestriction operations. */ +export class PolicyRestrictionImpl implements PolicyRestriction { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class PolicyRestriction class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets all policy restrictions of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: PolicyRestrictionListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + )) { + yield* page; + } + } + + /** + * Gets all policy restrictions of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the policy restriction in the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + options?: PolicyRestrictionGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, policyRestrictionId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Get the policy restriction of the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + options?: PolicyRestrictionGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, policyRestrictionId, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates the policy restriction configuration of the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param parameters The policy restriction to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + parameters: PolicyRestrictionContract, + options?: PolicyRestrictionCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + policyRestrictionId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the policy restriction configuration of the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters The policy restriction to apply. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + ifMatch: string, + parameters: PolicyRestrictionUpdateContract, + options?: PolicyRestrictionUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + policyRestrictionId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes the policy restriction configuration of the Api Management Service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + options?: PolicyRestrictionDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, policyRestrictionId, options }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: PolicyRestrictionListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyRestrictions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyRestrictionCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyRestrictions/{policyRestrictionId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.PolicyRestrictionGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyRestrictionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyRestrictions/{policyRestrictionId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyRestrictionContract, + headersMapper: Mappers.PolicyRestrictionGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyRestrictionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyRestrictions/{policyRestrictionId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyRestrictionContract, + headersMapper: Mappers.PolicyRestrictionCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.PolicyRestrictionContract, + headersMapper: Mappers.PolicyRestrictionCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters65, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyRestrictionId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyRestrictions/{policyRestrictionId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.PolicyRestrictionContract, + headersMapper: Mappers.PolicyRestrictionUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters66, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyRestrictionId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyRestrictions/{policyRestrictionId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyRestrictionId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyRestrictionCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policyRestrictionValidations.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policyRestrictionValidations.ts new file mode 100644 index 000000000000..5ca7ac842d9f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policyRestrictionValidations.ts @@ -0,0 +1,161 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PolicyRestrictionValidations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + PolicyRestrictionValidationsByServiceOptionalParams, + PolicyRestrictionValidationsByServiceResponse, +} from "../models"; + +/** Class containing PolicyRestrictionValidations operations. */ +export class PolicyRestrictionValidationsImpl + implements PolicyRestrictionValidations +{ + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class PolicyRestrictionValidations class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Validate all policies of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + async beginByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionValidationsByServiceOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + PolicyRestrictionValidationsByServiceResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, options }, + spec: byServiceOperationSpec, + }); + const poller = await createHttpPoller< + PolicyRestrictionValidationsByServiceResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Validate all policies of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + async beginByServiceAndWait( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionValidationsByServiceOptionalParams, + ): Promise { + const poller = await this.beginByService( + resourceGroupName, + serviceName, + options, + ); + return poller.pollUntilDone(); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const byServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/validatePolicies", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.OperationResultContract, + }, + 201: { + bodyMapper: Mappers.OperationResultContract, + }, + 202: { + bodyMapper: Mappers.OperationResultContract, + }, + 204: { + bodyMapper: Mappers.OperationResultContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts b/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts index 4c13b4be9ea9..14adefec1a28 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts @@ -6,25 +6,30 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { PortalConfig } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; import { + PortalConfigContract, + PortalConfigListByServiceNextOptionalParams, PortalConfigListByServiceOptionalParams, PortalConfigListByServiceResponse, PortalConfigGetEntityTagOptionalParams, PortalConfigGetEntityTagResponse, PortalConfigGetOptionalParams, PortalConfigGetResponse, - PortalConfigContract, PortalConfigUpdateOptionalParams, PortalConfigUpdateResponse, PortalConfigCreateOrUpdateOptionalParams, - PortalConfigCreateOrUpdateResponse + PortalConfigCreateOrUpdateResponse, + PortalConfigListByServiceNextResponse, } from "../models"; +/// /** Class containing PortalConfig operations. */ export class PortalConfigImpl implements PortalConfig { private readonly client: ApiManagementClient; @@ -43,14 +48,98 @@ export class PortalConfigImpl implements PortalConfig { * @param serviceName The name of the API Management service. * @param options The options parameters. */ - listByService( + public listByService( + resourceGroupName: string, + serviceName: string, + options?: PortalConfigListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( resourceGroupName: string, serviceName: string, - options?: PortalConfigListByServiceOptionalParams + options?: PortalConfigListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: PortalConfigListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + options?: PortalConfigListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + )) { + yield* page; + } + } + + /** + * Lists the developer portal configurations. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + options?: PortalConfigListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -65,11 +154,11 @@ export class PortalConfigImpl implements PortalConfig { resourceGroupName: string, serviceName: string, portalConfigId: string, - options?: PortalConfigGetEntityTagOptionalParams + options?: PortalConfigGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, portalConfigId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -84,11 +173,11 @@ export class PortalConfigImpl implements PortalConfig { resourceGroupName: string, serviceName: string, portalConfigId: string, - options?: PortalConfigGetOptionalParams + options?: PortalConfigGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, portalConfigId, options }, - getOperationSpec + getOperationSpec, ); } @@ -108,7 +197,7 @@ export class PortalConfigImpl implements PortalConfig { portalConfigId: string, ifMatch: string, parameters: PortalConfigContract, - options?: PortalConfigUpdateOptionalParams + options?: PortalConfigUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -117,9 +206,9 @@ export class PortalConfigImpl implements PortalConfig { portalConfigId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -139,7 +228,7 @@ export class PortalConfigImpl implements PortalConfig { portalConfigId: string, ifMatch: string, parameters: PortalConfigContract, - options?: PortalConfigCreateOrUpdateOptionalParams + options?: PortalConfigCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -148,9 +237,28 @@ export class PortalConfigImpl implements PortalConfig { portalConfigId, ifMatch, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: PortalConfigListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec, ); } } @@ -158,38 +266,36 @@ export class PortalConfigImpl implements PortalConfig { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PortalConfigCollection + bodyMapper: Mappers.PortalConfigCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.PortalConfigGetEntityTagHeaders + headersMapper: Mappers.PortalConfigGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -197,23 +303,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.portalConfigId + Parameters.portalConfigId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PortalConfigContract, - headersMapper: Mappers.PortalConfigGetHeaders + headersMapper: Mappers.PortalConfigGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -221,66 +326,85 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.portalConfigId + Parameters.portalConfigId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.PortalConfigContract + bodyMapper: Mappers.PortalConfigContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters58, + requestBody: Parameters.parameters67, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.portalConfigId + Parameters.portalConfigId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PortalConfigContract + bodyMapper: Mappers.PortalConfigContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters58, + requestBody: Parameters.parameters67, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.portalConfigId + Parameters.portalConfigId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PortalConfigCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts index 06c82783efdc..8c3dea0a6ab0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts @@ -16,7 +16,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,7 +32,7 @@ import { PortalRevisionCreateOrUpdateResponse, PortalRevisionUpdateOptionalParams, PortalRevisionUpdateResponse, - PortalRevisionListByServiceNextResponse + PortalRevisionListByServiceNextResponse, } from "../models"; /// @@ -57,12 +57,12 @@ export class PortalRevisionImpl implements PortalRevision { public listByService( resourceGroupName: string, serviceName: string, - options?: PortalRevisionListByServiceOptionalParams + options?: PortalRevisionListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -79,9 +79,9 @@ export class PortalRevisionImpl implements PortalRevision { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -89,7 +89,7 @@ export class PortalRevisionImpl implements PortalRevision { resourceGroupName: string, serviceName: string, options?: PortalRevisionListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PortalRevisionListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -97,7 +97,7 @@ export class PortalRevisionImpl implements PortalRevision { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -109,7 +109,7 @@ export class PortalRevisionImpl implements PortalRevision { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -121,12 +121,12 @@ export class PortalRevisionImpl implements PortalRevision { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: PortalRevisionListByServiceOptionalParams + options?: PortalRevisionListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -141,11 +141,11 @@ export class PortalRevisionImpl implements PortalRevision { private _listByService( resourceGroupName: string, serviceName: string, - options?: PortalRevisionListByServiceOptionalParams + options?: PortalRevisionListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -161,11 +161,11 @@ export class PortalRevisionImpl implements PortalRevision { resourceGroupName: string, serviceName: string, portalRevisionId: string, - options?: PortalRevisionGetEntityTagOptionalParams + options?: PortalRevisionGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, portalRevisionId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -181,11 +181,11 @@ export class PortalRevisionImpl implements PortalRevision { resourceGroupName: string, serviceName: string, portalRevisionId: string, - options?: PortalRevisionGetOptionalParams + options?: PortalRevisionGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, portalRevisionId, options }, - getOperationSpec + getOperationSpec, ); } @@ -204,7 +204,7 @@ export class PortalRevisionImpl implements PortalRevision { serviceName: string, portalRevisionId: string, parameters: PortalRevisionContract, - options?: PortalRevisionCreateOrUpdateOptionalParams + options?: PortalRevisionCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -213,21 +213,20 @@ export class PortalRevisionImpl implements PortalRevision { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -236,8 +235,8 @@ export class PortalRevisionImpl implements PortalRevision { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -245,8 +244,8 @@ export class PortalRevisionImpl implements PortalRevision { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -257,9 +256,9 @@ export class PortalRevisionImpl implements PortalRevision { serviceName, portalRevisionId, parameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< PortalRevisionCreateOrUpdateResponse, @@ -267,7 +266,7 @@ export class PortalRevisionImpl implements PortalRevision { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -288,14 +287,14 @@ export class PortalRevisionImpl implements PortalRevision { serviceName: string, portalRevisionId: string, parameters: PortalRevisionContract, - options?: PortalRevisionCreateOrUpdateOptionalParams + options?: PortalRevisionCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, portalRevisionId, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -317,7 +316,7 @@ export class PortalRevisionImpl implements PortalRevision { portalRevisionId: string, ifMatch: string, parameters: PortalRevisionContract, - options?: PortalRevisionUpdateOptionalParams + options?: PortalRevisionUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -326,21 +325,20 @@ export class PortalRevisionImpl implements PortalRevision { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -349,8 +347,8 @@ export class PortalRevisionImpl implements PortalRevision { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -358,8 +356,8 @@ export class PortalRevisionImpl implements PortalRevision { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -371,9 +369,9 @@ export class PortalRevisionImpl implements PortalRevision { portalRevisionId, ifMatch, parameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< PortalRevisionUpdateResponse, @@ -381,7 +379,7 @@ export class PortalRevisionImpl implements PortalRevision { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -404,7 +402,7 @@ export class PortalRevisionImpl implements PortalRevision { portalRevisionId: string, ifMatch: string, parameters: PortalRevisionContract, - options?: PortalRevisionUpdateOptionalParams + options?: PortalRevisionUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -412,7 +410,7 @@ export class PortalRevisionImpl implements PortalRevision { portalRevisionId, ifMatch, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -428,11 +426,11 @@ export class PortalRevisionImpl implements PortalRevision { resourceGroupName: string, serviceName: string, nextLink: string, - options?: PortalRevisionListByServiceNextOptionalParams + options?: PortalRevisionListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -440,43 +438,41 @@ export class PortalRevisionImpl implements PortalRevision { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PortalRevisionCollection + bodyMapper: Mappers.PortalRevisionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.PortalRevisionGetEntityTagHeaders + headersMapper: Mappers.PortalRevisionGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -484,23 +480,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.portalRevisionId + Parameters.portalRevisionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionGetHeaders + headersMapper: Mappers.PortalRevisionGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -508,109 +503,107 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.portalRevisionId + Parameters.portalRevisionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionCreateOrUpdateHeaders + headersMapper: Mappers.PortalRevisionCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionCreateOrUpdateHeaders + headersMapper: Mappers.PortalRevisionCreateOrUpdateHeaders, }, 202: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionCreateOrUpdateHeaders + headersMapper: Mappers.PortalRevisionCreateOrUpdateHeaders, }, 204: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionCreateOrUpdateHeaders + headersMapper: Mappers.PortalRevisionCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters59, + requestBody: Parameters.parameters68, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.portalRevisionId + Parameters.portalRevisionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionUpdateHeaders + headersMapper: Mappers.PortalRevisionUpdateHeaders, }, 201: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionUpdateHeaders + headersMapper: Mappers.PortalRevisionUpdateHeaders, }, 202: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionUpdateHeaders + headersMapper: Mappers.PortalRevisionUpdateHeaders, }, 204: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionUpdateHeaders + headersMapper: Mappers.PortalRevisionUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters59, + requestBody: Parameters.parameters68, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.portalRevisionId + Parameters.portalRevisionId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PortalRevisionCollection + bodyMapper: Mappers.PortalRevisionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/portalSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/portalSettings.ts index da437e49d95b..cfce53e2cbc8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/portalSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/portalSettings.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; import { PortalSettingsListByServiceOptionalParams, - PortalSettingsListByServiceResponse + PortalSettingsListByServiceResponse, } from "../models"; /** Class containing PortalSettings operations. */ @@ -37,11 +37,11 @@ export class PortalSettingsImpl implements PortalSettings { listByService( resourceGroupName: string, serviceName: string, - options?: PortalSettingsListByServiceOptionalParams + options?: PortalSettingsListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } } @@ -49,24 +49,23 @@ export class PortalSettingsImpl implements PortalSettings { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PortalSettingsCollection + bodyMapper: Mappers.PortalSettingsCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts index e8e90e2250a0..1f916bc3350b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts @@ -15,7 +15,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -31,13 +31,14 @@ import { PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams, PrivateEndpointConnectionListPrivateLinkResourcesResponse, PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams, - PrivateEndpointConnectionGetPrivateLinkResourceResponse + PrivateEndpointConnectionGetPrivateLinkResourceResponse, } from "../models"; /// /** Class containing PrivateEndpointConnectionOperations operations. */ export class PrivateEndpointConnectionOperationsImpl - implements PrivateEndpointConnectionOperations { + implements PrivateEndpointConnectionOperations +{ private readonly client: ApiManagementClient; /** @@ -57,12 +58,12 @@ export class PrivateEndpointConnectionOperationsImpl public listByService( resourceGroupName: string, serviceName: string, - options?: PrivateEndpointConnectionListByServiceOptionalParams + options?: PrivateEndpointConnectionListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -79,9 +80,9 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -89,7 +90,7 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, serviceName: string, options?: PrivateEndpointConnectionListByServiceOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateEndpointConnectionListByServiceResponse; result = await this._listByService(resourceGroupName, serviceName, options); @@ -99,12 +100,12 @@ export class PrivateEndpointConnectionOperationsImpl private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: PrivateEndpointConnectionListByServiceOptionalParams + options?: PrivateEndpointConnectionListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -119,11 +120,11 @@ export class PrivateEndpointConnectionOperationsImpl private _listByService( resourceGroupName: string, serviceName: string, - options?: PrivateEndpointConnectionListByServiceOptionalParams + options?: PrivateEndpointConnectionListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -138,16 +139,16 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionGetByNameOptionalParams + options?: PrivateEndpointConnectionGetByNameOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, privateEndpointConnectionName, - options + options, }, - getByNameOperationSpec + getByNameOperationSpec, ); } @@ -164,7 +165,7 @@ export class PrivateEndpointConnectionOperationsImpl serviceName: string, privateEndpointConnectionName: string, privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, - options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams + options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -173,21 +174,20 @@ export class PrivateEndpointConnectionOperationsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -196,8 +196,8 @@ export class PrivateEndpointConnectionOperationsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -205,8 +205,8 @@ export class PrivateEndpointConnectionOperationsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -217,16 +217,16 @@ export class PrivateEndpointConnectionOperationsImpl serviceName, privateEndpointConnectionName, privateEndpointConnectionRequest, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< PrivateEndpointConnectionCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -245,14 +245,14 @@ export class PrivateEndpointConnectionOperationsImpl serviceName: string, privateEndpointConnectionName: string, privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, - options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams + options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, privateEndpointConnectionName, privateEndpointConnectionRequest, - options + options, ); return poller.pollUntilDone(); } @@ -268,25 +268,24 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionDeleteOptionalParams + options?: PrivateEndpointConnectionDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -295,8 +294,8 @@ export class PrivateEndpointConnectionOperationsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -304,8 +303,8 @@ export class PrivateEndpointConnectionOperationsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -315,13 +314,13 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName, serviceName, privateEndpointConnectionName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -338,13 +337,13 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionDeleteOptionalParams + options?: PrivateEndpointConnectionDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, privateEndpointConnectionName, - options + options, ); return poller.pollUntilDone(); } @@ -358,11 +357,11 @@ export class PrivateEndpointConnectionOperationsImpl listPrivateLinkResources( resourceGroupName: string, serviceName: string, - options?: PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams + options?: PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listPrivateLinkResourcesOperationSpec + listPrivateLinkResourcesOperationSpec, ); } @@ -377,11 +376,11 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, serviceName: string, privateLinkSubResourceName: string, - options?: PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams + options?: PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, privateLinkSubResourceName, options }, - getPrivateLinkResourceOperationSpec + getPrivateLinkResourceOperationSpec, ); } } @@ -389,38 +388,36 @@ export class PrivateEndpointConnectionOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult + bodyMapper: Mappers.PrivateEndpointConnectionListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByNameOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -428,31 +425,30 @@ const getByNameOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 201: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 202: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 204: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.privateEndpointConnectionRequest, queryParameters: [Parameters.apiVersion], @@ -461,15 +457,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -477,8 +472,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -486,44 +481,42 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listPrivateLinkResourcesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResourceListResult + bodyMapper: Mappers.PrivateLinkResourceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getPrivateLinkResourceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateLinkResources/{privateLinkSubResourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateLinkResources/{privateLinkSubResourceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResource + bodyMapper: Mappers.PrivateLinkResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -531,8 +524,8 @@ const getPrivateLinkResourceOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.privateLinkSubResourceName + Parameters.privateLinkSubResourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/product.ts b/sdk/apimanagement/arm-apimanagement/src/operations/product.ts index cd7bdd87c103..a066165fbc37 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/product.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/product.ts @@ -33,7 +33,7 @@ import { ProductUpdateResponse, ProductDeleteOptionalParams, ProductListByServiceNextResponse, - ProductListByTagsNextResponse + ProductListByTagsNextResponse, } from "../models"; /// @@ -58,12 +58,12 @@ export class ProductImpl implements Product { public listByService( resourceGroupName: string, serviceName: string, - options?: ProductListByServiceOptionalParams + options?: ProductListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class ProductImpl implements Product { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -90,7 +90,7 @@ export class ProductImpl implements Product { resourceGroupName: string, serviceName: string, options?: ProductListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProductListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class ProductImpl implements Product { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -110,7 +110,7 @@ export class ProductImpl implements Product { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -122,12 +122,12 @@ export class ProductImpl implements Product { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: ProductListByServiceOptionalParams + options?: ProductListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -142,12 +142,12 @@ export class ProductImpl implements Product { public listByTags( resourceGroupName: string, serviceName: string, - options?: ProductListByTagsOptionalParams + options?: ProductListByTagsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByTagsPagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -164,9 +164,9 @@ export class ProductImpl implements Product { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -174,7 +174,7 @@ export class ProductImpl implements Product { resourceGroupName: string, serviceName: string, options?: ProductListByTagsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProductListByTagsResponse; let continuationToken = settings?.continuationToken; @@ -190,7 +190,7 @@ export class ProductImpl implements Product { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -202,12 +202,12 @@ export class ProductImpl implements Product { private async *listByTagsPagingAll( resourceGroupName: string, serviceName: string, - options?: ProductListByTagsOptionalParams + options?: ProductListByTagsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByTagsPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -222,11 +222,11 @@ export class ProductImpl implements Product { private _listByService( resourceGroupName: string, serviceName: string, - options?: ProductListByServiceOptionalParams + options?: ProductListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -241,11 +241,11 @@ export class ProductImpl implements Product { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductGetEntityTagOptionalParams + options?: ProductGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -260,11 +260,11 @@ export class ProductImpl implements Product { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductGetOptionalParams + options?: ProductGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - getOperationSpec + getOperationSpec, ); } @@ -281,11 +281,11 @@ export class ProductImpl implements Product { serviceName: string, productId: string, parameters: ProductContract, - options?: ProductCreateOrUpdateOptionalParams + options?: ProductCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -305,7 +305,7 @@ export class ProductImpl implements Product { productId: string, ifMatch: string, parameters: ProductUpdateParameters, - options?: ProductUpdateOptionalParams + options?: ProductUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -314,9 +314,9 @@ export class ProductImpl implements Product { productId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -334,11 +334,11 @@ export class ProductImpl implements Product { serviceName: string, productId: string, ifMatch: string, - options?: ProductDeleteOptionalParams + options?: ProductDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -351,11 +351,11 @@ export class ProductImpl implements Product { private _listByTags( resourceGroupName: string, serviceName: string, - options?: ProductListByTagsOptionalParams + options?: ProductListByTagsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByTagsOperationSpec + listByTagsOperationSpec, ); } @@ -370,11 +370,11 @@ export class ProductImpl implements Product { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ProductListByServiceNextOptionalParams + options?: ProductListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } @@ -389,11 +389,11 @@ export class ProductImpl implements Product { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ProductListByTagsNextOptionalParams + options?: ProductListByTagsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByTagsNextOperationSpec + listByTagsNextOperationSpec, ); } } @@ -401,45 +401,43 @@ export class ProductImpl implements Product { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProductCollection + bodyMapper: Mappers.ProductCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, Parameters.tags, - Parameters.apiVersion, - Parameters.expandGroups + Parameters.expandGroups, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ProductGetEntityTagHeaders + headersMapper: Mappers.ProductGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -447,23 +445,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ProductContract, - headersMapper: Mappers.ProductGetHeaders + headersMapper: Mappers.ProductGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -471,85 +468,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ProductContract, - headersMapper: Mappers.ProductCreateOrUpdateHeaders + headersMapper: Mappers.ProductCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.ProductContract, - headersMapper: Mappers.ProductCreateOrUpdateHeaders + headersMapper: Mappers.ProductCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters63, + requestBody: Parameters.parameters72, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.ProductContract, - headersMapper: Mappers.ProductUpdateHeaders + headersMapper: Mappers.ProductUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters64, + requestBody: Parameters.parameters73, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.deleteSubscriptions], urlParameters: [ @@ -557,78 +551,77 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByTagsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/productsByTags", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/productsByTags", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.TagResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.includeNotTaggedProducts + Parameters.includeNotTaggedProducts, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProductCollection + bodyMapper: Mappers.ProductCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTagsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.TagResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts index 46a14b1d5042..045f6fb2e626 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts @@ -23,7 +23,7 @@ import { ProductApiCreateOrUpdateOptionalParams, ProductApiCreateOrUpdateResponse, ProductApiDeleteOptionalParams, - ProductApiListByProductNextResponse + ProductApiListByProductNextResponse, } from "../models"; /// @@ -50,13 +50,13 @@ export class ProductApiImpl implements ProductApi { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductApiListByProductOptionalParams + options?: ProductApiListByProductOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByProductPagingAll( resourceGroupName, serviceName, productId, - options + options, ); return { next() { @@ -74,9 +74,9 @@ export class ProductApiImpl implements ProductApi { serviceName, productId, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class ProductApiImpl implements ProductApi { serviceName: string, productId: string, options?: ProductApiListByProductOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProductApiListByProductResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class ProductApiImpl implements ProductApi { resourceGroupName, serviceName, productId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -107,7 +107,7 @@ export class ProductApiImpl implements ProductApi { serviceName, productId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,13 +120,13 @@ export class ProductApiImpl implements ProductApi { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductApiListByProductOptionalParams + options?: ProductApiListByProductOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByProductPagingPage( resourceGroupName, serviceName, productId, - options + options, )) { yield* page; } @@ -143,11 +143,11 @@ export class ProductApiImpl implements ProductApi { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductApiListByProductOptionalParams + options?: ProductApiListByProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - listByProductOperationSpec + listByProductOperationSpec, ); } @@ -165,11 +165,11 @@ export class ProductApiImpl implements ProductApi { serviceName: string, productId: string, apiId: string, - options?: ProductApiCheckEntityExistsOptionalParams + options?: ProductApiCheckEntityExistsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, apiId, options }, - checkEntityExistsOperationSpec + checkEntityExistsOperationSpec, ); } @@ -187,11 +187,11 @@ export class ProductApiImpl implements ProductApi { serviceName: string, productId: string, apiId: string, - options?: ProductApiCreateOrUpdateOptionalParams + options?: ProductApiCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, apiId, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -209,11 +209,11 @@ export class ProductApiImpl implements ProductApi { serviceName: string, productId: string, apiId: string, - options?: ProductApiDeleteOptionalParams + options?: ProductApiDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, apiId, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -230,11 +230,11 @@ export class ProductApiImpl implements ProductApi { serviceName: string, productId: string, nextLink: string, - options?: ProductApiListByProductNextOptionalParams + options?: ProductApiListByProductNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, nextLink, options }, - listByProductNextOperationSpec + listByProductNextOperationSpec, ); } } @@ -242,42 +242,40 @@ export class ProductApiImpl implements ProductApi { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiCollection + bodyMapper: Mappers.ApiCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkEntityExistsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", httpMethod: "HEAD", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -286,25 +284,24 @@ const checkEntityExistsOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApiContract + bodyMapper: Mappers.ApiContract, }, 201: { - bodyMapper: Mappers.ApiContract + bodyMapper: Mappers.ApiContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -313,21 +310,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -336,21 +332,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByProductNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiCollection + bodyMapper: Mappers.ApiCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -358,8 +354,8 @@ const listByProductNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productApiLink.ts new file mode 100644 index 000000000000..aa48911136ba --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productApiLink.ts @@ -0,0 +1,375 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ProductApiLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ProductApiLinkContract, + ProductApiLinkListByProductNextOptionalParams, + ProductApiLinkListByProductOptionalParams, + ProductApiLinkListByProductResponse, + ProductApiLinkGetOptionalParams, + ProductApiLinkGetResponse, + ProductApiLinkCreateOrUpdateOptionalParams, + ProductApiLinkCreateOrUpdateResponse, + ProductApiLinkDeleteOptionalParams, + ProductApiLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing ProductApiLink operations. */ +export class ProductApiLinkImpl implements ProductApiLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ProductApiLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the API links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductApiLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + productId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + productId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductApiLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ProductApiLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + productId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + productId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductApiLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + productId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the API links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductApiLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the API link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + productId: string, + apiLinkId: string, + options?: ProductApiLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, apiLinkId, options }, + getOperationSpec, + ); + } + + /** + * Adds an API to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + productId: string, + apiLinkId: string, + parameters: ProductApiLinkContract, + options?: ProductApiLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + apiLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified API from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + productId: string, + apiLinkId: string, + options?: ProductApiLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, apiLinkId, options }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + productId: string, + nextLink: string, + options?: ProductApiLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, nextLink, options }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks/{apiLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkContract, + headersMapper: Mappers.ProductApiLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.apiLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks/{apiLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkContract, + }, + 201: { + bodyMapper: Mappers.ProductApiLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters74, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.apiLinkId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks/{apiLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.apiLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.productId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productGroup.ts index 5425cb6d2633..8286cdfdff55 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productGroup.ts @@ -23,7 +23,7 @@ import { ProductGroupCreateOrUpdateOptionalParams, ProductGroupCreateOrUpdateResponse, ProductGroupDeleteOptionalParams, - ProductGroupListByProductNextResponse + ProductGroupListByProductNextResponse, } from "../models"; /// @@ -50,13 +50,13 @@ export class ProductGroupImpl implements ProductGroup { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductGroupListByProductOptionalParams + options?: ProductGroupListByProductOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByProductPagingAll( resourceGroupName, serviceName, productId, - options + options, ); return { next() { @@ -74,9 +74,9 @@ export class ProductGroupImpl implements ProductGroup { serviceName, productId, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class ProductGroupImpl implements ProductGroup { serviceName: string, productId: string, options?: ProductGroupListByProductOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProductGroupListByProductResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class ProductGroupImpl implements ProductGroup { resourceGroupName, serviceName, productId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -107,7 +107,7 @@ export class ProductGroupImpl implements ProductGroup { serviceName, productId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,13 +120,13 @@ export class ProductGroupImpl implements ProductGroup { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductGroupListByProductOptionalParams + options?: ProductGroupListByProductOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByProductPagingPage( resourceGroupName, serviceName, productId, - options + options, )) { yield* page; } @@ -143,11 +143,11 @@ export class ProductGroupImpl implements ProductGroup { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductGroupListByProductOptionalParams + options?: ProductGroupListByProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - listByProductOperationSpec + listByProductOperationSpec, ); } @@ -164,11 +164,11 @@ export class ProductGroupImpl implements ProductGroup { serviceName: string, productId: string, groupId: string, - options?: ProductGroupCheckEntityExistsOptionalParams + options?: ProductGroupCheckEntityExistsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, groupId, options }, - checkEntityExistsOperationSpec + checkEntityExistsOperationSpec, ); } @@ -185,11 +185,11 @@ export class ProductGroupImpl implements ProductGroup { serviceName: string, productId: string, groupId: string, - options?: ProductGroupCreateOrUpdateOptionalParams + options?: ProductGroupCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, groupId, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -206,11 +206,11 @@ export class ProductGroupImpl implements ProductGroup { serviceName: string, productId: string, groupId: string, - options?: ProductGroupDeleteOptionalParams + options?: ProductGroupDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, groupId, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -227,11 +227,11 @@ export class ProductGroupImpl implements ProductGroup { serviceName: string, productId: string, nextLink: string, - options?: ProductGroupListByProductNextOptionalParams + options?: ProductGroupListByProductNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, nextLink, options }, - listByProductNextOperationSpec + listByProductNextOperationSpec, ); } } @@ -239,42 +239,40 @@ export class ProductGroupImpl implements ProductGroup { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GroupCollection + bodyMapper: Mappers.GroupCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkEntityExistsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", httpMethod: "HEAD", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -283,25 +281,24 @@ const checkEntityExistsOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.productId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.GroupContract + bodyMapper: Mappers.GroupContract, }, 201: { - bodyMapper: Mappers.GroupContract + bodyMapper: Mappers.GroupContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -310,21 +307,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.productId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -333,21 +329,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.productId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByProductNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GroupCollection + bodyMapper: Mappers.GroupCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -355,8 +351,8 @@ const listByProductNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productGroupLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productGroupLink.ts new file mode 100644 index 000000000000..9ff8726087cf --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productGroupLink.ts @@ -0,0 +1,375 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ProductGroupLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ProductGroupLinkContract, + ProductGroupLinkListByProductNextOptionalParams, + ProductGroupLinkListByProductOptionalParams, + ProductGroupLinkListByProductResponse, + ProductGroupLinkGetOptionalParams, + ProductGroupLinkGetResponse, + ProductGroupLinkCreateOrUpdateOptionalParams, + ProductGroupLinkCreateOrUpdateResponse, + ProductGroupLinkDeleteOptionalParams, + ProductGroupLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing ProductGroupLink operations. */ +export class ProductGroupLinkImpl implements ProductGroupLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ProductGroupLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the group links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductGroupLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + productId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + productId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductGroupLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ProductGroupLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + productId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + productId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductGroupLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + productId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the group links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductGroupLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the group link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + productId: string, + groupLinkId: string, + options?: ProductGroupLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, groupLinkId, options }, + getOperationSpec, + ); + } + + /** + * Adds a group to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + productId: string, + groupLinkId: string, + parameters: ProductGroupLinkContract, + options?: ProductGroupLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + groupLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified group from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + productId: string, + groupLinkId: string, + options?: ProductGroupLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, groupLinkId, options }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + productId: string, + nextLink: string, + options?: ProductGroupLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, nextLink, options }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groupLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groupLinks/{groupLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkContract, + headersMapper: Mappers.ProductGroupLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.groupLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groupLinks/{groupLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkContract, + }, + 201: { + bodyMapper: Mappers.ProductGroupLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters75, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.groupLinkId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groupLinks/{groupLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.groupLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.productId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productPolicy.ts index 265d5f5708b5..a2117e2344a8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productPolicy.ts @@ -6,12 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { ProductPolicy } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; import { + PolicyContract, + ProductPolicyListByProductNextOptionalParams, ProductPolicyListByProductOptionalParams, ProductPolicyListByProductResponse, PolicyIdName, @@ -19,12 +23,13 @@ import { ProductPolicyGetEntityTagResponse, ProductPolicyGetOptionalParams, ProductPolicyGetResponse, - PolicyContract, ProductPolicyCreateOrUpdateOptionalParams, ProductPolicyCreateOrUpdateResponse, - ProductPolicyDeleteOptionalParams + ProductPolicyDeleteOptionalParams, + ProductPolicyListByProductNextResponse, } from "../models"; +/// /** Class containing ProductPolicy operations. */ export class ProductPolicyImpl implements ProductPolicy { private readonly client: ApiManagementClient; @@ -44,15 +49,108 @@ export class ProductPolicyImpl implements ProductPolicy { * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. */ - listByProduct( + public listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductPolicyListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + productId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + productId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductPolicyListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ProductPolicyListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + productId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + productId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductPolicyListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + productId, + options, + )) { + yield* page; + } + } + + /** + * Get the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( resourceGroupName: string, serviceName: string, productId: string, - options?: ProductPolicyListByProductOptionalParams + options?: ProductPolicyListByProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - listByProductOperationSpec + listByProductOperationSpec, ); } @@ -69,11 +167,11 @@ export class ProductPolicyImpl implements ProductPolicy { serviceName: string, productId: string, policyId: PolicyIdName, - options?: ProductPolicyGetEntityTagOptionalParams + options?: ProductPolicyGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, policyId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -90,11 +188,11 @@ export class ProductPolicyImpl implements ProductPolicy { serviceName: string, productId: string, policyId: PolicyIdName, - options?: ProductPolicyGetOptionalParams + options?: ProductPolicyGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, policyId, options }, - getOperationSpec + getOperationSpec, ); } @@ -113,7 +211,7 @@ export class ProductPolicyImpl implements ProductPolicy { productId: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: ProductPolicyCreateOrUpdateOptionalParams + options?: ProductPolicyCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -122,9 +220,9 @@ export class ProductPolicyImpl implements ProductPolicy { productId, policyId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -144,11 +242,32 @@ export class ProductPolicyImpl implements ProductPolicy { productId: string, policyId: PolicyIdName, ifMatch: string, - options?: ProductPolicyDeleteOptionalParams + options?: ProductPolicyDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, policyId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + productId: string, + nextLink: string, + options?: ProductPolicyListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, nextLink, options }, + listByProductNextOperationSpec, ); } } @@ -156,16 +275,15 @@ export class ProductPolicyImpl implements ProductPolicy { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyCollection + bodyMapper: Mappers.PolicyCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -173,22 +291,21 @@ const listByProductOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ProductPolicyGetEntityTagHeaders + headersMapper: Mappers.ProductPolicyGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -197,23 +314,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.policyId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ProductPolicyGetHeaders + headersMapper: Mappers.ProductPolicyGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.format], urlParameters: [ @@ -222,29 +338,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.policyId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ProductPolicyCreateOrUpdateHeaders + headersMapper: Mappers.ProductPolicyCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ProductPolicyCreateOrUpdateHeaders + headersMapper: Mappers.ProductPolicyCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -252,26 +367,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.policyId, - Parameters.productId + Parameters.productId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -280,8 +394,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.policyId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.productId, + ], + headerParameters: [Parameters.accept], + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productSubscriptions.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productSubscriptions.ts index b602e9ea6996..5270414b4860 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productSubscriptions.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productSubscriptions.ts @@ -18,7 +18,7 @@ import { ProductSubscriptionsListNextOptionalParams, ProductSubscriptionsListOptionalParams, ProductSubscriptionsListResponse, - ProductSubscriptionsListNextResponse + ProductSubscriptionsListNextResponse, } from "../models"; /// @@ -45,13 +45,13 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductSubscriptionsListOptionalParams + options?: ProductSubscriptionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, productId, - options + options, ); return { next() { @@ -69,9 +69,9 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { serviceName, productId, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { serviceName: string, productId: string, options?: ProductSubscriptionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProductSubscriptionsListResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { resourceGroupName, serviceName, productId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -102,7 +102,7 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { serviceName, productId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,13 +115,13 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductSubscriptionsListOptionalParams + options?: ProductSubscriptionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, productId, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductSubscriptionsListOptionalParams + options?: ProductSubscriptionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - listOperationSpec + listOperationSpec, ); } @@ -159,11 +159,11 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { serviceName: string, productId: string, nextLink: string, - options?: ProductSubscriptionsListNextOptionalParams + options?: ProductSubscriptionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -171,43 +171,42 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/subscriptions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/subscriptions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionCollection + bodyMapper: Mappers.SubscriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionCollection + bodyMapper: Mappers.SubscriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -215,8 +214,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productWiki.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productWiki.ts index 48c1fc393861..5058a99f9cea 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productWiki.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productWiki.ts @@ -22,7 +22,7 @@ import { WikiUpdateContract, ProductWikiUpdateOptionalParams, ProductWikiUpdateResponse, - ProductWikiDeleteOptionalParams + ProductWikiDeleteOptionalParams, } from "../models"; /** Class containing ProductWiki operations. */ @@ -48,11 +48,11 @@ export class ProductWikiImpl implements ProductWiki { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductWikiGetEntityTagOptionalParams + options?: ProductWikiGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -67,11 +67,11 @@ export class ProductWikiImpl implements ProductWiki { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductWikiGetOptionalParams + options?: ProductWikiGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - getOperationSpec + getOperationSpec, ); } @@ -88,11 +88,11 @@ export class ProductWikiImpl implements ProductWiki { serviceName: string, productId: string, parameters: WikiContract, - options?: ProductWikiCreateOrUpdateOptionalParams + options?: ProductWikiCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -112,7 +112,7 @@ export class ProductWikiImpl implements ProductWiki { productId: string, ifMatch: string, parameters: WikiUpdateContract, - options?: ProductWikiUpdateOptionalParams + options?: ProductWikiUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -121,9 +121,9 @@ export class ProductWikiImpl implements ProductWiki { productId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -141,11 +141,11 @@ export class ProductWikiImpl implements ProductWiki { serviceName: string, productId: string, ifMatch: string, - options?: ProductWikiDeleteOptionalParams + options?: ProductWikiDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -153,16 +153,15 @@ export class ProductWikiImpl implements ProductWiki { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ProductWikiGetEntityTagHeaders + headersMapper: Mappers.ProductWikiGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -170,23 +169,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.WikiContract, - headersMapper: Mappers.ProductWikiGetHeaders + headersMapper: Mappers.ProductWikiGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -194,85 +192,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.WikiContract, - headersMapper: Mappers.ProductWikiCreateOrUpdateHeaders + headersMapper: Mappers.ProductWikiCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.WikiContract, - headersMapper: Mappers.ProductWikiCreateOrUpdateHeaders + headersMapper: Mappers.ProductWikiCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters16, + requestBody: Parameters.parameters18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.WikiContract, - headersMapper: Mappers.ProductWikiUpdateHeaders + headersMapper: Mappers.ProductWikiUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters17, + requestBody: Parameters.parameters19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -280,8 +275,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productWikis.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productWikis.ts index eb425ad22260..3491fa42090a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productWikis.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productWikis.ts @@ -18,7 +18,7 @@ import { ProductWikisListNextOptionalParams, ProductWikisListOptionalParams, ProductWikisListResponse, - ProductWikisListNextResponse + ProductWikisListNextResponse, } from "../models"; /// @@ -45,13 +45,13 @@ export class ProductWikisImpl implements ProductWikis { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductWikisListOptionalParams + options?: ProductWikisListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, productId, - options + options, ); return { next() { @@ -69,9 +69,9 @@ export class ProductWikisImpl implements ProductWikis { serviceName, productId, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class ProductWikisImpl implements ProductWikis { serviceName: string, productId: string, options?: ProductWikisListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProductWikisListResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class ProductWikisImpl implements ProductWikis { resourceGroupName, serviceName, productId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -102,7 +102,7 @@ export class ProductWikisImpl implements ProductWikis { serviceName, productId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,13 +115,13 @@ export class ProductWikisImpl implements ProductWikis { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductWikisListOptionalParams + options?: ProductWikisListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, productId, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class ProductWikisImpl implements ProductWikis { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductWikisListOptionalParams + options?: ProductWikisListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - listOperationSpec + listOperationSpec, ); } @@ -159,11 +159,11 @@ export class ProductWikisImpl implements ProductWikis { serviceName: string, productId: string, nextLink: string, - options?: ProductWikisListNextOptionalParams + options?: ProductWikisListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -171,33 +171,32 @@ export class ProductWikisImpl implements ProductWikis { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.WikiCollection, - headersMapper: Mappers.ProductWikisListHeaders + headersMapper: Mappers.ProductWikisListHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", @@ -205,11 +204,11 @@ const listNextOperationSpec: coreClient.OperationSpec = { responses: { 200: { bodyMapper: Mappers.WikiCollection, - headersMapper: Mappers.ProductWikisListNextHeaders + headersMapper: Mappers.ProductWikisListNextHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -217,8 +216,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts index 136caaa802f2..cc1788854b8d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts @@ -16,7 +16,7 @@ import { QuotaByCounterKeysListByServiceResponse, QuotaCounterValueUpdateContract, QuotaByCounterKeysUpdateOptionalParams, - QuotaByCounterKeysUpdateResponse + QuotaByCounterKeysUpdateResponse, } from "../models"; /** Class containing QuotaByCounterKeys operations. */ @@ -46,11 +46,11 @@ export class QuotaByCounterKeysImpl implements QuotaByCounterKeys { resourceGroupName: string, serviceName: string, quotaCounterKey: string, - options?: QuotaByCounterKeysListByServiceOptionalParams + options?: QuotaByCounterKeysListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, quotaCounterKey, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -71,11 +71,11 @@ export class QuotaByCounterKeysImpl implements QuotaByCounterKeys { serviceName: string, quotaCounterKey: string, parameters: QuotaCounterValueUpdateContract, - options?: QuotaByCounterKeysUpdateOptionalParams + options?: QuotaByCounterKeysUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, quotaCounterKey, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } } @@ -83,16 +83,15 @@ export class QuotaByCounterKeysImpl implements QuotaByCounterKeys { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.QuotaCounterCollection + bodyMapper: Mappers.QuotaCounterCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -100,33 +99,32 @@ const listByServiceOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.quotaCounterKey + Parameters.quotaCounterKey, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.QuotaCounterCollection + bodyMapper: Mappers.QuotaCounterCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters65, + requestBody: Parameters.parameters76, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.quotaCounterKey + Parameters.quotaCounterKey, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts index bd18bc65745b..c2c8057c670f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts @@ -16,7 +16,7 @@ import { QuotaByPeriodKeysGetResponse, QuotaCounterValueUpdateContract, QuotaByPeriodKeysUpdateOptionalParams, - QuotaByPeriodKeysUpdateResponse + QuotaByPeriodKeysUpdateResponse, } from "../models"; /** Class containing QuotaByPeriodKeys operations. */ @@ -48,7 +48,7 @@ export class QuotaByPeriodKeysImpl implements QuotaByPeriodKeys { serviceName: string, quotaCounterKey: string, quotaPeriodKey: string, - options?: QuotaByPeriodKeysGetOptionalParams + options?: QuotaByPeriodKeysGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -56,9 +56,9 @@ export class QuotaByPeriodKeysImpl implements QuotaByPeriodKeys { serviceName, quotaCounterKey, quotaPeriodKey, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -80,7 +80,7 @@ export class QuotaByPeriodKeysImpl implements QuotaByPeriodKeys { quotaCounterKey: string, quotaPeriodKey: string, parameters: QuotaCounterValueUpdateContract, - options?: QuotaByPeriodKeysUpdateOptionalParams + options?: QuotaByPeriodKeysUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -89,9 +89,9 @@ export class QuotaByPeriodKeysImpl implements QuotaByPeriodKeys { quotaCounterKey, quotaPeriodKey, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } } @@ -99,16 +99,15 @@ export class QuotaByPeriodKeysImpl implements QuotaByPeriodKeys { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.QuotaCounterContract + bodyMapper: Mappers.QuotaCounterContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -117,24 +116,23 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.quotaCounterKey, - Parameters.quotaPeriodKey + Parameters.quotaPeriodKey, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.QuotaCounterContract + bodyMapper: Mappers.QuotaCounterContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters65, + requestBody: Parameters.parameters76, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -142,9 +140,9 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.quotaCounterKey, - Parameters.quotaPeriodKey + Parameters.quotaPeriodKey, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/region.ts b/sdk/apimanagement/arm-apimanagement/src/operations/region.ts index b0ccf6b4bde2..417fbdefe36b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/region.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/region.ts @@ -18,7 +18,7 @@ import { RegionListByServiceNextOptionalParams, RegionListByServiceOptionalParams, RegionListByServiceResponse, - RegionListByServiceNextResponse + RegionListByServiceNextResponse, } from "../models"; /// @@ -43,12 +43,12 @@ export class RegionImpl implements Region { public listByService( resourceGroupName: string, serviceName: string, - options?: RegionListByServiceOptionalParams + options?: RegionListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -65,9 +65,9 @@ export class RegionImpl implements Region { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -75,7 +75,7 @@ export class RegionImpl implements Region { resourceGroupName: string, serviceName: string, options?: RegionListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RegionListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -83,7 +83,7 @@ export class RegionImpl implements Region { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -95,7 +95,7 @@ export class RegionImpl implements Region { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,12 +107,12 @@ export class RegionImpl implements Region { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: RegionListByServiceOptionalParams + options?: RegionListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -127,11 +127,11 @@ export class RegionImpl implements Region { private _listByService( resourceGroupName: string, serviceName: string, - options?: RegionListByServiceOptionalParams + options?: RegionListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -146,11 +146,11 @@ export class RegionImpl implements Region { resourceGroupName: string, serviceName: string, nextLink: string, - options?: RegionListByServiceNextOptionalParams + options?: RegionListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -158,45 +158,44 @@ export class RegionImpl implements Region { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/regions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/regions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RegionListResult + bodyMapper: Mappers.RegionListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RegionListResult + bodyMapper: Mappers.RegionListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts b/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts index 34ec22b941f4..d7000eb7b2ab 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts @@ -45,7 +45,7 @@ import { ReportsListByProductNextResponse, ReportsListByGeoNextResponse, ReportsListBySubscriptionNextResponse, - ReportsListByTimeNextResponse + ReportsListByTimeNextResponse, } from "../models"; /// @@ -72,13 +72,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByApiOptionalParams + options?: ReportsListByApiOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByApiPagingAll( resourceGroupName, serviceName, filter, - options + options, ); return { next() { @@ -96,9 +96,9 @@ export class ReportsImpl implements Reports { serviceName, filter, options, - settings + settings, ); - } + }, }; } @@ -107,7 +107,7 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, options?: ReportsListByApiOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListByApiResponse; let continuationToken = settings?.continuationToken; @@ -116,7 +116,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, filter, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -128,7 +128,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -141,13 +141,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByApiOptionalParams + options?: ReportsListByApiOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByApiPagingPage( resourceGroupName, serviceName, filter, - options + options, )) { yield* page; } @@ -176,13 +176,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByUserOptionalParams + options?: ReportsListByUserOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByUserPagingAll( resourceGroupName, serviceName, filter, - options + options, ); return { next() { @@ -200,9 +200,9 @@ export class ReportsImpl implements Reports { serviceName, filter, options, - settings + settings, ); - } + }, }; } @@ -211,7 +211,7 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, options?: ReportsListByUserOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListByUserResponse; let continuationToken = settings?.continuationToken; @@ -220,7 +220,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, filter, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -232,7 +232,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -245,13 +245,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByUserOptionalParams + options?: ReportsListByUserOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByUserPagingPage( resourceGroupName, serviceName, filter, - options + options, )) { yield* page; } @@ -279,13 +279,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByOperationOptionalParams + options?: ReportsListByOperationOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByOperationPagingAll( resourceGroupName, serviceName, filter, - options + options, ); return { next() { @@ -303,9 +303,9 @@ export class ReportsImpl implements Reports { serviceName, filter, options, - settings + settings, ); - } + }, }; } @@ -314,7 +314,7 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, options?: ReportsListByOperationOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListByOperationResponse; let continuationToken = settings?.continuationToken; @@ -323,7 +323,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, filter, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -335,7 +335,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -348,13 +348,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByOperationOptionalParams + options?: ReportsListByOperationOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByOperationPagingPage( resourceGroupName, serviceName, filter, - options + options, )) { yield* page; } @@ -382,13 +382,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByProductOptionalParams + options?: ReportsListByProductOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByProductPagingAll( resourceGroupName, serviceName, filter, - options + options, ); return { next() { @@ -406,9 +406,9 @@ export class ReportsImpl implements Reports { serviceName, filter, options, - settings + settings, ); - } + }, }; } @@ -417,7 +417,7 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, options?: ReportsListByProductOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListByProductResponse; let continuationToken = settings?.continuationToken; @@ -426,7 +426,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, filter, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -438,7 +438,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -451,13 +451,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByProductOptionalParams + options?: ReportsListByProductOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByProductPagingPage( resourceGroupName, serviceName, filter, - options + options, )) { yield* page; } @@ -485,13 +485,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByGeoOptionalParams + options?: ReportsListByGeoOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByGeoPagingAll( resourceGroupName, serviceName, filter, - options + options, ); return { next() { @@ -509,9 +509,9 @@ export class ReportsImpl implements Reports { serviceName, filter, options, - settings + settings, ); - } + }, }; } @@ -520,7 +520,7 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, options?: ReportsListByGeoOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListByGeoResponse; let continuationToken = settings?.continuationToken; @@ -529,7 +529,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, filter, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -541,7 +541,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -554,13 +554,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByGeoOptionalParams + options?: ReportsListByGeoOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByGeoPagingPage( resourceGroupName, serviceName, filter, - options + options, )) { yield* page; } @@ -588,13 +588,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListBySubscriptionOptionalParams + options?: ReportsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll( resourceGroupName, serviceName, filter, - options + options, ); return { next() { @@ -612,9 +612,9 @@ export class ReportsImpl implements Reports { serviceName, filter, options, - settings + settings, ); - } + }, }; } @@ -623,7 +623,7 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, options?: ReportsListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -632,7 +632,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, filter, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -644,7 +644,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -657,13 +657,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListBySubscriptionOptionalParams + options?: ReportsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage( resourceGroupName, serviceName, filter, - options + options, )) { yield* page; } @@ -695,14 +695,14 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, interval: string, - options?: ReportsListByTimeOptionalParams + options?: ReportsListByTimeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByTimePagingAll( resourceGroupName, serviceName, filter, interval, - options + options, ); return { next() { @@ -721,9 +721,9 @@ export class ReportsImpl implements Reports { filter, interval, options, - settings + settings, ); - } + }, }; } @@ -733,7 +733,7 @@ export class ReportsImpl implements Reports { filter: string, interval: string, options?: ReportsListByTimeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListByTimeResponse; let continuationToken = settings?.continuationToken; @@ -743,7 +743,7 @@ export class ReportsImpl implements Reports { serviceName, filter, interval, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -755,7 +755,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -769,14 +769,14 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, interval: string, - options?: ReportsListByTimeOptionalParams + options?: ReportsListByTimeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByTimePagingPage( resourceGroupName, serviceName, filter, interval, - options + options, )) { yield* page; } @@ -797,13 +797,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByRequestOptionalParams + options?: ReportsListByRequestOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByRequestPagingAll( resourceGroupName, serviceName, filter, - options + options, ); return { next() { @@ -821,9 +821,9 @@ export class ReportsImpl implements Reports { serviceName, filter, options, - settings + settings, ); - } + }, }; } @@ -832,14 +832,14 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, options?: ReportsListByRequestOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListByRequestResponse; result = await this._listByRequest( resourceGroupName, serviceName, filter, - options + options, ); yield result.value || []; } @@ -848,13 +848,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByRequestOptionalParams + options?: ReportsListByRequestOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByRequestPagingPage( resourceGroupName, serviceName, filter, - options + options, )) { yield* page; } @@ -871,11 +871,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByApiOptionalParams + options?: ReportsListByApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, filter, options }, - listByApiOperationSpec + listByApiOperationSpec, ); } @@ -902,11 +902,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByUserOptionalParams + options?: ReportsListByUserOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, filter, options }, - listByUserOperationSpec + listByUserOperationSpec, ); } @@ -932,11 +932,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByOperationOptionalParams + options?: ReportsListByOperationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, filter, options }, - listByOperationOperationSpec + listByOperationOperationSpec, ); } @@ -962,11 +962,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByProductOptionalParams + options?: ReportsListByProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, filter, options }, - listByProductOperationSpec + listByProductOperationSpec, ); } @@ -992,11 +992,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByGeoOptionalParams + options?: ReportsListByGeoOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, filter, options }, - listByGeoOperationSpec + listByGeoOperationSpec, ); } @@ -1022,11 +1022,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListBySubscriptionOptionalParams + options?: ReportsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, filter, options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -1056,11 +1056,11 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, interval: string, - options?: ReportsListByTimeOptionalParams + options?: ReportsListByTimeOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, filter, interval, options }, - listByTimeOperationSpec + listByTimeOperationSpec, ); } @@ -1079,11 +1079,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByRequestOptionalParams + options?: ReportsListByRequestOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, filter, options }, - listByRequestOperationSpec + listByRequestOperationSpec, ); } @@ -1098,11 +1098,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ReportsListByApiNextOptionalParams + options?: ReportsListByApiNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByApiNextOperationSpec + listByApiNextOperationSpec, ); } @@ -1117,11 +1117,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ReportsListByUserNextOptionalParams + options?: ReportsListByUserNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByUserNextOperationSpec + listByUserNextOperationSpec, ); } @@ -1136,11 +1136,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ReportsListByOperationNextOptionalParams + options?: ReportsListByOperationNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByOperationNextOperationSpec + listByOperationNextOperationSpec, ); } @@ -1155,11 +1155,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ReportsListByProductNextOptionalParams + options?: ReportsListByProductNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByProductNextOperationSpec + listByProductNextOperationSpec, ); } @@ -1174,11 +1174,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ReportsListByGeoNextOptionalParams + options?: ReportsListByGeoNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByGeoNextOperationSpec + listByGeoNextOperationSpec, ); } @@ -1193,11 +1193,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ReportsListBySubscriptionNextOptionalParams + options?: ReportsListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -1212,11 +1212,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ReportsListByTimeNextOptionalParams + options?: ReportsListByTimeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByTimeNextOperationSpec + listByTimeNextOperationSpec, ); } } @@ -1224,372 +1224,364 @@ export class ReportsImpl implements Reports { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byApi", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byApi", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.top, Parameters.skip, - Parameters.apiVersion, Parameters.orderby, - Parameters.filter1 + Parameters.filter1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByUserOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byUser", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byUser", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.top, Parameters.skip, - Parameters.apiVersion, Parameters.orderby, - Parameters.filter1 + Parameters.filter1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByOperationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byOperation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byOperation", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.top, Parameters.skip, - Parameters.apiVersion, Parameters.orderby, - Parameters.filter1 + Parameters.filter1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byProduct", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byProduct", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.top, Parameters.skip, - Parameters.apiVersion, Parameters.orderby, - Parameters.filter1 + Parameters.filter1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGeoOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byGeo", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byGeo", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.filter1 + Parameters.filter1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/bySubscription", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/bySubscription", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.top, Parameters.skip, - Parameters.apiVersion, Parameters.orderby, - Parameters.filter1 + Parameters.filter1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTimeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byTime", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byTime", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.top, Parameters.skip, - Parameters.apiVersion, Parameters.orderby, Parameters.filter1, - Parameters.interval + Parameters.interval, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByRequestOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byRequest", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byRequest", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RequestReportCollection + bodyMapper: Mappers.RequestReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.filter1 + Parameters.filter1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByApiNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByUserNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByOperationNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByProductNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGeoNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTimeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts index 81c16f759dd7..aaaf87a58899 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts @@ -19,7 +19,7 @@ import { PortalSigninSettings, SignInSettingsUpdateOptionalParams, SignInSettingsCreateOrUpdateOptionalParams, - SignInSettingsCreateOrUpdateResponse + SignInSettingsCreateOrUpdateResponse, } from "../models"; /** Class containing SignInSettings operations. */ @@ -43,11 +43,11 @@ export class SignInSettingsImpl implements SignInSettings { getEntityTag( resourceGroupName: string, serviceName: string, - options?: SignInSettingsGetEntityTagOptionalParams + options?: SignInSettingsGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -60,11 +60,11 @@ export class SignInSettingsImpl implements SignInSettings { get( resourceGroupName: string, serviceName: string, - options?: SignInSettingsGetOptionalParams + options?: SignInSettingsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -82,11 +82,11 @@ export class SignInSettingsImpl implements SignInSettings { serviceName: string, ifMatch: string, parameters: PortalSigninSettings, - options?: SignInSettingsUpdateOptionalParams + options?: SignInSettingsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -101,11 +101,11 @@ export class SignInSettingsImpl implements SignInSettings { resourceGroupName: string, serviceName: string, parameters: PortalSigninSettings, - options?: SignInSettingsCreateOrUpdateOptionalParams + options?: SignInSettingsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } } @@ -113,101 +113,97 @@ export class SignInSettingsImpl implements SignInSettings { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.SignInSettingsGetEntityTagHeaders + headersMapper: Mappers.SignInSettingsGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PortalSigninSettings, - headersMapper: Mappers.SignInSettingsGetHeaders + headersMapper: Mappers.SignInSettingsGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", httpMethod: "PATCH", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters60, + requestBody: Parameters.parameters69, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PortalSigninSettings + bodyMapper: Mappers.PortalSigninSettings, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters60, + requestBody: Parameters.parameters69, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts index fa8160735c81..974050e78c07 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts @@ -19,7 +19,7 @@ import { PortalSignupSettings, SignUpSettingsUpdateOptionalParams, SignUpSettingsCreateOrUpdateOptionalParams, - SignUpSettingsCreateOrUpdateResponse + SignUpSettingsCreateOrUpdateResponse, } from "../models"; /** Class containing SignUpSettings operations. */ @@ -43,11 +43,11 @@ export class SignUpSettingsImpl implements SignUpSettings { getEntityTag( resourceGroupName: string, serviceName: string, - options?: SignUpSettingsGetEntityTagOptionalParams + options?: SignUpSettingsGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -60,11 +60,11 @@ export class SignUpSettingsImpl implements SignUpSettings { get( resourceGroupName: string, serviceName: string, - options?: SignUpSettingsGetOptionalParams + options?: SignUpSettingsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -82,11 +82,11 @@ export class SignUpSettingsImpl implements SignUpSettings { serviceName: string, ifMatch: string, parameters: PortalSignupSettings, - options?: SignUpSettingsUpdateOptionalParams + options?: SignUpSettingsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -101,11 +101,11 @@ export class SignUpSettingsImpl implements SignUpSettings { resourceGroupName: string, serviceName: string, parameters: PortalSignupSettings, - options?: SignUpSettingsCreateOrUpdateOptionalParams + options?: SignUpSettingsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } } @@ -113,101 +113,97 @@ export class SignUpSettingsImpl implements SignUpSettings { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.SignUpSettingsGetEntityTagHeaders + headersMapper: Mappers.SignUpSettingsGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PortalSignupSettings, - headersMapper: Mappers.SignUpSettingsGetHeaders + headersMapper: Mappers.SignUpSettingsGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", httpMethod: "PATCH", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters61, + requestBody: Parameters.parameters70, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PortalSignupSettings + bodyMapper: Mappers.PortalSignupSettings, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters61, + requestBody: Parameters.parameters70, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts index 040781d07df3..2341911742c9 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts @@ -33,7 +33,7 @@ import { SubscriptionRegenerateSecondaryKeyOptionalParams, SubscriptionListSecretsOptionalParams, SubscriptionListSecretsResponse, - SubscriptionListNextResponse + SubscriptionListNextResponse, } from "../models"; /// @@ -58,7 +58,7 @@ export class SubscriptionImpl implements Subscription { public list( resourceGroupName: string, serviceName: string, - options?: SubscriptionListOptionalParams + options?: SubscriptionListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, serviceName, options); return { @@ -76,9 +76,9 @@ export class SubscriptionImpl implements Subscription { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +86,7 @@ export class SubscriptionImpl implements Subscription { resourceGroupName: string, serviceName: string, options?: SubscriptionListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SubscriptionListResponse; let continuationToken = settings?.continuationToken; @@ -102,7 +102,7 @@ export class SubscriptionImpl implements Subscription { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -114,12 +114,12 @@ export class SubscriptionImpl implements Subscription { private async *listPagingAll( resourceGroupName: string, serviceName: string, - options?: SubscriptionListOptionalParams + options?: SubscriptionListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -134,11 +134,11 @@ export class SubscriptionImpl implements Subscription { private _list( resourceGroupName: string, serviceName: string, - options?: SubscriptionListOptionalParams + options?: SubscriptionListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -154,11 +154,11 @@ export class SubscriptionImpl implements Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionGetEntityTagOptionalParams + options?: SubscriptionGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, sid, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -174,11 +174,11 @@ export class SubscriptionImpl implements Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionGetOptionalParams + options?: SubscriptionGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, sid, options }, - getOperationSpec + getOperationSpec, ); } @@ -196,11 +196,11 @@ export class SubscriptionImpl implements Subscription { serviceName: string, sid: string, parameters: SubscriptionCreateParameters, - options?: SubscriptionCreateOrUpdateOptionalParams + options?: SubscriptionCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, sid, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -221,11 +221,11 @@ export class SubscriptionImpl implements Subscription { sid: string, ifMatch: string, parameters: SubscriptionUpdateParameters, - options?: SubscriptionUpdateOptionalParams + options?: SubscriptionUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, sid, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -244,11 +244,11 @@ export class SubscriptionImpl implements Subscription { serviceName: string, sid: string, ifMatch: string, - options?: SubscriptionDeleteOptionalParams + options?: SubscriptionDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, sid, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -264,11 +264,11 @@ export class SubscriptionImpl implements Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionRegeneratePrimaryKeyOptionalParams + options?: SubscriptionRegeneratePrimaryKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, sid, options }, - regeneratePrimaryKeyOperationSpec + regeneratePrimaryKeyOperationSpec, ); } @@ -284,11 +284,11 @@ export class SubscriptionImpl implements Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionRegenerateSecondaryKeyOptionalParams + options?: SubscriptionRegenerateSecondaryKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, sid, options }, - regenerateSecondaryKeyOperationSpec + regenerateSecondaryKeyOperationSpec, ); } @@ -304,11 +304,11 @@ export class SubscriptionImpl implements Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionListSecretsOptionalParams + options?: SubscriptionListSecretsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, sid, options }, - listSecretsOperationSpec + listSecretsOperationSpec, ); } @@ -323,11 +323,11 @@ export class SubscriptionImpl implements Subscription { resourceGroupName: string, serviceName: string, nextLink: string, - options?: SubscriptionListNextOptionalParams + options?: SubscriptionListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -335,43 +335,41 @@ export class SubscriptionImpl implements Subscription { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionCollection + bodyMapper: Mappers.SubscriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.SubscriptionGetEntityTagHeaders + headersMapper: Mappers.SubscriptionGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -379,23 +377,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.sid + Parameters.sid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.SubscriptionContract, - headersMapper: Mappers.SubscriptionGetHeaders + headersMapper: Mappers.SubscriptionGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -403,93 +400,90 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.sid + Parameters.sid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.SubscriptionContract, - headersMapper: Mappers.SubscriptionCreateOrUpdateHeaders + headersMapper: Mappers.SubscriptionCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.SubscriptionContract, - headersMapper: Mappers.SubscriptionCreateOrUpdateHeaders + headersMapper: Mappers.SubscriptionCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters67, + requestBody: Parameters.parameters78, queryParameters: [ Parameters.apiVersion, Parameters.notify, - Parameters.appType + Parameters.appType, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.sid + Parameters.sid, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.SubscriptionContract, - headersMapper: Mappers.SubscriptionUpdateHeaders + headersMapper: Mappers.SubscriptionUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters68, + requestBody: Parameters.parameters79, queryParameters: [ Parameters.apiVersion, Parameters.notify, - Parameters.appType + Parameters.appType, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.sid + Parameters.sid, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -497,20 +491,19 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.sid + Parameters.sid, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const regeneratePrimaryKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/regeneratePrimaryKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/regeneratePrimaryKey", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -518,20 +511,19 @@ const regeneratePrimaryKeyOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.sid + Parameters.sid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const regenerateSecondaryKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/regenerateSecondaryKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/regenerateSecondaryKey", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -539,23 +531,22 @@ const regenerateSecondaryKeyOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.sid + Parameters.sid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSecretsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/listSecrets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/listSecrets", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.SubscriptionKeysContract, - headersMapper: Mappers.SubscriptionListSecretsHeaders + headersMapper: Mappers.SubscriptionListSecretsHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -563,29 +554,29 @@ const listSecretsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.sid + Parameters.sid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionCollection + bodyMapper: Mappers.SubscriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts index 1cd000ec1f2f..5c1c0f183eef 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts @@ -61,7 +61,7 @@ import { TagListByOperationNextResponse, TagListByApiNextResponse, TagListByProductNextResponse, - TagListByServiceNextResponse + TagListByServiceNextResponse, } from "../models"; /// @@ -92,14 +92,14 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, operationId: string, - options?: TagListByOperationOptionalParams + options?: TagListByOperationOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByOperationPagingAll( resourceGroupName, serviceName, apiId, operationId, - options + options, ); return { next() { @@ -118,9 +118,9 @@ export class TagImpl implements Tag { apiId, operationId, options, - settings + settings, ); - } + }, }; } @@ -130,7 +130,7 @@ export class TagImpl implements Tag { apiId: string, operationId: string, options?: TagListByOperationOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TagListByOperationResponse; let continuationToken = settings?.continuationToken; @@ -140,7 +140,7 @@ export class TagImpl implements Tag { serviceName, apiId, operationId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -154,7 +154,7 @@ export class TagImpl implements Tag { apiId, operationId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -168,14 +168,14 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, operationId: string, - options?: TagListByOperationOptionalParams + options?: TagListByOperationOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByOperationPagingPage( resourceGroupName, serviceName, apiId, operationId, - options + options, )) { yield* page; } @@ -193,13 +193,13 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, apiId: string, - options?: TagListByApiOptionalParams + options?: TagListByApiOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByApiPagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -217,9 +217,9 @@ export class TagImpl implements Tag { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -228,7 +228,7 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, options?: TagListByApiOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TagListByApiResponse; let continuationToken = settings?.continuationToken; @@ -237,7 +237,7 @@ export class TagImpl implements Tag { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -250,7 +250,7 @@ export class TagImpl implements Tag { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -263,13 +263,13 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, apiId: string, - options?: TagListByApiOptionalParams + options?: TagListByApiOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByApiPagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -286,13 +286,13 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, productId: string, - options?: TagListByProductOptionalParams + options?: TagListByProductOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByProductPagingAll( resourceGroupName, serviceName, productId, - options + options, ); return { next() { @@ -310,9 +310,9 @@ export class TagImpl implements Tag { serviceName, productId, options, - settings + settings, ); - } + }, }; } @@ -321,7 +321,7 @@ export class TagImpl implements Tag { serviceName: string, productId: string, options?: TagListByProductOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TagListByProductResponse; let continuationToken = settings?.continuationToken; @@ -330,7 +330,7 @@ export class TagImpl implements Tag { resourceGroupName, serviceName, productId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -343,7 +343,7 @@ export class TagImpl implements Tag { serviceName, productId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -356,13 +356,13 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, productId: string, - options?: TagListByProductOptionalParams + options?: TagListByProductOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByProductPagingPage( resourceGroupName, serviceName, productId, - options + options, )) { yield* page; } @@ -377,12 +377,12 @@ export class TagImpl implements Tag { public listByService( resourceGroupName: string, serviceName: string, - options?: TagListByServiceOptionalParams + options?: TagListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -399,9 +399,9 @@ export class TagImpl implements Tag { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -409,7 +409,7 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, options?: TagListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TagListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -417,7 +417,7 @@ export class TagImpl implements Tag { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -429,7 +429,7 @@ export class TagImpl implements Tag { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -441,12 +441,12 @@ export class TagImpl implements Tag { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: TagListByServiceOptionalParams + options?: TagListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -467,11 +467,11 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, operationId: string, - options?: TagListByOperationOptionalParams + options?: TagListByOperationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, options }, - listByOperationOperationSpec + listByOperationOperationSpec, ); } @@ -492,11 +492,11 @@ export class TagImpl implements Tag { apiId: string, operationId: string, tagId: string, - options?: TagGetEntityStateByOperationOptionalParams + options?: TagGetEntityStateByOperationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, tagId, options }, - getEntityStateByOperationOperationSpec + getEntityStateByOperationOperationSpec, ); } @@ -517,11 +517,11 @@ export class TagImpl implements Tag { apiId: string, operationId: string, tagId: string, - options?: TagGetByOperationOptionalParams + options?: TagGetByOperationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, tagId, options }, - getByOperationOperationSpec + getByOperationOperationSpec, ); } @@ -542,11 +542,11 @@ export class TagImpl implements Tag { apiId: string, operationId: string, tagId: string, - options?: TagAssignToOperationOptionalParams + options?: TagAssignToOperationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, tagId, options }, - assignToOperationOperationSpec + assignToOperationOperationSpec, ); } @@ -567,11 +567,11 @@ export class TagImpl implements Tag { apiId: string, operationId: string, tagId: string, - options?: TagDetachFromOperationOptionalParams + options?: TagDetachFromOperationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, tagId, options }, - detachFromOperationOperationSpec + detachFromOperationOperationSpec, ); } @@ -587,11 +587,11 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, apiId: string, - options?: TagListByApiOptionalParams + options?: TagListByApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByApiOperationSpec + listByApiOperationSpec, ); } @@ -609,11 +609,11 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, tagId: string, - options?: TagGetEntityStateByApiOptionalParams + options?: TagGetEntityStateByApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, tagId, options }, - getEntityStateByApiOperationSpec + getEntityStateByApiOperationSpec, ); } @@ -631,11 +631,11 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, tagId: string, - options?: TagGetByApiOptionalParams + options?: TagGetByApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, tagId, options }, - getByApiOperationSpec + getByApiOperationSpec, ); } @@ -653,11 +653,11 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, tagId: string, - options?: TagAssignToApiOptionalParams + options?: TagAssignToApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, tagId, options }, - assignToApiOperationSpec + assignToApiOperationSpec, ); } @@ -675,11 +675,11 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, tagId: string, - options?: TagDetachFromApiOptionalParams + options?: TagDetachFromApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, tagId, options }, - detachFromApiOperationSpec + detachFromApiOperationSpec, ); } @@ -694,11 +694,11 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, productId: string, - options?: TagListByProductOptionalParams + options?: TagListByProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - listByProductOperationSpec + listByProductOperationSpec, ); } @@ -715,11 +715,11 @@ export class TagImpl implements Tag { serviceName: string, productId: string, tagId: string, - options?: TagGetEntityStateByProductOptionalParams + options?: TagGetEntityStateByProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, tagId, options }, - getEntityStateByProductOperationSpec + getEntityStateByProductOperationSpec, ); } @@ -736,11 +736,11 @@ export class TagImpl implements Tag { serviceName: string, productId: string, tagId: string, - options?: TagGetByProductOptionalParams + options?: TagGetByProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, tagId, options }, - getByProductOperationSpec + getByProductOperationSpec, ); } @@ -757,11 +757,11 @@ export class TagImpl implements Tag { serviceName: string, productId: string, tagId: string, - options?: TagAssignToProductOptionalParams + options?: TagAssignToProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, tagId, options }, - assignToProductOperationSpec + assignToProductOperationSpec, ); } @@ -778,11 +778,11 @@ export class TagImpl implements Tag { serviceName: string, productId: string, tagId: string, - options?: TagDetachFromProductOptionalParams + options?: TagDetachFromProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, tagId, options }, - detachFromProductOperationSpec + detachFromProductOperationSpec, ); } @@ -795,11 +795,11 @@ export class TagImpl implements Tag { private _listByService( resourceGroupName: string, serviceName: string, - options?: TagListByServiceOptionalParams + options?: TagListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -814,11 +814,11 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, tagId: string, - options?: TagGetEntityStateOptionalParams + options?: TagGetEntityStateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, tagId, options }, - getEntityStateOperationSpec + getEntityStateOperationSpec, ); } @@ -833,11 +833,11 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, tagId: string, - options?: TagGetOptionalParams + options?: TagGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, tagId, options }, - getOperationSpec + getOperationSpec, ); } @@ -854,11 +854,11 @@ export class TagImpl implements Tag { serviceName: string, tagId: string, parameters: TagCreateUpdateParameters, - options?: TagCreateOrUpdateOptionalParams + options?: TagCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, tagId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -878,11 +878,11 @@ export class TagImpl implements Tag { tagId: string, ifMatch: string, parameters: TagCreateUpdateParameters, - options?: TagUpdateOptionalParams + options?: TagUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, tagId, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -900,11 +900,11 @@ export class TagImpl implements Tag { serviceName: string, tagId: string, ifMatch: string, - options?: TagDeleteOptionalParams + options?: TagDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, tagId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -925,11 +925,11 @@ export class TagImpl implements Tag { apiId: string, operationId: string, nextLink: string, - options?: TagListByOperationNextOptionalParams + options?: TagListByOperationNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, nextLink, options }, - listByOperationNextOperationSpec + listByOperationNextOperationSpec, ); } @@ -947,11 +947,11 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, nextLink: string, - options?: TagListByApiNextOptionalParams + options?: TagListByApiNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByApiNextOperationSpec + listByApiNextOperationSpec, ); } @@ -968,11 +968,11 @@ export class TagImpl implements Tag { serviceName: string, productId: string, nextLink: string, - options?: TagListByProductNextOptionalParams + options?: TagListByProductNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, nextLink, options }, - listByProductNextOperationSpec + listByProductNextOperationSpec, ); } @@ -987,11 +987,11 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, nextLink: string, - options?: TagListByServiceNextOptionalParams + options?: TagListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -999,22 +999,21 @@ export class TagImpl implements Tag { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByOperationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagCollection + bodyMapper: Mappers.TagCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, @@ -1022,22 +1021,21 @@ const listByOperationOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityStateByOperationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.TagGetEntityStateByOperationHeaders + headersMapper: Mappers.TagGetEntityStateByOperationHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1047,23 +1045,22 @@ const getEntityStateByOperationOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.operationId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByOperationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagGetByOperationHeaders + headersMapper: Mappers.TagGetByOperationHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1073,25 +1070,24 @@ const getByOperationOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.operationId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const assignToOperationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.TagContract + bodyMapper: Mappers.TagContract, }, 201: { - bodyMapper: Mappers.TagContract + bodyMapper: Mappers.TagContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1101,21 +1097,20 @@ const assignToOperationOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.operationId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const detachFromOperationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1125,50 +1120,48 @@ const detachFromOperationOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.operationId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagCollection + bodyMapper: Mappers.TagCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityStateByApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.TagGetEntityStateByApiHeaders + headersMapper: Mappers.TagGetEntityStateByApiHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1177,23 +1170,22 @@ const getEntityStateByApiOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagGetByApiHeaders + headersMapper: Mappers.TagGetByApiHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1202,27 +1194,26 @@ const getByApiOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const assignToApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagAssignToApiHeaders + headersMapper: Mappers.TagAssignToApiHeaders, }, 201: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagAssignToApiHeaders + headersMapper: Mappers.TagAssignToApiHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1231,21 +1222,20 @@ const assignToApiOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const detachFromApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1254,50 +1244,48 @@ const detachFromApiOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagCollection + bodyMapper: Mappers.TagCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityStateByProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.TagGetEntityStateByProductHeaders + headersMapper: Mappers.TagGetEntityStateByProductHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1306,23 +1294,22 @@ const getEntityStateByProductOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.tagId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagGetByProductHeaders + headersMapper: Mappers.TagGetByProductHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1331,25 +1318,24 @@ const getByProductOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.tagId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const assignToProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.TagContract + bodyMapper: Mappers.TagContract, }, 201: { - bodyMapper: Mappers.TagContract + bodyMapper: Mappers.TagContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1358,21 +1344,20 @@ const assignToProductOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.tagId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const detachFromProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1381,50 +1366,48 @@ const detachFromProductOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.tagId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagCollection + bodyMapper: Mappers.TagCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.scope + Parameters.scope, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityStateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.TagGetEntityStateHeaders + headersMapper: Mappers.TagGetEntityStateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1432,23 +1415,22 @@ const getEntityStateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagGetHeaders + headersMapper: Mappers.TagGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1456,85 +1438,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagCreateOrUpdateHeaders + headersMapper: Mappers.TagCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagCreateOrUpdateHeaders + headersMapper: Mappers.TagCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagUpdateHeaders + headersMapper: Mappers.TagUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1542,66 +1521,66 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByOperationNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagCollection + bodyMapper: Mappers.TagCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId, Parameters.nextLink, - Parameters.operationId + Parameters.apiId, + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByApiNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagCollection + bodyMapper: Mappers.TagCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, + Parameters.nextLink, Parameters.apiId, - Parameters.nextLink ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByProductNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagCollection + bodyMapper: Mappers.TagCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -1609,29 +1588,29 @@ const listByProductNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagCollection + bodyMapper: Mappers.TagCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tagApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tagApiLink.ts new file mode 100644 index 000000000000..1ac1bd367099 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tagApiLink.ts @@ -0,0 +1,368 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { TagApiLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagApiLinkContract, + TagApiLinkListByProductNextOptionalParams, + TagApiLinkListByProductOptionalParams, + TagApiLinkListByProductResponse, + TagApiLinkGetOptionalParams, + TagApiLinkGetResponse, + TagApiLinkCreateOrUpdateOptionalParams, + TagApiLinkCreateOrUpdateResponse, + TagApiLinkDeleteOptionalParams, + TagApiLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing TagApiLink operations. */ +export class TagApiLinkImpl implements TagApiLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class TagApiLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the API links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagApiLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + tagId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + tagId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagApiLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: TagApiLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + tagId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + tagId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagApiLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + tagId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the API links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagApiLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the API link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + tagId: string, + apiLinkId: string, + options?: TagApiLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, apiLinkId, options }, + getOperationSpec, + ); + } + + /** + * Adds an API to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + tagId: string, + apiLinkId: string, + parameters: TagApiLinkContract, + options?: TagApiLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, apiLinkId, parameters, options }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified API from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + tagId: string, + apiLinkId: string, + options?: TagApiLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, apiLinkId, options }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + tagId: string, + nextLink: string, + options?: TagApiLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, nextLink, options }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/apiLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/apiLinks/{apiLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkContract, + headersMapper: Mappers.TagApiLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.apiLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/apiLinks/{apiLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkContract, + }, + 201: { + bodyMapper: Mappers.TagApiLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters80, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.apiLinkId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/apiLinks/{apiLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.apiLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.tagId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tagOperationLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tagOperationLink.ts new file mode 100644 index 000000000000..5cb06a7932ee --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tagOperationLink.ts @@ -0,0 +1,375 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { TagOperationLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagOperationLinkContract, + TagOperationLinkListByProductNextOptionalParams, + TagOperationLinkListByProductOptionalParams, + TagOperationLinkListByProductResponse, + TagOperationLinkGetOptionalParams, + TagOperationLinkGetResponse, + TagOperationLinkCreateOrUpdateOptionalParams, + TagOperationLinkCreateOrUpdateResponse, + TagOperationLinkDeleteOptionalParams, + TagOperationLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing TagOperationLink operations. */ +export class TagOperationLinkImpl implements TagOperationLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class TagOperationLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the operation links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagOperationLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + tagId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + tagId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagOperationLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: TagOperationLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + tagId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + tagId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagOperationLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + tagId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the operation links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagOperationLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the operation link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + tagId: string, + operationLinkId: string, + options?: TagOperationLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, operationLinkId, options }, + getOperationSpec, + ); + } + + /** + * Adds an operation to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + tagId: string, + operationLinkId: string, + parameters: TagOperationLinkContract, + options?: TagOperationLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + tagId, + operationLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified operation from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + tagId: string, + operationLinkId: string, + options?: TagOperationLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, operationLinkId, options }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + tagId: string, + nextLink: string, + options?: TagOperationLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, nextLink, options }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/operationLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/operationLinks/{operationLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkContract, + headersMapper: Mappers.TagOperationLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.operationLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/operationLinks/{operationLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkContract, + }, + 201: { + bodyMapper: Mappers.TagOperationLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters81, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.operationLinkId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/operationLinks/{operationLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.operationLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.tagId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tagProductLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tagProductLink.ts new file mode 100644 index 000000000000..75cc00391062 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tagProductLink.ts @@ -0,0 +1,375 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { TagProductLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagProductLinkContract, + TagProductLinkListByProductNextOptionalParams, + TagProductLinkListByProductOptionalParams, + TagProductLinkListByProductResponse, + TagProductLinkGetOptionalParams, + TagProductLinkGetResponse, + TagProductLinkCreateOrUpdateOptionalParams, + TagProductLinkCreateOrUpdateResponse, + TagProductLinkDeleteOptionalParams, + TagProductLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing TagProductLink operations. */ +export class TagProductLinkImpl implements TagProductLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class TagProductLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the product links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagProductLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + tagId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + tagId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagProductLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: TagProductLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + tagId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + tagId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagProductLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + tagId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the product links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagProductLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the product link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + tagId: string, + productLinkId: string, + options?: TagProductLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, productLinkId, options }, + getOperationSpec, + ); + } + + /** + * Adds a product to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + tagId: string, + productLinkId: string, + parameters: TagProductLinkContract, + options?: TagProductLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + tagId, + productLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified product from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + tagId: string, + productLinkId: string, + options?: TagProductLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, productLinkId, options }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + tagId: string, + nextLink: string, + options?: TagProductLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, nextLink, options }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/productLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/productLinks/{productLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkContract, + headersMapper: Mappers.TagProductLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.productLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/productLinks/{productLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkContract, + }, + 201: { + bodyMapper: Mappers.TagProductLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters82, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.productLinkId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/productLinks/{productLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.productLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.tagId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tagResource.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tagResource.ts index 1a0a0f0a8cb1..90b82f470edb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tagResource.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tagResource.ts @@ -18,7 +18,7 @@ import { TagResourceListByServiceNextOptionalParams, TagResourceListByServiceOptionalParams, TagResourceListByServiceResponse, - TagResourceListByServiceNextResponse + TagResourceListByServiceNextResponse, } from "../models"; /// @@ -43,12 +43,12 @@ export class TagResourceImpl implements TagResource { public listByService( resourceGroupName: string, serviceName: string, - options?: TagResourceListByServiceOptionalParams + options?: TagResourceListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -65,9 +65,9 @@ export class TagResourceImpl implements TagResource { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -75,7 +75,7 @@ export class TagResourceImpl implements TagResource { resourceGroupName: string, serviceName: string, options?: TagResourceListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TagResourceListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -83,7 +83,7 @@ export class TagResourceImpl implements TagResource { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -95,7 +95,7 @@ export class TagResourceImpl implements TagResource { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,12 +107,12 @@ export class TagResourceImpl implements TagResource { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: TagResourceListByServiceOptionalParams + options?: TagResourceListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -127,11 +127,11 @@ export class TagResourceImpl implements TagResource { private _listByService( resourceGroupName: string, serviceName: string, - options?: TagResourceListByServiceOptionalParams + options?: TagResourceListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -146,11 +146,11 @@ export class TagResourceImpl implements TagResource { resourceGroupName: string, serviceName: string, nextLink: string, - options?: TagResourceListByServiceNextOptionalParams + options?: TagResourceListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -158,50 +158,49 @@ export class TagResourceImpl implements TagResource { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tagResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tagResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.TagResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.TagResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts index ab0c13bb24d9..0111767030fe 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts @@ -33,7 +33,7 @@ import { TenantAccessRegenerateSecondaryKeyOptionalParams, TenantAccessListSecretsOptionalParams, TenantAccessListSecretsResponse, - TenantAccessListByServiceNextResponse + TenantAccessListByServiceNextResponse, } from "../models"; /// @@ -58,12 +58,12 @@ export class TenantAccessImpl implements TenantAccess { public listByService( resourceGroupName: string, serviceName: string, - options?: TenantAccessListByServiceOptionalParams + options?: TenantAccessListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -90,7 +90,7 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName: string, serviceName: string, options?: TenantAccessListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TenantAccessListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class TenantAccessImpl implements TenantAccess { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -110,7 +110,7 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -122,12 +122,12 @@ export class TenantAccessImpl implements TenantAccess { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: TenantAccessListByServiceOptionalParams + options?: TenantAccessListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -142,11 +142,11 @@ export class TenantAccessImpl implements TenantAccess { private _listByService( resourceGroupName: string, serviceName: string, - options?: TenantAccessListByServiceOptionalParams + options?: TenantAccessListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -161,11 +161,11 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessGetEntityTagOptionalParams + options?: TenantAccessGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, accessName, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -180,11 +180,11 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessGetOptionalParams + options?: TenantAccessGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, accessName, options }, - getOperationSpec + getOperationSpec, ); } @@ -204,7 +204,7 @@ export class TenantAccessImpl implements TenantAccess { accessName: AccessIdName, ifMatch: string, parameters: AccessInformationCreateParameters, - options?: TenantAccessCreateOptionalParams + options?: TenantAccessCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -213,9 +213,9 @@ export class TenantAccessImpl implements TenantAccess { accessName, ifMatch, parameters, - options + options, }, - createOperationSpec + createOperationSpec, ); } @@ -235,7 +235,7 @@ export class TenantAccessImpl implements TenantAccess { accessName: AccessIdName, ifMatch: string, parameters: AccessInformationUpdateParameters, - options?: TenantAccessUpdateOptionalParams + options?: TenantAccessUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -244,9 +244,9 @@ export class TenantAccessImpl implements TenantAccess { accessName, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -261,11 +261,11 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessRegeneratePrimaryKeyOptionalParams + options?: TenantAccessRegeneratePrimaryKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, accessName, options }, - regeneratePrimaryKeyOperationSpec + regeneratePrimaryKeyOperationSpec, ); } @@ -280,11 +280,11 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessRegenerateSecondaryKeyOptionalParams + options?: TenantAccessRegenerateSecondaryKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, accessName, options }, - regenerateSecondaryKeyOperationSpec + regenerateSecondaryKeyOperationSpec, ); } @@ -299,11 +299,11 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessListSecretsOptionalParams + options?: TenantAccessListSecretsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, accessName, options }, - listSecretsOperationSpec + listSecretsOperationSpec, ); } @@ -318,11 +318,11 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName: string, serviceName: string, nextLink: string, - options?: TenantAccessListByServiceNextOptionalParams + options?: TenantAccessListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -330,38 +330,36 @@ export class TenantAccessImpl implements TenantAccess { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessInformationCollection + bodyMapper: Mappers.AccessInformationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.filter, Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.TenantAccessGetEntityTagHeaders + headersMapper: Mappers.TenantAccessGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -369,23 +367,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.AccessInformationContract, - headersMapper: Mappers.TenantAccessGetHeaders + headersMapper: Mappers.TenantAccessGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -393,80 +390,77 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.AccessInformationContract, - headersMapper: Mappers.TenantAccessCreateHeaders + headersMapper: Mappers.TenantAccessCreateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters69, + requestBody: Parameters.parameters83, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.AccessInformationContract, - headersMapper: Mappers.TenantAccessUpdateHeaders + headersMapper: Mappers.TenantAccessUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters70, + requestBody: Parameters.parameters84, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const regeneratePrimaryKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/regeneratePrimaryKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/regeneratePrimaryKey", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -474,20 +468,19 @@ const regeneratePrimaryKeyOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const regenerateSecondaryKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/regenerateSecondaryKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/regenerateSecondaryKey", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -495,23 +488,22 @@ const regenerateSecondaryKeyOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSecretsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/listSecrets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/listSecrets", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.AccessInformationSecretsContract, - headersMapper: Mappers.TenantAccessListSecretsHeaders + headersMapper: Mappers.TenantAccessListSecretsHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -519,29 +511,29 @@ const listSecretsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessInformationCollection + bodyMapper: Mappers.AccessInformationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts index 9d7f1db29713..413bb95fd927 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts @@ -14,7 +14,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { AccessIdName, TenantAccessGitRegeneratePrimaryKeyOptionalParams, - TenantAccessGitRegenerateSecondaryKeyOptionalParams + TenantAccessGitRegenerateSecondaryKeyOptionalParams, } from "../models"; /** Class containing TenantAccessGit operations. */ @@ -40,11 +40,11 @@ export class TenantAccessGitImpl implements TenantAccessGit { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessGitRegeneratePrimaryKeyOptionalParams + options?: TenantAccessGitRegeneratePrimaryKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, accessName, options }, - regeneratePrimaryKeyOperationSpec + regeneratePrimaryKeyOperationSpec, ); } @@ -59,11 +59,11 @@ export class TenantAccessGitImpl implements TenantAccessGit { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessGitRegenerateSecondaryKeyOptionalParams + options?: TenantAccessGitRegenerateSecondaryKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, accessName, options }, - regenerateSecondaryKeyOperationSpec + regenerateSecondaryKeyOperationSpec, ); } } @@ -71,14 +71,13 @@ export class TenantAccessGitImpl implements TenantAccessGit { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const regeneratePrimaryKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/regeneratePrimaryKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/regeneratePrimaryKey", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -86,20 +85,19 @@ const regeneratePrimaryKeyOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const regenerateSecondaryKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/regenerateSecondaryKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/regenerateSecondaryKey", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -107,8 +105,8 @@ const regenerateSecondaryKeyOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts index 15867ab82145..96b311c7e977 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts @@ -14,7 +14,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -28,7 +28,7 @@ import { TenantConfigurationValidateOptionalParams, TenantConfigurationValidateResponse, TenantConfigurationGetSyncStateOptionalParams, - TenantConfigurationGetSyncStateResponse + TenantConfigurationGetSyncStateResponse, } from "../models"; /** Class containing TenantConfiguration operations. */ @@ -57,7 +57,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, - options?: TenantConfigurationDeployOptionalParams + options?: TenantConfigurationDeployOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -66,21 +66,20 @@ export class TenantConfigurationImpl implements TenantConfiguration { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -89,8 +88,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -98,8 +97,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -110,9 +109,9 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName, configurationName, parameters, - options + options, }, - spec: deployOperationSpec + spec: deployOperationSpec, }); const poller = await createHttpPoller< TenantConfigurationDeployResponse, @@ -120,7 +119,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -140,14 +139,14 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, - options?: TenantConfigurationDeployOptionalParams + options?: TenantConfigurationDeployOptionalParams, ): Promise { const poller = await this.beginDeploy( resourceGroupName, serviceName, configurationName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -166,7 +165,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: SaveConfigurationParameter, - options?: TenantConfigurationSaveOptionalParams + options?: TenantConfigurationSaveOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -175,21 +174,20 @@ export class TenantConfigurationImpl implements TenantConfiguration { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -198,8 +196,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -207,8 +205,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -219,9 +217,9 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName, configurationName, parameters, - options + options, }, - spec: saveOperationSpec + spec: saveOperationSpec, }); const poller = await createHttpPoller< TenantConfigurationSaveResponse, @@ -229,7 +227,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -249,14 +247,14 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: SaveConfigurationParameter, - options?: TenantConfigurationSaveOptionalParams + options?: TenantConfigurationSaveOptionalParams, ): Promise { const poller = await this.beginSave( resourceGroupName, serviceName, configurationName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -275,7 +273,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, - options?: TenantConfigurationValidateOptionalParams + options?: TenantConfigurationValidateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -284,21 +282,20 @@ export class TenantConfigurationImpl implements TenantConfiguration { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -307,8 +304,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -316,8 +313,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -328,9 +325,9 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName, configurationName, parameters, - options + options, }, - spec: validateOperationSpec + spec: validateOperationSpec, }); const poller = await createHttpPoller< TenantConfigurationValidateResponse, @@ -338,7 +335,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -358,14 +355,14 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, - options?: TenantConfigurationValidateOptionalParams + options?: TenantConfigurationValidateOptionalParams, ): Promise { const poller = await this.beginValidate( resourceGroupName, serviceName, configurationName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -382,11 +379,11 @@ export class TenantConfigurationImpl implements TenantConfiguration { resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, - options?: TenantConfigurationGetSyncStateOptionalParams + options?: TenantConfigurationGetSyncStateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, configurationName, options }, - getSyncStateOperationSpec + getSyncStateOperationSpec, ); } } @@ -394,118 +391,114 @@ export class TenantConfigurationImpl implements TenantConfiguration { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const deployOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/deploy", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/deploy", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 201: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 202: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 204: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters71, + requestBody: Parameters.parameters85, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.configurationName + Parameters.configurationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const saveOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/save", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/save", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 201: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 202: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 204: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters72, + requestBody: Parameters.parameters86, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.configurationName + Parameters.configurationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const validateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/validate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/validate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 201: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 202: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 204: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters71, + requestBody: Parameters.parameters85, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.configurationName + Parameters.configurationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getSyncStateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/syncState", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/syncState", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TenantConfigurationSyncStateContract + bodyMapper: Mappers.TenantConfigurationSyncStateContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -513,8 +506,8 @@ const getSyncStateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.configurationName + Parameters.configurationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantSettings.ts index b46350a3c9ab..399eab1d9a20 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantSettings.ts @@ -21,7 +21,7 @@ import { SettingsTypeName, TenantSettingsGetOptionalParams, TenantSettingsGetResponse, - TenantSettingsListByServiceNextResponse + TenantSettingsListByServiceNextResponse, } from "../models"; /// @@ -46,12 +46,12 @@ export class TenantSettingsImpl implements TenantSettings { public listByService( resourceGroupName: string, serviceName: string, - options?: TenantSettingsListByServiceOptionalParams + options?: TenantSettingsListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -68,9 +68,9 @@ export class TenantSettingsImpl implements TenantSettings { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -78,7 +78,7 @@ export class TenantSettingsImpl implements TenantSettings { resourceGroupName: string, serviceName: string, options?: TenantSettingsListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TenantSettingsListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -86,7 +86,7 @@ export class TenantSettingsImpl implements TenantSettings { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -98,7 +98,7 @@ export class TenantSettingsImpl implements TenantSettings { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -110,12 +110,12 @@ export class TenantSettingsImpl implements TenantSettings { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: TenantSettingsListByServiceOptionalParams + options?: TenantSettingsListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -130,11 +130,11 @@ export class TenantSettingsImpl implements TenantSettings { private _listByService( resourceGroupName: string, serviceName: string, - options?: TenantSettingsListByServiceOptionalParams + options?: TenantSettingsListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -149,11 +149,11 @@ export class TenantSettingsImpl implements TenantSettings { resourceGroupName: string, serviceName: string, settingsType: SettingsTypeName, - options?: TenantSettingsGetOptionalParams + options?: TenantSettingsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, settingsType, options }, - getOperationSpec + getOperationSpec, ); } @@ -168,11 +168,11 @@ export class TenantSettingsImpl implements TenantSettings { resourceGroupName: string, serviceName: string, nextLink: string, - options?: TenantSettingsListByServiceNextOptionalParams + options?: TenantSettingsListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -180,39 +180,37 @@ export class TenantSettingsImpl implements TenantSettings { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/settings", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/settings", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TenantSettingsCollection + bodyMapper: Mappers.TenantSettingsCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.filter, Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/settings/{settingsType}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/settings/{settingsType}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.TenantSettingsContract, - headersMapper: Mappers.TenantSettingsGetHeaders + headersMapper: Mappers.TenantSettingsGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -220,29 +218,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.settingsType + Parameters.settingsType, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TenantSettingsCollection + bodyMapper: Mappers.TenantSettingsCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/user.ts b/sdk/apimanagement/arm-apimanagement/src/operations/user.ts index 8aa6945fedab..b35810f27c0d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/user.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/user.ts @@ -13,6 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { UserContract, UserListByServiceNextOptionalParams, @@ -29,12 +35,13 @@ import { UserUpdateOptionalParams, UserUpdateResponse, UserDeleteOptionalParams, + UserDeleteResponse, UserGenerateSsoUrlOptionalParams, UserGenerateSsoUrlResponse, UserTokenParameters, UserGetSharedAccessTokenOptionalParams, UserGetSharedAccessTokenResponse, - UserListByServiceNextResponse + UserListByServiceNextResponse, } from "../models"; /// @@ -59,12 +66,12 @@ export class UserImpl implements User { public listByService( resourceGroupName: string, serviceName: string, - options?: UserListByServiceOptionalParams + options?: UserListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -81,9 +88,9 @@ export class UserImpl implements User { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -91,7 +98,7 @@ export class UserImpl implements User { resourceGroupName: string, serviceName: string, options?: UserListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: UserListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -99,7 +106,7 @@ export class UserImpl implements User { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -111,7 +118,7 @@ export class UserImpl implements User { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -123,12 +130,12 @@ export class UserImpl implements User { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: UserListByServiceOptionalParams + options?: UserListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -143,11 +150,11 @@ export class UserImpl implements User { private _listByService( resourceGroupName: string, serviceName: string, - options?: UserListByServiceOptionalParams + options?: UserListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -162,11 +169,11 @@ export class UserImpl implements User { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGetEntityTagOptionalParams + options?: UserGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -181,11 +188,11 @@ export class UserImpl implements User { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGetOptionalParams + options?: UserGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, options }, - getOperationSpec + getOperationSpec, ); } @@ -202,11 +209,11 @@ export class UserImpl implements User { serviceName: string, userId: string, parameters: UserCreateParameters, - options?: UserCreateOrUpdateOptionalParams + options?: UserCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -226,11 +233,11 @@ export class UserImpl implements User { userId: string, ifMatch: string, parameters: UserUpdateParameters, - options?: UserUpdateOptionalParams + options?: UserUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -243,17 +250,94 @@ export class UserImpl implements User { * response of the GET request or it should be * for unconditional update. * @param options The options parameters. */ - delete( + async beginDelete( resourceGroupName: string, serviceName: string, userId: string, ifMatch: string, - options?: UserDeleteOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, userId, ifMatch, options }, - deleteOperationSpec + options?: UserDeleteOptionalParams, + ): Promise< + SimplePollerLike, UserDeleteResponse> + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, userId, ifMatch, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + UserDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Deletes specific user. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + userId: string, + ifMatch: string, + options?: UserDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + serviceName, + userId, + ifMatch, + options, ); + return poller.pollUntilDone(); } /** @@ -268,11 +352,11 @@ export class UserImpl implements User { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGenerateSsoUrlOptionalParams + options?: UserGenerateSsoUrlOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, options }, - generateSsoUrlOperationSpec + generateSsoUrlOperationSpec, ); } @@ -289,11 +373,11 @@ export class UserImpl implements User { serviceName: string, userId: string, parameters: UserTokenParameters, - options?: UserGetSharedAccessTokenOptionalParams + options?: UserGetSharedAccessTokenOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, parameters, options }, - getSharedAccessTokenOperationSpec + getSharedAccessTokenOperationSpec, ); } @@ -308,11 +392,11 @@ export class UserImpl implements User { resourceGroupName: string, serviceName: string, nextLink: string, - options?: UserListByServiceNextOptionalParams + options?: UserListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -320,44 +404,42 @@ export class UserImpl implements User { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UserCollection + bodyMapper: Mappers.UserCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.expandGroups + Parameters.expandGroups, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.UserGetEntityTagHeaders + headersMapper: Mappers.UserGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -365,23 +447,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.UserContract, - headersMapper: Mappers.UserGetHeaders + headersMapper: Mappers.UserGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -389,113 +470,119 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.UserContract, - headersMapper: Mappers.UserCreateOrUpdateHeaders + headersMapper: Mappers.UserCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.UserContract, - headersMapper: Mappers.UserCreateOrUpdateHeaders + headersMapper: Mappers.UserCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters73, + requestBody: Parameters.parameters87, queryParameters: [Parameters.apiVersion, Parameters.notify], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.UserContract, - headersMapper: Mappers.UserUpdateHeaders + headersMapper: Mappers.UserUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters74, + requestBody: Parameters.parameters88, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", httpMethod: "DELETE", responses: { - 200: {}, - 204: {}, + 200: { + headersMapper: Mappers.UserDeleteHeaders, + }, + 201: { + headersMapper: Mappers.UserDeleteHeaders, + }, + 202: { + headersMapper: Mappers.UserDeleteHeaders, + }, + 204: { + headersMapper: Mappers.UserDeleteHeaders, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.deleteSubscriptions, Parameters.notify, - Parameters.appType + Parameters.appType, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const generateSsoUrlOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/generateSsoUrl", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/generateSsoUrl", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.GenerateSsoUrlResult + bodyMapper: Mappers.GenerateSsoUrlResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -503,54 +590,53 @@ const generateSsoUrlOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getSharedAccessTokenOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/token", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/token", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.UserTokenResult + bodyMapper: Mappers.UserTokenResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters75, + requestBody: Parameters.parameters89, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UserCollection + bodyMapper: Mappers.UserCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userConfirmationPassword.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userConfirmationPassword.ts index 0a9175427c03..de788e094561 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/userConfirmationPassword.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/userConfirmationPassword.ts @@ -36,11 +36,11 @@ export class UserConfirmationPasswordImpl implements UserConfirmationPassword { resourceGroupName: string, serviceName: string, userId: string, - options?: UserConfirmationPasswordSendOptionalParams + options?: UserConfirmationPasswordSendOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, options }, - sendOperationSpec + sendOperationSpec, ); } } @@ -48,14 +48,13 @@ export class UserConfirmationPasswordImpl implements UserConfirmationPassword { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const sendOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/confirmations/password/send", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/confirmations/password/send", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.appType], urlParameters: [ @@ -63,8 +62,8 @@ const sendOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userGroup.ts index 1627954cbe7a..4d2615917173 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/userGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/userGroup.ts @@ -18,7 +18,7 @@ import { UserGroupListNextOptionalParams, UserGroupListOptionalParams, UserGroupListResponse, - UserGroupListNextResponse + UserGroupListNextResponse, } from "../models"; /// @@ -45,13 +45,13 @@ export class UserGroupImpl implements UserGroup { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGroupListOptionalParams + options?: UserGroupListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, userId, - options + options, ); return { next() { @@ -69,9 +69,9 @@ export class UserGroupImpl implements UserGroup { serviceName, userId, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class UserGroupImpl implements UserGroup { serviceName: string, userId: string, options?: UserGroupListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: UserGroupListResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class UserGroupImpl implements UserGroup { resourceGroupName, serviceName, userId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -102,7 +102,7 @@ export class UserGroupImpl implements UserGroup { serviceName, userId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,13 +115,13 @@ export class UserGroupImpl implements UserGroup { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGroupListOptionalParams + options?: UserGroupListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, userId, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class UserGroupImpl implements UserGroup { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGroupListOptionalParams + options?: UserGroupListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, options }, - listOperationSpec + listOperationSpec, ); } @@ -159,11 +159,11 @@ export class UserGroupImpl implements UserGroup { serviceName: string, userId: string, nextLink: string, - options?: UserGroupListNextOptionalParams + options?: UserGroupListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -171,43 +171,42 @@ export class UserGroupImpl implements UserGroup { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/groups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/groups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GroupCollection + bodyMapper: Mappers.GroupCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GroupCollection + bodyMapper: Mappers.GroupCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -215,8 +214,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts index 4ff92b553f94..e2449d1ab725 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts @@ -18,7 +18,7 @@ import { UserIdentitiesListNextOptionalParams, UserIdentitiesListOptionalParams, UserIdentitiesListResponse, - UserIdentitiesListNextResponse + UserIdentitiesListNextResponse, } from "../models"; /// @@ -45,13 +45,13 @@ export class UserIdentitiesImpl implements UserIdentities { resourceGroupName: string, serviceName: string, userId: string, - options?: UserIdentitiesListOptionalParams + options?: UserIdentitiesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, userId, - options + options, ); return { next() { @@ -69,9 +69,9 @@ export class UserIdentitiesImpl implements UserIdentities { serviceName, userId, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class UserIdentitiesImpl implements UserIdentities { serviceName: string, userId: string, options?: UserIdentitiesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: UserIdentitiesListResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class UserIdentitiesImpl implements UserIdentities { resourceGroupName, serviceName, userId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -102,7 +102,7 @@ export class UserIdentitiesImpl implements UserIdentities { serviceName, userId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,13 +115,13 @@ export class UserIdentitiesImpl implements UserIdentities { resourceGroupName: string, serviceName: string, userId: string, - options?: UserIdentitiesListOptionalParams + options?: UserIdentitiesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, userId, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class UserIdentitiesImpl implements UserIdentities { resourceGroupName: string, serviceName: string, userId: string, - options?: UserIdentitiesListOptionalParams + options?: UserIdentitiesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, options }, - listOperationSpec + listOperationSpec, ); } @@ -159,11 +159,11 @@ export class UserIdentitiesImpl implements UserIdentities { serviceName: string, userId: string, nextLink: string, - options?: UserIdentitiesListNextOptionalParams + options?: UserIdentitiesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -171,16 +171,15 @@ export class UserIdentitiesImpl implements UserIdentities { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/identities", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/identities", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UserIdentityCollection + bodyMapper: Mappers.UserIdentityCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -188,21 +187,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UserIdentityCollection + bodyMapper: Mappers.UserIdentityCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -210,8 +209,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts index 8e4838abc76a..c5e7f97ed503 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts @@ -20,7 +20,7 @@ import { UserSubscriptionListResponse, UserSubscriptionGetOptionalParams, UserSubscriptionGetResponse, - UserSubscriptionListNextResponse + UserSubscriptionListNextResponse, } from "../models"; /// @@ -47,13 +47,13 @@ export class UserSubscriptionImpl implements UserSubscription { resourceGroupName: string, serviceName: string, userId: string, - options?: UserSubscriptionListOptionalParams + options?: UserSubscriptionListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, userId, - options + options, ); return { next() { @@ -71,9 +71,9 @@ export class UserSubscriptionImpl implements UserSubscription { serviceName, userId, options, - settings + settings, ); - } + }, }; } @@ -82,7 +82,7 @@ export class UserSubscriptionImpl implements UserSubscription { serviceName: string, userId: string, options?: UserSubscriptionListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: UserSubscriptionListResponse; let continuationToken = settings?.continuationToken; @@ -91,7 +91,7 @@ export class UserSubscriptionImpl implements UserSubscription { resourceGroupName, serviceName, userId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -104,7 +104,7 @@ export class UserSubscriptionImpl implements UserSubscription { serviceName, userId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,13 +117,13 @@ export class UserSubscriptionImpl implements UserSubscription { resourceGroupName: string, serviceName: string, userId: string, - options?: UserSubscriptionListOptionalParams + options?: UserSubscriptionListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, userId, - options + options, )) { yield* page; } @@ -140,11 +140,11 @@ export class UserSubscriptionImpl implements UserSubscription { resourceGroupName: string, serviceName: string, userId: string, - options?: UserSubscriptionListOptionalParams + options?: UserSubscriptionListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, options }, - listOperationSpec + listOperationSpec, ); } @@ -162,11 +162,11 @@ export class UserSubscriptionImpl implements UserSubscription { serviceName: string, userId: string, sid: string, - options?: UserSubscriptionGetOptionalParams + options?: UserSubscriptionGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, sid, options }, - getOperationSpec + getOperationSpec, ); } @@ -183,11 +183,11 @@ export class UserSubscriptionImpl implements UserSubscription { serviceName: string, userId: string, nextLink: string, - options?: UserSubscriptionListNextOptionalParams + options?: UserSubscriptionListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -195,45 +195,43 @@ export class UserSubscriptionImpl implements UserSubscription { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/subscriptions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/subscriptions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionCollection + bodyMapper: Mappers.SubscriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/subscriptions/{sid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/subscriptions/{sid}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.SubscriptionContract, - headersMapper: Mappers.UserSubscriptionGetHeaders + headersMapper: Mappers.UserSubscriptionGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -242,21 +240,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.userId, - Parameters.sid + Parameters.sid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionCollection + bodyMapper: Mappers.SubscriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -264,8 +262,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspace.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspace.ts new file mode 100644 index 000000000000..b129804bdb8d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspace.ts @@ -0,0 +1,460 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { Workspace } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + WorkspaceContract, + WorkspaceListByServiceNextOptionalParams, + WorkspaceListByServiceOptionalParams, + WorkspaceListByServiceResponse, + WorkspaceGetEntityTagOptionalParams, + WorkspaceGetEntityTagResponse, + WorkspaceGetOptionalParams, + WorkspaceGetResponse, + WorkspaceCreateOrUpdateOptionalParams, + WorkspaceCreateOrUpdateResponse, + WorkspaceUpdateOptionalParams, + WorkspaceUpdateResponse, + WorkspaceDeleteOptionalParams, + WorkspaceListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing Workspace operations. */ +export class WorkspaceImpl implements Workspace { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class Workspace class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all workspaces of the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + options?: WorkspaceListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + options?: WorkspaceListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + options?: WorkspaceListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + )) { + yield* page; + } + } + + /** + * Lists all workspaces of the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + options?: WorkspaceListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the workspace specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the workspace specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + getOperationSpec, + ); + } + + /** + * Creates a new workspace or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + parameters: WorkspaceContract, + options?: WorkspaceCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, parameters, options }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the details of the workspace specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Workspace Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + ifMatch: string, + parameters: WorkspaceContract, + options?: WorkspaceUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes the specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + ifMatch: string, + options?: WorkspaceDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, ifMatch, options }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: WorkspaceListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceContract, + headersMapper: Mappers.WorkspaceGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceContract, + headersMapper: Mappers.WorkspaceCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.WorkspaceContract, + headersMapper: Mappers.WorkspaceCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters90, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceContract, + headersMapper: Mappers.WorkspaceUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters90, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApi.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApi.ts new file mode 100644 index 000000000000..1483fe0faf89 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApi.ts @@ -0,0 +1,610 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceApi } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ApiContract, + WorkspaceApiListByServiceNextOptionalParams, + WorkspaceApiListByServiceOptionalParams, + WorkspaceApiListByServiceResponse, + WorkspaceApiGetEntityTagOptionalParams, + WorkspaceApiGetEntityTagResponse, + WorkspaceApiGetOptionalParams, + WorkspaceApiGetResponse, + ApiCreateOrUpdateParameter, + WorkspaceApiCreateOrUpdateOptionalParams, + WorkspaceApiCreateOrUpdateResponse, + ApiUpdateContract, + WorkspaceApiUpdateOptionalParams, + WorkspaceApiUpdateResponse, + WorkspaceApiDeleteOptionalParams, + WorkspaceApiListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApi operations. */ +export class WorkspaceApiImpl implements WorkspaceApi { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApi class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all APIs of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists all APIs of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + getOperationSpec, + ); + } + + /** + * Creates new or updates existing specified API of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + parameters: ApiCreateOrUpdateParameter, + options?: WorkspaceApiCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceApiCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + workspaceId, + apiId, + parameters, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceApiCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Creates new or updates existing specified API of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + parameters: ApiCreateOrUpdateParameter, + options?: WorkspaceApiCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + workspaceId, + apiId, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Updates the specified API of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters API Update Contract parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + ifMatch: string, + parameters: ApiUpdateContract, + options?: WorkspaceApiUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes the specified API of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + ifMatch: string, + options?: WorkspaceApiDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, ifMatch, options }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceApiListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.tags, + Parameters.expandApiVersionSet, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.WorkspaceApiGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.WorkspaceApiCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.WorkspaceApiCreateOrUpdateHeaders, + }, + 202: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.WorkspaceApiCreateOrUpdateHeaders, + }, + 204: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.WorkspaceApiCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.WorkspaceApiUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.deleteRevisions], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiExport.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiExport.ts new file mode 100644 index 000000000000..d4c52b37dd4b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiExport.ts @@ -0,0 +1,99 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { WorkspaceApiExport } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ExportFormat, + ExportApi, + WorkspaceApiExportGetOptionalParams, + WorkspaceApiExportGetResponse, +} from "../models"; + +/** Class containing WorkspaceApiExport operations. */ +export class WorkspaceApiExportImpl implements WorkspaceApiExport { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiExport class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets the details of the API specified by its identifier in the format specified to the Storage Blob + * with SAS Key valid for 5 minutes. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param format Format in which to export the Api Details to the Storage Blob with Sas Key valid for 5 + * minutes. + * @param exportParam Query parameter required to export the API details. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + format: ExportFormat, + exportParam: ExportApi, + options?: WorkspaceApiExportGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + format, + exportParam, + options, + }, + getOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiExportResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.format1, + Parameters.exportParam, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperation.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperation.ts new file mode 100644 index 000000000000..3d921074cedc --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperation.ts @@ -0,0 +1,570 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceApiOperation } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + OperationContract, + WorkspaceApiOperationListByApiNextOptionalParams, + WorkspaceApiOperationListByApiOptionalParams, + WorkspaceApiOperationListByApiResponse, + WorkspaceApiOperationGetEntityTagOptionalParams, + WorkspaceApiOperationGetEntityTagResponse, + WorkspaceApiOperationGetOptionalParams, + WorkspaceApiOperationGetResponse, + WorkspaceApiOperationCreateOrUpdateOptionalParams, + WorkspaceApiOperationCreateOrUpdateResponse, + OperationUpdateContract, + WorkspaceApiOperationUpdateOptionalParams, + WorkspaceApiOperationUpdateResponse, + WorkspaceApiOperationDeleteOptionalParams, + WorkspaceApiOperationListByApiNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApiOperation operations. */ +export class WorkspaceApiOperationImpl implements WorkspaceApiOperation { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiOperation class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the operations for the specified API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + public listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiOperationListByApiOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByApiPagingAll( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + settings, + ); + }, + }; + } + + private async *listByApiPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiOperationListByApiOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiOperationListByApiResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByApi( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByApiNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByApiPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiOperationListByApiOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the operations for the specified API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + private _listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiOperationListByApiOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + listByApiOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the API operation specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options, + }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the API Operation specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options, + }, + getOperationSpec, + ); + } + + /** + * Creates a new operation in the API or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + parameters: OperationContract, + options?: WorkspaceApiOperationCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the details of the operation in the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters API Operation Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + ifMatch: string, + parameters: OperationUpdateContract, + options?: WorkspaceApiOperationUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes the specified operation in the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + ifMatch: string, + options?: WorkspaceApiOperationDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByApiNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param nextLink The nextLink from the previous successful call to the ListByApi method. + * @param options The options parameters. + */ + private _listByApiNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + nextLink: string, + options?: WorkspaceApiOperationListByApiNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, nextLink, options }, + listByApiNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByApiOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.tags, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiOperationGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationContract, + headersMapper: Mappers.WorkspaceApiOperationGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.OperationContract, + headersMapper: Mappers.WorkspaceApiOperationCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.OperationContract, + headersMapper: Mappers.WorkspaceApiOperationCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters5, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.OperationContract, + headersMapper: Mappers.WorkspaceApiOperationUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters6, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByApiNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperationPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperationPolicy.ts new file mode 100644 index 000000000000..d7be73a7482f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperationPolicy.ts @@ -0,0 +1,542 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceApiOperationPolicy } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + PolicyContract, + WorkspaceApiOperationPolicyListByOperationNextOptionalParams, + WorkspaceApiOperationPolicyListByOperationOptionalParams, + WorkspaceApiOperationPolicyListByOperationResponse, + PolicyIdName, + WorkspaceApiOperationPolicyGetEntityTagOptionalParams, + WorkspaceApiOperationPolicyGetEntityTagResponse, + WorkspaceApiOperationPolicyGetOptionalParams, + WorkspaceApiOperationPolicyGetResponse, + WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams, + WorkspaceApiOperationPolicyCreateOrUpdateResponse, + WorkspaceApiOperationPolicyDeleteOptionalParams, + WorkspaceApiOperationPolicyListByOperationNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApiOperationPolicy operations. */ +export class WorkspaceApiOperationPolicyImpl + implements WorkspaceApiOperationPolicy +{ + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiOperationPolicy class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Get the list of policy configuration at the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + public listByOperation( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationPolicyListByOperationOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByOperationPagingAll( + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByOperationPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options, + settings, + ); + }, + }; + } + + private async *listByOperationPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationPolicyListByOperationOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiOperationPolicyListByOperationResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByOperation( + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByOperationNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByOperationPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationPolicyListByOperationOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByOperationPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options, + )) { + yield* page; + } + } + + /** + * Get the list of policy configuration at the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + private _listByOperation( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationPolicyListByOperationOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options, + }, + listByOperationOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the API operation policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + options?: WorkspaceApiOperationPolicyGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + policyId, + options, + }, + getEntityTagOperationSpec, + ); + } + + /** + * Get the policy configuration at the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + options?: WorkspaceApiOperationPolicyGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + policyId, + options, + }, + getOperationSpec, + ); + } + + /** + * Creates or updates policy configuration for the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + policyId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the policy configuration at the Api Operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspaceApiOperationPolicyDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + policyId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByOperationNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param nextLink The nextLink from the previous successful call to the ListByOperation method. + * @param options The options parameters. + */ + private _listByOperationNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + nextLink: string, + options?: WorkspaceApiOperationPolicyListByOperationNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + nextLink, + options, + }, + listByOperationNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByOperationOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}/policies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiOperationPolicyGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceApiOperationPolicyGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.format], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceApiOperationPolicyCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceApiOperationPolicyCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByOperationNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiPolicy.ts new file mode 100644 index 000000000000..d68857c8a415 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiPolicy.ts @@ -0,0 +1,473 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceApiPolicy } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + PolicyContract, + WorkspaceApiPolicyListByApiNextOptionalParams, + WorkspaceApiPolicyListByApiOptionalParams, + WorkspaceApiPolicyListByApiResponse, + PolicyIdName, + WorkspaceApiPolicyGetEntityTagOptionalParams, + WorkspaceApiPolicyGetEntityTagResponse, + WorkspaceApiPolicyGetOptionalParams, + WorkspaceApiPolicyGetResponse, + WorkspaceApiPolicyCreateOrUpdateOptionalParams, + WorkspaceApiPolicyCreateOrUpdateResponse, + WorkspaceApiPolicyDeleteOptionalParams, + WorkspaceApiPolicyListByApiNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApiPolicy operations. */ +export class WorkspaceApiPolicyImpl implements WorkspaceApiPolicy { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiPolicy class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + public listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiPolicyListByApiOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByApiPagingAll( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + settings, + ); + }, + }; + } + + private async *listByApiPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiPolicyListByApiOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiPolicyListByApiResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByApi( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByApiNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByApiPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiPolicyListByApiOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + )) { + yield* page; + } + } + + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + private _listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiPolicyListByApiOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + listByApiOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the API policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + options?: WorkspaceApiPolicyGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, policyId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + options?: WorkspaceApiPolicyGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, policyId, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates policy configuration for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspaceApiPolicyCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + policyId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the policy configuration at the Api. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspaceApiPolicyDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + policyId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByApiNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param nextLink The nextLink from the previous successful call to the ListByApi method. + * @param options The options parameters. + */ + private _listByApiNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + nextLink: string, + options?: WorkspaceApiPolicyListByApiNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, nextLink, options }, + listByApiNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByApiOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/policies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/policies/{policyId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiPolicyGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/policies/{policyId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceApiPolicyGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.format], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/policies/{policyId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceApiPolicyCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceApiPolicyCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/policies/{policyId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByApiNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRelease.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRelease.ts new file mode 100644 index 000000000000..c1f2a4f0eb09 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRelease.ts @@ -0,0 +1,564 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceApiRelease } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ApiReleaseContract, + WorkspaceApiReleaseListByServiceNextOptionalParams, + WorkspaceApiReleaseListByServiceOptionalParams, + WorkspaceApiReleaseListByServiceResponse, + WorkspaceApiReleaseGetEntityTagOptionalParams, + WorkspaceApiReleaseGetEntityTagResponse, + WorkspaceApiReleaseGetOptionalParams, + WorkspaceApiReleaseGetResponse, + WorkspaceApiReleaseCreateOrUpdateOptionalParams, + WorkspaceApiReleaseCreateOrUpdateResponse, + WorkspaceApiReleaseUpdateOptionalParams, + WorkspaceApiReleaseUpdateResponse, + WorkspaceApiReleaseDeleteOptionalParams, + WorkspaceApiReleaseListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApiRelease operations. */ +export class WorkspaceApiReleaseImpl implements WorkspaceApiRelease { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiRelease class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all releases of an API. An API release is created when making an API Revision current. + * Releases are also used to rollback to previous revisions. Results will be paged and can be + * constrained by the $top and $skip parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiReleaseListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiReleaseListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiReleaseListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiReleaseListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + )) { + yield* page; + } + } + + /** + * Lists all releases of an API. An API release is created when making an API Revision current. + * Releases are also used to rollback to previous revisions. Results will be paged and can be + * constrained by the $top and $skip parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiReleaseListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Returns the etag of an API release. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + options?: WorkspaceApiReleaseGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + releaseId, + options, + }, + getEntityTagOperationSpec, + ); + } + + /** + * Returns the details of an API release. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + options?: WorkspaceApiReleaseGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + releaseId, + options, + }, + getOperationSpec, + ); + } + + /** + * Creates a new Release for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + parameters: ApiReleaseContract, + options?: WorkspaceApiReleaseCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + releaseId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the details of the release of the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters API Release Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + ifMatch: string, + parameters: ApiReleaseContract, + options?: WorkspaceApiReleaseUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + releaseId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes the specified release in the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + ifMatch: string, + options?: WorkspaceApiReleaseDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + releaseId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + nextLink: string, + options?: WorkspaceApiReleaseListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiReleaseCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases/{releaseId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiReleaseGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.releaseId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases/{releaseId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiReleaseContract, + headersMapper: Mappers.WorkspaceApiReleaseGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.releaseId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases/{releaseId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ApiReleaseContract, + headersMapper: Mappers.WorkspaceApiReleaseCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.ApiReleaseContract, + headersMapper: Mappers.WorkspaceApiReleaseCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters4, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.releaseId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases/{releaseId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ApiReleaseContract, + headersMapper: Mappers.WorkspaceApiReleaseUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters4, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.releaseId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases/{releaseId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.releaseId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiReleaseCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.apiId1, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRevision.ts new file mode 100644 index 000000000000..543ebe72485f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRevision.ts @@ -0,0 +1,239 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceApiRevision } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ApiRevisionContract, + WorkspaceApiRevisionListByServiceNextOptionalParams, + WorkspaceApiRevisionListByServiceOptionalParams, + WorkspaceApiRevisionListByServiceResponse, + WorkspaceApiRevisionListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApiRevision operations. */ +export class WorkspaceApiRevisionImpl implements WorkspaceApiRevision { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiRevision class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all revisions of an API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiRevisionListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiRevisionListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiRevisionListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiRevisionListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + )) { + yield* page; + } + } + + /** + * Lists all revisions of an API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiRevisionListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + listByServiceOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + nextLink: string, + options?: WorkspaceApiRevisionListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/revisions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiRevisionCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiRevisionCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.apiId1, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiSchema.ts new file mode 100644 index 000000000000..08f7a072e641 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiSchema.ts @@ -0,0 +1,578 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceApiSchema } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + SchemaContract, + WorkspaceApiSchemaListByApiNextOptionalParams, + WorkspaceApiSchemaListByApiOptionalParams, + WorkspaceApiSchemaListByApiResponse, + WorkspaceApiSchemaGetEntityTagOptionalParams, + WorkspaceApiSchemaGetEntityTagResponse, + WorkspaceApiSchemaGetOptionalParams, + WorkspaceApiSchemaGetResponse, + WorkspaceApiSchemaCreateOrUpdateOptionalParams, + WorkspaceApiSchemaCreateOrUpdateResponse, + WorkspaceApiSchemaDeleteOptionalParams, + WorkspaceApiSchemaListByApiNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApiSchema operations. */ +export class WorkspaceApiSchemaImpl implements WorkspaceApiSchema { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiSchema class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Get the schema configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + public listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiSchemaListByApiOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByApiPagingAll( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + settings, + ); + }, + }; + } + + private async *listByApiPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiSchemaListByApiOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiSchemaListByApiResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByApi( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByApiNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByApiPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiSchemaListByApiOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + )) { + yield* page; + } + } + + /** + * Get the schema configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + private _listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiSchemaListByApiOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + listByApiOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + options?: WorkspaceApiSchemaGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, schemaId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Get the schema configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + options?: WorkspaceApiSchemaGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, schemaId, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates schema configuration for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters The schema contents to apply. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + parameters: SchemaContract, + options?: WorkspaceApiSchemaCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceApiSchemaCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + workspaceId, + apiId, + schemaId, + parameters, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceApiSchemaCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates schema configuration for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters The schema contents to apply. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + parameters: SchemaContract, + options?: WorkspaceApiSchemaCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + workspaceId, + apiId, + schemaId, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Deletes the schema configuration at the Api. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + ifMatch: string, + options?: WorkspaceApiSchemaDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + schemaId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByApiNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param nextLink The nextLink from the previous successful call to the ListByApi method. + * @param options The options parameters. + */ + private _listByApiNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + nextLink: string, + options?: WorkspaceApiSchemaListByApiNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, nextLink, options }, + listByApiNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByApiOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/schemas", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SchemaCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/schemas/{schemaId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiSchemaGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.schemaId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/schemas/{schemaId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.WorkspaceApiSchemaGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.schemaId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/schemas/{schemaId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.WorkspaceApiSchemaCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.WorkspaceApiSchemaCreateOrUpdateHeaders, + }, + 202: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.WorkspaceApiSchemaCreateOrUpdateHeaders, + }, + 204: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.WorkspaceApiSchemaCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters11, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.schemaId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/schemas/{schemaId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.force], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.schemaId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByApiNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SchemaCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiVersionSet.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiVersionSet.ts new file mode 100644 index 000000000000..a0eff3085cd2 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiVersionSet.ts @@ -0,0 +1,514 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceApiVersionSet } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ApiVersionSetContract, + WorkspaceApiVersionSetListByServiceNextOptionalParams, + WorkspaceApiVersionSetListByServiceOptionalParams, + WorkspaceApiVersionSetListByServiceResponse, + WorkspaceApiVersionSetGetEntityTagOptionalParams, + WorkspaceApiVersionSetGetEntityTagResponse, + WorkspaceApiVersionSetGetOptionalParams, + WorkspaceApiVersionSetGetResponse, + WorkspaceApiVersionSetCreateOrUpdateOptionalParams, + WorkspaceApiVersionSetCreateOrUpdateResponse, + ApiVersionSetUpdateParameters, + WorkspaceApiVersionSetUpdateOptionalParams, + WorkspaceApiVersionSetUpdateResponse, + WorkspaceApiVersionSetDeleteOptionalParams, + WorkspaceApiVersionSetListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApiVersionSet operations. */ +export class WorkspaceApiVersionSetImpl implements WorkspaceApiVersionSet { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiVersionSet class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of API Version Sets in the specified workspace with a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiVersionSetListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiVersionSetListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiVersionSetListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiVersionSetListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of API Version Sets in the specified workspace with a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiVersionSetListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the Api Version Set specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + options?: WorkspaceApiVersionSetGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, versionSetId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the Api Version Set specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + options?: WorkspaceApiVersionSetGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, versionSetId, options }, + getOperationSpec, + ); + } + + /** + * Creates or Updates a Api Version Set. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + parameters: ApiVersionSetContract, + options?: WorkspaceApiVersionSetCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + versionSetId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the details of the Api VersionSet specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + ifMatch: string, + parameters: ApiVersionSetUpdateParameters, + options?: WorkspaceApiVersionSetUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + versionSetId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes specific Api Version Set. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + ifMatch: string, + options?: WorkspaceApiVersionSetDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + versionSetId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceApiVersionSetListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiVersionSetCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets/{versionSetId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiVersionSetGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.versionSetId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets/{versionSetId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiVersionSetContract, + headersMapper: Mappers.WorkspaceApiVersionSetGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.versionSetId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets/{versionSetId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ApiVersionSetContract, + headersMapper: Mappers.WorkspaceApiVersionSetCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.ApiVersionSetContract, + headersMapper: Mappers.WorkspaceApiVersionSetCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters20, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.versionSetId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets/{versionSetId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ApiVersionSetContract, + headersMapper: Mappers.WorkspaceApiVersionSetUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters21, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.versionSetId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets/{versionSetId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.versionSetId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiVersionSetCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGlobalSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGlobalSchema.ts new file mode 100644 index 000000000000..6b9b451da59b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGlobalSchema.ts @@ -0,0 +1,540 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceGlobalSchema } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + GlobalSchemaContract, + WorkspaceGlobalSchemaListByServiceNextOptionalParams, + WorkspaceGlobalSchemaListByServiceOptionalParams, + WorkspaceGlobalSchemaListByServiceResponse, + WorkspaceGlobalSchemaGetEntityTagOptionalParams, + WorkspaceGlobalSchemaGetEntityTagResponse, + WorkspaceGlobalSchemaGetOptionalParams, + WorkspaceGlobalSchemaGetResponse, + WorkspaceGlobalSchemaCreateOrUpdateOptionalParams, + WorkspaceGlobalSchemaCreateOrUpdateResponse, + WorkspaceGlobalSchemaDeleteOptionalParams, + WorkspaceGlobalSchemaListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceGlobalSchema operations. */ +export class WorkspaceGlobalSchemaImpl implements WorkspaceGlobalSchema { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceGlobalSchema class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of schemas registered with workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGlobalSchemaListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGlobalSchemaListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceGlobalSchemaListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGlobalSchemaListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of schemas registered with workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGlobalSchemaListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the Schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + options?: WorkspaceGlobalSchemaGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, schemaId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the Schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + options?: WorkspaceGlobalSchemaGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, schemaId, options }, + getOperationSpec, + ); + } + + /** + * Creates new or updates existing specified Schema of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + parameters: GlobalSchemaContract, + options?: WorkspaceGlobalSchemaCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceGlobalSchemaCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + workspaceId, + schemaId, + parameters, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceGlobalSchemaCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Creates new or updates existing specified Schema of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + parameters: GlobalSchemaContract, + options?: WorkspaceGlobalSchemaCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + workspaceId, + schemaId, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Deletes specific Schema. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + ifMatch: string, + options?: WorkspaceGlobalSchemaDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + schemaId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceGlobalSchemaListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/schemas", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GlobalSchemaCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/schemas/{schemaId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceGlobalSchemaGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.schemaId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/schemas/{schemaId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.WorkspaceGlobalSchemaGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.schemaId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/schemas/{schemaId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.WorkspaceGlobalSchemaCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.WorkspaceGlobalSchemaCreateOrUpdateHeaders, + }, + 202: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.WorkspaceGlobalSchemaCreateOrUpdateHeaders, + }, + 204: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.WorkspaceGlobalSchemaCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters77, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.schemaId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/schemas/{schemaId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.schemaId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GlobalSchemaCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroup.ts new file mode 100644 index 000000000000..baa10d500fcd --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroup.ts @@ -0,0 +1,510 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceGroup } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + GroupContract, + WorkspaceGroupListByServiceNextOptionalParams, + WorkspaceGroupListByServiceOptionalParams, + WorkspaceGroupListByServiceResponse, + WorkspaceGroupGetEntityTagOptionalParams, + WorkspaceGroupGetEntityTagResponse, + WorkspaceGroupGetOptionalParams, + WorkspaceGroupGetResponse, + GroupCreateParameters, + WorkspaceGroupCreateOrUpdateOptionalParams, + WorkspaceGroupCreateOrUpdateResponse, + GroupUpdateParameters, + WorkspaceGroupUpdateOptionalParams, + WorkspaceGroupUpdateResponse, + WorkspaceGroupDeleteOptionalParams, + WorkspaceGroupListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceGroup operations. */ +export class WorkspaceGroupImpl implements WorkspaceGroup { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceGroup class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of groups defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGroupListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGroupListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceGroupListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGroupListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of groups defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGroupListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the group specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, groupId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the group specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, groupId, options }, + getOperationSpec, + ); + } + + /** + * Creates or Updates a group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + parameters: GroupCreateParameters, + options?: WorkspaceGroupCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + groupId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the details of the group specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + ifMatch: string, + parameters: GroupUpdateParameters, + options?: WorkspaceGroupUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + groupId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes specific group of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + ifMatch: string, + options?: WorkspaceGroupDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + groupId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceGroupListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GroupCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceGroupGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GroupContract, + headersMapper: Mappers.WorkspaceGroupGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.GroupContract, + headersMapper: Mappers.WorkspaceGroupCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.GroupContract, + headersMapper: Mappers.WorkspaceGroupCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters54, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.GroupContract, + headersMapper: Mappers.WorkspaceGroupUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters55, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GroupCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroupUser.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroupUser.ts new file mode 100644 index 000000000000..0946a15eea35 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroupUser.ts @@ -0,0 +1,396 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceGroupUser } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + UserContract, + WorkspaceGroupUserListNextOptionalParams, + WorkspaceGroupUserListOptionalParams, + WorkspaceGroupUserListResponse, + WorkspaceGroupUserCheckEntityExistsOptionalParams, + WorkspaceGroupUserCheckEntityExistsResponse, + WorkspaceGroupUserCreateOptionalParams, + WorkspaceGroupUserCreateResponse, + WorkspaceGroupUserDeleteOptionalParams, + WorkspaceGroupUserListNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceGroupUser operations. */ +export class WorkspaceGroupUserImpl implements WorkspaceGroupUser { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceGroupUser class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of user entities associated with the group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupUserListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + serviceName, + workspaceId, + groupId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + serviceName, + workspaceId, + groupId, + options, + settings, + ); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupUserListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceGroupUserListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + serviceName, + workspaceId, + groupId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + workspaceId, + groupId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupUserListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + workspaceId, + groupId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of user entities associated with the group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupUserListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, groupId, options }, + listOperationSpec, + ); + } + + /** + * Checks that user entity specified by identifier is associated with the group entity. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + checkEntityExists( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + userId: string, + options?: WorkspaceGroupUserCheckEntityExistsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, groupId, userId, options }, + checkEntityExistsOperationSpec, + ); + } + + /** + * Add existing user to existing group + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + create( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + userId: string, + options?: WorkspaceGroupUserCreateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, groupId, userId, options }, + createOperationSpec, + ); + } + + /** + * Remove existing user from existing group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + userId: string, + options?: WorkspaceGroupUserDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, groupId, userId, options }, + deleteOperationSpec, + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + nextLink: string, + options?: WorkspaceGroupUserListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + groupId, + nextLink, + options, + }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}/users", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.UserCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const checkEntityExistsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}/users/{userId}", + httpMethod: "HEAD", + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.userId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}/users/{userId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.UserContract, + }, + 201: { + bodyMapper: Mappers.UserContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.userId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}/users/{userId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.userId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.UserCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.groupId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNamedValue.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNamedValue.ts new file mode 100644 index 000000000000..21066a50fa7d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNamedValue.ts @@ -0,0 +1,901 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceNamedValue } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + NamedValueContract, + WorkspaceNamedValueListByServiceNextOptionalParams, + WorkspaceNamedValueListByServiceOptionalParams, + WorkspaceNamedValueListByServiceResponse, + WorkspaceNamedValueGetEntityTagOptionalParams, + WorkspaceNamedValueGetEntityTagResponse, + WorkspaceNamedValueGetOptionalParams, + WorkspaceNamedValueGetResponse, + NamedValueCreateContract, + WorkspaceNamedValueCreateOrUpdateOptionalParams, + WorkspaceNamedValueCreateOrUpdateResponse, + NamedValueUpdateParameters, + WorkspaceNamedValueUpdateOptionalParams, + WorkspaceNamedValueUpdateResponse, + WorkspaceNamedValueDeleteOptionalParams, + WorkspaceNamedValueListValueOptionalParams, + WorkspaceNamedValueListValueResponse, + WorkspaceNamedValueRefreshSecretOptionalParams, + WorkspaceNamedValueRefreshSecretResponse, + WorkspaceNamedValueListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceNamedValue operations. */ +export class WorkspaceNamedValueImpl implements WorkspaceNamedValue { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceNamedValue class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of named values defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNamedValueListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNamedValueListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceNamedValueListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNamedValueListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of named values defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNamedValueListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, namedValueId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, namedValueId, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param parameters Create parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + parameters: NamedValueCreateContract, + options?: WorkspaceNamedValueCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceNamedValueCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + parameters, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceNamedValueCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param parameters Create parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + parameters: NamedValueCreateContract, + options?: WorkspaceNamedValueCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Updates the specific named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + ifMatch: string, + parameters: NamedValueUpdateParameters, + options?: WorkspaceNamedValueUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceNamedValueUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + ifMatch, + parameters, + options, + }, + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceNamedValueUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Updates the specific named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + ifMatch: string, + parameters: NamedValueUpdateParameters, + options?: WorkspaceNamedValueUpdateOptionalParams, + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + ifMatch, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Deletes specific named value from the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + ifMatch: string, + options?: WorkspaceNamedValueDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * Gets the secret of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + listValue( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueListValueOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, namedValueId, options }, + listValueOperationSpec, + ); + } + + /** + * Refresh the secret of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + async beginRefreshSecret( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueRefreshSecretOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceNamedValueRefreshSecretResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + options, + }, + spec: refreshSecretOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceNamedValueRefreshSecretResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Refresh the secret of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + async beginRefreshSecretAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueRefreshSecretOptionalParams, + ): Promise { + const poller = await this.beginRefreshSecret( + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + options, + ); + return poller.pollUntilDone(); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceNamedValueListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NamedValueCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.isKeyVaultRefreshFailed1, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceNamedValueGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueCreateOrUpdateHeaders, + }, + 202: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueCreateOrUpdateHeaders, + }, + 204: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters60, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueUpdateHeaders, + }, + 202: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueUpdateHeaders, + }, + 204: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters61, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listValueOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}/listValue", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.NamedValueSecretContract, + headersMapper: Mappers.WorkspaceNamedValueListValueHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const refreshSecretOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}/refreshSecret", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueRefreshSecretHeaders, + }, + 201: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueRefreshSecretHeaders, + }, + 202: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueRefreshSecretHeaders, + }, + 204: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueRefreshSecretHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NamedValueCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotification.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotification.ts new file mode 100644 index 000000000000..0363e1931f75 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotification.ts @@ -0,0 +1,326 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceNotification } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + NotificationContract, + WorkspaceNotificationListByServiceNextOptionalParams, + WorkspaceNotificationListByServiceOptionalParams, + WorkspaceNotificationListByServiceResponse, + NotificationName, + WorkspaceNotificationGetOptionalParams, + WorkspaceNotificationGetResponse, + WorkspaceNotificationCreateOrUpdateOptionalParams, + WorkspaceNotificationCreateOrUpdateResponse, + WorkspaceNotificationListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceNotification operations. */ +export class WorkspaceNotificationImpl implements WorkspaceNotification { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceNotification class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of properties defined within a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNotificationListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNotificationListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceNotificationListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNotificationListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of properties defined within a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNotificationListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the details of the Notification specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + options, + }, + getOperationSpec, + ); + } + + /** + * Create or Update API Management publisher notification for the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceNotificationListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NotificationCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NotificationContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.NotificationContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NotificationCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientEmail.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientEmail.ts new file mode 100644 index 000000000000..98bc5518b9f1 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientEmail.ts @@ -0,0 +1,258 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { WorkspaceNotificationRecipientEmail } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + NotificationName, + WorkspaceNotificationRecipientEmailListByNotificationOptionalParams, + WorkspaceNotificationRecipientEmailListByNotificationResponse, + WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams, + WorkspaceNotificationRecipientEmailCheckEntityExistsResponse, + WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams, + WorkspaceNotificationRecipientEmailCreateOrUpdateResponse, + WorkspaceNotificationRecipientEmailDeleteOptionalParams, +} from "../models"; + +/** Class containing WorkspaceNotificationRecipientEmail operations. */ +export class WorkspaceNotificationRecipientEmailImpl + implements WorkspaceNotificationRecipientEmail +{ + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceNotificationRecipientEmail class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets the list of the Notification Recipient Emails subscribed to a notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + listByNotification( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationRecipientEmailListByNotificationOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + options, + }, + listByNotificationOperationSpec, + ); + } + + /** + * Determine if Notification Recipient Email subscribed to the notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param email Email identifier. + * @param options The options parameters. + */ + checkEntityExists( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + email: string, + options?: WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + email, + options, + }, + checkEntityExistsOperationSpec, + ); + } + + /** + * Adds the Email address to the list of Recipients for the Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param email Email identifier. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + email: string, + options?: WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + email, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Removes the email from the list of Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param email Email identifier. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + email: string, + options?: WorkspaceNotificationRecipientEmailDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + email, + options, + }, + deleteOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByNotificationOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientEmails", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RecipientEmailCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const checkEntityExistsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientEmails/{email}", + httpMethod: "HEAD", + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.email, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientEmails/{email}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.RecipientEmailContract, + }, + 201: { + bodyMapper: Mappers.RecipientEmailContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.email, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientEmails/{email}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.email, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientUser.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientUser.ts new file mode 100644 index 000000000000..cfcfafd84e1e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientUser.ts @@ -0,0 +1,258 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { WorkspaceNotificationRecipientUser } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + NotificationName, + WorkspaceNotificationRecipientUserListByNotificationOptionalParams, + WorkspaceNotificationRecipientUserListByNotificationResponse, + WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams, + WorkspaceNotificationRecipientUserCheckEntityExistsResponse, + WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams, + WorkspaceNotificationRecipientUserCreateOrUpdateResponse, + WorkspaceNotificationRecipientUserDeleteOptionalParams, +} from "../models"; + +/** Class containing WorkspaceNotificationRecipientUser operations. */ +export class WorkspaceNotificationRecipientUserImpl + implements WorkspaceNotificationRecipientUser +{ + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceNotificationRecipientUser class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets the list of the Notification Recipient User subscribed to the notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + listByNotification( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationRecipientUserListByNotificationOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + options, + }, + listByNotificationOperationSpec, + ); + } + + /** + * Determine if the Notification Recipient User is subscribed to the notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + checkEntityExists( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + userId: string, + options?: WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + userId, + options, + }, + checkEntityExistsOperationSpec, + ); + } + + /** + * Adds the API Management User to the list of Recipients for the Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + userId: string, + options?: WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + userId, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Removes the API Management user from the list of Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + userId: string, + options?: WorkspaceNotificationRecipientUserDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + userId, + options, + }, + deleteOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByNotificationOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientUsers", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RecipientUserCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const checkEntityExistsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientUsers/{userId}", + httpMethod: "HEAD", + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.userId, + Parameters.notificationName, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientUsers/{userId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.RecipientUserContract, + }, + 201: { + bodyMapper: Mappers.RecipientUserContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.userId, + Parameters.notificationName, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientUsers/{userId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.userId, + Parameters.notificationName, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicy.ts new file mode 100644 index 000000000000..e7ae38d41bf2 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicy.ts @@ -0,0 +1,437 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspacePolicy } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + PolicyContract, + WorkspacePolicyListByApiNextOptionalParams, + WorkspacePolicyListByApiOptionalParams, + WorkspacePolicyListByApiResponse, + PolicyIdName, + WorkspacePolicyGetEntityTagOptionalParams, + WorkspacePolicyGetEntityTagResponse, + WorkspacePolicyGetOptionalParams, + WorkspacePolicyGetResponse, + WorkspacePolicyCreateOrUpdateOptionalParams, + WorkspacePolicyCreateOrUpdateResponse, + WorkspacePolicyDeleteOptionalParams, + WorkspacePolicyListByApiNextResponse, +} from "../models"; + +/// +/** Class containing WorkspacePolicy operations. */ +export class WorkspacePolicyImpl implements WorkspacePolicy { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspacePolicy class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Get the policy configuration at the workspace level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyListByApiOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByApiPagingAll( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByApiPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyListByApiOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspacePolicyListByApiResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByApi( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByApiNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByApiPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyListByApiOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Get the policy configuration at the workspace level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyListByApiOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByApiOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the workspace policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + options?: WorkspacePolicyGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, policyId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + options?: WorkspacePolicyGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, policyId, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates policy configuration for the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspacePolicyCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + policyId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the policy configuration at the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspacePolicyDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + policyId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByApiNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByApi method. + * @param options The options parameters. + */ + private _listByApiNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspacePolicyListByApiNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByApiNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByApiOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policies/{policyId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspacePolicyGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policies/{policyId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspacePolicyGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.format], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policies/{policyId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspacePolicyCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspacePolicyCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policies/{policyId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByApiNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicyFragment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicyFragment.ts new file mode 100644 index 000000000000..23c0753d7e11 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicyFragment.ts @@ -0,0 +1,579 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspacePolicyFragment } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + PolicyFragmentContract, + WorkspacePolicyFragmentListByServiceNextOptionalParams, + WorkspacePolicyFragmentListByServiceOptionalParams, + WorkspacePolicyFragmentListByServiceResponse, + WorkspacePolicyFragmentGetEntityTagOptionalParams, + WorkspacePolicyFragmentGetEntityTagResponse, + WorkspacePolicyFragmentGetOptionalParams, + WorkspacePolicyFragmentGetResponse, + WorkspacePolicyFragmentCreateOrUpdateOptionalParams, + WorkspacePolicyFragmentCreateOrUpdateResponse, + WorkspacePolicyFragmentDeleteOptionalParams, + WorkspacePolicyFragmentListReferencesOptionalParams, + WorkspacePolicyFragmentListReferencesResponse, + WorkspacePolicyFragmentListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspacePolicyFragment operations. */ +export class WorkspacePolicyFragmentImpl implements WorkspacePolicyFragment { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspacePolicyFragment class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets all policy fragments defined within a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyFragmentListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyFragmentListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspacePolicyFragmentListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyFragmentListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Gets all policy fragments defined within a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyFragmentListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + options?: WorkspacePolicyFragmentGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, id, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + options?: WorkspacePolicyFragmentGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, id, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + parameters: PolicyFragmentContract, + options?: WorkspacePolicyFragmentCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspacePolicyFragmentCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + workspaceId, + id, + parameters, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspacePolicyFragmentCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + parameters: PolicyFragmentContract, + options?: WorkspacePolicyFragmentCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + workspaceId, + id, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + ifMatch: string, + options?: WorkspacePolicyFragmentDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, id, ifMatch, options }, + deleteOperationSpec, + ); + } + + /** + * Lists policy resources that reference the policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param options The options parameters. + */ + listReferences( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + options?: WorkspacePolicyFragmentListReferencesOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, id, options }, + listReferencesOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspacePolicyFragmentListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.orderby, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments/{id}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspacePolicyFragmentGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments/{id}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.WorkspacePolicyFragmentGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.format2], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments/{id}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.WorkspacePolicyFragmentCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.WorkspacePolicyFragmentCreateOrUpdateHeaders, + }, + 202: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.WorkspacePolicyFragmentCreateOrUpdateHeaders, + }, + 204: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.WorkspacePolicyFragmentCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters64, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments/{id}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listReferencesOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments/{id}/listReferences", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ResourceCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProduct.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProduct.ts new file mode 100644 index 000000000000..5f3f6bf59bf3 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProduct.ts @@ -0,0 +1,511 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceProduct } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ProductContract, + WorkspaceProductListByServiceNextOptionalParams, + WorkspaceProductListByServiceOptionalParams, + WorkspaceProductListByServiceResponse, + WorkspaceProductGetEntityTagOptionalParams, + WorkspaceProductGetEntityTagResponse, + WorkspaceProductGetOptionalParams, + WorkspaceProductGetResponse, + WorkspaceProductCreateOrUpdateOptionalParams, + WorkspaceProductCreateOrUpdateResponse, + ProductUpdateParameters, + WorkspaceProductUpdateOptionalParams, + WorkspaceProductUpdateResponse, + WorkspaceProductDeleteOptionalParams, + WorkspaceProductListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceProduct operations. */ +export class WorkspaceProductImpl implements WorkspaceProduct { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceProduct class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of products in the specified workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceProductListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceProductListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceProductListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceProductListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of products in the specified workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceProductListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, productId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, productId, options }, + getOperationSpec, + ); + } + + /** + * Creates or Updates a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + parameters: ProductContract, + options?: WorkspaceProductCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Update existing product details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + ifMatch: string, + parameters: ProductUpdateParameters, + options?: WorkspaceProductUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Delete product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + ifMatch: string, + options?: WorkspaceProductDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceProductListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.tags, + Parameters.expandGroups, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceProductGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductContract, + headersMapper: Mappers.WorkspaceProductGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ProductContract, + headersMapper: Mappers.WorkspaceProductCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.ProductContract, + headersMapper: Mappers.WorkspaceProductCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters72, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ProductContract, + headersMapper: Mappers.WorkspaceProductUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters73, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.deleteSubscriptions], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductApiLink.ts new file mode 100644 index 000000000000..79c6255a2116 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductApiLink.ts @@ -0,0 +1,427 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceProductApiLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ProductApiLinkContract, + WorkspaceProductApiLinkListByProductNextOptionalParams, + WorkspaceProductApiLinkListByProductOptionalParams, + WorkspaceProductApiLinkListByProductResponse, + WorkspaceProductApiLinkGetOptionalParams, + WorkspaceProductApiLinkGetResponse, + WorkspaceProductApiLinkCreateOrUpdateOptionalParams, + WorkspaceProductApiLinkCreateOrUpdateResponse, + WorkspaceProductApiLinkDeleteOptionalParams, + WorkspaceProductApiLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceProductApiLink operations. */ +export class WorkspaceProductApiLinkImpl implements WorkspaceProductApiLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceProductApiLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the API links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductApiLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + workspaceId, + productId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + productId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductApiLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceProductApiLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + workspaceId, + productId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + workspaceId, + productId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductApiLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + productId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the API links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductApiLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, productId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the API link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + apiLinkId: string, + options?: WorkspaceProductApiLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + apiLinkId, + options, + }, + getOperationSpec, + ); + } + + /** + * Adds an API to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + apiLinkId: string, + parameters: ProductApiLinkContract, + options?: WorkspaceProductApiLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + apiLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified API from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + apiLinkId: string, + options?: WorkspaceProductApiLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + apiLinkId, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + nextLink: string, + options?: WorkspaceProductApiLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + nextLink, + options, + }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/apiLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/apiLinks/{apiLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkContract, + headersMapper: Mappers.WorkspaceProductApiLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.apiLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/apiLinks/{apiLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkContract, + }, + 201: { + bodyMapper: Mappers.ProductApiLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters74, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.apiLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/apiLinks/{apiLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.apiLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductGroupLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductGroupLink.ts new file mode 100644 index 000000000000..bc75532aa3df --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductGroupLink.ts @@ -0,0 +1,429 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceProductGroupLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ProductGroupLinkContract, + WorkspaceProductGroupLinkListByProductNextOptionalParams, + WorkspaceProductGroupLinkListByProductOptionalParams, + WorkspaceProductGroupLinkListByProductResponse, + WorkspaceProductGroupLinkGetOptionalParams, + WorkspaceProductGroupLinkGetResponse, + WorkspaceProductGroupLinkCreateOrUpdateOptionalParams, + WorkspaceProductGroupLinkCreateOrUpdateResponse, + WorkspaceProductGroupLinkDeleteOptionalParams, + WorkspaceProductGroupLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceProductGroupLink operations. */ +export class WorkspaceProductGroupLinkImpl + implements WorkspaceProductGroupLink +{ + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceProductGroupLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the group links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGroupLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + workspaceId, + productId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + productId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGroupLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceProductGroupLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + workspaceId, + productId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + workspaceId, + productId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGroupLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + productId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the group links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGroupLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, productId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the group link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + groupLinkId: string, + options?: WorkspaceProductGroupLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + groupLinkId, + options, + }, + getOperationSpec, + ); + } + + /** + * Adds a group to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + groupLinkId: string, + parameters: ProductGroupLinkContract, + options?: WorkspaceProductGroupLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + groupLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified group from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + groupLinkId: string, + options?: WorkspaceProductGroupLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + groupLinkId, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + nextLink: string, + options?: WorkspaceProductGroupLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + nextLink, + options, + }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/groupLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/groupLinks/{groupLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkContract, + headersMapper: Mappers.WorkspaceProductGroupLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.groupLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/groupLinks/{groupLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkContract, + }, + 201: { + bodyMapper: Mappers.ProductGroupLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters75, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.groupLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/groupLinks/{groupLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.groupLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductPolicy.ts new file mode 100644 index 000000000000..5b19618edec6 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductPolicy.ts @@ -0,0 +1,325 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { WorkspaceProductPolicy } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + WorkspaceProductPolicyListByProductOptionalParams, + WorkspaceProductPolicyListByProductResponse, + PolicyIdName, + WorkspaceProductPolicyGetEntityTagOptionalParams, + WorkspaceProductPolicyGetEntityTagResponse, + WorkspaceProductPolicyGetOptionalParams, + WorkspaceProductPolicyGetResponse, + PolicyContract, + WorkspaceProductPolicyCreateOrUpdateOptionalParams, + WorkspaceProductPolicyCreateOrUpdateResponse, + WorkspaceProductPolicyDeleteOptionalParams, +} from "../models"; + +/** Class containing WorkspaceProductPolicy operations. */ +export class WorkspaceProductPolicyImpl implements WorkspaceProductPolicy { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceProductPolicy class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Get the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductPolicyListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, productId, options }, + listByProductOperationSpec, + ); + } + + /** + * Get the ETag of the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + options?: WorkspaceProductPolicyGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + policyId, + options, + }, + getEntityTagOperationSpec, + ); + } + + /** + * Get the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + options?: WorkspaceProductPolicyGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + policyId, + options, + }, + getOperationSpec, + ); + } + + /** + * Creates or updates policy configuration for the Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspaceProductPolicyCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + policyId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the policy configuration at the Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspaceProductPolicyDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + policyId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/policies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/policies/{policyId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceProductPolicyGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/policies/{policyId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceProductPolicyGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.format], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/policies/{policyId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceProductPolicyCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceProductPolicyCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/policies/{policyId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceSubscription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceSubscription.ts new file mode 100644 index 000000000000..0409e0b7d21e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceSubscription.ts @@ -0,0 +1,650 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceSubscription } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SubscriptionContract, + WorkspaceSubscriptionListNextOptionalParams, + WorkspaceSubscriptionListOptionalParams, + WorkspaceSubscriptionListResponse, + WorkspaceSubscriptionGetEntityTagOptionalParams, + WorkspaceSubscriptionGetEntityTagResponse, + WorkspaceSubscriptionGetOptionalParams, + WorkspaceSubscriptionGetResponse, + SubscriptionCreateParameters, + WorkspaceSubscriptionCreateOrUpdateOptionalParams, + WorkspaceSubscriptionCreateOrUpdateResponse, + SubscriptionUpdateParameters, + WorkspaceSubscriptionUpdateOptionalParams, + WorkspaceSubscriptionUpdateResponse, + WorkspaceSubscriptionDeleteOptionalParams, + WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams, + WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams, + WorkspaceSubscriptionListSecretsOptionalParams, + WorkspaceSubscriptionListSecretsResponse, + WorkspaceSubscriptionListNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceSubscription operations. */ +export class WorkspaceSubscriptionImpl implements WorkspaceSubscription { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceSubscription class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all subscriptions of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceSubscriptionListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceSubscriptionListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceSubscriptionListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceSubscriptionListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists all subscriptions of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceSubscriptionListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the specified Subscription entity. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates the subscription of specified user to the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + parameters: SubscriptionCreateParameters, + options?: WorkspaceSubscriptionCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, parameters, options }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the details of a subscription specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + ifMatch: string, + parameters: SubscriptionUpdateParameters, + options?: WorkspaceSubscriptionUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + sid, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes the specified subscription. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + ifMatch: string, + options?: WorkspaceSubscriptionDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, ifMatch, options }, + deleteOperationSpec, + ); + } + + /** + * Regenerates primary key of existing subscription of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + regeneratePrimaryKey( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, options }, + regeneratePrimaryKeyOperationSpec, + ); + } + + /** + * Regenerates secondary key of existing subscription of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + regenerateSecondaryKey( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, options }, + regenerateSecondaryKeyOperationSpec, + ); + } + + /** + * Gets the specified Subscription keys. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + listSecrets( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionListSecretsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, options }, + listSecretsOperationSpec, + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceSubscriptionListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SubscriptionCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceSubscriptionGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SubscriptionContract, + headersMapper: Mappers.WorkspaceSubscriptionGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.SubscriptionContract, + headersMapper: Mappers.WorkspaceSubscriptionCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.SubscriptionContract, + headersMapper: Mappers.WorkspaceSubscriptionCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters78, + queryParameters: [ + Parameters.apiVersion, + Parameters.notify, + Parameters.appType, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.SubscriptionContract, + headersMapper: Mappers.WorkspaceSubscriptionUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters79, + queryParameters: [ + Parameters.apiVersion, + Parameters.notify, + Parameters.appType, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const regeneratePrimaryKeyOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}/regeneratePrimaryKey", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const regenerateSecondaryKeyOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}/regenerateSecondaryKey", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listSecretsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}/listSecrets", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.SubscriptionKeysContract, + headersMapper: Mappers.WorkspaceSubscriptionListSecretsHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SubscriptionCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTag.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTag.ts new file mode 100644 index 000000000000..38eeb0339933 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTag.ts @@ -0,0 +1,503 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceTag } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagContract, + WorkspaceTagListByServiceNextOptionalParams, + WorkspaceTagListByServiceOptionalParams, + WorkspaceTagListByServiceResponse, + WorkspaceTagGetEntityStateOptionalParams, + WorkspaceTagGetEntityStateResponse, + WorkspaceTagGetOptionalParams, + WorkspaceTagGetResponse, + TagCreateUpdateParameters, + WorkspaceTagCreateOrUpdateOptionalParams, + WorkspaceTagCreateOrUpdateResponse, + WorkspaceTagUpdateOptionalParams, + WorkspaceTagUpdateResponse, + WorkspaceTagDeleteOptionalParams, + WorkspaceTagListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceTag operations. */ +export class WorkspaceTagImpl implements WorkspaceTag { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceTag class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of tags defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceTagListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceTagListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceTagListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceTagListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of tags defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceTagListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state version of the tag specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityState( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagGetEntityStateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, options }, + getEntityStateOperationSpec, + ); + } + + /** + * Gets the details of the tag specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, options }, + getOperationSpec, + ); + } + + /** + * Creates a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + parameters: TagCreateUpdateParameters, + options?: WorkspaceTagCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the details of the tag specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + ifMatch: string, + parameters: TagCreateUpdateParameters, + options?: WorkspaceTagUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes specific tag of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + ifMatch: string, + options?: WorkspaceTagDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, ifMatch, options }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceTagListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.scope, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityStateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceTagGetEntityStateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.WorkspaceTagGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.WorkspaceTagCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.WorkspaceTagCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters8, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.WorkspaceTagUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters8, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagApiLink.ts new file mode 100644 index 000000000000..351753ecd862 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagApiLink.ts @@ -0,0 +1,420 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceTagApiLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagApiLinkContract, + WorkspaceTagApiLinkListByProductNextOptionalParams, + WorkspaceTagApiLinkListByProductOptionalParams, + WorkspaceTagApiLinkListByProductResponse, + WorkspaceTagApiLinkGetOptionalParams, + WorkspaceTagApiLinkGetResponse, + WorkspaceTagApiLinkCreateOrUpdateOptionalParams, + WorkspaceTagApiLinkCreateOrUpdateResponse, + WorkspaceTagApiLinkDeleteOptionalParams, + WorkspaceTagApiLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceTagApiLink operations. */ +export class WorkspaceTagApiLinkImpl implements WorkspaceTagApiLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceTagApiLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the API links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagApiLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagApiLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceTagApiLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + workspaceId, + tagId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagApiLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the API links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagApiLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the API link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + apiLinkId: string, + options?: WorkspaceTagApiLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + apiLinkId, + options, + }, + getOperationSpec, + ); + } + + /** + * Adds an API to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + apiLinkId: string, + parameters: TagApiLinkContract, + options?: WorkspaceTagApiLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + apiLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified API from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + apiLinkId: string, + options?: WorkspaceTagApiLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + apiLinkId, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + nextLink: string, + options?: WorkspaceTagApiLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, nextLink, options }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/apiLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/apiLinks/{apiLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkContract, + headersMapper: Mappers.WorkspaceTagApiLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.apiLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/apiLinks/{apiLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkContract, + }, + 201: { + bodyMapper: Mappers.TagApiLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters80, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.apiLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/apiLinks/{apiLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.apiLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagOperationLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagOperationLink.ts new file mode 100644 index 000000000000..8827e0d84358 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagOperationLink.ts @@ -0,0 +1,422 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceTagOperationLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagOperationLinkContract, + WorkspaceTagOperationLinkListByProductNextOptionalParams, + WorkspaceTagOperationLinkListByProductOptionalParams, + WorkspaceTagOperationLinkListByProductResponse, + WorkspaceTagOperationLinkGetOptionalParams, + WorkspaceTagOperationLinkGetResponse, + WorkspaceTagOperationLinkCreateOrUpdateOptionalParams, + WorkspaceTagOperationLinkCreateOrUpdateResponse, + WorkspaceTagOperationLinkDeleteOptionalParams, + WorkspaceTagOperationLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceTagOperationLink operations. */ +export class WorkspaceTagOperationLinkImpl + implements WorkspaceTagOperationLink +{ + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceTagOperationLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the operation links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagOperationLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagOperationLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceTagOperationLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + workspaceId, + tagId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagOperationLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the operation links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagOperationLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the operation link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + operationLinkId: string, + options?: WorkspaceTagOperationLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + operationLinkId, + options, + }, + getOperationSpec, + ); + } + + /** + * Adds an operation to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + operationLinkId: string, + parameters: TagOperationLinkContract, + options?: WorkspaceTagOperationLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + operationLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified operation from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + operationLinkId: string, + options?: WorkspaceTagOperationLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + operationLinkId, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + nextLink: string, + options?: WorkspaceTagOperationLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, nextLink, options }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/operationLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/operationLinks/{operationLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkContract, + headersMapper: Mappers.WorkspaceTagOperationLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.operationLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/operationLinks/{operationLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkContract, + }, + 201: { + bodyMapper: Mappers.TagOperationLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters81, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.operationLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/operationLinks/{operationLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.operationLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagProductLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagProductLink.ts new file mode 100644 index 000000000000..39f6fb04a481 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagProductLink.ts @@ -0,0 +1,420 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceTagProductLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagProductLinkContract, + WorkspaceTagProductLinkListByProductNextOptionalParams, + WorkspaceTagProductLinkListByProductOptionalParams, + WorkspaceTagProductLinkListByProductResponse, + WorkspaceTagProductLinkGetOptionalParams, + WorkspaceTagProductLinkGetResponse, + WorkspaceTagProductLinkCreateOrUpdateOptionalParams, + WorkspaceTagProductLinkCreateOrUpdateResponse, + WorkspaceTagProductLinkDeleteOptionalParams, + WorkspaceTagProductLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceTagProductLink operations. */ +export class WorkspaceTagProductLinkImpl implements WorkspaceTagProductLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceTagProductLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the product links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagProductLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagProductLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceTagProductLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + workspaceId, + tagId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagProductLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the product links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagProductLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the product link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + productLinkId: string, + options?: WorkspaceTagProductLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + productLinkId, + options, + }, + getOperationSpec, + ); + } + + /** + * Adds a product to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + productLinkId: string, + parameters: TagProductLinkContract, + options?: WorkspaceTagProductLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + productLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified product from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + productLinkId: string, + options?: WorkspaceTagProductLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + productLinkId, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + nextLink: string, + options?: WorkspaceTagProductLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, nextLink, options }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/productLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/productLinks/{productLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkContract, + headersMapper: Mappers.WorkspaceTagProductLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.productLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/productLinks/{productLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkContract, + }, + 201: { + bodyMapper: Mappers.TagProductLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters82, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.productLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/productLinks/{productLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.productLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/allPolicies.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/allPolicies.ts new file mode 100644 index 000000000000..1446ef8bbfa7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/allPolicies.ts @@ -0,0 +1,29 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + AllPoliciesContract, + AllPoliciesListByServiceOptionalParams, +} from "../models"; + +/// +/** Interface representing a AllPolicies. */ +export interface AllPolicies { + /** + * Status of all policies of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + options?: AllPoliciesListByServiceOptionalParams, + ): PagedAsyncIterableIterator; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts index 0ff932cdd76b..e5c557585318 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts @@ -23,7 +23,8 @@ import { ApiUpdateContract, ApiUpdateOptionalParams, ApiUpdateResponse, - ApiDeleteOptionalParams + ApiDeleteOptionalParams, + ApiDeleteResponse, } from "../models"; /// @@ -38,7 +39,7 @@ export interface Api { listByService( resourceGroupName: string, serviceName: string, - options?: ApiListByServiceOptionalParams + options?: ApiListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Lists a collection of apis associated with tags. @@ -49,7 +50,7 @@ export interface Api { listByTags( resourceGroupName: string, serviceName: string, - options?: ApiListByTagsOptionalParams + options?: ApiListByTagsOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the API specified by its identifier. @@ -63,7 +64,7 @@ export interface Api { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiGetEntityTagOptionalParams + options?: ApiGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the API specified by its identifier. @@ -77,7 +78,7 @@ export interface Api { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiGetOptionalParams + options?: ApiGetOptionalParams, ): Promise; /** * Creates new or updates existing specified API of the API Management service instance. @@ -93,7 +94,7 @@ export interface Api { serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, - options?: ApiCreateOrUpdateOptionalParams + options?: ApiCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -114,7 +115,7 @@ export interface Api { serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, - options?: ApiCreateOrUpdateOptionalParams + options?: ApiCreateOrUpdateOptionalParams, ): Promise; /** * Updates the specified API of the API Management service instance. @@ -133,7 +134,7 @@ export interface Api { apiId: string, ifMatch: string, parameters: ApiUpdateContract, - options?: ApiUpdateOptionalParams + options?: ApiUpdateOptionalParams, ): Promise; /** * Deletes the specified API of the API Management service instance. @@ -145,11 +146,30 @@ export interface Api { * response of the GET request or it should be * for unconditional update. * @param options The options parameters. */ - delete( + beginDelete( resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, - options?: ApiDeleteOptionalParams - ): Promise; + options?: ApiDeleteOptionalParams, + ): Promise< + SimplePollerLike, ApiDeleteResponse> + >; + /** + * Deletes the specified API of the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + apiId: string, + ifMatch: string, + options?: ApiDeleteOptionalParams, + ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiDiagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiDiagnostic.ts index d369a59d6f66..4e0c775171d9 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiDiagnostic.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiDiagnostic.ts @@ -18,7 +18,7 @@ import { ApiDiagnosticCreateOrUpdateResponse, ApiDiagnosticUpdateOptionalParams, ApiDiagnosticUpdateResponse, - ApiDiagnosticDeleteOptionalParams + ApiDiagnosticDeleteOptionalParams, } from "../models"; /// @@ -35,7 +35,7 @@ export interface ApiDiagnostic { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiDiagnosticListByServiceOptionalParams + options?: ApiDiagnosticListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier. @@ -51,7 +51,7 @@ export interface ApiDiagnostic { serviceName: string, apiId: string, diagnosticId: string, - options?: ApiDiagnosticGetEntityTagOptionalParams + options?: ApiDiagnosticGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Diagnostic for an API specified by its identifier. @@ -67,7 +67,7 @@ export interface ApiDiagnostic { serviceName: string, apiId: string, diagnosticId: string, - options?: ApiDiagnosticGetOptionalParams + options?: ApiDiagnosticGetOptionalParams, ): Promise; /** * Creates a new Diagnostic for an API or updates an existing one. @@ -85,7 +85,7 @@ export interface ApiDiagnostic { apiId: string, diagnosticId: string, parameters: DiagnosticContract, - options?: ApiDiagnosticCreateOrUpdateOptionalParams + options?: ApiDiagnosticCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the Diagnostic for an API specified by its identifier. @@ -106,7 +106,7 @@ export interface ApiDiagnostic { diagnosticId: string, ifMatch: string, parameters: DiagnosticContract, - options?: ApiDiagnosticUpdateOptionalParams + options?: ApiDiagnosticUpdateOptionalParams, ): Promise; /** * Deletes the specified Diagnostic from an API. @@ -125,6 +125,6 @@ export interface ApiDiagnostic { apiId: string, diagnosticId: string, ifMatch: string, - options?: ApiDiagnosticDeleteOptionalParams + options?: ApiDiagnosticDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts index 1efcf25c77c1..bfb1f814ac47 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts @@ -10,7 +10,7 @@ import { ExportFormat, ExportApi, ApiExportGetOptionalParams, - ApiExportGetResponse + ApiExportGetResponse, } from "../models"; /** Interface representing a ApiExport. */ @@ -23,7 +23,7 @@ export interface ApiExport { * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. * @param format Format in which to export the Api Details to the Storage Blob with Sas Key valid for 5 - * minutes. + * minutes. New formats can be added in the future. * @param exportParam Query parameter required to export the API details. * @param options The options parameters. */ @@ -33,6 +33,6 @@ export interface ApiExport { apiId: string, format: ExportFormat, exportParam: ExportApi, - options?: ApiExportGetOptionalParams + options?: ApiExportGetOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssue.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssue.ts index ca2f0189336a..989d93b9f05c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssue.ts @@ -19,7 +19,7 @@ import { IssueUpdateContract, ApiIssueUpdateOptionalParams, ApiIssueUpdateResponse, - ApiIssueDeleteOptionalParams + ApiIssueDeleteOptionalParams, } from "../models"; /// @@ -36,7 +36,7 @@ export interface ApiIssue { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiIssueListByServiceOptionalParams + options?: ApiIssueListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Issue for an API specified by its identifier. @@ -51,7 +51,7 @@ export interface ApiIssue { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueGetEntityTagOptionalParams + options?: ApiIssueGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Issue for an API specified by its identifier. @@ -66,7 +66,7 @@ export interface ApiIssue { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueGetOptionalParams + options?: ApiIssueGetOptionalParams, ): Promise; /** * Creates a new Issue for an API or updates an existing one. @@ -83,7 +83,7 @@ export interface ApiIssue { apiId: string, issueId: string, parameters: IssueContract, - options?: ApiIssueCreateOrUpdateOptionalParams + options?: ApiIssueCreateOrUpdateOptionalParams, ): Promise; /** * Updates an existing issue for an API. @@ -103,7 +103,7 @@ export interface ApiIssue { issueId: string, ifMatch: string, parameters: IssueUpdateContract, - options?: ApiIssueUpdateOptionalParams + options?: ApiIssueUpdateOptionalParams, ): Promise; /** * Deletes the specified Issue from an API. @@ -121,6 +121,6 @@ export interface ApiIssue { apiId: string, issueId: string, ifMatch: string, - options?: ApiIssueDeleteOptionalParams + options?: ApiIssueDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueAttachment.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueAttachment.ts index b6e147b842e3..45df060008d0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueAttachment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueAttachment.ts @@ -16,7 +16,7 @@ import { ApiIssueAttachmentGetResponse, ApiIssueAttachmentCreateOrUpdateOptionalParams, ApiIssueAttachmentCreateOrUpdateResponse, - ApiIssueAttachmentDeleteOptionalParams + ApiIssueAttachmentDeleteOptionalParams, } from "../models"; /// @@ -35,7 +35,7 @@ export interface ApiIssueAttachment { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueAttachmentListByServiceOptionalParams + options?: ApiIssueAttachmentListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier. @@ -52,7 +52,7 @@ export interface ApiIssueAttachment { apiId: string, issueId: string, attachmentId: string, - options?: ApiIssueAttachmentGetEntityTagOptionalParams + options?: ApiIssueAttachmentGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the issue Attachment for an API specified by its identifier. @@ -69,7 +69,7 @@ export interface ApiIssueAttachment { apiId: string, issueId: string, attachmentId: string, - options?: ApiIssueAttachmentGetOptionalParams + options?: ApiIssueAttachmentGetOptionalParams, ): Promise; /** * Creates a new Attachment for the Issue in an API or updates an existing one. @@ -88,7 +88,7 @@ export interface ApiIssueAttachment { issueId: string, attachmentId: string, parameters: IssueAttachmentContract, - options?: ApiIssueAttachmentCreateOrUpdateOptionalParams + options?: ApiIssueAttachmentCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the specified comment from an Issue. @@ -108,6 +108,6 @@ export interface ApiIssueAttachment { issueId: string, attachmentId: string, ifMatch: string, - options?: ApiIssueAttachmentDeleteOptionalParams + options?: ApiIssueAttachmentDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueComment.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueComment.ts index 4d86b68407ce..2780903400cc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueComment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueComment.ts @@ -16,7 +16,7 @@ import { ApiIssueCommentGetResponse, ApiIssueCommentCreateOrUpdateOptionalParams, ApiIssueCommentCreateOrUpdateResponse, - ApiIssueCommentDeleteOptionalParams + ApiIssueCommentDeleteOptionalParams, } from "../models"; /// @@ -35,7 +35,7 @@ export interface ApiIssueComment { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueCommentListByServiceOptionalParams + options?: ApiIssueCommentListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the issue Comment for an API specified by its identifier. @@ -52,7 +52,7 @@ export interface ApiIssueComment { apiId: string, issueId: string, commentId: string, - options?: ApiIssueCommentGetEntityTagOptionalParams + options?: ApiIssueCommentGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the issue Comment for an API specified by its identifier. @@ -69,7 +69,7 @@ export interface ApiIssueComment { apiId: string, issueId: string, commentId: string, - options?: ApiIssueCommentGetOptionalParams + options?: ApiIssueCommentGetOptionalParams, ): Promise; /** * Creates a new Comment for the Issue in an API or updates an existing one. @@ -88,7 +88,7 @@ export interface ApiIssueComment { issueId: string, commentId: string, parameters: IssueCommentContract, - options?: ApiIssueCommentCreateOrUpdateOptionalParams + options?: ApiIssueCommentCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the specified comment from an Issue. @@ -108,6 +108,6 @@ export interface ApiIssueComment { issueId: string, commentId: string, ifMatch: string, - options?: ApiIssueCommentDeleteOptionalParams + options?: ApiIssueCommentDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementGateway.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementGateway.ts new file mode 100644 index 000000000000..ed236615f408 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementGateway.ts @@ -0,0 +1,147 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + ApiManagementGatewayResource, + ApiManagementGatewayListByResourceGroupOptionalParams, + ApiManagementGatewayListOptionalParams, + ApiManagementGatewayCreateOrUpdateOptionalParams, + ApiManagementGatewayCreateOrUpdateResponse, + ApiManagementGatewayUpdateParameters, + ApiManagementGatewayUpdateOptionalParams, + ApiManagementGatewayUpdateResponse, + ApiManagementGatewayGetOptionalParams, + ApiManagementGatewayGetResponse, + ApiManagementGatewayDeleteOptionalParams, + ApiManagementGatewayDeleteResponse, +} from "../models"; + +/// +/** Interface representing a ApiManagementGateway. */ +export interface ApiManagementGateway { + /** + * List all API Management gateways within a resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listByResourceGroup( + resourceGroupName: string, + options?: ApiManagementGatewayListByResourceGroupOptionalParams, + ): PagedAsyncIterableIterator; + /** + * List all API Management gateways within a subscription. + * @param options The options parameters. + */ + list( + options?: ApiManagementGatewayListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Creates or updates an API Management gateway. This is long running operation and could take several + * minutes to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + gatewayName: string, + parameters: ApiManagementGatewayResource, + options?: ApiManagementGatewayCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementGatewayCreateOrUpdateResponse + > + >; + /** + * Creates or updates an API Management gateway. This is long running operation and could take several + * minutes to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + gatewayName: string, + parameters: ApiManagementGatewayResource, + options?: ApiManagementGatewayCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates an existing API Management gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway operation. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + gatewayName: string, + parameters: ApiManagementGatewayUpdateParameters, + options?: ApiManagementGatewayUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementGatewayUpdateResponse + > + >; + /** + * Updates an existing API Management gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway operation. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + gatewayName: string, + parameters: ApiManagementGatewayUpdateParameters, + options?: ApiManagementGatewayUpdateOptionalParams, + ): Promise; + /** + * Gets an API Management gateway resource description. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewayGetOptionalParams, + ): Promise; + /** + * Deletes an existing API Management gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewayDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementGatewayDeleteResponse + > + >; + /** + * Deletes an existing API Management gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewayDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementOperations.ts index e13d81ae1a56..a6e10b76627f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementOperations.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Operation, - ApiManagementOperationsListOptionalParams + ApiManagementOperationsListOptionalParams, } from "../models"; /// @@ -20,6 +20,6 @@ export interface ApiManagementOperations { * @param options The options parameters. */ list( - options?: ApiManagementOperationsListOptionalParams + options?: ApiManagementOperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts index 947d8acdd1d3..32c6e2e421a0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts @@ -35,7 +35,7 @@ import { ApiManagementServiceGetDomainOwnershipIdentifierOptionalParams, ApiManagementServiceGetDomainOwnershipIdentifierResponse, ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams, - ApiManagementServiceApplyNetworkConfigurationUpdatesResponse + ApiManagementServiceApplyNetworkConfigurationUpdatesResponse, } from "../models"; /// @@ -48,14 +48,14 @@ export interface ApiManagementService { */ listByResourceGroup( resourceGroupName: string, - options?: ApiManagementServiceListByResourceGroupOptionalParams + options?: ApiManagementServiceListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all API Management services within an Azure subscription. * @param options The options parameters. */ list( - options?: ApiManagementServiceListOptionalParams + options?: ApiManagementServiceListOptionalParams, ): PagedAsyncIterableIterator; /** * Restores a backup of an API Management service created using the ApiManagementService_Backup @@ -70,7 +70,7 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, - options?: ApiManagementServiceRestoreOptionalParams + options?: ApiManagementServiceRestoreOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -90,7 +90,7 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, - options?: ApiManagementServiceRestoreOptionalParams + options?: ApiManagementServiceRestoreOptionalParams, ): Promise; /** * Creates a backup of the API Management service to the given Azure Storage Account. This is long @@ -104,7 +104,7 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, - options?: ApiManagementServiceBackupOptionalParams + options?: ApiManagementServiceBackupOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -123,7 +123,7 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, - options?: ApiManagementServiceBackupOptionalParams + options?: ApiManagementServiceBackupOptionalParams, ): Promise; /** * Creates or updates an API Management service. This is long running operation and could take several @@ -137,7 +137,7 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceResource, - options?: ApiManagementServiceCreateOrUpdateOptionalParams + options?: ApiManagementServiceCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -156,7 +156,7 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceResource, - options?: ApiManagementServiceCreateOrUpdateOptionalParams + options?: ApiManagementServiceCreateOrUpdateOptionalParams, ): Promise; /** * Updates an existing API Management service. @@ -169,7 +169,7 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceUpdateParameters, - options?: ApiManagementServiceUpdateOptionalParams + options?: ApiManagementServiceUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -187,7 +187,7 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceUpdateParameters, - options?: ApiManagementServiceUpdateOptionalParams + options?: ApiManagementServiceUpdateOptionalParams, ): Promise; /** * Gets an API Management service resource description. @@ -198,7 +198,7 @@ export interface ApiManagementService { get( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceGetOptionalParams + options?: ApiManagementServiceGetOptionalParams, ): Promise; /** * Deletes an existing API Management service. @@ -209,7 +209,7 @@ export interface ApiManagementService { beginDelete( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceDeleteOptionalParams + options?: ApiManagementServiceDeleteOptionalParams, ): Promise, void>>; /** * Deletes an existing API Management service. @@ -220,7 +220,7 @@ export interface ApiManagementService { beginDeleteAndWait( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceDeleteOptionalParams + options?: ApiManagementServiceDeleteOptionalParams, ): Promise; /** * Upgrades an API Management service to the Stv2 platform. For details refer to @@ -233,7 +233,7 @@ export interface ApiManagementService { beginMigrateToStv2( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceMigrateToStv2OptionalParams + options?: ApiManagementServiceMigrateToStv2OptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -251,7 +251,7 @@ export interface ApiManagementService { beginMigrateToStv2AndWait( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceMigrateToStv2OptionalParams + options?: ApiManagementServiceMigrateToStv2OptionalParams, ): Promise; /** * Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes. @@ -262,7 +262,7 @@ export interface ApiManagementService { getSsoToken( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceGetSsoTokenOptionalParams + options?: ApiManagementServiceGetSsoTokenOptionalParams, ): Promise; /** * Checks availability and correctness of a name for an API Management service. @@ -271,14 +271,14 @@ export interface ApiManagementService { */ checkNameAvailability( parameters: ApiManagementServiceCheckNameAvailabilityParameters, - options?: ApiManagementServiceCheckNameAvailabilityOptionalParams + options?: ApiManagementServiceCheckNameAvailabilityOptionalParams, ): Promise; /** * Get the custom domain ownership identifier for an API Management service. * @param options The options parameters. */ getDomainOwnershipIdentifier( - options?: ApiManagementServiceGetDomainOwnershipIdentifierOptionalParams + options?: ApiManagementServiceGetDomainOwnershipIdentifierOptionalParams, ): Promise; /** * Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS @@ -290,12 +290,10 @@ export interface ApiManagementService { beginApplyNetworkConfigurationUpdates( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams + options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams, ): Promise< SimplePollerLike< - OperationState< - ApiManagementServiceApplyNetworkConfigurationUpdatesResponse - >, + OperationState, ApiManagementServiceApplyNetworkConfigurationUpdatesResponse > >; @@ -309,6 +307,6 @@ export interface ApiManagementService { beginApplyNetworkConfigurationUpdatesAndWait( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams + options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementServiceSkus.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementServiceSkus.ts index 49efcda76ba3..c92f84eb53b3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementServiceSkus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementServiceSkus.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ResourceSkuResult, - ApiManagementServiceSkusListAvailableServiceSkusOptionalParams + ApiManagementServiceSkusListAvailableServiceSkusOptionalParams, } from "../models"; /// @@ -24,6 +24,6 @@ export interface ApiManagementServiceSkus { listAvailableServiceSkus( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams + options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementSkus.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementSkus.ts index c5459f44cbf1..dc636c3177e9 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementSkus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementSkus.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ApiManagementSku, - ApiManagementSkusListOptionalParams + ApiManagementSkusListOptionalParams, } from "../models"; /// @@ -20,6 +20,6 @@ export interface ApiManagementSkus { * @param options The options parameters. */ list( - options?: ApiManagementSkusListOptionalParams + options?: ApiManagementSkusListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperation.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperation.ts index bfe69dd00983..5af6820df308 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperation.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperation.ts @@ -19,7 +19,7 @@ import { OperationUpdateContract, ApiOperationUpdateOptionalParams, ApiOperationUpdateResponse, - ApiOperationDeleteOptionalParams + ApiOperationDeleteOptionalParams, } from "../models"; /// @@ -37,7 +37,7 @@ export interface ApiOperation { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiOperationListByApiOptionalParams + options?: ApiOperationListByApiOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the API operation specified by its identifier. @@ -54,7 +54,7 @@ export interface ApiOperation { serviceName: string, apiId: string, operationId: string, - options?: ApiOperationGetEntityTagOptionalParams + options?: ApiOperationGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the API Operation specified by its identifier. @@ -71,7 +71,7 @@ export interface ApiOperation { serviceName: string, apiId: string, operationId: string, - options?: ApiOperationGetOptionalParams + options?: ApiOperationGetOptionalParams, ): Promise; /** * Creates a new operation in the API or updates an existing one. @@ -90,7 +90,7 @@ export interface ApiOperation { apiId: string, operationId: string, parameters: OperationContract, - options?: ApiOperationCreateOrUpdateOptionalParams + options?: ApiOperationCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the operation in the API specified by its identifier. @@ -112,7 +112,7 @@ export interface ApiOperation { operationId: string, ifMatch: string, parameters: OperationUpdateContract, - options?: ApiOperationUpdateOptionalParams + options?: ApiOperationUpdateOptionalParams, ): Promise; /** * Deletes the specified operation in the API. @@ -132,6 +132,6 @@ export interface ApiOperation { apiId: string, operationId: string, ifMatch: string, - options?: ApiOperationDeleteOptionalParams + options?: ApiOperationDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperationPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperationPolicy.ts index 224a85a7e194..4942f9730382 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperationPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperationPolicy.ts @@ -17,7 +17,7 @@ import { PolicyContract, ApiOperationPolicyCreateOrUpdateOptionalParams, ApiOperationPolicyCreateOrUpdateResponse, - ApiOperationPolicyDeleteOptionalParams + ApiOperationPolicyDeleteOptionalParams, } from "../models"; /** Interface representing a ApiOperationPolicy. */ @@ -37,7 +37,7 @@ export interface ApiOperationPolicy { serviceName: string, apiId: string, operationId: string, - options?: ApiOperationPolicyListByOperationOptionalParams + options?: ApiOperationPolicyListByOperationOptionalParams, ): Promise; /** * Gets the entity state (Etag) version of the API operation policy specified by its identifier. @@ -56,7 +56,7 @@ export interface ApiOperationPolicy { apiId: string, operationId: string, policyId: PolicyIdName, - options?: ApiOperationPolicyGetEntityTagOptionalParams + options?: ApiOperationPolicyGetEntityTagOptionalParams, ): Promise; /** * Get the policy configuration at the API Operation level. @@ -75,7 +75,7 @@ export interface ApiOperationPolicy { apiId: string, operationId: string, policyId: PolicyIdName, - options?: ApiOperationPolicyGetOptionalParams + options?: ApiOperationPolicyGetOptionalParams, ): Promise; /** * Creates or updates policy configuration for the API Operation level. @@ -96,7 +96,7 @@ export interface ApiOperationPolicy { operationId: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: ApiOperationPolicyCreateOrUpdateOptionalParams + options?: ApiOperationPolicyCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the policy configuration at the Api Operation. @@ -118,6 +118,6 @@ export interface ApiOperationPolicy { operationId: string, policyId: PolicyIdName, ifMatch: string, - options?: ApiOperationPolicyDeleteOptionalParams + options?: ApiOperationPolicyDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiPolicy.ts index 3d54b954c30e..49a714f937d0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiPolicy.ts @@ -17,7 +17,7 @@ import { PolicyContract, ApiPolicyCreateOrUpdateOptionalParams, ApiPolicyCreateOrUpdateResponse, - ApiPolicyDeleteOptionalParams + ApiPolicyDeleteOptionalParams, } from "../models"; /** Interface representing a ApiPolicy. */ @@ -34,7 +34,7 @@ export interface ApiPolicy { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiPolicyListByApiOptionalParams + options?: ApiPolicyListByApiOptionalParams, ): Promise; /** * Gets the entity state (Etag) version of the API policy specified by its identifier. @@ -50,7 +50,7 @@ export interface ApiPolicy { serviceName: string, apiId: string, policyId: PolicyIdName, - options?: ApiPolicyGetEntityTagOptionalParams + options?: ApiPolicyGetEntityTagOptionalParams, ): Promise; /** * Get the policy configuration at the API level. @@ -66,7 +66,7 @@ export interface ApiPolicy { serviceName: string, apiId: string, policyId: PolicyIdName, - options?: ApiPolicyGetOptionalParams + options?: ApiPolicyGetOptionalParams, ): Promise; /** * Creates or updates policy configuration for the API. @@ -84,7 +84,7 @@ export interface ApiPolicy { apiId: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: ApiPolicyCreateOrUpdateOptionalParams + options?: ApiPolicyCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the policy configuration at the Api. @@ -103,6 +103,6 @@ export interface ApiPolicy { apiId: string, policyId: PolicyIdName, ifMatch: string, - options?: ApiPolicyDeleteOptionalParams + options?: ApiPolicyDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiProduct.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiProduct.ts index d83bdb058e0a..9c7081e8f3c2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiProduct.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiProduct.ts @@ -23,6 +23,6 @@ export interface ApiProduct { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiProductListByApisOptionalParams + options?: ApiProductListByApisOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRelease.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRelease.ts index 15d74409908a..0787e4a5c4a6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRelease.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRelease.ts @@ -18,7 +18,7 @@ import { ApiReleaseCreateOrUpdateResponse, ApiReleaseUpdateOptionalParams, ApiReleaseUpdateResponse, - ApiReleaseDeleteOptionalParams + ApiReleaseDeleteOptionalParams, } from "../models"; /// @@ -37,7 +37,7 @@ export interface ApiRelease { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiReleaseListByServiceOptionalParams + options?: ApiReleaseListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Returns the etag of an API release. @@ -53,7 +53,7 @@ export interface ApiRelease { serviceName: string, apiId: string, releaseId: string, - options?: ApiReleaseGetEntityTagOptionalParams + options?: ApiReleaseGetEntityTagOptionalParams, ): Promise; /** * Returns the details of an API release. @@ -69,7 +69,7 @@ export interface ApiRelease { serviceName: string, apiId: string, releaseId: string, - options?: ApiReleaseGetOptionalParams + options?: ApiReleaseGetOptionalParams, ): Promise; /** * Creates a new Release for the API. @@ -87,7 +87,7 @@ export interface ApiRelease { apiId: string, releaseId: string, parameters: ApiReleaseContract, - options?: ApiReleaseCreateOrUpdateOptionalParams + options?: ApiReleaseCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the release of the API specified by its identifier. @@ -108,7 +108,7 @@ export interface ApiRelease { releaseId: string, ifMatch: string, parameters: ApiReleaseContract, - options?: ApiReleaseUpdateOptionalParams + options?: ApiReleaseUpdateOptionalParams, ): Promise; /** * Deletes the specified release in the API. @@ -127,6 +127,6 @@ export interface ApiRelease { apiId: string, releaseId: string, ifMatch: string, - options?: ApiReleaseDeleteOptionalParams + options?: ApiReleaseDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRevision.ts index 8264f54d3f06..30f68ef261cb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRevision.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ApiRevisionContract, - ApiRevisionListByServiceOptionalParams + ApiRevisionListByServiceOptionalParams, } from "../models"; /// @@ -26,6 +26,6 @@ export interface ApiRevision { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiRevisionListByServiceOptionalParams + options?: ApiRevisionListByServiceOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts index 2a2b5c2c807c..d0a2fb7647d5 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts @@ -17,7 +17,7 @@ import { ApiSchemaGetResponse, ApiSchemaCreateOrUpdateOptionalParams, ApiSchemaCreateOrUpdateResponse, - ApiSchemaDeleteOptionalParams + ApiSchemaDeleteOptionalParams, } from "../models"; /// @@ -35,7 +35,7 @@ export interface ApiSchema { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiSchemaListByApiOptionalParams + options?: ApiSchemaListByApiOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the schema specified by its identifier. @@ -51,7 +51,7 @@ export interface ApiSchema { serviceName: string, apiId: string, schemaId: string, - options?: ApiSchemaGetEntityTagOptionalParams + options?: ApiSchemaGetEntityTagOptionalParams, ): Promise; /** * Get the schema configuration at the API level. @@ -67,7 +67,7 @@ export interface ApiSchema { serviceName: string, apiId: string, schemaId: string, - options?: ApiSchemaGetOptionalParams + options?: ApiSchemaGetOptionalParams, ): Promise; /** * Creates or updates schema configuration for the API. @@ -85,7 +85,7 @@ export interface ApiSchema { apiId: string, schemaId: string, parameters: SchemaContract, - options?: ApiSchemaCreateOrUpdateOptionalParams + options?: ApiSchemaCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -108,7 +108,7 @@ export interface ApiSchema { apiId: string, schemaId: string, parameters: SchemaContract, - options?: ApiSchemaCreateOrUpdateOptionalParams + options?: ApiSchemaCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the schema configuration at the Api. @@ -127,6 +127,6 @@ export interface ApiSchema { apiId: string, schemaId: string, ifMatch: string, - options?: ApiSchemaDeleteOptionalParams + options?: ApiSchemaDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiTagDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiTagDescription.ts index cd4303cd42c1..51efd0cdf9f6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiTagDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiTagDescription.ts @@ -17,7 +17,7 @@ import { TagDescriptionCreateParameters, ApiTagDescriptionCreateOrUpdateOptionalParams, ApiTagDescriptionCreateOrUpdateResponse, - ApiTagDescriptionDeleteOptionalParams + ApiTagDescriptionDeleteOptionalParams, } from "../models"; /// @@ -36,7 +36,7 @@ export interface ApiTagDescription { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiTagDescriptionListByServiceOptionalParams + options?: ApiTagDescriptionListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state version of the tag specified by its identifier. @@ -53,7 +53,7 @@ export interface ApiTagDescription { serviceName: string, apiId: string, tagDescriptionId: string, - options?: ApiTagDescriptionGetEntityTagOptionalParams + options?: ApiTagDescriptionGetEntityTagOptionalParams, ): Promise; /** * Get Tag description in scope of API @@ -70,7 +70,7 @@ export interface ApiTagDescription { serviceName: string, apiId: string, tagDescriptionId: string, - options?: ApiTagDescriptionGetOptionalParams + options?: ApiTagDescriptionGetOptionalParams, ): Promise; /** * Create/Update tag description in scope of the Api. @@ -89,7 +89,7 @@ export interface ApiTagDescription { apiId: string, tagDescriptionId: string, parameters: TagDescriptionCreateParameters, - options?: ApiTagDescriptionCreateOrUpdateOptionalParams + options?: ApiTagDescriptionCreateOrUpdateOptionalParams, ): Promise; /** * Delete tag description for the Api. @@ -109,6 +109,6 @@ export interface ApiTagDescription { apiId: string, tagDescriptionId: string, ifMatch: string, - options?: ApiTagDescriptionDeleteOptionalParams + options?: ApiTagDescriptionDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiVersionSet.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiVersionSet.ts index 4a5912de1735..404a612fc4c6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiVersionSet.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiVersionSet.ts @@ -19,7 +19,7 @@ import { ApiVersionSetUpdateParameters, ApiVersionSetUpdateOptionalParams, ApiVersionSetUpdateResponse, - ApiVersionSetDeleteOptionalParams + ApiVersionSetDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface ApiVersionSet { listByService( resourceGroupName: string, serviceName: string, - options?: ApiVersionSetListByServiceOptionalParams + options?: ApiVersionSetListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Api Version Set specified by its identifier. @@ -48,7 +48,7 @@ export interface ApiVersionSet { resourceGroupName: string, serviceName: string, versionSetId: string, - options?: ApiVersionSetGetEntityTagOptionalParams + options?: ApiVersionSetGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Api Version Set specified by its identifier. @@ -62,7 +62,7 @@ export interface ApiVersionSet { resourceGroupName: string, serviceName: string, versionSetId: string, - options?: ApiVersionSetGetOptionalParams + options?: ApiVersionSetGetOptionalParams, ): Promise; /** * Creates or Updates a Api Version Set. @@ -78,7 +78,7 @@ export interface ApiVersionSet { serviceName: string, versionSetId: string, parameters: ApiVersionSetContract, - options?: ApiVersionSetCreateOrUpdateOptionalParams + options?: ApiVersionSetCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the Api VersionSet specified by its identifier. @@ -97,7 +97,7 @@ export interface ApiVersionSet { versionSetId: string, ifMatch: string, parameters: ApiVersionSetUpdateParameters, - options?: ApiVersionSetUpdateOptionalParams + options?: ApiVersionSetUpdateOptionalParams, ): Promise; /** * Deletes specific Api Version Set. @@ -114,6 +114,6 @@ export interface ApiVersionSet { serviceName: string, versionSetId: string, ifMatch: string, - options?: ApiVersionSetDeleteOptionalParams + options?: ApiVersionSetDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWiki.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWiki.ts index 5d6bcdf9565c..60e6ace34d87 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWiki.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWiki.ts @@ -17,7 +17,7 @@ import { WikiUpdateContract, ApiWikiUpdateOptionalParams, ApiWikiUpdateResponse, - ApiWikiDeleteOptionalParams + ApiWikiDeleteOptionalParams, } from "../models"; /** Interface representing a ApiWiki. */ @@ -33,7 +33,7 @@ export interface ApiWiki { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiWikiGetEntityTagOptionalParams + options?: ApiWikiGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Wiki for an API specified by its identifier. @@ -46,7 +46,7 @@ export interface ApiWiki { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiWikiGetOptionalParams + options?: ApiWikiGetOptionalParams, ): Promise; /** * Creates a new Wiki for an API or updates an existing one. @@ -61,7 +61,7 @@ export interface ApiWiki { serviceName: string, apiId: string, parameters: WikiContract, - options?: ApiWikiCreateOrUpdateOptionalParams + options?: ApiWikiCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the Wiki for an API specified by its identifier. @@ -79,7 +79,7 @@ export interface ApiWiki { apiId: string, ifMatch: string, parameters: WikiUpdateContract, - options?: ApiWikiUpdateOptionalParams + options?: ApiWikiUpdateOptionalParams, ): Promise; /** * Deletes the specified Wiki from an API. @@ -95,6 +95,6 @@ export interface ApiWiki { serviceName: string, apiId: string, ifMatch: string, - options?: ApiWikiDeleteOptionalParams + options?: ApiWikiDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWikis.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWikis.ts index b86f924bee02..5ae29595e2bf 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWikis.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWikis.ts @@ -23,6 +23,6 @@ export interface ApiWikis { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiWikisListOptionalParams + options?: ApiWikisListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts index 015f10f04d61..99f546d87562 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts @@ -17,7 +17,7 @@ import { AuthorizationDeleteOptionalParams, AuthorizationConfirmConsentCodeRequestContract, AuthorizationConfirmConsentCodeOptionalParams, - AuthorizationConfirmConsentCodeResponse + AuthorizationConfirmConsentCodeResponse, } from "../models"; /// @@ -34,7 +34,7 @@ export interface Authorization { resourceGroupName: string, serviceName: string, authorizationProviderId: string, - options?: AuthorizationListByAuthorizationProviderOptionalParams + options?: AuthorizationListByAuthorizationProviderOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of the authorization specified by its identifier. @@ -49,7 +49,7 @@ export interface Authorization { serviceName: string, authorizationProviderId: string, authorizationId: string, - options?: AuthorizationGetOptionalParams + options?: AuthorizationGetOptionalParams, ): Promise; /** * Creates or updates authorization. @@ -66,7 +66,7 @@ export interface Authorization { authorizationProviderId: string, authorizationId: string, parameters: AuthorizationContract, - options?: AuthorizationCreateOrUpdateOptionalParams + options?: AuthorizationCreateOrUpdateOptionalParams, ): Promise; /** * Deletes specific Authorization from the Authorization provider. @@ -84,7 +84,7 @@ export interface Authorization { authorizationProviderId: string, authorizationId: string, ifMatch: string, - options?: AuthorizationDeleteOptionalParams + options?: AuthorizationDeleteOptionalParams, ): Promise; /** * Confirm valid consent code to suppress Authorizations anti-phishing page. @@ -101,6 +101,6 @@ export interface Authorization { authorizationProviderId: string, authorizationId: string, parameters: AuthorizationConfirmConsentCodeRequestContract, - options?: AuthorizationConfirmConsentCodeOptionalParams + options?: AuthorizationConfirmConsentCodeOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationAccessPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationAccessPolicy.ts index 9bbf78ae39d7..482999bbbebd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationAccessPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationAccessPolicy.ts @@ -14,7 +14,7 @@ import { AuthorizationAccessPolicyGetResponse, AuthorizationAccessPolicyCreateOrUpdateOptionalParams, AuthorizationAccessPolicyCreateOrUpdateResponse, - AuthorizationAccessPolicyDeleteOptionalParams + AuthorizationAccessPolicyDeleteOptionalParams, } from "../models"; /// @@ -33,7 +33,7 @@ export interface AuthorizationAccessPolicy { serviceName: string, authorizationProviderId: string, authorizationId: string, - options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of the authorization access policy specified by its identifier. @@ -50,7 +50,7 @@ export interface AuthorizationAccessPolicy { authorizationProviderId: string, authorizationId: string, authorizationAccessPolicyId: string, - options?: AuthorizationAccessPolicyGetOptionalParams + options?: AuthorizationAccessPolicyGetOptionalParams, ): Promise; /** * Creates or updates Authorization Access Policy. @@ -69,7 +69,7 @@ export interface AuthorizationAccessPolicy { authorizationId: string, authorizationAccessPolicyId: string, parameters: AuthorizationAccessPolicyContract, - options?: AuthorizationAccessPolicyCreateOrUpdateOptionalParams + options?: AuthorizationAccessPolicyCreateOrUpdateOptionalParams, ): Promise; /** * Deletes specific access policy from the Authorization. @@ -89,6 +89,6 @@ export interface AuthorizationAccessPolicy { authorizationId: string, authorizationAccessPolicyId: string, ifMatch: string, - options?: AuthorizationAccessPolicyDeleteOptionalParams + options?: AuthorizationAccessPolicyDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationLoginLinks.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationLoginLinks.ts index bcfc0be03fe5..7097a1fd22f1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationLoginLinks.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationLoginLinks.ts @@ -9,7 +9,7 @@ import { AuthorizationLoginRequestContract, AuthorizationLoginLinksPostOptionalParams, - AuthorizationLoginLinksPostResponse + AuthorizationLoginLinksPostResponse, } from "../models"; /** Interface representing a AuthorizationLoginLinks. */ @@ -29,6 +29,6 @@ export interface AuthorizationLoginLinks { authorizationProviderId: string, authorizationId: string, parameters: AuthorizationLoginRequestContract, - options?: AuthorizationLoginLinksPostOptionalParams + options?: AuthorizationLoginLinksPostOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationProvider.ts index 1b2c64bf2296..44ed1cf0b9a3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationProvider.ts @@ -14,7 +14,7 @@ import { AuthorizationProviderGetResponse, AuthorizationProviderCreateOrUpdateOptionalParams, AuthorizationProviderCreateOrUpdateResponse, - AuthorizationProviderDeleteOptionalParams + AuthorizationProviderDeleteOptionalParams, } from "../models"; /// @@ -29,7 +29,7 @@ export interface AuthorizationProvider { listByService( resourceGroupName: string, serviceName: string, - options?: AuthorizationProviderListByServiceOptionalParams + options?: AuthorizationProviderListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of the authorization provider specified by its identifier. @@ -42,7 +42,7 @@ export interface AuthorizationProvider { resourceGroupName: string, serviceName: string, authorizationProviderId: string, - options?: AuthorizationProviderGetOptionalParams + options?: AuthorizationProviderGetOptionalParams, ): Promise; /** * Creates or updates authorization provider. @@ -57,7 +57,7 @@ export interface AuthorizationProvider { serviceName: string, authorizationProviderId: string, parameters: AuthorizationProviderContract, - options?: AuthorizationProviderCreateOrUpdateOptionalParams + options?: AuthorizationProviderCreateOrUpdateOptionalParams, ): Promise; /** * Deletes specific authorization provider from the API Management service instance. @@ -73,6 +73,6 @@ export interface AuthorizationProvider { serviceName: string, authorizationProviderId: string, ifMatch: string, - options?: AuthorizationProviderDeleteOptionalParams + options?: AuthorizationProviderDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationServer.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationServer.ts index d70ac4bcaccc..ea99c93bbb92 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationServer.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationServer.ts @@ -21,7 +21,7 @@ import { AuthorizationServerUpdateResponse, AuthorizationServerDeleteOptionalParams, AuthorizationServerListSecretsOptionalParams, - AuthorizationServerListSecretsResponse + AuthorizationServerListSecretsResponse, } from "../models"; /// @@ -36,7 +36,7 @@ export interface AuthorizationServer { listByService( resourceGroupName: string, serviceName: string, - options?: AuthorizationServerListByServiceOptionalParams + options?: AuthorizationServerListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the authorizationServer specified by its identifier. @@ -49,7 +49,7 @@ export interface AuthorizationServer { resourceGroupName: string, serviceName: string, authsid: string, - options?: AuthorizationServerGetEntityTagOptionalParams + options?: AuthorizationServerGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the authorization server specified by its identifier. @@ -62,7 +62,7 @@ export interface AuthorizationServer { resourceGroupName: string, serviceName: string, authsid: string, - options?: AuthorizationServerGetOptionalParams + options?: AuthorizationServerGetOptionalParams, ): Promise; /** * Creates new authorization server or updates an existing authorization server. @@ -77,7 +77,7 @@ export interface AuthorizationServer { serviceName: string, authsid: string, parameters: AuthorizationServerContract, - options?: AuthorizationServerCreateOrUpdateOptionalParams + options?: AuthorizationServerCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the authorization server specified by its identifier. @@ -95,7 +95,7 @@ export interface AuthorizationServer { authsid: string, ifMatch: string, parameters: AuthorizationServerUpdateContract, - options?: AuthorizationServerUpdateOptionalParams + options?: AuthorizationServerUpdateOptionalParams, ): Promise; /** * Deletes specific authorization server instance. @@ -111,7 +111,7 @@ export interface AuthorizationServer { serviceName: string, authsid: string, ifMatch: string, - options?: AuthorizationServerDeleteOptionalParams + options?: AuthorizationServerDeleteOptionalParams, ): Promise; /** * Gets the client secret details of the authorization server. @@ -124,6 +124,6 @@ export interface AuthorizationServer { resourceGroupName: string, serviceName: string, authsid: string, - options?: AuthorizationServerListSecretsOptionalParams + options?: AuthorizationServerListSecretsOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/backend.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/backend.ts index 40e8e927c666..dd64fd3a3614 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/backend.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/backend.ts @@ -20,7 +20,7 @@ import { BackendUpdateOptionalParams, BackendUpdateResponse, BackendDeleteOptionalParams, - BackendReconnectOptionalParams + BackendReconnectOptionalParams, } from "../models"; /// @@ -35,7 +35,7 @@ export interface Backend { listByService( resourceGroupName: string, serviceName: string, - options?: BackendListByServiceOptionalParams + options?: BackendListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the backend specified by its identifier. @@ -49,7 +49,7 @@ export interface Backend { resourceGroupName: string, serviceName: string, backendId: string, - options?: BackendGetEntityTagOptionalParams + options?: BackendGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the backend specified by its identifier. @@ -63,7 +63,7 @@ export interface Backend { resourceGroupName: string, serviceName: string, backendId: string, - options?: BackendGetOptionalParams + options?: BackendGetOptionalParams, ): Promise; /** * Creates or Updates a backend. @@ -79,7 +79,7 @@ export interface Backend { serviceName: string, backendId: string, parameters: BackendContract, - options?: BackendCreateOrUpdateOptionalParams + options?: BackendCreateOrUpdateOptionalParams, ): Promise; /** * Updates an existing backend. @@ -98,7 +98,7 @@ export interface Backend { backendId: string, ifMatch: string, parameters: BackendUpdateParameters, - options?: BackendUpdateOptionalParams + options?: BackendUpdateOptionalParams, ): Promise; /** * Deletes the specified backend. @@ -115,7 +115,7 @@ export interface Backend { serviceName: string, backendId: string, ifMatch: string, - options?: BackendDeleteOptionalParams + options?: BackendDeleteOptionalParams, ): Promise; /** * Notifies the API Management gateway to create a new connection to the backend after the specified @@ -130,6 +130,6 @@ export interface Backend { resourceGroupName: string, serviceName: string, backendId: string, - options?: BackendReconnectOptionalParams + options?: BackendReconnectOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/cache.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/cache.ts index 8572de9ad24a..0b9d6ff4d319 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/cache.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/cache.ts @@ -19,7 +19,7 @@ import { CacheUpdateParameters, CacheUpdateOptionalParams, CacheUpdateResponse, - CacheDeleteOptionalParams + CacheDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface Cache { listByService( resourceGroupName: string, serviceName: string, - options?: CacheListByServiceOptionalParams + options?: CacheListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Cache specified by its identifier. @@ -48,7 +48,7 @@ export interface Cache { resourceGroupName: string, serviceName: string, cacheId: string, - options?: CacheGetEntityTagOptionalParams + options?: CacheGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Cache specified by its identifier. @@ -62,7 +62,7 @@ export interface Cache { resourceGroupName: string, serviceName: string, cacheId: string, - options?: CacheGetOptionalParams + options?: CacheGetOptionalParams, ): Promise; /** * Creates or updates an External Cache to be used in Api Management instance. @@ -78,7 +78,7 @@ export interface Cache { serviceName: string, cacheId: string, parameters: CacheContract, - options?: CacheCreateOrUpdateOptionalParams + options?: CacheCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the cache specified by its identifier. @@ -97,7 +97,7 @@ export interface Cache { cacheId: string, ifMatch: string, parameters: CacheUpdateParameters, - options?: CacheUpdateOptionalParams + options?: CacheUpdateOptionalParams, ): Promise; /** * Deletes specific Cache. @@ -114,6 +114,6 @@ export interface Cache { serviceName: string, cacheId: string, ifMatch: string, - options?: CacheDeleteOptionalParams + options?: CacheDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/certificate.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/certificate.ts index 1cf2f8298d79..d3649fddae31 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/certificate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/certificate.ts @@ -19,7 +19,7 @@ import { CertificateCreateOrUpdateResponse, CertificateDeleteOptionalParams, CertificateRefreshSecretOptionalParams, - CertificateRefreshSecretResponse + CertificateRefreshSecretResponse, } from "../models"; /// @@ -34,7 +34,7 @@ export interface Certificate { listByService( resourceGroupName: string, serviceName: string, - options?: CertificateListByServiceOptionalParams + options?: CertificateListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the certificate specified by its identifier. @@ -48,7 +48,7 @@ export interface Certificate { resourceGroupName: string, serviceName: string, certificateId: string, - options?: CertificateGetEntityTagOptionalParams + options?: CertificateGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the certificate specified by its identifier. @@ -62,7 +62,7 @@ export interface Certificate { resourceGroupName: string, serviceName: string, certificateId: string, - options?: CertificateGetOptionalParams + options?: CertificateGetOptionalParams, ): Promise; /** * Creates or updates the certificate being used for authentication with the backend. @@ -78,7 +78,7 @@ export interface Certificate { serviceName: string, certificateId: string, parameters: CertificateCreateOrUpdateParameters, - options?: CertificateCreateOrUpdateOptionalParams + options?: CertificateCreateOrUpdateOptionalParams, ): Promise; /** * Deletes specific certificate. @@ -95,7 +95,7 @@ export interface Certificate { serviceName: string, certificateId: string, ifMatch: string, - options?: CertificateDeleteOptionalParams + options?: CertificateDeleteOptionalParams, ): Promise; /** * From KeyVault, Refresh the certificate being used for authentication with the backend. @@ -109,6 +109,6 @@ export interface Certificate { resourceGroupName: string, serviceName: string, certificateId: string, - options?: CertificateRefreshSecretOptionalParams + options?: CertificateRefreshSecretOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentItem.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentItem.ts index d6db18227d54..655c94bad43e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentItem.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentItem.ts @@ -16,7 +16,7 @@ import { ContentItemGetResponse, ContentItemCreateOrUpdateOptionalParams, ContentItemCreateOrUpdateResponse, - ContentItemDeleteOptionalParams + ContentItemDeleteOptionalParams, } from "../models"; /// @@ -33,7 +33,7 @@ export interface ContentItem { resourceGroupName: string, serviceName: string, contentTypeId: string, - options?: ContentItemListByServiceOptionalParams + options?: ContentItemListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Returns the entity state (ETag) version of the developer portal's content item specified by its @@ -49,7 +49,7 @@ export interface ContentItem { serviceName: string, contentTypeId: string, contentItemId: string, - options?: ContentItemGetEntityTagOptionalParams + options?: ContentItemGetEntityTagOptionalParams, ): Promise; /** * Returns the developer portal's content item specified by its identifier. @@ -64,7 +64,7 @@ export interface ContentItem { serviceName: string, contentTypeId: string, contentItemId: string, - options?: ContentItemGetOptionalParams + options?: ContentItemGetOptionalParams, ): Promise; /** * Creates a new developer portal's content item specified by the provided content type. @@ -81,7 +81,7 @@ export interface ContentItem { contentTypeId: string, contentItemId: string, parameters: ContentItemContract, - options?: ContentItemCreateOrUpdateOptionalParams + options?: ContentItemCreateOrUpdateOptionalParams, ): Promise; /** * Removes the specified developer portal's content item. @@ -99,6 +99,6 @@ export interface ContentItem { contentTypeId: string, contentItemId: string, ifMatch: string, - options?: ContentItemDeleteOptionalParams + options?: ContentItemDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentType.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentType.ts index 68c247315096..6bd0baad3cf2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentType.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentType.ts @@ -14,7 +14,7 @@ import { ContentTypeGetResponse, ContentTypeCreateOrUpdateOptionalParams, ContentTypeCreateOrUpdateResponse, - ContentTypeDeleteOptionalParams + ContentTypeDeleteOptionalParams, } from "../models"; /// @@ -30,7 +30,7 @@ export interface ContentType { listByService( resourceGroupName: string, serviceName: string, - options?: ContentTypeListByServiceOptionalParams + options?: ContentTypeListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of the developer portal's content type. Content types describe content items' @@ -44,7 +44,7 @@ export interface ContentType { resourceGroupName: string, serviceName: string, contentTypeId: string, - options?: ContentTypeGetOptionalParams + options?: ContentTypeGetOptionalParams, ): Promise; /** * Creates or updates the developer portal's content type. Content types describe content items' @@ -61,7 +61,7 @@ export interface ContentType { serviceName: string, contentTypeId: string, parameters: ContentTypeContract, - options?: ContentTypeCreateOrUpdateOptionalParams + options?: ContentTypeCreateOrUpdateOptionalParams, ): Promise; /** * Removes the specified developer portal's content type. Content types describe content items' @@ -79,6 +79,6 @@ export interface ContentType { serviceName: string, contentTypeId: string, ifMatch: string, - options?: ContentTypeDeleteOptionalParams + options?: ContentTypeDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/delegationSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/delegationSettings.ts index 650d46f719ba..f20143fd5128 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/delegationSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/delegationSettings.ts @@ -16,7 +16,7 @@ import { DelegationSettingsCreateOrUpdateOptionalParams, DelegationSettingsCreateOrUpdateResponse, DelegationSettingsListSecretsOptionalParams, - DelegationSettingsListSecretsResponse + DelegationSettingsListSecretsResponse, } from "../models"; /** Interface representing a DelegationSettings. */ @@ -30,7 +30,7 @@ export interface DelegationSettings { getEntityTag( resourceGroupName: string, serviceName: string, - options?: DelegationSettingsGetEntityTagOptionalParams + options?: DelegationSettingsGetEntityTagOptionalParams, ): Promise; /** * Get Delegation Settings for the Portal. @@ -41,7 +41,7 @@ export interface DelegationSettings { get( resourceGroupName: string, serviceName: string, - options?: DelegationSettingsGetOptionalParams + options?: DelegationSettingsGetOptionalParams, ): Promise; /** * Update Delegation settings. @@ -57,7 +57,7 @@ export interface DelegationSettings { serviceName: string, ifMatch: string, parameters: PortalDelegationSettings, - options?: DelegationSettingsUpdateOptionalParams + options?: DelegationSettingsUpdateOptionalParams, ): Promise; /** * Create or Update Delegation settings. @@ -70,7 +70,7 @@ export interface DelegationSettings { resourceGroupName: string, serviceName: string, parameters: PortalDelegationSettings, - options?: DelegationSettingsCreateOrUpdateOptionalParams + options?: DelegationSettingsCreateOrUpdateOptionalParams, ): Promise; /** * Gets the secret validation key of the DelegationSettings. @@ -81,6 +81,6 @@ export interface DelegationSettings { listSecrets( resourceGroupName: string, serviceName: string, - options?: DelegationSettingsListSecretsOptionalParams + options?: DelegationSettingsListSecretsOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/deletedServices.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/deletedServices.ts index fda32ab5743c..e015a6dfebb8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/deletedServices.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/deletedServices.ts @@ -13,7 +13,7 @@ import { DeletedServicesListBySubscriptionOptionalParams, DeletedServicesGetByNameOptionalParams, DeletedServicesGetByNameResponse, - DeletedServicesPurgeOptionalParams + DeletedServicesPurgeOptionalParams, } from "../models"; /// @@ -24,7 +24,7 @@ export interface DeletedServices { * @param options The options parameters. */ listBySubscription( - options?: DeletedServicesListBySubscriptionOptionalParams + options?: DeletedServicesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get soft-deleted Api Management Service by name. @@ -35,7 +35,7 @@ export interface DeletedServices { getByName( serviceName: string, location: string, - options?: DeletedServicesGetByNameOptionalParams + options?: DeletedServicesGetByNameOptionalParams, ): Promise; /** * Purges Api Management Service (deletes it with no option to undelete). @@ -46,7 +46,7 @@ export interface DeletedServices { beginPurge( serviceName: string, location: string, - options?: DeletedServicesPurgeOptionalParams + options?: DeletedServicesPurgeOptionalParams, ): Promise, void>>; /** * Purges Api Management Service (deletes it with no option to undelete). @@ -57,6 +57,6 @@ export interface DeletedServices { beginPurgeAndWait( serviceName: string, location: string, - options?: DeletedServicesPurgeOptionalParams + options?: DeletedServicesPurgeOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/diagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/diagnostic.ts index a33338aa2633..ac5f976b6d6e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/diagnostic.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/diagnostic.ts @@ -18,7 +18,7 @@ import { DiagnosticCreateOrUpdateResponse, DiagnosticUpdateOptionalParams, DiagnosticUpdateResponse, - DiagnosticDeleteOptionalParams + DiagnosticDeleteOptionalParams, } from "../models"; /// @@ -33,7 +33,7 @@ export interface Diagnostic { listByService( resourceGroupName: string, serviceName: string, - options?: DiagnosticListByServiceOptionalParams + options?: DiagnosticListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Diagnostic specified by its identifier. @@ -47,7 +47,7 @@ export interface Diagnostic { resourceGroupName: string, serviceName: string, diagnosticId: string, - options?: DiagnosticGetEntityTagOptionalParams + options?: DiagnosticGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Diagnostic specified by its identifier. @@ -61,7 +61,7 @@ export interface Diagnostic { resourceGroupName: string, serviceName: string, diagnosticId: string, - options?: DiagnosticGetOptionalParams + options?: DiagnosticGetOptionalParams, ): Promise; /** * Creates a new Diagnostic or updates an existing one. @@ -77,7 +77,7 @@ export interface Diagnostic { serviceName: string, diagnosticId: string, parameters: DiagnosticContract, - options?: DiagnosticCreateOrUpdateOptionalParams + options?: DiagnosticCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the Diagnostic specified by its identifier. @@ -96,7 +96,7 @@ export interface Diagnostic { diagnosticId: string, ifMatch: string, parameters: DiagnosticContract, - options?: DiagnosticUpdateOptionalParams + options?: DiagnosticUpdateOptionalParams, ): Promise; /** * Deletes the specified Diagnostic. @@ -113,6 +113,6 @@ export interface Diagnostic { serviceName: string, diagnosticId: string, ifMatch: string, - options?: DiagnosticDeleteOptionalParams + options?: DiagnosticDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/documentation.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/documentation.ts index 6a9cc7551419..6b51f610c784 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/documentation.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/documentation.ts @@ -19,7 +19,7 @@ import { DocumentationUpdateContract, DocumentationUpdateOptionalParams, DocumentationUpdateResponse, - DocumentationDeleteOptionalParams + DocumentationDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface Documentation { listByService( resourceGroupName: string, serviceName: string, - options?: DocumentationListByServiceOptionalParams + options?: DocumentationListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Documentation by its identifier. @@ -48,7 +48,7 @@ export interface Documentation { resourceGroupName: string, serviceName: string, documentationId: string, - options?: DocumentationGetEntityTagOptionalParams + options?: DocumentationGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Documentation specified by its identifier. @@ -62,7 +62,7 @@ export interface Documentation { resourceGroupName: string, serviceName: string, documentationId: string, - options?: DocumentationGetOptionalParams + options?: DocumentationGetOptionalParams, ): Promise; /** * Creates a new Documentation or updates an existing one. @@ -78,7 +78,7 @@ export interface Documentation { serviceName: string, documentationId: string, parameters: DocumentationContract, - options?: DocumentationCreateOrUpdateOptionalParams + options?: DocumentationCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the Documentation for an API specified by its identifier. @@ -97,7 +97,7 @@ export interface Documentation { documentationId: string, ifMatch: string, parameters: DocumentationUpdateContract, - options?: DocumentationUpdateOptionalParams + options?: DocumentationUpdateOptionalParams, ): Promise; /** * Deletes the specified Documentation from an API. @@ -114,6 +114,6 @@ export interface Documentation { serviceName: string, documentationId: string, ifMatch: string, - options?: DocumentationDeleteOptionalParams + options?: DocumentationDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/emailTemplate.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/emailTemplate.ts index daa6c97bed59..c02ce23721de 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/emailTemplate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/emailTemplate.ts @@ -20,7 +20,7 @@ import { EmailTemplateCreateOrUpdateResponse, EmailTemplateUpdateOptionalParams, EmailTemplateUpdateResponse, - EmailTemplateDeleteOptionalParams + EmailTemplateDeleteOptionalParams, } from "../models"; /// @@ -35,7 +35,7 @@ export interface EmailTemplate { listByService( resourceGroupName: string, serviceName: string, - options?: EmailTemplateListByServiceOptionalParams + options?: EmailTemplateListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the email template specified by its identifier. @@ -48,7 +48,7 @@ export interface EmailTemplate { resourceGroupName: string, serviceName: string, templateName: TemplateName, - options?: EmailTemplateGetEntityTagOptionalParams + options?: EmailTemplateGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the email template specified by its identifier. @@ -61,7 +61,7 @@ export interface EmailTemplate { resourceGroupName: string, serviceName: string, templateName: TemplateName, - options?: EmailTemplateGetOptionalParams + options?: EmailTemplateGetOptionalParams, ): Promise; /** * Updates an Email Template. @@ -76,7 +76,7 @@ export interface EmailTemplate { serviceName: string, templateName: TemplateName, parameters: EmailTemplateUpdateParameters, - options?: EmailTemplateCreateOrUpdateOptionalParams + options?: EmailTemplateCreateOrUpdateOptionalParams, ): Promise; /** * Updates API Management email template @@ -94,7 +94,7 @@ export interface EmailTemplate { templateName: TemplateName, ifMatch: string, parameters: EmailTemplateUpdateParameters, - options?: EmailTemplateUpdateOptionalParams + options?: EmailTemplateUpdateOptionalParams, ): Promise; /** * Reset the Email Template to default template provided by the API Management service instance. @@ -110,6 +110,6 @@ export interface EmailTemplate { serviceName: string, templateName: TemplateName, ifMatch: string, - options?: EmailTemplateDeleteOptionalParams + options?: EmailTemplateDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts index 00a5b5b809c8..e8cd7bd29474 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts @@ -25,7 +25,14 @@ import { GatewayRegenerateKeyOptionalParams, GatewayTokenRequestContract, GatewayGenerateTokenOptionalParams, - GatewayGenerateTokenResponse + GatewayGenerateTokenResponse, + GatewayInvalidateDebugCredentialsOptionalParams, + GatewayListDebugCredentialsContract, + GatewayListDebugCredentialsOptionalParams, + GatewayListDebugCredentialsResponse, + GatewayListTraceContract, + GatewayListTraceOptionalParams, + GatewayListTraceResponse, } from "../models"; /// @@ -40,7 +47,7 @@ export interface Gateway { listByService( resourceGroupName: string, serviceName: string, - options?: GatewayListByServiceOptionalParams + options?: GatewayListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Gateway specified by its identifier. @@ -54,7 +61,7 @@ export interface Gateway { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayGetEntityTagOptionalParams + options?: GatewayGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Gateway specified by its identifier. @@ -68,7 +75,7 @@ export interface Gateway { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayGetOptionalParams + options?: GatewayGetOptionalParams, ): Promise; /** * Creates or updates a Gateway to be used in Api Management instance. @@ -84,7 +91,7 @@ export interface Gateway { serviceName: string, gatewayId: string, parameters: GatewayContract, - options?: GatewayCreateOrUpdateOptionalParams + options?: GatewayCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the gateway specified by its identifier. @@ -103,7 +110,7 @@ export interface Gateway { gatewayId: string, ifMatch: string, parameters: GatewayContract, - options?: GatewayUpdateOptionalParams + options?: GatewayUpdateOptionalParams, ): Promise; /** * Deletes specific Gateway. @@ -120,7 +127,7 @@ export interface Gateway { serviceName: string, gatewayId: string, ifMatch: string, - options?: GatewayDeleteOptionalParams + options?: GatewayDeleteOptionalParams, ): Promise; /** * Retrieves gateway keys. @@ -134,7 +141,7 @@ export interface Gateway { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayListKeysOptionalParams + options?: GatewayListKeysOptionalParams, ): Promise; /** * Regenerates specified gateway key invalidating any tokens created with it. @@ -150,7 +157,7 @@ export interface Gateway { serviceName: string, gatewayId: string, parameters: GatewayKeyRegenerationRequestContract, - options?: GatewayRegenerateKeyOptionalParams + options?: GatewayRegenerateKeyOptionalParams, ): Promise; /** * Gets the Shared Access Authorization Token for the gateway. @@ -166,6 +173,52 @@ export interface Gateway { serviceName: string, gatewayId: string, parameters: GatewayTokenRequestContract, - options?: GatewayGenerateTokenOptionalParams + options?: GatewayGenerateTokenOptionalParams, ): Promise; + /** + * Action is invalidating all debug credentials issued for gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param options The options parameters. + */ + invalidateDebugCredentials( + resourceGroupName: string, + serviceName: string, + gatewayId: string, + options?: GatewayInvalidateDebugCredentialsOptionalParams, + ): Promise; + /** + * Create new debug credentials for gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters List debug credentials properties. + * @param options The options parameters. + */ + listDebugCredentials( + resourceGroupName: string, + serviceName: string, + gatewayId: string, + parameters: GatewayListDebugCredentialsContract, + options?: GatewayListDebugCredentialsOptionalParams, + ): Promise; + /** + * Fetches trace collected by gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters List trace properties. + * @param options The options parameters. + */ + listTrace( + resourceGroupName: string, + serviceName: string, + gatewayId: string, + parameters: GatewayListTraceContract, + options?: GatewayListTraceOptionalParams, + ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayApi.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayApi.ts index 40fbda7aec7f..7bc1699b7211 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayApi.ts @@ -14,7 +14,7 @@ import { GatewayApiGetEntityTagResponse, GatewayApiCreateOrUpdateOptionalParams, GatewayApiCreateOrUpdateResponse, - GatewayApiDeleteOptionalParams + GatewayApiDeleteOptionalParams, } from "../models"; /// @@ -32,7 +32,7 @@ export interface GatewayApi { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayApiListByServiceOptionalParams + options?: GatewayApiListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Checks that API entity specified by identifier is associated with the Gateway entity. @@ -48,7 +48,7 @@ export interface GatewayApi { serviceName: string, gatewayId: string, apiId: string, - options?: GatewayApiGetEntityTagOptionalParams + options?: GatewayApiGetEntityTagOptionalParams, ): Promise; /** * Adds an API to the specified Gateway. @@ -64,7 +64,7 @@ export interface GatewayApi { serviceName: string, gatewayId: string, apiId: string, - options?: GatewayApiCreateOrUpdateOptionalParams + options?: GatewayApiCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the specified API from the specified Gateway. @@ -80,6 +80,6 @@ export interface GatewayApi { serviceName: string, gatewayId: string, apiId: string, - options?: GatewayApiDeleteOptionalParams + options?: GatewayApiDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayCertificateAuthority.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayCertificateAuthority.ts index 8295474134eb..7f809b4acaed 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayCertificateAuthority.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayCertificateAuthority.ts @@ -16,7 +16,7 @@ import { GatewayCertificateAuthorityGetResponse, GatewayCertificateAuthorityCreateOrUpdateOptionalParams, GatewayCertificateAuthorityCreateOrUpdateResponse, - GatewayCertificateAuthorityDeleteOptionalParams + GatewayCertificateAuthorityDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface GatewayCertificateAuthority { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayCertificateAuthorityListByServiceOptionalParams + options?: GatewayCertificateAuthorityListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Checks if Certificate entity is assigned to Gateway entity as Certificate Authority. @@ -51,7 +51,7 @@ export interface GatewayCertificateAuthority { serviceName: string, gatewayId: string, certificateId: string, - options?: GatewayCertificateAuthorityGetEntityTagOptionalParams + options?: GatewayCertificateAuthorityGetEntityTagOptionalParams, ): Promise; /** * Get assigned Gateway Certificate Authority details. @@ -68,7 +68,7 @@ export interface GatewayCertificateAuthority { serviceName: string, gatewayId: string, certificateId: string, - options?: GatewayCertificateAuthorityGetOptionalParams + options?: GatewayCertificateAuthorityGetOptionalParams, ): Promise; /** * Assign Certificate entity to Gateway entity as Certificate Authority. @@ -87,7 +87,7 @@ export interface GatewayCertificateAuthority { gatewayId: string, certificateId: string, parameters: GatewayCertificateAuthorityContract, - options?: GatewayCertificateAuthorityCreateOrUpdateOptionalParams + options?: GatewayCertificateAuthorityCreateOrUpdateOptionalParams, ): Promise; /** * Remove relationship between Certificate Authority and Gateway entity. @@ -107,6 +107,6 @@ export interface GatewayCertificateAuthority { gatewayId: string, certificateId: string, ifMatch: string, - options?: GatewayCertificateAuthorityDeleteOptionalParams + options?: GatewayCertificateAuthorityDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayHostnameConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayHostnameConfiguration.ts index 51859ce26a5e..efdb121fa283 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayHostnameConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayHostnameConfiguration.ts @@ -16,7 +16,7 @@ import { GatewayHostnameConfigurationGetResponse, GatewayHostnameConfigurationCreateOrUpdateOptionalParams, GatewayHostnameConfigurationCreateOrUpdateResponse, - GatewayHostnameConfigurationDeleteOptionalParams + GatewayHostnameConfigurationDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface GatewayHostnameConfiguration { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayHostnameConfigurationListByServiceOptionalParams + options?: GatewayHostnameConfigurationListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Checks that hostname configuration entity specified by identifier exists for specified Gateway @@ -52,7 +52,7 @@ export interface GatewayHostnameConfiguration { serviceName: string, gatewayId: string, hcId: string, - options?: GatewayHostnameConfigurationGetEntityTagOptionalParams + options?: GatewayHostnameConfigurationGetEntityTagOptionalParams, ): Promise; /** * Get details of a hostname configuration @@ -69,7 +69,7 @@ export interface GatewayHostnameConfiguration { serviceName: string, gatewayId: string, hcId: string, - options?: GatewayHostnameConfigurationGetOptionalParams + options?: GatewayHostnameConfigurationGetOptionalParams, ): Promise; /** * Creates of updates hostname configuration for a Gateway. @@ -88,7 +88,7 @@ export interface GatewayHostnameConfiguration { gatewayId: string, hcId: string, parameters: GatewayHostnameConfigurationContract, - options?: GatewayHostnameConfigurationCreateOrUpdateOptionalParams + options?: GatewayHostnameConfigurationCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the specified hostname configuration from the specified Gateway. @@ -108,6 +108,6 @@ export interface GatewayHostnameConfiguration { gatewayId: string, hcId: string, ifMatch: string, - options?: GatewayHostnameConfigurationDeleteOptionalParams + options?: GatewayHostnameConfigurationDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts index a41c3a8d9396..511e5515ecd0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts @@ -17,7 +17,7 @@ import { GlobalSchemaGetResponse, GlobalSchemaCreateOrUpdateOptionalParams, GlobalSchemaCreateOrUpdateResponse, - GlobalSchemaDeleteOptionalParams + GlobalSchemaDeleteOptionalParams, } from "../models"; /// @@ -32,7 +32,7 @@ export interface GlobalSchema { listByService( resourceGroupName: string, serviceName: string, - options?: GlobalSchemaListByServiceOptionalParams + options?: GlobalSchemaListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Schema specified by its identifier. @@ -45,7 +45,7 @@ export interface GlobalSchema { resourceGroupName: string, serviceName: string, schemaId: string, - options?: GlobalSchemaGetEntityTagOptionalParams + options?: GlobalSchemaGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Schema specified by its identifier. @@ -58,7 +58,7 @@ export interface GlobalSchema { resourceGroupName: string, serviceName: string, schemaId: string, - options?: GlobalSchemaGetOptionalParams + options?: GlobalSchemaGetOptionalParams, ): Promise; /** * Creates new or updates existing specified Schema of the API Management service instance. @@ -73,7 +73,7 @@ export interface GlobalSchema { serviceName: string, schemaId: string, parameters: GlobalSchemaContract, - options?: GlobalSchemaCreateOrUpdateOptionalParams + options?: GlobalSchemaCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -93,7 +93,7 @@ export interface GlobalSchema { serviceName: string, schemaId: string, parameters: GlobalSchemaContract, - options?: GlobalSchemaCreateOrUpdateOptionalParams + options?: GlobalSchemaCreateOrUpdateOptionalParams, ): Promise; /** * Deletes specific Schema. @@ -109,6 +109,6 @@ export interface GlobalSchema { serviceName: string, schemaId: string, ifMatch: string, - options?: GlobalSchemaDeleteOptionalParams + options?: GlobalSchemaDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolver.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolver.ts index a26be7a75349..c8073f73a737 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolver.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolver.ts @@ -19,7 +19,7 @@ import { ResolverUpdateContract, GraphQLApiResolverUpdateOptionalParams, GraphQLApiResolverUpdateResponse, - GraphQLApiResolverDeleteOptionalParams + GraphQLApiResolverDeleteOptionalParams, } from "../models"; /// @@ -37,7 +37,7 @@ export interface GraphQLApiResolver { resourceGroupName: string, serviceName: string, apiId: string, - options?: GraphQLApiResolverListByApiOptionalParams + options?: GraphQLApiResolverListByApiOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the GraphQL API resolver specified by its identifier. @@ -54,7 +54,7 @@ export interface GraphQLApiResolver { serviceName: string, apiId: string, resolverId: string, - options?: GraphQLApiResolverGetEntityTagOptionalParams + options?: GraphQLApiResolverGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the GraphQL API Resolver specified by its identifier. @@ -71,7 +71,7 @@ export interface GraphQLApiResolver { serviceName: string, apiId: string, resolverId: string, - options?: GraphQLApiResolverGetOptionalParams + options?: GraphQLApiResolverGetOptionalParams, ): Promise; /** * Creates a new resolver in the GraphQL API or updates an existing one. @@ -90,7 +90,7 @@ export interface GraphQLApiResolver { apiId: string, resolverId: string, parameters: ResolverContract, - options?: GraphQLApiResolverCreateOrUpdateOptionalParams + options?: GraphQLApiResolverCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the resolver in the GraphQL API specified by its identifier. @@ -112,7 +112,7 @@ export interface GraphQLApiResolver { resolverId: string, ifMatch: string, parameters: ResolverUpdateContract, - options?: GraphQLApiResolverUpdateOptionalParams + options?: GraphQLApiResolverUpdateOptionalParams, ): Promise; /** * Deletes the specified resolver in the GraphQL API. @@ -132,6 +132,6 @@ export interface GraphQLApiResolver { apiId: string, resolverId: string, ifMatch: string, - options?: GraphQLApiResolverDeleteOptionalParams + options?: GraphQLApiResolverDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolverPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolverPolicy.ts index d2bba1d665a9..23c4f07a637b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolverPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolverPolicy.ts @@ -17,7 +17,7 @@ import { GraphQLApiResolverPolicyGetResponse, GraphQLApiResolverPolicyCreateOrUpdateOptionalParams, GraphQLApiResolverPolicyCreateOrUpdateResponse, - GraphQLApiResolverPolicyDeleteOptionalParams + GraphQLApiResolverPolicyDeleteOptionalParams, } from "../models"; /// @@ -38,7 +38,7 @@ export interface GraphQLApiResolverPolicy { serviceName: string, apiId: string, resolverId: string, - options?: GraphQLApiResolverPolicyListByResolverOptionalParams + options?: GraphQLApiResolverPolicyListByResolverOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the GraphQL API resolver policy specified by its identifier. @@ -57,7 +57,7 @@ export interface GraphQLApiResolverPolicy { apiId: string, resolverId: string, policyId: PolicyIdName, - options?: GraphQLApiResolverPolicyGetEntityTagOptionalParams + options?: GraphQLApiResolverPolicyGetEntityTagOptionalParams, ): Promise; /** * Get the policy configuration at the GraphQL API Resolver level. @@ -76,7 +76,7 @@ export interface GraphQLApiResolverPolicy { apiId: string, resolverId: string, policyId: PolicyIdName, - options?: GraphQLApiResolverPolicyGetOptionalParams + options?: GraphQLApiResolverPolicyGetOptionalParams, ): Promise; /** * Creates or updates policy configuration for the GraphQL API Resolver level. @@ -97,7 +97,7 @@ export interface GraphQLApiResolverPolicy { resolverId: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: GraphQLApiResolverPolicyCreateOrUpdateOptionalParams + options?: GraphQLApiResolverPolicyCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the policy configuration at the GraphQL Api Resolver. @@ -119,6 +119,6 @@ export interface GraphQLApiResolverPolicy { resolverId: string, policyId: PolicyIdName, ifMatch: string, - options?: GraphQLApiResolverPolicyDeleteOptionalParams + options?: GraphQLApiResolverPolicyDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/group.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/group.ts index 2be3ae28bb90..6297f6f8ca32 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/group.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/group.ts @@ -20,7 +20,7 @@ import { GroupUpdateParameters, GroupUpdateOptionalParams, GroupUpdateResponse, - GroupDeleteOptionalParams + GroupDeleteOptionalParams, } from "../models"; /// @@ -35,7 +35,7 @@ export interface Group { listByService( resourceGroupName: string, serviceName: string, - options?: GroupListByServiceOptionalParams + options?: GroupListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the group specified by its identifier. @@ -48,7 +48,7 @@ export interface Group { resourceGroupName: string, serviceName: string, groupId: string, - options?: GroupGetEntityTagOptionalParams + options?: GroupGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the group specified by its identifier. @@ -61,7 +61,7 @@ export interface Group { resourceGroupName: string, serviceName: string, groupId: string, - options?: GroupGetOptionalParams + options?: GroupGetOptionalParams, ): Promise; /** * Creates or Updates a group. @@ -76,7 +76,7 @@ export interface Group { serviceName: string, groupId: string, parameters: GroupCreateParameters, - options?: GroupCreateOrUpdateOptionalParams + options?: GroupCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the group specified by its identifier. @@ -94,7 +94,7 @@ export interface Group { groupId: string, ifMatch: string, parameters: GroupUpdateParameters, - options?: GroupUpdateOptionalParams + options?: GroupUpdateOptionalParams, ): Promise; /** * Deletes specific group of the API Management service instance. @@ -110,6 +110,6 @@ export interface Group { serviceName: string, groupId: string, ifMatch: string, - options?: GroupDeleteOptionalParams + options?: GroupDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/groupUser.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/groupUser.ts index 3eb645744d60..162629423d60 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/groupUser.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/groupUser.ts @@ -14,7 +14,7 @@ import { GroupUserCheckEntityExistsResponse, GroupUserCreateOptionalParams, GroupUserCreateResponse, - GroupUserDeleteOptionalParams + GroupUserDeleteOptionalParams, } from "../models"; /// @@ -31,7 +31,7 @@ export interface GroupUser { resourceGroupName: string, serviceName: string, groupId: string, - options?: GroupUserListOptionalParams + options?: GroupUserListOptionalParams, ): PagedAsyncIterableIterator; /** * Checks that user entity specified by identifier is associated with the group entity. @@ -46,7 +46,7 @@ export interface GroupUser { serviceName: string, groupId: string, userId: string, - options?: GroupUserCheckEntityExistsOptionalParams + options?: GroupUserCheckEntityExistsOptionalParams, ): Promise; /** * Add existing user to existing group @@ -61,7 +61,7 @@ export interface GroupUser { serviceName: string, groupId: string, userId: string, - options?: GroupUserCreateOptionalParams + options?: GroupUserCreateOptionalParams, ): Promise; /** * Remove existing user from existing group. @@ -76,6 +76,6 @@ export interface GroupUser { serviceName: string, groupId: string, userId: string, - options?: GroupUserDeleteOptionalParams + options?: GroupUserDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/identityProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/identityProvider.ts index c5317c014fbb..9ba22c9c2ddd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/identityProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/identityProvider.ts @@ -23,7 +23,7 @@ import { IdentityProviderUpdateResponse, IdentityProviderDeleteOptionalParams, IdentityProviderListSecretsOptionalParams, - IdentityProviderListSecretsResponse + IdentityProviderListSecretsResponse, } from "../models"; /// @@ -38,7 +38,7 @@ export interface IdentityProvider { listByService( resourceGroupName: string, serviceName: string, - options?: IdentityProviderListByServiceOptionalParams + options?: IdentityProviderListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the identityProvider specified by its identifier. @@ -51,7 +51,7 @@ export interface IdentityProvider { resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, - options?: IdentityProviderGetEntityTagOptionalParams + options?: IdentityProviderGetEntityTagOptionalParams, ): Promise; /** * Gets the configuration details of the identity Provider configured in specified service instance. @@ -64,7 +64,7 @@ export interface IdentityProvider { resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, - options?: IdentityProviderGetOptionalParams + options?: IdentityProviderGetOptionalParams, ): Promise; /** * Creates or Updates the IdentityProvider configuration. @@ -79,7 +79,7 @@ export interface IdentityProvider { serviceName: string, identityProviderName: IdentityProviderType, parameters: IdentityProviderCreateContract, - options?: IdentityProviderCreateOrUpdateOptionalParams + options?: IdentityProviderCreateOrUpdateOptionalParams, ): Promise; /** * Updates an existing IdentityProvider configuration. @@ -97,7 +97,7 @@ export interface IdentityProvider { identityProviderName: IdentityProviderType, ifMatch: string, parameters: IdentityProviderUpdateParameters, - options?: IdentityProviderUpdateOptionalParams + options?: IdentityProviderUpdateOptionalParams, ): Promise; /** * Deletes the specified identity provider configuration. @@ -113,7 +113,7 @@ export interface IdentityProvider { serviceName: string, identityProviderName: IdentityProviderType, ifMatch: string, - options?: IdentityProviderDeleteOptionalParams + options?: IdentityProviderDeleteOptionalParams, ): Promise; /** * Gets the client secret details of the Identity Provider. @@ -126,6 +126,6 @@ export interface IdentityProvider { resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, - options?: IdentityProviderListSecretsOptionalParams + options?: IdentityProviderListSecretsOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts index 83434e88bcd2..09f3ef9b11f3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts @@ -6,6 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./allPolicies"; +export * from "./apiManagementGateway"; export * from "./api"; export * from "./apiRevision"; export * from "./apiRelease"; @@ -27,11 +29,11 @@ export * from "./apiWiki"; export * from "./apiWikis"; export * from "./apiExport"; export * from "./apiVersionSet"; -export * from "./authorizationServer"; export * from "./authorizationProvider"; export * from "./authorization"; export * from "./authorizationLoginLinks"; export * from "./authorizationAccessPolicy"; +export * from "./authorizationServer"; export * from "./backend"; export * from "./cache"; export * from "./certificate"; @@ -42,6 +44,7 @@ export * from "./apiManagementOperations"; export * from "./apiManagementServiceSkus"; export * from "./apiManagementService"; export * from "./diagnostic"; +export * from "./documentation"; export * from "./emailTemplate"; export * from "./gateway"; export * from "./gatewayHostnameConfiguration"; @@ -62,6 +65,8 @@ export * from "./outboundNetworkDependenciesEndpoints"; export * from "./policy"; export * from "./policyDescription"; export * from "./policyFragment"; +export * from "./policyRestriction"; +export * from "./policyRestrictionValidations"; export * from "./portalConfig"; export * from "./portalRevision"; export * from "./portalSettings"; @@ -76,6 +81,8 @@ export * from "./productSubscriptions"; export * from "./productPolicy"; export * from "./productWiki"; export * from "./productWikis"; +export * from "./productApiLink"; +export * from "./productGroupLink"; export * from "./quotaByCounterKeys"; export * from "./quotaByPeriodKeys"; export * from "./region"; @@ -85,6 +92,9 @@ export * from "./tenantSettings"; export * from "./apiManagementSkus"; export * from "./subscription"; export * from "./tagResource"; +export * from "./tagApiLink"; +export * from "./tagOperationLink"; +export * from "./tagProductLink"; export * from "./tenantAccess"; export * from "./tenantAccessGit"; export * from "./tenantConfiguration"; @@ -93,4 +103,31 @@ export * from "./userGroup"; export * from "./userSubscription"; export * from "./userIdentities"; export * from "./userConfirmationPassword"; -export * from "./documentation"; +export * from "./workspace"; +export * from "./workspacePolicy"; +export * from "./workspaceNamedValue"; +export * from "./workspaceGlobalSchema"; +export * from "./workspaceNotification"; +export * from "./workspaceNotificationRecipientUser"; +export * from "./workspaceNotificationRecipientEmail"; +export * from "./workspacePolicyFragment"; +export * from "./workspaceGroup"; +export * from "./workspaceGroupUser"; +export * from "./workspaceSubscription"; +export * from "./workspaceApiVersionSet"; +export * from "./workspaceApi"; +export * from "./workspaceApiRevision"; +export * from "./workspaceApiRelease"; +export * from "./workspaceApiOperation"; +export * from "./workspaceApiOperationPolicy"; +export * from "./workspaceApiPolicy"; +export * from "./workspaceApiSchema"; +export * from "./workspaceProduct"; +export * from "./workspaceProductApiLink"; +export * from "./workspaceProductGroupLink"; +export * from "./workspaceProductPolicy"; +export * from "./workspaceTag"; +export * from "./workspaceTagApiLink"; +export * from "./workspaceTagOperationLink"; +export * from "./workspaceTagProductLink"; +export * from "./workspaceApiExport"; diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/issue.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/issue.ts index 9b26a41c56f2..d4370f79dbb0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/issue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/issue.ts @@ -11,7 +11,7 @@ import { IssueContract, IssueListByServiceOptionalParams, IssueGetOptionalParams, - IssueGetResponse + IssueGetResponse, } from "../models"; /// @@ -26,7 +26,7 @@ export interface Issue { listByService( resourceGroupName: string, serviceName: string, - options?: IssueListByServiceOptionalParams + options?: IssueListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets API Management issue details @@ -39,6 +39,6 @@ export interface Issue { resourceGroupName: string, serviceName: string, issueId: string, - options?: IssueGetOptionalParams + options?: IssueGetOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/logger.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/logger.ts index 8ec31d0af0c0..a8aed0d4894f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/logger.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/logger.ts @@ -19,7 +19,7 @@ import { LoggerUpdateContract, LoggerUpdateOptionalParams, LoggerUpdateResponse, - LoggerDeleteOptionalParams + LoggerDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface Logger { listByService( resourceGroupName: string, serviceName: string, - options?: LoggerListByServiceOptionalParams + options?: LoggerListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the logger specified by its identifier. @@ -47,7 +47,7 @@ export interface Logger { resourceGroupName: string, serviceName: string, loggerId: string, - options?: LoggerGetEntityTagOptionalParams + options?: LoggerGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the logger specified by its identifier. @@ -60,7 +60,7 @@ export interface Logger { resourceGroupName: string, serviceName: string, loggerId: string, - options?: LoggerGetOptionalParams + options?: LoggerGetOptionalParams, ): Promise; /** * Creates or Updates a logger. @@ -75,7 +75,7 @@ export interface Logger { serviceName: string, loggerId: string, parameters: LoggerContract, - options?: LoggerCreateOrUpdateOptionalParams + options?: LoggerCreateOrUpdateOptionalParams, ): Promise; /** * Updates an existing logger. @@ -93,7 +93,7 @@ export interface Logger { loggerId: string, ifMatch: string, parameters: LoggerUpdateContract, - options?: LoggerUpdateOptionalParams + options?: LoggerUpdateOptionalParams, ): Promise; /** * Deletes the specified logger. @@ -109,6 +109,6 @@ export interface Logger { serviceName: string, loggerId: string, ifMatch: string, - options?: LoggerDeleteOptionalParams + options?: LoggerDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts index d325fdb15112..45a6ab1142de 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts @@ -25,7 +25,7 @@ import { NamedValueListValueOptionalParams, NamedValueListValueResponse, NamedValueRefreshSecretOptionalParams, - NamedValueRefreshSecretResponse + NamedValueRefreshSecretResponse, } from "../models"; /// @@ -40,7 +40,7 @@ export interface NamedValue { listByService( resourceGroupName: string, serviceName: string, - options?: NamedValueListByServiceOptionalParams + options?: NamedValueListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the named value specified by its identifier. @@ -53,7 +53,7 @@ export interface NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueGetEntityTagOptionalParams + options?: NamedValueGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the named value specified by its identifier. @@ -66,7 +66,7 @@ export interface NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueGetOptionalParams + options?: NamedValueGetOptionalParams, ): Promise; /** * Creates or updates named value. @@ -81,7 +81,7 @@ export interface NamedValue { serviceName: string, namedValueId: string, parameters: NamedValueCreateContract, - options?: NamedValueCreateOrUpdateOptionalParams + options?: NamedValueCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -101,7 +101,7 @@ export interface NamedValue { serviceName: string, namedValueId: string, parameters: NamedValueCreateContract, - options?: NamedValueCreateOrUpdateOptionalParams + options?: NamedValueCreateOrUpdateOptionalParams, ): Promise; /** * Updates the specific named value. @@ -119,7 +119,7 @@ export interface NamedValue { namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, - options?: NamedValueUpdateOptionalParams + options?: NamedValueUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -142,7 +142,7 @@ export interface NamedValue { namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, - options?: NamedValueUpdateOptionalParams + options?: NamedValueUpdateOptionalParams, ): Promise; /** * Deletes specific named value from the API Management service instance. @@ -158,7 +158,7 @@ export interface NamedValue { serviceName: string, namedValueId: string, ifMatch: string, - options?: NamedValueDeleteOptionalParams + options?: NamedValueDeleteOptionalParams, ): Promise; /** * Gets the secret of the named value specified by its identifier. @@ -171,7 +171,7 @@ export interface NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueListValueOptionalParams + options?: NamedValueListValueOptionalParams, ): Promise; /** * Refresh the secret of the named value specified by its identifier. @@ -184,7 +184,7 @@ export interface NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueRefreshSecretOptionalParams + options?: NamedValueRefreshSecretOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -202,6 +202,6 @@ export interface NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueRefreshSecretOptionalParams + options?: NamedValueRefreshSecretOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/networkStatus.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/networkStatus.ts index 6bed7641b6b9..99089c4eb895 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/networkStatus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/networkStatus.ts @@ -10,7 +10,7 @@ import { NetworkStatusListByServiceOptionalParams, NetworkStatusListByServiceResponse, NetworkStatusListByLocationOptionalParams, - NetworkStatusListByLocationResponse + NetworkStatusListByLocationResponse, } from "../models"; /** Interface representing a NetworkStatus. */ @@ -25,7 +25,7 @@ export interface NetworkStatus { listByService( resourceGroupName: string, serviceName: string, - options?: NetworkStatusListByServiceOptionalParams + options?: NetworkStatusListByServiceOptionalParams, ): Promise; /** * Gets the Connectivity Status to the external resources on which the Api Management service depends @@ -40,6 +40,6 @@ export interface NetworkStatus { resourceGroupName: string, serviceName: string, locationName: string, - options?: NetworkStatusListByLocationOptionalParams + options?: NetworkStatusListByLocationOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notification.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notification.ts index 344725e96540..558444d21412 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notification.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notification.ts @@ -14,7 +14,7 @@ import { NotificationGetOptionalParams, NotificationGetResponse, NotificationCreateOrUpdateOptionalParams, - NotificationCreateOrUpdateResponse + NotificationCreateOrUpdateResponse, } from "../models"; /// @@ -29,7 +29,7 @@ export interface Notification { listByService( resourceGroupName: string, serviceName: string, - options?: NotificationListByServiceOptionalParams + options?: NotificationListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of the Notification specified by its identifier. @@ -42,7 +42,7 @@ export interface Notification { resourceGroupName: string, serviceName: string, notificationName: NotificationName, - options?: NotificationGetOptionalParams + options?: NotificationGetOptionalParams, ): Promise; /** * Create or Update API Management publisher notification. @@ -55,6 +55,6 @@ export interface Notification { resourceGroupName: string, serviceName: string, notificationName: NotificationName, - options?: NotificationCreateOrUpdateOptionalParams + options?: NotificationCreateOrUpdateOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientEmail.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientEmail.ts index 0d0742d5c743..91d6f77fe4d6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientEmail.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientEmail.ts @@ -14,7 +14,7 @@ import { NotificationRecipientEmailCheckEntityExistsResponse, NotificationRecipientEmailCreateOrUpdateOptionalParams, NotificationRecipientEmailCreateOrUpdateResponse, - NotificationRecipientEmailDeleteOptionalParams + NotificationRecipientEmailDeleteOptionalParams, } from "../models"; /** Interface representing a NotificationRecipientEmail. */ @@ -30,7 +30,7 @@ export interface NotificationRecipientEmail { resourceGroupName: string, serviceName: string, notificationName: NotificationName, - options?: NotificationRecipientEmailListByNotificationOptionalParams + options?: NotificationRecipientEmailListByNotificationOptionalParams, ): Promise; /** * Determine if Notification Recipient Email subscribed to the notification. @@ -45,7 +45,7 @@ export interface NotificationRecipientEmail { serviceName: string, notificationName: NotificationName, email: string, - options?: NotificationRecipientEmailCheckEntityExistsOptionalParams + options?: NotificationRecipientEmailCheckEntityExistsOptionalParams, ): Promise; /** * Adds the Email address to the list of Recipients for the Notification. @@ -60,7 +60,7 @@ export interface NotificationRecipientEmail { serviceName: string, notificationName: NotificationName, email: string, - options?: NotificationRecipientEmailCreateOrUpdateOptionalParams + options?: NotificationRecipientEmailCreateOrUpdateOptionalParams, ): Promise; /** * Removes the email from the list of Notification. @@ -75,6 +75,6 @@ export interface NotificationRecipientEmail { serviceName: string, notificationName: NotificationName, email: string, - options?: NotificationRecipientEmailDeleteOptionalParams + options?: NotificationRecipientEmailDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientUser.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientUser.ts index 1e31f45716ba..6854f0dbee7e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientUser.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientUser.ts @@ -14,7 +14,7 @@ import { NotificationRecipientUserCheckEntityExistsResponse, NotificationRecipientUserCreateOrUpdateOptionalParams, NotificationRecipientUserCreateOrUpdateResponse, - NotificationRecipientUserDeleteOptionalParams + NotificationRecipientUserDeleteOptionalParams, } from "../models"; /** Interface representing a NotificationRecipientUser. */ @@ -30,7 +30,7 @@ export interface NotificationRecipientUser { resourceGroupName: string, serviceName: string, notificationName: NotificationName, - options?: NotificationRecipientUserListByNotificationOptionalParams + options?: NotificationRecipientUserListByNotificationOptionalParams, ): Promise; /** * Determine if the Notification Recipient User is subscribed to the notification. @@ -45,7 +45,7 @@ export interface NotificationRecipientUser { serviceName: string, notificationName: NotificationName, userId: string, - options?: NotificationRecipientUserCheckEntityExistsOptionalParams + options?: NotificationRecipientUserCheckEntityExistsOptionalParams, ): Promise; /** * Adds the API Management User to the list of Recipients for the Notification. @@ -60,7 +60,7 @@ export interface NotificationRecipientUser { serviceName: string, notificationName: NotificationName, userId: string, - options?: NotificationRecipientUserCreateOrUpdateOptionalParams + options?: NotificationRecipientUserCreateOrUpdateOptionalParams, ): Promise; /** * Removes the API Management user from the list of Notification. @@ -75,6 +75,6 @@ export interface NotificationRecipientUser { serviceName: string, notificationName: NotificationName, userId: string, - options?: NotificationRecipientUserDeleteOptionalParams + options?: NotificationRecipientUserDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/openIdConnectProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/openIdConnectProvider.ts index 580369d0e3de..f484453765fa 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/openIdConnectProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/openIdConnectProvider.ts @@ -21,7 +21,7 @@ import { OpenIdConnectProviderUpdateResponse, OpenIdConnectProviderDeleteOptionalParams, OpenIdConnectProviderListSecretsOptionalParams, - OpenIdConnectProviderListSecretsResponse + OpenIdConnectProviderListSecretsResponse, } from "../models"; /// @@ -36,7 +36,7 @@ export interface OpenIdConnectProvider { listByService( resourceGroupName: string, serviceName: string, - options?: OpenIdConnectProviderListByServiceOptionalParams + options?: OpenIdConnectProviderListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier. @@ -49,7 +49,7 @@ export interface OpenIdConnectProvider { resourceGroupName: string, serviceName: string, opid: string, - options?: OpenIdConnectProviderGetEntityTagOptionalParams + options?: OpenIdConnectProviderGetEntityTagOptionalParams, ): Promise; /** * Gets specific OpenID Connect Provider without secrets. @@ -62,7 +62,7 @@ export interface OpenIdConnectProvider { resourceGroupName: string, serviceName: string, opid: string, - options?: OpenIdConnectProviderGetOptionalParams + options?: OpenIdConnectProviderGetOptionalParams, ): Promise; /** * Creates or updates the OpenID Connect Provider. @@ -77,7 +77,7 @@ export interface OpenIdConnectProvider { serviceName: string, opid: string, parameters: OpenidConnectProviderContract, - options?: OpenIdConnectProviderCreateOrUpdateOptionalParams + options?: OpenIdConnectProviderCreateOrUpdateOptionalParams, ): Promise; /** * Updates the specific OpenID Connect Provider. @@ -95,7 +95,7 @@ export interface OpenIdConnectProvider { opid: string, ifMatch: string, parameters: OpenidConnectProviderUpdateContract, - options?: OpenIdConnectProviderUpdateOptionalParams + options?: OpenIdConnectProviderUpdateOptionalParams, ): Promise; /** * Deletes specific OpenID Connect Provider of the API Management service instance. @@ -111,7 +111,7 @@ export interface OpenIdConnectProvider { serviceName: string, opid: string, ifMatch: string, - options?: OpenIdConnectProviderDeleteOptionalParams + options?: OpenIdConnectProviderDeleteOptionalParams, ): Promise; /** * Gets the client secret details of the OpenID Connect Provider. @@ -124,6 +124,6 @@ export interface OpenIdConnectProvider { resourceGroupName: string, serviceName: string, opid: string, - options?: OpenIdConnectProviderListSecretsOptionalParams + options?: OpenIdConnectProviderListSecretsOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationOperations.ts index f5415a244e27..42f410721a83 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationOperations.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { TagResourceContract, - OperationListByTagsOptionalParams + OperationListByTagsOptionalParams, } from "../models"; /// @@ -27,6 +27,6 @@ export interface OperationOperations { resourceGroupName: string, serviceName: string, apiId: string, - options?: OperationListByTagsOptionalParams + options?: OperationListByTagsOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts index dd3d17095902..4249f9804050 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts @@ -8,7 +8,7 @@ import { OutboundNetworkDependenciesEndpointsListByServiceOptionalParams, - OutboundNetworkDependenciesEndpointsListByServiceResponse + OutboundNetworkDependenciesEndpointsListByServiceResponse, } from "../models"; /** Interface representing a OutboundNetworkDependenciesEndpoints. */ @@ -22,6 +22,6 @@ export interface OutboundNetworkDependenciesEndpoints { listByService( resourceGroupName: string, serviceName: string, - options?: OutboundNetworkDependenciesEndpointsListByServiceOptionalParams + options?: OutboundNetworkDependenciesEndpointsListByServiceOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts index 84d9f55f2198..85cde00c5990 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts @@ -6,20 +6,21 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { + PolicyContract, PolicyListByServiceOptionalParams, - PolicyListByServiceResponse, PolicyIdName, PolicyGetEntityTagOptionalParams, PolicyGetEntityTagResponse, PolicyGetOptionalParams, PolicyGetResponse, - PolicyContract, PolicyCreateOrUpdateOptionalParams, PolicyCreateOrUpdateResponse, - PolicyDeleteOptionalParams + PolicyDeleteOptionalParams, } from "../models"; +/// /** Interface representing a Policy. */ export interface Policy { /** @@ -31,8 +32,8 @@ export interface Policy { listByService( resourceGroupName: string, serviceName: string, - options?: PolicyListByServiceOptionalParams - ): Promise; + options?: PolicyListByServiceOptionalParams, + ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Global policy definition in the Api Management service. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -44,7 +45,7 @@ export interface Policy { resourceGroupName: string, serviceName: string, policyId: PolicyIdName, - options?: PolicyGetEntityTagOptionalParams + options?: PolicyGetEntityTagOptionalParams, ): Promise; /** * Get the Global policy definition of the Api Management service. @@ -57,7 +58,7 @@ export interface Policy { resourceGroupName: string, serviceName: string, policyId: PolicyIdName, - options?: PolicyGetOptionalParams + options?: PolicyGetOptionalParams, ): Promise; /** * Creates or updates the global policy configuration of the Api Management service. @@ -72,7 +73,7 @@ export interface Policy { serviceName: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: PolicyCreateOrUpdateOptionalParams + options?: PolicyCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the global policy configuration of the Api Management Service. @@ -88,6 +89,6 @@ export interface Policy { serviceName: string, policyId: PolicyIdName, ifMatch: string, - options?: PolicyDeleteOptionalParams + options?: PolicyDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyDescription.ts index 452f51ef1fdd..0b5fe45517a7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyDescription.ts @@ -8,7 +8,7 @@ import { PolicyDescriptionListByServiceOptionalParams, - PolicyDescriptionListByServiceResponse + PolicyDescriptionListByServiceResponse, } from "../models"; /** Interface representing a PolicyDescription. */ @@ -22,6 +22,6 @@ export interface PolicyDescription { listByService( resourceGroupName: string, serviceName: string, - options?: PolicyDescriptionListByServiceOptionalParams + options?: PolicyDescriptionListByServiceOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts index 171bfa2f20c0..4f3930a381a3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts @@ -6,22 +6,23 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { + PolicyFragmentContract, PolicyFragmentListByServiceOptionalParams, - PolicyFragmentListByServiceResponse, PolicyFragmentGetEntityTagOptionalParams, PolicyFragmentGetEntityTagResponse, PolicyFragmentGetOptionalParams, PolicyFragmentGetResponse, - PolicyFragmentContract, PolicyFragmentCreateOrUpdateOptionalParams, PolicyFragmentCreateOrUpdateResponse, PolicyFragmentDeleteOptionalParams, PolicyFragmentListReferencesOptionalParams, - PolicyFragmentListReferencesResponse + PolicyFragmentListReferencesResponse, } from "../models"; +/// /** Interface representing a PolicyFragment. */ export interface PolicyFragment { /** @@ -33,8 +34,8 @@ export interface PolicyFragment { listByService( resourceGroupName: string, serviceName: string, - options?: PolicyFragmentListByServiceOptionalParams - ): Promise; + options?: PolicyFragmentListByServiceOptionalParams, + ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of a policy fragment. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -46,7 +47,7 @@ export interface PolicyFragment { resourceGroupName: string, serviceName: string, id: string, - options?: PolicyFragmentGetEntityTagOptionalParams + options?: PolicyFragmentGetEntityTagOptionalParams, ): Promise; /** * Gets a policy fragment. @@ -59,7 +60,7 @@ export interface PolicyFragment { resourceGroupName: string, serviceName: string, id: string, - options?: PolicyFragmentGetOptionalParams + options?: PolicyFragmentGetOptionalParams, ): Promise; /** * Creates or updates a policy fragment. @@ -74,7 +75,7 @@ export interface PolicyFragment { serviceName: string, id: string, parameters: PolicyFragmentContract, - options?: PolicyFragmentCreateOrUpdateOptionalParams + options?: PolicyFragmentCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -94,7 +95,7 @@ export interface PolicyFragment { serviceName: string, id: string, parameters: PolicyFragmentContract, - options?: PolicyFragmentCreateOrUpdateOptionalParams + options?: PolicyFragmentCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a policy fragment. @@ -110,7 +111,7 @@ export interface PolicyFragment { serviceName: string, id: string, ifMatch: string, - options?: PolicyFragmentDeleteOptionalParams + options?: PolicyFragmentDeleteOptionalParams, ): Promise; /** * Lists policy resources that reference the policy fragment. @@ -123,6 +124,6 @@ export interface PolicyFragment { resourceGroupName: string, serviceName: string, id: string, - options?: PolicyFragmentListReferencesOptionalParams + options?: PolicyFragmentListReferencesOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyRestriction.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyRestriction.ts new file mode 100644 index 000000000000..6d45e85cceba --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyRestriction.ts @@ -0,0 +1,111 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + PolicyRestrictionContract, + PolicyRestrictionListByServiceOptionalParams, + PolicyRestrictionGetEntityTagOptionalParams, + PolicyRestrictionGetEntityTagResponse, + PolicyRestrictionGetOptionalParams, + PolicyRestrictionGetResponse, + PolicyRestrictionCreateOrUpdateOptionalParams, + PolicyRestrictionCreateOrUpdateResponse, + PolicyRestrictionUpdateContract, + PolicyRestrictionUpdateOptionalParams, + PolicyRestrictionUpdateResponse, + PolicyRestrictionDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a PolicyRestriction. */ +export interface PolicyRestriction { + /** + * Gets all policy restrictions of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the policy restriction in the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + options?: PolicyRestrictionGetEntityTagOptionalParams, + ): Promise; + /** + * Get the policy restriction of the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + options?: PolicyRestrictionGetOptionalParams, + ): Promise; + /** + * Creates or updates the policy restriction configuration of the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param parameters The policy restriction to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + parameters: PolicyRestrictionContract, + options?: PolicyRestrictionCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the policy restriction configuration of the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters The policy restriction to apply. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + ifMatch: string, + parameters: PolicyRestrictionUpdateContract, + options?: PolicyRestrictionUpdateOptionalParams, + ): Promise; + /** + * Deletes the policy restriction configuration of the Api Management Service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + options?: PolicyRestrictionDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyRestrictionValidations.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyRestrictionValidations.ts new file mode 100644 index 000000000000..caef535b7353 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyRestrictionValidations.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + PolicyRestrictionValidationsByServiceOptionalParams, + PolicyRestrictionValidationsByServiceResponse, +} from "../models"; + +/** Interface representing a PolicyRestrictionValidations. */ +export interface PolicyRestrictionValidations { + /** + * Validate all policies of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + beginByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionValidationsByServiceOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + PolicyRestrictionValidationsByServiceResponse + > + >; + /** + * Validate all policies of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + beginByServiceAndWait( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionValidationsByServiceOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts index d32c7d0eb75b..9787440b6ed4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts @@ -6,20 +6,21 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { + PortalConfigContract, PortalConfigListByServiceOptionalParams, - PortalConfigListByServiceResponse, PortalConfigGetEntityTagOptionalParams, PortalConfigGetEntityTagResponse, PortalConfigGetOptionalParams, PortalConfigGetResponse, - PortalConfigContract, PortalConfigUpdateOptionalParams, PortalConfigUpdateResponse, PortalConfigCreateOrUpdateOptionalParams, - PortalConfigCreateOrUpdateResponse + PortalConfigCreateOrUpdateResponse, } from "../models"; +/// /** Interface representing a PortalConfig. */ export interface PortalConfig { /** @@ -31,8 +32,8 @@ export interface PortalConfig { listByService( resourceGroupName: string, serviceName: string, - options?: PortalConfigListByServiceOptionalParams - ): Promise; + options?: PortalConfigListByServiceOptionalParams, + ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the developer portal configuration. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -44,7 +45,7 @@ export interface PortalConfig { resourceGroupName: string, serviceName: string, portalConfigId: string, - options?: PortalConfigGetEntityTagOptionalParams + options?: PortalConfigGetEntityTagOptionalParams, ): Promise; /** * Get the developer portal configuration. @@ -57,7 +58,7 @@ export interface PortalConfig { resourceGroupName: string, serviceName: string, portalConfigId: string, - options?: PortalConfigGetOptionalParams + options?: PortalConfigGetOptionalParams, ): Promise; /** * Update the developer portal configuration. @@ -75,7 +76,7 @@ export interface PortalConfig { portalConfigId: string, ifMatch: string, parameters: PortalConfigContract, - options?: PortalConfigUpdateOptionalParams + options?: PortalConfigUpdateOptionalParams, ): Promise; /** * Create or update the developer portal configuration. @@ -93,6 +94,6 @@ export interface PortalConfig { portalConfigId: string, ifMatch: string, parameters: PortalConfigContract, - options?: PortalConfigCreateOrUpdateOptionalParams + options?: PortalConfigCreateOrUpdateOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts index e0f92866e5f3..af64ab4c4332 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts @@ -18,7 +18,7 @@ import { PortalRevisionCreateOrUpdateOptionalParams, PortalRevisionCreateOrUpdateResponse, PortalRevisionUpdateOptionalParams, - PortalRevisionUpdateResponse + PortalRevisionUpdateResponse, } from "../models"; /// @@ -33,7 +33,7 @@ export interface PortalRevision { listByService( resourceGroupName: string, serviceName: string, - options?: PortalRevisionListByServiceOptionalParams + options?: PortalRevisionListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the developer portal revision specified by its identifier. @@ -47,7 +47,7 @@ export interface PortalRevision { resourceGroupName: string, serviceName: string, portalRevisionId: string, - options?: PortalRevisionGetEntityTagOptionalParams + options?: PortalRevisionGetEntityTagOptionalParams, ): Promise; /** * Gets the developer portal's revision specified by its identifier. @@ -61,7 +61,7 @@ export interface PortalRevision { resourceGroupName: string, serviceName: string, portalRevisionId: string, - options?: PortalRevisionGetOptionalParams + options?: PortalRevisionGetOptionalParams, ): Promise; /** * Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` @@ -78,7 +78,7 @@ export interface PortalRevision { serviceName: string, portalRevisionId: string, parameters: PortalRevisionContract, - options?: PortalRevisionCreateOrUpdateOptionalParams + options?: PortalRevisionCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -100,7 +100,7 @@ export interface PortalRevision { serviceName: string, portalRevisionId: string, parameters: PortalRevisionContract, - options?: PortalRevisionCreateOrUpdateOptionalParams + options?: PortalRevisionCreateOrUpdateOptionalParams, ): Promise; /** * Updates the description of specified portal revision or makes it current. @@ -119,7 +119,7 @@ export interface PortalRevision { portalRevisionId: string, ifMatch: string, parameters: PortalRevisionContract, - options?: PortalRevisionUpdateOptionalParams + options?: PortalRevisionUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -143,6 +143,6 @@ export interface PortalRevision { portalRevisionId: string, ifMatch: string, parameters: PortalRevisionContract, - options?: PortalRevisionUpdateOptionalParams + options?: PortalRevisionUpdateOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalSettings.ts index a7ce1b08a936..d1147416363b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalSettings.ts @@ -8,7 +8,7 @@ import { PortalSettingsListByServiceOptionalParams, - PortalSettingsListByServiceResponse + PortalSettingsListByServiceResponse, } from "../models"; /** Interface representing a PortalSettings. */ @@ -22,6 +22,6 @@ export interface PortalSettings { listByService( resourceGroupName: string, serviceName: string, - options?: PortalSettingsListByServiceOptionalParams + options?: PortalSettingsListByServiceOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts index b6f6c5b9b32b..edd3980bd196 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts @@ -20,7 +20,7 @@ import { PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams, PrivateEndpointConnectionListPrivateLinkResourcesResponse, PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams, - PrivateEndpointConnectionGetPrivateLinkResourceResponse + PrivateEndpointConnectionGetPrivateLinkResourceResponse, } from "../models"; /// @@ -35,7 +35,7 @@ export interface PrivateEndpointConnectionOperations { listByService( resourceGroupName: string, serviceName: string, - options?: PrivateEndpointConnectionListByServiceOptionalParams + options?: PrivateEndpointConnectionListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of the Private Endpoint Connection specified by its identifier. @@ -48,7 +48,7 @@ export interface PrivateEndpointConnectionOperations { resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionGetByNameOptionalParams + options?: PrivateEndpointConnectionGetByNameOptionalParams, ): Promise; /** * Creates a new Private Endpoint Connection or updates an existing one. @@ -63,7 +63,7 @@ export interface PrivateEndpointConnectionOperations { serviceName: string, privateEndpointConnectionName: string, privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, - options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams + options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -83,7 +83,7 @@ export interface PrivateEndpointConnectionOperations { serviceName: string, privateEndpointConnectionName: string, privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, - options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams + options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the specified Private Endpoint Connection. @@ -96,7 +96,7 @@ export interface PrivateEndpointConnectionOperations { resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionDeleteOptionalParams + options?: PrivateEndpointConnectionDeleteOptionalParams, ): Promise, void>>; /** * Deletes the specified Private Endpoint Connection. @@ -109,7 +109,7 @@ export interface PrivateEndpointConnectionOperations { resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionDeleteOptionalParams + options?: PrivateEndpointConnectionDeleteOptionalParams, ): Promise; /** * Gets the private link resources @@ -120,7 +120,7 @@ export interface PrivateEndpointConnectionOperations { listPrivateLinkResources( resourceGroupName: string, serviceName: string, - options?: PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams + options?: PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams, ): Promise; /** * Gets the private link resources @@ -133,6 +133,6 @@ export interface PrivateEndpointConnectionOperations { resourceGroupName: string, serviceName: string, privateLinkSubResourceName: string, - options?: PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams + options?: PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/product.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/product.ts index f6a72fe292f0..f5cb6d940fd1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/product.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/product.ts @@ -21,7 +21,7 @@ import { ProductUpdateParameters, ProductUpdateOptionalParams, ProductUpdateResponse, - ProductDeleteOptionalParams + ProductDeleteOptionalParams, } from "../models"; /// @@ -36,7 +36,7 @@ export interface Product { listByService( resourceGroupName: string, serviceName: string, - options?: ProductListByServiceOptionalParams + options?: ProductListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Lists a collection of products associated with tags. @@ -47,7 +47,7 @@ export interface Product { listByTags( resourceGroupName: string, serviceName: string, - options?: ProductListByTagsOptionalParams + options?: ProductListByTagsOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the product specified by its identifier. @@ -60,7 +60,7 @@ export interface Product { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductGetEntityTagOptionalParams + options?: ProductGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the product specified by its identifier. @@ -73,7 +73,7 @@ export interface Product { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductGetOptionalParams + options?: ProductGetOptionalParams, ): Promise; /** * Creates or Updates a product. @@ -88,7 +88,7 @@ export interface Product { serviceName: string, productId: string, parameters: ProductContract, - options?: ProductCreateOrUpdateOptionalParams + options?: ProductCreateOrUpdateOptionalParams, ): Promise; /** * Update existing product details. @@ -106,7 +106,7 @@ export interface Product { productId: string, ifMatch: string, parameters: ProductUpdateParameters, - options?: ProductUpdateOptionalParams + options?: ProductUpdateOptionalParams, ): Promise; /** * Delete product. @@ -122,6 +122,6 @@ export interface Product { serviceName: string, productId: string, ifMatch: string, - options?: ProductDeleteOptionalParams + options?: ProductDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApi.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApi.ts index 7051be981009..927b4e6cf567 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApi.ts @@ -14,7 +14,7 @@ import { ProductApiCheckEntityExistsResponse, ProductApiCreateOrUpdateOptionalParams, ProductApiCreateOrUpdateResponse, - ProductApiDeleteOptionalParams + ProductApiDeleteOptionalParams, } from "../models"; /// @@ -31,7 +31,7 @@ export interface ProductApi { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductApiListByProductOptionalParams + options?: ProductApiListByProductOptionalParams, ): PagedAsyncIterableIterator; /** * Checks that API entity specified by identifier is associated with the Product entity. @@ -47,7 +47,7 @@ export interface ProductApi { serviceName: string, productId: string, apiId: string, - options?: ProductApiCheckEntityExistsOptionalParams + options?: ProductApiCheckEntityExistsOptionalParams, ): Promise; /** * Adds an API to the specified product. @@ -63,7 +63,7 @@ export interface ProductApi { serviceName: string, productId: string, apiId: string, - options?: ProductApiCreateOrUpdateOptionalParams + options?: ProductApiCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the specified API from the specified product. @@ -79,6 +79,6 @@ export interface ProductApi { serviceName: string, productId: string, apiId: string, - options?: ProductApiDeleteOptionalParams + options?: ProductApiDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApiLink.ts new file mode 100644 index 000000000000..2b6609c3e718 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApiLink.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ProductApiLinkContract, + ProductApiLinkListByProductOptionalParams, + ProductApiLinkGetOptionalParams, + ProductApiLinkGetResponse, + ProductApiLinkCreateOrUpdateOptionalParams, + ProductApiLinkCreateOrUpdateResponse, + ProductApiLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a ProductApiLink. */ +export interface ProductApiLink { + /** + * Lists a collection of the API links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductApiLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the API link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + productId: string, + apiLinkId: string, + options?: ProductApiLinkGetOptionalParams, + ): Promise; + /** + * Adds an API to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + productId: string, + apiLinkId: string, + parameters: ProductApiLinkContract, + options?: ProductApiLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified API from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + productId: string, + apiLinkId: string, + options?: ProductApiLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroup.ts index e44872094a3d..b884dd2ad404 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroup.ts @@ -14,7 +14,7 @@ import { ProductGroupCheckEntityExistsResponse, ProductGroupCreateOrUpdateOptionalParams, ProductGroupCreateOrUpdateResponse, - ProductGroupDeleteOptionalParams + ProductGroupDeleteOptionalParams, } from "../models"; /// @@ -31,7 +31,7 @@ export interface ProductGroup { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductGroupListByProductOptionalParams + options?: ProductGroupListByProductOptionalParams, ): PagedAsyncIterableIterator; /** * Checks that Group entity specified by identifier is associated with the Product entity. @@ -46,7 +46,7 @@ export interface ProductGroup { serviceName: string, productId: string, groupId: string, - options?: ProductGroupCheckEntityExistsOptionalParams + options?: ProductGroupCheckEntityExistsOptionalParams, ): Promise; /** * Adds the association between the specified developer group with the specified product. @@ -61,7 +61,7 @@ export interface ProductGroup { serviceName: string, productId: string, groupId: string, - options?: ProductGroupCreateOrUpdateOptionalParams + options?: ProductGroupCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the association between the specified group and product. @@ -76,6 +76,6 @@ export interface ProductGroup { serviceName: string, productId: string, groupId: string, - options?: ProductGroupDeleteOptionalParams + options?: ProductGroupDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroupLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroupLink.ts new file mode 100644 index 000000000000..0030dd1e8641 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroupLink.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ProductGroupLinkContract, + ProductGroupLinkListByProductOptionalParams, + ProductGroupLinkGetOptionalParams, + ProductGroupLinkGetResponse, + ProductGroupLinkCreateOrUpdateOptionalParams, + ProductGroupLinkCreateOrUpdateResponse, + ProductGroupLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a ProductGroupLink. */ +export interface ProductGroupLink { + /** + * Lists a collection of the group links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductGroupLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the group link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + productId: string, + groupLinkId: string, + options?: ProductGroupLinkGetOptionalParams, + ): Promise; + /** + * Adds a group to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + productId: string, + groupLinkId: string, + parameters: ProductGroupLinkContract, + options?: ProductGroupLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified group from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + productId: string, + groupLinkId: string, + options?: ProductGroupLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts index 9f08f040cfb3..a16e2fd5a2d6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts @@ -6,20 +6,21 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { + PolicyContract, ProductPolicyListByProductOptionalParams, - ProductPolicyListByProductResponse, PolicyIdName, ProductPolicyGetEntityTagOptionalParams, ProductPolicyGetEntityTagResponse, ProductPolicyGetOptionalParams, ProductPolicyGetResponse, - PolicyContract, ProductPolicyCreateOrUpdateOptionalParams, ProductPolicyCreateOrUpdateResponse, - ProductPolicyDeleteOptionalParams + ProductPolicyDeleteOptionalParams, } from "../models"; +/// /** Interface representing a ProductPolicy. */ export interface ProductPolicy { /** @@ -33,8 +34,8 @@ export interface ProductPolicy { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductPolicyListByProductOptionalParams - ): Promise; + options?: ProductPolicyListByProductOptionalParams, + ): PagedAsyncIterableIterator; /** * Get the ETag of the policy configuration at the Product level. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -48,7 +49,7 @@ export interface ProductPolicy { serviceName: string, productId: string, policyId: PolicyIdName, - options?: ProductPolicyGetEntityTagOptionalParams + options?: ProductPolicyGetEntityTagOptionalParams, ): Promise; /** * Get the policy configuration at the Product level. @@ -63,7 +64,7 @@ export interface ProductPolicy { serviceName: string, productId: string, policyId: PolicyIdName, - options?: ProductPolicyGetOptionalParams + options?: ProductPolicyGetOptionalParams, ): Promise; /** * Creates or updates policy configuration for the Product. @@ -80,7 +81,7 @@ export interface ProductPolicy { productId: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: ProductPolicyCreateOrUpdateOptionalParams + options?: ProductPolicyCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the policy configuration at the Product. @@ -98,6 +99,6 @@ export interface ProductPolicy { productId: string, policyId: PolicyIdName, ifMatch: string, - options?: ProductPolicyDeleteOptionalParams + options?: ProductPolicyDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productSubscriptions.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productSubscriptions.ts index 804f5bf882b7..3a0aa60bf2af 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productSubscriptions.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productSubscriptions.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SubscriptionContract, - ProductSubscriptionsListOptionalParams + ProductSubscriptionsListOptionalParams, } from "../models"; /// @@ -26,6 +26,6 @@ export interface ProductSubscriptions { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductSubscriptionsListOptionalParams + options?: ProductSubscriptionsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWiki.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWiki.ts index 540bdf5fa04a..d57a2a1bbb6a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWiki.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWiki.ts @@ -17,7 +17,7 @@ import { WikiUpdateContract, ProductWikiUpdateOptionalParams, ProductWikiUpdateResponse, - ProductWikiDeleteOptionalParams + ProductWikiDeleteOptionalParams, } from "../models"; /** Interface representing a ProductWiki. */ @@ -33,7 +33,7 @@ export interface ProductWiki { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductWikiGetEntityTagOptionalParams + options?: ProductWikiGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Wiki for a Product specified by its identifier. @@ -46,7 +46,7 @@ export interface ProductWiki { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductWikiGetOptionalParams + options?: ProductWikiGetOptionalParams, ): Promise; /** * Creates a new Wiki for a Product or updates an existing one. @@ -61,7 +61,7 @@ export interface ProductWiki { serviceName: string, productId: string, parameters: WikiContract, - options?: ProductWikiCreateOrUpdateOptionalParams + options?: ProductWikiCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the Wiki for a Product specified by its identifier. @@ -79,7 +79,7 @@ export interface ProductWiki { productId: string, ifMatch: string, parameters: WikiUpdateContract, - options?: ProductWikiUpdateOptionalParams + options?: ProductWikiUpdateOptionalParams, ): Promise; /** * Deletes the specified Wiki from a Product. @@ -95,6 +95,6 @@ export interface ProductWiki { serviceName: string, productId: string, ifMatch: string, - options?: ProductWikiDeleteOptionalParams + options?: ProductWikiDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWikis.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWikis.ts index 878251c2a6a7..2020077c40db 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWikis.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWikis.ts @@ -23,6 +23,6 @@ export interface ProductWikis { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductWikisListOptionalParams + options?: ProductWikisListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByCounterKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByCounterKeys.ts index 8b06db3207dd..f46d280c79c5 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByCounterKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByCounterKeys.ts @@ -11,7 +11,7 @@ import { QuotaByCounterKeysListByServiceResponse, QuotaCounterValueUpdateContract, QuotaByCounterKeysUpdateOptionalParams, - QuotaByCounterKeysUpdateResponse + QuotaByCounterKeysUpdateResponse, } from "../models"; /** Interface representing a QuotaByCounterKeys. */ @@ -31,7 +31,7 @@ export interface QuotaByCounterKeys { resourceGroupName: string, serviceName: string, quotaCounterKey: string, - options?: QuotaByCounterKeysListByServiceOptionalParams + options?: QuotaByCounterKeysListByServiceOptionalParams, ): Promise; /** * Updates all the quota counter values specified with the existing quota counter key to a value in the @@ -50,6 +50,6 @@ export interface QuotaByCounterKeys { serviceName: string, quotaCounterKey: string, parameters: QuotaCounterValueUpdateContract, - options?: QuotaByCounterKeysUpdateOptionalParams + options?: QuotaByCounterKeysUpdateOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByPeriodKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByPeriodKeys.ts index 49641b09add3..10cce3ed5503 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByPeriodKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByPeriodKeys.ts @@ -11,7 +11,7 @@ import { QuotaByPeriodKeysGetResponse, QuotaCounterValueUpdateContract, QuotaByPeriodKeysUpdateOptionalParams, - QuotaByPeriodKeysUpdateResponse + QuotaByPeriodKeysUpdateResponse, } from "../models"; /** Interface representing a QuotaByPeriodKeys. */ @@ -33,7 +33,7 @@ export interface QuotaByPeriodKeys { serviceName: string, quotaCounterKey: string, quotaPeriodKey: string, - options?: QuotaByPeriodKeysGetOptionalParams + options?: QuotaByPeriodKeysGetOptionalParams, ): Promise; /** * Updates an existing quota counter value in the specified service instance. @@ -53,6 +53,6 @@ export interface QuotaByPeriodKeys { quotaCounterKey: string, quotaPeriodKey: string, parameters: QuotaCounterValueUpdateContract, - options?: QuotaByPeriodKeysUpdateOptionalParams + options?: QuotaByPeriodKeysUpdateOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/region.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/region.ts index b65177a34f8c..5b89ca95f8f4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/region.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/region.ts @@ -21,6 +21,6 @@ export interface Region { listByService( resourceGroupName: string, serviceName: string, - options?: RegionListByServiceOptionalParams + options?: RegionListByServiceOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/reports.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/reports.ts index 0069ea94bbfc..6b5c2d05fda6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/reports.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/reports.ts @@ -17,7 +17,7 @@ import { ReportsListBySubscriptionOptionalParams, ReportsListByTimeOptionalParams, RequestReportRecordContract, - ReportsListByRequestOptionalParams + ReportsListByRequestOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByApiOptionalParams + options?: ReportsListByApiOptionalParams, ): PagedAsyncIterableIterator; /** * Lists report records by User. @@ -59,7 +59,7 @@ export interface Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByUserOptionalParams + options?: ReportsListByUserOptionalParams, ): PagedAsyncIterableIterator; /** * Lists report records by API Operations. @@ -83,7 +83,7 @@ export interface Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByOperationOptionalParams + options?: ReportsListByOperationOptionalParams, ): PagedAsyncIterableIterator; /** * Lists report records by Product. @@ -107,7 +107,7 @@ export interface Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByProductOptionalParams + options?: ReportsListByProductOptionalParams, ): PagedAsyncIterableIterator; /** * Lists report records by geography. @@ -131,7 +131,7 @@ export interface Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByGeoOptionalParams + options?: ReportsListByGeoOptionalParams, ): PagedAsyncIterableIterator; /** * Lists report records by subscription. @@ -155,7 +155,7 @@ export interface Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListBySubscriptionOptionalParams + options?: ReportsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Lists report records by Time. @@ -183,7 +183,7 @@ export interface Reports { serviceName: string, filter: string, interval: string, - options?: ReportsListByTimeOptionalParams + options?: ReportsListByTimeOptionalParams, ): PagedAsyncIterableIterator; /** * Lists report records by Request. @@ -200,6 +200,6 @@ export interface Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByRequestOptionalParams + options?: ReportsListByRequestOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signInSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signInSettings.ts index 1c4b94321adb..66fb7549eac4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signInSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signInSettings.ts @@ -14,7 +14,7 @@ import { PortalSigninSettings, SignInSettingsUpdateOptionalParams, SignInSettingsCreateOrUpdateOptionalParams, - SignInSettingsCreateOrUpdateResponse + SignInSettingsCreateOrUpdateResponse, } from "../models"; /** Interface representing a SignInSettings. */ @@ -28,7 +28,7 @@ export interface SignInSettings { getEntityTag( resourceGroupName: string, serviceName: string, - options?: SignInSettingsGetEntityTagOptionalParams + options?: SignInSettingsGetEntityTagOptionalParams, ): Promise; /** * Get Sign In Settings for the Portal @@ -39,7 +39,7 @@ export interface SignInSettings { get( resourceGroupName: string, serviceName: string, - options?: SignInSettingsGetOptionalParams + options?: SignInSettingsGetOptionalParams, ): Promise; /** * Update Sign-In settings. @@ -55,7 +55,7 @@ export interface SignInSettings { serviceName: string, ifMatch: string, parameters: PortalSigninSettings, - options?: SignInSettingsUpdateOptionalParams + options?: SignInSettingsUpdateOptionalParams, ): Promise; /** * Create or Update Sign-In settings. @@ -68,6 +68,6 @@ export interface SignInSettings { resourceGroupName: string, serviceName: string, parameters: PortalSigninSettings, - options?: SignInSettingsCreateOrUpdateOptionalParams + options?: SignInSettingsCreateOrUpdateOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signUpSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signUpSettings.ts index 1dbcacd372e8..03b31521f3bc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signUpSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signUpSettings.ts @@ -14,7 +14,7 @@ import { PortalSignupSettings, SignUpSettingsUpdateOptionalParams, SignUpSettingsCreateOrUpdateOptionalParams, - SignUpSettingsCreateOrUpdateResponse + SignUpSettingsCreateOrUpdateResponse, } from "../models"; /** Interface representing a SignUpSettings. */ @@ -28,7 +28,7 @@ export interface SignUpSettings { getEntityTag( resourceGroupName: string, serviceName: string, - options?: SignUpSettingsGetEntityTagOptionalParams + options?: SignUpSettingsGetEntityTagOptionalParams, ): Promise; /** * Get Sign Up Settings for the Portal @@ -39,7 +39,7 @@ export interface SignUpSettings { get( resourceGroupName: string, serviceName: string, - options?: SignUpSettingsGetOptionalParams + options?: SignUpSettingsGetOptionalParams, ): Promise; /** * Update Sign-Up settings. @@ -55,7 +55,7 @@ export interface SignUpSettings { serviceName: string, ifMatch: string, parameters: PortalSignupSettings, - options?: SignUpSettingsUpdateOptionalParams + options?: SignUpSettingsUpdateOptionalParams, ): Promise; /** * Create or Update Sign-Up settings. @@ -68,6 +68,6 @@ export interface SignUpSettings { resourceGroupName: string, serviceName: string, parameters: PortalSignupSettings, - options?: SignUpSettingsCreateOrUpdateOptionalParams + options?: SignUpSettingsCreateOrUpdateOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/subscription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/subscription.ts index 74d50388f102..08c67a4ea83b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/subscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/subscription.ts @@ -24,7 +24,7 @@ import { SubscriptionRegeneratePrimaryKeyOptionalParams, SubscriptionRegenerateSecondaryKeyOptionalParams, SubscriptionListSecretsOptionalParams, - SubscriptionListSecretsResponse + SubscriptionListSecretsResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export interface Subscription { list( resourceGroupName: string, serviceName: string, - options?: SubscriptionListOptionalParams + options?: SubscriptionListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. @@ -53,7 +53,7 @@ export interface Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionGetEntityTagOptionalParams + options?: SubscriptionGetEntityTagOptionalParams, ): Promise; /** * Gets the specified Subscription entity. @@ -67,7 +67,7 @@ export interface Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionGetOptionalParams + options?: SubscriptionGetOptionalParams, ): Promise; /** * Creates or updates the subscription of specified user to the specified product. @@ -83,7 +83,7 @@ export interface Subscription { serviceName: string, sid: string, parameters: SubscriptionCreateParameters, - options?: SubscriptionCreateOrUpdateOptionalParams + options?: SubscriptionCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of a subscription specified by its identifier. @@ -102,7 +102,7 @@ export interface Subscription { sid: string, ifMatch: string, parameters: SubscriptionUpdateParameters, - options?: SubscriptionUpdateOptionalParams + options?: SubscriptionUpdateOptionalParams, ): Promise; /** * Deletes the specified subscription. @@ -119,7 +119,7 @@ export interface Subscription { serviceName: string, sid: string, ifMatch: string, - options?: SubscriptionDeleteOptionalParams + options?: SubscriptionDeleteOptionalParams, ): Promise; /** * Regenerates primary key of existing subscription of the API Management service instance. @@ -133,7 +133,7 @@ export interface Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionRegeneratePrimaryKeyOptionalParams + options?: SubscriptionRegeneratePrimaryKeyOptionalParams, ): Promise; /** * Regenerates secondary key of existing subscription of the API Management service instance. @@ -147,7 +147,7 @@ export interface Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionRegenerateSecondaryKeyOptionalParams + options?: SubscriptionRegenerateSecondaryKeyOptionalParams, ): Promise; /** * Gets the specified Subscription keys. @@ -161,6 +161,6 @@ export interface Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionListSecretsOptionalParams + options?: SubscriptionListSecretsOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tag.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tag.ts index dca054554a45..c3f922cf1ea7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tag.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tag.ts @@ -43,7 +43,7 @@ import { TagCreateOrUpdateResponse, TagUpdateOptionalParams, TagUpdateResponse, - TagDeleteOptionalParams + TagDeleteOptionalParams, } from "../models"; /// @@ -64,7 +64,7 @@ export interface Tag { serviceName: string, apiId: string, operationId: string, - options?: TagListByOperationOptionalParams + options?: TagListByOperationOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all Tags associated with the API. @@ -78,7 +78,7 @@ export interface Tag { resourceGroupName: string, serviceName: string, apiId: string, - options?: TagListByApiOptionalParams + options?: TagListByApiOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all Tags associated with the Product. @@ -91,7 +91,7 @@ export interface Tag { resourceGroupName: string, serviceName: string, productId: string, - options?: TagListByProductOptionalParams + options?: TagListByProductOptionalParams, ): PagedAsyncIterableIterator; /** * Lists a collection of tags defined within a service instance. @@ -102,7 +102,7 @@ export interface Tag { listByService( resourceGroupName: string, serviceName: string, - options?: TagListByServiceOptionalParams + options?: TagListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state version of the tag specified by its identifier. @@ -121,7 +121,7 @@ export interface Tag { apiId: string, operationId: string, tagId: string, - options?: TagGetEntityStateByOperationOptionalParams + options?: TagGetEntityStateByOperationOptionalParams, ): Promise; /** * Get tag associated with the Operation. @@ -140,7 +140,7 @@ export interface Tag { apiId: string, operationId: string, tagId: string, - options?: TagGetByOperationOptionalParams + options?: TagGetByOperationOptionalParams, ): Promise; /** * Assign tag to the Operation. @@ -159,7 +159,7 @@ export interface Tag { apiId: string, operationId: string, tagId: string, - options?: TagAssignToOperationOptionalParams + options?: TagAssignToOperationOptionalParams, ): Promise; /** * Detach the tag from the Operation. @@ -178,7 +178,7 @@ export interface Tag { apiId: string, operationId: string, tagId: string, - options?: TagDetachFromOperationOptionalParams + options?: TagDetachFromOperationOptionalParams, ): Promise; /** * Gets the entity state version of the tag specified by its identifier. @@ -194,7 +194,7 @@ export interface Tag { serviceName: string, apiId: string, tagId: string, - options?: TagGetEntityStateByApiOptionalParams + options?: TagGetEntityStateByApiOptionalParams, ): Promise; /** * Get tag associated with the API. @@ -210,7 +210,7 @@ export interface Tag { serviceName: string, apiId: string, tagId: string, - options?: TagGetByApiOptionalParams + options?: TagGetByApiOptionalParams, ): Promise; /** * Assign tag to the Api. @@ -226,7 +226,7 @@ export interface Tag { serviceName: string, apiId: string, tagId: string, - options?: TagAssignToApiOptionalParams + options?: TagAssignToApiOptionalParams, ): Promise; /** * Detach the tag from the Api. @@ -242,7 +242,7 @@ export interface Tag { serviceName: string, apiId: string, tagId: string, - options?: TagDetachFromApiOptionalParams + options?: TagDetachFromApiOptionalParams, ): Promise; /** * Gets the entity state version of the tag specified by its identifier. @@ -257,7 +257,7 @@ export interface Tag { serviceName: string, productId: string, tagId: string, - options?: TagGetEntityStateByProductOptionalParams + options?: TagGetEntityStateByProductOptionalParams, ): Promise; /** * Get tag associated with the Product. @@ -272,7 +272,7 @@ export interface Tag { serviceName: string, productId: string, tagId: string, - options?: TagGetByProductOptionalParams + options?: TagGetByProductOptionalParams, ): Promise; /** * Assign tag to the Product. @@ -287,7 +287,7 @@ export interface Tag { serviceName: string, productId: string, tagId: string, - options?: TagAssignToProductOptionalParams + options?: TagAssignToProductOptionalParams, ): Promise; /** * Detach the tag from the Product. @@ -302,7 +302,7 @@ export interface Tag { serviceName: string, productId: string, tagId: string, - options?: TagDetachFromProductOptionalParams + options?: TagDetachFromProductOptionalParams, ): Promise; /** * Gets the entity state version of the tag specified by its identifier. @@ -315,7 +315,7 @@ export interface Tag { resourceGroupName: string, serviceName: string, tagId: string, - options?: TagGetEntityStateOptionalParams + options?: TagGetEntityStateOptionalParams, ): Promise; /** * Gets the details of the tag specified by its identifier. @@ -328,7 +328,7 @@ export interface Tag { resourceGroupName: string, serviceName: string, tagId: string, - options?: TagGetOptionalParams + options?: TagGetOptionalParams, ): Promise; /** * Creates a tag. @@ -343,7 +343,7 @@ export interface Tag { serviceName: string, tagId: string, parameters: TagCreateUpdateParameters, - options?: TagCreateOrUpdateOptionalParams + options?: TagCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the tag specified by its identifier. @@ -361,7 +361,7 @@ export interface Tag { tagId: string, ifMatch: string, parameters: TagCreateUpdateParameters, - options?: TagUpdateOptionalParams + options?: TagUpdateOptionalParams, ): Promise; /** * Deletes specific tag of the API Management service instance. @@ -377,6 +377,6 @@ export interface Tag { serviceName: string, tagId: string, ifMatch: string, - options?: TagDeleteOptionalParams + options?: TagDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagApiLink.ts new file mode 100644 index 000000000000..0085aae40f13 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagApiLink.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + TagApiLinkContract, + TagApiLinkListByProductOptionalParams, + TagApiLinkGetOptionalParams, + TagApiLinkGetResponse, + TagApiLinkCreateOrUpdateOptionalParams, + TagApiLinkCreateOrUpdateResponse, + TagApiLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a TagApiLink. */ +export interface TagApiLink { + /** + * Lists a collection of the API links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagApiLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the API link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + tagId: string, + apiLinkId: string, + options?: TagApiLinkGetOptionalParams, + ): Promise; + /** + * Adds an API to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + tagId: string, + apiLinkId: string, + parameters: TagApiLinkContract, + options?: TagApiLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified API from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + tagId: string, + apiLinkId: string, + options?: TagApiLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagOperationLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagOperationLink.ts new file mode 100644 index 000000000000..021184c6709a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagOperationLink.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + TagOperationLinkContract, + TagOperationLinkListByProductOptionalParams, + TagOperationLinkGetOptionalParams, + TagOperationLinkGetResponse, + TagOperationLinkCreateOrUpdateOptionalParams, + TagOperationLinkCreateOrUpdateResponse, + TagOperationLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a TagOperationLink. */ +export interface TagOperationLink { + /** + * Lists a collection of the operation links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagOperationLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the operation link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + tagId: string, + operationLinkId: string, + options?: TagOperationLinkGetOptionalParams, + ): Promise; + /** + * Adds an operation to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + tagId: string, + operationLinkId: string, + parameters: TagOperationLinkContract, + options?: TagOperationLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified operation from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + tagId: string, + operationLinkId: string, + options?: TagOperationLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagProductLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagProductLink.ts new file mode 100644 index 000000000000..b30f1c54f23e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagProductLink.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + TagProductLinkContract, + TagProductLinkListByProductOptionalParams, + TagProductLinkGetOptionalParams, + TagProductLinkGetResponse, + TagProductLinkCreateOrUpdateOptionalParams, + TagProductLinkCreateOrUpdateResponse, + TagProductLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a TagProductLink. */ +export interface TagProductLink { + /** + * Lists a collection of the product links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagProductLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the product link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + tagId: string, + productLinkId: string, + options?: TagProductLinkGetOptionalParams, + ): Promise; + /** + * Adds a product to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + tagId: string, + productLinkId: string, + parameters: TagProductLinkContract, + options?: TagProductLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified product from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + tagId: string, + productLinkId: string, + options?: TagProductLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagResource.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagResource.ts index 9290bd0da6f0..2445194f6d5b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagResource.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagResource.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { TagResourceContract, - TagResourceListByServiceOptionalParams + TagResourceListByServiceOptionalParams, } from "../models"; /// @@ -24,6 +24,6 @@ export interface TagResource { listByService( resourceGroupName: string, serviceName: string, - options?: TagResourceListByServiceOptionalParams + options?: TagResourceListByServiceOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccess.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccess.ts index 21cdd2908a90..f612f8d9683c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccess.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccess.ts @@ -24,7 +24,7 @@ import { TenantAccessRegeneratePrimaryKeyOptionalParams, TenantAccessRegenerateSecondaryKeyOptionalParams, TenantAccessListSecretsOptionalParams, - TenantAccessListSecretsResponse + TenantAccessListSecretsResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export interface TenantAccess { listByService( resourceGroupName: string, serviceName: string, - options?: TenantAccessListByServiceOptionalParams + options?: TenantAccessListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Tenant access metadata @@ -52,7 +52,7 @@ export interface TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessGetEntityTagOptionalParams + options?: TenantAccessGetEntityTagOptionalParams, ): Promise; /** * Get tenant access information details without secrets. @@ -65,7 +65,7 @@ export interface TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessGetOptionalParams + options?: TenantAccessGetOptionalParams, ): Promise; /** * Update tenant access information details. @@ -83,7 +83,7 @@ export interface TenantAccess { accessName: AccessIdName, ifMatch: string, parameters: AccessInformationCreateParameters, - options?: TenantAccessCreateOptionalParams + options?: TenantAccessCreateOptionalParams, ): Promise; /** * Update tenant access information details. @@ -101,7 +101,7 @@ export interface TenantAccess { accessName: AccessIdName, ifMatch: string, parameters: AccessInformationUpdateParameters, - options?: TenantAccessUpdateOptionalParams + options?: TenantAccessUpdateOptionalParams, ): Promise; /** * Regenerate primary access key @@ -114,7 +114,7 @@ export interface TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessRegeneratePrimaryKeyOptionalParams + options?: TenantAccessRegeneratePrimaryKeyOptionalParams, ): Promise; /** * Regenerate secondary access key @@ -127,7 +127,7 @@ export interface TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessRegenerateSecondaryKeyOptionalParams + options?: TenantAccessRegenerateSecondaryKeyOptionalParams, ): Promise; /** * Get tenant access information details. @@ -140,6 +140,6 @@ export interface TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessListSecretsOptionalParams + options?: TenantAccessListSecretsOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccessGit.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccessGit.ts index 12b13c1b73e1..60294dca17d2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccessGit.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccessGit.ts @@ -9,7 +9,7 @@ import { AccessIdName, TenantAccessGitRegeneratePrimaryKeyOptionalParams, - TenantAccessGitRegenerateSecondaryKeyOptionalParams + TenantAccessGitRegenerateSecondaryKeyOptionalParams, } from "../models"; /** Interface representing a TenantAccessGit. */ @@ -25,7 +25,7 @@ export interface TenantAccessGit { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessGitRegeneratePrimaryKeyOptionalParams + options?: TenantAccessGitRegeneratePrimaryKeyOptionalParams, ): Promise; /** * Regenerate secondary access key for GIT. @@ -38,6 +38,6 @@ export interface TenantAccessGit { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessGitRegenerateSecondaryKeyOptionalParams + options?: TenantAccessGitRegenerateSecondaryKeyOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts index 81a7460fa896..ba65db3727bd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts @@ -18,7 +18,7 @@ import { TenantConfigurationValidateOptionalParams, TenantConfigurationValidateResponse, TenantConfigurationGetSyncStateOptionalParams, - TenantConfigurationGetSyncStateResponse + TenantConfigurationGetSyncStateResponse, } from "../models"; /** Interface representing a TenantConfiguration. */ @@ -37,7 +37,7 @@ export interface TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, - options?: TenantConfigurationDeployOptionalParams + options?: TenantConfigurationDeployOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -58,7 +58,7 @@ export interface TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, - options?: TenantConfigurationDeployOptionalParams + options?: TenantConfigurationDeployOptionalParams, ): Promise; /** * This operation creates a commit with the current configuration snapshot to the specified branch in @@ -74,7 +74,7 @@ export interface TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: SaveConfigurationParameter, - options?: TenantConfigurationSaveOptionalParams + options?: TenantConfigurationSaveOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -95,7 +95,7 @@ export interface TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: SaveConfigurationParameter, - options?: TenantConfigurationSaveOptionalParams + options?: TenantConfigurationSaveOptionalParams, ): Promise; /** * This operation validates the changes in the specified Git branch. This is a long running operation @@ -111,7 +111,7 @@ export interface TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, - options?: TenantConfigurationValidateOptionalParams + options?: TenantConfigurationValidateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -132,7 +132,7 @@ export interface TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, - options?: TenantConfigurationValidateOptionalParams + options?: TenantConfigurationValidateOptionalParams, ): Promise; /** * Gets the status of the most recent synchronization between the configuration database and the Git @@ -146,6 +146,6 @@ export interface TenantConfiguration { resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, - options?: TenantConfigurationGetSyncStateOptionalParams + options?: TenantConfigurationGetSyncStateOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts index 4f8c4c6faa9f..b48636087514 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts @@ -12,7 +12,7 @@ import { TenantSettingsListByServiceOptionalParams, SettingsTypeName, TenantSettingsGetOptionalParams, - TenantSettingsGetResponse + TenantSettingsGetResponse, } from "../models"; /// @@ -27,7 +27,7 @@ export interface TenantSettings { listByService( resourceGroupName: string, serviceName: string, - options?: TenantSettingsListByServiceOptionalParams + options?: TenantSettingsListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Get tenant settings. @@ -40,6 +40,6 @@ export interface TenantSettings { resourceGroupName: string, serviceName: string, settingsType: SettingsTypeName, - options?: TenantSettingsGetOptionalParams + options?: TenantSettingsGetOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts index 0b6102704805..858bba72ea03 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts @@ -7,6 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { UserContract, UserListByServiceOptionalParams, @@ -21,11 +22,12 @@ import { UserUpdateOptionalParams, UserUpdateResponse, UserDeleteOptionalParams, + UserDeleteResponse, UserGenerateSsoUrlOptionalParams, UserGenerateSsoUrlResponse, UserTokenParameters, UserGetSharedAccessTokenOptionalParams, - UserGetSharedAccessTokenResponse + UserGetSharedAccessTokenResponse, } from "../models"; /// @@ -40,7 +42,7 @@ export interface User { listByService( resourceGroupName: string, serviceName: string, - options?: UserListByServiceOptionalParams + options?: UserListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the user specified by its identifier. @@ -53,7 +55,7 @@ export interface User { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGetEntityTagOptionalParams + options?: UserGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the user specified by its identifier. @@ -66,7 +68,7 @@ export interface User { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGetOptionalParams + options?: UserGetOptionalParams, ): Promise; /** * Creates or Updates a user. @@ -81,7 +83,7 @@ export interface User { serviceName: string, userId: string, parameters: UserCreateParameters, - options?: UserCreateOrUpdateOptionalParams + options?: UserCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the user specified by its identifier. @@ -99,7 +101,7 @@ export interface User { userId: string, ifMatch: string, parameters: UserUpdateParameters, - options?: UserUpdateOptionalParams + options?: UserUpdateOptionalParams, ): Promise; /** * Deletes specific user. @@ -110,13 +112,31 @@ export interface User { * response of the GET request or it should be * for unconditional update. * @param options The options parameters. */ - delete( + beginDelete( resourceGroupName: string, serviceName: string, userId: string, ifMatch: string, - options?: UserDeleteOptionalParams - ): Promise; + options?: UserDeleteOptionalParams, + ): Promise< + SimplePollerLike, UserDeleteResponse> + >; + /** + * Deletes specific user. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + userId: string, + ifMatch: string, + options?: UserDeleteOptionalParams, + ): Promise; /** * Retrieves a redirection URL containing an authentication token for signing a given user into the * developer portal. @@ -129,7 +149,7 @@ export interface User { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGenerateSsoUrlOptionalParams + options?: UserGenerateSsoUrlOptionalParams, ): Promise; /** * Gets the Shared Access Authorization Token for the User. @@ -144,6 +164,6 @@ export interface User { serviceName: string, userId: string, parameters: UserTokenParameters, - options?: UserGetSharedAccessTokenOptionalParams + options?: UserGetSharedAccessTokenOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts index 0479110f882e..706fefaeb642 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts @@ -21,6 +21,6 @@ export interface UserConfirmationPassword { resourceGroupName: string, serviceName: string, userId: string, - options?: UserConfirmationPasswordSendOptionalParams + options?: UserConfirmationPasswordSendOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts index a2fbd8f792de..0f7885aa6694 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts @@ -23,6 +23,6 @@ export interface UserGroup { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGroupListOptionalParams + options?: UserGroupListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts index 1a242a6c686d..8364109a60a2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { UserIdentityContract, - UserIdentitiesListOptionalParams + UserIdentitiesListOptionalParams, } from "../models"; /// @@ -26,6 +26,6 @@ export interface UserIdentities { resourceGroupName: string, serviceName: string, userId: string, - options?: UserIdentitiesListOptionalParams + options?: UserIdentitiesListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts index 548a266d86dd..b47cd94788cc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts @@ -11,7 +11,7 @@ import { SubscriptionContract, UserSubscriptionListOptionalParams, UserSubscriptionGetOptionalParams, - UserSubscriptionGetResponse + UserSubscriptionGetResponse, } from "../models"; /// @@ -28,7 +28,7 @@ export interface UserSubscription { resourceGroupName: string, serviceName: string, userId: string, - options?: UserSubscriptionListOptionalParams + options?: UserSubscriptionListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the specified Subscription entity associated with a particular user. @@ -44,6 +44,6 @@ export interface UserSubscription { serviceName: string, userId: string, sid: string, - options?: UserSubscriptionGetOptionalParams + options?: UserSubscriptionGetOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspace.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspace.ts new file mode 100644 index 000000000000..3d50b2024a9a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspace.ts @@ -0,0 +1,118 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + WorkspaceContract, + WorkspaceListByServiceOptionalParams, + WorkspaceGetEntityTagOptionalParams, + WorkspaceGetEntityTagResponse, + WorkspaceGetOptionalParams, + WorkspaceGetResponse, + WorkspaceCreateOrUpdateOptionalParams, + WorkspaceCreateOrUpdateResponse, + WorkspaceUpdateOptionalParams, + WorkspaceUpdateResponse, + WorkspaceDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a Workspace. */ +export interface Workspace { + /** + * Lists all workspaces of the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + options?: WorkspaceListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the workspace specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the workspace specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGetOptionalParams, + ): Promise; + /** + * Creates a new workspace or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + parameters: WorkspaceContract, + options?: WorkspaceCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the details of the workspace specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Workspace Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + ifMatch: string, + parameters: WorkspaceContract, + options?: WorkspaceUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + ifMatch: string, + options?: WorkspaceDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApi.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApi.ts new file mode 100644 index 000000000000..531f6440d160 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApi.ts @@ -0,0 +1,165 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + ApiContract, + WorkspaceApiListByServiceOptionalParams, + WorkspaceApiGetEntityTagOptionalParams, + WorkspaceApiGetEntityTagResponse, + WorkspaceApiGetOptionalParams, + WorkspaceApiGetResponse, + ApiCreateOrUpdateParameter, + WorkspaceApiCreateOrUpdateOptionalParams, + WorkspaceApiCreateOrUpdateResponse, + ApiUpdateContract, + WorkspaceApiUpdateOptionalParams, + WorkspaceApiUpdateResponse, + WorkspaceApiDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApi. */ +export interface WorkspaceApi { + /** + * Lists all APIs of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiGetOptionalParams, + ): Promise; + /** + * Creates new or updates existing specified API of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + parameters: ApiCreateOrUpdateParameter, + options?: WorkspaceApiCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceApiCreateOrUpdateResponse + > + >; + /** + * Creates new or updates existing specified API of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + parameters: ApiCreateOrUpdateParameter, + options?: WorkspaceApiCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the specified API of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters API Update Contract parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + ifMatch: string, + parameters: ApiUpdateContract, + options?: WorkspaceApiUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified API of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + ifMatch: string, + options?: WorkspaceApiDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiExport.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiExport.ts new file mode 100644 index 000000000000..e29295e60020 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiExport.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + ExportFormat, + ExportApi, + WorkspaceApiExportGetOptionalParams, + WorkspaceApiExportGetResponse, +} from "../models"; + +/** Interface representing a WorkspaceApiExport. */ +export interface WorkspaceApiExport { + /** + * Gets the details of the API specified by its identifier in the format specified to the Storage Blob + * with SAS Key valid for 5 minutes. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param format Format in which to export the Api Details to the Storage Blob with Sas Key valid for 5 + * minutes. + * @param exportParam Query parameter required to export the API details. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + format: ExportFormat, + exportParam: ExportApi, + options?: WorkspaceApiExportGetOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperation.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperation.ts new file mode 100644 index 000000000000..7f1525bdb32b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperation.ts @@ -0,0 +1,155 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + OperationContract, + WorkspaceApiOperationListByApiOptionalParams, + WorkspaceApiOperationGetEntityTagOptionalParams, + WorkspaceApiOperationGetEntityTagResponse, + WorkspaceApiOperationGetOptionalParams, + WorkspaceApiOperationGetResponse, + WorkspaceApiOperationCreateOrUpdateOptionalParams, + WorkspaceApiOperationCreateOrUpdateResponse, + OperationUpdateContract, + WorkspaceApiOperationUpdateOptionalParams, + WorkspaceApiOperationUpdateResponse, + WorkspaceApiOperationDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApiOperation. */ +export interface WorkspaceApiOperation { + /** + * Lists a collection of the operations for the specified API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiOperationListByApiOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the API operation specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the API Operation specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationGetOptionalParams, + ): Promise; + /** + * Creates a new operation in the API or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + parameters: OperationContract, + options?: WorkspaceApiOperationCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the details of the operation in the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters API Operation Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + ifMatch: string, + parameters: OperationUpdateContract, + options?: WorkspaceApiOperationUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified operation in the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + ifMatch: string, + options?: WorkspaceApiOperationDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperationPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperationPolicy.ts new file mode 100644 index 000000000000..eaf2688833f7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperationPolicy.ts @@ -0,0 +1,139 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + PolicyContract, + WorkspaceApiOperationPolicyListByOperationOptionalParams, + PolicyIdName, + WorkspaceApiOperationPolicyGetEntityTagOptionalParams, + WorkspaceApiOperationPolicyGetEntityTagResponse, + WorkspaceApiOperationPolicyGetOptionalParams, + WorkspaceApiOperationPolicyGetResponse, + WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams, + WorkspaceApiOperationPolicyCreateOrUpdateResponse, + WorkspaceApiOperationPolicyDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApiOperationPolicy. */ +export interface WorkspaceApiOperationPolicy { + /** + * Get the list of policy configuration at the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + listByOperation( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationPolicyListByOperationOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the API operation policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + options?: WorkspaceApiOperationPolicyGetEntityTagOptionalParams, + ): Promise; + /** + * Get the policy configuration at the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + options?: WorkspaceApiOperationPolicyGetOptionalParams, + ): Promise; + /** + * Creates or updates policy configuration for the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the policy configuration at the Api Operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspaceApiOperationPolicyDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiPolicy.ts new file mode 100644 index 000000000000..cf3f96418a36 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiPolicy.ts @@ -0,0 +1,124 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + PolicyContract, + WorkspaceApiPolicyListByApiOptionalParams, + PolicyIdName, + WorkspaceApiPolicyGetEntityTagOptionalParams, + WorkspaceApiPolicyGetEntityTagResponse, + WorkspaceApiPolicyGetOptionalParams, + WorkspaceApiPolicyGetResponse, + WorkspaceApiPolicyCreateOrUpdateOptionalParams, + WorkspaceApiPolicyCreateOrUpdateResponse, + WorkspaceApiPolicyDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApiPolicy. */ +export interface WorkspaceApiPolicy { + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiPolicyListByApiOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the API policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + options?: WorkspaceApiPolicyGetEntityTagOptionalParams, + ): Promise; + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + options?: WorkspaceApiPolicyGetOptionalParams, + ): Promise; + /** + * Creates or updates policy configuration for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspaceApiPolicyCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the policy configuration at the Api. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspaceApiPolicyDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRelease.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRelease.ts new file mode 100644 index 000000000000..836b17701932 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRelease.ts @@ -0,0 +1,150 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ApiReleaseContract, + WorkspaceApiReleaseListByServiceOptionalParams, + WorkspaceApiReleaseGetEntityTagOptionalParams, + WorkspaceApiReleaseGetEntityTagResponse, + WorkspaceApiReleaseGetOptionalParams, + WorkspaceApiReleaseGetResponse, + WorkspaceApiReleaseCreateOrUpdateOptionalParams, + WorkspaceApiReleaseCreateOrUpdateResponse, + WorkspaceApiReleaseUpdateOptionalParams, + WorkspaceApiReleaseUpdateResponse, + WorkspaceApiReleaseDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApiRelease. */ +export interface WorkspaceApiRelease { + /** + * Lists all releases of an API. An API release is created when making an API Revision current. + * Releases are also used to rollback to previous revisions. Results will be paged and can be + * constrained by the $top and $skip parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiReleaseListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Returns the etag of an API release. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + options?: WorkspaceApiReleaseGetEntityTagOptionalParams, + ): Promise; + /** + * Returns the details of an API release. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + options?: WorkspaceApiReleaseGetOptionalParams, + ): Promise; + /** + * Creates a new Release for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + parameters: ApiReleaseContract, + options?: WorkspaceApiReleaseCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the details of the release of the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters API Release Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + ifMatch: string, + parameters: ApiReleaseContract, + options?: WorkspaceApiReleaseUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified release in the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + ifMatch: string, + options?: WorkspaceApiReleaseDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRevision.ts new file mode 100644 index 000000000000..133012b77c3d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRevision.ts @@ -0,0 +1,34 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ApiRevisionContract, + WorkspaceApiRevisionListByServiceOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApiRevision. */ +export interface WorkspaceApiRevision { + /** + * Lists all revisions of an API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiRevisionListByServiceOptionalParams, + ): PagedAsyncIterableIterator; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiSchema.ts new file mode 100644 index 000000000000..3276f1f5c9f3 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiSchema.ts @@ -0,0 +1,150 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + SchemaContract, + WorkspaceApiSchemaListByApiOptionalParams, + WorkspaceApiSchemaGetEntityTagOptionalParams, + WorkspaceApiSchemaGetEntityTagResponse, + WorkspaceApiSchemaGetOptionalParams, + WorkspaceApiSchemaGetResponse, + WorkspaceApiSchemaCreateOrUpdateOptionalParams, + WorkspaceApiSchemaCreateOrUpdateResponse, + WorkspaceApiSchemaDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApiSchema. */ +export interface WorkspaceApiSchema { + /** + * Get the schema configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiSchemaListByApiOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + options?: WorkspaceApiSchemaGetEntityTagOptionalParams, + ): Promise; + /** + * Get the schema configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + options?: WorkspaceApiSchemaGetOptionalParams, + ): Promise; + /** + * Creates or updates schema configuration for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters The schema contents to apply. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + parameters: SchemaContract, + options?: WorkspaceApiSchemaCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceApiSchemaCreateOrUpdateResponse + > + >; + /** + * Creates or updates schema configuration for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters The schema contents to apply. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + parameters: SchemaContract, + options?: WorkspaceApiSchemaCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the schema configuration at the Api. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + ifMatch: string, + options?: WorkspaceApiSchemaDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiVersionSet.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiVersionSet.ts new file mode 100644 index 000000000000..d680f123b4f7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiVersionSet.ts @@ -0,0 +1,137 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ApiVersionSetContract, + WorkspaceApiVersionSetListByServiceOptionalParams, + WorkspaceApiVersionSetGetEntityTagOptionalParams, + WorkspaceApiVersionSetGetEntityTagResponse, + WorkspaceApiVersionSetGetOptionalParams, + WorkspaceApiVersionSetGetResponse, + WorkspaceApiVersionSetCreateOrUpdateOptionalParams, + WorkspaceApiVersionSetCreateOrUpdateResponse, + ApiVersionSetUpdateParameters, + WorkspaceApiVersionSetUpdateOptionalParams, + WorkspaceApiVersionSetUpdateResponse, + WorkspaceApiVersionSetDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApiVersionSet. */ +export interface WorkspaceApiVersionSet { + /** + * Lists a collection of API Version Sets in the specified workspace with a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiVersionSetListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the Api Version Set specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + options?: WorkspaceApiVersionSetGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the Api Version Set specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + options?: WorkspaceApiVersionSetGetOptionalParams, + ): Promise; + /** + * Creates or Updates a Api Version Set. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + parameters: ApiVersionSetContract, + options?: WorkspaceApiVersionSetCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the details of the Api VersionSet specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + ifMatch: string, + parameters: ApiVersionSetUpdateParameters, + options?: WorkspaceApiVersionSetUpdateOptionalParams, + ): Promise; + /** + * Deletes specific Api Version Set. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + ifMatch: string, + options?: WorkspaceApiVersionSetDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGlobalSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGlobalSchema.ts new file mode 100644 index 000000000000..9d4e1493082c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGlobalSchema.ts @@ -0,0 +1,134 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + GlobalSchemaContract, + WorkspaceGlobalSchemaListByServiceOptionalParams, + WorkspaceGlobalSchemaGetEntityTagOptionalParams, + WorkspaceGlobalSchemaGetEntityTagResponse, + WorkspaceGlobalSchemaGetOptionalParams, + WorkspaceGlobalSchemaGetResponse, + WorkspaceGlobalSchemaCreateOrUpdateOptionalParams, + WorkspaceGlobalSchemaCreateOrUpdateResponse, + WorkspaceGlobalSchemaDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceGlobalSchema. */ +export interface WorkspaceGlobalSchema { + /** + * Lists a collection of schemas registered with workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGlobalSchemaListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the Schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + options?: WorkspaceGlobalSchemaGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the Schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + options?: WorkspaceGlobalSchemaGetOptionalParams, + ): Promise; + /** + * Creates new or updates existing specified Schema of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + parameters: GlobalSchemaContract, + options?: WorkspaceGlobalSchemaCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceGlobalSchemaCreateOrUpdateResponse + > + >; + /** + * Creates new or updates existing specified Schema of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + parameters: GlobalSchemaContract, + options?: WorkspaceGlobalSchemaCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes specific Schema. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + ifMatch: string, + options?: WorkspaceGlobalSchemaDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroup.ts new file mode 100644 index 000000000000..4fcf68bb0d02 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroup.ts @@ -0,0 +1,133 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + GroupContract, + WorkspaceGroupListByServiceOptionalParams, + WorkspaceGroupGetEntityTagOptionalParams, + WorkspaceGroupGetEntityTagResponse, + WorkspaceGroupGetOptionalParams, + WorkspaceGroupGetResponse, + GroupCreateParameters, + WorkspaceGroupCreateOrUpdateOptionalParams, + WorkspaceGroupCreateOrUpdateResponse, + GroupUpdateParameters, + WorkspaceGroupUpdateOptionalParams, + WorkspaceGroupUpdateResponse, + WorkspaceGroupDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceGroup. */ +export interface WorkspaceGroup { + /** + * Lists a collection of groups defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGroupListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the group specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the group specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupGetOptionalParams, + ): Promise; + /** + * Creates or Updates a group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + parameters: GroupCreateParameters, + options?: WorkspaceGroupCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the details of the group specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + ifMatch: string, + parameters: GroupUpdateParameters, + options?: WorkspaceGroupUpdateOptionalParams, + ): Promise; + /** + * Deletes specific group of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + ifMatch: string, + options?: WorkspaceGroupDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroupUser.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroupUser.ts new file mode 100644 index 000000000000..4f8a67885818 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroupUser.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + UserContract, + WorkspaceGroupUserListOptionalParams, + WorkspaceGroupUserCheckEntityExistsOptionalParams, + WorkspaceGroupUserCheckEntityExistsResponse, + WorkspaceGroupUserCreateOptionalParams, + WorkspaceGroupUserCreateResponse, + WorkspaceGroupUserDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceGroupUser. */ +export interface WorkspaceGroupUser { + /** + * Lists a collection of user entities associated with the group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupUserListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Checks that user entity specified by identifier is associated with the group entity. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + checkEntityExists( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + userId: string, + options?: WorkspaceGroupUserCheckEntityExistsOptionalParams, + ): Promise; + /** + * Add existing user to existing group + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + create( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + userId: string, + options?: WorkspaceGroupUserCreateOptionalParams, + ): Promise; + /** + * Remove existing user from existing group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + userId: string, + options?: WorkspaceGroupUserDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNamedValue.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNamedValue.ts new file mode 100644 index 000000000000..db632db4b26b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNamedValue.ts @@ -0,0 +1,240 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + NamedValueContract, + WorkspaceNamedValueListByServiceOptionalParams, + WorkspaceNamedValueGetEntityTagOptionalParams, + WorkspaceNamedValueGetEntityTagResponse, + WorkspaceNamedValueGetOptionalParams, + WorkspaceNamedValueGetResponse, + NamedValueCreateContract, + WorkspaceNamedValueCreateOrUpdateOptionalParams, + WorkspaceNamedValueCreateOrUpdateResponse, + NamedValueUpdateParameters, + WorkspaceNamedValueUpdateOptionalParams, + WorkspaceNamedValueUpdateResponse, + WorkspaceNamedValueDeleteOptionalParams, + WorkspaceNamedValueListValueOptionalParams, + WorkspaceNamedValueListValueResponse, + WorkspaceNamedValueRefreshSecretOptionalParams, + WorkspaceNamedValueRefreshSecretResponse, +} from "../models"; + +/// +/** Interface representing a WorkspaceNamedValue. */ +export interface WorkspaceNamedValue { + /** + * Lists a collection of named values defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNamedValueListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueGetOptionalParams, + ): Promise; + /** + * Creates or updates named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param parameters Create parameters. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + parameters: NamedValueCreateContract, + options?: WorkspaceNamedValueCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceNamedValueCreateOrUpdateResponse + > + >; + /** + * Creates or updates named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param parameters Create parameters. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + parameters: NamedValueCreateContract, + options?: WorkspaceNamedValueCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the specific named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + ifMatch: string, + parameters: NamedValueUpdateParameters, + options?: WorkspaceNamedValueUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceNamedValueUpdateResponse + > + >; + /** + * Updates the specific named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + ifMatch: string, + parameters: NamedValueUpdateParameters, + options?: WorkspaceNamedValueUpdateOptionalParams, + ): Promise; + /** + * Deletes specific named value from the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + ifMatch: string, + options?: WorkspaceNamedValueDeleteOptionalParams, + ): Promise; + /** + * Gets the secret of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + listValue( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueListValueOptionalParams, + ): Promise; + /** + * Refresh the secret of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + beginRefreshSecret( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueRefreshSecretOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceNamedValueRefreshSecretResponse + > + >; + /** + * Refresh the secret of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + beginRefreshSecretAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueRefreshSecretOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotification.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotification.ts new file mode 100644 index 000000000000..df7c4ad2515a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotification.ts @@ -0,0 +1,69 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + NotificationContract, + WorkspaceNotificationListByServiceOptionalParams, + NotificationName, + WorkspaceNotificationGetOptionalParams, + WorkspaceNotificationGetResponse, + WorkspaceNotificationCreateOrUpdateOptionalParams, + WorkspaceNotificationCreateOrUpdateResponse, +} from "../models"; + +/// +/** Interface representing a WorkspaceNotification. */ +export interface WorkspaceNotification { + /** + * Lists a collection of properties defined within a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNotificationListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the details of the Notification specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationGetOptionalParams, + ): Promise; + /** + * Create or Update API Management publisher notification for the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationCreateOrUpdateOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientEmail.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientEmail.ts new file mode 100644 index 000000000000..f77f15289981 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientEmail.ts @@ -0,0 +1,92 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + NotificationName, + WorkspaceNotificationRecipientEmailListByNotificationOptionalParams, + WorkspaceNotificationRecipientEmailListByNotificationResponse, + WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams, + WorkspaceNotificationRecipientEmailCheckEntityExistsResponse, + WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams, + WorkspaceNotificationRecipientEmailCreateOrUpdateResponse, + WorkspaceNotificationRecipientEmailDeleteOptionalParams, +} from "../models"; + +/** Interface representing a WorkspaceNotificationRecipientEmail. */ +export interface WorkspaceNotificationRecipientEmail { + /** + * Gets the list of the Notification Recipient Emails subscribed to a notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + listByNotification( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationRecipientEmailListByNotificationOptionalParams, + ): Promise; + /** + * Determine if Notification Recipient Email subscribed to the notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param email Email identifier. + * @param options The options parameters. + */ + checkEntityExists( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + email: string, + options?: WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams, + ): Promise; + /** + * Adds the Email address to the list of Recipients for the Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param email Email identifier. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + email: string, + options?: WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams, + ): Promise; + /** + * Removes the email from the list of Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param email Email identifier. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + email: string, + options?: WorkspaceNotificationRecipientEmailDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientUser.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientUser.ts new file mode 100644 index 000000000000..a8f25d3cffbb --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientUser.ts @@ -0,0 +1,92 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + NotificationName, + WorkspaceNotificationRecipientUserListByNotificationOptionalParams, + WorkspaceNotificationRecipientUserListByNotificationResponse, + WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams, + WorkspaceNotificationRecipientUserCheckEntityExistsResponse, + WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams, + WorkspaceNotificationRecipientUserCreateOrUpdateResponse, + WorkspaceNotificationRecipientUserDeleteOptionalParams, +} from "../models"; + +/** Interface representing a WorkspaceNotificationRecipientUser. */ +export interface WorkspaceNotificationRecipientUser { + /** + * Gets the list of the Notification Recipient User subscribed to the notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + listByNotification( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationRecipientUserListByNotificationOptionalParams, + ): Promise; + /** + * Determine if the Notification Recipient User is subscribed to the notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + checkEntityExists( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + userId: string, + options?: WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams, + ): Promise; + /** + * Adds the API Management User to the list of Recipients for the Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + userId: string, + options?: WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams, + ): Promise; + /** + * Removes the API Management user from the list of Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + userId: string, + options?: WorkspaceNotificationRecipientUserDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicy.ts new file mode 100644 index 000000000000..9119a194befa --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicy.ts @@ -0,0 +1,109 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + PolicyContract, + WorkspacePolicyListByApiOptionalParams, + PolicyIdName, + WorkspacePolicyGetEntityTagOptionalParams, + WorkspacePolicyGetEntityTagResponse, + WorkspacePolicyGetOptionalParams, + WorkspacePolicyGetResponse, + WorkspacePolicyCreateOrUpdateOptionalParams, + WorkspacePolicyCreateOrUpdateResponse, + WorkspacePolicyDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspacePolicy. */ +export interface WorkspacePolicy { + /** + * Get the policy configuration at the workspace level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyListByApiOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the workspace policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + options?: WorkspacePolicyGetEntityTagOptionalParams, + ): Promise; + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + options?: WorkspacePolicyGetOptionalParams, + ): Promise; + /** + * Creates or updates policy configuration for the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspacePolicyCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the policy configuration at the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspacePolicyDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicyFragment.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicyFragment.ts new file mode 100644 index 000000000000..83f8fbf000e6 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicyFragment.ts @@ -0,0 +1,150 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + PolicyFragmentContract, + WorkspacePolicyFragmentListByServiceOptionalParams, + WorkspacePolicyFragmentGetEntityTagOptionalParams, + WorkspacePolicyFragmentGetEntityTagResponse, + WorkspacePolicyFragmentGetOptionalParams, + WorkspacePolicyFragmentGetResponse, + WorkspacePolicyFragmentCreateOrUpdateOptionalParams, + WorkspacePolicyFragmentCreateOrUpdateResponse, + WorkspacePolicyFragmentDeleteOptionalParams, + WorkspacePolicyFragmentListReferencesOptionalParams, + WorkspacePolicyFragmentListReferencesResponse, +} from "../models"; + +/// +/** Interface representing a WorkspacePolicyFragment. */ +export interface WorkspacePolicyFragment { + /** + * Gets all policy fragments defined within a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyFragmentListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + options?: WorkspacePolicyFragmentGetEntityTagOptionalParams, + ): Promise; + /** + * Gets a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + options?: WorkspacePolicyFragmentGetOptionalParams, + ): Promise; + /** + * Creates or updates a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + parameters: PolicyFragmentContract, + options?: WorkspacePolicyFragmentCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspacePolicyFragmentCreateOrUpdateResponse + > + >; + /** + * Creates or updates a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + parameters: PolicyFragmentContract, + options?: WorkspacePolicyFragmentCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + ifMatch: string, + options?: WorkspacePolicyFragmentDeleteOptionalParams, + ): Promise; + /** + * Lists policy resources that reference the policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param options The options parameters. + */ + listReferences( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + options?: WorkspacePolicyFragmentListReferencesOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProduct.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProduct.ts new file mode 100644 index 000000000000..bad4997071bd --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProduct.ts @@ -0,0 +1,132 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ProductContract, + WorkspaceProductListByServiceOptionalParams, + WorkspaceProductGetEntityTagOptionalParams, + WorkspaceProductGetEntityTagResponse, + WorkspaceProductGetOptionalParams, + WorkspaceProductGetResponse, + WorkspaceProductCreateOrUpdateOptionalParams, + WorkspaceProductCreateOrUpdateResponse, + ProductUpdateParameters, + WorkspaceProductUpdateOptionalParams, + WorkspaceProductUpdateResponse, + WorkspaceProductDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceProduct. */ +export interface WorkspaceProduct { + /** + * Lists a collection of products in the specified workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceProductListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGetOptionalParams, + ): Promise; + /** + * Creates or Updates a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + parameters: ProductContract, + options?: WorkspaceProductCreateOrUpdateOptionalParams, + ): Promise; + /** + * Update existing product details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + ifMatch: string, + parameters: ProductUpdateParameters, + options?: WorkspaceProductUpdateOptionalParams, + ): Promise; + /** + * Delete product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + ifMatch: string, + options?: WorkspaceProductDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductApiLink.ts new file mode 100644 index 000000000000..47a2eb5a2d02 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductApiLink.ts @@ -0,0 +1,98 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ProductApiLinkContract, + WorkspaceProductApiLinkListByProductOptionalParams, + WorkspaceProductApiLinkGetOptionalParams, + WorkspaceProductApiLinkGetResponse, + WorkspaceProductApiLinkCreateOrUpdateOptionalParams, + WorkspaceProductApiLinkCreateOrUpdateResponse, + WorkspaceProductApiLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceProductApiLink. */ +export interface WorkspaceProductApiLink { + /** + * Lists a collection of the API links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductApiLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the API link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + apiLinkId: string, + options?: WorkspaceProductApiLinkGetOptionalParams, + ): Promise; + /** + * Adds an API to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + apiLinkId: string, + parameters: ProductApiLinkContract, + options?: WorkspaceProductApiLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified API from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + apiLinkId: string, + options?: WorkspaceProductApiLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductGroupLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductGroupLink.ts new file mode 100644 index 000000000000..89cd940aa441 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductGroupLink.ts @@ -0,0 +1,98 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ProductGroupLinkContract, + WorkspaceProductGroupLinkListByProductOptionalParams, + WorkspaceProductGroupLinkGetOptionalParams, + WorkspaceProductGroupLinkGetResponse, + WorkspaceProductGroupLinkCreateOrUpdateOptionalParams, + WorkspaceProductGroupLinkCreateOrUpdateResponse, + WorkspaceProductGroupLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceProductGroupLink. */ +export interface WorkspaceProductGroupLink { + /** + * Lists a collection of the group links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGroupLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the group link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + groupLinkId: string, + options?: WorkspaceProductGroupLinkGetOptionalParams, + ): Promise; + /** + * Adds a group to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + groupLinkId: string, + parameters: ProductGroupLinkContract, + options?: WorkspaceProductGroupLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified group from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + groupLinkId: string, + options?: WorkspaceProductGroupLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductPolicy.ts new file mode 100644 index 000000000000..3466b9503f26 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductPolicy.ts @@ -0,0 +1,118 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + WorkspaceProductPolicyListByProductOptionalParams, + WorkspaceProductPolicyListByProductResponse, + PolicyIdName, + WorkspaceProductPolicyGetEntityTagOptionalParams, + WorkspaceProductPolicyGetEntityTagResponse, + WorkspaceProductPolicyGetOptionalParams, + WorkspaceProductPolicyGetResponse, + PolicyContract, + WorkspaceProductPolicyCreateOrUpdateOptionalParams, + WorkspaceProductPolicyCreateOrUpdateResponse, + WorkspaceProductPolicyDeleteOptionalParams, +} from "../models"; + +/** Interface representing a WorkspaceProductPolicy. */ +export interface WorkspaceProductPolicy { + /** + * Get the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductPolicyListByProductOptionalParams, + ): Promise; + /** + * Get the ETag of the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + options?: WorkspaceProductPolicyGetEntityTagOptionalParams, + ): Promise; + /** + * Get the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + options?: WorkspaceProductPolicyGetOptionalParams, + ): Promise; + /** + * Creates or updates policy configuration for the Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspaceProductPolicyCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the policy configuration at the Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspaceProductPolicyDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceSubscription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceSubscription.ts new file mode 100644 index 000000000000..d89a79dec29c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceSubscription.ts @@ -0,0 +1,195 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + SubscriptionContract, + WorkspaceSubscriptionListOptionalParams, + WorkspaceSubscriptionGetEntityTagOptionalParams, + WorkspaceSubscriptionGetEntityTagResponse, + WorkspaceSubscriptionGetOptionalParams, + WorkspaceSubscriptionGetResponse, + SubscriptionCreateParameters, + WorkspaceSubscriptionCreateOrUpdateOptionalParams, + WorkspaceSubscriptionCreateOrUpdateResponse, + SubscriptionUpdateParameters, + WorkspaceSubscriptionUpdateOptionalParams, + WorkspaceSubscriptionUpdateResponse, + WorkspaceSubscriptionDeleteOptionalParams, + WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams, + WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams, + WorkspaceSubscriptionListSecretsOptionalParams, + WorkspaceSubscriptionListSecretsResponse, +} from "../models"; + +/// +/** Interface representing a WorkspaceSubscription. */ +export interface WorkspaceSubscription { + /** + * Lists all subscriptions of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceSubscriptionListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the specified Subscription entity. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionGetOptionalParams, + ): Promise; + /** + * Creates or updates the subscription of specified user to the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + parameters: SubscriptionCreateParameters, + options?: WorkspaceSubscriptionCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the details of a subscription specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + ifMatch: string, + parameters: SubscriptionUpdateParameters, + options?: WorkspaceSubscriptionUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified subscription. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + ifMatch: string, + options?: WorkspaceSubscriptionDeleteOptionalParams, + ): Promise; + /** + * Regenerates primary key of existing subscription of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + regeneratePrimaryKey( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams, + ): Promise; + /** + * Regenerates secondary key of existing subscription of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + regenerateSecondaryKey( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams, + ): Promise; + /** + * Gets the specified Subscription keys. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + listSecrets( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionListSecretsOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTag.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTag.ts new file mode 100644 index 000000000000..0c3d925b8d2a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTag.ts @@ -0,0 +1,132 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + TagContract, + WorkspaceTagListByServiceOptionalParams, + WorkspaceTagGetEntityStateOptionalParams, + WorkspaceTagGetEntityStateResponse, + WorkspaceTagGetOptionalParams, + WorkspaceTagGetResponse, + TagCreateUpdateParameters, + WorkspaceTagCreateOrUpdateOptionalParams, + WorkspaceTagCreateOrUpdateResponse, + WorkspaceTagUpdateOptionalParams, + WorkspaceTagUpdateResponse, + WorkspaceTagDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceTag. */ +export interface WorkspaceTag { + /** + * Lists a collection of tags defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceTagListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state version of the tag specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityState( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagGetEntityStateOptionalParams, + ): Promise; + /** + * Gets the details of the tag specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagGetOptionalParams, + ): Promise; + /** + * Creates a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + parameters: TagCreateUpdateParameters, + options?: WorkspaceTagCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the details of the tag specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + ifMatch: string, + parameters: TagCreateUpdateParameters, + options?: WorkspaceTagUpdateOptionalParams, + ): Promise; + /** + * Deletes specific tag of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + ifMatch: string, + options?: WorkspaceTagDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagApiLink.ts new file mode 100644 index 000000000000..9eb118dad062 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagApiLink.ts @@ -0,0 +1,98 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + TagApiLinkContract, + WorkspaceTagApiLinkListByProductOptionalParams, + WorkspaceTagApiLinkGetOptionalParams, + WorkspaceTagApiLinkGetResponse, + WorkspaceTagApiLinkCreateOrUpdateOptionalParams, + WorkspaceTagApiLinkCreateOrUpdateResponse, + WorkspaceTagApiLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceTagApiLink. */ +export interface WorkspaceTagApiLink { + /** + * Lists a collection of the API links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagApiLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the API link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + apiLinkId: string, + options?: WorkspaceTagApiLinkGetOptionalParams, + ): Promise; + /** + * Adds an API to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + apiLinkId: string, + parameters: TagApiLinkContract, + options?: WorkspaceTagApiLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified API from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + apiLinkId: string, + options?: WorkspaceTagApiLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagOperationLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagOperationLink.ts new file mode 100644 index 000000000000..b0f2a7ef4109 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagOperationLink.ts @@ -0,0 +1,98 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + TagOperationLinkContract, + WorkspaceTagOperationLinkListByProductOptionalParams, + WorkspaceTagOperationLinkGetOptionalParams, + WorkspaceTagOperationLinkGetResponse, + WorkspaceTagOperationLinkCreateOrUpdateOptionalParams, + WorkspaceTagOperationLinkCreateOrUpdateResponse, + WorkspaceTagOperationLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceTagOperationLink. */ +export interface WorkspaceTagOperationLink { + /** + * Lists a collection of the operation links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagOperationLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the operation link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + operationLinkId: string, + options?: WorkspaceTagOperationLinkGetOptionalParams, + ): Promise; + /** + * Adds an operation to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + operationLinkId: string, + parameters: TagOperationLinkContract, + options?: WorkspaceTagOperationLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified operation from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + operationLinkId: string, + options?: WorkspaceTagOperationLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagProductLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagProductLink.ts new file mode 100644 index 000000000000..0e618dc525c0 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagProductLink.ts @@ -0,0 +1,98 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + TagProductLinkContract, + WorkspaceTagProductLinkListByProductOptionalParams, + WorkspaceTagProductLinkGetOptionalParams, + WorkspaceTagProductLinkGetResponse, + WorkspaceTagProductLinkCreateOrUpdateOptionalParams, + WorkspaceTagProductLinkCreateOrUpdateResponse, + WorkspaceTagProductLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceTagProductLink. */ +export interface WorkspaceTagProductLink { + /** + * Lists a collection of the product links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagProductLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the product link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + productLinkId: string, + options?: WorkspaceTagProductLinkGetOptionalParams, + ): Promise; + /** + * Adds a product to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + productLinkId: string, + parameters: TagProductLinkContract, + options?: WorkspaceTagProductLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified product from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + productLinkId: string, + options?: WorkspaceTagProductLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/pagingHelper.ts b/sdk/apimanagement/arm-apimanagement/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/apimanagement/arm-apimanagement/src/pagingHelper.ts +++ b/sdk/apimanagement/arm-apimanagement/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/apimanagement/arm-apimanagement/test/sampleTest.ts b/sdk/apimanagement/arm-apimanagement/test/sampleTest.ts new file mode 100644 index 000000000000..d64be981b694 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env, +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/apimanagement/arm-apimanagement/tsconfig.json b/sdk/apimanagement/arm-apimanagement/tsconfig.json index f92121c033f6..3e6ae96443f3 100644 --- a/sdk/apimanagement/arm-apimanagement/tsconfig.json +++ b/sdk/apimanagement/arm-apimanagement/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-apimanagement": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules" diff --git a/sdk/appconfiguration/app-configuration/package.json b/sdk/appconfiguration/app-configuration/package.json index 98b8cb8a81b2..6703c94fa2a8 100644 --- a/sdk/appconfiguration/app-configuration/package.json +++ b/sdk/appconfiguration/app-configuration/package.json @@ -53,7 +53,7 @@ "pack": "npm pack 2>&1", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:browser": "npm run build:test && dev-tool run test:browser", - "integration-test:node": "dev-tool run test:node-tsx-js -- --timeout 180000 'dist-esm/test/**/*.spec.js'", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 180000 'dist-esm/test/**/*.spec.js'", "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser", "test:node": "npm run clean && npm run build:test && npm run unit-test:node", "test": "npm run test:node && npm run test:browser", diff --git a/sdk/appconfiguration/app-configuration/tests.yml b/sdk/appconfiguration/app-configuration/tests.yml index c9b41fc3046f..a13fad4d7b64 100644 --- a/sdk/appconfiguration/app-configuration/tests.yml +++ b/sdk/appconfiguration/app-configuration/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/app-configuration" ServiceDirectory: appconfiguration diff --git a/sdk/attestation/attestation/tests.yml b/sdk/attestation/attestation/tests.yml index 84bf84f57416..e2ee7247b1f2 100644 --- a/sdk/attestation/attestation/tests.yml +++ b/sdk/attestation/attestation/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/attestation" ServiceDirectory: attestation diff --git a/sdk/batch/arm-batch/CHANGELOG.md b/sdk/batch/arm-batch/CHANGELOG.md index 51a8819ec7d9..95bf3a7ea61d 100644 --- a/sdk/batch/arm-batch/CHANGELOG.md +++ b/sdk/batch/arm-batch/CHANGELOG.md @@ -1,15 +1,17 @@ # Release History + +## 9.2.0 (2024-03-13) + +**Features** -## 9.1.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added Interface AutomaticOSUpgradePolicy + - Added Interface RollingUpgradePolicy + - Added Interface UpgradePolicy + - Added Type Alias UpgradeMode + - Interface Pool has a new optional parameter upgradePolicy + - Interface SupportedSku has a new optional parameter batchSupportEndOfLife + + ## 9.1.0 (2023-12-08) **Features** diff --git a/sdk/batch/arm-batch/LICENSE b/sdk/batch/arm-batch/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/batch/arm-batch/LICENSE +++ b/sdk/batch/arm-batch/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/batch/arm-batch/_meta.json b/sdk/batch/arm-batch/_meta.json index 4e8fc0694fde..cc080b70fb11 100644 --- a/sdk/batch/arm-batch/_meta.json +++ b/sdk/batch/arm-batch/_meta.json @@ -1,8 +1,8 @@ { - "commit": "0373f0edc4414fd402603fac51d0df93f1f70507", + "commit": "3004d02873a4b583ba6a3966a370f1ba19b5da1d", "readme": "specification/batch/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\batch\\resource-manager\\readme.md --use=@autorest/typescript@6.0.13 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\batch\\resource-manager\\readme.md --use=@autorest/typescript@6.0.17 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", - "use": "@autorest/typescript@6.0.13" + "use": "@autorest/typescript@6.0.17" } \ No newline at end of file diff --git a/sdk/batch/arm-batch/assets.json b/sdk/batch/arm-batch/assets.json index 33923f30bd54..5f5c454d1c5e 100644 --- a/sdk/batch/arm-batch/assets.json +++ b/sdk/batch/arm-batch/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/batch/arm-batch", - "Tag": "js/batch/arm-batch_b9e91e3a94" + "Tag": "js/batch/arm-batch_5859ca6f69" } diff --git a/sdk/batch/arm-batch/package.json b/sdk/batch/arm-batch/package.json index 7f6f0d9568d8..137d9a31b8e9 100644 --- a/sdk/batch/arm-batch/package.json +++ b/sdk/batch/arm-batch/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for BatchManagementClient.", - "version": "9.1.1", + "version": "9.2.0", "engines": { "node": ">=18.0.0" }, @@ -12,8 +12,8 @@ "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.12.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -79,7 +79,6 @@ "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", diff --git a/sdk/batch/arm-batch/review/arm-batch.api.md b/sdk/batch/arm-batch/review/arm-batch.api.md index 984f35a151be..2f185f3372ab 100644 --- a/sdk/batch/arm-batch/review/arm-batch.api.md +++ b/sdk/batch/arm-batch/review/arm-batch.api.md @@ -146,6 +146,14 @@ export type ApplicationUpdateResponse = Application; // @public export type AuthenticationMode = "SharedKey" | "AAD" | "TaskAuthenticationToken"; +// @public +export interface AutomaticOSUpgradePolicy { + disableAutomaticRollback?: boolean; + enableAutomaticOSUpgrade?: boolean; + osRollingUpgradeDeferral?: boolean; + useRollingUpgradePolicy?: boolean; +} + // @public export interface AutoScaleRun { error?: AutoScaleRunError; @@ -1125,6 +1133,7 @@ export interface Pool extends ProxyResource { targetNodeCommunicationMode?: NodeCommunicationMode; taskSchedulingPolicy?: TaskSchedulingPolicy; taskSlotsPerNode?: number; + upgradePolicy?: UpgradePolicy; userAccounts?: UserAccount[]; vmSize?: string; } @@ -1433,6 +1442,17 @@ export interface ResourceFile { // @public export type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "None"; +// @public +export interface RollingUpgradePolicy { + enableCrossZoneUpgrade?: boolean; + maxBatchInstancePercent?: number; + maxUnhealthyInstancePercent?: number; + maxUnhealthyUpgradedInstancePercent?: number; + pauseTimeBetweenBatches?: string; + prioritizeUnhealthyInstances?: boolean; + rollbackFailedInstancesOnPolicyBreach?: boolean; +} + // @public export interface ScaleSettings { autoScale?: AutoScaleSettings; @@ -1473,6 +1493,7 @@ export type StorageAccountType = "Standard_LRS" | "Premium_LRS" | "StandardSSD_L // @public export interface SupportedSku { + readonly batchSupportEndOfLife?: Date; readonly capabilities?: SkuCapability[]; readonly familyName?: string; readonly name?: string; @@ -1503,6 +1524,16 @@ export interface UefiSettings { vTpmEnabled?: boolean; } +// @public +export type UpgradeMode = "automatic" | "manual" | "rolling"; + +// @public +export interface UpgradePolicy { + automaticOSUpgradePolicy?: AutomaticOSUpgradePolicy; + mode: UpgradeMode; + rollingUpgradePolicy?: RollingUpgradePolicy; +} + // @public export interface UserAccount { elevationLevel?: ElevationLevel; diff --git a/sdk/batch/arm-batch/samples-dev/applicationCreateSample.ts b/sdk/batch/arm-batch/samples-dev/applicationCreateSample.ts index 64c4c2f1f6ff..a8dbd7489cc8 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationCreateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationCreateSample.ts @@ -11,7 +11,7 @@ import { Application, ApplicationCreateOptionalParams, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Adds an application to the specified Batch account. * * @summary Adds an application to the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationCreate.json */ async function applicationCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -32,7 +32,7 @@ async function applicationCreate() { const applicationName = "app1"; const parameters: Application = { allowUpdates: false, - displayName: "myAppName" + displayName: "myAppName", }; const options: ApplicationCreateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -41,7 +41,7 @@ async function applicationCreate() { resourceGroupName, accountName, applicationName, - options + options, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationDeleteSample.ts b/sdk/batch/arm-batch/samples-dev/applicationDeleteSample.ts index 78302373bbf7..cc654adc53ca 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationDeleteSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an application. * * @summary Deletes an application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationDelete.json */ async function applicationDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function applicationDelete() { const result = await client.applicationOperations.delete( resourceGroupName, accountName, - applicationName + applicationName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationGetSample.ts b/sdk/batch/arm-batch/samples-dev/applicationGetSample.ts index 37ba964c881e..5c8040343af6 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationGetSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified application. * * @summary Gets information about the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationGet.json */ async function applicationGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function applicationGet() { const result = await client.applicationOperations.get( resourceGroupName, accountName, - applicationName + applicationName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationListSample.ts b/sdk/batch/arm-batch/samples-dev/applicationListSample.ts index 0b9fbf8a43ae..7bc002d6e44c 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationListSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the applications in the specified account. * * @summary Lists all of the applications in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationList.json */ async function applicationList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function applicationList() { const resArray = new Array(); for await (let item of client.applicationOperations.list( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationPackageActivateSample.ts b/sdk/batch/arm-batch/samples-dev/applicationPackageActivateSample.ts index fdff2415ef76..300527a53c43 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationPackageActivateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationPackageActivateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ActivateApplicationPackageParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks. * * @summary Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageActivate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageActivate.json */ async function applicationPackageActivate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -38,7 +38,7 @@ async function applicationPackageActivate() { accountName, applicationName, versionName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationPackageCreateSample.ts b/sdk/batch/arm-batch/samples-dev/applicationPackageCreateSample.ts index f05044dc1f76..24947565f7ee 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationPackageCreateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationPackageCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS. * * @summary Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageCreate.json */ async function applicationPackageCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function applicationPackageCreate() { resourceGroupName, accountName, applicationName, - versionName + versionName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationPackageDeleteSample.ts b/sdk/batch/arm-batch/samples-dev/applicationPackageDeleteSample.ts index a60eed70c9d5..5dfb9a724185 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationPackageDeleteSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationPackageDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an application package record and its associated binary file. * * @summary Deletes an application package record and its associated binary file. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageDelete.json */ async function applicationPackageDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function applicationPackageDelete() { resourceGroupName, accountName, applicationName, - versionName + versionName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationPackageGetSample.ts b/sdk/batch/arm-batch/samples-dev/applicationPackageGetSample.ts index 3728f051deb6..ae9deebd6509 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationPackageGetSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationPackageGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified application package. * * @summary Gets information about the specified application package. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageGet.json */ async function applicationPackageGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function applicationPackageGet() { resourceGroupName, accountName, applicationName, - versionName + versionName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationPackageListSample.ts b/sdk/batch/arm-batch/samples-dev/applicationPackageListSample.ts index 1f9f2731ec96..d2ec0a3b8aad 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationPackageListSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationPackageListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the application packages in the specified application. * * @summary Lists all of the application packages in the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageList.json */ async function applicationPackageList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -32,7 +32,7 @@ async function applicationPackageList() { for await (let item of client.applicationPackageOperations.list( resourceGroupName, accountName, - applicationName + applicationName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationUpdateSample.ts b/sdk/batch/arm-batch/samples-dev/applicationUpdateSample.ts index 6c012f8e5b44..7a2ab45754e2 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationUpdateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Updates settings for the specified application. * * @summary Updates settings for the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationUpdate.json */ async function applicationUpdate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function applicationUpdate() { const parameters: Application = { allowUpdates: true, defaultVersion: "2", - displayName: "myAppName" + displayName: "myAppName", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -37,7 +37,7 @@ async function applicationUpdate() { resourceGroupName, accountName, applicationName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountCreateSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountCreateSample.ts index c114b1b2edd3..b18c9a9b33f8 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountCreateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { BatchAccountCreateParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_BYOS.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_BYOS.json */ async function batchAccountCreateByos() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,22 +31,21 @@ async function batchAccountCreateByos() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, keyVaultReference: { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", - url: "http://sample.vault.azure.net/" + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", + url: "http://sample.vault.azure.net/", }, location: "japaneast", - poolAllocationMode: "UserSubscription" + poolAllocationMode: "UserSubscription", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } @@ -55,7 +54,7 @@ async function batchAccountCreateByos() { * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_Default.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_Default.json */ async function batchAccountCreateDefault() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -65,16 +64,16 @@ async function batchAccountCreateDefault() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, - location: "japaneast" + location: "japaneast", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } @@ -83,7 +82,7 @@ async function batchAccountCreateDefault() { * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_SystemAssignedIdentity.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_SystemAssignedIdentity.json */ async function batchAccountCreateSystemAssignedIdentity() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -93,17 +92,17 @@ async function batchAccountCreateSystemAssignedIdentity() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, identity: { type: "SystemAssigned" }, - location: "japaneast" + location: "japaneast", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } @@ -112,7 +111,7 @@ async function batchAccountCreateSystemAssignedIdentity() { * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_UserAssignedIdentity.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_UserAssignedIdentity.json */ async function batchAccountCreateUserAssignedIdentity() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -122,22 +121,23 @@ async function batchAccountCreateUserAssignedIdentity() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, identity: { type: "UserAssigned", userAssignedIdentities: { - "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {} - } + "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": + {}, + }, }, - location: "japaneast" + location: "japaneast", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } @@ -146,7 +146,7 @@ async function batchAccountCreateUserAssignedIdentity() { * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountCreate.json */ async function privateBatchAccountCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -156,22 +156,21 @@ async function privateBatchAccountCreate() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, keyVaultReference: { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", - url: "http://sample.vault.azure.net/" + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", + url: "http://sample.vault.azure.net/", }, location: "japaneast", - publicNetworkAccess: "Disabled" + publicNetworkAccess: "Disabled", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountDeleteSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountDeleteSample.ts index 215254b6434c..3ab28b3efbbb 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountDeleteSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Batch account. * * @summary Deletes the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountDelete.json */ async function batchAccountDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function batchAccountDelete() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginDeleteAndWait( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountGetDetectorSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountGetDetectorSample.ts index f21e79d7b5bd..02afade8344e 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountGetDetectorSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountGetDetectorSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the given detector for a given Batch account. * * @summary Gets information about the given detector for a given Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorGet.json */ async function getDetector() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function getDetector() { const result = await client.batchAccountOperations.getDetector( resourceGroupName, accountName, - detectorId + detectorId, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountGetKeysSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountGetKeysSample.ts index 007159c908cd..146587b90ee8 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountGetKeysSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountGetKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail. * * @summary This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGetKeys.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGetKeys.json */ async function batchAccountGetKeys() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function batchAccountGetKeys() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.getKeys( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountGetSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountGetSample.ts index e9de30289660..1b379c7b2016 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountGetSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified Batch account. * * @summary Gets information about the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json */ async function batchAccountGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function batchAccountGet() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.get( resourceGroupName, - accountName + accountName, ); console.log(result); } @@ -38,7 +38,7 @@ async function batchAccountGet() { * This sample demonstrates how to Gets information about the specified Batch account. * * @summary Gets information about the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountGet.json */ async function privateBatchAccountGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -49,7 +49,7 @@ async function privateBatchAccountGet() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.get( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountListByResourceGroupSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountListByResourceGroupSample.ts index 474a0cf06a3f..3d89d382ca06 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountListByResourceGroupSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the Batch accounts associated with the specified resource group. * * @summary Gets information about the Batch accounts associated with the specified resource group. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListByResourceGroup.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListByResourceGroup.json */ async function batchAccountListByResourceGroup() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -28,7 +28,7 @@ async function batchAccountListByResourceGroup() { const client = new BatchManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.batchAccountOperations.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountListDetectorsSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountListDetectorsSample.ts index 201e99bfec41..02c7bbb2963c 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountListDetectorsSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountListDetectorsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the detectors available for a given Batch account. * * @summary Gets information about the detectors available for a given Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorList.json */ async function listDetectors() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function listDetectors() { const resArray = new Array(); for await (let item of client.batchAccountOperations.listDetectors( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts index adb1740d9092..b16fc0e1eba5 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network. + * This sample demonstrates how to Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network. * - * @summary Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json + * @summary Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network. + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json */ async function listOutboundNetworkDependencies() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function listOutboundNetworkDependencies() { const resArray = new Array(); for await (let item of client.batchAccountOperations.listOutboundNetworkDependenciesEndpoints( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountListSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountListSample.ts index d3059c1cd420..7e7e86a007ca 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountListSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the Batch accounts associated with the subscription. * * @summary Gets information about the Batch accounts associated with the subscription. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountList.json */ async function batchAccountList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountRegenerateKeySample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountRegenerateKeySample.ts index 2af55052d73c..cb32a95ec558 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountRegenerateKeySample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountRegenerateKeySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { BatchAccountRegenerateKeyParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail. * * @summary This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountRegenerateKey.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountRegenerateKey.json */ async function batchAccountRegenerateKey() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,14 +29,14 @@ async function batchAccountRegenerateKey() { process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast"; const accountName = "sampleacct"; const parameters: BatchAccountRegenerateKeyParameters = { - keyName: "Primary" + keyName: "Primary", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.regenerateKey( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.ts index a1745f885316..270e29f2fe26 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. * * @summary Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountSynchronizeAutoStorageKeys.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountSynchronizeAutoStorageKeys.json */ async function batchAccountSynchronizeAutoStorageKeys() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function batchAccountSynchronizeAutoStorageKeys() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.synchronizeAutoStorageKeys( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountUpdateSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountUpdateSample.ts index 0b9d17a48d7f..dcd5e09a8b35 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountUpdateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { BatchAccountUpdateParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the properties of an existing Batch account. * * @summary Updates the properties of an existing Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountUpdate.json */ async function batchAccountUpdate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,15 +31,15 @@ async function batchAccountUpdate() { const parameters: BatchAccountUpdateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" - } + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", + }, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.update( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/certificateCancelDeletionSample.ts b/sdk/batch/arm-batch/samples-dev/certificateCancelDeletionSample.ts index c5eb7f42ea6c..be9ee3b99080 100644 --- a/sdk/batch/arm-batch/samples-dev/certificateCancelDeletionSample.ts +++ b/sdk/batch/arm-batch/samples-dev/certificateCancelDeletionSample.ts @@ -22,7 +22,7 @@ Warning: This operation is deprecated and will be removed after February, 2024. * @summary If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate. Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCancelDeletion.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCancelDeletion.json */ async function certificateCancelDeletion() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -35,7 +35,7 @@ async function certificateCancelDeletion() { const result = await client.certificateOperations.cancelDeletion( resourceGroupName, accountName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/certificateCreateSample.ts b/sdk/batch/arm-batch/samples-dev/certificateCreateSample.ts index 0cf0437c6750..732c5eb1da22 100644 --- a/sdk/batch/arm-batch/samples-dev/certificateCreateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/certificateCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CertificateCreateOrUpdateParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Full.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Full.json */ async function createCertificateFull() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -34,7 +34,7 @@ async function createCertificateFull() { data: "MIIJsgIBAzCCCW4GCSqGSIb3DQE...", password: "", thumbprint: "0a0e4f50d51beadeac1d35afc5116098e7902e6e", - thumbprintAlgorithm: "sha1" + thumbprintAlgorithm: "sha1", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -42,7 +42,7 @@ async function createCertificateFull() { resourceGroupName, accountName, certificateName, - parameters + parameters, ); console.log(result); } @@ -51,7 +51,7 @@ async function createCertificateFull() { * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_MinimalCer.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_MinimalCer.json */ async function createCertificateMinimalCer() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -61,7 +61,7 @@ async function createCertificateMinimalCer() { const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e"; const parameters: CertificateCreateOrUpdateParameters = { format: "Cer", - data: "MIICrjCCAZagAwI..." + data: "MIICrjCCAZagAwI...", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -69,7 +69,7 @@ async function createCertificateMinimalCer() { resourceGroupName, accountName, certificateName, - parameters + parameters, ); console.log(result); } @@ -78,7 +78,7 @@ async function createCertificateMinimalCer() { * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Minimal.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Minimal.json */ async function createCertificateMinimalPfx() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -88,7 +88,7 @@ async function createCertificateMinimalPfx() { const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e"; const parameters: CertificateCreateOrUpdateParameters = { data: "MIIJsgIBAzCCCW4GCSqGSIb3DQE...", - password: "" + password: "", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -96,7 +96,7 @@ async function createCertificateMinimalPfx() { resourceGroupName, accountName, certificateName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/certificateDeleteSample.ts b/sdk/batch/arm-batch/samples-dev/certificateDeleteSample.ts index 6f5983bd38c2..efca48cb301a 100644 --- a/sdk/batch/arm-batch/samples-dev/certificateDeleteSample.ts +++ b/sdk/batch/arm-batch/samples-dev/certificateDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateDelete.json */ async function certificateDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function certificateDelete() { const result = await client.certificateOperations.beginDeleteAndWait( resourceGroupName, accountName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/certificateGetSample.ts b/sdk/batch/arm-batch/samples-dev/certificateGetSample.ts index 35f3a497aed3..877bcc59143b 100644 --- a/sdk/batch/arm-batch/samples-dev/certificateGetSample.ts +++ b/sdk/batch/arm-batch/samples-dev/certificateGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGet.json */ async function getCertificate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function getCertificate() { const result = await client.certificateOperations.get( resourceGroupName, accountName, - certificateName + certificateName, ); console.log(result); } @@ -40,7 +40,7 @@ async function getCertificate() { * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGetWithDeletionError.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGetWithDeletionError.json */ async function getCertificateWithDeletionError() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -53,7 +53,7 @@ async function getCertificateWithDeletionError() { const result = await client.certificateOperations.get( resourceGroupName, accountName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/certificateListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples-dev/certificateListByBatchAccountSample.ts index 19c1364f0406..50d9f2df5da4 100644 --- a/sdk/batch/arm-batch/samples-dev/certificateListByBatchAccountSample.ts +++ b/sdk/batch/arm-batch/samples-dev/certificateListByBatchAccountSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CertificateListByBatchAccountOptionalParams, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateList.json */ async function listCertificates() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function listCertificates() { const resArray = new Array(); for await (let item of client.certificateOperations.listByBatchAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } @@ -44,7 +44,7 @@ async function listCertificates() { * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateListWithFilter.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateListWithFilter.json */ async function listCertificatesFilterAndSelect() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -56,7 +56,7 @@ async function listCertificatesFilterAndSelect() { "properties/provisioningStateTransitionTime gt '2017-05-01' or properties/provisioningState eq 'Failed'"; const options: CertificateListByBatchAccountOptionalParams = { select, - filter + filter, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -64,7 +64,7 @@ async function listCertificatesFilterAndSelect() { for await (let item of client.certificateOperations.listByBatchAccount( resourceGroupName, accountName, - options + options, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/certificateUpdateSample.ts b/sdk/batch/arm-batch/samples-dev/certificateUpdateSample.ts index e230bb7c7d5d..aefb9a6329aa 100644 --- a/sdk/batch/arm-batch/samples-dev/certificateUpdateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/certificateUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CertificateCreateOrUpdateParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateUpdate.json */ async function updateCertificate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function updateCertificate() { const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e"; const parameters: CertificateCreateOrUpdateParameters = { data: "MIIJsgIBAzCCCW4GCSqGSIb3DQE...", - password: "" + password: "", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function updateCertificate() { resourceGroupName, accountName, certificateName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/locationCheckNameAvailabilitySample.ts b/sdk/batch/arm-batch/samples-dev/locationCheckNameAvailabilitySample.ts index 761b7a3991e7..a8378a706525 100644 --- a/sdk/batch/arm-batch/samples-dev/locationCheckNameAvailabilitySample.ts +++ b/sdk/batch/arm-batch/samples-dev/locationCheckNameAvailabilitySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CheckNameAvailabilityParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,20 +21,20 @@ dotenv.config(); * This sample demonstrates how to Checks whether the Batch account name is available in the specified region. * * @summary Checks whether the Batch account name is available in the specified region. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_AlreadyExists.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_AlreadyExists.json */ async function locationCheckNameAvailabilityAlreadyExists() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; const locationName = "japaneast"; const parameters: CheckNameAvailabilityParameters = { name: "existingaccountname", - type: "Microsoft.Batch/batchAccounts" + type: "Microsoft.Batch/batchAccounts", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.location.checkNameAvailability( locationName, - parameters + parameters, ); console.log(result); } @@ -43,20 +43,20 @@ async function locationCheckNameAvailabilityAlreadyExists() { * This sample demonstrates how to Checks whether the Batch account name is available in the specified region. * * @summary Checks whether the Batch account name is available in the specified region. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_Available.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_Available.json */ async function locationCheckNameAvailabilityAvailable() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; const locationName = "japaneast"; const parameters: CheckNameAvailabilityParameters = { name: "newaccountname", - type: "Microsoft.Batch/batchAccounts" + type: "Microsoft.Batch/batchAccounts", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.location.checkNameAvailability( locationName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/locationGetQuotasSample.ts b/sdk/batch/arm-batch/samples-dev/locationGetQuotasSample.ts index a72bd970c416..a3255897f228 100644 --- a/sdk/batch/arm-batch/samples-dev/locationGetQuotasSample.ts +++ b/sdk/batch/arm-batch/samples-dev/locationGetQuotasSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Batch service quotas for the specified subscription at the given location. * * @summary Gets the Batch service quotas for the specified subscription at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationGetQuotas.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationGetQuotas.json */ async function locationGetQuotas() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples-dev/locationListSupportedCloudServiceSkusSample.ts b/sdk/batch/arm-batch/samples-dev/locationListSupportedCloudServiceSkusSample.ts index 126cb58c3ece..2c759a7a9f4d 100644 --- a/sdk/batch/arm-batch/samples-dev/locationListSupportedCloudServiceSkusSample.ts +++ b/sdk/batch/arm-batch/samples-dev/locationListSupportedCloudServiceSkusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of Batch supported Cloud Service VM sizes available at the given location. * * @summary Gets the list of Batch supported Cloud Service VM sizes available at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListCloudServiceSkus.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListCloudServiceSkus.json */ async function locationListCloudServiceSkus() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -27,7 +27,7 @@ async function locationListCloudServiceSkus() { const client = new BatchManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.location.listSupportedCloudServiceSkus( - locationName + locationName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/locationListSupportedVirtualMachineSkusSample.ts b/sdk/batch/arm-batch/samples-dev/locationListSupportedVirtualMachineSkusSample.ts index 0371db773b4c..a4542724d2eb 100644 --- a/sdk/batch/arm-batch/samples-dev/locationListSupportedVirtualMachineSkusSample.ts +++ b/sdk/batch/arm-batch/samples-dev/locationListSupportedVirtualMachineSkusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of Batch supported Virtual Machine VM sizes available at the given location. * * @summary Gets the list of Batch supported Virtual Machine VM sizes available at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListVirtualMachineSkus.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListVirtualMachineSkus.json */ async function locationListVirtualMachineSkus() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -27,7 +27,7 @@ async function locationListVirtualMachineSkus() { const client = new BatchManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.location.listSupportedVirtualMachineSkus( - locationName + locationName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/operationsListSample.ts b/sdk/batch/arm-batch/samples-dev/operationsListSample.ts index 31f150fda6ec..465aa4cdc751 100644 --- a/sdk/batch/arm-batch/samples-dev/operationsListSample.ts +++ b/sdk/batch/arm-batch/samples-dev/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists available operations for the Microsoft.Batch provider * * @summary Lists available operations for the Microsoft.Batch provider - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/OperationsList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/OperationsList.json */ async function operationsList() { const subscriptionId = diff --git a/sdk/batch/arm-batch/samples-dev/poolCreateSample.ts b/sdk/batch/arm-batch/samples-dev/poolCreateSample.ts index e05ac9f73010..30c2b6d5427c 100644 --- a/sdk/batch/arm-batch/samples-dev/poolCreateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/poolCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SharedImageGallery.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SharedImageGallery.json */ async function createPoolCustomImage() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,13 +30,12 @@ async function createPoolCustomImage() { deploymentConfiguration: { virtualMachineConfiguration: { imageReference: { - id: - "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1" + id: "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -44,7 +43,7 @@ async function createPoolCustomImage() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -53,7 +52,7 @@ async function createPoolCustomImage() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_CloudServiceConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_CloudServiceConfiguration.json */ async function createPoolFullCloudServiceConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -65,50 +64,48 @@ async function createPoolFullCloudServiceConfiguration() { applicationLicenses: ["app-license0", "app-license1"], applicationPackages: [ { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234", - version: "asdf" - } + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234", + version: "asdf", + }, ], certificates: [ { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567", + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567", storeLocation: "LocalMachine", storeName: "MY", - visibility: ["RemoteUser"] - } + visibility: ["RemoteUser"], + }, ], deploymentConfiguration: { cloudServiceConfiguration: { osFamily: "4", - osVersion: "WA-GUEST-OS-4.45_201708-01" - } + osVersion: "WA-GUEST-OS-4.45_201708-01", + }, }, displayName: "my-pool-name", interNodeCommunication: "Enabled", metadata: [ { name: "metadata-1", value: "value-1" }, - { name: "metadata-2", value: "value-2" } + { name: "metadata-2", value: "value-2" }, ], networkConfiguration: { publicIPAddressConfiguration: { ipAddressIds: [ "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135", - "/subscriptions/subid2/resourceGroups/rg24/providers/Microsoft.Network/publicIPAddresses/ip268" + "/subscriptions/subid2/resourceGroups/rg24/providers/Microsoft.Network/publicIPAddresses/ip268", ], - provision: "UserManaged" + provision: "UserManaged", }, subnetId: - "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123" + "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123", }, scaleSettings: { fixedScale: { nodeDeallocationOption: "TaskCompletion", resizeTimeout: "PT8M", targetDedicatedNodes: 6, - targetLowPriorityNodes: 28 - } + targetLowPriorityNodes: 28, + }, }, startTask: { commandLine: "cmd /c SET", @@ -118,11 +115,12 @@ async function createPoolFullCloudServiceConfiguration() { { fileMode: "777", filePath: "c:\\temp\\gohere", - httpUrl: "https://testaccount.blob.core.windows.net/example-blob-file" - } + httpUrl: + "https://testaccount.blob.core.windows.net/example-blob-file", + }, ], userIdentity: { autoUser: { elevationLevel: "Admin", scope: "Pool" } }, - waitForSuccess: true + waitForSuccess: true, }, taskSchedulingPolicy: { nodeFillType: "Pack" }, taskSlotsPerNode: 13, @@ -133,12 +131,12 @@ async function createPoolFullCloudServiceConfiguration() { linuxUserConfiguration: { gid: 4567, sshPrivateKey: "sshprivatekeyvalue", - uid: 1234 + uid: 1234, }, - password: "" - } + password: "", + }, ], - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -146,7 +144,7 @@ async function createPoolFullCloudServiceConfiguration() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -155,7 +153,7 @@ async function createPoolFullCloudServiceConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration.json */ async function createPoolFullVirtualMachineConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -171,28 +169,28 @@ async function createPoolFullVirtualMachineConfiguration() { caching: "ReadWrite", diskSizeGB: 30, lun: 0, - storageAccountType: "Premium_LRS" + storageAccountType: "Premium_LRS", }, { caching: "None", diskSizeGB: 200, lun: 1, - storageAccountType: "Standard_LRS" - } + storageAccountType: "Standard_LRS", + }, ], diskEncryptionConfiguration: { targets: ["OsDisk", "TemporaryDisk"] }, imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter-SmallDisk", - version: "latest" + version: "latest", }, licenseType: "Windows_Server", nodeAgentSkuId: "batch.node.windows amd64", nodePlacementConfiguration: { policy: "Zonal" }, osDisk: { ephemeralOSDiskSettings: { placement: "CacheDisk" } }, - windowsConfiguration: { enableAutomaticUpdates: false } - } + windowsConfiguration: { enableAutomaticUpdates: false }, + }, }, networkConfiguration: { endpointConfiguration: { @@ -207,27 +205,27 @@ async function createPoolFullVirtualMachineConfiguration() { access: "Allow", priority: 150, sourceAddressPrefix: "192.100.12.45", - sourcePortRanges: ["1", "2"] + sourcePortRanges: ["1", "2"], }, { access: "Deny", priority: 3500, sourceAddressPrefix: "*", - sourcePortRanges: ["*"] - } + sourcePortRanges: ["*"], + }, ], - protocol: "TCP" - } - ] - } + protocol: "TCP", + }, + ], + }, }, scaleSettings: { autoScale: { evaluationInterval: "PT5M", - formula: "$TargetDedicatedNodes=1" - } + formula: "$TargetDedicatedNodes=1", + }, }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -235,7 +233,7 @@ async function createPoolFullVirtualMachineConfiguration() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -244,7 +242,7 @@ async function createPoolFullVirtualMachineConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json */ async function createPoolMinimalCloudServiceConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -255,7 +253,7 @@ async function createPoolMinimalCloudServiceConfiguration() { const parameters: Pool = { deploymentConfiguration: { cloudServiceConfiguration: { osFamily: "5" } }, scaleSettings: { fixedScale: { targetDedicatedNodes: 3 } }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -263,7 +261,7 @@ async function createPoolMinimalCloudServiceConfiguration() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -272,7 +270,7 @@ async function createPoolMinimalCloudServiceConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json */ async function createPoolMinimalVirtualMachineConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -287,18 +285,18 @@ async function createPoolMinimalVirtualMachineConfiguration() { offer: "UbuntuServer", publisher: "Canonical", sku: "18.04-LTS", - version: "latest" + version: "latest", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, scaleSettings: { autoScale: { evaluationInterval: "PT5M", - formula: "$TargetDedicatedNodes=1" - } + formula: "$TargetDedicatedNodes=1", + }, }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -306,7 +304,7 @@ async function createPoolMinimalVirtualMachineConfiguration() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -315,7 +313,7 @@ async function createPoolMinimalVirtualMachineConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_NoPublicIPAddresses.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_NoPublicIPAddresses.json */ async function createPoolNoPublicIP() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -327,18 +325,17 @@ async function createPoolNoPublicIP() { deploymentConfiguration: { virtualMachineConfiguration: { imageReference: { - id: - "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1" + id: "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, networkConfiguration: { publicIPAddressConfiguration: { provision: "NoPublicIPAddresses" }, subnetId: - "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123" + "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123", }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -346,7 +343,7 @@ async function createPoolNoPublicIP() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -355,7 +352,7 @@ async function createPoolNoPublicIP() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_PublicIPs.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_PublicIPs.json */ async function createPoolPublicIPs() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -367,23 +364,22 @@ async function createPoolPublicIPs() { deploymentConfiguration: { virtualMachineConfiguration: { imageReference: { - id: - "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1" + id: "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, networkConfiguration: { publicIPAddressConfiguration: { ipAddressIds: [ - "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135" + "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135", ], - provision: "UserManaged" + provision: "UserManaged", }, subnetId: - "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123" + "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123", }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -391,7 +387,7 @@ async function createPoolPublicIPs() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -400,7 +396,7 @@ async function createPoolPublicIPs() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_ResourceTags.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_ResourceTags.json */ async function createPoolResourceTags() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -415,16 +411,16 @@ async function createPoolResourceTags() { offer: "UbuntuServer", publisher: "Canonical", sku: "18_04-lts-gen2", - version: "latest" + version: "latest", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, resourceTags: { tagName1: "TagValue1", tagName2: "TagValue2" }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }, }, - vmSize: "Standard_d4s_v3" + vmSize: "Standard_d4s_v3", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -432,7 +428,7 @@ async function createPoolResourceTags() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -441,7 +437,7 @@ async function createPoolResourceTags() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SecurityProfile.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SecurityProfile.json */ async function createPoolSecurityProfile() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -456,20 +452,20 @@ async function createPoolSecurityProfile() { offer: "UbuntuServer", publisher: "Canonical", sku: "18_04-lts-gen2", - version: "latest" + version: "latest", }, nodeAgentSkuId: "batch.node.ubuntu 18.04", securityProfile: { encryptionAtHost: true, securityType: "trustedLaunch", - uefiSettings: { secureBootEnabled: undefined, vTpmEnabled: false } - } - } + uefiSettings: { secureBootEnabled: undefined, vTpmEnabled: false }, + }, + }, }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }, }, - vmSize: "Standard_d4s_v3" + vmSize: "Standard_d4s_v3", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -477,7 +473,7 @@ async function createPoolSecurityProfile() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -486,7 +482,67 @@ async function createPoolSecurityProfile() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_UserAssignedIdentities.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UpgradePolicy.json + */ +async function createPoolUpgradePolicy() { + const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast"; + const accountName = "sampleacct"; + const poolName = "testpool"; + const parameters: Pool = { + deploymentConfiguration: { + virtualMachineConfiguration: { + imageReference: { + offer: "WindowsServer", + publisher: "MicrosoftWindowsServer", + sku: "2019-datacenter-smalldisk", + version: "latest", + }, + nodeAgentSkuId: "batch.node.windows amd64", + nodePlacementConfiguration: { policy: "Zonal" }, + windowsConfiguration: { enableAutomaticUpdates: false }, + }, + }, + scaleSettings: { + fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 }, + }, + upgradePolicy: { + automaticOSUpgradePolicy: { + disableAutomaticRollback: true, + enableAutomaticOSUpgrade: true, + osRollingUpgradeDeferral: true, + useRollingUpgradePolicy: true, + }, + mode: "automatic", + rollingUpgradePolicy: { + enableCrossZoneUpgrade: true, + maxBatchInstancePercent: 20, + maxUnhealthyInstancePercent: 20, + maxUnhealthyUpgradedInstancePercent: 20, + pauseTimeBetweenBatches: "PT0S", + prioritizeUnhealthyInstances: false, + rollbackFailedInstancesOnPolicyBreach: false, + }, + }, + vmSize: "Standard_d4s_v3", + }; + const credential = new DefaultAzureCredential(); + const client = new BatchManagementClient(credential, subscriptionId); + const result = await client.poolOperations.create( + resourceGroupName, + accountName, + poolName, + parameters, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates a new pool inside the specified account. + * + * @summary Creates a new pool inside the specified account. + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UserAssignedIdentities.json */ async function createPoolUserAssignedIdentities() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -501,25 +557,27 @@ async function createPoolUserAssignedIdentities() { offer: "UbuntuServer", publisher: "Canonical", sku: "18.04-LTS", - version: "latest" + version: "latest", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, identity: { type: "UserAssigned", userAssignedIdentities: { - "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id2": {} - } + "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": + {}, + "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id2": + {}, + }, }, scaleSettings: { autoScale: { evaluationInterval: "PT5M", - formula: "$TargetDedicatedNodes=1" - } + formula: "$TargetDedicatedNodes=1", + }, }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -527,7 +585,7 @@ async function createPoolUserAssignedIdentities() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -536,7 +594,7 @@ async function createPoolUserAssignedIdentities() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json */ async function createPoolVirtualMachineConfigurationExtensions() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -550,7 +608,7 @@ async function createPoolVirtualMachineConfigurationExtensions() { imageReference: { offer: "0001-com-ubuntu-server-focal", publisher: "Canonical", - sku: "20_04-lts" + sku: "20_04-lts", }, nodeAgentSkuId: "batch.node.ubuntu 20.04", extensions: [ @@ -562,21 +620,21 @@ async function createPoolVirtualMachineConfigurationExtensions() { publisher: "Microsoft.Azure.KeyVault", settings: { authenticationSettingsKey: "authenticationSettingsValue", - secretsManagementSettingsKey: "secretsManagementSettingsValue" + secretsManagementSettingsKey: "secretsManagementSettingsValue", }, - typeHandlerVersion: "2.0" - } - ] - } + typeHandlerVersion: "2.0", + }, + ], + }, }, scaleSettings: { autoScale: { evaluationInterval: "PT5M", - formula: "$TargetDedicatedNodes=1" - } + formula: "$TargetDedicatedNodes=1", + }, }, targetNodeCommunicationMode: "Default", - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -584,7 +642,7 @@ async function createPoolVirtualMachineConfigurationExtensions() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -593,7 +651,7 @@ async function createPoolVirtualMachineConfigurationExtensions() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json */ async function createPoolVirtualMachineConfigurationOSDisk() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -607,21 +665,21 @@ async function createPoolVirtualMachineConfigurationOSDisk() { imageReference: { offer: "windowsserver", publisher: "microsoftwindowsserver", - sku: "2022-datacenter-smalldisk" + sku: "2022-datacenter-smalldisk", }, nodeAgentSkuId: "batch.node.windows amd64", osDisk: { caching: "ReadWrite", diskSizeGB: 100, managedDisk: { storageAccountType: "StandardSSD_LRS" }, - writeAcceleratorEnabled: false - } - } + writeAcceleratorEnabled: false, + }, + }, }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }, }, - vmSize: "Standard_d2s_v3" + vmSize: "Standard_d2s_v3", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -629,7 +687,7 @@ async function createPoolVirtualMachineConfigurationOSDisk() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -638,7 +696,7 @@ async function createPoolVirtualMachineConfigurationOSDisk() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json */ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -653,20 +711,23 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2019-datacenter-smalldisk", - version: "latest" + version: "latest", }, nodeAgentSkuId: "batch.node.windows amd64", serviceArtifactReference: { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Compute/galleries/myGallery/serviceArtifacts/myServiceArtifact/vmArtifactsProfiles/vmArtifactsProfile" + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Compute/galleries/myGallery/serviceArtifacts/myServiceArtifact/vmArtifactsProfiles/vmArtifactsProfile", }, - windowsConfiguration: { enableAutomaticUpdates: false } - } + windowsConfiguration: { enableAutomaticUpdates: false }, + }, }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 }, + }, + upgradePolicy: { + automaticOSUpgradePolicy: { enableAutomaticOSUpgrade: true }, + mode: "automatic", }, - vmSize: "Standard_d4s_v3" + vmSize: "Standard_d4s_v3", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -674,7 +735,7 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -683,7 +744,7 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_AcceleratedNetworking.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_AcceleratedNetworking.json */ async function createPoolAcceleratedNetworking() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -698,20 +759,20 @@ async function createPoolAcceleratedNetworking() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-datacenter-smalldisk", - version: "latest" + version: "latest", }, - nodeAgentSkuId: "batch.node.windows amd64" - } + nodeAgentSkuId: "batch.node.windows amd64", + }, }, networkConfiguration: { enableAcceleratedNetworking: true, subnetId: - "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123" + "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123", }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }, }, - vmSize: "STANDARD_D1_V2" + vmSize: "STANDARD_D1_V2", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -719,7 +780,7 @@ async function createPoolAcceleratedNetworking() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -734,6 +795,7 @@ async function main() { createPoolPublicIPs(); createPoolResourceTags(); createPoolSecurityProfile(); + createPoolUpgradePolicy(); createPoolUserAssignedIdentities(); createPoolVirtualMachineConfigurationExtensions(); createPoolVirtualMachineConfigurationOSDisk(); diff --git a/sdk/batch/arm-batch/samples-dev/poolDeleteSample.ts b/sdk/batch/arm-batch/samples-dev/poolDeleteSample.ts index cf18ad258e9d..a9c912eb888f 100644 --- a/sdk/batch/arm-batch/samples-dev/poolDeleteSample.ts +++ b/sdk/batch/arm-batch/samples-dev/poolDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified pool. * * @summary Deletes the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDelete.json */ async function deletePool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function deletePool() { const result = await client.poolOperations.beginDeleteAndWait( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/poolDisableAutoScaleSample.ts b/sdk/batch/arm-batch/samples-dev/poolDisableAutoScaleSample.ts index c10f630a8671..92d1ba4f00de 100644 --- a/sdk/batch/arm-batch/samples-dev/poolDisableAutoScaleSample.ts +++ b/sdk/batch/arm-batch/samples-dev/poolDisableAutoScaleSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Disables automatic scaling for a pool. * * @summary Disables automatic scaling for a pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDisableAutoScale.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDisableAutoScale.json */ async function disableAutoScale() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function disableAutoScale() { const result = await client.poolOperations.disableAutoScale( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/poolGetSample.ts b/sdk/batch/arm-batch/samples-dev/poolGetSample.ts index eb208ab6a187..ee1c5fc0db34 100644 --- a/sdk/batch/arm-batch/samples-dev/poolGetSample.ts +++ b/sdk/batch/arm-batch/samples-dev/poolGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet.json */ async function getPool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function getPool() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -40,7 +40,7 @@ async function getPool() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_AcceleratedNetworking.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_AcceleratedNetworking.json */ async function getPoolAcceleratedNetworking() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -53,7 +53,7 @@ async function getPoolAcceleratedNetworking() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -62,7 +62,7 @@ async function getPoolAcceleratedNetworking() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_SecurityProfile.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_SecurityProfile.json */ async function getPoolSecurityProfile() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -75,7 +75,7 @@ async function getPoolSecurityProfile() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -84,7 +84,29 @@ async function getPoolSecurityProfile() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_UpgradePolicy.json + */ +async function getPoolUpgradePolicy() { + const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast"; + const accountName = "sampleacct"; + const poolName = "testpool"; + const credential = new DefaultAzureCredential(); + const client = new BatchManagementClient(credential, subscriptionId); + const result = await client.poolOperations.get( + resourceGroupName, + accountName, + poolName, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Gets information about the specified pool. + * + * @summary Gets information about the specified pool. + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json */ async function getPoolVirtualMachineConfigurationExtensions() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -97,7 +119,7 @@ async function getPoolVirtualMachineConfigurationExtensions() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -106,7 +128,7 @@ async function getPoolVirtualMachineConfigurationExtensions() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json */ async function getPoolVirtualMachineConfigurationOSDisk() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -119,7 +141,7 @@ async function getPoolVirtualMachineConfigurationOSDisk() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -128,7 +150,7 @@ async function getPoolVirtualMachineConfigurationOSDisk() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json */ async function getPoolVirtualMachineConfigurationServiceArtifactReference() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -141,7 +163,7 @@ async function getPoolVirtualMachineConfigurationServiceArtifactReference() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -150,6 +172,7 @@ async function main() { getPool(); getPoolAcceleratedNetworking(); getPoolSecurityProfile(); + getPoolUpgradePolicy(); getPoolVirtualMachineConfigurationExtensions(); getPoolVirtualMachineConfigurationOSDisk(); getPoolVirtualMachineConfigurationServiceArtifactReference(); diff --git a/sdk/batch/arm-batch/samples-dev/poolListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples-dev/poolListByBatchAccountSample.ts index 3e76c5e8f0cd..ddd4e180cc82 100644 --- a/sdk/batch/arm-batch/samples-dev/poolListByBatchAccountSample.ts +++ b/sdk/batch/arm-batch/samples-dev/poolListByBatchAccountSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { PoolListByBatchAccountOptionalParams, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the pools in the specified account. * * @summary Lists all of the pools in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolList.json */ async function listPool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function listPool() { const resArray = new Array(); for await (let item of client.poolOperations.listByBatchAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } @@ -44,7 +44,7 @@ async function listPool() { * This sample demonstrates how to Lists all of the pools in the specified account. * * @summary Lists all of the pools in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolListWithFilter.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolListWithFilter.json */ async function listPoolWithFilter() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -62,7 +62,7 @@ async function listPoolWithFilter() { for await (let item of client.poolOperations.listByBatchAccount( resourceGroupName, accountName, - options + options, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/poolStopResizeSample.ts b/sdk/batch/arm-batch/samples-dev/poolStopResizeSample.ts index 1f4dd79eeccb..7a33f48c738f 100644 --- a/sdk/batch/arm-batch/samples-dev/poolStopResizeSample.ts +++ b/sdk/batch/arm-batch/samples-dev/poolStopResizeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. * * @summary This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolStopResize.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolStopResize.json */ async function stopPoolResize() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function stopPoolResize() { const result = await client.poolOperations.stopResize( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/poolUpdateSample.ts b/sdk/batch/arm-batch/samples-dev/poolUpdateSample.ts index fa0397c7b525..bfe544cbcb18 100644 --- a/sdk/batch/arm-batch/samples-dev/poolUpdateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/poolUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_EnableAutoScale.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_EnableAutoScale.json */ async function updatePoolEnableAutoscale() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -27,7 +27,7 @@ async function updatePoolEnableAutoscale() { const accountName = "sampleacct"; const poolName = "testpool"; const parameters: Pool = { - scaleSettings: { autoScale: { formula: "$TargetDedicatedNodes=34" } } + scaleSettings: { autoScale: { formula: "$TargetDedicatedNodes=34" } }, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -35,7 +35,7 @@ async function updatePoolEnableAutoscale() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -44,7 +44,7 @@ async function updatePoolEnableAutoscale() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_OtherProperties.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_OtherProperties.json */ async function updatePoolOtherProperties() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -55,25 +55,22 @@ async function updatePoolOtherProperties() { const parameters: Pool = { applicationPackages: [ { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234" + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234", }, { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_5678", - version: "1.0" - } + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_5678", + version: "1.0", + }, ], certificates: [ { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567", + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567", storeLocation: "LocalMachine", - storeName: "MY" - } + storeName: "MY", + }, ], metadata: [{ name: "key1", value: "value1" }], - targetNodeCommunicationMode: "Simplified" + targetNodeCommunicationMode: "Simplified", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -81,7 +78,7 @@ async function updatePoolOtherProperties() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -90,7 +87,7 @@ async function updatePoolOtherProperties() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_RemoveStartTask.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_RemoveStartTask.json */ async function updatePoolRemoveStartTask() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -105,7 +102,7 @@ async function updatePoolRemoveStartTask() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -114,7 +111,7 @@ async function updatePoolRemoveStartTask() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_ResizePool.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_ResizePool.json */ async function updatePoolResizePool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -128,9 +125,9 @@ async function updatePoolResizePool() { nodeDeallocationOption: "TaskCompletion", resizeTimeout: "PT8M", targetDedicatedNodes: 5, - targetLowPriorityNodes: 0 - } - } + targetLowPriorityNodes: 0, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -138,7 +135,7 @@ async function updatePoolResizePool() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionDeleteSample.ts b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionDeleteSample.ts index d8e0c7ef64fe..f5562067e058 100644 --- a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionDeleteSample.ts +++ b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified private endpoint connection. * * @summary Deletes the specified private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionDelete.json */ async function privateEndpointConnectionDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,11 +29,12 @@ async function privateEndpointConnectionDelete() { "testprivateEndpointConnection5testprivateEndpointConnection5.24d6b4b5-e65c-4330-bbe9-3a290d62f8e0"; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); - const result = await client.privateEndpointConnectionOperations.beginDeleteAndWait( - resourceGroupName, - accountName, - privateEndpointConnectionName - ); + const result = + await client.privateEndpointConnectionOperations.beginDeleteAndWait( + resourceGroupName, + accountName, + privateEndpointConnectionName, + ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionGetSample.ts b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionGetSample.ts index b83b8adf4525..f21885b1e9dc 100644 --- a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionGetSample.ts +++ b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified private endpoint connection. * * @summary Gets information about the specified private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionGet.json */ async function getPrivateEndpointConnection() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -32,7 +32,7 @@ async function getPrivateEndpointConnection() { const result = await client.privateEndpointConnectionOperations.get( resourceGroupName, accountName, - privateEndpointConnectionName + privateEndpointConnectionName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionListByBatchAccountSample.ts index 488f066105a5..e93316acdb2d 100644 --- a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionListByBatchAccountSample.ts +++ b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionListByBatchAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the private endpoint connections in the specified account. * * @summary Lists all of the private endpoint connections in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionsList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionsList.json */ async function listPrivateEndpointConnections() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function listPrivateEndpointConnections() { const resArray = new Array(); for await (let item of client.privateEndpointConnectionOperations.listByBatchAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionUpdateSample.ts b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionUpdateSample.ts index dda28f162d82..055c113527c2 100644 --- a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionUpdateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { PrivateEndpointConnection, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the properties of an existing private endpoint connection. * * @summary Updates the properties of an existing private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionUpdate.json */ async function updatePrivateEndpointConnection() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,17 +33,18 @@ async function updatePrivateEndpointConnection() { const parameters: PrivateEndpointConnection = { privateLinkServiceConnectionState: { description: "Approved by xyz.abc@company.com", - status: "Approved" - } + status: "Approved", + }, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); - const result = await client.privateEndpointConnectionOperations.beginUpdateAndWait( - resourceGroupName, - accountName, - privateEndpointConnectionName, - parameters - ); + const result = + await client.privateEndpointConnectionOperations.beginUpdateAndWait( + resourceGroupName, + accountName, + privateEndpointConnectionName, + parameters, + ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/privateLinkResourceGetSample.ts b/sdk/batch/arm-batch/samples-dev/privateLinkResourceGetSample.ts index c00ae2cf0c01..08a2c9e9186f 100644 --- a/sdk/batch/arm-batch/samples-dev/privateLinkResourceGetSample.ts +++ b/sdk/batch/arm-batch/samples-dev/privateLinkResourceGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified private link resource. * * @summary Gets information about the specified private link resource. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourceGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourceGet.json */ async function getPrivateLinkResource() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function getPrivateLinkResource() { const result = await client.privateLinkResourceOperations.get( resourceGroupName, accountName, - privateLinkResourceName + privateLinkResourceName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/privateLinkResourceListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples-dev/privateLinkResourceListByBatchAccountSample.ts index bc3d78c558cc..285583c8a39a 100644 --- a/sdk/batch/arm-batch/samples-dev/privateLinkResourceListByBatchAccountSample.ts +++ b/sdk/batch/arm-batch/samples-dev/privateLinkResourceListByBatchAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the private link resources in the specified account. * * @summary Lists all of the private link resources in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourcesList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourcesList.json */ async function listPrivateLinkResource() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function listPrivateLinkResource() { const resArray = new Array(); for await (let item of client.privateLinkResourceOperations.listByBatchAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/javascript/README.md b/sdk/batch/arm-batch/samples/v9/javascript/README.md index 8c5de35a90b6..137d817992f9 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/README.md +++ b/sdk/batch/arm-batch/samples/v9/javascript/README.md @@ -4,52 +4,52 @@ These sample programs show how to use the JavaScript client libraries for in som | **File Name** | **Description** | | --------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [applicationCreateSample.js][applicationcreatesample] | Adds an application to the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationCreate.json | -| [applicationDeleteSample.js][applicationdeletesample] | Deletes an application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationDelete.json | -| [applicationGetSample.js][applicationgetsample] | Gets information about the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationGet.json | -| [applicationListSample.js][applicationlistsample] | Lists all of the applications in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationList.json | -| [applicationPackageActivateSample.js][applicationpackageactivatesample] | Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageActivate.json | -| [applicationPackageCreateSample.js][applicationpackagecreatesample] | Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageCreate.json | -| [applicationPackageDeleteSample.js][applicationpackagedeletesample] | Deletes an application package record and its associated binary file. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageDelete.json | -| [applicationPackageGetSample.js][applicationpackagegetsample] | Gets information about the specified application package. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageGet.json | -| [applicationPackageListSample.js][applicationpackagelistsample] | Lists all of the application packages in the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageList.json | -| [applicationUpdateSample.js][applicationupdatesample] | Updates settings for the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationUpdate.json | -| [batchAccountCreateSample.js][batchaccountcreatesample] | Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_BYOS.json | -| [batchAccountDeleteSample.js][batchaccountdeletesample] | Deletes the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountDelete.json | -| [batchAccountGetDetectorSample.js][batchaccountgetdetectorsample] | Gets information about the given detector for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorGet.json | -| [batchAccountGetKeysSample.js][batchaccountgetkeyssample] | This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGetKeys.json | -| [batchAccountGetSample.js][batchaccountgetsample] | Gets information about the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGet.json | -| [batchAccountListByResourceGroupSample.js][batchaccountlistbyresourcegroupsample] | Gets information about the Batch accounts associated with the specified resource group. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListByResourceGroup.json | -| [batchAccountListDetectorsSample.js][batchaccountlistdetectorssample] | Gets information about the detectors available for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorList.json | -| [batchAccountListOutboundNetworkDependenciesEndpointsSample.js][batchaccountlistoutboundnetworkdependenciesendpointssample] | Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json | -| [batchAccountListSample.js][batchaccountlistsample] | Gets information about the Batch accounts associated with the subscription. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountList.json | -| [batchAccountRegenerateKeySample.js][batchaccountregeneratekeysample] | This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountRegenerateKey.json | -| [batchAccountSynchronizeAutoStorageKeysSample.js][batchaccountsynchronizeautostoragekeyssample] | Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountSynchronizeAutoStorageKeys.json | -| [batchAccountUpdateSample.js][batchaccountupdatesample] | Updates the properties of an existing Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountUpdate.json | -| [certificateCancelDeletionSample.js][certificatecanceldeletionsample] | If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate. //@@TS-MAGIC-NEWLINE@@ Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCancelDeletion.json | -| [certificateCreateSample.js][certificatecreatesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Full.json | -| [certificateDeleteSample.js][certificatedeletesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateDelete.json | -| [certificateGetSample.js][certificategetsample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGet.json | -| [certificateListByBatchAccountSample.js][certificatelistbybatchaccountsample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateList.json | -| [certificateUpdateSample.js][certificateupdatesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateUpdate.json | -| [locationCheckNameAvailabilitySample.js][locationchecknameavailabilitysample] | Checks whether the Batch account name is available in the specified region. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_AlreadyExists.json | -| [locationGetQuotasSample.js][locationgetquotassample] | Gets the Batch service quotas for the specified subscription at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationGetQuotas.json | -| [locationListSupportedCloudServiceSkusSample.js][locationlistsupportedcloudserviceskussample] | Gets the list of Batch supported Cloud Service VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListCloudServiceSkus.json | -| [locationListSupportedVirtualMachineSkusSample.js][locationlistsupportedvirtualmachineskussample] | Gets the list of Batch supported Virtual Machine VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListVirtualMachineSkus.json | -| [operationsListSample.js][operationslistsample] | Lists available operations for the Microsoft.Batch provider x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/OperationsList.json | -| [poolCreateSample.js][poolcreatesample] | Creates a new pool inside the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SharedImageGallery.json | -| [poolDeleteSample.js][pooldeletesample] | Deletes the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDelete.json | -| [poolDisableAutoScaleSample.js][pooldisableautoscalesample] | Disables automatic scaling for a pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDisableAutoScale.json | -| [poolGetSample.js][poolgetsample] | Gets information about the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet.json | -| [poolListByBatchAccountSample.js][poollistbybatchaccountsample] | Lists all of the pools in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolList.json | -| [poolStopResizeSample.js][poolstopresizesample] | This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolStopResize.json | -| [poolUpdateSample.js][poolupdatesample] | Updates the properties of an existing pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_EnableAutoScale.json | -| [privateEndpointConnectionDeleteSample.js][privateendpointconnectiondeletesample] | Deletes the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionDelete.json | -| [privateEndpointConnectionGetSample.js][privateendpointconnectiongetsample] | Gets information about the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionGet.json | -| [privateEndpointConnectionListByBatchAccountSample.js][privateendpointconnectionlistbybatchaccountsample] | Lists all of the private endpoint connections in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionsList.json | -| [privateEndpointConnectionUpdateSample.js][privateendpointconnectionupdatesample] | Updates the properties of an existing private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionUpdate.json | -| [privateLinkResourceGetSample.js][privatelinkresourcegetsample] | Gets information about the specified private link resource. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourceGet.json | -| [privateLinkResourceListByBatchAccountSample.js][privatelinkresourcelistbybatchaccountsample] | Lists all of the private link resources in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourcesList.json | +| [applicationCreateSample.js][applicationcreatesample] | Adds an application to the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationCreate.json | +| [applicationDeleteSample.js][applicationdeletesample] | Deletes an application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationDelete.json | +| [applicationGetSample.js][applicationgetsample] | Gets information about the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationGet.json | +| [applicationListSample.js][applicationlistsample] | Lists all of the applications in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationList.json | +| [applicationPackageActivateSample.js][applicationpackageactivatesample] | Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageActivate.json | +| [applicationPackageCreateSample.js][applicationpackagecreatesample] | Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageCreate.json | +| [applicationPackageDeleteSample.js][applicationpackagedeletesample] | Deletes an application package record and its associated binary file. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageDelete.json | +| [applicationPackageGetSample.js][applicationpackagegetsample] | Gets information about the specified application package. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageGet.json | +| [applicationPackageListSample.js][applicationpackagelistsample] | Lists all of the application packages in the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageList.json | +| [applicationUpdateSample.js][applicationupdatesample] | Updates settings for the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationUpdate.json | +| [batchAccountCreateSample.js][batchaccountcreatesample] | Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_BYOS.json | +| [batchAccountDeleteSample.js][batchaccountdeletesample] | Deletes the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountDelete.json | +| [batchAccountGetDetectorSample.js][batchaccountgetdetectorsample] | Gets information about the given detector for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorGet.json | +| [batchAccountGetKeysSample.js][batchaccountgetkeyssample] | This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGetKeys.json | +| [batchAccountGetSample.js][batchaccountgetsample] | Gets information about the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json | +| [batchAccountListByResourceGroupSample.js][batchaccountlistbyresourcegroupsample] | Gets information about the Batch accounts associated with the specified resource group. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListByResourceGroup.json | +| [batchAccountListDetectorsSample.js][batchaccountlistdetectorssample] | Gets information about the detectors available for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorList.json | +| [batchAccountListOutboundNetworkDependenciesEndpointsSample.js][batchaccountlistoutboundnetworkdependenciesendpointssample] | Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json | +| [batchAccountListSample.js][batchaccountlistsample] | Gets information about the Batch accounts associated with the subscription. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountList.json | +| [batchAccountRegenerateKeySample.js][batchaccountregeneratekeysample] | This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountRegenerateKey.json | +| [batchAccountSynchronizeAutoStorageKeysSample.js][batchaccountsynchronizeautostoragekeyssample] | Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountSynchronizeAutoStorageKeys.json | +| [batchAccountUpdateSample.js][batchaccountupdatesample] | Updates the properties of an existing Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountUpdate.json | +| [certificateCancelDeletionSample.js][certificatecanceldeletionsample] | If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate. //@@TS-MAGIC-NEWLINE@@ Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCancelDeletion.json | +| [certificateCreateSample.js][certificatecreatesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Full.json | +| [certificateDeleteSample.js][certificatedeletesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateDelete.json | +| [certificateGetSample.js][certificategetsample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGet.json | +| [certificateListByBatchAccountSample.js][certificatelistbybatchaccountsample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateList.json | +| [certificateUpdateSample.js][certificateupdatesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateUpdate.json | +| [locationCheckNameAvailabilitySample.js][locationchecknameavailabilitysample] | Checks whether the Batch account name is available in the specified region. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_AlreadyExists.json | +| [locationGetQuotasSample.js][locationgetquotassample] | Gets the Batch service quotas for the specified subscription at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationGetQuotas.json | +| [locationListSupportedCloudServiceSkusSample.js][locationlistsupportedcloudserviceskussample] | Gets the list of Batch supported Cloud Service VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListCloudServiceSkus.json | +| [locationListSupportedVirtualMachineSkusSample.js][locationlistsupportedvirtualmachineskussample] | Gets the list of Batch supported Virtual Machine VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListVirtualMachineSkus.json | +| [operationsListSample.js][operationslistsample] | Lists available operations for the Microsoft.Batch provider x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/OperationsList.json | +| [poolCreateSample.js][poolcreatesample] | Creates a new pool inside the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SharedImageGallery.json | +| [poolDeleteSample.js][pooldeletesample] | Deletes the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDelete.json | +| [poolDisableAutoScaleSample.js][pooldisableautoscalesample] | Disables automatic scaling for a pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDisableAutoScale.json | +| [poolGetSample.js][poolgetsample] | Gets information about the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet.json | +| [poolListByBatchAccountSample.js][poollistbybatchaccountsample] | Lists all of the pools in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolList.json | +| [poolStopResizeSample.js][poolstopresizesample] | This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolStopResize.json | +| [poolUpdateSample.js][poolupdatesample] | Updates the properties of an existing pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_EnableAutoScale.json | +| [privateEndpointConnectionDeleteSample.js][privateendpointconnectiondeletesample] | Deletes the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionDelete.json | +| [privateEndpointConnectionGetSample.js][privateendpointconnectiongetsample] | Gets information about the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionGet.json | +| [privateEndpointConnectionListByBatchAccountSample.js][privateendpointconnectionlistbybatchaccountsample] | Lists all of the private endpoint connections in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionsList.json | +| [privateEndpointConnectionUpdateSample.js][privateendpointconnectionupdatesample] | Updates the properties of an existing private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionUpdate.json | +| [privateLinkResourceGetSample.js][privatelinkresourcegetsample] | Gets information about the specified private link resource. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourceGet.json | +| [privateLinkResourceListByBatchAccountSample.js][privatelinkresourcelistbybatchaccountsample] | Lists all of the private link resources in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourcesList.json | ## Prerequisites diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationCreateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationCreateSample.js index 5d7e48fdaead..b5db95add04f 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationCreateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Adds an application to the specified Batch account. * * @summary Adds an application to the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationCreate.json */ async function applicationCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationDeleteSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationDeleteSample.js index 2b34e0ad3e85..11a00a873c16 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationDeleteSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an application. * * @summary Deletes an application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationDelete.json */ async function applicationDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationGetSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationGetSample.js index 7f8a00940740..65fb660a9507 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationGetSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the specified application. * * @summary Gets information about the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationGet.json */ async function applicationGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationListSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationListSample.js index f5391d800a26..8b3692e173aa 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationListSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the applications in the specified account. * * @summary Lists all of the applications in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationList.json */ async function applicationList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageActivateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageActivateSample.js index 989022c9fe70..65d3a0272dc9 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageActivateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageActivateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks. * * @summary Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageActivate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageActivate.json */ async function applicationPackageActivate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageCreateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageCreateSample.js index 632c0ff65e15..b9510c2a3512 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageCreateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS. * * @summary Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageCreate.json */ async function applicationPackageCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageDeleteSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageDeleteSample.js index b170c47c4ce1..bf517ae12f0d 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageDeleteSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an application package record and its associated binary file. * * @summary Deletes an application package record and its associated binary file. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageDelete.json */ async function applicationPackageDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageGetSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageGetSample.js index f3390d539e96..b16875ec3bef 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageGetSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the specified application package. * * @summary Gets information about the specified application package. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageGet.json */ async function applicationPackageGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageListSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageListSample.js index d550e6632c4a..2356de10a2b0 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageListSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the application packages in the specified application. * * @summary Lists all of the application packages in the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageList.json */ async function applicationPackageList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationUpdateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationUpdateSample.js index 9ab51e9740d6..f202ea2b005a 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationUpdateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates settings for the specified application. * * @summary Updates settings for the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationUpdate.json */ async function applicationUpdate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountCreateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountCreateSample.js index 6b2c1564dac9..5bbc873f81d0 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountCreateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_BYOS.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_BYOS.json */ async function batchAccountCreateByos() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -48,7 +48,7 @@ async function batchAccountCreateByos() { * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_Default.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_Default.json */ async function batchAccountCreateDefault() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -75,7 +75,7 @@ async function batchAccountCreateDefault() { * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_SystemAssignedIdentity.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_SystemAssignedIdentity.json */ async function batchAccountCreateSystemAssignedIdentity() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -103,7 +103,7 @@ async function batchAccountCreateSystemAssignedIdentity() { * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_UserAssignedIdentity.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_UserAssignedIdentity.json */ async function batchAccountCreateUserAssignedIdentity() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -137,7 +137,7 @@ async function batchAccountCreateUserAssignedIdentity() { * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountCreate.json */ async function privateBatchAccountCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountDeleteSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountDeleteSample.js index 47133687dae2..69cb5dc6043b 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountDeleteSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified Batch account. * * @summary Deletes the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountDelete.json */ async function batchAccountDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetDetectorSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetDetectorSample.js index 3c3897978a23..976d9d6b5021 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetDetectorSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetDetectorSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the given detector for a given Batch account. * * @summary Gets information about the given detector for a given Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorGet.json */ async function getDetector() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetKeysSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetKeysSample.js index badbe550bcb9..061c3879df34 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetKeysSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetKeysSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail. * * @summary This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGetKeys.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGetKeys.json */ async function batchAccountGetKeys() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetSample.js index b0f614cc3dd8..ff0192b6d6de 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the specified Batch account. * * @summary Gets information about the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json */ async function batchAccountGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -32,7 +32,7 @@ async function batchAccountGet() { * This sample demonstrates how to Gets information about the specified Batch account. * * @summary Gets information about the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountGet.json */ async function privateBatchAccountGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListByResourceGroupSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListByResourceGroupSample.js index c50860efc125..509cacc1f91d 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListByResourceGroupSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the Batch accounts associated with the specified resource group. * * @summary Gets information about the Batch accounts associated with the specified resource group. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListByResourceGroup.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListByResourceGroup.json */ async function batchAccountListByResourceGroup() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListDetectorsSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListDetectorsSample.js index 0502a931c1a9..db3bb8037671 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListDetectorsSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListDetectorsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the detectors available for a given Batch account. * * @summary Gets information about the detectors available for a given Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorList.json */ async function listDetectors() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListOutboundNetworkDependenciesEndpointsSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListOutboundNetworkDependenciesEndpointsSample.js index 739cda1b20df..95bb8e3b20f4 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListOutboundNetworkDependenciesEndpointsSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListOutboundNetworkDependenciesEndpointsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network. * * @summary Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json */ async function listOutboundNetworkDependencies() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListSample.js index 41eadc16027f..0473ec85a61c 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the Batch accounts associated with the subscription. * * @summary Gets information about the Batch accounts associated with the subscription. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountList.json */ async function batchAccountList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountRegenerateKeySample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountRegenerateKeySample.js index b0b6a0e12df2..361e8f289826 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountRegenerateKeySample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountRegenerateKeySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail. * * @summary This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountRegenerateKey.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountRegenerateKey.json */ async function batchAccountRegenerateKey() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountSynchronizeAutoStorageKeysSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountSynchronizeAutoStorageKeysSample.js index dd4ff709e919..4a6d6ea96239 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountSynchronizeAutoStorageKeysSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountSynchronizeAutoStorageKeysSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. * * @summary Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountSynchronizeAutoStorageKeys.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountSynchronizeAutoStorageKeys.json */ async function batchAccountSynchronizeAutoStorageKeys() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountUpdateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountUpdateSample.js index 04e1fd2719a2..cb991341426f 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountUpdateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the properties of an existing Batch account. * * @summary Updates the properties of an existing Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountUpdate.json */ async function batchAccountUpdate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/certificateCancelDeletionSample.js b/sdk/batch/arm-batch/samples/v9/javascript/certificateCancelDeletionSample.js index 43298a033cc1..37eb9de32ab3 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/certificateCancelDeletionSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/certificateCancelDeletionSample.js @@ -20,7 +20,7 @@ Warning: This operation is deprecated and will be removed after February, 2024. * @summary If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate. Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCancelDeletion.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCancelDeletion.json */ async function certificateCancelDeletion() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/certificateCreateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/certificateCreateSample.js index e74f3408820c..ce5cb1a1907e 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/certificateCreateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/certificateCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Full.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Full.json */ async function createCertificateFull() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -45,7 +45,7 @@ async function createCertificateFull() { * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_MinimalCer.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_MinimalCer.json */ async function createCertificateMinimalCer() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -71,7 +71,7 @@ async function createCertificateMinimalCer() { * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Minimal.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Minimal.json */ async function createCertificateMinimalPfx() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/certificateDeleteSample.js b/sdk/batch/arm-batch/samples/v9/javascript/certificateDeleteSample.js index 5c679939dabb..40785b67927b 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/certificateDeleteSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/certificateDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateDelete.json */ async function certificateDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/certificateGetSample.js b/sdk/batch/arm-batch/samples/v9/javascript/certificateGetSample.js index dad8d8da3261..e4c5e4fae699 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/certificateGetSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/certificateGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGet.json */ async function getCertificate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -37,7 +37,7 @@ async function getCertificate() { * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGetWithDeletionError.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGetWithDeletionError.json */ async function getCertificateWithDeletionError() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/certificateListByBatchAccountSample.js b/sdk/batch/arm-batch/samples/v9/javascript/certificateListByBatchAccountSample.js index 2314eb903a7f..e2913b045ff7 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/certificateListByBatchAccountSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/certificateListByBatchAccountSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateList.json */ async function listCertificates() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -38,7 +38,7 @@ async function listCertificates() { * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateListWithFilter.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateListWithFilter.json */ async function listCertificatesFilterAndSelect() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/certificateUpdateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/certificateUpdateSample.js index 2c1386684443..ee646a8b1da4 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/certificateUpdateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/certificateUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateUpdate.json */ async function updateCertificate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/locationCheckNameAvailabilitySample.js b/sdk/batch/arm-batch/samples/v9/javascript/locationCheckNameAvailabilitySample.js index 7b527ba50814..d8407fa395c5 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/locationCheckNameAvailabilitySample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/locationCheckNameAvailabilitySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Checks whether the Batch account name is available in the specified region. * * @summary Checks whether the Batch account name is available in the specified region. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_AlreadyExists.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_AlreadyExists.json */ async function locationCheckNameAvailabilityAlreadyExists() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -35,7 +35,7 @@ async function locationCheckNameAvailabilityAlreadyExists() { * This sample demonstrates how to Checks whether the Batch account name is available in the specified region. * * @summary Checks whether the Batch account name is available in the specified region. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_Available.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_Available.json */ async function locationCheckNameAvailabilityAvailable() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/locationGetQuotasSample.js b/sdk/batch/arm-batch/samples/v9/javascript/locationGetQuotasSample.js index 0012cec10aee..a4f4f4fa4663 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/locationGetQuotasSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/locationGetQuotasSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the Batch service quotas for the specified subscription at the given location. * * @summary Gets the Batch service quotas for the specified subscription at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationGetQuotas.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationGetQuotas.json */ async function locationGetQuotas() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedCloudServiceSkusSample.js b/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedCloudServiceSkusSample.js index ab7ef144f835..97f01ae414c9 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedCloudServiceSkusSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedCloudServiceSkusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the list of Batch supported Cloud Service VM sizes available at the given location. * * @summary Gets the list of Batch supported Cloud Service VM sizes available at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListCloudServiceSkus.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListCloudServiceSkus.json */ async function locationListCloudServiceSkus() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedVirtualMachineSkusSample.js b/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedVirtualMachineSkusSample.js index 4ef7cb1fd31a..92fb29c6a8b8 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedVirtualMachineSkusSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedVirtualMachineSkusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the list of Batch supported Virtual Machine VM sizes available at the given location. * * @summary Gets the list of Batch supported Virtual Machine VM sizes available at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListVirtualMachineSkus.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListVirtualMachineSkus.json */ async function locationListVirtualMachineSkus() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/operationsListSample.js b/sdk/batch/arm-batch/samples/v9/javascript/operationsListSample.js index 9339ba527f8d..65713f385abd 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/operationsListSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/operationsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists available operations for the Microsoft.Batch provider * * @summary Lists available operations for the Microsoft.Batch provider - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/OperationsList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/OperationsList.json */ async function operationsList() { const subscriptionId = diff --git a/sdk/batch/arm-batch/samples/v9/javascript/poolCreateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/poolCreateSample.js index 72a9262ea624..828bf091d16d 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/poolCreateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/poolCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SharedImageGallery.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SharedImageGallery.json */ async function createPoolCustomImage() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -49,7 +49,7 @@ async function createPoolCustomImage() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_CloudServiceConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_CloudServiceConfiguration.json */ async function createPoolFullCloudServiceConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -148,7 +148,7 @@ async function createPoolFullCloudServiceConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration.json */ async function createPoolFullVirtualMachineConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -236,7 +236,7 @@ async function createPoolFullVirtualMachineConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json */ async function createPoolMinimalCloudServiceConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -263,7 +263,7 @@ async function createPoolMinimalCloudServiceConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json */ async function createPoolMinimalVirtualMachineConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -305,7 +305,7 @@ async function createPoolMinimalVirtualMachineConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_NoPublicIPAddresses.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_NoPublicIPAddresses.json */ async function createPoolNoPublicIP() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -343,7 +343,7 @@ async function createPoolNoPublicIP() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_PublicIPs.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_PublicIPs.json */ async function createPoolPublicIPs() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -386,7 +386,7 @@ async function createPoolPublicIPs() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_ResourceTags.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_ResourceTags.json */ async function createPoolResourceTags() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -426,7 +426,7 @@ async function createPoolResourceTags() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SecurityProfile.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SecurityProfile.json */ async function createPoolSecurityProfile() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -470,7 +470,66 @@ async function createPoolSecurityProfile() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_UserAssignedIdentities.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UpgradePolicy.json + */ +async function createPoolUpgradePolicy() { + const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast"; + const accountName = "sampleacct"; + const poolName = "testpool"; + const parameters = { + deploymentConfiguration: { + virtualMachineConfiguration: { + imageReference: { + offer: "WindowsServer", + publisher: "MicrosoftWindowsServer", + sku: "2019-datacenter-smalldisk", + version: "latest", + }, + nodeAgentSkuId: "batch.node.windows amd64", + nodePlacementConfiguration: { policy: "Zonal" }, + windowsConfiguration: { enableAutomaticUpdates: false }, + }, + }, + scaleSettings: { + fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 }, + }, + upgradePolicy: { + automaticOSUpgradePolicy: { + disableAutomaticRollback: true, + enableAutomaticOSUpgrade: true, + osRollingUpgradeDeferral: true, + useRollingUpgradePolicy: true, + }, + mode: "automatic", + rollingUpgradePolicy: { + enableCrossZoneUpgrade: true, + maxBatchInstancePercent: 20, + maxUnhealthyInstancePercent: 20, + maxUnhealthyUpgradedInstancePercent: 20, + pauseTimeBetweenBatches: "PT0S", + prioritizeUnhealthyInstances: false, + rollbackFailedInstancesOnPolicyBreach: false, + }, + }, + vmSize: "Standard_d4s_v3", + }; + const credential = new DefaultAzureCredential(); + const client = new BatchManagementClient(credential, subscriptionId); + const result = await client.poolOperations.create( + resourceGroupName, + accountName, + poolName, + parameters, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates a new pool inside the specified account. + * + * @summary Creates a new pool inside the specified account. + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UserAssignedIdentities.json */ async function createPoolUserAssignedIdentities() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -521,7 +580,7 @@ async function createPoolUserAssignedIdentities() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json */ async function createPoolVirtualMachineConfigurationExtensions() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -577,7 +636,7 @@ async function createPoolVirtualMachineConfigurationExtensions() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json */ async function createPoolVirtualMachineConfigurationOSDisk() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -621,7 +680,7 @@ async function createPoolVirtualMachineConfigurationOSDisk() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json */ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -647,6 +706,10 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { scaleSettings: { fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 }, }, + upgradePolicy: { + automaticOSUpgradePolicy: { enableAutomaticOSUpgrade: true }, + mode: "automatic", + }, vmSize: "Standard_d4s_v3", }; const credential = new DefaultAzureCredential(); @@ -664,7 +727,7 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_AcceleratedNetworking.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_AcceleratedNetworking.json */ async function createPoolAcceleratedNetworking() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -714,6 +777,7 @@ async function main() { createPoolPublicIPs(); createPoolResourceTags(); createPoolSecurityProfile(); + createPoolUpgradePolicy(); createPoolUserAssignedIdentities(); createPoolVirtualMachineConfigurationExtensions(); createPoolVirtualMachineConfigurationOSDisk(); diff --git a/sdk/batch/arm-batch/samples/v9/javascript/poolDeleteSample.js b/sdk/batch/arm-batch/samples/v9/javascript/poolDeleteSample.js index 37c52a862a47..71f2e688210d 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/poolDeleteSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/poolDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified pool. * * @summary Deletes the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDelete.json */ async function deletePool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/poolDisableAutoScaleSample.js b/sdk/batch/arm-batch/samples/v9/javascript/poolDisableAutoScaleSample.js index 5b477e10a804..f0105d8e1ab1 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/poolDisableAutoScaleSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/poolDisableAutoScaleSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Disables automatic scaling for a pool. * * @summary Disables automatic scaling for a pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDisableAutoScale.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDisableAutoScale.json */ async function disableAutoScale() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/poolGetSample.js b/sdk/batch/arm-batch/samples/v9/javascript/poolGetSample.js index 164fc18f2c9d..c7b8498614de 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/poolGetSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/poolGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet.json */ async function getPool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function getPool() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_AcceleratedNetworking.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_AcceleratedNetworking.json */ async function getPoolAcceleratedNetworking() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -50,7 +50,7 @@ async function getPoolAcceleratedNetworking() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_SecurityProfile.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_SecurityProfile.json */ async function getPoolSecurityProfile() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -67,7 +67,24 @@ async function getPoolSecurityProfile() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_UpgradePolicy.json + */ +async function getPoolUpgradePolicy() { + const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast"; + const accountName = "sampleacct"; + const poolName = "testpool"; + const credential = new DefaultAzureCredential(); + const client = new BatchManagementClient(credential, subscriptionId); + const result = await client.poolOperations.get(resourceGroupName, accountName, poolName); + console.log(result); +} + +/** + * This sample demonstrates how to Gets information about the specified pool. + * + * @summary Gets information about the specified pool. + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json */ async function getPoolVirtualMachineConfigurationExtensions() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -84,7 +101,7 @@ async function getPoolVirtualMachineConfigurationExtensions() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json */ async function getPoolVirtualMachineConfigurationOSDisk() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -101,7 +118,7 @@ async function getPoolVirtualMachineConfigurationOSDisk() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json */ async function getPoolVirtualMachineConfigurationServiceArtifactReference() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -118,6 +135,7 @@ async function main() { getPool(); getPoolAcceleratedNetworking(); getPoolSecurityProfile(); + getPoolUpgradePolicy(); getPoolVirtualMachineConfigurationExtensions(); getPoolVirtualMachineConfigurationOSDisk(); getPoolVirtualMachineConfigurationServiceArtifactReference(); diff --git a/sdk/batch/arm-batch/samples/v9/javascript/poolListByBatchAccountSample.js b/sdk/batch/arm-batch/samples/v9/javascript/poolListByBatchAccountSample.js index 6d3d037aba31..eb48717bacb2 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/poolListByBatchAccountSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/poolListByBatchAccountSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the pools in the specified account. * * @summary Lists all of the pools in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolList.json */ async function listPool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -35,7 +35,7 @@ async function listPool() { * This sample demonstrates how to Lists all of the pools in the specified account. * * @summary Lists all of the pools in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolListWithFilter.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolListWithFilter.json */ async function listPoolWithFilter() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/poolStopResizeSample.js b/sdk/batch/arm-batch/samples/v9/javascript/poolStopResizeSample.js index b5e1916f1df0..e3732c3eab73 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/poolStopResizeSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/poolStopResizeSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. * * @summary This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolStopResize.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolStopResize.json */ async function stopPoolResize() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/poolUpdateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/poolUpdateSample.js index 2161023bba69..d04e9ab8362e 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/poolUpdateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/poolUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_EnableAutoScale.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_EnableAutoScale.json */ async function updatePoolEnableAutoscale() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -41,7 +41,7 @@ async function updatePoolEnableAutoscale() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_OtherProperties.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_OtherProperties.json */ async function updatePoolOtherProperties() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -83,7 +83,7 @@ async function updatePoolOtherProperties() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_RemoveStartTask.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_RemoveStartTask.json */ async function updatePoolRemoveStartTask() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -106,7 +106,7 @@ async function updatePoolRemoveStartTask() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_ResizePool.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_ResizePool.json */ async function updatePoolResizePool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionDeleteSample.js b/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionDeleteSample.js index 60e91d3576ab..b221b30620b6 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionDeleteSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified private endpoint connection. * * @summary Deletes the specified private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionDelete.json */ async function privateEndpointConnectionDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionGetSample.js b/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionGetSample.js index 406f8d3dc204..b63c99408b24 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionGetSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the specified private endpoint connection. * * @summary Gets information about the specified private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionGet.json */ async function getPrivateEndpointConnection() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionListByBatchAccountSample.js b/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionListByBatchAccountSample.js index c5693239b272..3727fb556fac 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionListByBatchAccountSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionListByBatchAccountSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the private endpoint connections in the specified account. * * @summary Lists all of the private endpoint connections in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionsList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionsList.json */ async function listPrivateEndpointConnections() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionUpdateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionUpdateSample.js index f88d0adc737d..f67960055542 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionUpdateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the properties of an existing private endpoint connection. * * @summary Updates the properties of an existing private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionUpdate.json */ async function updatePrivateEndpointConnection() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceGetSample.js b/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceGetSample.js index f4066398a2c6..9fd4a3eae66b 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceGetSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the specified private link resource. * * @summary Gets information about the specified private link resource. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourceGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourceGet.json */ async function getPrivateLinkResource() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceListByBatchAccountSample.js b/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceListByBatchAccountSample.js index d1af6bce38e1..ac05db0b9641 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceListByBatchAccountSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceListByBatchAccountSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the private link resources in the specified account. * * @summary Lists all of the private link resources in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourcesList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourcesList.json */ async function listPrivateLinkResource() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/typescript/README.md b/sdk/batch/arm-batch/samples/v9/typescript/README.md index 03256f187939..739c846dfee7 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/README.md +++ b/sdk/batch/arm-batch/samples/v9/typescript/README.md @@ -4,52 +4,52 @@ These sample programs show how to use the TypeScript client libraries for in som | **File Name** | **Description** | | --------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [applicationCreateSample.ts][applicationcreatesample] | Adds an application to the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationCreate.json | -| [applicationDeleteSample.ts][applicationdeletesample] | Deletes an application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationDelete.json | -| [applicationGetSample.ts][applicationgetsample] | Gets information about the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationGet.json | -| [applicationListSample.ts][applicationlistsample] | Lists all of the applications in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationList.json | -| [applicationPackageActivateSample.ts][applicationpackageactivatesample] | Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageActivate.json | -| [applicationPackageCreateSample.ts][applicationpackagecreatesample] | Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageCreate.json | -| [applicationPackageDeleteSample.ts][applicationpackagedeletesample] | Deletes an application package record and its associated binary file. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageDelete.json | -| [applicationPackageGetSample.ts][applicationpackagegetsample] | Gets information about the specified application package. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageGet.json | -| [applicationPackageListSample.ts][applicationpackagelistsample] | Lists all of the application packages in the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageList.json | -| [applicationUpdateSample.ts][applicationupdatesample] | Updates settings for the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationUpdate.json | -| [batchAccountCreateSample.ts][batchaccountcreatesample] | Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_BYOS.json | -| [batchAccountDeleteSample.ts][batchaccountdeletesample] | Deletes the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountDelete.json | -| [batchAccountGetDetectorSample.ts][batchaccountgetdetectorsample] | Gets information about the given detector for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorGet.json | -| [batchAccountGetKeysSample.ts][batchaccountgetkeyssample] | This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGetKeys.json | -| [batchAccountGetSample.ts][batchaccountgetsample] | Gets information about the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGet.json | -| [batchAccountListByResourceGroupSample.ts][batchaccountlistbyresourcegroupsample] | Gets information about the Batch accounts associated with the specified resource group. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListByResourceGroup.json | -| [batchAccountListDetectorsSample.ts][batchaccountlistdetectorssample] | Gets information about the detectors available for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorList.json | -| [batchAccountListOutboundNetworkDependenciesEndpointsSample.ts][batchaccountlistoutboundnetworkdependenciesendpointssample] | Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json | -| [batchAccountListSample.ts][batchaccountlistsample] | Gets information about the Batch accounts associated with the subscription. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountList.json | -| [batchAccountRegenerateKeySample.ts][batchaccountregeneratekeysample] | This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountRegenerateKey.json | -| [batchAccountSynchronizeAutoStorageKeysSample.ts][batchaccountsynchronizeautostoragekeyssample] | Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountSynchronizeAutoStorageKeys.json | -| [batchAccountUpdateSample.ts][batchaccountupdatesample] | Updates the properties of an existing Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountUpdate.json | -| [certificateCancelDeletionSample.ts][certificatecanceldeletionsample] | If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate. //@@TS-MAGIC-NEWLINE@@ Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCancelDeletion.json | -| [certificateCreateSample.ts][certificatecreatesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Full.json | -| [certificateDeleteSample.ts][certificatedeletesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateDelete.json | -| [certificateGetSample.ts][certificategetsample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGet.json | -| [certificateListByBatchAccountSample.ts][certificatelistbybatchaccountsample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateList.json | -| [certificateUpdateSample.ts][certificateupdatesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateUpdate.json | -| [locationCheckNameAvailabilitySample.ts][locationchecknameavailabilitysample] | Checks whether the Batch account name is available in the specified region. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_AlreadyExists.json | -| [locationGetQuotasSample.ts][locationgetquotassample] | Gets the Batch service quotas for the specified subscription at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationGetQuotas.json | -| [locationListSupportedCloudServiceSkusSample.ts][locationlistsupportedcloudserviceskussample] | Gets the list of Batch supported Cloud Service VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListCloudServiceSkus.json | -| [locationListSupportedVirtualMachineSkusSample.ts][locationlistsupportedvirtualmachineskussample] | Gets the list of Batch supported Virtual Machine VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListVirtualMachineSkus.json | -| [operationsListSample.ts][operationslistsample] | Lists available operations for the Microsoft.Batch provider x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/OperationsList.json | -| [poolCreateSample.ts][poolcreatesample] | Creates a new pool inside the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SharedImageGallery.json | -| [poolDeleteSample.ts][pooldeletesample] | Deletes the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDelete.json | -| [poolDisableAutoScaleSample.ts][pooldisableautoscalesample] | Disables automatic scaling for a pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDisableAutoScale.json | -| [poolGetSample.ts][poolgetsample] | Gets information about the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet.json | -| [poolListByBatchAccountSample.ts][poollistbybatchaccountsample] | Lists all of the pools in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolList.json | -| [poolStopResizeSample.ts][poolstopresizesample] | This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolStopResize.json | -| [poolUpdateSample.ts][poolupdatesample] | Updates the properties of an existing pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_EnableAutoScale.json | -| [privateEndpointConnectionDeleteSample.ts][privateendpointconnectiondeletesample] | Deletes the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionDelete.json | -| [privateEndpointConnectionGetSample.ts][privateendpointconnectiongetsample] | Gets information about the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionGet.json | -| [privateEndpointConnectionListByBatchAccountSample.ts][privateendpointconnectionlistbybatchaccountsample] | Lists all of the private endpoint connections in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionsList.json | -| [privateEndpointConnectionUpdateSample.ts][privateendpointconnectionupdatesample] | Updates the properties of an existing private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionUpdate.json | -| [privateLinkResourceGetSample.ts][privatelinkresourcegetsample] | Gets information about the specified private link resource. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourceGet.json | -| [privateLinkResourceListByBatchAccountSample.ts][privatelinkresourcelistbybatchaccountsample] | Lists all of the private link resources in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourcesList.json | +| [applicationCreateSample.ts][applicationcreatesample] | Adds an application to the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationCreate.json | +| [applicationDeleteSample.ts][applicationdeletesample] | Deletes an application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationDelete.json | +| [applicationGetSample.ts][applicationgetsample] | Gets information about the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationGet.json | +| [applicationListSample.ts][applicationlistsample] | Lists all of the applications in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationList.json | +| [applicationPackageActivateSample.ts][applicationpackageactivatesample] | Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageActivate.json | +| [applicationPackageCreateSample.ts][applicationpackagecreatesample] | Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageCreate.json | +| [applicationPackageDeleteSample.ts][applicationpackagedeletesample] | Deletes an application package record and its associated binary file. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageDelete.json | +| [applicationPackageGetSample.ts][applicationpackagegetsample] | Gets information about the specified application package. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageGet.json | +| [applicationPackageListSample.ts][applicationpackagelistsample] | Lists all of the application packages in the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageList.json | +| [applicationUpdateSample.ts][applicationupdatesample] | Updates settings for the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationUpdate.json | +| [batchAccountCreateSample.ts][batchaccountcreatesample] | Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_BYOS.json | +| [batchAccountDeleteSample.ts][batchaccountdeletesample] | Deletes the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountDelete.json | +| [batchAccountGetDetectorSample.ts][batchaccountgetdetectorsample] | Gets information about the given detector for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorGet.json | +| [batchAccountGetKeysSample.ts][batchaccountgetkeyssample] | This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGetKeys.json | +| [batchAccountGetSample.ts][batchaccountgetsample] | Gets information about the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json | +| [batchAccountListByResourceGroupSample.ts][batchaccountlistbyresourcegroupsample] | Gets information about the Batch accounts associated with the specified resource group. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListByResourceGroup.json | +| [batchAccountListDetectorsSample.ts][batchaccountlistdetectorssample] | Gets information about the detectors available for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorList.json | +| [batchAccountListOutboundNetworkDependenciesEndpointsSample.ts][batchaccountlistoutboundnetworkdependenciesendpointssample] | Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json | +| [batchAccountListSample.ts][batchaccountlistsample] | Gets information about the Batch accounts associated with the subscription. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountList.json | +| [batchAccountRegenerateKeySample.ts][batchaccountregeneratekeysample] | This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountRegenerateKey.json | +| [batchAccountSynchronizeAutoStorageKeysSample.ts][batchaccountsynchronizeautostoragekeyssample] | Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountSynchronizeAutoStorageKeys.json | +| [batchAccountUpdateSample.ts][batchaccountupdatesample] | Updates the properties of an existing Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountUpdate.json | +| [certificateCancelDeletionSample.ts][certificatecanceldeletionsample] | If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate. //@@TS-MAGIC-NEWLINE@@ Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCancelDeletion.json | +| [certificateCreateSample.ts][certificatecreatesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Full.json | +| [certificateDeleteSample.ts][certificatedeletesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateDelete.json | +| [certificateGetSample.ts][certificategetsample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGet.json | +| [certificateListByBatchAccountSample.ts][certificatelistbybatchaccountsample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateList.json | +| [certificateUpdateSample.ts][certificateupdatesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateUpdate.json | +| [locationCheckNameAvailabilitySample.ts][locationchecknameavailabilitysample] | Checks whether the Batch account name is available in the specified region. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_AlreadyExists.json | +| [locationGetQuotasSample.ts][locationgetquotassample] | Gets the Batch service quotas for the specified subscription at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationGetQuotas.json | +| [locationListSupportedCloudServiceSkusSample.ts][locationlistsupportedcloudserviceskussample] | Gets the list of Batch supported Cloud Service VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListCloudServiceSkus.json | +| [locationListSupportedVirtualMachineSkusSample.ts][locationlistsupportedvirtualmachineskussample] | Gets the list of Batch supported Virtual Machine VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListVirtualMachineSkus.json | +| [operationsListSample.ts][operationslistsample] | Lists available operations for the Microsoft.Batch provider x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/OperationsList.json | +| [poolCreateSample.ts][poolcreatesample] | Creates a new pool inside the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SharedImageGallery.json | +| [poolDeleteSample.ts][pooldeletesample] | Deletes the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDelete.json | +| [poolDisableAutoScaleSample.ts][pooldisableautoscalesample] | Disables automatic scaling for a pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDisableAutoScale.json | +| [poolGetSample.ts][poolgetsample] | Gets information about the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet.json | +| [poolListByBatchAccountSample.ts][poollistbybatchaccountsample] | Lists all of the pools in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolList.json | +| [poolStopResizeSample.ts][poolstopresizesample] | This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolStopResize.json | +| [poolUpdateSample.ts][poolupdatesample] | Updates the properties of an existing pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_EnableAutoScale.json | +| [privateEndpointConnectionDeleteSample.ts][privateendpointconnectiondeletesample] | Deletes the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionDelete.json | +| [privateEndpointConnectionGetSample.ts][privateendpointconnectiongetsample] | Gets information about the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionGet.json | +| [privateEndpointConnectionListByBatchAccountSample.ts][privateendpointconnectionlistbybatchaccountsample] | Lists all of the private endpoint connections in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionsList.json | +| [privateEndpointConnectionUpdateSample.ts][privateendpointconnectionupdatesample] | Updates the properties of an existing private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionUpdate.json | +| [privateLinkResourceGetSample.ts][privatelinkresourcegetsample] | Gets information about the specified private link resource. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourceGet.json | +| [privateLinkResourceListByBatchAccountSample.ts][privatelinkresourcelistbybatchaccountsample] | Lists all of the private link resources in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourcesList.json | ## Prerequisites diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationCreateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationCreateSample.ts index 64c4c2f1f6ff..a8dbd7489cc8 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationCreateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationCreateSample.ts @@ -11,7 +11,7 @@ import { Application, ApplicationCreateOptionalParams, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Adds an application to the specified Batch account. * * @summary Adds an application to the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationCreate.json */ async function applicationCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -32,7 +32,7 @@ async function applicationCreate() { const applicationName = "app1"; const parameters: Application = { allowUpdates: false, - displayName: "myAppName" + displayName: "myAppName", }; const options: ApplicationCreateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -41,7 +41,7 @@ async function applicationCreate() { resourceGroupName, accountName, applicationName, - options + options, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationDeleteSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationDeleteSample.ts index 78302373bbf7..cc654adc53ca 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationDeleteSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an application. * * @summary Deletes an application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationDelete.json */ async function applicationDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function applicationDelete() { const result = await client.applicationOperations.delete( resourceGroupName, accountName, - applicationName + applicationName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationGetSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationGetSample.ts index 37ba964c881e..5c8040343af6 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationGetSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified application. * * @summary Gets information about the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationGet.json */ async function applicationGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function applicationGet() { const result = await client.applicationOperations.get( resourceGroupName, accountName, - applicationName + applicationName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationListSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationListSample.ts index 0b9fbf8a43ae..7bc002d6e44c 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationListSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the applications in the specified account. * * @summary Lists all of the applications in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationList.json */ async function applicationList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function applicationList() { const resArray = new Array(); for await (let item of client.applicationOperations.list( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageActivateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageActivateSample.ts index fdff2415ef76..300527a53c43 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageActivateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageActivateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ActivateApplicationPackageParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks. * * @summary Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageActivate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageActivate.json */ async function applicationPackageActivate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -38,7 +38,7 @@ async function applicationPackageActivate() { accountName, applicationName, versionName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageCreateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageCreateSample.ts index f05044dc1f76..24947565f7ee 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageCreateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS. * * @summary Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageCreate.json */ async function applicationPackageCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function applicationPackageCreate() { resourceGroupName, accountName, applicationName, - versionName + versionName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageDeleteSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageDeleteSample.ts index a60eed70c9d5..5dfb9a724185 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageDeleteSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an application package record and its associated binary file. * * @summary Deletes an application package record and its associated binary file. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageDelete.json */ async function applicationPackageDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function applicationPackageDelete() { resourceGroupName, accountName, applicationName, - versionName + versionName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageGetSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageGetSample.ts index 3728f051deb6..ae9deebd6509 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageGetSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified application package. * * @summary Gets information about the specified application package. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageGet.json */ async function applicationPackageGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function applicationPackageGet() { resourceGroupName, accountName, applicationName, - versionName + versionName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageListSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageListSample.ts index 1f9f2731ec96..d2ec0a3b8aad 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageListSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the application packages in the specified application. * * @summary Lists all of the application packages in the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageList.json */ async function applicationPackageList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -32,7 +32,7 @@ async function applicationPackageList() { for await (let item of client.applicationPackageOperations.list( resourceGroupName, accountName, - applicationName + applicationName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationUpdateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationUpdateSample.ts index 6c012f8e5b44..7a2ab45754e2 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationUpdateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Updates settings for the specified application. * * @summary Updates settings for the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationUpdate.json */ async function applicationUpdate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function applicationUpdate() { const parameters: Application = { allowUpdates: true, defaultVersion: "2", - displayName: "myAppName" + displayName: "myAppName", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -37,7 +37,7 @@ async function applicationUpdate() { resourceGroupName, accountName, applicationName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountCreateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountCreateSample.ts index c114b1b2edd3..b18c9a9b33f8 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountCreateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { BatchAccountCreateParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_BYOS.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_BYOS.json */ async function batchAccountCreateByos() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,22 +31,21 @@ async function batchAccountCreateByos() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, keyVaultReference: { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", - url: "http://sample.vault.azure.net/" + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", + url: "http://sample.vault.azure.net/", }, location: "japaneast", - poolAllocationMode: "UserSubscription" + poolAllocationMode: "UserSubscription", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } @@ -55,7 +54,7 @@ async function batchAccountCreateByos() { * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_Default.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_Default.json */ async function batchAccountCreateDefault() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -65,16 +64,16 @@ async function batchAccountCreateDefault() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, - location: "japaneast" + location: "japaneast", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } @@ -83,7 +82,7 @@ async function batchAccountCreateDefault() { * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_SystemAssignedIdentity.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_SystemAssignedIdentity.json */ async function batchAccountCreateSystemAssignedIdentity() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -93,17 +92,17 @@ async function batchAccountCreateSystemAssignedIdentity() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, identity: { type: "SystemAssigned" }, - location: "japaneast" + location: "japaneast", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } @@ -112,7 +111,7 @@ async function batchAccountCreateSystemAssignedIdentity() { * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_UserAssignedIdentity.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_UserAssignedIdentity.json */ async function batchAccountCreateUserAssignedIdentity() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -122,22 +121,23 @@ async function batchAccountCreateUserAssignedIdentity() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, identity: { type: "UserAssigned", userAssignedIdentities: { - "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {} - } + "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": + {}, + }, }, - location: "japaneast" + location: "japaneast", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } @@ -146,7 +146,7 @@ async function batchAccountCreateUserAssignedIdentity() { * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountCreate.json */ async function privateBatchAccountCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -156,22 +156,21 @@ async function privateBatchAccountCreate() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, keyVaultReference: { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", - url: "http://sample.vault.azure.net/" + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", + url: "http://sample.vault.azure.net/", }, location: "japaneast", - publicNetworkAccess: "Disabled" + publicNetworkAccess: "Disabled", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountDeleteSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountDeleteSample.ts index 215254b6434c..3ab28b3efbbb 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountDeleteSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Batch account. * * @summary Deletes the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountDelete.json */ async function batchAccountDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function batchAccountDelete() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginDeleteAndWait( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetDetectorSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetDetectorSample.ts index f21e79d7b5bd..02afade8344e 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetDetectorSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetDetectorSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the given detector for a given Batch account. * * @summary Gets information about the given detector for a given Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorGet.json */ async function getDetector() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function getDetector() { const result = await client.batchAccountOperations.getDetector( resourceGroupName, accountName, - detectorId + detectorId, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetKeysSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetKeysSample.ts index 007159c908cd..146587b90ee8 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetKeysSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail. * * @summary This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGetKeys.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGetKeys.json */ async function batchAccountGetKeys() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function batchAccountGetKeys() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.getKeys( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetSample.ts index e9de30289660..1b379c7b2016 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified Batch account. * * @summary Gets information about the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json */ async function batchAccountGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function batchAccountGet() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.get( resourceGroupName, - accountName + accountName, ); console.log(result); } @@ -38,7 +38,7 @@ async function batchAccountGet() { * This sample demonstrates how to Gets information about the specified Batch account. * * @summary Gets information about the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountGet.json */ async function privateBatchAccountGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -49,7 +49,7 @@ async function privateBatchAccountGet() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.get( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListByResourceGroupSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListByResourceGroupSample.ts index 474a0cf06a3f..3d89d382ca06 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListByResourceGroupSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the Batch accounts associated with the specified resource group. * * @summary Gets information about the Batch accounts associated with the specified resource group. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListByResourceGroup.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListByResourceGroup.json */ async function batchAccountListByResourceGroup() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -28,7 +28,7 @@ async function batchAccountListByResourceGroup() { const client = new BatchManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.batchAccountOperations.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListDetectorsSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListDetectorsSample.ts index 201e99bfec41..02c7bbb2963c 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListDetectorsSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListDetectorsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the detectors available for a given Batch account. * * @summary Gets information about the detectors available for a given Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorList.json */ async function listDetectors() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function listDetectors() { const resArray = new Array(); for await (let item of client.batchAccountOperations.listDetectors( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts index adb1740d9092..6ee9127b744e 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network. * * @summary Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json */ async function listOutboundNetworkDependencies() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function listOutboundNetworkDependencies() { const resArray = new Array(); for await (let item of client.batchAccountOperations.listOutboundNetworkDependenciesEndpoints( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListSample.ts index d3059c1cd420..7e7e86a007ca 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the Batch accounts associated with the subscription. * * @summary Gets information about the Batch accounts associated with the subscription. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountList.json */ async function batchAccountList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountRegenerateKeySample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountRegenerateKeySample.ts index 2af55052d73c..cb32a95ec558 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountRegenerateKeySample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountRegenerateKeySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { BatchAccountRegenerateKeyParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail. * * @summary This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountRegenerateKey.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountRegenerateKey.json */ async function batchAccountRegenerateKey() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,14 +29,14 @@ async function batchAccountRegenerateKey() { process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast"; const accountName = "sampleacct"; const parameters: BatchAccountRegenerateKeyParameters = { - keyName: "Primary" + keyName: "Primary", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.regenerateKey( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountSynchronizeAutoStorageKeysSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountSynchronizeAutoStorageKeysSample.ts index a1745f885316..270e29f2fe26 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountSynchronizeAutoStorageKeysSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountSynchronizeAutoStorageKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. * * @summary Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountSynchronizeAutoStorageKeys.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountSynchronizeAutoStorageKeys.json */ async function batchAccountSynchronizeAutoStorageKeys() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function batchAccountSynchronizeAutoStorageKeys() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.synchronizeAutoStorageKeys( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountUpdateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountUpdateSample.ts index 0b9d17a48d7f..dcd5e09a8b35 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountUpdateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { BatchAccountUpdateParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the properties of an existing Batch account. * * @summary Updates the properties of an existing Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountUpdate.json */ async function batchAccountUpdate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,15 +31,15 @@ async function batchAccountUpdate() { const parameters: BatchAccountUpdateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" - } + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", + }, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.update( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateCancelDeletionSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateCancelDeletionSample.ts index c5eb7f42ea6c..be9ee3b99080 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateCancelDeletionSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateCancelDeletionSample.ts @@ -22,7 +22,7 @@ Warning: This operation is deprecated and will be removed after February, 2024. * @summary If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate. Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCancelDeletion.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCancelDeletion.json */ async function certificateCancelDeletion() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -35,7 +35,7 @@ async function certificateCancelDeletion() { const result = await client.certificateOperations.cancelDeletion( resourceGroupName, accountName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateCreateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateCreateSample.ts index 0cf0437c6750..732c5eb1da22 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateCreateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CertificateCreateOrUpdateParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Full.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Full.json */ async function createCertificateFull() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -34,7 +34,7 @@ async function createCertificateFull() { data: "MIIJsgIBAzCCCW4GCSqGSIb3DQE...", password: "", thumbprint: "0a0e4f50d51beadeac1d35afc5116098e7902e6e", - thumbprintAlgorithm: "sha1" + thumbprintAlgorithm: "sha1", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -42,7 +42,7 @@ async function createCertificateFull() { resourceGroupName, accountName, certificateName, - parameters + parameters, ); console.log(result); } @@ -51,7 +51,7 @@ async function createCertificateFull() { * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_MinimalCer.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_MinimalCer.json */ async function createCertificateMinimalCer() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -61,7 +61,7 @@ async function createCertificateMinimalCer() { const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e"; const parameters: CertificateCreateOrUpdateParameters = { format: "Cer", - data: "MIICrjCCAZagAwI..." + data: "MIICrjCCAZagAwI...", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -69,7 +69,7 @@ async function createCertificateMinimalCer() { resourceGroupName, accountName, certificateName, - parameters + parameters, ); console.log(result); } @@ -78,7 +78,7 @@ async function createCertificateMinimalCer() { * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Minimal.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Minimal.json */ async function createCertificateMinimalPfx() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -88,7 +88,7 @@ async function createCertificateMinimalPfx() { const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e"; const parameters: CertificateCreateOrUpdateParameters = { data: "MIIJsgIBAzCCCW4GCSqGSIb3DQE...", - password: "" + password: "", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -96,7 +96,7 @@ async function createCertificateMinimalPfx() { resourceGroupName, accountName, certificateName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateDeleteSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateDeleteSample.ts index 6f5983bd38c2..efca48cb301a 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateDeleteSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateDelete.json */ async function certificateDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function certificateDelete() { const result = await client.certificateOperations.beginDeleteAndWait( resourceGroupName, accountName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateGetSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateGetSample.ts index 35f3a497aed3..877bcc59143b 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateGetSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGet.json */ async function getCertificate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function getCertificate() { const result = await client.certificateOperations.get( resourceGroupName, accountName, - certificateName + certificateName, ); console.log(result); } @@ -40,7 +40,7 @@ async function getCertificate() { * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGetWithDeletionError.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGetWithDeletionError.json */ async function getCertificateWithDeletionError() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -53,7 +53,7 @@ async function getCertificateWithDeletionError() { const result = await client.certificateOperations.get( resourceGroupName, accountName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateListByBatchAccountSample.ts index 19c1364f0406..50d9f2df5da4 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateListByBatchAccountSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateListByBatchAccountSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CertificateListByBatchAccountOptionalParams, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateList.json */ async function listCertificates() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function listCertificates() { const resArray = new Array(); for await (let item of client.certificateOperations.listByBatchAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } @@ -44,7 +44,7 @@ async function listCertificates() { * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateListWithFilter.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateListWithFilter.json */ async function listCertificatesFilterAndSelect() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -56,7 +56,7 @@ async function listCertificatesFilterAndSelect() { "properties/provisioningStateTransitionTime gt '2017-05-01' or properties/provisioningState eq 'Failed'"; const options: CertificateListByBatchAccountOptionalParams = { select, - filter + filter, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -64,7 +64,7 @@ async function listCertificatesFilterAndSelect() { for await (let item of client.certificateOperations.listByBatchAccount( resourceGroupName, accountName, - options + options, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateUpdateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateUpdateSample.ts index e230bb7c7d5d..aefb9a6329aa 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateUpdateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CertificateCreateOrUpdateParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateUpdate.json */ async function updateCertificate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function updateCertificate() { const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e"; const parameters: CertificateCreateOrUpdateParameters = { data: "MIIJsgIBAzCCCW4GCSqGSIb3DQE...", - password: "" + password: "", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function updateCertificate() { resourceGroupName, accountName, certificateName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/locationCheckNameAvailabilitySample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/locationCheckNameAvailabilitySample.ts index 761b7a3991e7..a8378a706525 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/locationCheckNameAvailabilitySample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/locationCheckNameAvailabilitySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CheckNameAvailabilityParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,20 +21,20 @@ dotenv.config(); * This sample demonstrates how to Checks whether the Batch account name is available in the specified region. * * @summary Checks whether the Batch account name is available in the specified region. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_AlreadyExists.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_AlreadyExists.json */ async function locationCheckNameAvailabilityAlreadyExists() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; const locationName = "japaneast"; const parameters: CheckNameAvailabilityParameters = { name: "existingaccountname", - type: "Microsoft.Batch/batchAccounts" + type: "Microsoft.Batch/batchAccounts", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.location.checkNameAvailability( locationName, - parameters + parameters, ); console.log(result); } @@ -43,20 +43,20 @@ async function locationCheckNameAvailabilityAlreadyExists() { * This sample demonstrates how to Checks whether the Batch account name is available in the specified region. * * @summary Checks whether the Batch account name is available in the specified region. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_Available.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_Available.json */ async function locationCheckNameAvailabilityAvailable() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; const locationName = "japaneast"; const parameters: CheckNameAvailabilityParameters = { name: "newaccountname", - type: "Microsoft.Batch/batchAccounts" + type: "Microsoft.Batch/batchAccounts", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.location.checkNameAvailability( locationName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/locationGetQuotasSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/locationGetQuotasSample.ts index a72bd970c416..a3255897f228 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/locationGetQuotasSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/locationGetQuotasSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Batch service quotas for the specified subscription at the given location. * * @summary Gets the Batch service quotas for the specified subscription at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationGetQuotas.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationGetQuotas.json */ async function locationGetQuotas() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/locationListSupportedCloudServiceSkusSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/locationListSupportedCloudServiceSkusSample.ts index 126cb58c3ece..2c759a7a9f4d 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/locationListSupportedCloudServiceSkusSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/locationListSupportedCloudServiceSkusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of Batch supported Cloud Service VM sizes available at the given location. * * @summary Gets the list of Batch supported Cloud Service VM sizes available at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListCloudServiceSkus.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListCloudServiceSkus.json */ async function locationListCloudServiceSkus() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -27,7 +27,7 @@ async function locationListCloudServiceSkus() { const client = new BatchManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.location.listSupportedCloudServiceSkus( - locationName + locationName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/locationListSupportedVirtualMachineSkusSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/locationListSupportedVirtualMachineSkusSample.ts index 0371db773b4c..a4542724d2eb 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/locationListSupportedVirtualMachineSkusSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/locationListSupportedVirtualMachineSkusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of Batch supported Virtual Machine VM sizes available at the given location. * * @summary Gets the list of Batch supported Virtual Machine VM sizes available at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListVirtualMachineSkus.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListVirtualMachineSkus.json */ async function locationListVirtualMachineSkus() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -27,7 +27,7 @@ async function locationListVirtualMachineSkus() { const client = new BatchManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.location.listSupportedVirtualMachineSkus( - locationName + locationName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/operationsListSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/operationsListSample.ts index 31f150fda6ec..465aa4cdc751 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/operationsListSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists available operations for the Microsoft.Batch provider * * @summary Lists available operations for the Microsoft.Batch provider - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/OperationsList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/OperationsList.json */ async function operationsList() { const subscriptionId = diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/poolCreateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/poolCreateSample.ts index e05ac9f73010..30c2b6d5427c 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/poolCreateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/poolCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SharedImageGallery.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SharedImageGallery.json */ async function createPoolCustomImage() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,13 +30,12 @@ async function createPoolCustomImage() { deploymentConfiguration: { virtualMachineConfiguration: { imageReference: { - id: - "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1" + id: "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -44,7 +43,7 @@ async function createPoolCustomImage() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -53,7 +52,7 @@ async function createPoolCustomImage() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_CloudServiceConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_CloudServiceConfiguration.json */ async function createPoolFullCloudServiceConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -65,50 +64,48 @@ async function createPoolFullCloudServiceConfiguration() { applicationLicenses: ["app-license0", "app-license1"], applicationPackages: [ { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234", - version: "asdf" - } + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234", + version: "asdf", + }, ], certificates: [ { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567", + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567", storeLocation: "LocalMachine", storeName: "MY", - visibility: ["RemoteUser"] - } + visibility: ["RemoteUser"], + }, ], deploymentConfiguration: { cloudServiceConfiguration: { osFamily: "4", - osVersion: "WA-GUEST-OS-4.45_201708-01" - } + osVersion: "WA-GUEST-OS-4.45_201708-01", + }, }, displayName: "my-pool-name", interNodeCommunication: "Enabled", metadata: [ { name: "metadata-1", value: "value-1" }, - { name: "metadata-2", value: "value-2" } + { name: "metadata-2", value: "value-2" }, ], networkConfiguration: { publicIPAddressConfiguration: { ipAddressIds: [ "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135", - "/subscriptions/subid2/resourceGroups/rg24/providers/Microsoft.Network/publicIPAddresses/ip268" + "/subscriptions/subid2/resourceGroups/rg24/providers/Microsoft.Network/publicIPAddresses/ip268", ], - provision: "UserManaged" + provision: "UserManaged", }, subnetId: - "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123" + "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123", }, scaleSettings: { fixedScale: { nodeDeallocationOption: "TaskCompletion", resizeTimeout: "PT8M", targetDedicatedNodes: 6, - targetLowPriorityNodes: 28 - } + targetLowPriorityNodes: 28, + }, }, startTask: { commandLine: "cmd /c SET", @@ -118,11 +115,12 @@ async function createPoolFullCloudServiceConfiguration() { { fileMode: "777", filePath: "c:\\temp\\gohere", - httpUrl: "https://testaccount.blob.core.windows.net/example-blob-file" - } + httpUrl: + "https://testaccount.blob.core.windows.net/example-blob-file", + }, ], userIdentity: { autoUser: { elevationLevel: "Admin", scope: "Pool" } }, - waitForSuccess: true + waitForSuccess: true, }, taskSchedulingPolicy: { nodeFillType: "Pack" }, taskSlotsPerNode: 13, @@ -133,12 +131,12 @@ async function createPoolFullCloudServiceConfiguration() { linuxUserConfiguration: { gid: 4567, sshPrivateKey: "sshprivatekeyvalue", - uid: 1234 + uid: 1234, }, - password: "" - } + password: "", + }, ], - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -146,7 +144,7 @@ async function createPoolFullCloudServiceConfiguration() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -155,7 +153,7 @@ async function createPoolFullCloudServiceConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration.json */ async function createPoolFullVirtualMachineConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -171,28 +169,28 @@ async function createPoolFullVirtualMachineConfiguration() { caching: "ReadWrite", diskSizeGB: 30, lun: 0, - storageAccountType: "Premium_LRS" + storageAccountType: "Premium_LRS", }, { caching: "None", diskSizeGB: 200, lun: 1, - storageAccountType: "Standard_LRS" - } + storageAccountType: "Standard_LRS", + }, ], diskEncryptionConfiguration: { targets: ["OsDisk", "TemporaryDisk"] }, imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter-SmallDisk", - version: "latest" + version: "latest", }, licenseType: "Windows_Server", nodeAgentSkuId: "batch.node.windows amd64", nodePlacementConfiguration: { policy: "Zonal" }, osDisk: { ephemeralOSDiskSettings: { placement: "CacheDisk" } }, - windowsConfiguration: { enableAutomaticUpdates: false } - } + windowsConfiguration: { enableAutomaticUpdates: false }, + }, }, networkConfiguration: { endpointConfiguration: { @@ -207,27 +205,27 @@ async function createPoolFullVirtualMachineConfiguration() { access: "Allow", priority: 150, sourceAddressPrefix: "192.100.12.45", - sourcePortRanges: ["1", "2"] + sourcePortRanges: ["1", "2"], }, { access: "Deny", priority: 3500, sourceAddressPrefix: "*", - sourcePortRanges: ["*"] - } + sourcePortRanges: ["*"], + }, ], - protocol: "TCP" - } - ] - } + protocol: "TCP", + }, + ], + }, }, scaleSettings: { autoScale: { evaluationInterval: "PT5M", - formula: "$TargetDedicatedNodes=1" - } + formula: "$TargetDedicatedNodes=1", + }, }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -235,7 +233,7 @@ async function createPoolFullVirtualMachineConfiguration() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -244,7 +242,7 @@ async function createPoolFullVirtualMachineConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json */ async function createPoolMinimalCloudServiceConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -255,7 +253,7 @@ async function createPoolMinimalCloudServiceConfiguration() { const parameters: Pool = { deploymentConfiguration: { cloudServiceConfiguration: { osFamily: "5" } }, scaleSettings: { fixedScale: { targetDedicatedNodes: 3 } }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -263,7 +261,7 @@ async function createPoolMinimalCloudServiceConfiguration() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -272,7 +270,7 @@ async function createPoolMinimalCloudServiceConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json */ async function createPoolMinimalVirtualMachineConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -287,18 +285,18 @@ async function createPoolMinimalVirtualMachineConfiguration() { offer: "UbuntuServer", publisher: "Canonical", sku: "18.04-LTS", - version: "latest" + version: "latest", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, scaleSettings: { autoScale: { evaluationInterval: "PT5M", - formula: "$TargetDedicatedNodes=1" - } + formula: "$TargetDedicatedNodes=1", + }, }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -306,7 +304,7 @@ async function createPoolMinimalVirtualMachineConfiguration() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -315,7 +313,7 @@ async function createPoolMinimalVirtualMachineConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_NoPublicIPAddresses.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_NoPublicIPAddresses.json */ async function createPoolNoPublicIP() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -327,18 +325,17 @@ async function createPoolNoPublicIP() { deploymentConfiguration: { virtualMachineConfiguration: { imageReference: { - id: - "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1" + id: "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, networkConfiguration: { publicIPAddressConfiguration: { provision: "NoPublicIPAddresses" }, subnetId: - "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123" + "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123", }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -346,7 +343,7 @@ async function createPoolNoPublicIP() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -355,7 +352,7 @@ async function createPoolNoPublicIP() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_PublicIPs.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_PublicIPs.json */ async function createPoolPublicIPs() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -367,23 +364,22 @@ async function createPoolPublicIPs() { deploymentConfiguration: { virtualMachineConfiguration: { imageReference: { - id: - "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1" + id: "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, networkConfiguration: { publicIPAddressConfiguration: { ipAddressIds: [ - "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135" + "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135", ], - provision: "UserManaged" + provision: "UserManaged", }, subnetId: - "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123" + "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123", }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -391,7 +387,7 @@ async function createPoolPublicIPs() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -400,7 +396,7 @@ async function createPoolPublicIPs() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_ResourceTags.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_ResourceTags.json */ async function createPoolResourceTags() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -415,16 +411,16 @@ async function createPoolResourceTags() { offer: "UbuntuServer", publisher: "Canonical", sku: "18_04-lts-gen2", - version: "latest" + version: "latest", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, resourceTags: { tagName1: "TagValue1", tagName2: "TagValue2" }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }, }, - vmSize: "Standard_d4s_v3" + vmSize: "Standard_d4s_v3", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -432,7 +428,7 @@ async function createPoolResourceTags() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -441,7 +437,7 @@ async function createPoolResourceTags() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SecurityProfile.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SecurityProfile.json */ async function createPoolSecurityProfile() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -456,20 +452,20 @@ async function createPoolSecurityProfile() { offer: "UbuntuServer", publisher: "Canonical", sku: "18_04-lts-gen2", - version: "latest" + version: "latest", }, nodeAgentSkuId: "batch.node.ubuntu 18.04", securityProfile: { encryptionAtHost: true, securityType: "trustedLaunch", - uefiSettings: { secureBootEnabled: undefined, vTpmEnabled: false } - } - } + uefiSettings: { secureBootEnabled: undefined, vTpmEnabled: false }, + }, + }, }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }, }, - vmSize: "Standard_d4s_v3" + vmSize: "Standard_d4s_v3", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -477,7 +473,7 @@ async function createPoolSecurityProfile() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -486,7 +482,67 @@ async function createPoolSecurityProfile() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_UserAssignedIdentities.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UpgradePolicy.json + */ +async function createPoolUpgradePolicy() { + const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast"; + const accountName = "sampleacct"; + const poolName = "testpool"; + const parameters: Pool = { + deploymentConfiguration: { + virtualMachineConfiguration: { + imageReference: { + offer: "WindowsServer", + publisher: "MicrosoftWindowsServer", + sku: "2019-datacenter-smalldisk", + version: "latest", + }, + nodeAgentSkuId: "batch.node.windows amd64", + nodePlacementConfiguration: { policy: "Zonal" }, + windowsConfiguration: { enableAutomaticUpdates: false }, + }, + }, + scaleSettings: { + fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 }, + }, + upgradePolicy: { + automaticOSUpgradePolicy: { + disableAutomaticRollback: true, + enableAutomaticOSUpgrade: true, + osRollingUpgradeDeferral: true, + useRollingUpgradePolicy: true, + }, + mode: "automatic", + rollingUpgradePolicy: { + enableCrossZoneUpgrade: true, + maxBatchInstancePercent: 20, + maxUnhealthyInstancePercent: 20, + maxUnhealthyUpgradedInstancePercent: 20, + pauseTimeBetweenBatches: "PT0S", + prioritizeUnhealthyInstances: false, + rollbackFailedInstancesOnPolicyBreach: false, + }, + }, + vmSize: "Standard_d4s_v3", + }; + const credential = new DefaultAzureCredential(); + const client = new BatchManagementClient(credential, subscriptionId); + const result = await client.poolOperations.create( + resourceGroupName, + accountName, + poolName, + parameters, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates a new pool inside the specified account. + * + * @summary Creates a new pool inside the specified account. + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UserAssignedIdentities.json */ async function createPoolUserAssignedIdentities() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -501,25 +557,27 @@ async function createPoolUserAssignedIdentities() { offer: "UbuntuServer", publisher: "Canonical", sku: "18.04-LTS", - version: "latest" + version: "latest", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, identity: { type: "UserAssigned", userAssignedIdentities: { - "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id2": {} - } + "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": + {}, + "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id2": + {}, + }, }, scaleSettings: { autoScale: { evaluationInterval: "PT5M", - formula: "$TargetDedicatedNodes=1" - } + formula: "$TargetDedicatedNodes=1", + }, }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -527,7 +585,7 @@ async function createPoolUserAssignedIdentities() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -536,7 +594,7 @@ async function createPoolUserAssignedIdentities() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json */ async function createPoolVirtualMachineConfigurationExtensions() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -550,7 +608,7 @@ async function createPoolVirtualMachineConfigurationExtensions() { imageReference: { offer: "0001-com-ubuntu-server-focal", publisher: "Canonical", - sku: "20_04-lts" + sku: "20_04-lts", }, nodeAgentSkuId: "batch.node.ubuntu 20.04", extensions: [ @@ -562,21 +620,21 @@ async function createPoolVirtualMachineConfigurationExtensions() { publisher: "Microsoft.Azure.KeyVault", settings: { authenticationSettingsKey: "authenticationSettingsValue", - secretsManagementSettingsKey: "secretsManagementSettingsValue" + secretsManagementSettingsKey: "secretsManagementSettingsValue", }, - typeHandlerVersion: "2.0" - } - ] - } + typeHandlerVersion: "2.0", + }, + ], + }, }, scaleSettings: { autoScale: { evaluationInterval: "PT5M", - formula: "$TargetDedicatedNodes=1" - } + formula: "$TargetDedicatedNodes=1", + }, }, targetNodeCommunicationMode: "Default", - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -584,7 +642,7 @@ async function createPoolVirtualMachineConfigurationExtensions() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -593,7 +651,7 @@ async function createPoolVirtualMachineConfigurationExtensions() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json */ async function createPoolVirtualMachineConfigurationOSDisk() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -607,21 +665,21 @@ async function createPoolVirtualMachineConfigurationOSDisk() { imageReference: { offer: "windowsserver", publisher: "microsoftwindowsserver", - sku: "2022-datacenter-smalldisk" + sku: "2022-datacenter-smalldisk", }, nodeAgentSkuId: "batch.node.windows amd64", osDisk: { caching: "ReadWrite", diskSizeGB: 100, managedDisk: { storageAccountType: "StandardSSD_LRS" }, - writeAcceleratorEnabled: false - } - } + writeAcceleratorEnabled: false, + }, + }, }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }, }, - vmSize: "Standard_d2s_v3" + vmSize: "Standard_d2s_v3", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -629,7 +687,7 @@ async function createPoolVirtualMachineConfigurationOSDisk() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -638,7 +696,7 @@ async function createPoolVirtualMachineConfigurationOSDisk() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json */ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -653,20 +711,23 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2019-datacenter-smalldisk", - version: "latest" + version: "latest", }, nodeAgentSkuId: "batch.node.windows amd64", serviceArtifactReference: { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Compute/galleries/myGallery/serviceArtifacts/myServiceArtifact/vmArtifactsProfiles/vmArtifactsProfile" + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Compute/galleries/myGallery/serviceArtifacts/myServiceArtifact/vmArtifactsProfiles/vmArtifactsProfile", }, - windowsConfiguration: { enableAutomaticUpdates: false } - } + windowsConfiguration: { enableAutomaticUpdates: false }, + }, }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 }, + }, + upgradePolicy: { + automaticOSUpgradePolicy: { enableAutomaticOSUpgrade: true }, + mode: "automatic", }, - vmSize: "Standard_d4s_v3" + vmSize: "Standard_d4s_v3", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -674,7 +735,7 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -683,7 +744,7 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_AcceleratedNetworking.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_AcceleratedNetworking.json */ async function createPoolAcceleratedNetworking() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -698,20 +759,20 @@ async function createPoolAcceleratedNetworking() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-datacenter-smalldisk", - version: "latest" + version: "latest", }, - nodeAgentSkuId: "batch.node.windows amd64" - } + nodeAgentSkuId: "batch.node.windows amd64", + }, }, networkConfiguration: { enableAcceleratedNetworking: true, subnetId: - "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123" + "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123", }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }, }, - vmSize: "STANDARD_D1_V2" + vmSize: "STANDARD_D1_V2", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -719,7 +780,7 @@ async function createPoolAcceleratedNetworking() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -734,6 +795,7 @@ async function main() { createPoolPublicIPs(); createPoolResourceTags(); createPoolSecurityProfile(); + createPoolUpgradePolicy(); createPoolUserAssignedIdentities(); createPoolVirtualMachineConfigurationExtensions(); createPoolVirtualMachineConfigurationOSDisk(); diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/poolDeleteSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/poolDeleteSample.ts index cf18ad258e9d..a9c912eb888f 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/poolDeleteSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/poolDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified pool. * * @summary Deletes the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDelete.json */ async function deletePool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function deletePool() { const result = await client.poolOperations.beginDeleteAndWait( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/poolDisableAutoScaleSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/poolDisableAutoScaleSample.ts index c10f630a8671..92d1ba4f00de 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/poolDisableAutoScaleSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/poolDisableAutoScaleSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Disables automatic scaling for a pool. * * @summary Disables automatic scaling for a pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDisableAutoScale.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDisableAutoScale.json */ async function disableAutoScale() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function disableAutoScale() { const result = await client.poolOperations.disableAutoScale( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/poolGetSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/poolGetSample.ts index eb208ab6a187..ee1c5fc0db34 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/poolGetSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/poolGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet.json */ async function getPool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function getPool() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -40,7 +40,7 @@ async function getPool() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_AcceleratedNetworking.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_AcceleratedNetworking.json */ async function getPoolAcceleratedNetworking() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -53,7 +53,7 @@ async function getPoolAcceleratedNetworking() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -62,7 +62,7 @@ async function getPoolAcceleratedNetworking() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_SecurityProfile.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_SecurityProfile.json */ async function getPoolSecurityProfile() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -75,7 +75,7 @@ async function getPoolSecurityProfile() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -84,7 +84,29 @@ async function getPoolSecurityProfile() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_UpgradePolicy.json + */ +async function getPoolUpgradePolicy() { + const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast"; + const accountName = "sampleacct"; + const poolName = "testpool"; + const credential = new DefaultAzureCredential(); + const client = new BatchManagementClient(credential, subscriptionId); + const result = await client.poolOperations.get( + resourceGroupName, + accountName, + poolName, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Gets information about the specified pool. + * + * @summary Gets information about the specified pool. + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json */ async function getPoolVirtualMachineConfigurationExtensions() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -97,7 +119,7 @@ async function getPoolVirtualMachineConfigurationExtensions() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -106,7 +128,7 @@ async function getPoolVirtualMachineConfigurationExtensions() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json */ async function getPoolVirtualMachineConfigurationOSDisk() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -119,7 +141,7 @@ async function getPoolVirtualMachineConfigurationOSDisk() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -128,7 +150,7 @@ async function getPoolVirtualMachineConfigurationOSDisk() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json */ async function getPoolVirtualMachineConfigurationServiceArtifactReference() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -141,7 +163,7 @@ async function getPoolVirtualMachineConfigurationServiceArtifactReference() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -150,6 +172,7 @@ async function main() { getPool(); getPoolAcceleratedNetworking(); getPoolSecurityProfile(); + getPoolUpgradePolicy(); getPoolVirtualMachineConfigurationExtensions(); getPoolVirtualMachineConfigurationOSDisk(); getPoolVirtualMachineConfigurationServiceArtifactReference(); diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/poolListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/poolListByBatchAccountSample.ts index 3e76c5e8f0cd..ddd4e180cc82 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/poolListByBatchAccountSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/poolListByBatchAccountSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { PoolListByBatchAccountOptionalParams, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the pools in the specified account. * * @summary Lists all of the pools in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolList.json */ async function listPool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function listPool() { const resArray = new Array(); for await (let item of client.poolOperations.listByBatchAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } @@ -44,7 +44,7 @@ async function listPool() { * This sample demonstrates how to Lists all of the pools in the specified account. * * @summary Lists all of the pools in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolListWithFilter.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolListWithFilter.json */ async function listPoolWithFilter() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -62,7 +62,7 @@ async function listPoolWithFilter() { for await (let item of client.poolOperations.listByBatchAccount( resourceGroupName, accountName, - options + options, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/poolStopResizeSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/poolStopResizeSample.ts index 1f4dd79eeccb..7a33f48c738f 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/poolStopResizeSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/poolStopResizeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. * * @summary This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolStopResize.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolStopResize.json */ async function stopPoolResize() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function stopPoolResize() { const result = await client.poolOperations.stopResize( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/poolUpdateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/poolUpdateSample.ts index fa0397c7b525..bfe544cbcb18 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/poolUpdateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/poolUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_EnableAutoScale.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_EnableAutoScale.json */ async function updatePoolEnableAutoscale() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -27,7 +27,7 @@ async function updatePoolEnableAutoscale() { const accountName = "sampleacct"; const poolName = "testpool"; const parameters: Pool = { - scaleSettings: { autoScale: { formula: "$TargetDedicatedNodes=34" } } + scaleSettings: { autoScale: { formula: "$TargetDedicatedNodes=34" } }, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -35,7 +35,7 @@ async function updatePoolEnableAutoscale() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -44,7 +44,7 @@ async function updatePoolEnableAutoscale() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_OtherProperties.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_OtherProperties.json */ async function updatePoolOtherProperties() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -55,25 +55,22 @@ async function updatePoolOtherProperties() { const parameters: Pool = { applicationPackages: [ { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234" + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234", }, { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_5678", - version: "1.0" - } + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_5678", + version: "1.0", + }, ], certificates: [ { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567", + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567", storeLocation: "LocalMachine", - storeName: "MY" - } + storeName: "MY", + }, ], metadata: [{ name: "key1", value: "value1" }], - targetNodeCommunicationMode: "Simplified" + targetNodeCommunicationMode: "Simplified", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -81,7 +78,7 @@ async function updatePoolOtherProperties() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -90,7 +87,7 @@ async function updatePoolOtherProperties() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_RemoveStartTask.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_RemoveStartTask.json */ async function updatePoolRemoveStartTask() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -105,7 +102,7 @@ async function updatePoolRemoveStartTask() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -114,7 +111,7 @@ async function updatePoolRemoveStartTask() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_ResizePool.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_ResizePool.json */ async function updatePoolResizePool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -128,9 +125,9 @@ async function updatePoolResizePool() { nodeDeallocationOption: "TaskCompletion", resizeTimeout: "PT8M", targetDedicatedNodes: 5, - targetLowPriorityNodes: 0 - } - } + targetLowPriorityNodes: 0, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -138,7 +135,7 @@ async function updatePoolResizePool() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionDeleteSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionDeleteSample.ts index d8e0c7ef64fe..f5562067e058 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionDeleteSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified private endpoint connection. * * @summary Deletes the specified private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionDelete.json */ async function privateEndpointConnectionDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,11 +29,12 @@ async function privateEndpointConnectionDelete() { "testprivateEndpointConnection5testprivateEndpointConnection5.24d6b4b5-e65c-4330-bbe9-3a290d62f8e0"; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); - const result = await client.privateEndpointConnectionOperations.beginDeleteAndWait( - resourceGroupName, - accountName, - privateEndpointConnectionName - ); + const result = + await client.privateEndpointConnectionOperations.beginDeleteAndWait( + resourceGroupName, + accountName, + privateEndpointConnectionName, + ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionGetSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionGetSample.ts index b83b8adf4525..f21885b1e9dc 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionGetSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified private endpoint connection. * * @summary Gets information about the specified private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionGet.json */ async function getPrivateEndpointConnection() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -32,7 +32,7 @@ async function getPrivateEndpointConnection() { const result = await client.privateEndpointConnectionOperations.get( resourceGroupName, accountName, - privateEndpointConnectionName + privateEndpointConnectionName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionListByBatchAccountSample.ts index 488f066105a5..e93316acdb2d 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionListByBatchAccountSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionListByBatchAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the private endpoint connections in the specified account. * * @summary Lists all of the private endpoint connections in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionsList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionsList.json */ async function listPrivateEndpointConnections() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function listPrivateEndpointConnections() { const resArray = new Array(); for await (let item of client.privateEndpointConnectionOperations.listByBatchAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionUpdateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionUpdateSample.ts index dda28f162d82..055c113527c2 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionUpdateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { PrivateEndpointConnection, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the properties of an existing private endpoint connection. * * @summary Updates the properties of an existing private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionUpdate.json */ async function updatePrivateEndpointConnection() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,17 +33,18 @@ async function updatePrivateEndpointConnection() { const parameters: PrivateEndpointConnection = { privateLinkServiceConnectionState: { description: "Approved by xyz.abc@company.com", - status: "Approved" - } + status: "Approved", + }, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); - const result = await client.privateEndpointConnectionOperations.beginUpdateAndWait( - resourceGroupName, - accountName, - privateEndpointConnectionName, - parameters - ); + const result = + await client.privateEndpointConnectionOperations.beginUpdateAndWait( + resourceGroupName, + accountName, + privateEndpointConnectionName, + parameters, + ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/privateLinkResourceGetSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/privateLinkResourceGetSample.ts index c00ae2cf0c01..08a2c9e9186f 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/privateLinkResourceGetSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/privateLinkResourceGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified private link resource. * * @summary Gets information about the specified private link resource. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourceGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourceGet.json */ async function getPrivateLinkResource() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function getPrivateLinkResource() { const result = await client.privateLinkResourceOperations.get( resourceGroupName, accountName, - privateLinkResourceName + privateLinkResourceName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/privateLinkResourceListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/privateLinkResourceListByBatchAccountSample.ts index bc3d78c558cc..285583c8a39a 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/privateLinkResourceListByBatchAccountSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/privateLinkResourceListByBatchAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the private link resources in the specified account. * * @summary Lists all of the private link resources in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourcesList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourcesList.json */ async function listPrivateLinkResource() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function listPrivateLinkResource() { const resArray = new Array(); for await (let item of client.privateLinkResourceOperations.listByBatchAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/src/batchManagementClient.ts b/sdk/batch/arm-batch/src/batchManagementClient.ts index 2b4559093aad..93ad312c92be 100644 --- a/sdk/batch/arm-batch/src/batchManagementClient.ts +++ b/sdk/batch/arm-batch/src/batchManagementClient.ts @@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { @@ -23,7 +23,7 @@ import { CertificateOperationsImpl, PrivateLinkResourceOperationsImpl, PrivateEndpointConnectionOperationsImpl, - PoolOperationsImpl + PoolOperationsImpl, } from "./operations"; import { BatchAccountOperations, @@ -34,7 +34,7 @@ import { CertificateOperations, PrivateLinkResourceOperations, PrivateEndpointConnectionOperations, - PoolOperations + PoolOperations, } from "./operationsInterfaces"; import { BatchManagementClientOptionalParams } from "./models"; @@ -53,7 +53,7 @@ export class BatchManagementClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: BatchManagementClientOptionalParams + options?: BatchManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -68,10 +68,10 @@ export class BatchManagementClient extends coreClient.ServiceClient { } const defaults: BatchManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-batch/9.1.1`; + const packageDetails = `azsdk-js-arm-batch/9.2.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -81,20 +81,21 @@ export class BatchManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -104,7 +105,7 @@ export class BatchManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -114,9 +115,9 @@ export class BatchManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -124,21 +125,20 @@ export class BatchManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-11-01"; + this.apiVersion = options.apiVersion || "2024-02-01"; this.batchAccountOperations = new BatchAccountOperationsImpl(this); this.applicationPackageOperations = new ApplicationPackageOperationsImpl( - this + this, ); this.applicationOperations = new ApplicationOperationsImpl(this); this.location = new LocationImpl(this); this.operations = new OperationsImpl(this); this.certificateOperations = new CertificateOperationsImpl(this); this.privateLinkResourceOperations = new PrivateLinkResourceOperationsImpl( - this - ); - this.privateEndpointConnectionOperations = new PrivateEndpointConnectionOperationsImpl( - this + this, ); + this.privateEndpointConnectionOperations = + new PrivateEndpointConnectionOperationsImpl(this); this.poolOperations = new PoolOperationsImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -152,7 +152,7 @@ export class BatchManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -166,7 +166,7 @@ export class BatchManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } diff --git a/sdk/batch/arm-batch/src/lroImpl.ts b/sdk/batch/arm-batch/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/batch/arm-batch/src/lroImpl.ts +++ b/sdk/batch/arm-batch/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/batch/arm-batch/src/models/index.ts b/sdk/batch/arm-batch/src/models/index.ts index b0b18caad87d..8d31af50a25f 100644 --- a/sdk/batch/arm-batch/src/models/index.ts +++ b/sdk/batch/arm-batch/src/models/index.ts @@ -349,6 +349,11 @@ export interface SupportedSku { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly capabilities?: SkuCapability[]; + /** + * The time when Azure Batch service will retire this SKU. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly batchSupportEndOfLife?: Date; } /** A SKU capability, such as the number of cores. */ @@ -1021,6 +1026,46 @@ export interface AzureFileShareConfiguration { mountOptions?: string; } +/** Describes an upgrade policy - automatic, manual, or rolling. */ +export interface UpgradePolicy { + /** Specifies the mode of an upgrade to virtual machines in the scale set.

Possible values are:

**Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.

**Automatic** - All virtual machines in the scale set are automatically updated at the same time.

**Rolling** - Scale set performs updates in batches with an optional pause time in between. */ + mode: UpgradeMode; + /** The configuration parameters used for performing automatic OS upgrade. */ + automaticOSUpgradePolicy?: AutomaticOSUpgradePolicy; + /** This property is only supported on Pools with the virtualMachineConfiguration property. */ + rollingUpgradePolicy?: RollingUpgradePolicy; +} + +/** The configuration parameters used for performing automatic OS upgrade. */ +export interface AutomaticOSUpgradePolicy { + /** Whether OS image rollback feature should be disabled. */ + disableAutomaticRollback?: boolean; + /** Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available.

If this is set to true for Windows based pools, [WindowsConfiguration.enableAutomaticUpdates](https://learn.microsoft.com/en-us/rest/api/batchmanagement/pool/create?tabs=HTTP#windowsconfiguration) cannot be set to true. */ + enableAutomaticOSUpgrade?: boolean; + /** Indicates whether rolling upgrade policy should be used during Auto OS Upgrade. Auto OS Upgrade will fallback to the default policy if no policy is defined on the VMSS. */ + useRollingUpgradePolicy?: boolean; + /** Defer OS upgrades on the TVMs if they are running tasks. */ + osRollingUpgradeDeferral?: boolean; +} + +/** The configuration parameters used while performing a rolling upgrade. */ +export interface RollingUpgradePolicy { + /** Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size. If this field is not set, Azure Azure Batch will not set its default value. The value of enableCrossZoneUpgrade on the created VirtualMachineScaleSet will be decided by the default configurations on VirtualMachineScaleSet. This field is able to be set to true or false only when using NodePlacementConfiguration as Zonal. */ + enableCrossZoneUpgrade?: boolean; + /** The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The value of this field should be between 5 and 100, inclusive. If both maxBatchInstancePercent and maxUnhealthyInstancePercent are assigned with value, the value of maxBatchInstancePercent should not be more than maxUnhealthyInstancePercent. */ + maxBatchInstancePercent?: number; + /** The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The value of this field should be between 5 and 100, inclusive. If both maxBatchInstancePercent and maxUnhealthyInstancePercent are assigned with value, the value of maxBatchInstancePercent should not be more than maxUnhealthyInstancePercent. */ + maxUnhealthyInstancePercent?: number; + /** The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The value of this field should be between 0 and 100, inclusive. */ + maxUnhealthyUpgradedInstancePercent?: number; + /** The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. */ + pauseTimeBetweenBatches?: string; + /** Upgrade all unhealthy instances in a scale set before any healthy instances. */ + prioritizeUnhealthyInstances?: boolean; + /** Rollback failed instances to previous model if the Rolling Upgrade policy is violated. */ + rollbackFailedInstancesOnPolicyBreach?: boolean; +} + /** The identity of the Batch pool, if configured. If the pool identity is updated during update an existing pool, only the new vms which are created after the pool shrinks to 0 will have the updated identities */ export interface BatchPoolIdentity { /** The type of identity used for the Batch Pool. */ @@ -1319,6 +1364,8 @@ export interface Pool extends ProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentNodeCommunicationMode?: NodeCommunicationMode; + /** Describes an upgrade policy - automatic, manual, or rolling. */ + upgradePolicy?: UpgradePolicy; /** The user-defined tags to be associated with the Azure Batch Pool. When specified, these tags are propagated to the backing Azure resources associated with the pool. This property can only be specified when the Batch account was created with the poolAllocationMode property set to 'UserSubscription'. */ resourceTags?: { [propertyName: string]: string }; } @@ -1555,7 +1602,7 @@ export enum KnownContainerType { /** A Docker compatible container technology will be used to launch the containers. */ DockerCompatible = "DockerCompatible", /** A CRI based technology will be used to launch the containers. */ - CriCompatible = "CriCompatible" + CriCompatible = "CriCompatible", } /** @@ -1670,6 +1717,8 @@ export type CertificateStoreLocation = "CurrentUser" | "LocalMachine"; export type CertificateVisibility = "StartTask" | "Task" | "RemoteUser"; /** Defines values for NodeCommunicationMode. */ export type NodeCommunicationMode = "Default" | "Classic" | "Simplified"; +/** Defines values for UpgradeMode. */ +export type UpgradeMode = "automatic" | "manual" | "rolling"; /** Defines values for PoolIdentityType. */ export type PoolIdentityType = "UserAssigned" | "None"; @@ -1759,7 +1808,8 @@ export interface BatchAccountListOutboundNetworkDependenciesEndpointsOptionalPar extends coreClient.OperationOptions {} /** Contains response data for the listOutboundNetworkDependenciesEndpoints operation. */ -export type BatchAccountListOutboundNetworkDependenciesEndpointsResponse = OutboundEnvironmentEndpointCollection; +export type BatchAccountListOutboundNetworkDependenciesEndpointsResponse = + OutboundEnvironmentEndpointCollection; /** Optional parameters. */ export interface BatchAccountListNextOptionalParams @@ -1773,7 +1823,8 @@ export interface BatchAccountListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type BatchAccountListByResourceGroupNextResponse = BatchAccountListResult; +export type BatchAccountListByResourceGroupNextResponse = + BatchAccountListResult; /** Optional parameters. */ export interface BatchAccountListDetectorsNextOptionalParams @@ -1787,7 +1838,8 @@ export interface BatchAccountListOutboundNetworkDependenciesEndpointsNextOptiona extends coreClient.OperationOptions {} /** Contains response data for the listOutboundNetworkDependenciesEndpointsNext operation. */ -export type BatchAccountListOutboundNetworkDependenciesEndpointsNextResponse = OutboundEnvironmentEndpointCollection; +export type BatchAccountListOutboundNetworkDependenciesEndpointsNextResponse = + OutboundEnvironmentEndpointCollection; /** Optional parameters. */ export interface ApplicationPackageActivateOptionalParams @@ -1896,7 +1948,8 @@ export interface LocationListSupportedVirtualMachineSkusOptionalParams } /** Contains response data for the listSupportedVirtualMachineSkus operation. */ -export type LocationListSupportedVirtualMachineSkusResponse = SupportedSkusResult; +export type LocationListSupportedVirtualMachineSkusResponse = + SupportedSkusResult; /** Optional parameters. */ export interface LocationListSupportedCloudServiceSkusOptionalParams @@ -1922,14 +1975,16 @@ export interface LocationListSupportedVirtualMachineSkusNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSupportedVirtualMachineSkusNext operation. */ -export type LocationListSupportedVirtualMachineSkusNextResponse = SupportedSkusResult; +export type LocationListSupportedVirtualMachineSkusNextResponse = + SupportedSkusResult; /** Optional parameters. */ export interface LocationListSupportedCloudServiceSkusNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSupportedCloudServiceSkusNext operation. */ -export type LocationListSupportedCloudServiceSkusNextResponse = SupportedSkusResult; +export type LocationListSupportedCloudServiceSkusNextResponse = + SupportedSkusResult; /** Optional parameters. */ export interface OperationsListOptionalParams @@ -2002,8 +2057,8 @@ export interface CertificateCancelDeletionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the cancelDeletion operation. */ -export type CertificateCancelDeletionResponse = CertificateCancelDeletionHeaders & - Certificate; +export type CertificateCancelDeletionResponse = + CertificateCancelDeletionHeaders & Certificate; /** Optional parameters. */ export interface CertificateListByBatchAccountNextOptionalParams @@ -2020,7 +2075,8 @@ export interface PrivateLinkResourceListByBatchAccountOptionalParams } /** Contains response data for the listByBatchAccount operation. */ -export type PrivateLinkResourceListByBatchAccountResponse = ListPrivateLinkResourcesResult; +export type PrivateLinkResourceListByBatchAccountResponse = + ListPrivateLinkResourcesResult; /** Optional parameters. */ export interface PrivateLinkResourceGetOptionalParams @@ -2034,7 +2090,8 @@ export interface PrivateLinkResourceListByBatchAccountNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByBatchAccountNext operation. */ -export type PrivateLinkResourceListByBatchAccountNextResponse = ListPrivateLinkResourcesResult; +export type PrivateLinkResourceListByBatchAccountNextResponse = + ListPrivateLinkResourcesResult; /** Optional parameters. */ export interface PrivateEndpointConnectionListByBatchAccountOptionalParams @@ -2044,7 +2101,8 @@ export interface PrivateEndpointConnectionListByBatchAccountOptionalParams } /** Contains response data for the listByBatchAccount operation. */ -export type PrivateEndpointConnectionListByBatchAccountResponse = ListPrivateEndpointConnectionsResult; +export type PrivateEndpointConnectionListByBatchAccountResponse = + ListPrivateEndpointConnectionsResult; /** Optional parameters. */ export interface PrivateEndpointConnectionGetOptionalParams @@ -2077,14 +2135,16 @@ export interface PrivateEndpointConnectionDeleteOptionalParams } /** Contains response data for the delete operation. */ -export type PrivateEndpointConnectionDeleteResponse = PrivateEndpointConnectionDeleteHeaders; +export type PrivateEndpointConnectionDeleteResponse = + PrivateEndpointConnectionDeleteHeaders; /** Optional parameters. */ export interface PrivateEndpointConnectionListByBatchAccountNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByBatchAccountNext operation. */ -export type PrivateEndpointConnectionListByBatchAccountNextResponse = ListPrivateEndpointConnectionsResult; +export type PrivateEndpointConnectionListByBatchAccountNextResponse = + ListPrivateEndpointConnectionsResult; /** Optional parameters. */ export interface PoolListByBatchAccountOptionalParams diff --git a/sdk/batch/arm-batch/src/models/mappers.ts b/sdk/batch/arm-batch/src/models/mappers.ts index 21edbbf89a6a..a95cce97add6 100644 --- a/sdk/batch/arm-batch/src/models/mappers.ts +++ b/sdk/batch/arm-batch/src/models/mappers.ts @@ -17,65 +17,65 @@ export const BatchAccountCreateParameters: coreClient.CompositeMapper = { serializedName: "location", required: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "BatchAccountIdentity" - } + className: "BatchAccountIdentity", + }, }, autoStorage: { serializedName: "properties.autoStorage", type: { name: "Composite", - className: "AutoStorageBaseProperties" - } + className: "AutoStorageBaseProperties", + }, }, poolAllocationMode: { serializedName: "properties.poolAllocationMode", type: { name: "Enum", - allowedValues: ["BatchService", "UserSubscription"] - } + allowedValues: ["BatchService", "UserSubscription"], + }, }, keyVaultReference: { serializedName: "properties.keyVaultReference", type: { name: "Composite", - className: "KeyVaultReference" - } + className: "KeyVaultReference", + }, }, publicNetworkAccess: { defaultValue: "Enabled", serializedName: "properties.publicNetworkAccess", type: { name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } + allowedValues: ["Enabled", "Disabled"], + }, }, networkProfile: { serializedName: "properties.networkProfile", type: { name: "Composite", - className: "NetworkProfile" - } + className: "NetworkProfile", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "EncryptionProperties" - } + className: "EncryptionProperties", + }, }, allowedAuthenticationModes: { serializedName: "properties.allowedAuthenticationModes", @@ -85,13 +85,13 @@ export const BatchAccountCreateParameters: coreClient.CompositeMapper = { element: { type: { name: "Enum", - allowedValues: ["SharedKey", "AAD", "TaskAuthenticationToken"] - } - } - } - } - } - } + allowedValues: ["SharedKey", "AAD", "TaskAuthenticationToken"], + }, + }, + }, + }, + }, + }, }; export const AutoStorageBaseProperties: coreClient.CompositeMapper = { @@ -103,26 +103,26 @@ export const AutoStorageBaseProperties: coreClient.CompositeMapper = { serializedName: "storageAccountId", required: true, type: { - name: "String" - } + name: "String", + }, }, authenticationMode: { defaultValue: "StorageKeys", serializedName: "authenticationMode", type: { name: "Enum", - allowedValues: ["StorageKeys", "BatchAccountManagedIdentity"] - } + allowedValues: ["StorageKeys", "BatchAccountManagedIdentity"], + }, }, nodeIdentityReference: { serializedName: "nodeIdentityReference", type: { name: "Composite", - className: "ComputeNodeIdentityReference" - } - } - } - } + className: "ComputeNodeIdentityReference", + }, + }, + }, + }, }; export const ComputeNodeIdentityReference: coreClient.CompositeMapper = { @@ -133,11 +133,11 @@ export const ComputeNodeIdentityReference: coreClient.CompositeMapper = { resourceId: { serializedName: "resourceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const KeyVaultReference: coreClient.CompositeMapper = { @@ -149,18 +149,18 @@ export const KeyVaultReference: coreClient.CompositeMapper = { serializedName: "id", required: true, type: { - name: "String" - } + name: "String", + }, }, url: { serializedName: "url", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetworkProfile: coreClient.CompositeMapper = { @@ -172,18 +172,18 @@ export const NetworkProfile: coreClient.CompositeMapper = { serializedName: "accountAccess", type: { name: "Composite", - className: "EndpointAccessProfile" - } + className: "EndpointAccessProfile", + }, }, nodeManagementAccess: { serializedName: "nodeManagementAccess", type: { name: "Composite", - className: "EndpointAccessProfile" - } - } - } - } + className: "EndpointAccessProfile", + }, + }, + }, + }, }; export const EndpointAccessProfile: coreClient.CompositeMapper = { @@ -196,8 +196,8 @@ export const EndpointAccessProfile: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["Allow", "Deny"] - } + allowedValues: ["Allow", "Deny"], + }, }, ipRules: { serializedName: "ipRules", @@ -206,13 +206,13 @@ export const EndpointAccessProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IPRule" - } - } - } - } - } - } + className: "IPRule", + }, + }, + }, + }, + }, + }, }; export const IPRule: coreClient.CompositeMapper = { @@ -225,18 +225,18 @@ export const IPRule: coreClient.CompositeMapper = { isConstant: true, serializedName: "action", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EncryptionProperties: coreClient.CompositeMapper = { @@ -248,18 +248,18 @@ export const EncryptionProperties: coreClient.CompositeMapper = { serializedName: "keySource", type: { name: "Enum", - allowedValues: ["Microsoft.Batch", "Microsoft.KeyVault"] - } + allowedValues: ["Microsoft.Batch", "Microsoft.KeyVault"], + }, }, keyVaultProperties: { serializedName: "keyVaultProperties", type: { name: "Composite", - className: "KeyVaultProperties" - } - } - } - } + className: "KeyVaultProperties", + }, + }, + }, + }, }; export const KeyVaultProperties: coreClient.CompositeMapper = { @@ -270,11 +270,11 @@ export const KeyVaultProperties: coreClient.CompositeMapper = { keyIdentifier: { serializedName: "keyIdentifier", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BatchAccountIdentity: coreClient.CompositeMapper = { @@ -286,35 +286,35 @@ export const BatchAccountIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", required: true, type: { name: "Enum", - allowedValues: ["SystemAssigned", "UserAssigned", "None"] - } + allowedValues: ["SystemAssigned", "UserAssigned", "None"], + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", type: { name: "Dictionary", value: { - type: { name: "Composite", className: "UserAssignedIdentities" } - } - } - } - } - } + type: { name: "Composite", className: "UserAssignedIdentities" }, + }, + }, + }, + }, + }, }; export const UserAssignedIdentities: coreClient.CompositeMapper = { @@ -326,18 +326,18 @@ export const UserAssignedIdentities: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, clientId: { serializedName: "clientId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpoint: coreClient.CompositeMapper = { @@ -349,11 +349,11 @@ export const PrivateEndpoint: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { @@ -366,24 +366,24 @@ export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["Approved", "Pending", "Rejected", "Disconnected"] - } + allowedValues: ["Approved", "Pending", "Rejected", "Disconnected"], + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, actionsRequired: { serializedName: "actionsRequired", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProxyResource: coreClient.CompositeMapper = { @@ -395,32 +395,32 @@ export const ProxyResource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, etag: { serializedName: "etag", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineFamilyCoreQuota: coreClient.CompositeMapper = { @@ -432,18 +432,18 @@ export const VirtualMachineFamilyCoreQuota: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, coreQuota: { serializedName: "coreQuota", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -455,40 +455,40 @@ export const Resource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const CloudError: coreClient.CompositeMapper = { @@ -500,11 +500,11 @@ export const CloudError: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "CloudErrorBody" - } - } - } - } + className: "CloudErrorBody", + }, + }, + }, + }, }; export const CloudErrorBody: coreClient.CompositeMapper = { @@ -515,20 +515,20 @@ export const CloudErrorBody: coreClient.CompositeMapper = { code: { serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -537,13 +537,13 @@ export const CloudErrorBody: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudErrorBody" - } - } - } - } - } - } + className: "CloudErrorBody", + }, + }, + }, + }, + }, + }, }; export const BatchAccountUpdateParameters: coreClient.CompositeMapper = { @@ -555,29 +555,29 @@ export const BatchAccountUpdateParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "BatchAccountIdentity" - } + className: "BatchAccountIdentity", + }, }, autoStorage: { serializedName: "properties.autoStorage", type: { name: "Composite", - className: "AutoStorageBaseProperties" - } + className: "AutoStorageBaseProperties", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "EncryptionProperties" - } + className: "EncryptionProperties", + }, }, allowedAuthenticationModes: { serializedName: "properties.allowedAuthenticationModes", @@ -587,28 +587,28 @@ export const BatchAccountUpdateParameters: coreClient.CompositeMapper = { element: { type: { name: "Enum", - allowedValues: ["SharedKey", "AAD", "TaskAuthenticationToken"] - } - } - } + allowedValues: ["SharedKey", "AAD", "TaskAuthenticationToken"], + }, + }, + }, }, publicNetworkAccess: { defaultValue: "Enabled", serializedName: "properties.publicNetworkAccess", type: { name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } + allowedValues: ["Enabled", "Disabled"], + }, }, networkProfile: { serializedName: "properties.networkProfile", type: { name: "Composite", - className: "NetworkProfile" - } - } - } - } + className: "NetworkProfile", + }, + }, + }, + }, }; export const BatchAccountListResult: coreClient.CompositeMapper = { @@ -623,19 +623,19 @@ export const BatchAccountListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BatchAccount" - } - } - } + className: "BatchAccount", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BatchAccountRegenerateKeyParameters: coreClient.CompositeMapper = { @@ -648,11 +648,11 @@ export const BatchAccountRegenerateKeyParameters: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["Primary", "Secondary"] - } - } - } - } + allowedValues: ["Primary", "Secondary"], + }, + }, + }, + }, }; export const BatchAccountKeys: coreClient.CompositeMapper = { @@ -664,42 +664,43 @@ export const BatchAccountKeys: coreClient.CompositeMapper = { serializedName: "accountName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, primary: { serializedName: "primary", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, secondary: { serializedName: "secondary", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ActivateApplicationPackageParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ActivateApplicationPackageParameters", - modelProperties: { - format: { - serializedName: "format", - required: true, - type: { - name: "String" - } - } - } - } -}; +export const ActivateApplicationPackageParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ActivateApplicationPackageParameters", + modelProperties: { + format: { + serializedName: "format", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const ListApplicationsResult: coreClient.CompositeMapper = { type: { @@ -713,19 +714,19 @@ export const ListApplicationsResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Application" - } - } - } + className: "Application", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ListApplicationPackagesResult: coreClient.CompositeMapper = { @@ -740,19 +741,19 @@ export const ListApplicationPackagesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApplicationPackage" - } - } - } + className: "ApplicationPackage", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BatchLocationQuota: coreClient.CompositeMapper = { @@ -764,11 +765,11 @@ export const BatchLocationQuota: coreClient.CompositeMapper = { serializedName: "accountQuota", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const SupportedSkusResult: coreClient.CompositeMapper = { @@ -784,20 +785,20 @@ export const SupportedSkusResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SupportedSku" - } - } - } + className: "SupportedSku", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SupportedSku: coreClient.CompositeMapper = { @@ -809,15 +810,15 @@ export const SupportedSku: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, familyName: { serializedName: "familyName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, capabilities: { serializedName: "capabilities", @@ -827,13 +828,20 @@ export const SupportedSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SkuCapability" - } - } - } - } - } - } + className: "SkuCapability", + }, + }, + }, + }, + batchSupportEndOfLife: { + serializedName: "batchSupportEndOfLife", + readOnly: true, + type: { + name: "DateTime", + }, + }, + }, + }, }; export const SkuCapability: coreClient.CompositeMapper = { @@ -845,18 +853,18 @@ export const SkuCapability: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationListResult: coreClient.CompositeMapper = { @@ -871,19 +879,19 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } + className: "Operation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -894,37 +902,37 @@ export const Operation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, isDataAction: { serializedName: "isDataAction", type: { - name: "Boolean" - } + name: "Boolean", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } + className: "OperationDisplay", + }, }, origin: { serializedName: "origin", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -935,29 +943,29 @@ export const OperationDisplay: coreClient.CompositeMapper = { provider: { serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CheckNameAvailabilityParameters: coreClient.CompositeMapper = { @@ -969,19 +977,19 @@ export const CheckNameAvailabilityParameters: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, type: { defaultValue: "Microsoft.Batch/batchAccounts", isConstant: true, serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CheckNameAvailabilityResult: coreClient.CompositeMapper = { @@ -993,26 +1001,26 @@ export const CheckNameAvailabilityResult: coreClient.CompositeMapper = { serializedName: "nameAvailable", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, reason: { serializedName: "reason", readOnly: true, type: { name: "Enum", - allowedValues: ["Invalid", "AlreadyExists"] - } + allowedValues: ["Invalid", "AlreadyExists"], + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ListCertificatesResult: coreClient.CompositeMapper = { @@ -1027,19 +1035,19 @@ export const ListCertificatesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Certificate" - } - } - } + className: "Certificate", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeleteCertificateError: coreClient.CompositeMapper = { @@ -1051,21 +1059,21 @@ export const DeleteCertificateError: coreClient.CompositeMapper = { serializedName: "code", required: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", required: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -1074,13 +1082,13 @@ export const DeleteCertificateError: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DeleteCertificateError" - } - } - } - } - } - } + className: "DeleteCertificateError", + }, + }, + }, + }, + }, + }, }; export const CertificateBaseProperties: coreClient.CompositeMapper = { @@ -1091,24 +1099,24 @@ export const CertificateBaseProperties: coreClient.CompositeMapper = { thumbprintAlgorithm: { serializedName: "thumbprintAlgorithm", type: { - name: "String" - } + name: "String", + }, }, thumbprint: { serializedName: "thumbprint", type: { - name: "String" - } + name: "String", + }, }, format: { serializedName: "format", type: { name: "Enum", - allowedValues: ["Pfx", "Cer"] - } - } - } - } + allowedValues: ["Pfx", "Cer"], + }, + }, + }, + }, }; export const DetectorListResult: coreClient.CompositeMapper = { @@ -1123,19 +1131,19 @@ export const DetectorListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DetectorResponse" - } - } - } + className: "DetectorResponse", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ListPrivateLinkResourcesResult: coreClient.CompositeMapper = { @@ -1150,48 +1158,49 @@ export const ListPrivateLinkResourcesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" - } - } - } + className: "PrivateLinkResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const ListPrivateEndpointConnectionsResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ListPrivateEndpointConnectionsResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } + }, + }, }; +export const ListPrivateEndpointConnectionsResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ListPrivateEndpointConnectionsResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; + export const ListPoolsResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1204,19 +1213,19 @@ export const ListPoolsResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Pool" - } - } - } + className: "Pool", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeploymentConfiguration: coreClient.CompositeMapper = { @@ -1228,18 +1237,18 @@ export const DeploymentConfiguration: coreClient.CompositeMapper = { serializedName: "cloudServiceConfiguration", type: { name: "Composite", - className: "CloudServiceConfiguration" - } + className: "CloudServiceConfiguration", + }, }, virtualMachineConfiguration: { serializedName: "virtualMachineConfiguration", type: { name: "Composite", - className: "VirtualMachineConfiguration" - } - } - } - } + className: "VirtualMachineConfiguration", + }, + }, + }, + }, }; export const CloudServiceConfiguration: coreClient.CompositeMapper = { @@ -1251,17 +1260,17 @@ export const CloudServiceConfiguration: coreClient.CompositeMapper = { serializedName: "osFamily", required: true, type: { - name: "String" - } + name: "String", + }, }, osVersion: { serializedName: "osVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineConfiguration: coreClient.CompositeMapper = { @@ -1273,22 +1282,22 @@ export const VirtualMachineConfiguration: coreClient.CompositeMapper = { serializedName: "imageReference", type: { name: "Composite", - className: "ImageReference" - } + className: "ImageReference", + }, }, nodeAgentSkuId: { serializedName: "nodeAgentSkuId", required: true, type: { - name: "String" - } + name: "String", + }, }, windowsConfiguration: { serializedName: "windowsConfiguration", type: { name: "Composite", - className: "WindowsConfiguration" - } + className: "WindowsConfiguration", + }, }, dataDisks: { serializedName: "dataDisks", @@ -1297,37 +1306,37 @@ export const VirtualMachineConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataDisk" - } - } - } + className: "DataDisk", + }, + }, + }, }, licenseType: { serializedName: "licenseType", type: { - name: "String" - } + name: "String", + }, }, containerConfiguration: { serializedName: "containerConfiguration", type: { name: "Composite", - className: "ContainerConfiguration" - } + className: "ContainerConfiguration", + }, }, diskEncryptionConfiguration: { serializedName: "diskEncryptionConfiguration", type: { name: "Composite", - className: "DiskEncryptionConfiguration" - } + className: "DiskEncryptionConfiguration", + }, }, nodePlacementConfiguration: { serializedName: "nodePlacementConfiguration", type: { name: "Composite", - className: "NodePlacementConfiguration" - } + className: "NodePlacementConfiguration", + }, }, extensions: { serializedName: "extensions", @@ -1336,34 +1345,34 @@ export const VirtualMachineConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VMExtension" - } - } - } + className: "VMExtension", + }, + }, + }, }, osDisk: { serializedName: "osDisk", type: { name: "Composite", - className: "OSDisk" - } + className: "OSDisk", + }, }, securityProfile: { serializedName: "securityProfile", type: { name: "Composite", - className: "SecurityProfile" - } + className: "SecurityProfile", + }, }, serviceArtifactReference: { serializedName: "serviceArtifactReference", type: { name: "Composite", - className: "ServiceArtifactReference" - } - } - } - } + className: "ServiceArtifactReference", + }, + }, + }, + }, }; export const ImageReference: coreClient.CompositeMapper = { @@ -1374,36 +1383,35 @@ export const ImageReference: coreClient.CompositeMapper = { publisher: { serializedName: "publisher", type: { - name: "String" - } + name: "String", + }, }, offer: { serializedName: "offer", type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { - name: "String" - } + name: "String", + }, }, version: { - defaultValue: "latest", serializedName: "version", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WindowsConfiguration: coreClient.CompositeMapper = { @@ -1414,11 +1422,11 @@ export const WindowsConfiguration: coreClient.CompositeMapper = { enableAutomaticUpdates: { serializedName: "enableAutomaticUpdates", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const DataDisk: coreClient.CompositeMapper = { @@ -1430,32 +1438,32 @@ export const DataDisk: coreClient.CompositeMapper = { serializedName: "lun", required: true, type: { - name: "Number" - } + name: "Number", + }, }, caching: { serializedName: "caching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, diskSizeGB: { serializedName: "diskSizeGB", required: true, type: { - name: "Number" - } + name: "Number", + }, }, storageAccountType: { serializedName: "storageAccountType", type: { name: "Enum", - allowedValues: ["Standard_LRS", "Premium_LRS", "StandardSSD_LRS"] - } - } - } - } + allowedValues: ["Standard_LRS", "Premium_LRS", "StandardSSD_LRS"], + }, + }, + }, + }, }; export const ContainerConfiguration: coreClient.CompositeMapper = { @@ -1467,8 +1475,8 @@ export const ContainerConfiguration: coreClient.CompositeMapper = { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, containerImageNames: { serializedName: "containerImageNames", @@ -1476,10 +1484,10 @@ export const ContainerConfiguration: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, containerRegistries: { serializedName: "containerRegistries", @@ -1488,13 +1496,13 @@ export const ContainerConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ContainerRegistry" - } - } - } - } - } - } + className: "ContainerRegistry", + }, + }, + }, + }, + }, + }, }; export const ContainerRegistry: coreClient.CompositeMapper = { @@ -1505,30 +1513,30 @@ export const ContainerRegistry: coreClient.CompositeMapper = { userName: { serializedName: "username", type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "password", type: { - name: "String" - } + name: "String", + }, }, registryServer: { serializedName: "registryServer", type: { - name: "String" - } + name: "String", + }, }, identityReference: { serializedName: "identityReference", type: { name: "Composite", - className: "ComputeNodeIdentityReference" - } - } - } - } + className: "ComputeNodeIdentityReference", + }, + }, + }, + }, }; export const DiskEncryptionConfiguration: coreClient.CompositeMapper = { @@ -1543,13 +1551,13 @@ export const DiskEncryptionConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Enum", - allowedValues: ["OsDisk", "TemporaryDisk"] - } - } - } - } - } - } + allowedValues: ["OsDisk", "TemporaryDisk"], + }, + }, + }, + }, + }, + }, }; export const NodePlacementConfiguration: coreClient.CompositeMapper = { @@ -1561,11 +1569,11 @@ export const NodePlacementConfiguration: coreClient.CompositeMapper = { serializedName: "policy", type: { name: "Enum", - allowedValues: ["Regional", "Zonal"] - } - } - } - } + allowedValues: ["Regional", "Zonal"], + }, + }, + }, + }, }; export const VMExtension: coreClient.CompositeMapper = { @@ -1577,54 +1585,54 @@ export const VMExtension: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "publisher", required: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, typeHandlerVersion: { serializedName: "typeHandlerVersion", type: { - name: "String" - } + name: "String", + }, }, autoUpgradeMinorVersion: { serializedName: "autoUpgradeMinorVersion", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableAutomaticUpgrade: { serializedName: "enableAutomaticUpgrade", type: { - name: "Boolean" - } + name: "Boolean", + }, }, settings: { serializedName: "settings", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, protectedSettings: { serializedName: "protectedSettings", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, provisionAfterExtensions: { serializedName: "provisionAfterExtensions", @@ -1632,13 +1640,13 @@ export const VMExtension: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const OSDisk: coreClient.CompositeMapper = { @@ -1650,37 +1658,37 @@ export const OSDisk: coreClient.CompositeMapper = { serializedName: "ephemeralOSDiskSettings", type: { name: "Composite", - className: "DiffDiskSettings" - } + className: "DiffDiskSettings", + }, }, caching: { serializedName: "caching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "ManagedDisk" - } + className: "ManagedDisk", + }, }, diskSizeGB: { serializedName: "diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, writeAcceleratorEnabled: { serializedName: "writeAcceleratorEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const DiffDiskSettings: coreClient.CompositeMapper = { @@ -1693,11 +1701,11 @@ export const DiffDiskSettings: coreClient.CompositeMapper = { isConstant: true, serializedName: "placement", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedDisk: coreClient.CompositeMapper = { @@ -1709,11 +1717,11 @@ export const ManagedDisk: coreClient.CompositeMapper = { serializedName: "storageAccountType", type: { name: "Enum", - allowedValues: ["Standard_LRS", "Premium_LRS", "StandardSSD_LRS"] - } - } - } - } + allowedValues: ["Standard_LRS", "Premium_LRS", "StandardSSD_LRS"], + }, + }, + }, + }, }; export const SecurityProfile: coreClient.CompositeMapper = { @@ -1726,24 +1734,24 @@ export const SecurityProfile: coreClient.CompositeMapper = { isConstant: true, serializedName: "securityType", type: { - name: "String" - } + name: "String", + }, }, encryptionAtHost: { serializedName: "encryptionAtHost", type: { - name: "Boolean" - } + name: "Boolean", + }, }, uefiSettings: { serializedName: "uefiSettings", type: { name: "Composite", - className: "UefiSettings" - } - } - } - } + className: "UefiSettings", + }, + }, + }, + }, }; export const UefiSettings: coreClient.CompositeMapper = { @@ -1754,17 +1762,17 @@ export const UefiSettings: coreClient.CompositeMapper = { secureBootEnabled: { serializedName: "secureBootEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, vTpmEnabled: { serializedName: "vTpmEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ServiceArtifactReference: coreClient.CompositeMapper = { @@ -1776,11 +1784,11 @@ export const ServiceArtifactReference: coreClient.CompositeMapper = { serializedName: "id", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ScaleSettings: coreClient.CompositeMapper = { @@ -1792,18 +1800,18 @@ export const ScaleSettings: coreClient.CompositeMapper = { serializedName: "fixedScale", type: { name: "Composite", - className: "FixedScaleSettings" - } + className: "FixedScaleSettings", + }, }, autoScale: { serializedName: "autoScale", type: { name: "Composite", - className: "AutoScaleSettings" - } - } - } - } + className: "AutoScaleSettings", + }, + }, + }, + }, }; export const FixedScaleSettings: coreClient.CompositeMapper = { @@ -1815,20 +1823,20 @@ export const FixedScaleSettings: coreClient.CompositeMapper = { defaultValue: "PT15M", serializedName: "resizeTimeout", type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, targetDedicatedNodes: { serializedName: "targetDedicatedNodes", type: { - name: "Number" - } + name: "Number", + }, }, targetLowPriorityNodes: { serializedName: "targetLowPriorityNodes", type: { - name: "Number" - } + name: "Number", + }, }, nodeDeallocationOption: { serializedName: "nodeDeallocationOption", @@ -1838,12 +1846,12 @@ export const FixedScaleSettings: coreClient.CompositeMapper = { "Requeue", "Terminate", "TaskCompletion", - "RetainedData" - ] - } - } - } - } + "RetainedData", + ], + }, + }, + }, + }, }; export const AutoScaleSettings: coreClient.CompositeMapper = { @@ -1855,17 +1863,17 @@ export const AutoScaleSettings: coreClient.CompositeMapper = { serializedName: "formula", required: true, type: { - name: "String" - } + name: "String", + }, }, evaluationInterval: { serializedName: "evaluationInterval", type: { - name: "TimeSpan" - } - } - } - } + name: "TimeSpan", + }, + }, + }, + }, }; export const AutoScaleRun: coreClient.CompositeMapper = { @@ -1877,24 +1885,24 @@ export const AutoScaleRun: coreClient.CompositeMapper = { serializedName: "evaluationTime", required: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, results: { serializedName: "results", type: { - name: "String" - } + name: "String", + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "AutoScaleRunError" - } - } - } - } + className: "AutoScaleRunError", + }, + }, + }, + }, }; export const AutoScaleRunError: coreClient.CompositeMapper = { @@ -1906,15 +1914,15 @@ export const AutoScaleRunError: coreClient.CompositeMapper = { serializedName: "code", required: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", required: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -1923,13 +1931,13 @@ export const AutoScaleRunError: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AutoScaleRunError" - } - } - } - } - } - } + className: "AutoScaleRunError", + }, + }, + }, + }, + }, + }, }; export const NetworkConfiguration: coreClient.CompositeMapper = { @@ -1940,39 +1948,39 @@ export const NetworkConfiguration: coreClient.CompositeMapper = { subnetId: { serializedName: "subnetId", type: { - name: "String" - } + name: "String", + }, }, dynamicVnetAssignmentScope: { defaultValue: "none", serializedName: "dynamicVnetAssignmentScope", type: { name: "Enum", - allowedValues: ["none", "job"] - } + allowedValues: ["none", "job"], + }, }, endpointConfiguration: { serializedName: "endpointConfiguration", type: { name: "Composite", - className: "PoolEndpointConfiguration" - } + className: "PoolEndpointConfiguration", + }, }, publicIPAddressConfiguration: { serializedName: "publicIPAddressConfiguration", type: { name: "Composite", - className: "PublicIPAddressConfiguration" - } + className: "PublicIPAddressConfiguration", + }, }, enableAcceleratedNetworking: { serializedName: "enableAcceleratedNetworking", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const PoolEndpointConfiguration: coreClient.CompositeMapper = { @@ -1988,13 +1996,13 @@ export const PoolEndpointConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InboundNatPool" - } - } - } - } - } - } + className: "InboundNatPool", + }, + }, + }, + }, + }, + }, }; export const InboundNatPool: coreClient.CompositeMapper = { @@ -2006,37 +2014,37 @@ export const InboundNatPool: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, protocol: { serializedName: "protocol", required: true, type: { name: "Enum", - allowedValues: ["TCP", "UDP"] - } + allowedValues: ["TCP", "UDP"], + }, }, backendPort: { serializedName: "backendPort", required: true, type: { - name: "Number" - } + name: "Number", + }, }, frontendPortRangeStart: { serializedName: "frontendPortRangeStart", required: true, type: { - name: "Number" - } + name: "Number", + }, }, frontendPortRangeEnd: { serializedName: "frontendPortRangeEnd", required: true, type: { - name: "Number" - } + name: "Number", + }, }, networkSecurityGroupRules: { serializedName: "networkSecurityGroupRules", @@ -2045,13 +2053,13 @@ export const InboundNatPool: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NetworkSecurityGroupRule" - } - } - } - } - } - } + className: "NetworkSecurityGroupRule", + }, + }, + }, + }, + }, + }, }; export const NetworkSecurityGroupRule: coreClient.CompositeMapper = { @@ -2063,23 +2071,23 @@ export const NetworkSecurityGroupRule: coreClient.CompositeMapper = { serializedName: "priority", required: true, type: { - name: "Number" - } + name: "Number", + }, }, access: { serializedName: "access", required: true, type: { name: "Enum", - allowedValues: ["Allow", "Deny"] - } + allowedValues: ["Allow", "Deny"], + }, }, sourceAddressPrefix: { serializedName: "sourceAddressPrefix", required: true, type: { - name: "String" - } + name: "String", + }, }, sourcePortRanges: { serializedName: "sourcePortRanges", @@ -2087,13 +2095,13 @@ export const NetworkSecurityGroupRule: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const PublicIPAddressConfiguration: coreClient.CompositeMapper = { @@ -2105,8 +2113,8 @@ export const PublicIPAddressConfiguration: coreClient.CompositeMapper = { serializedName: "provision", type: { name: "Enum", - allowedValues: ["BatchManaged", "UserManaged", "NoPublicIPAddresses"] - } + allowedValues: ["BatchManaged", "UserManaged", "NoPublicIPAddresses"], + }, }, ipAddressIds: { serializedName: "ipAddressIds", @@ -2114,13 +2122,13 @@ export const PublicIPAddressConfiguration: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const TaskSchedulingPolicy: coreClient.CompositeMapper = { @@ -2134,11 +2142,11 @@ export const TaskSchedulingPolicy: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["Spread", "Pack"] - } - } - } - } + allowedValues: ["Spread", "Pack"], + }, + }, + }, + }, }; export const UserAccount: coreClient.CompositeMapper = { @@ -2150,39 +2158,39 @@ export const UserAccount: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "password", required: true, type: { - name: "String" - } + name: "String", + }, }, elevationLevel: { serializedName: "elevationLevel", type: { name: "Enum", - allowedValues: ["NonAdmin", "Admin"] - } + allowedValues: ["NonAdmin", "Admin"], + }, }, linuxUserConfiguration: { serializedName: "linuxUserConfiguration", type: { name: "Composite", - className: "LinuxUserConfiguration" - } + className: "LinuxUserConfiguration", + }, }, windowsUserConfiguration: { serializedName: "windowsUserConfiguration", type: { name: "Composite", - className: "WindowsUserConfiguration" - } - } - } - } + className: "WindowsUserConfiguration", + }, + }, + }, + }, }; export const LinuxUserConfiguration: coreClient.CompositeMapper = { @@ -2193,23 +2201,23 @@ export const LinuxUserConfiguration: coreClient.CompositeMapper = { uid: { serializedName: "uid", type: { - name: "Number" - } + name: "Number", + }, }, gid: { serializedName: "gid", type: { - name: "Number" - } + name: "Number", + }, }, sshPrivateKey: { serializedName: "sshPrivateKey", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WindowsUserConfiguration: coreClient.CompositeMapper = { @@ -2221,11 +2229,11 @@ export const WindowsUserConfiguration: coreClient.CompositeMapper = { serializedName: "loginMode", type: { name: "Enum", - allowedValues: ["Batch", "Interactive"] - } - } - } - } + allowedValues: ["Batch", "Interactive"], + }, + }, + }, + }, }; export const MetadataItem: coreClient.CompositeMapper = { @@ -2237,18 +2245,18 @@ export const MetadataItem: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const StartTask: coreClient.CompositeMapper = { @@ -2259,8 +2267,8 @@ export const StartTask: coreClient.CompositeMapper = { commandLine: { serializedName: "commandLine", type: { - name: "String" - } + name: "String", + }, }, resourceFiles: { serializedName: "resourceFiles", @@ -2269,10 +2277,10 @@ export const StartTask: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceFile" - } - } - } + className: "ResourceFile", + }, + }, + }, }, environmentSettings: { serializedName: "environmentSettings", @@ -2281,40 +2289,40 @@ export const StartTask: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EnvironmentSetting" - } - } - } + className: "EnvironmentSetting", + }, + }, + }, }, userIdentity: { serializedName: "userIdentity", type: { name: "Composite", - className: "UserIdentity" - } + className: "UserIdentity", + }, }, maxTaskRetryCount: { defaultValue: 0, serializedName: "maxTaskRetryCount", type: { - name: "Number" - } + name: "Number", + }, }, waitForSuccess: { serializedName: "waitForSuccess", type: { - name: "Boolean" - } + name: "Boolean", + }, }, containerSettings: { serializedName: "containerSettings", type: { name: "Composite", - className: "TaskContainerSettings" - } - } - } - } + className: "TaskContainerSettings", + }, + }, + }, + }, }; export const ResourceFile: coreClient.CompositeMapper = { @@ -2325,48 +2333,48 @@ export const ResourceFile: coreClient.CompositeMapper = { autoStorageContainerName: { serializedName: "autoStorageContainerName", type: { - name: "String" - } + name: "String", + }, }, storageContainerUrl: { serializedName: "storageContainerUrl", type: { - name: "String" - } + name: "String", + }, }, httpUrl: { serializedName: "httpUrl", type: { - name: "String" - } + name: "String", + }, }, blobPrefix: { serializedName: "blobPrefix", type: { - name: "String" - } + name: "String", + }, }, filePath: { serializedName: "filePath", type: { - name: "String" - } + name: "String", + }, }, fileMode: { serializedName: "fileMode", type: { - name: "String" - } + name: "String", + }, }, identityReference: { serializedName: "identityReference", type: { name: "Composite", - className: "ComputeNodeIdentityReference" - } - } - } - } + className: "ComputeNodeIdentityReference", + }, + }, + }, + }, }; export const EnvironmentSetting: coreClient.CompositeMapper = { @@ -2378,17 +2386,17 @@ export const EnvironmentSetting: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserIdentity: coreClient.CompositeMapper = { @@ -2399,18 +2407,18 @@ export const UserIdentity: coreClient.CompositeMapper = { userName: { serializedName: "userName", type: { - name: "String" - } + name: "String", + }, }, autoUser: { serializedName: "autoUser", type: { name: "Composite", - className: "AutoUserSpecification" - } - } - } - } + className: "AutoUserSpecification", + }, + }, + }, + }, }; export const AutoUserSpecification: coreClient.CompositeMapper = { @@ -2422,18 +2430,18 @@ export const AutoUserSpecification: coreClient.CompositeMapper = { serializedName: "scope", type: { name: "Enum", - allowedValues: ["Task", "Pool"] - } + allowedValues: ["Task", "Pool"], + }, }, elevationLevel: { serializedName: "elevationLevel", type: { name: "Enum", - allowedValues: ["NonAdmin", "Admin"] - } - } - } - } + allowedValues: ["NonAdmin", "Admin"], + }, + }, + }, + }, }; export const TaskContainerSettings: coreClient.CompositeMapper = { @@ -2444,32 +2452,32 @@ export const TaskContainerSettings: coreClient.CompositeMapper = { containerRunOptions: { serializedName: "containerRunOptions", type: { - name: "String" - } + name: "String", + }, }, imageName: { serializedName: "imageName", required: true, type: { - name: "String" - } + name: "String", + }, }, registry: { serializedName: "registry", type: { name: "Composite", - className: "ContainerRegistry" - } + className: "ContainerRegistry", + }, }, workingDirectory: { serializedName: "workingDirectory", type: { name: "Enum", - allowedValues: ["TaskWorkingDirectory", "ContainerImageDefault"] - } - } - } - } + allowedValues: ["TaskWorkingDirectory", "ContainerImageDefault"], + }, + }, + }, + }, }; export const CertificateReference: coreClient.CompositeMapper = { @@ -2481,21 +2489,21 @@ export const CertificateReference: coreClient.CompositeMapper = { serializedName: "id", required: true, type: { - name: "String" - } + name: "String", + }, }, storeLocation: { serializedName: "storeLocation", type: { name: "Enum", - allowedValues: ["CurrentUser", "LocalMachine"] - } + allowedValues: ["CurrentUser", "LocalMachine"], + }, }, storeName: { serializedName: "storeName", type: { - name: "String" - } + name: "String", + }, }, visibility: { serializedName: "visibility", @@ -2504,13 +2512,13 @@ export const CertificateReference: coreClient.CompositeMapper = { element: { type: { name: "Enum", - allowedValues: ["StartTask", "Task", "RemoteUser"] - } - } - } - } - } - } + allowedValues: ["StartTask", "Task", "RemoteUser"], + }, + }, + }, + }, + }, + }, }; export const ApplicationPackageReference: coreClient.CompositeMapper = { @@ -2522,17 +2530,17 @@ export const ApplicationPackageReference: coreClient.CompositeMapper = { serializedName: "id", required: true, type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResizeOperationStatus: coreClient.CompositeMapper = { @@ -2543,20 +2551,20 @@ export const ResizeOperationStatus: coreClient.CompositeMapper = { targetDedicatedNodes: { serializedName: "targetDedicatedNodes", type: { - name: "Number" - } + name: "Number", + }, }, targetLowPriorityNodes: { serializedName: "targetLowPriorityNodes", type: { - name: "Number" - } + name: "Number", + }, }, resizeTimeout: { serializedName: "resizeTimeout", type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, nodeDeallocationOption: { serializedName: "nodeDeallocationOption", @@ -2566,15 +2574,15 @@ export const ResizeOperationStatus: coreClient.CompositeMapper = { "Requeue", "Terminate", "TaskCompletion", - "RetainedData" - ] - } + "RetainedData", + ], + }, }, startTime: { serializedName: "startTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, errors: { serializedName: "errors", @@ -2583,13 +2591,13 @@ export const ResizeOperationStatus: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResizeError" - } - } - } - } - } - } + className: "ResizeError", + }, + }, + }, + }, + }, + }, }; export const ResizeError: coreClient.CompositeMapper = { @@ -2601,15 +2609,15 @@ export const ResizeError: coreClient.CompositeMapper = { serializedName: "code", required: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", required: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -2618,13 +2626,13 @@ export const ResizeError: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResizeError" - } - } - } - } - } - } + className: "ResizeError", + }, + }, + }, + }, + }, + }, }; export const MountConfiguration: coreClient.CompositeMapper = { @@ -2636,32 +2644,32 @@ export const MountConfiguration: coreClient.CompositeMapper = { serializedName: "azureBlobFileSystemConfiguration", type: { name: "Composite", - className: "AzureBlobFileSystemConfiguration" - } + className: "AzureBlobFileSystemConfiguration", + }, }, nfsMountConfiguration: { serializedName: "nfsMountConfiguration", type: { name: "Composite", - className: "NFSMountConfiguration" - } + className: "NFSMountConfiguration", + }, }, cifsMountConfiguration: { serializedName: "cifsMountConfiguration", type: { name: "Composite", - className: "CifsMountConfiguration" - } + className: "CifsMountConfiguration", + }, }, azureFileShareConfiguration: { serializedName: "azureFileShareConfiguration", type: { name: "Composite", - className: "AzureFileShareConfiguration" - } - } - } - } + className: "AzureFileShareConfiguration", + }, + }, + }, + }, }; export const AzureBlobFileSystemConfiguration: coreClient.CompositeMapper = { @@ -2673,50 +2681,50 @@ export const AzureBlobFileSystemConfiguration: coreClient.CompositeMapper = { serializedName: "accountName", required: true, type: { - name: "String" - } + name: "String", + }, }, containerName: { serializedName: "containerName", required: true, type: { - name: "String" - } + name: "String", + }, }, accountKey: { serializedName: "accountKey", type: { - name: "String" - } + name: "String", + }, }, sasKey: { serializedName: "sasKey", type: { - name: "String" - } + name: "String", + }, }, blobfuseOptions: { serializedName: "blobfuseOptions", type: { - name: "String" - } + name: "String", + }, }, relativeMountPath: { serializedName: "relativeMountPath", required: true, type: { - name: "String" - } + name: "String", + }, }, identityReference: { serializedName: "identityReference", type: { name: "Composite", - className: "ComputeNodeIdentityReference" - } - } - } - } + className: "ComputeNodeIdentityReference", + }, + }, + }, + }, }; export const NFSMountConfiguration: coreClient.CompositeMapper = { @@ -2728,24 +2736,24 @@ export const NFSMountConfiguration: coreClient.CompositeMapper = { serializedName: "source", required: true, type: { - name: "String" - } + name: "String", + }, }, relativeMountPath: { serializedName: "relativeMountPath", required: true, type: { - name: "String" - } + name: "String", + }, }, mountOptions: { serializedName: "mountOptions", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CifsMountConfiguration: coreClient.CompositeMapper = { @@ -2757,38 +2765,38 @@ export const CifsMountConfiguration: coreClient.CompositeMapper = { serializedName: "userName", required: true, type: { - name: "String" - } + name: "String", + }, }, source: { serializedName: "source", required: true, type: { - name: "String" - } + name: "String", + }, }, relativeMountPath: { serializedName: "relativeMountPath", required: true, type: { - name: "String" - } + name: "String", + }, }, mountOptions: { serializedName: "mountOptions", type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "password", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AzureFileShareConfiguration: coreClient.CompositeMapper = { @@ -2800,38 +2808,165 @@ export const AzureFileShareConfiguration: coreClient.CompositeMapper = { serializedName: "accountName", required: true, type: { - name: "String" - } + name: "String", + }, }, azureFileUrl: { serializedName: "azureFileUrl", required: true, type: { - name: "String" - } + name: "String", + }, }, accountKey: { serializedName: "accountKey", required: true, type: { - name: "String" - } + name: "String", + }, }, relativeMountPath: { serializedName: "relativeMountPath", required: true, type: { - name: "String" - } + name: "String", + }, }, mountOptions: { serializedName: "mountOptions", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const UpgradePolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpgradePolicy", + modelProperties: { + mode: { + serializedName: "mode", + required: true, + type: { + name: "Enum", + allowedValues: ["automatic", "manual", "rolling"], + }, + }, + automaticOSUpgradePolicy: { + serializedName: "automaticOSUpgradePolicy", + type: { + name: "Composite", + className: "AutomaticOSUpgradePolicy", + }, + }, + rollingUpgradePolicy: { + serializedName: "rollingUpgradePolicy", + type: { + name: "Composite", + className: "RollingUpgradePolicy", + }, + }, + }, + }, +}; + +export const AutomaticOSUpgradePolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutomaticOSUpgradePolicy", + modelProperties: { + disableAutomaticRollback: { + serializedName: "disableAutomaticRollback", + type: { + name: "Boolean", + }, + }, + enableAutomaticOSUpgrade: { + serializedName: "enableAutomaticOSUpgrade", + type: { + name: "Boolean", + }, + }, + useRollingUpgradePolicy: { + serializedName: "useRollingUpgradePolicy", + type: { + name: "Boolean", + }, + }, + osRollingUpgradeDeferral: { + serializedName: "osRollingUpgradeDeferral", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const RollingUpgradePolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RollingUpgradePolicy", + modelProperties: { + enableCrossZoneUpgrade: { + serializedName: "enableCrossZoneUpgrade", + type: { + name: "Boolean", + }, + }, + maxBatchInstancePercent: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 5, + }, + serializedName: "maxBatchInstancePercent", + type: { + name: "Number", + }, + }, + maxUnhealthyInstancePercent: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 5, + }, + serializedName: "maxUnhealthyInstancePercent", + type: { + name: "Number", + }, + }, + maxUnhealthyUpgradedInstancePercent: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0, + }, + serializedName: "maxUnhealthyUpgradedInstancePercent", + type: { + name: "Number", + }, + }, + pauseTimeBetweenBatches: { + serializedName: "pauseTimeBetweenBatches", + type: { + name: "String", + }, + }, + prioritizeUnhealthyInstances: { + serializedName: "prioritizeUnhealthyInstances", + type: { + name: "Boolean", + }, + }, + rollbackFailedInstancesOnPolicyBreach: { + serializedName: "rollbackFailedInstancesOnPolicyBreach", + type: { + name: "Boolean", + }, + }, + }, + }, }; export const BatchPoolIdentity: coreClient.CompositeMapper = { @@ -2844,50 +2979,51 @@ export const BatchPoolIdentity: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["UserAssigned", "None"] - } + allowedValues: ["UserAssigned", "None"], + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", type: { name: "Dictionary", value: { - type: { name: "Composite", className: "UserAssignedIdentities" } - } - } - } - } - } -}; - -export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OutboundEnvironmentEndpointCollection", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OutboundEnvironmentEndpoint" - } - } - } + type: { name: "Composite", className: "UserAssignedIdentities" }, + }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } + }, + }, }; +export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "OutboundEnvironmentEndpointCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OutboundEnvironmentEndpoint", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; + export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2897,8 +3033,8 @@ export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { serializedName: "category", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, endpoints: { serializedName: "endpoints", @@ -2908,13 +3044,13 @@ export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EndpointDependency" - } - } - } - } - } - } + className: "EndpointDependency", + }, + }, + }, + }, + }, + }, }; export const EndpointDependency: coreClient.CompositeMapper = { @@ -2926,15 +3062,15 @@ export const EndpointDependency: coreClient.CompositeMapper = { serializedName: "domainName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, endpointDetails: { serializedName: "endpointDetails", @@ -2944,13 +3080,13 @@ export const EndpointDependency: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EndpointDetail" - } - } - } - } - } - } + className: "EndpointDetail", + }, + }, + }, + }, + }, + }, }; export const EndpointDetail: coreClient.CompositeMapper = { @@ -2962,11 +3098,11 @@ export const EndpointDetail: coreClient.CompositeMapper = { serializedName: "port", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const AutoStorageProperties: coreClient.CompositeMapper = { @@ -2979,11 +3115,11 @@ export const AutoStorageProperties: coreClient.CompositeMapper = { serializedName: "lastKeySync", required: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const PrivateEndpointConnection: coreClient.CompositeMapper = { @@ -3003,16 +3139,16 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { "Deleting", "Succeeded", "Failed", - "Cancelled" - ] - } + "Cancelled", + ], + }, }, privateEndpoint: { serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "PrivateEndpoint" - } + className: "PrivateEndpoint", + }, }, groupIds: { serializedName: "properties.groupIds", @@ -3021,20 +3157,20 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, privateLinkServiceConnectionState: { serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState" - } - } - } - } + className: "PrivateLinkServiceConnectionState", + }, + }, + }, + }, }; export const ApplicationPackage: coreClient.CompositeMapper = { @@ -3048,39 +3184,39 @@ export const ApplicationPackage: coreClient.CompositeMapper = { readOnly: true, type: { name: "Enum", - allowedValues: ["Pending", "Active"] - } + allowedValues: ["Pending", "Active"], + }, }, format: { serializedName: "properties.format", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, storageUrl: { serializedName: "properties.storageUrl", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, storageUrlExpiry: { serializedName: "properties.storageUrlExpiry", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastActivationTime: { serializedName: "properties.lastActivationTime", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const Application: coreClient.CompositeMapper = { @@ -3092,23 +3228,23 @@ export const Application: coreClient.CompositeMapper = { displayName: { serializedName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, allowUpdates: { serializedName: "properties.allowUpdates", type: { - name: "Boolean" - } + name: "Boolean", + }, }, defaultVersion: { serializedName: "properties.defaultVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Certificate: coreClient.CompositeMapper = { @@ -3120,68 +3256,68 @@ export const Certificate: coreClient.CompositeMapper = { thumbprintAlgorithm: { serializedName: "properties.thumbprintAlgorithm", type: { - name: "String" - } + name: "String", + }, }, thumbprint: { serializedName: "properties.thumbprint", type: { - name: "String" - } + name: "String", + }, }, format: { serializedName: "properties.format", type: { name: "Enum", - allowedValues: ["Pfx", "Cer"] - } + allowedValues: ["Pfx", "Cer"], + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { name: "Enum", - allowedValues: ["Succeeded", "Deleting", "Failed"] - } + allowedValues: ["Succeeded", "Deleting", "Failed"], + }, }, provisioningStateTransitionTime: { serializedName: "properties.provisioningStateTransitionTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, previousProvisioningState: { serializedName: "properties.previousProvisioningState", readOnly: true, type: { name: "Enum", - allowedValues: ["Succeeded", "Deleting", "Failed"] - } + allowedValues: ["Succeeded", "Deleting", "Failed"], + }, }, previousProvisioningStateTransitionTime: { serializedName: "properties.previousProvisioningStateTransitionTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, publicData: { serializedName: "properties.publicData", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, deleteCertificateError: { serializedName: "properties.deleteCertificateError", type: { name: "Composite", - className: "DeleteCertificateError" - } - } - } - } + className: "DeleteCertificateError", + }, + }, + }, + }, }; export const CertificateCreateOrUpdateParameters: coreClient.CompositeMapper = { @@ -3193,36 +3329,36 @@ export const CertificateCreateOrUpdateParameters: coreClient.CompositeMapper = { thumbprintAlgorithm: { serializedName: "properties.thumbprintAlgorithm", type: { - name: "String" - } + name: "String", + }, }, thumbprint: { serializedName: "properties.thumbprint", type: { - name: "String" - } + name: "String", + }, }, format: { serializedName: "properties.format", type: { name: "Enum", - allowedValues: ["Pfx", "Cer"] - } + allowedValues: ["Pfx", "Cer"], + }, }, data: { serializedName: "properties.data", type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "properties.password", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DetectorResponse: coreClient.CompositeMapper = { @@ -3234,11 +3370,11 @@ export const DetectorResponse: coreClient.CompositeMapper = { value: { serializedName: "properties.value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResource: coreClient.CompositeMapper = { @@ -3251,8 +3387,8 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { serializedName: "properties.groupId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, requiredMembers: { serializedName: "properties.requiredMembers", @@ -3261,10 +3397,10 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, requiredZoneNames: { serializedName: "properties.requiredZoneNames", @@ -3273,13 +3409,13 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const Pool: coreClient.CompositeMapper = { @@ -3292,127 +3428,127 @@ export const Pool: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "BatchPoolIdentity" - } + className: "BatchPoolIdentity", + }, }, displayName: { serializedName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, lastModified: { serializedName: "properties.lastModified", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, creationTime: { serializedName: "properties.creationTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { name: "Enum", - allowedValues: ["Succeeded", "Deleting"] - } + allowedValues: ["Succeeded", "Deleting"], + }, }, provisioningStateTransitionTime: { serializedName: "properties.provisioningStateTransitionTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, allocationState: { serializedName: "properties.allocationState", readOnly: true, type: { name: "Enum", - allowedValues: ["Steady", "Resizing", "Stopping"] - } + allowedValues: ["Steady", "Resizing", "Stopping"], + }, }, allocationStateTransitionTime: { serializedName: "properties.allocationStateTransitionTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, vmSize: { serializedName: "properties.vmSize", type: { - name: "String" - } + name: "String", + }, }, deploymentConfiguration: { serializedName: "properties.deploymentConfiguration", type: { name: "Composite", - className: "DeploymentConfiguration" - } + className: "DeploymentConfiguration", + }, }, currentDedicatedNodes: { serializedName: "properties.currentDedicatedNodes", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, currentLowPriorityNodes: { serializedName: "properties.currentLowPriorityNodes", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, scaleSettings: { serializedName: "properties.scaleSettings", type: { name: "Composite", - className: "ScaleSettings" - } + className: "ScaleSettings", + }, }, autoScaleRun: { serializedName: "properties.autoScaleRun", type: { name: "Composite", - className: "AutoScaleRun" - } + className: "AutoScaleRun", + }, }, interNodeCommunication: { serializedName: "properties.interNodeCommunication", type: { name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } + allowedValues: ["Enabled", "Disabled"], + }, }, networkConfiguration: { serializedName: "properties.networkConfiguration", type: { name: "Composite", - className: "NetworkConfiguration" - } + className: "NetworkConfiguration", + }, }, taskSlotsPerNode: { defaultValue: 1, serializedName: "properties.taskSlotsPerNode", type: { - name: "Number" - } + name: "Number", + }, }, taskSchedulingPolicy: { serializedName: "properties.taskSchedulingPolicy", type: { name: "Composite", - className: "TaskSchedulingPolicy" - } + className: "TaskSchedulingPolicy", + }, }, userAccounts: { serializedName: "properties.userAccounts", @@ -3421,10 +3557,10 @@ export const Pool: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UserAccount" - } - } - } + className: "UserAccount", + }, + }, + }, }, metadata: { serializedName: "properties.metadata", @@ -3433,17 +3569,17 @@ export const Pool: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MetadataItem" - } - } - } + className: "MetadataItem", + }, + }, + }, }, startTask: { serializedName: "properties.startTask", type: { name: "Composite", - className: "StartTask" - } + className: "StartTask", + }, }, certificates: { serializedName: "properties.certificates", @@ -3452,10 +3588,10 @@ export const Pool: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CertificateReference" - } - } - } + className: "CertificateReference", + }, + }, + }, }, applicationPackages: { serializedName: "properties.applicationPackages", @@ -3464,10 +3600,10 @@ export const Pool: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApplicationPackageReference" - } - } - } + className: "ApplicationPackageReference", + }, + }, + }, }, applicationLicenses: { serializedName: "properties.applicationLicenses", @@ -3475,17 +3611,17 @@ export const Pool: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, resizeOperationStatus: { serializedName: "properties.resizeOperationStatus", type: { name: "Composite", - className: "ResizeOperationStatus" - } + className: "ResizeOperationStatus", + }, }, mountConfiguration: { serializedName: "properties.mountConfiguration", @@ -3494,17 +3630,17 @@ export const Pool: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MountConfiguration" - } - } - } + className: "MountConfiguration", + }, + }, + }, }, targetNodeCommunicationMode: { serializedName: "properties.targetNodeCommunicationMode", type: { name: "Enum", - allowedValues: ["Default", "Classic", "Simplified"] - } + allowedValues: ["Default", "Classic", "Simplified"], + }, }, currentNodeCommunicationMode: { serializedName: "properties.currentNodeCommunicationMode", @@ -3512,18 +3648,25 @@ export const Pool: coreClient.CompositeMapper = { nullable: true, type: { name: "Enum", - allowedValues: ["Default", "Classic", "Simplified"] - } + allowedValues: ["Default", "Classic", "Simplified"], + }, + }, + upgradePolicy: { + serializedName: "properties.upgradePolicy", + type: { + name: "Composite", + className: "UpgradePolicy", + }, }, resourceTags: { serializedName: "properties.resourceTags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const BatchAccount: coreClient.CompositeMapper = { @@ -3536,22 +3679,22 @@ export const BatchAccount: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "BatchAccountIdentity" - } + className: "BatchAccountIdentity", + }, }, accountEndpoint: { serializedName: "properties.accountEndpoint", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, nodeManagementEndpoint: { serializedName: "properties.nodeManagementEndpoint", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", @@ -3564,24 +3707,24 @@ export const BatchAccount: coreClient.CompositeMapper = { "Deleting", "Succeeded", "Failed", - "Cancelled" - ] - } + "Cancelled", + ], + }, }, poolAllocationMode: { serializedName: "properties.poolAllocationMode", readOnly: true, type: { name: "Enum", - allowedValues: ["BatchService", "UserSubscription"] - } + allowedValues: ["BatchService", "UserSubscription"], + }, }, keyVaultReference: { serializedName: "properties.keyVaultReference", type: { name: "Composite", - className: "KeyVaultReference" - } + className: "KeyVaultReference", + }, }, publicNetworkAccess: { defaultValue: "Enabled", @@ -3589,15 +3732,15 @@ export const BatchAccount: coreClient.CompositeMapper = { nullable: true, type: { name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } + allowedValues: ["Enabled", "Disabled"], + }, }, networkProfile: { serializedName: "properties.networkProfile", type: { name: "Composite", - className: "NetworkProfile" - } + className: "NetworkProfile", + }, }, privateEndpointConnections: { serializedName: "properties.privateEndpointConnections", @@ -3608,40 +3751,40 @@ export const BatchAccount: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, }, autoStorage: { serializedName: "properties.autoStorage", type: { name: "Composite", - className: "AutoStorageProperties" - } + className: "AutoStorageProperties", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "EncryptionProperties" - } + className: "EncryptionProperties", + }, }, dedicatedCoreQuota: { serializedName: "properties.dedicatedCoreQuota", readOnly: true, nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, lowPriorityCoreQuota: { serializedName: "properties.lowPriorityCoreQuota", readOnly: true, nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, dedicatedCoreQuotaPerVMFamily: { serializedName: "properties.dedicatedCoreQuotaPerVMFamily", @@ -3652,31 +3795,31 @@ export const BatchAccount: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineFamilyCoreQuota" - } - } - } + className: "VirtualMachineFamilyCoreQuota", + }, + }, + }, }, dedicatedCoreQuotaPerVMFamilyEnforced: { serializedName: "properties.dedicatedCoreQuotaPerVMFamilyEnforced", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, poolQuota: { serializedName: "properties.poolQuota", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, activeJobAndJobScheduleQuota: { serializedName: "properties.activeJobAndJobScheduleQuota", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, allowedAuthenticationModes: { serializedName: "properties.allowedAuthenticationModes", @@ -3687,13 +3830,13 @@ export const BatchAccount: coreClient.CompositeMapper = { element: { type: { name: "Enum", - allowedValues: ["SharedKey", "AAD", "TaskAuthenticationToken"] - } - } - } - } - } - } + allowedValues: ["SharedKey", "AAD", "TaskAuthenticationToken"], + }, + }, + }, + }, + }, + }, }; export const CertificateProperties: coreClient.CompositeMapper = { @@ -3707,47 +3850,47 @@ export const CertificateProperties: coreClient.CompositeMapper = { readOnly: true, type: { name: "Enum", - allowedValues: ["Succeeded", "Deleting", "Failed"] - } + allowedValues: ["Succeeded", "Deleting", "Failed"], + }, }, provisioningStateTransitionTime: { serializedName: "provisioningStateTransitionTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, previousProvisioningState: { serializedName: "previousProvisioningState", readOnly: true, type: { name: "Enum", - allowedValues: ["Succeeded", "Deleting", "Failed"] - } + allowedValues: ["Succeeded", "Deleting", "Failed"], + }, }, previousProvisioningStateTransitionTime: { serializedName: "previousProvisioningStateTransitionTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, publicData: { serializedName: "publicData", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, deleteCertificateError: { serializedName: "deleteCertificateError", type: { name: "Composite", - className: "DeleteCertificateError" - } - } - } - } + className: "DeleteCertificateError", + }, + }, + }, + }, }; export const CertificateCreateOrUpdateProperties: coreClient.CompositeMapper = { @@ -3760,17 +3903,17 @@ export const CertificateCreateOrUpdateProperties: coreClient.CompositeMapper = { serializedName: "data", required: true, type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "password", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BatchAccountCreateHeaders: coreClient.CompositeMapper = { @@ -3781,17 +3924,17 @@ export const BatchAccountCreateHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, retryAfter: { serializedName: "retry-after", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const BatchAccountDeleteHeaders: coreClient.CompositeMapper = { @@ -3802,17 +3945,17 @@ export const BatchAccountDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, retryAfter: { serializedName: "retry-after", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const CertificateCreateHeaders: coreClient.CompositeMapper = { @@ -3823,11 +3966,11 @@ export const CertificateCreateHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CertificateUpdateHeaders: coreClient.CompositeMapper = { @@ -3838,11 +3981,11 @@ export const CertificateUpdateHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CertificateDeleteHeaders: coreClient.CompositeMapper = { @@ -3853,17 +3996,17 @@ export const CertificateDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, retryAfter: { serializedName: "retry-after", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const CertificateGetHeaders: coreClient.CompositeMapper = { @@ -3874,11 +4017,11 @@ export const CertificateGetHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CertificateCancelDeletionHeaders: coreClient.CompositeMapper = { @@ -3889,54 +4032,56 @@ export const CertificateCancelDeletionHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } -}; - -export const PrivateEndpointConnectionUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnectionUpdateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } + name: "String", + }, }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - } - } - } + }, + }, }; -export const PrivateEndpointConnectionDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnectionDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - } - } - } -}; +export const PrivateEndpointConnectionUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PrivateEndpointConnectionUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, + }; + +export const PrivateEndpointConnectionDeleteHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PrivateEndpointConnectionDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, + }; export const PoolCreateHeaders: coreClient.CompositeMapper = { type: { @@ -3946,11 +4091,11 @@ export const PoolCreateHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PoolUpdateHeaders: coreClient.CompositeMapper = { @@ -3961,11 +4106,11 @@ export const PoolUpdateHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PoolDeleteHeaders: coreClient.CompositeMapper = { @@ -3976,17 +4121,17 @@ export const PoolDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, retryAfter: { serializedName: "retry-after", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const PoolGetHeaders: coreClient.CompositeMapper = { @@ -3997,11 +4142,11 @@ export const PoolGetHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PoolDisableAutoScaleHeaders: coreClient.CompositeMapper = { @@ -4012,11 +4157,11 @@ export const PoolDisableAutoScaleHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PoolStopResizeHeaders: coreClient.CompositeMapper = { @@ -4027,9 +4172,9 @@ export const PoolStopResizeHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; diff --git a/sdk/batch/arm-batch/src/models/parameters.ts b/sdk/batch/arm-batch/src/models/parameters.ts index 7705fbad524e..1a7a4ef11930 100644 --- a/sdk/batch/arm-batch/src/models/parameters.ts +++ b/sdk/batch/arm-batch/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { BatchAccountCreateParameters as BatchAccountCreateParametersMapper, @@ -21,7 +21,7 @@ import { CheckNameAvailabilityParameters as CheckNameAvailabilityParametersMapper, CertificateCreateOrUpdateParameters as CertificateCreateOrUpdateParametersMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, - Pool as PoolMapper + Pool as PoolMapper, } from "../models/mappers"; export const contentType: OperationParameter = { @@ -31,14 +31,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: BatchAccountCreateParametersMapper + mapper: BatchAccountCreateParametersMapper, }; export const accept: OperationParameter = { @@ -48,9 +48,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -59,10 +59,10 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const resourceGroupName: OperationURLParameter = { @@ -71,9 +71,9 @@ export const resourceGroupName: OperationURLParameter = { serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const accountName: OperationURLParameter = { @@ -82,26 +82,26 @@ export const accountName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-z0-9]+$"), MaxLength: 24, - MinLength: 3 + MinLength: 3, }, serializedName: "accountName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-11-01", + defaultValue: "2024-02-01", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const subscriptionId: OperationURLParameter = { @@ -110,14 +110,14 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters1: OperationParameter = { parameterPath: "parameters", - mapper: BatchAccountUpdateParametersMapper + mapper: BatchAccountUpdateParametersMapper, }; export const accountName1: OperationURLParameter = { @@ -126,19 +126,19 @@ export const accountName1: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9]+$"), MaxLength: 24, - MinLength: 3 + MinLength: 3, }, serializedName: "accountName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: BatchAccountRegenerateKeyParametersMapper + mapper: BatchAccountRegenerateKeyParametersMapper, }; export const detectorId: OperationURLParameter = { @@ -147,9 +147,9 @@ export const detectorId: OperationURLParameter = { serializedName: "detectorId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -158,15 +158,15 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: ActivateApplicationPackageParametersMapper + mapper: ActivateApplicationPackageParametersMapper, }; export const applicationName: OperationURLParameter = { @@ -175,14 +175,14 @@ export const applicationName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9_-]+$"), MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "applicationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const versionName: OperationURLParameter = { @@ -191,19 +191,19 @@ export const versionName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9_-][a-zA-Z0-9_.-]*$"), MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "versionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters4: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: ApplicationPackageMapper + mapper: ApplicationPackageMapper, }; export const maxresults: OperationQueryParameter = { @@ -211,19 +211,19 @@ export const maxresults: OperationQueryParameter = { mapper: { serializedName: "maxresults", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const parameters5: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: ApplicationMapper + mapper: ApplicationMapper, }; export const parameters6: OperationParameter = { parameterPath: "parameters", - mapper: ApplicationMapper + mapper: ApplicationMapper, }; export const locationName: OperationURLParameter = { @@ -232,9 +232,9 @@ export const locationName: OperationURLParameter = { serializedName: "locationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const filter: OperationQueryParameter = { @@ -242,14 +242,14 @@ export const filter: OperationQueryParameter = { mapper: { serializedName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters7: OperationParameter = { parameterPath: "parameters", - mapper: CheckNameAvailabilityParametersMapper + mapper: CheckNameAvailabilityParametersMapper, }; export const select: OperationQueryParameter = { @@ -257,14 +257,14 @@ export const select: OperationQueryParameter = { mapper: { serializedName: "$select", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters8: OperationParameter = { parameterPath: "parameters", - mapper: CertificateCreateOrUpdateParametersMapper + mapper: CertificateCreateOrUpdateParametersMapper, }; export const certificateName: OperationURLParameter = { @@ -273,14 +273,14 @@ export const certificateName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[\\w]+-[\\w]+$"), MaxLength: 45, - MinLength: 5 + MinLength: 5, }, serializedName: "certificateName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const ifMatch: OperationParameter = { @@ -288,9 +288,9 @@ export const ifMatch: OperationParameter = { mapper: { serializedName: "If-Match", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const ifNoneMatch: OperationParameter = { @@ -298,9 +298,9 @@ export const ifNoneMatch: OperationParameter = { mapper: { serializedName: "If-None-Match", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const privateLinkResourceName: OperationURLParameter = { @@ -309,14 +309,14 @@ export const privateLinkResourceName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9_-]+\\.?[a-fA-F0-9-]*$"), MaxLength: 101, - MinLength: 1 + MinLength: 1, }, serializedName: "privateLinkResourceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const privateEndpointConnectionName: OperationURLParameter = { @@ -325,24 +325,24 @@ export const privateEndpointConnectionName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9_-]+\\.?[a-fA-F0-9-]*$"), MaxLength: 101, - MinLength: 1 + MinLength: 1, }, serializedName: "privateEndpointConnectionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters9: OperationParameter = { parameterPath: "parameters", - mapper: PrivateEndpointConnectionMapper + mapper: PrivateEndpointConnectionMapper, }; export const parameters10: OperationParameter = { parameterPath: "parameters", - mapper: PoolMapper + mapper: PoolMapper, }; export const poolName: OperationURLParameter = { @@ -351,12 +351,12 @@ export const poolName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9_-]+$"), MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "poolName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; diff --git a/sdk/batch/arm-batch/src/operations/applicationOperations.ts b/sdk/batch/arm-batch/src/operations/applicationOperations.ts index f48191b33b65..7746f9c21924 100644 --- a/sdk/batch/arm-batch/src/operations/applicationOperations.ts +++ b/sdk/batch/arm-batch/src/operations/applicationOperations.ts @@ -25,7 +25,7 @@ import { ApplicationGetResponse, ApplicationUpdateOptionalParams, ApplicationUpdateResponse, - ApplicationListNextResponse + ApplicationListNextResponse, } from "../models"; /// @@ -50,7 +50,7 @@ export class ApplicationOperationsImpl implements ApplicationOperations { public list( resourceGroupName: string, accountName: string, - options?: ApplicationListOptionalParams + options?: ApplicationListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, accountName, options); return { @@ -68,9 +68,9 @@ export class ApplicationOperationsImpl implements ApplicationOperations { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -78,7 +78,7 @@ export class ApplicationOperationsImpl implements ApplicationOperations { resourceGroupName: string, accountName: string, options?: ApplicationListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApplicationListResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class ApplicationOperationsImpl implements ApplicationOperations { resourceGroupName, accountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -106,12 +106,12 @@ export class ApplicationOperationsImpl implements ApplicationOperations { private async *listPagingAll( resourceGroupName: string, accountName: string, - options?: ApplicationListOptionalParams + options?: ApplicationListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -128,11 +128,11 @@ export class ApplicationOperationsImpl implements ApplicationOperations { resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationCreateOptionalParams + options?: ApplicationCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, options }, - createOperationSpec + createOperationSpec, ); } @@ -147,11 +147,11 @@ export class ApplicationOperationsImpl implements ApplicationOperations { resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationDeleteOptionalParams + options?: ApplicationDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -166,11 +166,11 @@ export class ApplicationOperationsImpl implements ApplicationOperations { resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationGetOptionalParams + options?: ApplicationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, options }, - getOperationSpec + getOperationSpec, ); } @@ -187,11 +187,11 @@ export class ApplicationOperationsImpl implements ApplicationOperations { accountName: string, applicationName: string, parameters: Application, - options?: ApplicationUpdateOptionalParams + options?: ApplicationUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -204,11 +204,11 @@ export class ApplicationOperationsImpl implements ApplicationOperations { private _list( resourceGroupName: string, accountName: string, - options?: ApplicationListOptionalParams + options?: ApplicationListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listOperationSpec + listOperationSpec, ); } @@ -223,11 +223,11 @@ export class ApplicationOperationsImpl implements ApplicationOperations { resourceGroupName: string, accountName: string, nextLink: string, - options?: ApplicationListNextOptionalParams + options?: ApplicationListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -235,16 +235,15 @@ export class ApplicationOperationsImpl implements ApplicationOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Application + bodyMapper: Mappers.Application, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], @@ -253,22 +252,21 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.applicationName + Parameters.applicationName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -276,22 +274,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.applicationName + Parameters.applicationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Application + bodyMapper: Mappers.Application, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -299,22 +296,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.applicationName + Parameters.applicationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Application + bodyMapper: Mappers.Application, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], @@ -323,52 +319,51 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.applicationName + Parameters.applicationName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListApplicationsResult + bodyMapper: Mappers.ListApplicationsResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.maxresults], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListApplicationsResult + bodyMapper: Mappers.ListApplicationsResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/batch/arm-batch/src/operations/applicationPackageOperations.ts b/sdk/batch/arm-batch/src/operations/applicationPackageOperations.ts index 7ff1fbc2349c..414725719472 100644 --- a/sdk/batch/arm-batch/src/operations/applicationPackageOperations.ts +++ b/sdk/batch/arm-batch/src/operations/applicationPackageOperations.ts @@ -26,13 +26,14 @@ import { ApplicationPackageDeleteOptionalParams, ApplicationPackageGetOptionalParams, ApplicationPackageGetResponse, - ApplicationPackageListNextResponse + ApplicationPackageListNextResponse, } from "../models"; /// /** Class containing ApplicationPackageOperations operations. */ export class ApplicationPackageOperationsImpl - implements ApplicationPackageOperations { + implements ApplicationPackageOperations +{ private readonly client: BatchManagementClient; /** @@ -54,13 +55,13 @@ export class ApplicationPackageOperationsImpl resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationPackageListOptionalParams + options?: ApplicationPackageListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, accountName, applicationName, - options + options, ); return { next() { @@ -78,9 +79,9 @@ export class ApplicationPackageOperationsImpl accountName, applicationName, options, - settings + settings, ); - } + }, }; } @@ -89,7 +90,7 @@ export class ApplicationPackageOperationsImpl accountName: string, applicationName: string, options?: ApplicationPackageListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApplicationPackageListResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +99,7 @@ export class ApplicationPackageOperationsImpl resourceGroupName, accountName, applicationName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -111,7 +112,7 @@ export class ApplicationPackageOperationsImpl accountName, applicationName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -124,13 +125,13 @@ export class ApplicationPackageOperationsImpl resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationPackageListOptionalParams + options?: ApplicationPackageListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, accountName, applicationName, - options + options, )) { yield* page; } @@ -153,7 +154,7 @@ export class ApplicationPackageOperationsImpl applicationName: string, versionName: string, parameters: ActivateApplicationPackageParameters, - options?: ApplicationPackageActivateOptionalParams + options?: ApplicationPackageActivateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -162,9 +163,9 @@ export class ApplicationPackageOperationsImpl applicationName, versionName, parameters, - options + options, }, - activateOperationSpec + activateOperationSpec, ); } @@ -184,11 +185,11 @@ export class ApplicationPackageOperationsImpl accountName: string, applicationName: string, versionName: string, - options?: ApplicationPackageCreateOptionalParams + options?: ApplicationPackageCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, versionName, options }, - createOperationSpec + createOperationSpec, ); } @@ -205,11 +206,11 @@ export class ApplicationPackageOperationsImpl accountName: string, applicationName: string, versionName: string, - options?: ApplicationPackageDeleteOptionalParams + options?: ApplicationPackageDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, versionName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -226,11 +227,11 @@ export class ApplicationPackageOperationsImpl accountName: string, applicationName: string, versionName: string, - options?: ApplicationPackageGetOptionalParams + options?: ApplicationPackageGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, versionName, options }, - getOperationSpec + getOperationSpec, ); } @@ -245,11 +246,11 @@ export class ApplicationPackageOperationsImpl resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationPackageListOptionalParams + options?: ApplicationPackageListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, options }, - listOperationSpec + listOperationSpec, ); } @@ -266,11 +267,11 @@ export class ApplicationPackageOperationsImpl accountName: string, applicationName: string, nextLink: string, - options?: ApplicationPackageListNextOptionalParams + options?: ApplicationPackageListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -278,16 +279,15 @@ export class ApplicationPackageOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const activateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}/activate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}/activate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApplicationPackage + bodyMapper: Mappers.ApplicationPackage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], @@ -297,23 +297,22 @@ const activateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.accountName1, Parameters.applicationName, - Parameters.versionName + Parameters.versionName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApplicationPackage + bodyMapper: Mappers.ApplicationPackage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], @@ -323,22 +322,21 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.accountName1, Parameters.applicationName, - Parameters.versionName + Parameters.versionName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -347,22 +345,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.accountName1, Parameters.applicationName, - Parameters.versionName + Parameters.versionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationPackage + bodyMapper: Mappers.ApplicationPackage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -371,22 +368,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.accountName1, Parameters.applicationName, - Parameters.versionName + Parameters.versionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListApplicationPackagesResult + bodyMapper: Mappers.ListApplicationPackagesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.maxresults], urlParameters: [ @@ -394,21 +390,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.applicationName + Parameters.applicationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListApplicationPackagesResult + bodyMapper: Mappers.ListApplicationPackagesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -416,8 +412,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.accountName1, Parameters.nextLink, - Parameters.applicationName + Parameters.applicationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/batch/arm-batch/src/operations/batchAccountOperations.ts b/sdk/batch/arm-batch/src/operations/batchAccountOperations.ts index 212f700e901f..b7b7eedac253 100644 --- a/sdk/batch/arm-batch/src/operations/batchAccountOperations.ts +++ b/sdk/batch/arm-batch/src/operations/batchAccountOperations.ts @@ -16,7 +16,7 @@ import { BatchManagementClient } from "../batchManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -55,7 +55,7 @@ import { BatchAccountListNextResponse, BatchAccountListByResourceGroupNextResponse, BatchAccountListDetectorsNextResponse, - BatchAccountListOutboundNetworkDependenciesEndpointsNextResponse + BatchAccountListOutboundNetworkDependenciesEndpointsNextResponse, } from "../models"; /// @@ -76,7 +76,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { * @param options The options parameters. */ public list( - options?: BatchAccountListOptionalParams + options?: BatchAccountListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -91,13 +91,13 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: BatchAccountListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BatchAccountListResponse; let continuationToken = settings?.continuationToken; @@ -118,7 +118,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { } private async *listPagingAll( - options?: BatchAccountListOptionalParams + options?: BatchAccountListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -132,7 +132,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { */ public listByResourceGroup( resourceGroupName: string, - options?: BatchAccountListByResourceGroupOptionalParams + options?: BatchAccountListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -149,16 +149,16 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: BatchAccountListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BatchAccountListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -173,7 +173,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -184,11 +184,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: BatchAccountListByResourceGroupOptionalParams + options?: BatchAccountListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -203,12 +203,12 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { public listDetectors( resourceGroupName: string, accountName: string, - options?: BatchAccountListDetectorsOptionalParams + options?: BatchAccountListDetectorsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listDetectorsPagingAll( resourceGroupName, accountName, - options + options, ); return { next() { @@ -225,9 +225,9 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -235,7 +235,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, options?: BatchAccountListDetectorsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BatchAccountListDetectorsResponse; let continuationToken = settings?.continuationToken; @@ -243,7 +243,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { result = await this._listDetectors( resourceGroupName, accountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -255,7 +255,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName, accountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -267,12 +267,12 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { private async *listDetectorsPagingAll( resourceGroupName: string, accountName: string, - options?: BatchAccountListDetectorsOptionalParams + options?: BatchAccountListDetectorsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listDetectorsPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -284,7 +284,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { * you must make sure your network allows outbound access to these endpoints. Failure to allow access * to these endpoints may cause Batch to mark the affected nodes as unusable. For more information * about creating a pool inside of a virtual network, see - * https://docs.microsoft.com/azure/batch/batch-virtual-network. + * https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network. * @param resourceGroupName The name of the resource group that contains the Batch account. * @param accountName The name of the Batch account. * @param options The options parameters. @@ -292,12 +292,12 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { public listOutboundNetworkDependenciesEndpoints( resourceGroupName: string, accountName: string, - options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams + options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listOutboundNetworkDependenciesEndpointsPagingAll( resourceGroupName, accountName, - options + options, ); return { next() { @@ -314,9 +314,9 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -324,7 +324,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BatchAccountListOutboundNetworkDependenciesEndpointsResponse; let continuationToken = settings?.continuationToken; @@ -332,7 +332,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { result = await this._listOutboundNetworkDependenciesEndpoints( resourceGroupName, accountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -344,7 +344,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName, accountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -356,12 +356,12 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { private async *listOutboundNetworkDependenciesEndpointsPagingAll( resourceGroupName: string, accountName: string, - options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams + options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listOutboundNetworkDependenciesEndpointsPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -382,7 +382,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, parameters: BatchAccountCreateParameters, - options?: BatchAccountCreateOptionalParams + options?: BatchAccountCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -391,21 +391,20 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -414,8 +413,8 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -423,15 +422,15 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, parameters, options }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< BatchAccountCreateResponse, @@ -439,7 +438,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -460,13 +459,13 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, parameters: BatchAccountCreateParameters, - options?: BatchAccountCreateOptionalParams + options?: BatchAccountCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, accountName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -482,11 +481,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, parameters: BatchAccountUpdateParameters, - options?: BatchAccountUpdateOptionalParams + options?: BatchAccountUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -499,25 +498,24 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { async beginDelete( resourceGroupName: string, accountName: string, - options?: BatchAccountDeleteOptionalParams + options?: BatchAccountDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -526,8 +524,8 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -535,20 +533,20 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -563,12 +561,12 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { async beginDeleteAndWait( resourceGroupName: string, accountName: string, - options?: BatchAccountDeleteOptionalParams + options?: BatchAccountDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, - options + options, ); return poller.pollUntilDone(); } @@ -582,11 +580,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { get( resourceGroupName: string, accountName: string, - options?: BatchAccountGetOptionalParams + options?: BatchAccountGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - getOperationSpec + getOperationSpec, ); } @@ -595,7 +593,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { * @param options The options parameters. */ private _list( - options?: BatchAccountListOptionalParams + options?: BatchAccountListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -607,11 +605,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { */ private _listByResourceGroup( resourceGroupName: string, - options?: BatchAccountListByResourceGroupOptionalParams + options?: BatchAccountListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -625,11 +623,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { synchronizeAutoStorageKeys( resourceGroupName: string, accountName: string, - options?: BatchAccountSynchronizeAutoStorageKeysOptionalParams + options?: BatchAccountSynchronizeAutoStorageKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - synchronizeAutoStorageKeysOperationSpec + synchronizeAutoStorageKeysOperationSpec, ); } @@ -647,11 +645,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, parameters: BatchAccountRegenerateKeyParameters, - options?: BatchAccountRegenerateKeyOptionalParams + options?: BatchAccountRegenerateKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, parameters, options }, - regenerateKeyOperationSpec + regenerateKeyOperationSpec, ); } @@ -667,11 +665,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { getKeys( resourceGroupName: string, accountName: string, - options?: BatchAccountGetKeysOptionalParams + options?: BatchAccountGetKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - getKeysOperationSpec + getKeysOperationSpec, ); } @@ -684,11 +682,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { private _listDetectors( resourceGroupName: string, accountName: string, - options?: BatchAccountListDetectorsOptionalParams + options?: BatchAccountListDetectorsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listDetectorsOperationSpec + listDetectorsOperationSpec, ); } @@ -703,11 +701,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, detectorId: string, - options?: BatchAccountGetDetectorOptionalParams + options?: BatchAccountGetDetectorOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, detectorId, options }, - getDetectorOperationSpec + getDetectorOperationSpec, ); } @@ -717,7 +715,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { * you must make sure your network allows outbound access to these endpoints. Failure to allow access * to these endpoints may cause Batch to mark the affected nodes as unusable. For more information * about creating a pool inside of a virtual network, see - * https://docs.microsoft.com/azure/batch/batch-virtual-network. + * https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network. * @param resourceGroupName The name of the resource group that contains the Batch account. * @param accountName The name of the Batch account. * @param options The options parameters. @@ -725,11 +723,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { private _listOutboundNetworkDependenciesEndpoints( resourceGroupName: string, accountName: string, - options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams + options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listOutboundNetworkDependenciesEndpointsOperationSpec + listOutboundNetworkDependenciesEndpointsOperationSpec, ); } @@ -740,11 +738,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { */ private _listNext( nextLink: string, - options?: BatchAccountListNextOptionalParams + options?: BatchAccountListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -757,11 +755,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: BatchAccountListByResourceGroupNextOptionalParams + options?: BatchAccountListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -776,11 +774,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, nextLink: string, - options?: BatchAccountListDetectorsNextOptionalParams + options?: BatchAccountListDetectorsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, nextLink, options }, - listDetectorsNextOperationSpec + listDetectorsNextOperationSpec, ); } @@ -796,11 +794,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, nextLink: string, - options?: BatchAccountListOutboundNetworkDependenciesEndpointsNextOptionalParams + options?: BatchAccountListOutboundNetworkDependenciesEndpointsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, nextLink, options }, - listOutboundNetworkDependenciesEndpointsNextOperationSpec + listOutboundNetworkDependenciesEndpointsNextOperationSpec, ); } } @@ -808,25 +806,24 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.BatchAccount + bodyMapper: Mappers.BatchAccount, }, 201: { - bodyMapper: Mappers.BatchAccount + bodyMapper: Mappers.BatchAccount, }, 202: { - bodyMapper: Mappers.BatchAccount + bodyMapper: Mappers.BatchAccount, }, 204: { - bodyMapper: Mappers.BatchAccount + bodyMapper: Mappers.BatchAccount, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], @@ -834,23 +831,22 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.accountName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.BatchAccount + bodyMapper: Mappers.BatchAccount, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], @@ -858,15 +854,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", httpMethod: "DELETE", responses: { 200: {}, @@ -874,110 +869,105 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BatchAccount + bodyMapper: Mappers.BatchAccount, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BatchAccountListResult + bodyMapper: Mappers.BatchAccountListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BatchAccountListResult + bodyMapper: Mappers.BatchAccountListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const synchronizeAutoStorageKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const regenerateKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.BatchAccountKeys + bodyMapper: Mappers.BatchAccountKeys, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], @@ -985,67 +975,64 @@ const regenerateKeyOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const getKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.BatchAccountKeys + bodyMapper: Mappers.BatchAccountKeys, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listDetectorsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DetectorListResult + bodyMapper: Mappers.DetectorListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getDetectorOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors/{detectorId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors/{detectorId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DetectorResponse + bodyMapper: Mappers.DetectorResponse, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1053,111 +1040,112 @@ const getDetectorOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.detectorId + Parameters.detectorId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/outboundNetworkDependenciesEndpoints", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OutboundEnvironmentEndpointCollection +const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/outboundNetworkDependenciesEndpoints", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OutboundEnvironmentEndpointCollection, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.accountName1 - ], - headerParameters: [Parameters.accept], - serializer -}; + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.accountName1, + ], + headerParameters: [Parameters.accept], + serializer, + }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BatchAccountListResult + bodyMapper: Mappers.BatchAccountListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BatchAccountListResult + bodyMapper: Mappers.BatchAccountListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listDetectorsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DetectorListResult + bodyMapper: Mappers.DetectorListResult, }, default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.accountName1, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; -const listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OutboundEnvironmentEndpointCollection + bodyMapper: Mappers.CloudError, }, - default: { - bodyMapper: Mappers.CloudError - } }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; +const listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OutboundEnvironmentEndpointCollection, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.accountName1, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/batch/arm-batch/src/operations/certificateOperations.ts b/sdk/batch/arm-batch/src/operations/certificateOperations.ts index faf4b1e9145a..476b5ff3a10e 100644 --- a/sdk/batch/arm-batch/src/operations/certificateOperations.ts +++ b/sdk/batch/arm-batch/src/operations/certificateOperations.ts @@ -16,7 +16,7 @@ import { BatchManagementClient } from "../batchManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -34,7 +34,7 @@ import { CertificateGetResponse, CertificateCancelDeletionOptionalParams, CertificateCancelDeletionResponse, - CertificateListByBatchAccountNextResponse + CertificateListByBatchAccountNextResponse, } from "../models"; /// @@ -61,12 +61,12 @@ export class CertificateOperationsImpl implements CertificateOperations { public listByBatchAccount( resourceGroupName: string, accountName: string, - options?: CertificateListByBatchAccountOptionalParams + options?: CertificateListByBatchAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByBatchAccountPagingAll( resourceGroupName, accountName, - options + options, ); return { next() { @@ -83,9 +83,9 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -93,7 +93,7 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName: string, accountName: string, options?: CertificateListByBatchAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CertificateListByBatchAccountResponse; let continuationToken = settings?.continuationToken; @@ -101,7 +101,7 @@ export class CertificateOperationsImpl implements CertificateOperations { result = await this._listByBatchAccount( resourceGroupName, accountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -113,7 +113,7 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName, accountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -125,12 +125,12 @@ export class CertificateOperationsImpl implements CertificateOperations { private async *listByBatchAccountPagingAll( resourceGroupName: string, accountName: string, - options?: CertificateListByBatchAccountOptionalParams + options?: CertificateListByBatchAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByBatchAccountPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -147,11 +147,11 @@ export class CertificateOperationsImpl implements CertificateOperations { private _listByBatchAccount( resourceGroupName: string, accountName: string, - options?: CertificateListByBatchAccountOptionalParams + options?: CertificateListByBatchAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listByBatchAccountOperationSpec + listByBatchAccountOperationSpec, ); } @@ -172,11 +172,11 @@ export class CertificateOperationsImpl implements CertificateOperations { accountName: string, certificateName: string, parameters: CertificateCreateOrUpdateParameters, - options?: CertificateCreateOptionalParams + options?: CertificateCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, certificateName, parameters, options }, - createOperationSpec + createOperationSpec, ); } @@ -197,11 +197,11 @@ export class CertificateOperationsImpl implements CertificateOperations { accountName: string, certificateName: string, parameters: CertificateCreateOrUpdateParameters, - options?: CertificateUpdateOptionalParams + options?: CertificateUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, certificateName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -220,25 +220,24 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName: string, accountName: string, certificateName: string, - options?: CertificateDeleteOptionalParams + options?: CertificateDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -247,8 +246,8 @@ export class CertificateOperationsImpl implements CertificateOperations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -256,20 +255,20 @@ export class CertificateOperationsImpl implements CertificateOperations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, certificateName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -290,13 +289,13 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName: string, accountName: string, certificateName: string, - options?: CertificateDeleteOptionalParams + options?: CertificateDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, certificateName, - options + options, ); return poller.pollUntilDone(); } @@ -316,11 +315,11 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName: string, accountName: string, certificateName: string, - options?: CertificateGetOptionalParams + options?: CertificateGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, certificateName, options }, - getOperationSpec + getOperationSpec, ); } @@ -346,11 +345,11 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName: string, accountName: string, certificateName: string, - options?: CertificateCancelDeletionOptionalParams + options?: CertificateCancelDeletionOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, certificateName, options }, - cancelDeletionOperationSpec + cancelDeletionOperationSpec, ); } @@ -365,11 +364,11 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName: string, accountName: string, nextLink: string, - options?: CertificateListByBatchAccountNextOptionalParams + options?: CertificateListByBatchAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, nextLink, options }, - listByBatchAccountNextOperationSpec + listByBatchAccountNextOperationSpec, ); } } @@ -377,44 +376,42 @@ export class CertificateOperationsImpl implements CertificateOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByBatchAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListCertificatesResult + bodyMapper: Mappers.ListCertificatesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.maxresults, Parameters.filter, - Parameters.select + Parameters.select, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.Certificate, - headersMapper: Mappers.CertificateCreateHeaders + headersMapper: Mappers.CertificateCreateHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], @@ -423,29 +420,28 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [ Parameters.contentType, Parameters.accept, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.Certificate, - headersMapper: Mappers.CertificateUpdateHeaders + headersMapper: Mappers.CertificateUpdateHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], @@ -454,19 +450,18 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [ Parameters.contentType, Parameters.accept, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", httpMethod: "DELETE", responses: { 200: {}, @@ -474,8 +469,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -483,23 +478,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.Certificate, - headersMapper: Mappers.CertificateGetHeaders + headersMapper: Mappers.CertificateGetHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -507,23 +501,22 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const cancelDeletionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}/cancelDelete", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}/cancelDelete", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.Certificate, - headersMapper: Mappers.CertificateCancelDeletionHeaders + headersMapper: Mappers.CertificateCancelDeletionHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -531,29 +524,29 @@ const cancelDeletionOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByBatchAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListCertificatesResult + bodyMapper: Mappers.ListCertificatesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/batch/arm-batch/src/operations/location.ts b/sdk/batch/arm-batch/src/operations/location.ts index 2efa1d7f3919..8d6d8e9f7262 100644 --- a/sdk/batch/arm-batch/src/operations/location.ts +++ b/sdk/batch/arm-batch/src/operations/location.ts @@ -27,7 +27,7 @@ import { LocationCheckNameAvailabilityOptionalParams, LocationCheckNameAvailabilityResponse, LocationListSupportedVirtualMachineSkusNextResponse, - LocationListSupportedCloudServiceSkusNextResponse + LocationListSupportedCloudServiceSkusNextResponse, } from "../models"; /// @@ -50,11 +50,11 @@ export class LocationImpl implements Location { */ public listSupportedVirtualMachineSkus( locationName: string, - options?: LocationListSupportedVirtualMachineSkusOptionalParams + options?: LocationListSupportedVirtualMachineSkusOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listSupportedVirtualMachineSkusPagingAll( locationName, - options + options, ); return { next() { @@ -70,23 +70,23 @@ export class LocationImpl implements Location { return this.listSupportedVirtualMachineSkusPagingPage( locationName, options, - settings + settings, ); - } + }, }; } private async *listSupportedVirtualMachineSkusPagingPage( locationName: string, options?: LocationListSupportedVirtualMachineSkusOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: LocationListSupportedVirtualMachineSkusResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._listSupportedVirtualMachineSkus( locationName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -97,7 +97,7 @@ export class LocationImpl implements Location { result = await this._listSupportedVirtualMachineSkusNext( locationName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -108,11 +108,11 @@ export class LocationImpl implements Location { private async *listSupportedVirtualMachineSkusPagingAll( locationName: string, - options?: LocationListSupportedVirtualMachineSkusOptionalParams + options?: LocationListSupportedVirtualMachineSkusOptionalParams, ): AsyncIterableIterator { for await (const page of this.listSupportedVirtualMachineSkusPagingPage( locationName, - options + options, )) { yield* page; } @@ -125,11 +125,11 @@ export class LocationImpl implements Location { */ public listSupportedCloudServiceSkus( locationName: string, - options?: LocationListSupportedCloudServiceSkusOptionalParams + options?: LocationListSupportedCloudServiceSkusOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listSupportedCloudServiceSkusPagingAll( locationName, - options + options, ); return { next() { @@ -145,16 +145,16 @@ export class LocationImpl implements Location { return this.listSupportedCloudServiceSkusPagingPage( locationName, options, - settings + settings, ); - } + }, }; } private async *listSupportedCloudServiceSkusPagingPage( locationName: string, options?: LocationListSupportedCloudServiceSkusOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: LocationListSupportedCloudServiceSkusResponse; let continuationToken = settings?.continuationToken; @@ -169,7 +169,7 @@ export class LocationImpl implements Location { result = await this._listSupportedCloudServiceSkusNext( locationName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -180,11 +180,11 @@ export class LocationImpl implements Location { private async *listSupportedCloudServiceSkusPagingAll( locationName: string, - options?: LocationListSupportedCloudServiceSkusOptionalParams + options?: LocationListSupportedCloudServiceSkusOptionalParams, ): AsyncIterableIterator { for await (const page of this.listSupportedCloudServiceSkusPagingPage( locationName, - options + options, )) { yield* page; } @@ -197,11 +197,11 @@ export class LocationImpl implements Location { */ getQuotas( locationName: string, - options?: LocationGetQuotasOptionalParams + options?: LocationGetQuotasOptionalParams, ): Promise { return this.client.sendOperationRequest( { locationName, options }, - getQuotasOperationSpec + getQuotasOperationSpec, ); } @@ -212,11 +212,11 @@ export class LocationImpl implements Location { */ private _listSupportedVirtualMachineSkus( locationName: string, - options?: LocationListSupportedVirtualMachineSkusOptionalParams + options?: LocationListSupportedVirtualMachineSkusOptionalParams, ): Promise { return this.client.sendOperationRequest( { locationName, options }, - listSupportedVirtualMachineSkusOperationSpec + listSupportedVirtualMachineSkusOperationSpec, ); } @@ -227,11 +227,11 @@ export class LocationImpl implements Location { */ private _listSupportedCloudServiceSkus( locationName: string, - options?: LocationListSupportedCloudServiceSkusOptionalParams + options?: LocationListSupportedCloudServiceSkusOptionalParams, ): Promise { return this.client.sendOperationRequest( { locationName, options }, - listSupportedCloudServiceSkusOperationSpec + listSupportedCloudServiceSkusOperationSpec, ); } @@ -244,11 +244,11 @@ export class LocationImpl implements Location { checkNameAvailability( locationName: string, parameters: CheckNameAvailabilityParameters, - options?: LocationCheckNameAvailabilityOptionalParams + options?: LocationCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { locationName, parameters, options }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, ); } @@ -262,11 +262,11 @@ export class LocationImpl implements Location { private _listSupportedVirtualMachineSkusNext( locationName: string, nextLink: string, - options?: LocationListSupportedVirtualMachineSkusNextOptionalParams + options?: LocationListSupportedVirtualMachineSkusNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { locationName, nextLink, options }, - listSupportedVirtualMachineSkusNextOperationSpec + listSupportedVirtualMachineSkusNextOperationSpec, ); } @@ -280,11 +280,11 @@ export class LocationImpl implements Location { private _listSupportedCloudServiceSkusNext( locationName: string, nextLink: string, - options?: LocationListSupportedCloudServiceSkusNextOptionalParams + options?: LocationListSupportedCloudServiceSkusNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { locationName, nextLink, options }, - listSupportedCloudServiceSkusNextOperationSpec + listSupportedCloudServiceSkusNextOperationSpec, ); } } @@ -292,136 +292,134 @@ export class LocationImpl implements Location { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getQuotasOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BatchLocationQuota + bodyMapper: Mappers.BatchLocationQuota, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSupportedVirtualMachineSkusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/virtualMachineSkus", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/virtualMachineSkus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SupportedSkusResult + bodyMapper: Mappers.SupportedSkusResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.maxresults, - Parameters.filter + Parameters.filter, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSupportedCloudServiceSkusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/cloudServiceSkus", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/cloudServiceSkus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SupportedSkusResult + bodyMapper: Mappers.SupportedSkusResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.maxresults, - Parameters.filter + Parameters.filter, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckNameAvailabilityResult + bodyMapper: Mappers.CheckNameAvailabilityResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; -const listSupportedVirtualMachineSkusNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SupportedSkusResult +const listSupportedVirtualMachineSkusNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SupportedSkusResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.locationName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listSupportedCloudServiceSkusNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SupportedSkusResult + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.locationName, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const listSupportedCloudServiceSkusNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SupportedSkusResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.locationName - ], - headerParameters: [Parameters.accept], - serializer -}; + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.locationName, + ], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/batch/arm-batch/src/operations/operations.ts b/sdk/batch/arm-batch/src/operations/operations.ts index 517211c24fa2..a52f58db23c0 100644 --- a/sdk/batch/arm-batch/src/operations/operations.ts +++ b/sdk/batch/arm-batch/src/operations/operations.ts @@ -18,7 +18,7 @@ import { OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, - OperationsListNextResponse + OperationsListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class OperationsImpl implements Operations { */ private _listNext( nextLink: string, - options?: OperationsListNextOptionalParams + options?: OperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/batch/arm-batch/src/operations/poolOperations.ts b/sdk/batch/arm-batch/src/operations/poolOperations.ts index f4338b80c41c..f86c261cf03d 100644 --- a/sdk/batch/arm-batch/src/operations/poolOperations.ts +++ b/sdk/batch/arm-batch/src/operations/poolOperations.ts @@ -16,7 +16,7 @@ import { BatchManagementClient } from "../batchManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -35,7 +35,7 @@ import { PoolDisableAutoScaleResponse, PoolStopResizeOptionalParams, PoolStopResizeResponse, - PoolListByBatchAccountNextResponse + PoolListByBatchAccountNextResponse, } from "../models"; /// @@ -60,12 +60,12 @@ export class PoolOperationsImpl implements PoolOperations { public listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PoolListByBatchAccountOptionalParams + options?: PoolListByBatchAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByBatchAccountPagingAll( resourceGroupName, accountName, - options + options, ); return { next() { @@ -82,9 +82,9 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -92,7 +92,7 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName: string, accountName: string, options?: PoolListByBatchAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PoolListByBatchAccountResponse; let continuationToken = settings?.continuationToken; @@ -100,7 +100,7 @@ export class PoolOperationsImpl implements PoolOperations { result = await this._listByBatchAccount( resourceGroupName, accountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -112,7 +112,7 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName, accountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -124,12 +124,12 @@ export class PoolOperationsImpl implements PoolOperations { private async *listByBatchAccountPagingAll( resourceGroupName: string, accountName: string, - options?: PoolListByBatchAccountOptionalParams + options?: PoolListByBatchAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByBatchAccountPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -144,11 +144,11 @@ export class PoolOperationsImpl implements PoolOperations { private _listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PoolListByBatchAccountOptionalParams + options?: PoolListByBatchAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listByBatchAccountOperationSpec + listByBatchAccountOperationSpec, ); } @@ -165,11 +165,11 @@ export class PoolOperationsImpl implements PoolOperations { accountName: string, poolName: string, parameters: Pool, - options?: PoolCreateOptionalParams + options?: PoolCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, parameters, options }, - createOperationSpec + createOperationSpec, ); } @@ -187,11 +187,11 @@ export class PoolOperationsImpl implements PoolOperations { accountName: string, poolName: string, parameters: Pool, - options?: PoolUpdateOptionalParams + options?: PoolUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -206,25 +206,24 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolDeleteOptionalParams + options?: PoolDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -233,8 +232,8 @@ export class PoolOperationsImpl implements PoolOperations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -242,20 +241,20 @@ export class PoolOperationsImpl implements PoolOperations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -272,13 +271,13 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolDeleteOptionalParams + options?: PoolDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, poolName, - options + options, ); return poller.pollUntilDone(); } @@ -294,11 +293,11 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolGetOptionalParams + options?: PoolGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, options }, - getOperationSpec + getOperationSpec, ); } @@ -313,11 +312,11 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolDisableAutoScaleOptionalParams + options?: PoolDisableAutoScaleOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, options }, - disableAutoScaleOperationSpec + disableAutoScaleOperationSpec, ); } @@ -337,11 +336,11 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolStopResizeOptionalParams + options?: PoolStopResizeOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, options }, - stopResizeOperationSpec + stopResizeOperationSpec, ); } @@ -356,11 +355,11 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName: string, accountName: string, nextLink: string, - options?: PoolListByBatchAccountNextOptionalParams + options?: PoolListByBatchAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, nextLink, options }, - listByBatchAccountNextOperationSpec + listByBatchAccountNextOperationSpec, ); } } @@ -368,44 +367,42 @@ export class PoolOperationsImpl implements PoolOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByBatchAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListPoolsResult + bodyMapper: Mappers.ListPoolsResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.maxresults, Parameters.filter, - Parameters.select + Parameters.select, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.Pool, - headersMapper: Mappers.PoolCreateHeaders + headersMapper: Mappers.PoolCreateHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], @@ -414,29 +411,28 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.poolName + Parameters.poolName, ], headerParameters: [ Parameters.contentType, Parameters.accept, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.Pool, - headersMapper: Mappers.PoolUpdateHeaders + headersMapper: Mappers.PoolUpdateHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], @@ -445,19 +441,18 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.poolName + Parameters.poolName, ], headerParameters: [ Parameters.contentType, Parameters.accept, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", httpMethod: "DELETE", responses: { 200: {}, @@ -465,8 +460,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -474,23 +469,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.poolName + Parameters.poolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.Pool, - headersMapper: Mappers.PoolGetHeaders + headersMapper: Mappers.PoolGetHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -498,23 +492,22 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.poolName + Parameters.poolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const disableAutoScaleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/disableAutoScale", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/disableAutoScale", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.Pool, - headersMapper: Mappers.PoolDisableAutoScaleHeaders + headersMapper: Mappers.PoolDisableAutoScaleHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -522,23 +515,22 @@ const disableAutoScaleOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.poolName + Parameters.poolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const stopResizeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.Pool, - headersMapper: Mappers.PoolStopResizeHeaders + headersMapper: Mappers.PoolStopResizeHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -546,29 +538,29 @@ const stopResizeOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.poolName + Parameters.poolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByBatchAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListPoolsResult + bodyMapper: Mappers.ListPoolsResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/batch/arm-batch/src/operations/privateEndpointConnectionOperations.ts b/sdk/batch/arm-batch/src/operations/privateEndpointConnectionOperations.ts index 9b9a50fda5b7..fa382ce0dd81 100644 --- a/sdk/batch/arm-batch/src/operations/privateEndpointConnectionOperations.ts +++ b/sdk/batch/arm-batch/src/operations/privateEndpointConnectionOperations.ts @@ -16,7 +16,7 @@ import { BatchManagementClient } from "../batchManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -30,13 +30,14 @@ import { PrivateEndpointConnectionUpdateResponse, PrivateEndpointConnectionDeleteOptionalParams, PrivateEndpointConnectionDeleteResponse, - PrivateEndpointConnectionListByBatchAccountNextResponse + PrivateEndpointConnectionListByBatchAccountNextResponse, } from "../models"; /// /** Class containing PrivateEndpointConnectionOperations operations. */ export class PrivateEndpointConnectionOperationsImpl - implements PrivateEndpointConnectionOperations { + implements PrivateEndpointConnectionOperations +{ private readonly client: BatchManagementClient; /** @@ -56,12 +57,12 @@ export class PrivateEndpointConnectionOperationsImpl public listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PrivateEndpointConnectionListByBatchAccountOptionalParams + options?: PrivateEndpointConnectionListByBatchAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByBatchAccountPagingAll( resourceGroupName, accountName, - options + options, ); return { next() { @@ -78,9 +79,9 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -88,7 +89,7 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, accountName: string, options?: PrivateEndpointConnectionListByBatchAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateEndpointConnectionListByBatchAccountResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +97,7 @@ export class PrivateEndpointConnectionOperationsImpl result = await this._listByBatchAccount( resourceGroupName, accountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -108,7 +109,7 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName, accountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,12 +121,12 @@ export class PrivateEndpointConnectionOperationsImpl private async *listByBatchAccountPagingAll( resourceGroupName: string, accountName: string, - options?: PrivateEndpointConnectionListByBatchAccountOptionalParams + options?: PrivateEndpointConnectionListByBatchAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByBatchAccountPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -140,11 +141,11 @@ export class PrivateEndpointConnectionOperationsImpl private _listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PrivateEndpointConnectionListByBatchAccountOptionalParams + options?: PrivateEndpointConnectionListByBatchAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listByBatchAccountOperationSpec + listByBatchAccountOperationSpec, ); } @@ -160,16 +161,16 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionGetOptionalParams + options?: PrivateEndpointConnectionGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, privateEndpointConnectionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -188,7 +189,7 @@ export class PrivateEndpointConnectionOperationsImpl accountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, - options?: PrivateEndpointConnectionUpdateOptionalParams + options?: PrivateEndpointConnectionUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -197,21 +198,20 @@ export class PrivateEndpointConnectionOperationsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -220,8 +220,8 @@ export class PrivateEndpointConnectionOperationsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -229,8 +229,8 @@ export class PrivateEndpointConnectionOperationsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -241,9 +241,9 @@ export class PrivateEndpointConnectionOperationsImpl accountName, privateEndpointConnectionName, parameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< PrivateEndpointConnectionUpdateResponse, @@ -251,7 +251,7 @@ export class PrivateEndpointConnectionOperationsImpl >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -272,14 +272,14 @@ export class PrivateEndpointConnectionOperationsImpl accountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, - options?: PrivateEndpointConnectionUpdateOptionalParams + options?: PrivateEndpointConnectionUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, accountName, privateEndpointConnectionName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -296,7 +296,7 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionDeleteOptionalParams + options?: PrivateEndpointConnectionDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -305,21 +305,20 @@ export class PrivateEndpointConnectionOperationsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -328,8 +327,8 @@ export class PrivateEndpointConnectionOperationsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -337,8 +336,8 @@ export class PrivateEndpointConnectionOperationsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -348,9 +347,9 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName, accountName, privateEndpointConnectionName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller< PrivateEndpointConnectionDeleteResponse, @@ -358,7 +357,7 @@ export class PrivateEndpointConnectionOperationsImpl >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -376,13 +375,13 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionDeleteOptionalParams + options?: PrivateEndpointConnectionDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, privateEndpointConnectionName, - options + options, ); return poller.pollUntilDone(); } @@ -398,11 +397,11 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, accountName: string, nextLink: string, - options?: PrivateEndpointConnectionListByBatchAccountNextOptionalParams + options?: PrivateEndpointConnectionListByBatchAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, nextLink, options }, - listByBatchAccountNextOperationSpec + listByBatchAccountNextOperationSpec, ); } } @@ -410,38 +409,36 @@ export class PrivateEndpointConnectionOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByBatchAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListPrivateEndpointConnectionsResult + bodyMapper: Mappers.ListPrivateEndpointConnectionsResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.maxresults], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -449,31 +446,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 201: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 202: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 204: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], @@ -482,36 +478,35 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [ Parameters.contentType, Parameters.accept, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: { - headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders + headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders, }, 201: { - headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders + headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders, }, 202: { - headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders + headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders, }, 204: { - headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders + headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -519,29 +514,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByBatchAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListPrivateEndpointConnectionsResult + bodyMapper: Mappers.ListPrivateEndpointConnectionsResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/batch/arm-batch/src/operations/privateLinkResourceOperations.ts b/sdk/batch/arm-batch/src/operations/privateLinkResourceOperations.ts index b5bde5b736b5..d623320f73d5 100644 --- a/sdk/batch/arm-batch/src/operations/privateLinkResourceOperations.ts +++ b/sdk/batch/arm-batch/src/operations/privateLinkResourceOperations.ts @@ -20,13 +20,14 @@ import { PrivateLinkResourceListByBatchAccountResponse, PrivateLinkResourceGetOptionalParams, PrivateLinkResourceGetResponse, - PrivateLinkResourceListByBatchAccountNextResponse + PrivateLinkResourceListByBatchAccountNextResponse, } from "../models"; /// /** Class containing PrivateLinkResourceOperations operations. */ export class PrivateLinkResourceOperationsImpl - implements PrivateLinkResourceOperations { + implements PrivateLinkResourceOperations +{ private readonly client: BatchManagementClient; /** @@ -46,12 +47,12 @@ export class PrivateLinkResourceOperationsImpl public listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PrivateLinkResourceListByBatchAccountOptionalParams + options?: PrivateLinkResourceListByBatchAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByBatchAccountPagingAll( resourceGroupName, accountName, - options + options, ); return { next() { @@ -68,9 +69,9 @@ export class PrivateLinkResourceOperationsImpl resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -78,7 +79,7 @@ export class PrivateLinkResourceOperationsImpl resourceGroupName: string, accountName: string, options?: PrivateLinkResourceListByBatchAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateLinkResourceListByBatchAccountResponse; let continuationToken = settings?.continuationToken; @@ -86,7 +87,7 @@ export class PrivateLinkResourceOperationsImpl result = await this._listByBatchAccount( resourceGroupName, accountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -98,7 +99,7 @@ export class PrivateLinkResourceOperationsImpl resourceGroupName, accountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -110,12 +111,12 @@ export class PrivateLinkResourceOperationsImpl private async *listByBatchAccountPagingAll( resourceGroupName: string, accountName: string, - options?: PrivateLinkResourceListByBatchAccountOptionalParams + options?: PrivateLinkResourceListByBatchAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByBatchAccountPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -130,11 +131,11 @@ export class PrivateLinkResourceOperationsImpl private _listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PrivateLinkResourceListByBatchAccountOptionalParams + options?: PrivateLinkResourceListByBatchAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listByBatchAccountOperationSpec + listByBatchAccountOperationSpec, ); } @@ -150,11 +151,11 @@ export class PrivateLinkResourceOperationsImpl resourceGroupName: string, accountName: string, privateLinkResourceName: string, - options?: PrivateLinkResourceGetOptionalParams + options?: PrivateLinkResourceGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, privateLinkResourceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -169,11 +170,11 @@ export class PrivateLinkResourceOperationsImpl resourceGroupName: string, accountName: string, nextLink: string, - options?: PrivateLinkResourceListByBatchAccountNextOptionalParams + options?: PrivateLinkResourceListByBatchAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, nextLink, options }, - listByBatchAccountNextOperationSpec + listByBatchAccountNextOperationSpec, ); } } @@ -181,38 +182,36 @@ export class PrivateLinkResourceOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByBatchAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListPrivateLinkResourcesResult + bodyMapper: Mappers.ListPrivateLinkResourcesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.maxresults], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources/{privateLinkResourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources/{privateLinkResourceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResource + bodyMapper: Mappers.PrivateLinkResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -220,29 +219,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.privateLinkResourceName + Parameters.privateLinkResourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByBatchAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListPrivateLinkResourcesResult + bodyMapper: Mappers.ListPrivateLinkResourcesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/applicationOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/applicationOperations.ts index 3f4ee2745ef6..54afaa1c9773 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/applicationOperations.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/applicationOperations.ts @@ -16,7 +16,7 @@ import { ApplicationGetOptionalParams, ApplicationGetResponse, ApplicationUpdateOptionalParams, - ApplicationUpdateResponse + ApplicationUpdateResponse, } from "../models"; /// @@ -31,7 +31,7 @@ export interface ApplicationOperations { list( resourceGroupName: string, accountName: string, - options?: ApplicationListOptionalParams + options?: ApplicationListOptionalParams, ): PagedAsyncIterableIterator; /** * Adds an application to the specified Batch account. @@ -44,7 +44,7 @@ export interface ApplicationOperations { resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationCreateOptionalParams + options?: ApplicationCreateOptionalParams, ): Promise; /** * Deletes an application. @@ -57,7 +57,7 @@ export interface ApplicationOperations { resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationDeleteOptionalParams + options?: ApplicationDeleteOptionalParams, ): Promise; /** * Gets information about the specified application. @@ -70,7 +70,7 @@ export interface ApplicationOperations { resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationGetOptionalParams + options?: ApplicationGetOptionalParams, ): Promise; /** * Updates settings for the specified application. @@ -85,6 +85,6 @@ export interface ApplicationOperations { accountName: string, applicationName: string, parameters: Application, - options?: ApplicationUpdateOptionalParams + options?: ApplicationUpdateOptionalParams, ): Promise; } diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/applicationPackageOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/applicationPackageOperations.ts index 4f2fea8c6fb8..51b1989f82d0 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/applicationPackageOperations.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/applicationPackageOperations.ts @@ -17,7 +17,7 @@ import { ApplicationPackageCreateResponse, ApplicationPackageDeleteOptionalParams, ApplicationPackageGetOptionalParams, - ApplicationPackageGetResponse + ApplicationPackageGetResponse, } from "../models"; /// @@ -34,7 +34,7 @@ export interface ApplicationPackageOperations { resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationPackageListOptionalParams + options?: ApplicationPackageListOptionalParams, ): PagedAsyncIterableIterator; /** * Activates the specified application package. This should be done after the `ApplicationPackage` was @@ -53,7 +53,7 @@ export interface ApplicationPackageOperations { applicationName: string, versionName: string, parameters: ActivateApplicationPackageParameters, - options?: ApplicationPackageActivateOptionalParams + options?: ApplicationPackageActivateOptionalParams, ): Promise; /** * Creates an application package record. The record contains a storageUrl where the package should be @@ -71,7 +71,7 @@ export interface ApplicationPackageOperations { accountName: string, applicationName: string, versionName: string, - options?: ApplicationPackageCreateOptionalParams + options?: ApplicationPackageCreateOptionalParams, ): Promise; /** * Deletes an application package record and its associated binary file. @@ -86,7 +86,7 @@ export interface ApplicationPackageOperations { accountName: string, applicationName: string, versionName: string, - options?: ApplicationPackageDeleteOptionalParams + options?: ApplicationPackageDeleteOptionalParams, ): Promise; /** * Gets information about the specified application package. @@ -101,6 +101,6 @@ export interface ApplicationPackageOperations { accountName: string, applicationName: string, versionName: string, - options?: ApplicationPackageGetOptionalParams + options?: ApplicationPackageGetOptionalParams, ): Promise; } diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/batchAccountOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/batchAccountOperations.ts index eaf5581f29f0..973966fb8a00 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/batchAccountOperations.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/batchAccountOperations.ts @@ -32,7 +32,7 @@ import { BatchAccountGetKeysOptionalParams, BatchAccountGetKeysResponse, BatchAccountGetDetectorOptionalParams, - BatchAccountGetDetectorResponse + BatchAccountGetDetectorResponse, } from "../models"; /// @@ -43,7 +43,7 @@ export interface BatchAccountOperations { * @param options The options parameters. */ list( - options?: BatchAccountListOptionalParams + options?: BatchAccountListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets information about the Batch accounts associated with the specified resource group. @@ -52,7 +52,7 @@ export interface BatchAccountOperations { */ listByResourceGroup( resourceGroupName: string, - options?: BatchAccountListByResourceGroupOptionalParams + options?: BatchAccountListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Gets information about the detectors available for a given Batch account. @@ -63,7 +63,7 @@ export interface BatchAccountOperations { listDetectors( resourceGroupName: string, accountName: string, - options?: BatchAccountListDetectorsOptionalParams + options?: BatchAccountListDetectorsOptionalParams, ): PagedAsyncIterableIterator; /** * Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch @@ -71,7 +71,7 @@ export interface BatchAccountOperations { * you must make sure your network allows outbound access to these endpoints. Failure to allow access * to these endpoints may cause Batch to mark the affected nodes as unusable. For more information * about creating a pool inside of a virtual network, see - * https://docs.microsoft.com/azure/batch/batch-virtual-network. + * https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network. * @param resourceGroupName The name of the resource group that contains the Batch account. * @param accountName The name of the Batch account. * @param options The options parameters. @@ -79,7 +79,7 @@ export interface BatchAccountOperations { listOutboundNetworkDependenciesEndpoints( resourceGroupName: string, accountName: string, - options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams + options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams, ): PagedAsyncIterableIterator; /** * Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with @@ -96,7 +96,7 @@ export interface BatchAccountOperations { resourceGroupName: string, accountName: string, parameters: BatchAccountCreateParameters, - options?: BatchAccountCreateOptionalParams + options?: BatchAccountCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -118,7 +118,7 @@ export interface BatchAccountOperations { resourceGroupName: string, accountName: string, parameters: BatchAccountCreateParameters, - options?: BatchAccountCreateOptionalParams + options?: BatchAccountCreateOptionalParams, ): Promise; /** * Updates the properties of an existing Batch account. @@ -131,7 +131,7 @@ export interface BatchAccountOperations { resourceGroupName: string, accountName: string, parameters: BatchAccountUpdateParameters, - options?: BatchAccountUpdateOptionalParams + options?: BatchAccountUpdateOptionalParams, ): Promise; /** * Deletes the specified Batch account. @@ -142,7 +142,7 @@ export interface BatchAccountOperations { beginDelete( resourceGroupName: string, accountName: string, - options?: BatchAccountDeleteOptionalParams + options?: BatchAccountDeleteOptionalParams, ): Promise, void>>; /** * Deletes the specified Batch account. @@ -153,7 +153,7 @@ export interface BatchAccountOperations { beginDeleteAndWait( resourceGroupName: string, accountName: string, - options?: BatchAccountDeleteOptionalParams + options?: BatchAccountDeleteOptionalParams, ): Promise; /** * Gets information about the specified Batch account. @@ -164,7 +164,7 @@ export interface BatchAccountOperations { get( resourceGroupName: string, accountName: string, - options?: BatchAccountGetOptionalParams + options?: BatchAccountGetOptionalParams, ): Promise; /** * Synchronizes access keys for the auto-storage account configured for the specified Batch account, @@ -176,7 +176,7 @@ export interface BatchAccountOperations { synchronizeAutoStorageKeys( resourceGroupName: string, accountName: string, - options?: BatchAccountSynchronizeAutoStorageKeysOptionalParams + options?: BatchAccountSynchronizeAutoStorageKeysOptionalParams, ): Promise; /** * This operation applies only to Batch accounts with allowedAuthenticationModes containing @@ -192,7 +192,7 @@ export interface BatchAccountOperations { resourceGroupName: string, accountName: string, parameters: BatchAccountRegenerateKeyParameters, - options?: BatchAccountRegenerateKeyOptionalParams + options?: BatchAccountRegenerateKeyOptionalParams, ): Promise; /** * This operation applies only to Batch accounts with allowedAuthenticationModes containing @@ -206,7 +206,7 @@ export interface BatchAccountOperations { getKeys( resourceGroupName: string, accountName: string, - options?: BatchAccountGetKeysOptionalParams + options?: BatchAccountGetKeysOptionalParams, ): Promise; /** * Gets information about the given detector for a given Batch account. @@ -219,6 +219,6 @@ export interface BatchAccountOperations { resourceGroupName: string, accountName: string, detectorId: string, - options?: BatchAccountGetDetectorOptionalParams + options?: BatchAccountGetDetectorOptionalParams, ): Promise; } diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/certificateOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/certificateOperations.ts index 0d1dcf9ae7d9..a4bc93abed5f 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/certificateOperations.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/certificateOperations.ts @@ -20,7 +20,7 @@ import { CertificateGetOptionalParams, CertificateGetResponse, CertificateCancelDeletionOptionalParams, - CertificateCancelDeletionResponse + CertificateCancelDeletionResponse, } from "../models"; /// @@ -37,7 +37,7 @@ export interface CertificateOperations { listByBatchAccount( resourceGroupName: string, accountName: string, - options?: CertificateListByBatchAccountOptionalParams + options?: CertificateListByBatchAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Warning: This operation is deprecated and will be removed after February, 2024. Please use the @@ -56,7 +56,7 @@ export interface CertificateOperations { accountName: string, certificateName: string, parameters: CertificateCreateOrUpdateParameters, - options?: CertificateCreateOptionalParams + options?: CertificateCreateOptionalParams, ): Promise; /** * Warning: This operation is deprecated and will be removed after February, 2024. Please use the @@ -75,7 +75,7 @@ export interface CertificateOperations { accountName: string, certificateName: string, parameters: CertificateCreateOrUpdateParameters, - options?: CertificateUpdateOptionalParams + options?: CertificateUpdateOptionalParams, ): Promise; /** * Warning: This operation is deprecated and will be removed after February, 2024. Please use the @@ -92,7 +92,7 @@ export interface CertificateOperations { resourceGroupName: string, accountName: string, certificateName: string, - options?: CertificateDeleteOptionalParams + options?: CertificateDeleteOptionalParams, ): Promise, void>>; /** * Warning: This operation is deprecated and will be removed after February, 2024. Please use the @@ -109,7 +109,7 @@ export interface CertificateOperations { resourceGroupName: string, accountName: string, certificateName: string, - options?: CertificateDeleteOptionalParams + options?: CertificateDeleteOptionalParams, ): Promise; /** * Warning: This operation is deprecated and will be removed after February, 2024. Please use the @@ -126,7 +126,7 @@ export interface CertificateOperations { resourceGroupName: string, accountName: string, certificateName: string, - options?: CertificateGetOptionalParams + options?: CertificateGetOptionalParams, ): Promise; /** * If you try to delete a certificate that is being used by a pool or compute node, the status of the @@ -150,6 +150,6 @@ export interface CertificateOperations { resourceGroupName: string, accountName: string, certificateName: string, - options?: CertificateCancelDeletionOptionalParams + options?: CertificateCancelDeletionOptionalParams, ): Promise; } diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/location.ts b/sdk/batch/arm-batch/src/operationsInterfaces/location.ts index c7d73327a815..1c488bb65dd4 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/location.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/location.ts @@ -15,7 +15,7 @@ import { LocationGetQuotasResponse, CheckNameAvailabilityParameters, LocationCheckNameAvailabilityOptionalParams, - LocationCheckNameAvailabilityResponse + LocationCheckNameAvailabilityResponse, } from "../models"; /// @@ -28,7 +28,7 @@ export interface Location { */ listSupportedVirtualMachineSkus( locationName: string, - options?: LocationListSupportedVirtualMachineSkusOptionalParams + options?: LocationListSupportedVirtualMachineSkusOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the list of Batch supported Cloud Service VM sizes available at the given location. @@ -37,7 +37,7 @@ export interface Location { */ listSupportedCloudServiceSkus( locationName: string, - options?: LocationListSupportedCloudServiceSkusOptionalParams + options?: LocationListSupportedCloudServiceSkusOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the Batch service quotas for the specified subscription at the given location. @@ -46,7 +46,7 @@ export interface Location { */ getQuotas( locationName: string, - options?: LocationGetQuotasOptionalParams + options?: LocationGetQuotasOptionalParams, ): Promise; /** * Checks whether the Batch account name is available in the specified region. @@ -57,6 +57,6 @@ export interface Location { checkNameAvailability( locationName: string, parameters: CheckNameAvailabilityParameters, - options?: LocationCheckNameAvailabilityOptionalParams + options?: LocationCheckNameAvailabilityOptionalParams, ): Promise; } diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/operations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/operations.ts index f80e7aeb4620..e0110fed929d 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/operations.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/operations.ts @@ -17,6 +17,6 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/poolOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/poolOperations.ts index 0949ed1456a7..39c49e4cab1a 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/poolOperations.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/poolOperations.ts @@ -21,7 +21,7 @@ import { PoolDisableAutoScaleOptionalParams, PoolDisableAutoScaleResponse, PoolStopResizeOptionalParams, - PoolStopResizeResponse + PoolStopResizeResponse, } from "../models"; /// @@ -36,7 +36,7 @@ export interface PoolOperations { listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PoolListByBatchAccountOptionalParams + options?: PoolListByBatchAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Creates a new pool inside the specified account. @@ -51,7 +51,7 @@ export interface PoolOperations { accountName: string, poolName: string, parameters: Pool, - options?: PoolCreateOptionalParams + options?: PoolCreateOptionalParams, ): Promise; /** * Updates the properties of an existing pool. @@ -67,7 +67,7 @@ export interface PoolOperations { accountName: string, poolName: string, parameters: Pool, - options?: PoolUpdateOptionalParams + options?: PoolUpdateOptionalParams, ): Promise; /** * Deletes the specified pool. @@ -80,7 +80,7 @@ export interface PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolDeleteOptionalParams + options?: PoolDeleteOptionalParams, ): Promise, void>>; /** * Deletes the specified pool. @@ -93,7 +93,7 @@ export interface PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolDeleteOptionalParams + options?: PoolDeleteOptionalParams, ): Promise; /** * Gets information about the specified pool. @@ -106,7 +106,7 @@ export interface PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolGetOptionalParams + options?: PoolGetOptionalParams, ): Promise; /** * Disables automatic scaling for a pool. @@ -119,7 +119,7 @@ export interface PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolDisableAutoScaleOptionalParams + options?: PoolDisableAutoScaleOptionalParams, ): Promise; /** * This does not restore the pool to its previous state before the resize operation: it only stops any @@ -137,6 +137,6 @@ export interface PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolStopResizeOptionalParams + options?: PoolStopResizeOptionalParams, ): Promise; } diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/privateEndpointConnectionOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/privateEndpointConnectionOperations.ts index 04bd4b2bf8db..5edc5ba3ade6 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/privateEndpointConnectionOperations.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/privateEndpointConnectionOperations.ts @@ -16,7 +16,7 @@ import { PrivateEndpointConnectionUpdateOptionalParams, PrivateEndpointConnectionUpdateResponse, PrivateEndpointConnectionDeleteOptionalParams, - PrivateEndpointConnectionDeleteResponse + PrivateEndpointConnectionDeleteResponse, } from "../models"; /// @@ -31,7 +31,7 @@ export interface PrivateEndpointConnectionOperations { listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PrivateEndpointConnectionListByBatchAccountOptionalParams + options?: PrivateEndpointConnectionListByBatchAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Gets information about the specified private endpoint connection. @@ -45,7 +45,7 @@ export interface PrivateEndpointConnectionOperations { resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionGetOptionalParams + options?: PrivateEndpointConnectionGetOptionalParams, ): Promise; /** * Updates the properties of an existing private endpoint connection. @@ -62,7 +62,7 @@ export interface PrivateEndpointConnectionOperations { accountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, - options?: PrivateEndpointConnectionUpdateOptionalParams + options?: PrivateEndpointConnectionUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -84,7 +84,7 @@ export interface PrivateEndpointConnectionOperations { accountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, - options?: PrivateEndpointConnectionUpdateOptionalParams + options?: PrivateEndpointConnectionUpdateOptionalParams, ): Promise; /** * Deletes the specified private endpoint connection. @@ -98,7 +98,7 @@ export interface PrivateEndpointConnectionOperations { resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionDeleteOptionalParams + options?: PrivateEndpointConnectionDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -117,6 +117,6 @@ export interface PrivateEndpointConnectionOperations { resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionDeleteOptionalParams + options?: PrivateEndpointConnectionDeleteOptionalParams, ): Promise; } diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/privateLinkResourceOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/privateLinkResourceOperations.ts index 2c921d998b7e..75252ea84733 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/privateLinkResourceOperations.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/privateLinkResourceOperations.ts @@ -11,7 +11,7 @@ import { PrivateLinkResource, PrivateLinkResourceListByBatchAccountOptionalParams, PrivateLinkResourceGetOptionalParams, - PrivateLinkResourceGetResponse + PrivateLinkResourceGetResponse, } from "../models"; /// @@ -26,7 +26,7 @@ export interface PrivateLinkResourceOperations { listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PrivateLinkResourceListByBatchAccountOptionalParams + options?: PrivateLinkResourceListByBatchAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Gets information about the specified private link resource. @@ -40,6 +40,6 @@ export interface PrivateLinkResourceOperations { resourceGroupName: string, accountName: string, privateLinkResourceName: string, - options?: PrivateLinkResourceGetOptionalParams + options?: PrivateLinkResourceGetOptionalParams, ): Promise; } diff --git a/sdk/batch/arm-batch/src/pagingHelper.ts b/sdk/batch/arm-batch/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/batch/arm-batch/src/pagingHelper.ts +++ b/sdk/batch/arm-batch/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/batch/arm-batch/test/batch_examples.ts b/sdk/batch/arm-batch/test/batch_examples.ts index 173f6fa0cc0c..9b93e5126cdb 100644 --- a/sdk/batch/arm-batch/test/batch_examples.ts +++ b/sdk/batch/arm-batch/test/batch_examples.ts @@ -60,7 +60,7 @@ describe("Batch test", () => { resourceGroup = "myjstest"; accountName = "myaccountxxx"; applicationName = "myapplicationxxx"; - storageaccountName = "mystorageaccountxxx111"; + storageaccountName = "myjsstorageaccount111"; certificateName = "sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7"; poolName = "mypoolxxx"; }); diff --git a/sdk/cognitivelanguage/ai-language-conversations/tests.yml b/sdk/cognitivelanguage/ai-language-conversations/tests.yml index 315e2cc37f0f..44d8d82140fb 100644 --- a/sdk/cognitivelanguage/ai-language-conversations/tests.yml +++ b/sdk/cognitivelanguage/ai-language-conversations/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/ai-language-conversations" EnvVars: diff --git a/sdk/cognitivelanguage/ai-language-text/package.json b/sdk/cognitivelanguage/ai-language-text/package.json index 0eb94954798e..bb0f08cc7c9c 100644 --- a/sdk/cognitivelanguage/ai-language-text/package.json +++ b/sdk/cognitivelanguage/ai-language-text/package.json @@ -73,7 +73,7 @@ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md", "integration-test:browser": "dev-tool run test:browser", - "integration-test:node": "dev-tool run test:node-js-input --use-esm-workaround=true -- --timeout 5000000 \"dist-esm/test/**/*.spec.js\"", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 \"dist-esm/test/**/*.spec.js\"", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json src test --ext .ts", diff --git a/sdk/cognitivelanguage/ai-language-text/tests.yml b/sdk/cognitivelanguage/ai-language-text/tests.yml index 5a29e0c5893b..fb80b48d48f7 100644 --- a/sdk/cognitivelanguage/ai-language-text/tests.yml +++ b/sdk/cognitivelanguage/ai-language-text/tests.yml @@ -6,8 +6,8 @@ parameters: trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/ai-language-text" ServiceDirectory: cognitivelanguage diff --git a/sdk/cognitivelanguage/ai-language-textauthoring/tests.yml b/sdk/cognitivelanguage/ai-language-textauthoring/tests.yml index 92d54769a006..51e45060b2a6 100644 --- a/sdk/cognitivelanguage/ai-language-textauthoring/tests.yml +++ b/sdk/cognitivelanguage/ai-language-textauthoring/tests.yml @@ -6,8 +6,8 @@ parameters: trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/ai-language-textauthoring" ServiceDirectory: cognitivelanguage diff --git a/sdk/communication/communication-alpha-ids/tests.yml b/sdk/communication/communication-alpha-ids/tests.yml index 26ca0dd979bc..34f8c7dd9cae 100644 --- a/sdk/communication/communication-alpha-ids/tests.yml +++ b/sdk/communication/communication-alpha-ids/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-tools/communication-alpha-ids" ServiceDirectory: communication diff --git a/sdk/communication/communication-call-automation/assets.json b/sdk/communication/communication-call-automation/assets.json index 39ec18aeb1c2..8fc7f9c9d870 100644 --- a/sdk/communication/communication-call-automation/assets.json +++ b/sdk/communication/communication-call-automation/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/communication/communication-call-automation", - "Tag": "js/communication/communication-call-automation_3c8effc58e" + "Tag": "js/communication/communication-call-automation_22a209c61b" } diff --git a/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Add_a_participant_and_get_call_properties.json b/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Add_a_participant_and_get_call_properties.json index 63119dd144af..7460358624e5 100644 --- a/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Add_a_participant_and_get_call_properties.json +++ b/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Add_a_participant_and_get_call_properties.json @@ -22,30 +22,10 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-0788-4e8d-8e76-5753d141e789", - "type": "Microsoft.Communication.CallConnected", - "data": { - "eventSource": "calling/callConnections/401f0700-0788-4e8d-8e76-5753d141e789", - "operationContext": "addParticipantsAnswer", - "version": "2023-10-03-preview", - "callConnectionId": "401f0700-0788-4e8d-8e76-5753d141e789", - "serverCallId": "sanitized", - "correlationId": "sanitized", - "publicEventType": "Microsoft.Communication.CallConnected" - }, - "time": "2024-01-04T13:54:40.746015+00:00", - "specversion": "1.0", - "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-0788-4e8d-8e76-5753d141e789" - } - ], - [ - { - "id": "sanitized", - "source": "calling/callConnections/401f0700-0788-4e8d-8e76-5753d141e789", + "source": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-0788-4e8d-8e76-5753d141e789", + "eventSource": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35", "participants": [ { "identifier": { @@ -55,7 +35,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -65,29 +46,50 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-0788-4e8d-8e76-5753d141e789", + "callConnectionId": "421f0b00-1788-4472-967b-7f2d40b27e35", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:54:40.746015+00:00", + "time": "2024-03-08T21:37:40.4102928+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-0788-4e8d-8e76-5753d141e789" + "subject": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-a370-42eb-9403-c2d88b330bc9", + "source": "calling/callConnections/421f0b00-5109-49a7-a383-10c99342351f", + "type": "Microsoft.Communication.CallConnected", + "data": { + "eventSource": "calling/callConnections/421f0b00-5109-49a7-a383-10c99342351f", + "operationContext": "addParticipantsAnswer", + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-5109-49a7-a383-10c99342351f", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.CallConnected" + }, + "time": "2024-03-08T21:37:40.3634744+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-5109-49a7-a383-10c99342351f" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-5109-49a7-a383-10c99342351f", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-a370-42eb-9403-c2d88b330bc9", + "eventSource": "calling/callConnections/421f0b00-5109-49a7-a383-10c99342351f", "participants": [ { "identifier": { @@ -97,7 +99,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -107,40 +110,41 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-a370-42eb-9403-c2d88b330bc9", + "callConnectionId": "421f0b00-5109-49a7-a383-10c99342351f", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:54:40.8397743+00:00", + "time": "2024-03-08T21:37:40.3947633+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-a370-42eb-9403-c2d88b330bc9" + "subject": "calling/callConnections/421f0b00-5109-49a7-a383-10c99342351f" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-a370-42eb-9403-c2d88b330bc9", + "source": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-a370-42eb-9403-c2d88b330bc9", + "eventSource": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35", "operationContext": "addParticipantsCreateCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-a370-42eb-9403-c2d88b330bc9", + "callConnectionId": "421f0b00-1788-4472-967b-7f2d40b27e35", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:54:40.8397743+00:00", + "time": "2024-03-08T21:37:40.4102928+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-a370-42eb-9403-c2d88b330bc9" + "subject": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35" } ], { @@ -166,30 +170,57 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-9218-421c-86be-cb808bc4100f", + "source": "calling/callConnections/421f0b00-4a48-46d5-9052-4acc50dbd6a9", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-9218-421c-86be-cb808bc4100f", + "eventSource": "calling/callConnections/421f0b00-4a48-46d5-9052-4acc50dbd6a9", "operationContext": "addParticipantsAnswer2", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-9218-421c-86be-cb808bc4100f", + "callConnectionId": "421f0b00-4a48-46d5-9052-4acc50dbd6a9", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:54:54.6377958+00:00", + "time": "2024-03-08T21:37:48.6373583+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-9218-421c-86be-cb808bc4100f" + "subject": "calling/callConnections/421f0b00-4a48-46d5-9052-4acc50dbd6a9" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-0788-4e8d-8e76-5753d141e789", + "source": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35", + "type": "Microsoft.Communication.AddParticipantSucceeded", + "data": { + "eventSource": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35", + "operationContext": "addParticipants", + "participant": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-1788-4472-967b-7f2d40b27e35", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.AddParticipantSucceeded" + }, + "time": "2024-03-08T21:37:48.9655424+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-5109-49a7-a383-10c99342351f", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-0788-4e8d-8e76-5753d141e789", + "eventSource": "calling/callConnections/421f0b00-5109-49a7-a383-10c99342351f", "participants": [ { "identifier": { @@ -199,7 +230,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -209,7 +241,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -219,29 +252,85 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 3, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-0788-4e8d-8e76-5753d141e789", + "callConnectionId": "421f0b00-5109-49a7-a383-10c99342351f", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.ParticipantsUpdated" + }, + "time": "2024-03-08T21:37:48.9655424+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-5109-49a7-a383-10c99342351f" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-4a48-46d5-9052-4acc50dbd6a9", + "type": "Microsoft.Communication.ParticipantsUpdated", + "data": { + "eventSource": "calling/callConnections/421f0b00-4a48-46d5-9052-4acc50dbd6a9", + "participants": [ + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + } + ], + "sequenceNumber": 4, + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-4a48-46d5-9052-4acc50dbd6a9", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:54:55.1222236+00:00", + "time": "2024-03-08T21:37:49.0592372+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-0788-4e8d-8e76-5753d141e789" + "subject": "calling/callConnections/421f0b00-4a48-46d5-9052-4acc50dbd6a9" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-9218-421c-86be-cb808bc4100f", + "source": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-9218-421c-86be-cb808bc4100f", + "eventSource": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35", "participants": [ { "identifier": { @@ -251,7 +340,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -261,7 +351,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -271,47 +362,186 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 3, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-9218-421c-86be-cb808bc4100f", + "callConnectionId": "421f0b00-1788-4472-967b-7f2d40b27e35", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:54:55.1222236+00:00", + "time": "2024-03-08T21:37:48.9655424+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-9218-421c-86be-cb808bc4100f" + "subject": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-a370-42eb-9403-c2d88b330bc9", - "type": "Microsoft.Communication.AddParticipantSucceeded", + "source": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35", + "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-a370-42eb-9403-c2d88b330bc9", - "operationContext": "addParticipants", - "participant": { - "rawId": "sanitized", - "kind": "communicationUser", - "communicationUser": { - "id": "sanitized" + "eventSource": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35", + "participants": [ + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false } - }, + ], + "sequenceNumber": 5, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-a370-42eb-9403-c2d88b330bc9", + "callConnectionId": "421f0b00-1788-4472-967b-7f2d40b27e35", "serverCallId": "sanitized", "correlationId": "sanitized", - "publicEventType": "Microsoft.Communication.AddParticipantSucceeded" + "publicEventType": "Microsoft.Communication.ParticipantsUpdated" + }, + "time": "2024-03-08T21:37:49.5593014+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-4a48-46d5-9052-4acc50dbd6a9", + "type": "Microsoft.Communication.ParticipantsUpdated", + "data": { + "eventSource": "calling/callConnections/421f0b00-4a48-46d5-9052-4acc50dbd6a9", + "participants": [ + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + } + ], + "sequenceNumber": 5, + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-4a48-46d5-9052-4acc50dbd6a9", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.ParticipantsUpdated" + }, + "time": "2024-03-08T21:37:49.6374189+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-4a48-46d5-9052-4acc50dbd6a9" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-5109-49a7-a383-10c99342351f", + "type": "Microsoft.Communication.ParticipantsUpdated", + "data": { + "eventSource": "calling/callConnections/421f0b00-5109-49a7-a383-10c99342351f", + "participants": [ + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + } + ], + "sequenceNumber": 4, + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-5109-49a7-a383-10c99342351f", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:54:55.1690901+00:00", + "time": "2024-03-08T21:37:49.5593014+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-a370-42eb-9403-c2d88b330bc9" + "subject": "calling/callConnections/421f0b00-5109-49a7-a383-10c99342351f" } ] ] \ No newline at end of file diff --git a/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Add_a_participant_cancels_add_participant_request.json b/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Add_a_participant_cancels_add_participant_request.json index ee35e4f574ce..533bf983ca4f 100644 --- a/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Add_a_participant_cancels_add_participant_request.json +++ b/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Add_a_participant_cancels_add_participant_request.json @@ -22,30 +22,30 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-b00b-430b-be94-c5e26efa4261", + "source": "calling/callConnections/421f0b00-b2ae-42ed-93d9-260c55a41871", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-b00b-430b-be94-c5e26efa4261", + "eventSource": "calling/callConnections/421f0b00-b2ae-42ed-93d9-260c55a41871", "operationContext": "cancelAddCreateAnswer", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-b00b-430b-be94-c5e26efa4261", + "callConnectionId": "421f0b00-b2ae-42ed-93d9-260c55a41871", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:55:54.8379005+00:00", + "time": "2024-03-08T21:38:23.8905626+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-b00b-430b-be94-c5e26efa4261" + "subject": "calling/callConnections/421f0b00-b2ae-42ed-93d9-260c55a41871" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-b00b-430b-be94-c5e26efa4261", + "source": "calling/callConnections/421f0b00-b2ae-42ed-93d9-260c55a41871", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-b00b-430b-be94-c5e26efa4261", + "eventSource": "calling/callConnections/421f0b00-b2ae-42ed-93d9-260c55a41871", "participants": [ { "identifier": { @@ -55,7 +55,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -65,29 +66,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-b00b-430b-be94-c5e26efa4261", + "callConnectionId": "421f0b00-b2ae-42ed-93d9-260c55a41871", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:54.8535359+00:00", + "time": "2024-03-08T21:38:23.9061909+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-b00b-430b-be94-c5e26efa4261" + "subject": "calling/callConnections/421f0b00-b2ae-42ed-93d9-260c55a41871" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-5c1c-453e-ac00-6084be25e84b", + "source": "calling/callConnections/421f0b00-71de-46ae-8a08-62b2325ab09b", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-5c1c-453e-ac00-6084be25e84b", + "eventSource": "calling/callConnections/421f0b00-71de-46ae-8a08-62b2325ab09b", "participants": [ { "identifier": { @@ -97,7 +99,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -107,60 +110,61 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-5c1c-453e-ac00-6084be25e84b", + "callConnectionId": "421f0b00-71de-46ae-8a08-62b2325ab09b", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:54.9316037+00:00", + "time": "2024-03-08T21:38:23.9531188+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-5c1c-453e-ac00-6084be25e84b" + "subject": "calling/callConnections/421f0b00-71de-46ae-8a08-62b2325ab09b" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-5c1c-453e-ac00-6084be25e84b", + "source": "calling/callConnections/421f0b00-71de-46ae-8a08-62b2325ab09b", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-5c1c-453e-ac00-6084be25e84b", + "eventSource": "calling/callConnections/421f0b00-71de-46ae-8a08-62b2325ab09b", "operationContext": "cancelAddCreateCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-5c1c-453e-ac00-6084be25e84b", + "callConnectionId": "421f0b00-71de-46ae-8a08-62b2325ab09b", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:55:54.9316037+00:00", + "time": "2024-03-08T21:38:23.9531188+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-5c1c-453e-ac00-6084be25e84b" + "subject": "calling/callConnections/421f0b00-71de-46ae-8a08-62b2325ab09b" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-5c1c-453e-ac00-6084be25e84b", + "source": "calling/callConnections/421f0b00-71de-46ae-8a08-62b2325ab09b", "type": "Microsoft.Communication.CancelAddParticipantSucceeded", "data": { - "invitationId": "f08736db-22ea-4f9e-a71e-d7740e63adba", + "invitationId": "313f266e-c54a-4843-88a6-84a66b1b8f57", "operationContext": "cancelAdd", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-5c1c-453e-ac00-6084be25e84b", + "callConnectionId": "421f0b00-71de-46ae-8a08-62b2325ab09b", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CancelAddParticipantSucceeded" }, - "time": "2024-01-04T13:56:02.1509756+00:00", + "time": "2024-03-08T21:38:28.7198819+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-5c1c-453e-ac00-6084be25e84b" + "subject": "calling/callConnections/421f0b00-71de-46ae-8a08-62b2325ab09b" } ] ] \ No newline at end of file diff --git a/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_List_all_participants.json b/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_List_all_participants.json index f2c1759fe2da..7d6f59f4a35e 100644 --- a/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_List_all_participants.json +++ b/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_List_all_participants.json @@ -22,30 +22,30 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-fec1-44da-8b3a-3112f9584da7", + "source": "calling/callConnections/421f0b00-065e-4aa6-bc19-013d801ead79", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-fec1-44da-8b3a-3112f9584da7", + "eventSource": "calling/callConnections/421f0b00-065e-4aa6-bc19-013d801ead79", "operationContext": "listParticipantsAnswer", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-fec1-44da-8b3a-3112f9584da7", + "callConnectionId": "421f0b00-065e-4aa6-bc19-013d801ead79", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:54:26.1654933+00:00", + "time": "2024-03-08T21:37:32.4250079+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-fec1-44da-8b3a-3112f9584da7" + "subject": "calling/callConnections/421f0b00-065e-4aa6-bc19-013d801ead79" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-261a-435a-a136-2b766145adfd", + "source": "calling/callConnections/421f0b00-065e-4aa6-bc19-013d801ead79", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-261a-435a-a136-2b766145adfd", + "eventSource": "calling/callConnections/421f0b00-065e-4aa6-bc19-013d801ead79", "participants": [ { "identifier": { @@ -55,39 +55,30 @@ "id": "sanitized" } }, - "isMuted": false - }, - { - "identifier": { - "rawId": "sanitized", - "kind": "communicationUser", - "communicationUser": { - "id": "sanitized" - } - }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], - "sequenceNumber": 1, + "sequenceNumber": 0, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-261a-435a-a136-2b766145adfd", + "callConnectionId": "421f0b00-065e-4aa6-bc19-013d801ead79", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:54:26.1811225+00:00", + "time": "2024-03-08T21:37:32.4250079+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-261a-435a-a136-2b766145adfd" + "subject": "calling/callConnections/421f0b00-065e-4aa6-bc19-013d801ead79" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-fec1-44da-8b3a-3112f9584da7", + "source": "calling/callConnections/421f0b00-b014-4eca-b06f-c8dfe2337605", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-fec1-44da-8b3a-3112f9584da7", + "eventSource": "calling/callConnections/421f0b00-b014-4eca-b06f-c8dfe2337605", "participants": [ { "identifier": { @@ -97,7 +88,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -107,40 +99,85 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-fec1-44da-8b3a-3112f9584da7", + "callConnectionId": "421f0b00-b014-4eca-b06f-c8dfe2337605", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:54:26.1811225+00:00", + "time": "2024-03-08T21:37:32.4876083+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-fec1-44da-8b3a-3112f9584da7" + "subject": "calling/callConnections/421f0b00-b014-4eca-b06f-c8dfe2337605" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-261a-435a-a136-2b766145adfd", + "source": "calling/callConnections/421f0b00-b014-4eca-b06f-c8dfe2337605", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-261a-435a-a136-2b766145adfd", + "eventSource": "calling/callConnections/421f0b00-b014-4eca-b06f-c8dfe2337605", "operationContext": "listParticipantsCreateCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-261a-435a-a136-2b766145adfd", + "callConnectionId": "421f0b00-b014-4eca-b06f-c8dfe2337605", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:54:26.1811225+00:00", + "time": "2024-03-08T21:37:32.4876083+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-b014-4eca-b06f-c8dfe2337605" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-065e-4aa6-bc19-013d801ead79", + "type": "Microsoft.Communication.ParticipantsUpdated", + "data": { + "eventSource": "calling/callConnections/421f0b00-065e-4aa6-bc19-013d801ead79", + "participants": [ + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + } + ], + "sequenceNumber": 1, + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-065e-4aa6-bc19-013d801ead79", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.ParticipantsUpdated" + }, + "time": "2024-03-08T21:37:33.0188504+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-261a-435a-a136-2b766145adfd" + "subject": "calling/callConnections/421f0b00-065e-4aa6-bc19-013d801ead79" } ] ] \ No newline at end of file diff --git a/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Mute_a_participant.json b/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Mute_a_participant.json index 409bcd700b11..2b4a1b9d9321 100644 --- a/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Mute_a_participant.json +++ b/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Mute_a_participant.json @@ -22,29 +22,29 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209", + "source": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209", + "eventSource": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-d58e-40f6-8f91-d260042c0209", + "callConnectionId": "421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:55:24.744086+00:00", + "time": "2024-03-08T21:38:06.5154356+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209" + "subject": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209", + "source": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209", + "eventSource": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "participants": [ { "identifier": { @@ -54,7 +54,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -64,48 +65,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-d58e-40f6-8f91-d260042c0209", + "callConnectionId": "421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:24.744086+00:00", + "time": "2024-03-08T21:38:06.5310077+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209" + "subject": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15", - "type": "Microsoft.Communication.CallConnected", - "data": { - "eventSource": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15", - "version": "2023-10-03-preview", - "callConnectionId": "401f0700-379c-4224-b8c1-b3ad7e671e15", - "serverCallId": "sanitized", - "correlationId": "sanitized", - "publicEventType": "Microsoft.Communication.CallConnected" - }, - "time": "2024-01-04T13:55:24.7753314+00:00", - "specversion": "1.0", - "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15" - } - ], - [ - { - "id": "sanitized", - "source": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15", + "source": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15", + "eventSource": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", "participants": [ { "identifier": { @@ -115,7 +98,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -125,20 +109,40 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-379c-4224-b8c1-b3ad7e671e15", + "callConnectionId": "421f0b00-2982-4d0a-86c9-c3065a3aeb31", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:24.7753314+00:00", + "time": "2024-03-08T21:38:06.7810657+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", + "type": "Microsoft.Communication.CallConnected", + "data": { + "eventSource": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-2982-4d0a-86c9-c3065a3aeb31", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.CallConnected" + }, + "time": "2024-03-08T21:38:06.7966563+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15" + "subject": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31" } ], { @@ -164,29 +168,29 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23", + "source": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23", + "eventSource": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-e1ec-433e-9c58-71e1c1200d23", + "callConnectionId": "421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:55:38.7929865+00:00", + "time": "2024-03-08T21:38:13.968592+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23" + "subject": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15", + "source": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", "type": "Microsoft.Communication.AddParticipantSucceeded", "data": { - "eventSource": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15", + "eventSource": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", "operationContext": "addParticipant", "participant": { "rawId": "sanitized", @@ -196,24 +200,24 @@ } }, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-379c-4224-b8c1-b3ad7e671e15", + "callConnectionId": "421f0b00-2982-4d0a-86c9-c3065a3aeb31", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.AddParticipantSucceeded" }, - "time": "2024-01-04T13:55:38.933557+00:00", + "time": "2024-03-08T21:38:14.218591+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15" + "subject": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23", + "source": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23", + "eventSource": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "participants": [ { "identifier": { @@ -223,7 +227,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -233,7 +238,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -243,29 +249,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 3, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-e1ec-433e-9c58-71e1c1200d23", + "callConnectionId": "421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:38.9491772+00:00", + "time": "2024-03-08T21:38:14.218591+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23" + "subject": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15", + "source": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15", + "eventSource": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "participants": [ { "identifier": { @@ -275,7 +282,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -285,7 +293,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -295,29 +304,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 3, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-379c-4224-b8c1-b3ad7e671e15", + "callConnectionId": "421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:38.9491772+00:00", + "time": "2024-03-08T21:38:14.218591+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15" + "subject": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23", + "source": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23", + "eventSource": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", "participants": [ { "identifier": { @@ -327,7 +337,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -337,7 +348,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -347,29 +359,85 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false + } + ], + "sequenceNumber": 3, + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-2982-4d0a-86c9-c3065a3aeb31", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.ParticipantsUpdated" + }, + "time": "2024-03-08T21:38:14.218591+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", + "type": "Microsoft.Communication.ParticipantsUpdated", + "data": { + "eventSource": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", + "participants": [ + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 4, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-e1ec-433e-9c58-71e1c1200d23", + "callConnectionId": "421f0b00-2982-4d0a-86c9-c3065a3aeb31", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:40.13679+00:00", + "time": "2024-03-08T21:38:14.8123462+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23" + "subject": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209", + "source": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209", + "eventSource": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "participants": [ { "identifier": { @@ -379,7 +447,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -389,7 +458,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -399,29 +469,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], - "sequenceNumber": 3, + "sequenceNumber": 4, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-d58e-40f6-8f91-d260042c0209", + "callConnectionId": "421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:38.933557+00:00", + "time": "2024-03-08T21:38:14.827968+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209" + "subject": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15", + "source": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15", + "eventSource": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "participants": [ { "identifier": { @@ -431,7 +502,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -441,7 +513,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -451,29 +524,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 4, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-379c-4224-b8c1-b3ad7e671e15", + "callConnectionId": "421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:40.1524766+00:00", + "time": "2024-03-08T21:38:14.827968+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15" + "subject": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23", + "source": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23", + "eventSource": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", "participants": [ { "identifier": { @@ -483,7 +557,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -493,7 +568,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -503,29 +579,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 5, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-e1ec-433e-9c58-71e1c1200d23", + "callConnectionId": "421f0b00-2982-4d0a-86c9-c3065a3aeb31", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:41.3198768+00:00", + "time": "2024-03-08T21:38:15.4061534+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23" + "subject": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209", + "source": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209", + "eventSource": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "participants": [ { "identifier": { @@ -535,7 +612,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -545,7 +623,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -555,29 +634,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], - "sequenceNumber": 4, + "sequenceNumber": 5, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-d58e-40f6-8f91-d260042c0209", + "callConnectionId": "421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:40.1524766+00:00", + "time": "2024-03-08T21:38:15.4217244+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209" + "subject": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23", + "source": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23", + "eventSource": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "participants": [ { "identifier": { @@ -587,7 +667,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -597,7 +678,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -607,29 +689,85 @@ "id": "sanitized" } }, - "isMuted": true + "isMuted": false, + "isOnHold": false + } + ], + "sequenceNumber": 5, + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.ParticipantsUpdated" + }, + "time": "2024-03-08T21:38:15.4217244+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", + "type": "Microsoft.Communication.ParticipantsUpdated", + "data": { + "eventSource": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", + "participants": [ + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 6, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-e1ec-433e-9c58-71e1c1200d23", + "callConnectionId": "421f0b00-2982-4d0a-86c9-c3065a3aeb31", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:42.5074841+00:00", + "time": "2024-03-08T21:38:15.9999232+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23" + "subject": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15", + "source": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15", + "eventSource": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "participants": [ { "identifier": { @@ -639,7 +777,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -649,7 +788,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -659,29 +799,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], - "sequenceNumber": 5, + "sequenceNumber": 6, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-379c-4224-b8c1-b3ad7e671e15", + "callConnectionId": "421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:41.3354448+00:00", + "time": "2024-03-08T21:38:15.9999232+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15" + "subject": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209", + "source": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209", + "eventSource": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "participants": [ { "identifier": { @@ -691,7 +832,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -701,7 +843,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -711,20 +854,186 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], - "sequenceNumber": 5, + "sequenceNumber": 6, + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.ParticipantsUpdated" + }, + "time": "2024-03-08T21:38:16.0467512+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", + "type": "Microsoft.Communication.ParticipantsUpdated", + "data": { + "eventSource": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", + "participants": [ + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": true, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + } + ], + "sequenceNumber": 7, + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-2982-4d0a-86c9-c3065a3aeb31", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.ParticipantsUpdated" + }, + "time": "2024-03-08T21:38:16.5780399+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", + "type": "Microsoft.Communication.ParticipantsUpdated", + "data": { + "eventSource": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", + "participants": [ + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": true, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + } + ], + "sequenceNumber": 7, + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.ParticipantsUpdated" + }, + "time": "2024-03-08T21:38:16.6092362+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", + "type": "Microsoft.Communication.ParticipantsUpdated", + "data": { + "eventSource": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", + "participants": [ + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": true, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + } + ], + "sequenceNumber": 7, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-d58e-40f6-8f91-d260042c0209", + "callConnectionId": "421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:41.3354448+00:00", + "time": "2024-03-08T21:38:16.6249232+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209" + "subject": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d" } ] ] \ No newline at end of file diff --git a/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Remove_a_participant.json b/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Remove_a_participant.json index d9f4526710bd..0341a2677d81 100644 --- a/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Remove_a_participant.json +++ b/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Remove_a_participant.json @@ -22,10 +22,30 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-8e42-49d8-a63d-9ab40787d973", + "source": "calling/callConnections/421f0b00-9791-41e0-8604-56e89212b4b9", + "type": "Microsoft.Communication.CallConnected", + "data": { + "eventSource": "calling/callConnections/421f0b00-9791-41e0-8604-56e89212b4b9", + "operationContext": "removeParticipantCreateCall", + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-9791-41e0-8604-56e89212b4b9", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.CallConnected" + }, + "time": "2024-03-08T21:37:57.6687101+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-9791-41e0-8604-56e89212b4b9" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-9791-41e0-8604-56e89212b4b9", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-8e42-49d8-a63d-9ab40787d973", + "eventSource": "calling/callConnections/421f0b00-9791-41e0-8604-56e89212b4b9", "participants": [ { "identifier": { @@ -35,7 +55,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -45,69 +66,50 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-8e42-49d8-a63d-9ab40787d973", + "callConnectionId": "421f0b00-9791-41e0-8604-56e89212b4b9", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:07.9457991+00:00", + "time": "2024-03-08T21:37:57.6843442+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-8e42-49d8-a63d-9ab40787d973" + "subject": "calling/callConnections/421f0b00-9791-41e0-8604-56e89212b4b9" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-8e42-49d8-a63d-9ab40787d973", + "source": "calling/callConnections/421f0b00-60ad-44f0-a298-0c82455f948b", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-8e42-49d8-a63d-9ab40787d973", + "eventSource": "calling/callConnections/421f0b00-60ad-44f0-a298-0c82455f948b", "operationContext": "removeParticipantsAnswer", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-8e42-49d8-a63d-9ab40787d973", - "serverCallId": "sanitized", - "correlationId": "sanitized", - "publicEventType": "Microsoft.Communication.CallConnected" - }, - "time": "2024-01-04T13:55:07.9301673+00:00", - "specversion": "1.0", - "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-8e42-49d8-a63d-9ab40787d973" - } - ], - [ - { - "id": "sanitized", - "source": "calling/callConnections/401f0700-b4bf-4a28-8ca5-fc055b3c7777", - "type": "Microsoft.Communication.CallConnected", - "data": { - "eventSource": "calling/callConnections/401f0700-b4bf-4a28-8ca5-fc055b3c7777", - "operationContext": "removeParticipantCreateCall", - "version": "2023-10-03-preview", - "callConnectionId": "401f0700-b4bf-4a28-8ca5-fc055b3c7777", + "callConnectionId": "421f0b00-60ad-44f0-a298-0c82455f948b", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:55:07.9926678+00:00", + "time": "2024-03-08T21:37:57.6687101+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-b4bf-4a28-8ca5-fc055b3c7777" + "subject": "calling/callConnections/421f0b00-60ad-44f0-a298-0c82455f948b" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-b4bf-4a28-8ca5-fc055b3c7777", + "source": "calling/callConnections/421f0b00-60ad-44f0-a298-0c82455f948b", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-b4bf-4a28-8ca5-fc055b3c7777", + "eventSource": "calling/callConnections/421f0b00-60ad-44f0-a298-0c82455f948b", "participants": [ { "identifier": { @@ -117,7 +119,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -127,29 +130,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-b4bf-4a28-8ca5-fc055b3c7777", + "callConnectionId": "421f0b00-60ad-44f0-a298-0c82455f948b", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:07.9926678+00:00", + "time": "2024-03-08T21:37:57.6843442+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-b4bf-4a28-8ca5-fc055b3c7777" + "subject": "calling/callConnections/421f0b00-60ad-44f0-a298-0c82455f948b" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-b4bf-4a28-8ca5-fc055b3c7777", + "source": "calling/callConnections/421f0b00-9791-41e0-8604-56e89212b4b9", "type": "Microsoft.Communication.RemoveParticipantSucceeded", "data": { - "eventSource": "calling/callConnections/401f0700-b4bf-4a28-8ca5-fc055b3c7777", + "eventSource": "calling/callConnections/421f0b00-9791-41e0-8604-56e89212b4b9", "operationContext": "removeParticipants", "participant": { "rawId": "sanitized", @@ -159,55 +163,55 @@ } }, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-b4bf-4a28-8ca5-fc055b3c7777", + "callConnectionId": "421f0b00-9791-41e0-8604-56e89212b4b9", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.RemoveParticipantSucceeded" }, - "time": "2024-01-04T13:55:11.5242201+00:00", + "time": "2024-03-08T21:37:59.1843522+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-b4bf-4a28-8ca5-fc055b3c7777" + "subject": "calling/callConnections/421f0b00-9791-41e0-8604-56e89212b4b9" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-8e42-49d8-a63d-9ab40787d973", + "source": "calling/callConnections/421f0b00-60ad-44f0-a298-0c82455f948b", "type": "Microsoft.Communication.CallDisconnected", "data": { - "eventSource": "calling/callConnections/401f0700-8e42-49d8-a63d-9ab40787d973", + "eventSource": "calling/callConnections/421f0b00-60ad-44f0-a298-0c82455f948b", "operationContext": "removeParticipantsAnswer", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-8e42-49d8-a63d-9ab40787d973", + "callConnectionId": "421f0b00-60ad-44f0-a298-0c82455f948b", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallDisconnected" }, - "time": "2024-01-04T13:55:11.5242201+00:00", + "time": "2024-03-08T21:37:59.2468533+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-8e42-49d8-a63d-9ab40787d973" + "subject": "calling/callConnections/421f0b00-60ad-44f0-a298-0c82455f948b" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-b4bf-4a28-8ca5-fc055b3c7777", + "source": "calling/callConnections/421f0b00-9791-41e0-8604-56e89212b4b9", "type": "Microsoft.Communication.CallDisconnected", "data": { - "eventSource": "calling/callConnections/401f0700-b4bf-4a28-8ca5-fc055b3c7777", + "eventSource": "calling/callConnections/421f0b00-9791-41e0-8604-56e89212b4b9", "operationContext": "removeParticipantCreateCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-b4bf-4a28-8ca5-fc055b3c7777", + "callConnectionId": "421f0b00-9791-41e0-8604-56e89212b4b9", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallDisconnected" }, - "time": "2024-01-04T13:55:11.6180411+00:00", + "time": "2024-03-08T21:37:59.6062835+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-b4bf-4a28-8ca5-fc055b3c7777" + "subject": "calling/callConnections/421f0b00-9791-41e0-8604-56e89212b4b9" } ] ] \ No newline at end of file diff --git a/sdk/communication/communication-call-automation/recordings/CallRecording_Live_Tests_Creates_a_call,_start_recording,_and_hangs_up.json b/sdk/communication/communication-call-automation/recordings/CallRecording_Live_Tests_Creates_a_call,_start_recording,_and_hangs_up.json index 7341f216485a..765177979ce2 100644 --- a/sdk/communication/communication-call-automation/recordings/CallRecording_Live_Tests_Creates_a_call,_start_recording,_and_hangs_up.json +++ b/sdk/communication/communication-call-automation/recordings/CallRecording_Live_Tests_Creates_a_call,_start_recording,_and_hangs_up.json @@ -22,30 +22,74 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33", + "source": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645", + "type": "Microsoft.Communication.ParticipantsUpdated", + "data": { + "eventSource": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645", + "participants": [ + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + } + ], + "sequenceNumber": 1, + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-1c38-48f3-b14b-7c8146050645", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.ParticipantsUpdated" + }, + "time": "2024-03-08T21:39:29.5080308+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33", + "eventSource": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645", "operationContext": "recordingAnswer", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-9488-401a-9a68-02a7f6bb7f33", + "callConnectionId": "421f0b00-1c38-48f3-b14b-7c8146050645", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:58:21.8864495+00:00", + "time": "2024-03-08T21:39:29.5080308+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33" + "subject": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33", + "source": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33", + "eventSource": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925", "participants": [ { "identifier": { @@ -55,49 +99,61 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false } ], - "sequenceNumber": 0, + "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-9488-401a-9a68-02a7f6bb7f33", + "callConnectionId": "421f0b00-8f10-482b-aba4-d4a4fc26b925", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:58:21.8864495+00:00", + "time": "2024-03-08T21:39:29.5861543+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33" + "subject": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-4e44-4a21-9adf-e22fd76ebadb", + "source": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-4e44-4a21-9adf-e22fd76ebadb", + "eventSource": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925", "operationContext": "recordingCreateCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-4e44-4a21-9adf-e22fd76ebadb", + "callConnectionId": "421f0b00-8f10-482b-aba4-d4a4fc26b925", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:58:21.9177675+00:00", + "time": "2024-03-08T21:39:29.5861543+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-4e44-4a21-9adf-e22fd76ebadb" + "subject": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-4e44-4a21-9adf-e22fd76ebadb", + "source": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-4e44-4a21-9adf-e22fd76ebadb", + "eventSource": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645", "participants": [ { "identifier": { @@ -107,7 +163,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -117,29 +174,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], - "sequenceNumber": 1, + "sequenceNumber": 3, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-4e44-4a21-9adf-e22fd76ebadb", + "callConnectionId": "421f0b00-1c38-48f3-b14b-7c8146050645", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:58:21.9177675+00:00", + "time": "2024-03-08T21:39:34.6831704+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-4e44-4a21-9adf-e22fd76ebadb" + "subject": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33", + "source": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33", + "eventSource": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925", "participants": [ { "identifier": { @@ -149,7 +207,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -159,52 +218,53 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], - "sequenceNumber": 1, + "sequenceNumber": 3, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-9488-401a-9a68-02a7f6bb7f33", + "callConnectionId": "421f0b00-8f10-482b-aba4-d4a4fc26b925", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:58:23.0896932+00:00", + "time": "2024-03-08T21:39:34.6831704+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33" + "subject": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925" } ], [ { "id": "sanitized", - "source": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWFzc2UtMDEuY29udi5za3lwZS5jb20vY29udi9hNWNWNncxZXlFT3ZIRUZhWm52Yk53P2k9OSZlPTYzODM4NjE4OTY4OTI2OTg0Mw==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI0MDFmMDcwMC0wNjk1LTRmYTAtOGI4Ni1mMWEyZWQ4MzRiODkiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3N2Y4ZTZmZS0yNmM3LTRiODAtYTFlZS1lOWI5OTQyZTJmOTkifQ/RecordingStateChanged", + "source": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzZWEyLTAxLmNvbnYuc2t5cGUuY29tL2NvbnYvYUJ3NVNTLXpSa0c0a1d5OGVzVGJXQT9pPTMzJmU9NjM4NDU1MzAwNjYzMTg0NDc0/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI0MjFmMGIwMC1lZDQyLTQxZjAtOWNiYy00OGZmZGEwODAxMjEiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI2NzE3ZmE2MS03YTFmLTQ0MzEtYWE1ZS1hMDYwM2E1MjBhNDIifQ/RecordingStateChanged", "type": "Microsoft.Communication.RecordingStateChanged", "data": { - "eventSource": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWFzc2UtMDEuY29udi5za3lwZS5jb20vY29udi9hNWNWNncxZXlFT3ZIRUZhWm52Yk53P2k9OSZlPTYzODM4NjE4OTY4OTI2OTg0Mw==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI0MDFmMDcwMC0wNjk1LTRmYTAtOGI4Ni1mMWEyZWQ4MzRiODkiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3N2Y4ZTZmZS0yNmM3LTRiODAtYTFlZS1lOWI5OTQyZTJmOTkifQ/RecordingStateChanged", - "recordingId": "eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI0MDFmMDcwMC0wNjk1LTRmYTAtOGI4Ni1mMWEyZWQ4MzRiODkiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3N2Y4ZTZmZS0yNmM3LTRiODAtYTFlZS1lOWI5OTQyZTJmOTkifQ", - "state": "inactive", - "startDateTime": "0001-01-01T00:00:00+00:00", + "eventSource": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzZWEyLTAxLmNvbnYuc2t5cGUuY29tL2NvbnYvYUJ3NVNTLXpSa0c0a1d5OGVzVGJXQT9pPTMzJmU9NjM4NDU1MzAwNjYzMTg0NDc0/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI0MjFmMGIwMC1lZDQyLTQxZjAtOWNiYy00OGZmZGEwODAxMjEiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI2NzE3ZmE2MS03YTFmLTQ0MzEtYWE1ZS1hMDYwM2E1MjBhNDIifQ/RecordingStateChanged", + "recordingId": "eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI0MjFmMGIwMC1lZDQyLTQxZjAtOWNiYy00OGZmZGEwODAxMjEiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI2NzE3ZmE2MS03YTFmLTQ0MzEtYWE1ZS1hMDYwM2E1MjBhNDIifQ", + "state": "active", + "startDateTime": "2024-03-08T21:39:34.3666276+00:00", "recordingType": "acs", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-0695-4fa0-8b86-f1a2ed834b89", + "callConnectionId": "421f0b00-ed42-41f0-9cbc-48ffda080121", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.RecordingStateChanged" }, - "time": "2024-01-04T13:58:34.9828678+00:00", + "time": "2024-03-08T21:39:34.6831704+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWFzc2UtMDEuY29udi5za3lwZS5jb20vY29udi9hNWNWNncxZXlFT3ZIRUZhWm52Yk53P2k9OSZlPTYzODM4NjE4OTY4OTI2OTg0Mw==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI0MDFmMDcwMC0wNjk1LTRmYTAtOGI4Ni1mMWEyZWQ4MzRiODkiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3N2Y4ZTZmZS0yNmM3LTRiODAtYTFlZS1lOWI5OTQyZTJmOTkifQ/RecordingStateChanged" + "subject": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzZWEyLTAxLmNvbnYuc2t5cGUuY29tL2NvbnYvYUJ3NVNTLXpSa0c0a1d5OGVzVGJXQT9pPTMzJmU9NjM4NDU1MzAwNjYzMTg0NDc0/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI0MjFmMGIwMC1lZDQyLTQxZjAtOWNiYy00OGZmZGEwODAxMjEiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI2NzE3ZmE2MS03YTFmLTQ0MzEtYWE1ZS1hMDYwM2E1MjBhNDIifQ/RecordingStateChanged" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-4e44-4a21-9adf-e22fd76ebadb", + "source": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-4e44-4a21-9adf-e22fd76ebadb", + "eventSource": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645", "participants": [ { "identifier": { @@ -214,7 +274,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -224,29 +285,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], - "sequenceNumber": 3, + "sequenceNumber": 4, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-4e44-4a21-9adf-e22fd76ebadb", + "callConnectionId": "421f0b00-1c38-48f3-b14b-7c8146050645", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:58:34.9828678+00:00", + "time": "2024-03-08T21:39:35.3394745+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-4e44-4a21-9adf-e22fd76ebadb" + "subject": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33", + "source": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33", + "eventSource": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925", "participants": [ { "identifier": { @@ -256,7 +318,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -266,52 +329,55 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], - "sequenceNumber": 3, + "sequenceNumber": 4, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-9488-401a-9a68-02a7f6bb7f33", + "callConnectionId": "421f0b00-8f10-482b-aba4-d4a4fc26b925", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:58:34.9828678+00:00", + "time": "2024-03-08T21:39:35.3394745+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33" + "subject": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925" } ], [ { "id": "sanitized", - "source": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWFzc2UtMDEuY29udi5za3lwZS5jb20vY29udi9hNWNWNncxZXlFT3ZIRUZhWm52Yk53P2k9OSZlPTYzODM4NjE4OTY4OTI2OTg0Mw==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI0MDFmMDcwMC0wNjk1LTRmYTAtOGI4Ni1mMWEyZWQ4MzRiODkiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3N2Y4ZTZmZS0yNmM3LTRiODAtYTFlZS1lOWI5OTQyZTJmOTkifQ/RecordingStateChanged", - "type": "Microsoft.Communication.RecordingStateChanged", + "source": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925", + "type": "Microsoft.Communication.PlayCompleted", "data": { - "eventSource": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWFzc2UtMDEuY29udi5za3lwZS5jb20vY29udi9hNWNWNncxZXlFT3ZIRUZhWm52Yk53P2k9OSZlPTYzODM4NjE4OTY4OTI2OTg0Mw==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI0MDFmMDcwMC0wNjk1LTRmYTAtOGI4Ni1mMWEyZWQ4MzRiODkiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3N2Y4ZTZmZS0yNmM3LTRiODAtYTFlZS1lOWI5OTQyZTJmOTkifQ/RecordingStateChanged", - "recordingId": "eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI0MDFmMDcwMC0wNjk1LTRmYTAtOGI4Ni1mMWEyZWQ4MzRiODkiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3N2Y4ZTZmZS0yNmM3LTRiODAtYTFlZS1lOWI5OTQyZTJmOTkifQ", - "state": "active", - "startDateTime": "2024-01-04T13:58:35.232275+00:00", - "recordingType": "acs", + "eventSource": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925", + "resultInformation": { + "code": 200, + "subCode": 0, + "message": "Action completed successfully." + }, + "operationContext": "recordingPlay", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-0695-4fa0-8b86-f1a2ed834b89", + "callConnectionId": "421f0b00-8f10-482b-aba4-d4a4fc26b925", "serverCallId": "sanitized", "correlationId": "sanitized", - "publicEventType": "Microsoft.Communication.RecordingStateChanged" + "publicEventType": "Microsoft.Communication.PlayCompleted" }, - "time": "2024-01-04T13:58:35.8891917+00:00", + "time": "2024-03-08T21:39:35.3550509+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWFzc2UtMDEuY29udi5za3lwZS5jb20vY29udi9hNWNWNncxZXlFT3ZIRUZhWm52Yk53P2k9OSZlPTYzODM4NjE4OTY4OTI2OTg0Mw==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI0MDFmMDcwMC0wNjk1LTRmYTAtOGI4Ni1mMWEyZWQ4MzRiODkiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3N2Y4ZTZmZS0yNmM3LTRiODAtYTFlZS1lOWI5OTQyZTJmOTkifQ/RecordingStateChanged" + "subject": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-4e44-4a21-9adf-e22fd76ebadb", + "source": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-4e44-4a21-9adf-e22fd76ebadb", + "eventSource": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925", "participants": [ { "identifier": { @@ -321,7 +387,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -331,71 +398,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], - "sequenceNumber": 4, - "version": "2023-10-03-preview", - "callConnectionId": "401f0700-4e44-4a21-9adf-e22fd76ebadb", - "serverCallId": "sanitized", - "correlationId": "sanitized", - "publicEventType": "Microsoft.Communication.ParticipantsUpdated" - }, - "time": "2024-01-04T13:58:36.1860826+00:00", - "specversion": "1.0", - "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-4e44-4a21-9adf-e22fd76ebadb" - } - ], - [ - { - "id": "sanitized", - "source": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33", - "type": "Microsoft.Communication.ParticipantsUpdated", - "data": { - "eventSource": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33", - "participants": [ - { - "identifier": { - "rawId": "sanitized", - "kind": "communicationUser", - "communicationUser": { - "id": "sanitized" - } - }, - "isMuted": false - }, - { - "identifier": { - "rawId": "sanitized", - "kind": "communicationUser", - "communicationUser": { - "id": "sanitized" - } - }, - "isMuted": false - } - ], - "sequenceNumber": 4, + "sequenceNumber": 5, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-9488-401a-9a68-02a7f6bb7f33", + "callConnectionId": "421f0b00-8f10-482b-aba4-d4a4fc26b925", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:58:36.2017818+00:00", + "time": "2024-03-08T21:39:36.5582401+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33" + "subject": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33", + "source": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33", + "eventSource": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645", "participants": [ { "identifier": { @@ -405,7 +431,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -415,20 +442,21 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 5, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-9488-401a-9a68-02a7f6bb7f33", + "callConnectionId": "421f0b00-1c38-48f3-b14b-7c8146050645", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:58:37.4675102+00:00", + "time": "2024-03-08T21:39:36.5582401+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33" + "subject": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645" } ] ] \ No newline at end of file diff --git a/sdk/communication/communication-call-automation/recordings/Call_Automation_Main_Client_Live_Tests_Create_a_call_and_hangup.json b/sdk/communication/communication-call-automation/recordings/Call_Automation_Main_Client_Live_Tests_Create_a_call_and_hangup.json index 287231ffb725..e490eb496916 100644 --- a/sdk/communication/communication-call-automation/recordings/Call_Automation_Main_Client_Live_Tests_Create_a_call_and_hangup.json +++ b/sdk/communication/communication-call-automation/recordings/Call_Automation_Main_Client_Live_Tests_Create_a_call_and_hangup.json @@ -22,10 +22,30 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-d821-48bf-b4d7-2eecd560844d", + "source": "calling/callConnections/421f0b00-8403-4066-abe5-59b513c6c993", + "type": "Microsoft.Communication.CallConnected", + "data": { + "eventSource": "calling/callConnections/421f0b00-8403-4066-abe5-59b513c6c993", + "operationContext": "operationContextAnswerCall", + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-8403-4066-abe5-59b513c6c993", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.CallConnected" + }, + "time": "2024-03-08T21:37:18.0158141+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-8403-4066-abe5-59b513c6c993" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-8403-4066-abe5-59b513c6c993", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-d821-48bf-b4d7-2eecd560844d", + "eventSource": "calling/callConnections/421f0b00-8403-4066-abe5-59b513c6c993", "participants": [ { "identifier": { @@ -35,7 +55,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -45,69 +66,50 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-d821-48bf-b4d7-2eecd560844d", + "callConnectionId": "421f0b00-8403-4066-abe5-59b513c6c993", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:53:55.7324065+00:00", - "specversion": "1.0", - "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-d821-48bf-b4d7-2eecd560844d" - } - ], - [ - { - "id": "sanitized", - "source": "calling/callConnections/401f0700-d821-48bf-b4d7-2eecd560844d", - "type": "Microsoft.Communication.CallConnected", - "data": { - "eventSource": "calling/callConnections/401f0700-d821-48bf-b4d7-2eecd560844d", - "operationContext": "operationContextAnswerCall", - "version": "2023-10-03-preview", - "callConnectionId": "401f0700-d821-48bf-b4d7-2eecd560844d", - "serverCallId": "sanitized", - "correlationId": "sanitized", - "publicEventType": "Microsoft.Communication.CallConnected" - }, - "time": "2024-01-04T13:53:55.7167862+00:00", + "time": "2024-03-08T21:37:18.0158141+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-d821-48bf-b4d7-2eecd560844d" + "subject": "calling/callConnections/421f0b00-8403-4066-abe5-59b513c6c993" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-759b-4279-8fee-66a58c29e311", + "source": "calling/callConnections/421f0b00-6ea3-4c2a-8f2d-be27dfd8b713", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-759b-4279-8fee-66a58c29e311", + "eventSource": "calling/callConnections/421f0b00-6ea3-4c2a-8f2d-be27dfd8b713", "operationContext": "operationContextCreateCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-759b-4279-8fee-66a58c29e311", + "callConnectionId": "421f0b00-6ea3-4c2a-8f2d-be27dfd8b713", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:53:55.7949435+00:00", + "time": "2024-03-08T21:37:18.0627211+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-759b-4279-8fee-66a58c29e311" + "subject": "calling/callConnections/421f0b00-6ea3-4c2a-8f2d-be27dfd8b713" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-759b-4279-8fee-66a58c29e311", + "source": "calling/callConnections/421f0b00-6ea3-4c2a-8f2d-be27dfd8b713", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-759b-4279-8fee-66a58c29e311", + "eventSource": "calling/callConnections/421f0b00-6ea3-4c2a-8f2d-be27dfd8b713", "participants": [ { "identifier": { @@ -117,7 +119,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -127,60 +130,61 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-759b-4279-8fee-66a58c29e311", + "callConnectionId": "421f0b00-6ea3-4c2a-8f2d-be27dfd8b713", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:53:55.779278+00:00", + "time": "2024-03-08T21:37:18.0627211+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-759b-4279-8fee-66a58c29e311" + "subject": "calling/callConnections/421f0b00-6ea3-4c2a-8f2d-be27dfd8b713" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-759b-4279-8fee-66a58c29e311", + "source": "calling/callConnections/421f0b00-8403-4066-abe5-59b513c6c993", "type": "Microsoft.Communication.CallDisconnected", "data": { - "eventSource": "calling/callConnections/401f0700-759b-4279-8fee-66a58c29e311", - "operationContext": "operationContextCreateCall", + "eventSource": "calling/callConnections/421f0b00-8403-4066-abe5-59b513c6c993", + "operationContext": "operationContextAnswerCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-759b-4279-8fee-66a58c29e311", + "callConnectionId": "421f0b00-8403-4066-abe5-59b513c6c993", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallDisconnected" }, - "time": "2024-01-04T13:53:59.2327653+00:00", + "time": "2024-03-08T21:37:19.7502105+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-759b-4279-8fee-66a58c29e311" + "subject": "calling/callConnections/421f0b00-8403-4066-abe5-59b513c6c993" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-d821-48bf-b4d7-2eecd560844d", + "source": "calling/callConnections/421f0b00-6ea3-4c2a-8f2d-be27dfd8b713", "type": "Microsoft.Communication.CallDisconnected", "data": { - "eventSource": "calling/callConnections/401f0700-d821-48bf-b4d7-2eecd560844d", - "operationContext": "operationContextAnswerCall", + "eventSource": "calling/callConnections/421f0b00-6ea3-4c2a-8f2d-be27dfd8b713", + "operationContext": "operationContextCreateCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-d821-48bf-b4d7-2eecd560844d", + "callConnectionId": "421f0b00-6ea3-4c2a-8f2d-be27dfd8b713", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallDisconnected" }, - "time": "2024-01-04T13:53:59.2484162+00:00", + "time": "2024-03-08T21:37:19.7345971+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-d821-48bf-b4d7-2eecd560844d" + "subject": "calling/callConnections/421f0b00-6ea3-4c2a-8f2d-be27dfd8b713" } ] ] \ No newline at end of file diff --git a/sdk/communication/communication-call-automation/recordings/Call_Automation_Main_Client_Live_Tests_Reject_call.json b/sdk/communication/communication-call-automation/recordings/Call_Automation_Main_Client_Live_Tests_Reject_call.json index 7caa5956e875..74aee6445616 100644 --- a/sdk/communication/communication-call-automation/recordings/Call_Automation_Main_Client_Live_Tests_Reject_call.json +++ b/sdk/communication/communication-call-automation/recordings/Call_Automation_Main_Client_Live_Tests_Reject_call.json @@ -22,20 +22,24 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-7539-4784-b1ea-cd57a598c685", - "type": "Microsoft.Communication.CallDisconnected", + "source": "calling/callConnections/421f0b00-d931-441b-bf88-58b09e9de827", + "type": "Microsoft.Communication.CreateCallFailed", "data": { - "eventSource": "calling/callConnections/401f0700-7539-4784-b1ea-cd57a598c685", - "operationContext": "operationContextRejectCall", + "eventSource": "calling/callConnections/421f0b00-d931-441b-bf88-58b09e9de827", + "resultInformation": { + "code": 603, + "subCode": 0, + "message": "Decline. DiagCode: 603#0.@" + }, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-7539-4784-b1ea-cd57a598c685", + "callConnectionId": "421f0b00-d931-441b-bf88-58b09e9de827", "correlationId": "sanitized", - "publicEventType": "Microsoft.Communication.CallDisconnected" + "publicEventType": "Microsoft.Communication.CreateCallFailed" }, - "time": "2024-01-04T13:54:12.2650422+00:00", + "time": "2024-03-08T21:37:25.9377797+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-7539-4784-b1ea-cd57a598c685" + "subject": "calling/callConnections/421f0b00-d931-441b-bf88-58b09e9de827" } ] ] \ No newline at end of file diff --git a/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Cancel_all_media_operations.json b/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Cancel_all_media_operations.json index 1b15eee5e091..da0cf3e95de1 100644 --- a/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Cancel_all_media_operations.json +++ b/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Cancel_all_media_operations.json @@ -22,30 +22,10 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-8e04-413a-9b5e-b02759908051", - "type": "Microsoft.Communication.CallConnected", - "data": { - "eventSource": "calling/callConnections/401f0700-8e04-413a-9b5e-b02759908051", - "operationContext": "CancelMediaAnswer", - "version": "2023-10-03-preview", - "callConnectionId": "401f0700-8e04-413a-9b5e-b02759908051", - "serverCallId": "sanitized", - "correlationId": "sanitized", - "publicEventType": "Microsoft.Communication.CallConnected" - }, - "time": "2024-01-04T13:57:30.3101884+00:00", - "specversion": "1.0", - "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-8e04-413a-9b5e-b02759908051" - } - ], - [ - { - "id": "sanitized", - "source": "calling/callConnections/401f0700-8e04-413a-9b5e-b02759908051", + "source": "calling/callConnections/421f0b00-9261-412e-a223-4b580dafa91b", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-8e04-413a-9b5e-b02759908051", + "eventSource": "calling/callConnections/421f0b00-9261-412e-a223-4b580dafa91b", "participants": [ { "identifier": { @@ -55,7 +35,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -65,49 +46,70 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-8e04-413a-9b5e-b02759908051", + "callConnectionId": "421f0b00-9261-412e-a223-4b580dafa91b", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:57:30.3258031+00:00", + "time": "2024-03-08T21:39:05.4893087+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-9261-412e-a223-4b580dafa91b" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-9261-412e-a223-4b580dafa91b", + "type": "Microsoft.Communication.CallConnected", + "data": { + "eventSource": "calling/callConnections/421f0b00-9261-412e-a223-4b580dafa91b", + "operationContext": "CancelMediaAnswer", + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-9261-412e-a223-4b580dafa91b", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.CallConnected" + }, + "time": "2024-03-08T21:39:05.4893087+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-8e04-413a-9b5e-b02759908051" + "subject": "calling/callConnections/421f0b00-9261-412e-a223-4b580dafa91b" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-ce1c-463a-8ffa-2e86a6a6c239", + "source": "calling/callConnections/421f0b00-dc54-4538-9eb8-ed6ee263a7db", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-ce1c-463a-8ffa-2e86a6a6c239", + "eventSource": "calling/callConnections/421f0b00-dc54-4538-9eb8-ed6ee263a7db", "operationContext": "CancelMediaCreateCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-ce1c-463a-8ffa-2e86a6a6c239", + "callConnectionId": "421f0b00-dc54-4538-9eb8-ed6ee263a7db", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:57:30.3883243+00:00", + "time": "2024-03-08T21:39:05.5674975+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-ce1c-463a-8ffa-2e86a6a6c239" + "subject": "calling/callConnections/421f0b00-dc54-4538-9eb8-ed6ee263a7db" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-ce1c-463a-8ffa-2e86a6a6c239", + "source": "calling/callConnections/421f0b00-dc54-4538-9eb8-ed6ee263a7db", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-ce1c-463a-8ffa-2e86a6a6c239", + "eventSource": "calling/callConnections/421f0b00-dc54-4538-9eb8-ed6ee263a7db", "participants": [ { "identifier": { @@ -117,7 +119,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -127,80 +130,81 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-ce1c-463a-8ffa-2e86a6a6c239", + "callConnectionId": "421f0b00-dc54-4538-9eb8-ed6ee263a7db", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:57:30.3727507+00:00", + "time": "2024-03-08T21:39:05.5674975+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-ce1c-463a-8ffa-2e86a6a6c239" + "subject": "calling/callConnections/421f0b00-dc54-4538-9eb8-ed6ee263a7db" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-ce1c-463a-8ffa-2e86a6a6c239", + "source": "calling/callConnections/421f0b00-dc54-4538-9eb8-ed6ee263a7db", "type": "Microsoft.Communication.PlayCanceled", "data": { - "eventSource": "calling/callConnections/401f0700-ce1c-463a-8ffa-2e86a6a6c239", + "eventSource": "calling/callConnections/421f0b00-dc54-4538-9eb8-ed6ee263a7db", "operationContext": "CancelplayToAllAudio", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-ce1c-463a-8ffa-2e86a6a6c239", + "callConnectionId": "421f0b00-dc54-4538-9eb8-ed6ee263a7db", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.PlayCanceled" }, - "time": "2024-01-04T13:57:33.9198494+00:00", + "time": "2024-03-08T21:39:07.2549531+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-ce1c-463a-8ffa-2e86a6a6c239" + "subject": "calling/callConnections/421f0b00-dc54-4538-9eb8-ed6ee263a7db" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-ce1c-463a-8ffa-2e86a6a6c239", + "source": "calling/callConnections/421f0b00-dc54-4538-9eb8-ed6ee263a7db", "type": "Microsoft.Communication.CallDisconnected", "data": { - "eventSource": "calling/callConnections/401f0700-ce1c-463a-8ffa-2e86a6a6c239", + "eventSource": "calling/callConnections/421f0b00-dc54-4538-9eb8-ed6ee263a7db", "operationContext": "CancelMediaCreateCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-ce1c-463a-8ffa-2e86a6a6c239", + "callConnectionId": "421f0b00-dc54-4538-9eb8-ed6ee263a7db", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallDisconnected" }, - "time": "2024-01-04T13:57:36.1075228+00:00", + "time": "2024-03-08T21:39:08.4112185+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-ce1c-463a-8ffa-2e86a6a6c239" + "subject": "calling/callConnections/421f0b00-dc54-4538-9eb8-ed6ee263a7db" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-8e04-413a-9b5e-b02759908051", + "source": "calling/callConnections/421f0b00-9261-412e-a223-4b580dafa91b", "type": "Microsoft.Communication.CallDisconnected", "data": { - "eventSource": "calling/callConnections/401f0700-8e04-413a-9b5e-b02759908051", + "eventSource": "calling/callConnections/421f0b00-9261-412e-a223-4b580dafa91b", "operationContext": "CancelMediaAnswer", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-8e04-413a-9b5e-b02759908051", + "callConnectionId": "421f0b00-9261-412e-a223-4b580dafa91b", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallDisconnected" }, - "time": "2024-01-04T13:57:36.1388376+00:00", + "time": "2024-03-08T21:39:08.4737327+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-8e04-413a-9b5e-b02759908051" + "subject": "calling/callConnections/421f0b00-9261-412e-a223-4b580dafa91b" } ] ] \ No newline at end of file diff --git a/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Play_audio_to_all_participants.json b/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Play_audio_to_all_participants.json index 77679c725ca2..2be2bce78d17 100644 --- a/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Play_audio_to_all_participants.json +++ b/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Play_audio_to_all_participants.json @@ -22,10 +22,30 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-80ab-45c1-b923-a8776c5d8c1d", + "source": "calling/callConnections/421f0b00-7d30-4c7e-bd99-05a35aa38603", + "type": "Microsoft.Communication.CallConnected", + "data": { + "eventSource": "calling/callConnections/421f0b00-7d30-4c7e-bd99-05a35aa38603", + "operationContext": "playToAllAnswer", + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-7d30-4c7e-bd99-05a35aa38603", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.CallConnected" + }, + "time": "2024-03-08T21:38:52.3016596+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-7d30-4c7e-bd99-05a35aa38603" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-7d30-4c7e-bd99-05a35aa38603", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-80ab-45c1-b923-a8776c5d8c1d", + "eventSource": "calling/callConnections/421f0b00-7d30-4c7e-bd99-05a35aa38603", "participants": [ { "identifier": { @@ -35,7 +55,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -45,29 +66,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-80ab-45c1-b923-a8776c5d8c1d", + "callConnectionId": "421f0b00-7d30-4c7e-bd99-05a35aa38603", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:56:53.4703527+00:00", + "time": "2024-03-08T21:38:52.3172836+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-80ab-45c1-b923-a8776c5d8c1d" + "subject": "calling/callConnections/421f0b00-7d30-4c7e-bd99-05a35aa38603" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-0a30-48dd-9303-766f08019c43", + "source": "calling/callConnections/421f0b00-190f-4eb1-ae5b-37dadd8c0325", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-0a30-48dd-9303-766f08019c43", + "eventSource": "calling/callConnections/421f0b00-190f-4eb1-ae5b-37dadd8c0325", "participants": [ { "identifier": { @@ -77,7 +99,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -87,69 +110,50 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-0a30-48dd-9303-766f08019c43", + "callConnectionId": "421f0b00-190f-4eb1-ae5b-37dadd8c0325", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:56:53.4546795+00:00", + "time": "2024-03-08T21:38:52.3642538+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-0a30-48dd-9303-766f08019c43" + "subject": "calling/callConnections/421f0b00-190f-4eb1-ae5b-37dadd8c0325" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-80ab-45c1-b923-a8776c5d8c1d", + "source": "calling/callConnections/421f0b00-190f-4eb1-ae5b-37dadd8c0325", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-80ab-45c1-b923-a8776c5d8c1d", + "eventSource": "calling/callConnections/421f0b00-190f-4eb1-ae5b-37dadd8c0325", "operationContext": "playToAllCreateCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-80ab-45c1-b923-a8776c5d8c1d", - "serverCallId": "sanitized", - "correlationId": "sanitized", - "publicEventType": "Microsoft.Communication.CallConnected" - }, - "time": "2024-01-04T13:56:53.4703527+00:00", - "specversion": "1.0", - "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-80ab-45c1-b923-a8776c5d8c1d" - } - ], - [ - { - "id": "sanitized", - "source": "calling/callConnections/401f0700-0a30-48dd-9303-766f08019c43", - "type": "Microsoft.Communication.CallConnected", - "data": { - "eventSource": "calling/callConnections/401f0700-0a30-48dd-9303-766f08019c43", - "operationContext": "playToAllAnswer", - "version": "2023-10-03-preview", - "callConnectionId": "401f0700-0a30-48dd-9303-766f08019c43", + "callConnectionId": "421f0b00-190f-4eb1-ae5b-37dadd8c0325", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:56:53.4390729+00:00", + "time": "2024-03-08T21:38:52.3642538+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-0a30-48dd-9303-766f08019c43" + "subject": "calling/callConnections/421f0b00-190f-4eb1-ae5b-37dadd8c0325" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-80ab-45c1-b923-a8776c5d8c1d", + "source": "calling/callConnections/421f0b00-190f-4eb1-ae5b-37dadd8c0325", "type": "Microsoft.Communication.PlayCompleted", "data": { - "eventSource": "calling/callConnections/401f0700-80ab-45c1-b923-a8776c5d8c1d", + "eventSource": "calling/callConnections/421f0b00-190f-4eb1-ae5b-37dadd8c0325", "resultInformation": { "code": 200, "subCode": 0, @@ -157,55 +161,55 @@ }, "operationContext": "playToAllAudio", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-80ab-45c1-b923-a8776c5d8c1d", + "callConnectionId": "421f0b00-190f-4eb1-ae5b-37dadd8c0325", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.PlayCompleted" }, - "time": "2024-01-04T13:57:14.4328996+00:00", + "time": "2024-03-08T21:38:58.1299007+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-80ab-45c1-b923-a8776c5d8c1d" + "subject": "calling/callConnections/421f0b00-190f-4eb1-ae5b-37dadd8c0325" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-80ab-45c1-b923-a8776c5d8c1d", + "source": "calling/callConnections/421f0b00-190f-4eb1-ae5b-37dadd8c0325", "type": "Microsoft.Communication.CallDisconnected", "data": { - "eventSource": "calling/callConnections/401f0700-80ab-45c1-b923-a8776c5d8c1d", + "eventSource": "calling/callConnections/421f0b00-190f-4eb1-ae5b-37dadd8c0325", "operationContext": "playToAllCreateCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-80ab-45c1-b923-a8776c5d8c1d", + "callConnectionId": "421f0b00-190f-4eb1-ae5b-37dadd8c0325", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallDisconnected" }, - "time": "2024-01-04T13:57:16.40183+00:00", + "time": "2024-03-08T21:38:59.0048585+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-80ab-45c1-b923-a8776c5d8c1d" + "subject": "calling/callConnections/421f0b00-190f-4eb1-ae5b-37dadd8c0325" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-0a30-48dd-9303-766f08019c43", + "source": "calling/callConnections/421f0b00-7d30-4c7e-bd99-05a35aa38603", "type": "Microsoft.Communication.CallDisconnected", "data": { - "eventSource": "calling/callConnections/401f0700-0a30-48dd-9303-766f08019c43", + "eventSource": "calling/callConnections/421f0b00-7d30-4c7e-bd99-05a35aa38603", "operationContext": "playToAllAnswer", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-0a30-48dd-9303-766f08019c43", + "callConnectionId": "421f0b00-7d30-4c7e-bd99-05a35aa38603", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallDisconnected" }, - "time": "2024-01-04T13:57:16.417459+00:00", + "time": "2024-03-08T21:38:59.0673616+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-0a30-48dd-9303-766f08019c43" + "subject": "calling/callConnections/421f0b00-7d30-4c7e-bd99-05a35aa38603" } ] ] \ No newline at end of file diff --git a/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Play_audio_to_target_participant.json b/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Play_audio_to_target_participant.json index 4b6b565dcb3c..a173c1890ef5 100644 --- a/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Play_audio_to_target_participant.json +++ b/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Play_audio_to_target_participant.json @@ -22,30 +22,30 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "source": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7", - "operationContext": "playAudioCreateCall", + "eventSource": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79", + "operationContext": "playAudioAnswer", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "callConnectionId": "421f0b00-abd6-405b-adcd-379e020f1e79", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:56:15.480259+00:00", + "time": "2024-03-08T21:38:36.0029069+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7" + "subject": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "source": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "eventSource": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79", "participants": [ { "identifier": { @@ -55,7 +55,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -65,49 +66,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "callConnectionId": "421f0b00-abd6-405b-adcd-379e020f1e79", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:56:15.511458+00:00", - "specversion": "1.0", - "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7" - } - ], - [ - { - "id": "sanitized", - "source": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395", - "type": "Microsoft.Communication.CallConnected", - "data": { - "eventSource": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395", - "operationContext": "playAudioAnswer", - "version": "2023-10-03-preview", - "callConnectionId": "401f0700-97a3-48bb-946e-f87a63e62395", - "serverCallId": "sanitized", - "correlationId": "sanitized", - "publicEventType": "Microsoft.Communication.CallConnected" - }, - "time": "2024-01-04T13:56:15.4958338+00:00", + "time": "2024-03-08T21:38:36.0341077+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395" + "subject": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395", + "source": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395", + "eventSource": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "participants": [ { "identifier": { @@ -117,7 +99,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -127,29 +110,50 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-97a3-48bb-946e-f87a63e62395", + "callConnectionId": "421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:56:15.4958338+00:00", + "time": "2024-03-08T21:38:36.0653533+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3", + "type": "Microsoft.Communication.CallConnected", + "data": { + "eventSource": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3", + "operationContext": "playAudioCreateCall", + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-0c00-44cd-bcf7-dbf37e55eca3", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.CallConnected" + }, + "time": "2024-03-08T21:38:36.0653533+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395" + "subject": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "source": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "eventSource": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79", "participants": [ { "identifier": { @@ -159,7 +163,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -169,29 +174,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": true } ], - "sequenceNumber": 4, + "sequenceNumber": 3, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "callConnectionId": "421f0b00-abd6-405b-adcd-379e020f1e79", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:56:19.261861+00:00", + "time": "2024-03-08T21:38:39.7372743+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7" + "subject": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395", + "source": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395", + "eventSource": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "participants": [ { "identifier": { @@ -201,7 +207,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -211,29 +218,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": true } ], - "sequenceNumber": 4, + "sequenceNumber": 3, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-97a3-48bb-946e-f87a63e62395", + "callConnectionId": "421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:56:19.261861+00:00", + "time": "2024-03-08T21:38:39.7372743+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395" + "subject": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "source": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "type": "Microsoft.Communication.PlayCompleted", "data": { - "eventSource": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "eventSource": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "resultInformation": { "code": 200, "subCode": 0, @@ -241,24 +249,24 @@ }, "operationContext": "playAudio", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "callConnectionId": "421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.PlayCompleted" }, - "time": "2024-01-04T13:56:36.9976507+00:00", + "time": "2024-03-08T21:38:44.6123274+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7" + "subject": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "source": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "eventSource": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79", "participants": [ { "identifier": { @@ -268,7 +276,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -278,29 +287,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 5, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "callConnectionId": "421f0b00-abd6-405b-adcd-379e020f1e79", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:56:37.0288941+00:00", + "time": "2024-03-08T21:38:44.6435749+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7" + "subject": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395", + "source": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395", + "eventSource": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "participants": [ { "identifier": { @@ -310,7 +320,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -320,60 +331,61 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 5, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-97a3-48bb-946e-f87a63e62395", + "callConnectionId": "421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:56:37.0288941+00:00", + "time": "2024-03-08T21:38:44.6592091+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395" + "subject": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "source": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "type": "Microsoft.Communication.CallDisconnected", "data": { - "eventSource": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "eventSource": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "operationContext": "playAudioCreateCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "callConnectionId": "421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallDisconnected" }, - "time": "2024-01-04T13:56:38.8597105+00:00", + "time": "2024-03-08T21:38:46.2061446+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7" + "subject": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395", + "source": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79", "type": "Microsoft.Communication.CallDisconnected", "data": { - "eventSource": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395", + "eventSource": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79", "operationContext": "playAudioAnswer", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-97a3-48bb-946e-f87a63e62395", + "callConnectionId": "421f0b00-abd6-405b-adcd-379e020f1e79", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallDisconnected" }, - "time": "2024-01-04T13:56:38.8753817+00:00", + "time": "2024-03-08T21:38:46.2842181+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395" + "subject": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79" } ] ] \ No newline at end of file diff --git a/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Trigger_DTMF_actions.json b/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Trigger_DTMF_actions.json index b3e790370c9c..201def493756 100644 --- a/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Trigger_DTMF_actions.json +++ b/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Trigger_DTMF_actions.json @@ -22,201 +22,205 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef", + "source": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef", + "eventSource": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-1b44-47f8-9969-2db0c54eb3ef", + "callConnectionId": "421f0b00-bad1-454d-b3c5-8864182de29d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:57:51.7181755+00:00", + "time": "2024-03-08T21:39:16.1300989+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef" + "subject": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef", + "source": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef", + "eventSource": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d", "participants": [ { "identifier": { "rawId": "sanitized", - "kind": "phoneNumber", - "phoneNumber": { - "value": "sanitized" + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { "rawId": "sanitized", - "kind": "communicationUser", - "communicationUser": { - "id": "sanitized" + "kind": "phoneNumber", + "phoneNumber": { + "value": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-1b44-47f8-9969-2db0c54eb3ef", + "callConnectionId": "421f0b00-bad1-454d-b3c5-8864182de29d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:57:51.7025558+00:00", + "time": "2024-03-08T21:39:16.1300989+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef" + "subject": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-383c-430b-8294-b15170b76617", + "source": "calling/callConnections/421f0b00-df51-4e90-a348-c1afd0559a7d", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-383c-430b-8294-b15170b76617", + "eventSource": "calling/callConnections/421f0b00-df51-4e90-a348-c1afd0559a7d", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-383c-430b-8294-b15170b76617", + "callConnectionId": "421f0b00-df51-4e90-a348-c1afd0559a7d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:57:52.0776421+00:00", + "time": "2024-03-08T21:39:16.2082231+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-383c-430b-8294-b15170b76617" + "subject": "calling/callConnections/421f0b00-df51-4e90-a348-c1afd0559a7d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-383c-430b-8294-b15170b76617", + "source": "calling/callConnections/421f0b00-df51-4e90-a348-c1afd0559a7d", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-383c-430b-8294-b15170b76617", + "eventSource": "calling/callConnections/421f0b00-df51-4e90-a348-c1afd0559a7d", "participants": [ { "identifier": { "rawId": "sanitized", - "kind": "phoneNumber", - "phoneNumber": { - "value": "sanitized" + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { "rawId": "sanitized", - "kind": "communicationUser", - "communicationUser": { - "id": "sanitized" + "kind": "phoneNumber", + "phoneNumber": { + "value": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-383c-430b-8294-b15170b76617", + "callConnectionId": "421f0b00-df51-4e90-a348-c1afd0559a7d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:57:52.9370184+00:00", + "time": "2024-03-08T21:39:16.4454559+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-383c-430b-8294-b15170b76617" + "subject": "calling/callConnections/421f0b00-df51-4e90-a348-c1afd0559a7d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef", + "source": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d", "type": "Microsoft.Communication.SendDtmfTonesCompleted", "data": { - "eventSource": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef", + "eventSource": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d", "operationContext": "ContinuousDtmfRecognitionSend", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-1b44-47f8-9969-2db0c54eb3ef", + "callConnectionId": "421f0b00-bad1-454d-b3c5-8864182de29d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.SendDtmfTonesCompleted" }, - "time": "2024-01-04T13:57:59.0469098+00:00", + "time": "2024-03-08T21:39:21.1954969+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef" + "subject": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef", + "source": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d", "type": "Microsoft.Communication.ContinuousDtmfRecognitionStopped", "data": { - "eventSource": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef", + "eventSource": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d", "operationContext": "ContinuousDtmfRecognitionStop", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-1b44-47f8-9969-2db0c54eb3ef", + "callConnectionId": "421f0b00-bad1-454d-b3c5-8864182de29d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ContinuousDtmfRecognitionStopped" }, - "time": "2024-01-04T13:58:00.8751965+00:00", + "time": "2024-03-08T21:39:21.8830024+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef" + "subject": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef", + "source": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d", "type": "Microsoft.Communication.CallDisconnected", "data": { - "eventSource": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef", + "eventSource": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-1b44-47f8-9969-2db0c54eb3ef", + "callConnectionId": "421f0b00-bad1-454d-b3c5-8864182de29d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallDisconnected" }, - "time": "2024-01-04T13:58:03.0785144+00:00", + "time": "2024-03-08T21:39:23.0548241+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef" + "subject": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-383c-430b-8294-b15170b76617", + "source": "calling/callConnections/421f0b00-df51-4e90-a348-c1afd0559a7d", "type": "Microsoft.Communication.CallDisconnected", "data": { - "eventSource": "calling/callConnections/401f0700-383c-430b-8294-b15170b76617", + "eventSource": "calling/callConnections/421f0b00-df51-4e90-a348-c1afd0559a7d", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-383c-430b-8294-b15170b76617", + "callConnectionId": "421f0b00-df51-4e90-a348-c1afd0559a7d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallDisconnected" }, - "time": "2024-01-04T13:58:03.7504511+00:00", + "time": "2024-03-08T21:39:23.2892567+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-383c-430b-8294-b15170b76617" + "subject": "calling/callConnections/421f0b00-df51-4e90-a348-c1afd0559a7d" } ] ] \ No newline at end of file diff --git a/sdk/communication/communication-call-automation/review/communication-call-automation.api.md b/sdk/communication/communication-call-automation/review/communication-call-automation.api.md index 7a38a844edfd..32f31323e343 100644 --- a/sdk/communication/communication-call-automation/review/communication-call-automation.api.md +++ b/sdk/communication/communication-call-automation/review/communication-call-automation.api.md @@ -65,6 +65,7 @@ export interface AddParticipantSucceeded extends Omit; } +// Warning: (ae-forgotten-export) The symbol "RestAnswerFailed" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export interface AnswerFailed extends Omit { + callConnectionId: string; + correlationId: string; + kind: "AnswerFailed"; + // Warning: (ae-forgotten-export) The symbol "RestResultInformation" needs to be exported by the entry point index.d.ts + resultInformation?: RestResultInformation; + serverCallId: string; +} + // @public export class CallAutomationClient { constructor(connectionString: string, options?: CallAutomationClientOptions); @@ -106,7 +119,7 @@ export interface CallAutomationClientOptions extends CommonClientOptions { } // @public -export type CallAutomationEvent = AddParticipantSucceeded | AddParticipantFailed | RemoveParticipantSucceeded | RemoveParticipantFailed | CallConnected | CallDisconnected | CallTransferAccepted | CallTransferFailed | ParticipantsUpdated | RecordingStateChanged | TeamsComplianceRecordingStateChanged | TeamsRecordingStateChanged | PlayCompleted | PlayFailed | PlayCanceled | RecognizeCompleted | RecognizeCanceled | RecognizeFailed | ContinuousDtmfRecognitionToneReceived | ContinuousDtmfRecognitionToneFailed | ContinuousDtmfRecognitionStopped | SendDtmfTonesCompleted | SendDtmfTonesFailed | CancelAddParticipantSucceeded | CancelAddParticipantFailed | TranscriptionStarted | TranscriptionStopped | TranscriptionUpdated | TranscriptionFailed; +export type CallAutomationEvent = AddParticipantSucceeded | AddParticipantFailed | RemoveParticipantSucceeded | RemoveParticipantFailed | CallConnected | CallDisconnected | CallTransferAccepted | CallTransferFailed | ParticipantsUpdated | RecordingStateChanged | TeamsComplianceRecordingStateChanged | TeamsRecordingStateChanged | PlayCompleted | PlayFailed | PlayCanceled | RecognizeCompleted | RecognizeCanceled | RecognizeFailed | ContinuousDtmfRecognitionToneReceived | ContinuousDtmfRecognitionToneFailed | ContinuousDtmfRecognitionStopped | SendDtmfTonesCompleted | SendDtmfTonesFailed | CancelAddParticipantSucceeded | CancelAddParticipantFailed | TranscriptionStarted | TranscriptionStopped | TranscriptionUpdated | TranscriptionFailed | CreateCallFailed | AnswerFailed; // @public export class CallAutomationEventProcessor { @@ -203,7 +216,7 @@ export class CallMedia { playToAll(playSources: (FileSource | TextSource | SsmlSource)[], options?: PlayOptions): Promise; sendDtmfTones(tones: Tone[] | DtmfTone[], targetParticipant: CommunicationIdentifier, options?: SendDtmfTonesOptions): Promise; startContinuousDtmfRecognition(targetParticipant: CommunicationIdentifier, options?: ContinuousDtmfRecognitionOptions): Promise; - startHoldMusic(targetParticipant: CommunicationIdentifier, playSource: FileSource | TextSource | SsmlSource, loop?: boolean, operationContext?: string | undefined): Promise; + startHoldMusic(targetParticipant: CommunicationIdentifier, playSource: FileSource | TextSource | SsmlSource, operationContext?: string | undefined): Promise; // @deprecated startRecognizing(targetParticipant: CommunicationIdentifier, maxTonesToCollect: number, options: CallMediaRecognizeDtmfOptions): Promise; startRecognizing(targetParticipant: CommunicationIdentifier, options: CallMediaRecognizeDtmfOptions | CallMediaRecognizeChoiceOptions | CallMediaRecognizeSpeechOptions | CallMediaRecognizeSpeechOrDtmfOptions): Promise; @@ -423,10 +436,22 @@ export interface ContinuousDtmfRecognitionToneReceived extends Omit { + callConnectionId: string; + correlationId: string; + kind: "CreateCallFailed"; + resultInformation?: RestResultInformation; + serverCallId: string; +} + // @public export interface CreateCallOptions extends OperationOptions { callIntelligenceOptions?: CallIntelligenceOptions; @@ -772,8 +797,6 @@ export interface RemoveParticipantSucceeded extends Omit { code: number; diff --git a/sdk/communication/communication-call-automation/src/callAutomationClient.ts b/sdk/communication/communication-call-automation/src/callAutomationClient.ts index fe8b7390c924..9f2c36f9fa1c 100644 --- a/sdk/communication/communication-call-automation/src/callAutomationClient.ts +++ b/sdk/communication/communication-call-automation/src/callAutomationClient.ts @@ -209,6 +209,13 @@ export class CallAutomationClient { createCallEventResult.isSuccess = true; createCallEventResult.successResult = event; return true; + } else if ( + event.callConnectionId === callConnectionId && + event.kind === "CreateCallFailed" + ) { + createCallEventResult.isSuccess = false; + createCallEventResult.failureResult = event; + return true; } else { return false; } @@ -349,6 +356,11 @@ export class CallAutomationClient { answerCallEventResult.isSuccess = true; answerCallEventResult.successResult = event; return true; + } + if (event.callConnectionId === callConnectionId && event.kind === "AnswerFailed") { + answerCallEventResult.isSuccess = false; + answerCallEventResult.failureResult = event; + return true; } else { return false; } diff --git a/sdk/communication/communication-call-automation/src/callAutomationEventParser.ts b/sdk/communication/communication-call-automation/src/callAutomationEventParser.ts index 5b7b3ac9567a..caa409bfc1f1 100644 --- a/sdk/communication/communication-call-automation/src/callAutomationEventParser.ts +++ b/sdk/communication/communication-call-automation/src/callAutomationEventParser.ts @@ -36,6 +36,8 @@ import { TranscriptionStopped, TranscriptionUpdated, TranscriptionFailed, + CreateCallFailed, + AnswerFailed, } from "./models/events"; import { CloudEventMapper } from "./models/mapper"; @@ -160,6 +162,12 @@ export function parseCallAutomationEvent( case "Microsoft.Communication.TranscriptionFailed": callbackEvent = { kind: "TranscriptionFailed" } as TranscriptionFailed; break; + case "Microsoft.Communication.CreateCallFailed": + callbackEvent = { kind: "CreateCallFailed" } as CreateCallFailed; + break; + case "Microsoft.Communication.AnswerFailed": + callbackEvent = { kind: "AnswerFailed" } as AnswerFailed; + break; default: throw new TypeError(`Unknown Call Automation Event type: ${eventType}`); } diff --git a/sdk/communication/communication-call-automation/src/callMedia.ts b/sdk/communication/communication-call-automation/src/callMedia.ts index 3255431f1c8d..d430bd3a5c3b 100644 --- a/sdk/communication/communication-call-automation/src/callMedia.ts +++ b/sdk/communication/communication-call-automation/src/callMedia.ts @@ -608,19 +608,16 @@ export class CallMedia { * * @param targetParticipant - The targets to play to. * @param playSource - A PlaySource representing the source to play. - * @param loop - To play the audio continously until stopped. * @param operationContext - Operation Context. */ public async startHoldMusic( targetParticipant: CommunicationIdentifier, playSource: FileSource | TextSource | SsmlSource, - loop: boolean = true, operationContext: string | undefined = undefined, ): Promise { const holdRequest: StartHoldMusicRequest = { targetParticipant: serializeCommunicationIdentifier(targetParticipant), playSourceInfo: this.createPlaySourceInternal(playSource), - loop: loop, operationContext: operationContext, }; diff --git a/sdk/communication/communication-call-automation/src/eventprocessor/eventResponses.ts b/sdk/communication/communication-call-automation/src/eventprocessor/eventResponses.ts index fbd084daecc7..49d60951447f 100644 --- a/sdk/communication/communication-call-automation/src/eventprocessor/eventResponses.ts +++ b/sdk/communication/communication-call-automation/src/eventprocessor/eventResponses.ts @@ -19,6 +19,8 @@ import { CallTransferFailed, CancelAddParticipantSucceeded, CancelAddParticipantFailed, + CreateCallFailed, + AnswerFailed, } from "../models/events"; /** @@ -43,6 +45,8 @@ export interface AnswerCallEventResult { isSuccess: boolean; /** contains success event if the result was successful */ successResult?: CallConnected; + /** contains failure event if the result was failure */ + failureResult?: AnswerFailed; } /** @@ -65,6 +69,8 @@ export interface CreateCallEventResult { isSuccess: boolean; /** contains success event if the result was successful */ successResult?: CallConnected; + /** contains failure event if the result was failure */ + failureResult?: CreateCallFailed; } /** diff --git a/sdk/communication/communication-call-automation/src/generated/src/models/index.ts b/sdk/communication/communication-call-automation/src/generated/src/models/index.ts index 302b85cb4f58..e686b118d1ef 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/models/index.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/models/index.ts @@ -53,6 +53,8 @@ export interface CommunicationIdentifierModel { phoneNumber?: PhoneNumberIdentifierModel; /** The Microsoft Teams user. */ microsoftTeamsUser?: MicrosoftTeamsUserIdentifierModel; + /** The Microsoft Teams application. */ + microsoftTeamsApp?: MicrosoftTeamsAppIdentifierModel; } /** A user that got created with an Azure Communication Services resource. */ @@ -77,6 +79,14 @@ export interface MicrosoftTeamsUserIdentifierModel { cloud?: CommunicationCloudEnvironmentModel; } +/** A Microsoft Teams application. */ +export interface MicrosoftTeamsAppIdentifierModel { + /** The Id of the Microsoft Teams application. */ + appId: string; + /** The cloud that the Microsoft Teams application belongs to. By default 'public' if missing. */ + cloud?: CommunicationCloudEnvironmentModel; +} + /** Configuration of Media streaming. */ export interface MediaStreamingConfiguration { /** Transport URL for media streaming */ @@ -143,8 +153,8 @@ export interface CallConnectionPropertiesInternal { correlationId?: string; /** Identity of the answering entity. Only populated when identity is provided in the request. */ answeredBy?: CommunicationUserIdentifierModel; - /** The original PSTN target of the incoming Call. */ - originalPstnTarget?: PhoneNumberIdentifierModel; + /** Identity of the original Pstn target of an incoming Call. Only populated when the original target is a Pstn number. */ + answeredFor?: PhoneNumberIdentifierModel; } /** The Communication Services error. */ @@ -419,16 +429,45 @@ export interface UpdateTranscriptionRequest { locale: string; } +/** The request payload for holding participant from the call. */ +export interface HoldRequest { + /** Participant to be held from the call. */ + targetParticipant: CommunicationIdentifierModel; + /** Prompt to play while in hold. */ + playSourceInfo?: PlaySourceInternal; + /** Used by customers when calling mid-call actions to correlate the request to the response event. */ + operationContext?: string; + /** + * Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation. + * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used. + */ + operationCallbackUri?: string; +} + +/** The request payload for holding participant from the call. */ +export interface UnholdRequest { + /** + * Participants to be hold from the call. + * Only ACS Users are supported. + */ + targetParticipant: CommunicationIdentifierModel; + /** Used by customers when calling mid-call actions to correlate the request to the response event. */ + operationContext?: string; +} + /** The request payload for holding participant from the call. */ export interface StartHoldMusicRequest { /** Participant to be held from the call. */ targetParticipant: CommunicationIdentifierModel; /** Prompt to play while in hold. */ - playSourceInfo: PlaySourceInternal; - /** If the prompt will be looped or not. */ - loop?: boolean; + playSourceInfo?: PlaySourceInternal; /** Used by customers when calling mid-call actions to correlate the request to the response event. */ operationContext?: string; + /** + * Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation. + * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used. + */ + operationCallbackUri?: string; } /** The request payload for holding participant from the call. */ @@ -503,6 +542,8 @@ export interface CallParticipantInternal { identifier?: CommunicationIdentifierModel; /** Is participant muted */ isMuted?: boolean; + /** Is participant on hold. */ + isOnHold?: boolean; } /** The request payload for adding participant to the call. */ @@ -1989,6 +2030,92 @@ export interface RestTranscriptionFailed { readonly correlationId?: string; } +/** The CreateCallFailed event */ +export interface RestCreateCallFailed { + /** + * Used by customers when calling mid-call actions to correlate the request to the response event. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operationContext?: string; + /** + * Contains the resulting SIP code, sub-code and message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resultInformation?: RestResultInformation; + /** + * Call connection ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly callConnectionId?: string; + /** + * Server call ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly serverCallId?: string; + /** + * Correlation ID for event to call correlation. Also called ChainId for skype chain ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly correlationId?: string; +} + +/** AnswerFailed event */ +export interface RestAnswerFailed { + /** + * Used by customers when calling mid-call actions to correlate the request to the response event. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operationContext?: string; + /** + * Contains the resulting SIP code, sub-code and message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resultInformation?: RestResultInformation; + /** + * Call connection ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly callConnectionId?: string; + /** + * Server call ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly serverCallId?: string; + /** + * Correlation ID for event to call correlation. Also called ChainId for skype chain ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly correlationId?: string; +} + +export interface RestHoldFailed { + /** + * Used by customers when calling mid-call actions to correlate the request to the response event. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operationContext?: string; + /** + * Contains the resulting SIP code, sub-code and message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resultInformation?: RestResultInformation; + /** + * Call connection ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly callConnectionId?: string; + /** + * Server call ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly serverCallId?: string; + /** + * Correlation ID for event to call correlation. Also called ChainId for skype chain ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly correlationId?: string; +} + /** Azure Open AI Dialog */ export interface AzureOpenAIDialog extends BaseDialog { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -2021,6 +2148,8 @@ export enum KnownCommunicationIdentifierModelKind { PhoneNumber = "phoneNumber", /** MicrosoftTeamsUser */ MicrosoftTeamsUser = "microsoftTeamsUser", + /** MicrosoftTeamsApp */ + MicrosoftTeamsApp = "microsoftTeamsApp", } /** @@ -2031,7 +2160,8 @@ export enum KnownCommunicationIdentifierModelKind { * **unknown** \ * **communicationUser** \ * **phoneNumber** \ - * **microsoftTeamsUser** + * **microsoftTeamsUser** \ + * **microsoftTeamsApp** */ export type CommunicationIdentifierModelKind = string; @@ -2452,6 +2582,8 @@ export enum KnownTranscriptionStatus { TranscriptionStarted = "transcriptionStarted", /** TranscriptionFailed */ TranscriptionFailed = "transcriptionFailed", + /** TranscriptionResumed */ + TranscriptionResumed = "transcriptionResumed", /** TranscriptionUpdated */ TranscriptionUpdated = "transcriptionUpdated", /** TranscriptionStopped */ @@ -2467,6 +2599,7 @@ export enum KnownTranscriptionStatus { * ### Known values supported by the service * **transcriptionStarted** \ * **transcriptionFailed** \ + * **transcriptionResumed** \ * **transcriptionUpdated** \ * **transcriptionStopped** \ * **unspecifiedError** @@ -2748,6 +2881,14 @@ export type CallMediaSendDtmfTonesResponse = SendDtmfTonesResult; export interface CallMediaUpdateTranscriptionOptionalParams extends coreClient.OperationOptions {} +/** Optional parameters. */ +export interface CallMediaHoldOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface CallMediaUnholdOptionalParams + extends coreClient.OperationOptions {} + /** Optional parameters. */ export interface CallMediaStartHoldMusicOptionalParams extends coreClient.OperationOptions {} @@ -2766,7 +2907,7 @@ export type CallDialogStartDialogResponse = DialogStateResponse; /** Optional parameters. */ export interface CallDialogStopDialogOptionalParams extends coreClient.OperationOptions { - /** Opeation callback URI. */ + /** Operation callback URI. */ operationCallbackUri?: string; } diff --git a/sdk/communication/communication-call-automation/src/generated/src/models/mappers.ts b/sdk/communication/communication-call-automation/src/generated/src/models/mappers.ts index 275f7ef68f8d..63a7175c1418 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/models/mappers.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/models/mappers.ts @@ -129,6 +129,13 @@ export const CommunicationIdentifierModel: coreClient.CompositeMapper = { className: "MicrosoftTeamsUserIdentifierModel", }, }, + microsoftTeamsApp: { + serializedName: "microsoftTeamsApp", + type: { + name: "Composite", + className: "MicrosoftTeamsAppIdentifierModel", + }, + }, }, }, }; @@ -193,6 +200,28 @@ export const MicrosoftTeamsUserIdentifierModel: coreClient.CompositeMapper = { }, }; +export const MicrosoftTeamsAppIdentifierModel: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MicrosoftTeamsAppIdentifierModel", + modelProperties: { + appId: { + serializedName: "appId", + required: true, + type: { + name: "String", + }, + }, + cloud: { + serializedName: "cloud", + type: { + name: "String", + }, + }, + }, + }, +}; + export const MediaStreamingConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", @@ -391,8 +420,8 @@ export const CallConnectionPropertiesInternal: coreClient.CompositeMapper = { className: "CommunicationUserIdentifierModel", }, }, - originalPstnTarget: { - serializedName: "originalPSTNTarget", + answeredFor: { + serializedName: "answeredFor", type: { name: "Composite", className: "PhoneNumberIdentifierModel", @@ -1175,10 +1204,10 @@ export const UpdateTranscriptionRequest: coreClient.CompositeMapper = { }, }; -export const StartHoldMusicRequest: coreClient.CompositeMapper = { +export const HoldRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StartHoldMusicRequest", + className: "HoldRequest", modelProperties: { targetParticipant: { serializedName: "targetParticipant", @@ -1194,10 +1223,61 @@ export const StartHoldMusicRequest: coreClient.CompositeMapper = { className: "PlaySourceInternal", }, }, - loop: { - serializedName: "loop", + operationContext: { + serializedName: "operationContext", type: { - name: "Boolean", + name: "String", + }, + }, + operationCallbackUri: { + serializedName: "operationCallbackUri", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const UnholdRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UnholdRequest", + modelProperties: { + targetParticipant: { + serializedName: "targetParticipant", + type: { + name: "Composite", + className: "CommunicationIdentifierModel", + }, + }, + operationContext: { + serializedName: "operationContext", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const StartHoldMusicRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StartHoldMusicRequest", + modelProperties: { + targetParticipant: { + serializedName: "targetParticipant", + type: { + name: "Composite", + className: "CommunicationIdentifierModel", + }, + }, + playSourceInfo: { + serializedName: "playSourceInfo", + type: { + name: "Composite", + className: "PlaySourceInternal", }, }, operationContext: { @@ -1206,6 +1286,12 @@ export const StartHoldMusicRequest: coreClient.CompositeMapper = { name: "String", }, }, + operationCallbackUri: { + serializedName: "operationCallbackUri", + type: { + name: "String", + }, + }, }, }, }; @@ -1423,6 +1509,12 @@ export const CallParticipantInternal: coreClient.CompositeMapper = { name: "Boolean", }, }, + isOnHold: { + serializedName: "isOnHold", + type: { + name: "Boolean", + }, + }, }, }, }; @@ -4034,6 +4126,138 @@ export const RestTranscriptionFailed: coreClient.CompositeMapper = { }, }; +export const RestCreateCallFailed: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestCreateCallFailed", + modelProperties: { + operationContext: { + serializedName: "operationContext", + readOnly: true, + type: { + name: "String", + }, + }, + resultInformation: { + serializedName: "resultInformation", + type: { + name: "Composite", + className: "RestResultInformation", + }, + }, + callConnectionId: { + serializedName: "callConnectionId", + readOnly: true, + type: { + name: "String", + }, + }, + serverCallId: { + serializedName: "serverCallId", + readOnly: true, + type: { + name: "String", + }, + }, + correlationId: { + serializedName: "correlationId", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const RestAnswerFailed: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestAnswerFailed", + modelProperties: { + operationContext: { + serializedName: "operationContext", + readOnly: true, + type: { + name: "String", + }, + }, + resultInformation: { + serializedName: "resultInformation", + type: { + name: "Composite", + className: "RestResultInformation", + }, + }, + callConnectionId: { + serializedName: "callConnectionId", + readOnly: true, + type: { + name: "String", + }, + }, + serverCallId: { + serializedName: "serverCallId", + readOnly: true, + type: { + name: "String", + }, + }, + correlationId: { + serializedName: "correlationId", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const RestHoldFailed: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestHoldFailed", + modelProperties: { + operationContext: { + serializedName: "operationContext", + readOnly: true, + type: { + name: "String", + }, + }, + resultInformation: { + serializedName: "resultInformation", + type: { + name: "Composite", + className: "RestResultInformation", + }, + }, + callConnectionId: { + serializedName: "callConnectionId", + readOnly: true, + type: { + name: "String", + }, + }, + serverCallId: { + serializedName: "serverCallId", + readOnly: true, + type: { + name: "String", + }, + }, + correlationId: { + serializedName: "correlationId", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + export const AzureOpenAIDialog: coreClient.CompositeMapper = { serializedName: "AzureOpenAI", type: { diff --git a/sdk/communication/communication-call-automation/src/generated/src/models/parameters.ts b/sdk/communication/communication-call-automation/src/generated/src/models/parameters.ts index bba2d0e3de02..b2bc1a702c9a 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/models/parameters.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/models/parameters.ts @@ -29,6 +29,8 @@ import { ContinuousDtmfRecognitionRequest as ContinuousDtmfRecognitionRequestMapper, SendDtmfTonesRequest as SendDtmfTonesRequestMapper, UpdateTranscriptionRequest as UpdateTranscriptionRequestMapper, + HoldRequest as HoldRequestMapper, + UnholdRequest as UnholdRequestMapper, StartHoldMusicRequest as StartHoldMusicRequestMapper, StopHoldMusicRequest as StopHoldMusicRequestMapper, StartDialogRequest as StartDialogRequestMapper, @@ -223,6 +225,16 @@ export const updateTranscriptionRequest: OperationParameter = { mapper: UpdateTranscriptionRequestMapper, }; +export const holdRequest: OperationParameter = { + parameterPath: "holdRequest", + mapper: HoldRequestMapper, +}; + +export const unholdRequest: OperationParameter = { + parameterPath: "unholdRequest", + mapper: UnholdRequestMapper, +}; + export const startHoldMusicRequest: OperationParameter = { parameterPath: "startHoldMusicRequest", mapper: StartHoldMusicRequestMapper, diff --git a/sdk/communication/communication-call-automation/src/generated/src/operations/callConnection.ts b/sdk/communication/communication-call-automation/src/generated/src/operations/callConnection.ts index cf6da1fd1803..bee6ed521a63 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/operations/callConnection.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/operations/callConnection.ts @@ -464,7 +464,7 @@ const muteOperationSpec: coreClient.OperationSpec = { path: "/calling/callConnections/{callConnectionId}/participants:mute", httpMethod: "POST", responses: { - 202: { + 200: { bodyMapper: Mappers.MuteParticipantsResult, }, default: { diff --git a/sdk/communication/communication-call-automation/src/generated/src/operations/callMedia.ts b/sdk/communication/communication-call-automation/src/generated/src/operations/callMedia.ts index 2725b56d1313..c0c7f56357cb 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/operations/callMedia.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/operations/callMedia.ts @@ -29,6 +29,10 @@ import { CallMediaSendDtmfTonesResponse, UpdateTranscriptionRequest, CallMediaUpdateTranscriptionOptionalParams, + HoldRequest, + CallMediaHoldOptionalParams, + UnholdRequest, + CallMediaUnholdOptionalParams, StartHoldMusicRequest, CallMediaStartHoldMusicOptionalParams, StopHoldMusicRequest, @@ -198,6 +202,40 @@ export class CallMediaImpl implements CallMedia { ); } + /** + * Hold participant from the call using identifier. + * @param callConnectionId The call connection id. + * @param holdRequest The participants to be hold from the call. + * @param options The options parameters. + */ + hold( + callConnectionId: string, + holdRequest: HoldRequest, + options?: CallMediaHoldOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { callConnectionId, holdRequest, options }, + holdOperationSpec, + ); + } + + /** + * Unhold participants from the call using identifier. + * @param callConnectionId The call connection id. + * @param unholdRequest The participants to be hold from the call. + * @param options The options parameters. + */ + unhold( + callConnectionId: string, + unholdRequest: UnholdRequest, + options?: CallMediaUnholdOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { callConnectionId, unholdRequest, options }, + unholdOperationSpec, + ); + } + /** * Hold participant from the call using identifier. * @param callConnectionId The call connection id. @@ -384,6 +422,38 @@ const updateTranscriptionOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer, }; +const holdOperationSpec: coreClient.OperationSpec = { + path: "/calling/callConnections/{callConnectionId}:hold", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CommunicationErrorResponse, + }, + }, + requestBody: Parameters.holdRequest, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.endpoint, Parameters.callConnectionId], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer, +}; +const unholdOperationSpec: coreClient.OperationSpec = { + path: "/calling/callConnections/{callConnectionId}:unhold", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CommunicationErrorResponse, + }, + }, + requestBody: Parameters.unholdRequest, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.endpoint, Parameters.callConnectionId], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer, +}; const startHoldMusicOperationSpec: coreClient.OperationSpec = { path: "/calling/callConnections/{callConnectionId}:startHoldMusic", httpMethod: "POST", diff --git a/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/callMedia.ts b/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/callMedia.ts index 40e0281bee7b..63a2a9419233 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/callMedia.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/callMedia.ts @@ -24,6 +24,10 @@ import { CallMediaSendDtmfTonesResponse, UpdateTranscriptionRequest, CallMediaUpdateTranscriptionOptionalParams, + HoldRequest, + CallMediaHoldOptionalParams, + UnholdRequest, + CallMediaUnholdOptionalParams, StartHoldMusicRequest, CallMediaStartHoldMusicOptionalParams, StopHoldMusicRequest, @@ -129,6 +133,28 @@ export interface CallMedia { updateTranscriptionRequest: UpdateTranscriptionRequest, options?: CallMediaUpdateTranscriptionOptionalParams, ): Promise; + /** + * Hold participant from the call using identifier. + * @param callConnectionId The call connection id. + * @param holdRequest The participants to be hold from the call. + * @param options The options parameters. + */ + hold( + callConnectionId: string, + holdRequest: HoldRequest, + options?: CallMediaHoldOptionalParams, + ): Promise; + /** + * Unhold participants from the call using identifier. + * @param callConnectionId The call connection id. + * @param unholdRequest The participants to be hold from the call. + * @param options The options parameters. + */ + unhold( + callConnectionId: string, + unholdRequest: UnholdRequest, + options?: CallMediaUnholdOptionalParams, + ): Promise; /** * Hold participant from the call using identifier. * @param callConnectionId The call connection id. diff --git a/sdk/communication/communication-call-automation/src/models/events.ts b/sdk/communication/communication-call-automation/src/models/events.ts index fb57b6f120b1..a314b5d092f4 100644 --- a/sdk/communication/communication-call-automation/src/models/events.ts +++ b/sdk/communication/communication-call-automation/src/models/events.ts @@ -35,6 +35,8 @@ import { RestTranscriptionStopped, RestTranscriptionUpdated, RestTranscriptionFailed, + RestCreateCallFailed, + RestAnswerFailed, } from "../generated/src/models"; import { CallParticipant } from "./models"; @@ -69,7 +71,9 @@ export type CallAutomationEvent = | TranscriptionStarted | TranscriptionStopped | TranscriptionUpdated - | TranscriptionFailed; + | TranscriptionFailed + | CreateCallFailed + | AnswerFailed; export interface ResultInformation extends Omit { @@ -597,3 +601,37 @@ export interface TranscriptionFailed /** kind of this event. */ kind: "TranscriptionFailed"; } + +export interface CreateCallFailed + extends Omit< + RestCreateCallFailed, + "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation" + > { + /** Call connection ID. */ + callConnectionId: string; + /** Server call ID. */ + serverCallId: string; + /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */ + correlationId: string; + /** Contains the resulting SIP code, sub-code and message. */ + resultInformation?: RestResultInformation; + /** kind of this event. */ + kind: "CreateCallFailed"; +} + +export interface AnswerFailed + extends Omit< + RestAnswerFailed, + "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation" + > { + /** Call connection ID. */ + callConnectionId: string; + /** Server call ID. */ + serverCallId: string; + /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */ + correlationId: string; + /** Contains the resulting SIP code, sub-code and message. */ + resultInformation?: RestResultInformation; + /** kind of this event. */ + kind: "AnswerFailed"; +} diff --git a/sdk/communication/communication-call-automation/src/models/transcription.ts b/sdk/communication/communication-call-automation/src/models/transcription.ts new file mode 100644 index 000000000000..46f5bcbff9e7 --- /dev/null +++ b/sdk/communication/communication-call-automation/src/models/transcription.ts @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { CommunicationIdentifier } from "@azure/communication-common"; + +/** + * The status of the result of transcription. + */ +export enum ResultStatus { + /** Intermediate result.*/ + Intermediate = "intermediate", + /** Final result.*/ + Final = "final", +} + +/** + * The format of transcription text. + */ +export enum TextFormat { + /** Formatted recognize text with punctuations.*/ + Disply = "display", +} + +/** + * Text in the phrase. + */ +export interface WordData { + /** Text in the phrase.*/ + text: string; + /** The word's position within the phrase.*/ + offset: number; + /** Duration in ticks. 1 tick = 100 nanoseconds.*/ + duration: number; +} + +/** + * Metadata for Transcription Streaming. + */ +export interface TranscriptionMetadata { + /** Transcription Subscription Id.*/ + subscriptionId: string; + /** The target locale in which the translated text needs to be.*/ + locale: string; + /** call connection Id.*/ + callConnectionId: string; + /** correlation Id.*/ + correlationId: string; +} + +/** + * Streaming Transcription. + */ +export interface TranscriptionData { + /** The display form of the recognized word.*/ + text: string; + /** The format of text.*/ + format: TextFormat; + /** Confidence of recognition of the whole phrase, from 0.0 (no confidence) to 1.0 (full confidence). */ + confidence: number; + /** The position of this payload. */ + offset: number; + /** Duration in ticks. 1 tick = 100 nanoseconds. */ + duration: number; + /** The result for each word of the phrase. */ + words: WordData[]; + /** The identified speaker based on participant raw ID. */ + participant: CommunicationIdentifier; + /** Status of the result of transcription. */ + resultStatus: ResultStatus; +} diff --git a/sdk/communication/communication-call-automation/src/utli/streamingDataParser.ts b/sdk/communication/communication-call-automation/src/utli/streamingDataParser.ts new file mode 100644 index 000000000000..709ee52092d8 --- /dev/null +++ b/sdk/communication/communication-call-automation/src/utli/streamingDataParser.ts @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { createIdentifierFromRawId } from "@azure/communication-common"; +import { TranscriptionMetadata, TranscriptionData } from "../models/transcription"; + +/** Parse the incoming package. */ +export function streamingData( + packetData: string | ArrayBuffer, +): TranscriptionMetadata | TranscriptionData { + let stringJson: string; + if (typeof packetData === "string") { + stringJson = packetData; + } else { + const decoder = new TextDecoder(); + stringJson = decoder.decode(packetData); + } + + const jsonObject = JSON.parse(stringJson); + const kind: string = jsonObject.kind; + + switch (kind) { + case "TranscriptionMetadata": { + const transcriptionMetadata: TranscriptionMetadata = jsonObject.transcriptionMetadata; + return transcriptionMetadata; + } + case "TranscriptionData": { + const transcriptionData: TranscriptionData = { + text: jsonObject.transcriptionData.text, + format: jsonObject.transcriptionData.format, + confidence: jsonObject.transcriptionData.confidence, + offset: jsonObject.transcriptionData.offset, + duration: jsonObject.transcriptionData.duration, + words: jsonObject.transcriptionData.words, + participant: createIdentifierFromRawId(jsonObject.transcriptionData.participantRawID), + resultStatus: jsonObject.transcriptionData.resultStatus, + }; + return transcriptionData; + } + default: + throw new Error(stringJson); + } +} diff --git a/sdk/communication/communication-call-automation/swagger/README.md b/sdk/communication/communication-call-automation/swagger/README.md index 8f8f05be31a6..105deb9eb6b5 100644 --- a/sdk/communication/communication-call-automation/swagger/README.md +++ b/sdk/communication/communication-call-automation/swagger/README.md @@ -13,7 +13,7 @@ license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../src/generated tag: package-2023-10-03-preview require: - - https://github.com/Azure/azure-rest-api-specs/blob/384aedb56cfbadfa16ccb35737eab58dfeae81c5/specification/communication/data-plane/CallAutomation/readme.md + - https://github.com/Azure/azure-rest-api-specs/blob/77d25dd8426c4ba1619d15582a8c9d9b2f6890e8/specification/communication/data-plane/CallAutomation/readme.md package-version: 1.2.0-beta.1 model-date-time-as-string: false optional-response-headers: true @@ -155,4 +155,13 @@ directive: - rename-model: from: TranscriptionFailed to: RestTranscriptionFailed + - rename-model: + from: CreateCallFailed + to: RestCreateCallFailed + - rename-model: + from: AnswerFailed + to: RestAnswerFailed + - rename-model: + from: HoldFailed + to: RestHoldFailed ``` diff --git a/sdk/communication/communication-call-automation/test/callAutomationClient.spec.ts b/sdk/communication/communication-call-automation/test/callAutomationClient.spec.ts index c40d9a9c6213..f6db51af1dab 100644 --- a/sdk/communication/communication-call-automation/test/callAutomationClient.spec.ts +++ b/sdk/communication/communication-call-automation/test/callAutomationClient.spec.ts @@ -302,7 +302,7 @@ describe("Call Automation Main Client Live Tests", function () { await receiverCallAutomationClient.rejectCall(incomingCallContext); } - const callDisconnectedEvent = await waitForEvent("CallDisconnected", callConnectionId, 8000); - assert.isDefined(callDisconnectedEvent); + const createCallFailedEvent = await waitForEvent("CreateCallFailed", callConnectionId, 8000); + assert.isDefined(createCallFailedEvent); }).timeout(60000); }); diff --git a/sdk/communication/communication-call-automation/test/callMediaClient.spec.ts b/sdk/communication/communication-call-automation/test/callMediaClient.spec.ts index d583e98ec145..f34ab2313dc0 100644 --- a/sdk/communication/communication-call-automation/test/callMediaClient.spec.ts +++ b/sdk/communication/communication-call-automation/test/callMediaClient.spec.ts @@ -346,7 +346,6 @@ describe("CallMedia Unit Tests", async function () { assert.equal(data.targetParticipant.rawId, CALL_TARGET_ID); assert.equal(data.playSourceInfo.kind, "text"); assert.equal(data.playSourceInfo.text.text, playSource.text); - assert.equal(data.loop, true); assert.equal(request.method, "POST"); }); diff --git a/sdk/communication/communication-call-automation/test/streamingDataParser.spec.ts b/sdk/communication/communication-call-automation/test/streamingDataParser.spec.ts new file mode 100644 index 000000000000..b339bf4e9c83 --- /dev/null +++ b/sdk/communication/communication-call-automation/test/streamingDataParser.spec.ts @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { TranscriptionData, TranscriptionMetadata } from "../src/models/transcription"; +import { streamingData } from "../src/utli/streamingDataParser"; +import { assert } from "chai"; + +describe("Stream data parser unit tests", function () { + const encoder = new TextEncoder(); + const transcriptionMetaDataJson = + '{"kind":"TranscriptionMetadata","transcriptionMetadata":{"subscriptionId":"0000a000-9999-5555-ae00-cd00e0bc0000","locale":"en-US","callConnectionId":"6d09449c-6677-4f91-8cb7-012c338e6ec1","correlationId":"6d09449c-6677-4f91-8cb7-012c338e6ec1"}}'; + const transcriptionDataJson = + '{"kind":"TranscriptionData","transcriptionData":{"text":"Hello everyone.","format":"display","confidence":0.8249790668487549,"offset":2516933652456984600,"words":[{"text":"hello","offset":2516933652456984600},{"text":"everyone","offset":2516933652459784700}],"participantRawID":"4:+910000000000","resultStatus":"Final"}}'; + + it("Successfully parse binary data to transcription meta data ", function () { + const transcriptionMetaDataBinary = encoder.encode(transcriptionMetaDataJson); + const parsedData = streamingData(transcriptionMetaDataBinary); + if ("locale" in parsedData) { + validateTranscriptionMetadata(parsedData); + } + }); + + it("Successfully parse json data to transcription meta data ", function () { + const parsedData = streamingData(transcriptionMetaDataJson); + if ("locale" in parsedData) { + validateTranscriptionMetadata(parsedData); + } + }); + + it("Successfully parse binary data to transcription data ", function () { + const transcriptionDataBinary = encoder.encode(transcriptionDataJson); + const parsedData = streamingData(transcriptionDataBinary); + if ("text" in parsedData) { + validateTranscriptionData(parsedData); + } + }); + + it("Successfully parse json data to transcription data ", function () { + const parsedData = streamingData(transcriptionDataJson); + if ("text" in parsedData) { + validateTranscriptionData(parsedData); + } + }); +}); + +function validateTranscriptionMetadata(transcriptionMetadata: TranscriptionMetadata): void { + assert.equal(transcriptionMetadata.subscriptionId, "0000a000-9999-5555-ae00-cd00e0bc0000"); + assert.equal(transcriptionMetadata.locale, "en-US"); + assert.equal(transcriptionMetadata.correlationId, "6d09449c-6677-4f91-8cb7-012c338e6ec1"); + assert.equal(transcriptionMetadata.callConnectionId, "6d09449c-6677-4f91-8cb7-012c338e6ec1"); +} + +function validateTranscriptionData(transcriptionData: TranscriptionData): void { + assert.equal(transcriptionData.text, "Hello everyone."); + assert.equal(transcriptionData.resultStatus, "Final"); + assert.equal(transcriptionData.confidence, 0.8249790668487549); + assert.equal(transcriptionData.offset, 2516933652456984600); + assert.equal(transcriptionData.words.length, 2); + assert.equal(transcriptionData.words[0].text, "hello"); + assert.equal(transcriptionData.words[0].offset, 2516933652456984600); + assert.equal(transcriptionData.words[1].text, "everyone"); + assert.equal(transcriptionData.words[1].offset, 2516933652459784700); + if ("kind" in transcriptionData.participant) { + assert.equal(transcriptionData.participant.kind, "phoneNumber"); + } + if ("phoneNumber" in transcriptionData.participant) { + assert.equal(transcriptionData.participant.phoneNumber, "+910000000000"); + } +} diff --git a/sdk/communication/communication-call-automation/tests.yml b/sdk/communication/communication-call-automation/tests.yml index d38e8e2a6232..61c569791340 100644 --- a/sdk/communication/communication-call-automation/tests.yml +++ b/sdk/communication/communication-call-automation/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/communication-call-automation" ServiceDirectory: communication diff --git a/sdk/communication/communication-chat/tests.yml b/sdk/communication/communication-chat/tests.yml index f3fb50ee0cde..59f77f77d9fd 100644 --- a/sdk/communication/communication-chat/tests.yml +++ b/sdk/communication/communication-chat/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/communication-chat" ServiceDirectory: communication diff --git a/sdk/communication/communication-common/tests.yml b/sdk/communication/communication-common/tests.yml index 12adea725ce5..d7edd83c0d2f 100644 --- a/sdk/communication/communication-common/tests.yml +++ b/sdk/communication/communication-common/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/communication-common" ServiceDirectory: communication diff --git a/sdk/communication/communication-email/tests.yml b/sdk/communication/communication-email/tests.yml index a8892ea4f281..f2a9c7332b84 100644 --- a/sdk/communication/communication-email/tests.yml +++ b/sdk/communication/communication-email/tests.yml @@ -6,8 +6,8 @@ parameters: type: boolean default: false -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/communication-email" ServiceDirectory: communication diff --git a/sdk/communication/communication-identity/tests.yml b/sdk/communication/communication-identity/tests.yml index 41f8c011356c..8f3064f917f0 100644 --- a/sdk/communication/communication-identity/tests.yml +++ b/sdk/communication/communication-identity/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/communication-identity" ServiceDirectory: communication diff --git a/sdk/communication/communication-messages-rest/tests.yml b/sdk/communication/communication-messages-rest/tests.yml index fa20a01d2811..817bc0f930de 100644 --- a/sdk/communication/communication-messages-rest/tests.yml +++ b/sdk/communication/communication-messages-rest/tests.yml @@ -6,8 +6,8 @@ parameters: type: boolean default: false -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-rest/communication-messages" ServiceDirectory: communication diff --git a/sdk/communication/communication-network-traversal/tests.yml b/sdk/communication/communication-network-traversal/tests.yml index bb402d8c5c37..31c40c62444c 100644 --- a/sdk/communication/communication-network-traversal/tests.yml +++ b/sdk/communication/communication-network-traversal/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/communication-network-traversal" ServiceDirectory: communication diff --git a/sdk/communication/communication-phone-numbers/CHANGELOG.md b/sdk/communication/communication-phone-numbers/CHANGELOG.md index 25e9d724e0fa..baa7f4a7e33e 100644 --- a/sdk/communication/communication-phone-numbers/CHANGELOG.md +++ b/sdk/communication/communication-phone-numbers/CHANGELOG.md @@ -1,30 +1,39 @@ # Release History -## 1.2.1 (Unreleased) +## 1.3.0-beta.2 (2024-03-01) ### Features Added -### Breaking Changes +- Add support for number lookup + - Format only can be returned for no cost + - Additional number details can be returned for a cost -### Bugs Fixed +## 1.3.0-beta.1 (2023-07-21) -### Other Changes +### Features Added + +- Number Lookup API public preview +- API version `2023-05-01-preview` is the default ## 1.2.0 (2023-03-28) ### Features Added + - Added support for SIP routing API version `2023-03-01`, releasing SIP routing functionality from public preview to GA. - Added environment variable `AZURE_TEST_DOMAIN` for SIP routing tests to support domain verification. ### Breaking Changes + - Changed public methods `getTrunks` to `listTrunks` and `getRoutes` to `listRoutes`. ## 1.2.0-beta.4 (2023-01-10) + - Adds support for Azure Communication Services Phone Numbers Browse API Methods. - Adds support for Direct routing configuration management. ### Features Added -- Added support for API version `2022-12-01`, giving users the ability to: + +- Added support for API version `2022-12-01`, giving users the ability to: - Get all supported countries - Get all supported localities given a country code. - Get all Toll-Free area codes from a given country code. diff --git a/sdk/communication/communication-phone-numbers/assets.json b/sdk/communication/communication-phone-numbers/assets.json index 2774da4d8c8c..3a9d85ac2295 100644 --- a/sdk/communication/communication-phone-numbers/assets.json +++ b/sdk/communication/communication-phone-numbers/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/communication/communication-phone-numbers", - "Tag": "js/communication/communication-phone-numbers_ccae8be419" + "Tag": "js/communication/communication-phone-numbers_8c83ce2435" } diff --git a/sdk/communication/communication-phone-numbers/package.json b/sdk/communication/communication-phone-numbers/package.json index 7f59efa7ec26..d35825d8fc54 100644 --- a/sdk/communication/communication-phone-numbers/package.json +++ b/sdk/communication/communication-phone-numbers/package.json @@ -1,6 +1,6 @@ { "name": "@azure/communication-phone-numbers", - "version": "1.2.1", + "version": "1.3.0-beta.2", "description": "SDK for Azure Communication service which facilitates phone number management.", "sdk-type": "client", "main": "dist/index.js", diff --git a/sdk/communication/communication-phone-numbers/phone-numbers-livetest-matrix.json b/sdk/communication/communication-phone-numbers/phone-numbers-livetest-matrix.json index 18c045be47c6..c94e60adb29e 100644 --- a/sdk/communication/communication-phone-numbers/phone-numbers-livetest-matrix.json +++ b/sdk/communication/communication-phone-numbers/phone-numbers-livetest-matrix.json @@ -5,19 +5,19 @@ "matrix": { "Agent": { "windows-2022": { - "OSVmImage": "MMS2022", - "Pool": "azsdk-pool-mms-win-2022-general", + "OSVmImage": "env:WINDOWSVMIMAGE", + "Pool": "env:WINDOWSPOOL", "SKIP_UPDATE_CAPABILITIES_LIVE_TESTS": "true" }, "ubuntu-20.04": { - "OSVmImage": "MMSUbuntu20.04", - "Pool": "azsdk-pool-mms-ubuntu-2004-general", + "OSVmImage": "env:LINUXVMIMAGE", + "Pool": "env:LINUXPOOL", "AZURE_TEST_AGENT": "UBUNTU_2004_NODE14", "SKIP_UPDATE_CAPABILITIES_LIVE_TESTS": "false" }, "macos-11": { - "OSVmImage": "macos-11", - "Pool": "Azure Pipelines", + "OSVmImage": "env:MACVMIMAGE", + "Pool": "env:MACPOOL", "SKIP_UPDATE_CAPABILITIES_LIVE_TESTS": "true" } }, @@ -29,8 +29,8 @@ { "Agent": { "windows-2022": { - "OSVmImage": "MMS2022", - "Pool": "azsdk-pool-mms-win-2022-general" + "OSVmImage": "env:WINDOWSVMIMAGE", + "Pool": "env:WINDOWSPOOL" } }, "Scenario": { @@ -58,8 +58,8 @@ { "Agent": { "ubuntu-20.04": { - "OSVmImage": "MMSUbuntu20.04", - "Pool": "azsdk-pool-mms-ubuntu-2004-general" + "OSVmImage": "env:LINUXVMIMAGE", + "Pool": "env:LINUXPOOL" } }, "TestType": "node", diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists/recording_can_list_all_geographic_area_codes.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists/recording_can_list_all_geographic_area_codes.json.orig new file mode 100644 index 000000000000..8a54a6f9853c --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists/recording_can_list_all_geographic_area_codes.json.orig @@ -0,0 +1,859 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:51:49 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:38:24 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:51:48 GMT", + "MS-CV": "yzcFdlNLmESGOmiD1vA9xw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "05SWyZAAAAABAQ51pqjo8SoTbyjyJdgECV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "220ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:38:23 GMT", + "MS-CV": "K/DgTZEWKUSwCQBztEINwg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0H9pdZQAAAAB3wvQ3wX2/RZM4KS57IEOiUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "763ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Mobile", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Montgomery", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Fort Smith", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Jonesboro", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Little Rock", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Phoenix", + "administrativeDivision": { + "localizedName": "AZ", + "abbreviatedName": "AZ" + } + }, + { + "localizedName": "Burbank", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Concord", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Escondido", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Fresno", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Los Angeles", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Riverside", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Sacramento", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Salinas", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Diego", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Francisco", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Jose", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Clarita", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Rosa", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Stockton", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Truckee", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Washington DC", + "administrativeDivision": { + "localizedName": "CL", + "abbreviatedName": "CL" + } + }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Grand Junction", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Pueblo", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Bridgeport", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Hartford", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, + { +<<<<<<< HEAD + "localizedName": "Cape Coral", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { +======= +>>>>>>> main + "localizedName": "Daytona Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Fort Lauderdale", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Gainesville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Jacksonville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Lakeland", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Miami", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Orlando", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Sarasota", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "St. Petersburg", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tallahassee", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tampa", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "West Palm Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Atlanta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Augusta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Macon", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Savannah", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Honolulu", + "administrativeDivision": { + "localizedName": "HI", + "abbreviatedName": "HI" + } + }, + { + "localizedName": "Cedar Rapids", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Davenport", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Sioux City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Boise", + "administrativeDivision": { + "localizedName": "ID", + "abbreviatedName": "ID" + } + }, + { + "localizedName": "Alton", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Aurora", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Champaign", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Chicago", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Cicero", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rock Island", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rockford", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Waukegan", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Evansville", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Fort Wayne", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Gary", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Indianapolis", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "South Bend", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Topeka", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Wichita", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Ashland", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Lexington", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Louisville", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Owensboro", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Baton Rouge", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Lafayette", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "New Orleans", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Shreveport", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Chicopee", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Baltimore", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Bethesda", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "ME", + "abbreviatedName": "ME" + } + }, + { + "localizedName": "Ann Arbor", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Detroit", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Flint", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grand Rapids", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grant", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Lansing", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Otsego", +<<<<<<< HEAD + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Pontiac", +======= +>>>>>>> main + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Saginaw", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Sault Ste Marie", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Troy", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { +<<<<<<< HEAD + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=geographic\u0026skip=0\u0026maxPageSize=100\u0026locality=Anchorage\u0026administrativeDivision=AK\u0026api-version=2023-05-01-preview", +======= + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=geographic\u0026skip=0\u0026maxPageSize=100\u0026locality=Anchorage\u0026administrativeDivision=AK\u0026api-version=2022-12-01", +>>>>>>> main + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:51:49 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:38:25 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "50", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:51:50 GMT", + "MS-CV": "vdO9b5ryZkiCo1WBJEi9Cg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "05SWyZAAAAABD8JMP9MkzTryGbEqTcTgWV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1577ms" +======= + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "50", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:38:26 GMT", + "MS-CV": "yO7xcC993kypwKVwrXps5g.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0INpdZQAAAABXhUTj0tg6RaTnbp1C303GUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2946ms" +>>>>>>> main + }, + "ResponseBody": { + "areaCodes": [ + { + "areaCode": "907" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists/recording_can_list_all_toll_free_area_codes.json b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists/recording_can_list_all_toll_free_area_codes.json new file mode 100644 index 000000000000..050b1f396399 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists/recording_can_list_all_toll_free_area_codes.json @@ -0,0 +1,58 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=tollFree\u0026skip=0\u0026maxPageSize=100\u0026assignmentType=application\u0026api-version=2024-03-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "\u0022Chromium\u0022;v=\u0022122\u0022, \u0022Not(A:Brand\u0022;v=\u002224\u0022, \u0022HeadlessChrome\u0022;v=\u0022122\u0022", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022Windows\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/122.0.6261.57 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Tue, 27 Feb 2024 18:50:33 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview, 2024-03-01-preview, 2024-08-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 27 Feb 2024 18:50:34 GMT", + "MS-CV": "3GlkSA8Em0aQp4zbccbuEg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0\u002BS7eZQAAAAA48zijAwkdRrtvWPqJaPHJV1NURURHRTAxMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1638ms" + }, + "ResponseBody": { + "areaCodes": [ + { + "areaCode": "866" + }, + { + "areaCode": "855" + }, + { + "areaCode": "844" + }, + { + "areaCode": "833" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists/recording_can_list_all_toll_free_area_codes.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists/recording_can_list_all_toll_free_area_codes.json.orig new file mode 100644 index 000000000000..050b1f396399 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists/recording_can_list_all_toll_free_area_codes.json.orig @@ -0,0 +1,58 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=tollFree\u0026skip=0\u0026maxPageSize=100\u0026assignmentType=application\u0026api-version=2024-03-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "\u0022Chromium\u0022;v=\u0022122\u0022, \u0022Not(A:Brand\u0022;v=\u002224\u0022, \u0022HeadlessChrome\u0022;v=\u0022122\u0022", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022Windows\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/122.0.6261.57 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Tue, 27 Feb 2024 18:50:33 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview, 2024-03-01-preview, 2024-08-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 27 Feb 2024 18:50:34 GMT", + "MS-CV": "3GlkSA8Em0aQp4zbccbuEg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0\u002BS7eZQAAAAA48zijAwkdRrtvWPqJaPHJV1NURURHRTAxMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1638ms" + }, + "ResponseBody": { + "areaCodes": [ + { + "areaCode": "866" + }, + { + "areaCode": "855" + }, + { + "areaCode": "844" + }, + { + "areaCode": "833" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_geographic_area_codes.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_geographic_area_codes.json.orig new file mode 100644 index 000000000000..3265c11ed643 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_geographic_area_codes.json.orig @@ -0,0 +1,853 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:51:40 GMT", + "MS-CV": "q1HTVi8730iWb3A53bjrVQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "03CWyZAAAAADfsP8V\u002Bpg1QZ7H3LNz/mspV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "232ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:38:15 GMT", + "MS-CV": "0GPVfLFQZUqO9PnILBpOSw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0FtpdZQAAAACmVGVFIGFCRqvbfP4ypPzNUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1595ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Mobile", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Montgomery", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Fort Smith", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Jonesboro", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Little Rock", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Phoenix", + "administrativeDivision": { + "localizedName": "AZ", + "abbreviatedName": "AZ" + } + }, + { + "localizedName": "Burbank", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Concord", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Escondido", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Fresno", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Los Angeles", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Riverside", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Sacramento", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Salinas", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Diego", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Francisco", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Jose", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Clarita", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Rosa", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Stockton", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Truckee", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Washington DC", + "administrativeDivision": { + "localizedName": "CL", + "abbreviatedName": "CL" + } + }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Grand Junction", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Pueblo", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Bridgeport", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Hartford", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, + { +<<<<<<< HEAD + "localizedName": "Cape Coral", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { +======= +>>>>>>> main + "localizedName": "Daytona Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Fort Lauderdale", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Gainesville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Jacksonville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Lakeland", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Miami", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Orlando", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Sarasota", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "St. Petersburg", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tallahassee", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tampa", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "West Palm Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Atlanta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Augusta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Macon", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Savannah", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Honolulu", + "administrativeDivision": { + "localizedName": "HI", + "abbreviatedName": "HI" + } + }, + { + "localizedName": "Cedar Rapids", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Davenport", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Sioux City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Boise", + "administrativeDivision": { + "localizedName": "ID", + "abbreviatedName": "ID" + } + }, + { + "localizedName": "Alton", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Aurora", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Champaign", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Chicago", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Cicero", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rock Island", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rockford", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Waukegan", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Evansville", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Fort Wayne", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Gary", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Indianapolis", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "South Bend", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Topeka", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Wichita", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Ashland", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Lexington", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Louisville", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Owensboro", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Baton Rouge", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Lafayette", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "New Orleans", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Shreveport", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Chicopee", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Baltimore", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Bethesda", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "ME", + "abbreviatedName": "ME" + } + }, + { + "localizedName": "Ann Arbor", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Detroit", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Flint", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grand Rapids", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grant", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Lansing", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Otsego", +<<<<<<< HEAD + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Pontiac", +======= +>>>>>>> main + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Saginaw", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Sault Ste Marie", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Troy", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { +<<<<<<< HEAD + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=geographic\u0026skip=0\u0026maxPageSize=100\u0026locality=Anchorage\u0026administrativeDivision=AK\u0026api-version=2023-05-01-preview", +======= + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=geographic\u0026skip=0\u0026maxPageSize=100\u0026locality=Anchorage\u0026administrativeDivision=AK\u0026api-version=2022-12-01", +>>>>>>> main + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "50", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:51:41 GMT", + "MS-CV": "JyIBmz5fiUKzVPY3B/5X2A.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "03SWyZAAAAABa494\u002BPAPJQ7ICJZiClfl/V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1556ms" +======= + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "50", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:38:18 GMT", + "MS-CV": "9z2dxnLbqUqIC9qZdtUrwQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0GNpdZQAAAAAidmykJzxMR4dBlkE/9pSlUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "3020ms" +>>>>>>> main + }, + "ResponseBody": { + "areaCodes": [ + { + "areaCode": "907" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_toll_free_area_codes.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_toll_free_area_codes.json.orig new file mode 100644 index 000000000000..55d2d396a639 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_toll_free_area_codes.json.orig @@ -0,0 +1,74 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=tollFree\u0026skip=0\u0026maxPageSize=100\u0026assignmentType=application\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "182", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:51:48 GMT", + "MS-CV": "YKUFLANi00aNKJloX0OU6g.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "03yWyZAAAAACyxXwrm9FVS5gv9nUYI2zLV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "6223ms" +======= + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:38:22 GMT", + "MS-CV": "ur48E\u002Blfp0SlthFQK7H3DA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0G9pdZQAAAAD9NJZA1r64SJRppxIa7cnBUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "3789ms" +>>>>>>> main + }, + "ResponseBody": { + "areaCodes": [ + { + "areaCode": "866" + }, + { + "areaCode": "855" + }, + { + "areaCode": "844" + }, + { + "areaCode": "833" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__countries_lists/recording_can_list_all_available_countries.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__countries_lists/recording_can_list_all_available_countries.json.orig new file mode 100644 index 000000000000..387adceab883 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__countries_lists/recording_can_list_all_available_countries.json.orig @@ -0,0 +1,252 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:00 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:38:35 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "1487", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:01 GMT", + "MS-CV": "tvebPZK7X029ubhpMMegIQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "08CWyZAAAAACGre6iarRcSrHqdiG33SuyV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2318ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "1968", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:38:36 GMT", + "MS-CV": "ieX3LhuJ8UCi1Tr6Z4AcJg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0KtpdZQAAAABV\u002Bp61cIuYQrm66NQ0wF4kUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2854ms" +>>>>>>> main + }, + "ResponseBody": { + "countries": [ + { + "localizedName": "Argentina", + "countryCode": "AR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Austria", + "countryCode": "AT" + }, + { + "localizedName": "Belgium", + "countryCode": "BE" + }, + { +>>>>>>> main + "localizedName": "Brazil", + "countryCode": "BR" + }, + { + "localizedName": "Canada", + "countryCode": "CA" + }, + { + "localizedName": "Chile", + "countryCode": "CL" + }, + { + "localizedName": "China", + "countryCode": "CN" + }, + { + "localizedName": "Colombia", + "countryCode": "CO" + }, + { + "localizedName": "Denmark", + "countryCode": "DK" + }, + { + "localizedName": "Finland", + "countryCode": "FI" + }, + { + "localizedName": "France", + "countryCode": "FR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Germany", + "countryCode": "DE" + }, + { +>>>>>>> main + "localizedName": "Hong Kong SAR", + "countryCode": "HK" + }, + { + "localizedName": "Indonesia", + "countryCode": "ID" + }, + { + "localizedName": "Ireland", + "countryCode": "IE" + }, + { + "localizedName": "Israel", + "countryCode": "IL" + }, + { + "localizedName": "Italy", + "countryCode": "IT" + }, + { + "localizedName": "Korea", + "countryCode": "KR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Luxembourg", + "countryCode": "LU" + }, + { +>>>>>>> main + "localizedName": "Malaysia", + "countryCode": "MY" + }, + { + "localizedName": "Mexico", + "countryCode": "MX" + }, + { + "localizedName": "Netherlands", + "countryCode": "NL" + }, + { + "localizedName": "New Zealand", + "countryCode": "NZ" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Norway", + "countryCode": "NO" + }, + { +>>>>>>> main + "localizedName": "Philippines", + "countryCode": "PH" + }, + { + "localizedName": "Poland", + "countryCode": "PL" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Portugal", + "countryCode": "PT" + }, + { +>>>>>>> main + "localizedName": "Puerto Rico", + "countryCode": "PR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Saudi Arabia", + "countryCode": "SA" + }, + { +>>>>>>> main + "localizedName": "Singapore", + "countryCode": "SG" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Slovakia", + "countryCode": "SK" + }, + { +>>>>>>> main + "localizedName": "South Africa", + "countryCode": "ZA" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Spain", + "countryCode": "ES" + }, + { +>>>>>>> main + "localizedName": "Sweden", + "countryCode": "SE" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Switzerland", + "countryCode": "CH" + }, + { +>>>>>>> main + "localizedName": "Taiwan", + "countryCode": "TW" + }, + { + "localizedName": "Thailand", + "countryCode": "TH" + }, + { + "localizedName": "United Arab Emirates", + "countryCode": "AE" + }, + { + "localizedName": "United Kingdom", + "countryCode": "GB" + }, + { + "localizedName": "United States", + "countryCode": "US" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__countries_lists_aad/recording_can_list_all_available_countries.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__countries_lists_aad/recording_can_list_all_available_countries.json.orig new file mode 100644 index 000000000000..addb144f63ba --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__countries_lists_aad/recording_can_list_all_available_countries.json.orig @@ -0,0 +1,249 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "1487", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:51:59 GMT", + "MS-CV": "LZfeydMP7k6C1IYPG2U5HQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "07iWyZAAAAAA0KzCMm2X0TIWYecambqqDV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1910ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "1968", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:38:33 GMT", + "MS-CV": "thehnEjFkk2btEwjQQjaEw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0J9pdZQAAAAAD9hUnkKcBSZJK/Ddr451SUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2840ms" +>>>>>>> main + }, + "ResponseBody": { + "countries": [ + { + "localizedName": "Argentina", + "countryCode": "AR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Austria", + "countryCode": "AT" + }, + { + "localizedName": "Belgium", + "countryCode": "BE" + }, + { +>>>>>>> main + "localizedName": "Brazil", + "countryCode": "BR" + }, + { + "localizedName": "Canada", + "countryCode": "CA" + }, + { + "localizedName": "Chile", + "countryCode": "CL" + }, + { + "localizedName": "China", + "countryCode": "CN" + }, + { + "localizedName": "Colombia", + "countryCode": "CO" + }, + { + "localizedName": "Denmark", + "countryCode": "DK" + }, + { + "localizedName": "Finland", + "countryCode": "FI" + }, + { + "localizedName": "France", + "countryCode": "FR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Germany", + "countryCode": "DE" + }, + { +>>>>>>> main + "localizedName": "Hong Kong SAR", + "countryCode": "HK" + }, + { + "localizedName": "Indonesia", + "countryCode": "ID" + }, + { + "localizedName": "Ireland", + "countryCode": "IE" + }, + { + "localizedName": "Israel", + "countryCode": "IL" + }, + { + "localizedName": "Italy", + "countryCode": "IT" + }, + { + "localizedName": "Korea", + "countryCode": "KR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Luxembourg", + "countryCode": "LU" + }, + { +>>>>>>> main + "localizedName": "Malaysia", + "countryCode": "MY" + }, + { + "localizedName": "Mexico", + "countryCode": "MX" + }, + { + "localizedName": "Netherlands", + "countryCode": "NL" + }, + { + "localizedName": "New Zealand", + "countryCode": "NZ" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Norway", + "countryCode": "NO" + }, + { +>>>>>>> main + "localizedName": "Philippines", + "countryCode": "PH" + }, + { + "localizedName": "Poland", + "countryCode": "PL" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Portugal", + "countryCode": "PT" + }, + { +>>>>>>> main + "localizedName": "Puerto Rico", + "countryCode": "PR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Saudi Arabia", + "countryCode": "SA" + }, + { +>>>>>>> main + "localizedName": "Singapore", + "countryCode": "SG" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Slovakia", + "countryCode": "SK" + }, + { +>>>>>>> main + "localizedName": "South Africa", + "countryCode": "ZA" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Spain", + "countryCode": "ES" + }, + { +>>>>>>> main + "localizedName": "Sweden", + "countryCode": "SE" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Switzerland", + "countryCode": "CH" + }, + { +>>>>>>> main + "localizedName": "Taiwan", + "countryCode": "TW" + }, + { + "localizedName": "Thailand", + "countryCode": "TH" + }, + { + "localizedName": "United Arab Emirates", + "countryCode": "AE" + }, + { + "localizedName": "United Kingdom", + "countryCode": "GB" + }, + { + "localizedName": "United States", + "countryCode": "US" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number/recording_can_get_a_purchased_phone_number.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number/recording_can_get_a_purchased_phone_number.json.orig new file mode 100644 index 000000000000..5f31807fa827 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number/recording_can_get_a_purchased_phone_number.json.orig @@ -0,0 +1,79 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:13 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:38:41 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:13 GMT", + "MS-CV": "XCyxzl6OtkqJQbsXbOAxRg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0/SWyZAAAAADKLcUFmM6BTaCDth1yzg50V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "985ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:38:40 GMT", + "MS-CV": "J4DFsT0P/EegZnrxJiPHqA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0MNpdZQAAAADUNXhN2ckMQYVmZsgXhhG8UFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1621ms" +>>>>>>> main + }, + "ResponseBody": { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", +======= + "purchaseDate": "2023-11-10T09:57:45.4485137\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number/recording_errors_if_phone_number_not_found.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number/recording_errors_if_phone_number_not_found.json.orig new file mode 100644 index 000000000000..d6ff09aea692 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number/recording_errors_if_phone_number_not_found.json.orig @@ -0,0 +1,65 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:14 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:38:42 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Sat, 15 Jul 2023 04:52:13 GMT", + "MS-CV": "wGJPtblQpUuogysR8Cp2sw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0/iWyZAAAAAA1W1EISfT1RIKeLtChgLjTV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "183ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:38:41 GMT", + "MS-CV": "FpP\u002Bo1eEikuB3pODzvs/ew.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0MdpdZQAAAACnaZC4ly1HQrpTVS2HN4dhUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "456ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "NotFound", + "message": "Input phoneNumber \u002B14155550100 cannot be found.", + "target": "phonenumber" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number_aad/recording_can_get_a_purchased_phone_number.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number_aad/recording_can_get_a_purchased_phone_number.json.orig new file mode 100644 index 000000000000..e0a22b828f98 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number_aad/recording_can_get_a_purchased_phone_number.json.orig @@ -0,0 +1,76 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:11 GMT", + "MS-CV": "\u002BSfsgMxNvEiqudFWyyuNLA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0\u002ByWyZAAAAADSMpKIWz6xR5N5Z5F5M0EcV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1018ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:38:38 GMT", + "MS-CV": "mXe0P6ftuE2b4xxaOhinhQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0LdpdZQAAAACN7e30aDAcRLMDZgulHlAGUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1652ms" +>>>>>>> main + }, + "ResponseBody": { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", +======= + "purchaseDate": "2023-11-10T09:57:45.4485137\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number_aad/recording_errors_if_phone_number_not_found.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number_aad/recording_errors_if_phone_number_not_found.json.orig new file mode 100644 index 000000000000..8123f9bd954a --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number_aad/recording_errors_if_phone_number_not_found.json.orig @@ -0,0 +1,62 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Sat, 15 Jul 2023 04:52:12 GMT", + "MS-CV": "EQQHrusc/kyX1e3zR0jQXw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0/SWyZAAAAADqWDWIUQkNTKPIaHGwL8olV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "173ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:38:39 GMT", + "MS-CV": "lC/gheW1KkyIfj8H6oEdBw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0L9pdZQAAAAAk1I1MQtDVQ7OSQ8CDNa//UFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "443ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "NotFound", + "message": "Input phoneNumber \u002B14155550100 cannot be found.", + "target": "phonenumber" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lists/recording_can_list_all_purchased_phone_numbers.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lists/recording_can_list_all_purchased_phone_numbers.json.orig new file mode 100644 index 000000000000..384b7363b0df --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lists/recording_can_list_all_purchased_phone_numbers.json.orig @@ -0,0 +1,4180 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers?skip=0\u0026api-version=2023-05-01-preview\u0026top=100", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:07 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:38:45 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "32076", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:07 GMT", + "MS-CV": "7v1EkwJszEqb2DnxY85x6A.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "09yWyZAAAAACRz6O9tg/uQ6GO4mBeES91V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1184ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "629", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:38:44 GMT", + "MS-CV": "FeEQmwzeVk613uYGUAaT1Q.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0NNpdZQAAAABudoQ/d1\u002BCTq4J0imsgl\u002BsUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1659ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumbers": [ + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2023-11-10T08:58:56.2621568\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", +<<<<<<< HEAD + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:36:13.5514009\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:09:18.7391177\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:11:43.8093725\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:09:44.856727\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:10:43.0470316\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:11:13.2871013\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:35:43.3598754\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:35:14.2925013\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:35:17.7642032\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:37:57.7589612\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:38:01.2490062\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:38:10.7033129\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T15:41:42.6103267\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:30:51.9182995\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:30:17.6614122\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:32:08.7055072\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:32:20.4489554\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", +======= +>>>>>>> main + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "outbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2021-06-23T23:31:24.7610118\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:31:27.7725472\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:28:06.2941982\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:27:58.4564095\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:35:55.6362141\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:35:38.2751041\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:12.122407\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:40:52.6849802\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:21.3246132\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:52.844006\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:26.0949019\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:16.7736485\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:07.5114194\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:24.9591048\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:31.4083206\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:24.2533723\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:16.2862265\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:37.7662022\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:46.6018872\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:50.4679082\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:44.6881974\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:55.8644165\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:55.9240487\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:40:20.5570756\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:22.1720088\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:41.0997634\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:44.9865457\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:11:13.6760492\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:13:14.7544127\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:51.5548845\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T17:11:40.2093547\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:22:13.6608168\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:23:13.802374\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:40:56.1826813\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:23:43.4526026\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:24:12.4592203\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:17.7235497\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:32:43.9547602\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:10.859962\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:30.851053\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-01-11T22:26:05.2198645\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-01-11T17:06:02.0097082\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:08:43.2976318\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:09:13.3731647\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:33:13.7739402\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:25:13.6206509\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:25:44.3664664\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:29:43.2087273\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:37:14.4369365\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:27:13.4604535\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:27:47.6058406\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:26:43.3088723\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:42:44.4416133\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:28:13.2155644\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:41:58.7312966\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:39:14.5759855\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:40:28.2331315\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:28:43.2865444\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:43:44.3267753\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:43:14.5582972\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:30:42.3622994\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:35:58.515204\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:30:13.3981412\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:36:12.1300788\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:36:43.3727213\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:31:43.1246125\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:45:58.3886965\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:44:13.795794\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:33:42.3770211\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:34:13.0593291\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:44:43.2825566\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:45:43.3853897\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:45:13.8368509\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:48:14.4930555\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:47:29.3763702\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:37:12.9376761\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:37:43.0423694\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:18:13.4190469\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:01:13.3943797\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:02:13.0024309\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ], + "nextLink": "/phoneNumbers?skip=100\u0026api-version=2023-05-01-preview\u0026top=100" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers?skip=100\u0026api-version=2023-05-01-preview\u0026top=100", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Sat, 15 Jul 2023 04:52:08 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "32341", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:09 GMT", + "MS-CV": "kDkC2VNqMk\u002BWonYtzelfgg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0\u002BCWyZAAAAAACNOZgDn\u002BFQYbgeS\u002BfRG06V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1244ms" + }, + "ResponseBody": { + "phoneNumbers": [ + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:18:42.3038608\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:12:13.538747\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:38:42.1281774\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-06-20T21:46:24.7072806\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:50:44.2721958\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:39:13.0650895\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-08-09T21:31:11.7335307\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:41:12.9270148\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:59:43.8702426\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:44:13.1870258\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:00:13.7898843\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:49:13.8501396\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:45:43.2412523\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:56:13.4198655\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:42:43.4785601\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:43:13.3329991\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:43:43.2644646\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:46:13.3693388\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:57:43.4206167\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:58:12.6113168\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:45:13.2256267\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:44:43.2018384\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:00:42.6467973\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:46:43.1901855\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:01:43.7661054\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:02:15.3937268\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:06:41.01465\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:47:43.0690696\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:07:13.6917784\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:48:12.4350945\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:48:43.1996614\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:49:13.5431092\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:50:13.1026413\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:04:13.3157268\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:04:43.1035835\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:22:13.3638878\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:08:43.5413541\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:09:13.8998904\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:51:13.0475026\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:20:05.8658511\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:54:16.6134103\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:11:13.7336785\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:12:58.6058156\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:56:43.0548698\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:11:42.604465\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:57:42.5799099\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:58:11.834285\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:15:28.6354088\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:00:13.1072593\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:30:43.8919494\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:31:13.4310333\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:21:49.9674396\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:45:13.7047676\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:14:13.6220104\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:44:44.6040573\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:54:13.9619565\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:29:43.161106\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:31:14.6037399\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:31:44.5667268\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:56:43.3214042\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:54:13.8504347\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:03:14.7906887\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:15:42.8004345\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:31:13.2708013\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:06:43.0334527\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:04:42.9913305\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:05:13.4188656\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:25:42.7521989\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:09:12.8370429\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:30:43.1675112\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:10:43.1221045\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:07:13.1907406\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:23:43.0592468\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:07:42.9423531\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:08:12.9812814\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:12:13.4724025\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:08:42.9989053\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:27:13.8887667\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:10:12.8329204\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:11:16.1285436\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:11:43.2160866\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:28:28.4487656\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:14:43.1045845\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:30:12.1604917\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:12:43.3294475\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:29:43.4410627\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:14:13.2280446\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:19:17.7166571\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:25:43.4713207\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:08:13.3307166\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:26:13.092427\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:07:43.1286116\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:28:13.6303453\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:28:43.3758897\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:03:43.893635\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:17:43.5066285\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:04:13.9066513\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:18:43.0105843\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:19:13.3153527\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-05T18:13:14.3666161\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ], + "nextLink": "/phoneNumbers?skip=200\u0026api-version=2023-05-01-preview\u0026top=100" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers?skip=200\u0026api-version=2023-05-01-preview\u0026top=100", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Sat, 15 Jul 2023 04:52:10 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "12086", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:10 GMT", + "MS-CV": "EAZY6MiCv0C7I2qZc7qjeA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0\u002BiWyZAAAAADJCaP7AjHxRI5k3Bqyl/t6V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1147ms" + }, + "ResponseBody": { + "phoneNumbers": [ + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-12-08T16:05:56.7000298\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-12-21T21:33:14.7628777\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-12-22T18:33:35.4149119\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-03T22:15:58.0819861\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T01:31:45.9762541\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T17:26:42.2419258\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-07-11T02:27:56.7009211\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-07-11T02:27:29.7383571\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-06-20T21:27:31.7369364\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:34:45.0763318\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:40:14.5388708\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:38:13.7766563\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:42:00.1600209\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:42:15.9484758\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:42:23.3515457\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:42:13.7459585\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:42:42.5645252\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:59:43.6806531\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:43:42.9562291\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:43:12.077177\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:55:14.1329393\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:57:13.8937202\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:44:12.4528756\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:13:13.4711145\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:46:42.2851739\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:14:15.1108491\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:49:12.0653887\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-07-11T02:27:25.0876521\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:49:42.2605522\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:50:13.2673166\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:51:13.1710277\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:14:44.8212216\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:50:43.5645432\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T17:23:08.4687205\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-12-29T22:41:40.755214\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T01:33:41.947644\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-06-02T10:50:53.3274521\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "141555501003", + "phoneNumber": "\u002B141555501003", + "countryCode": "GB", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "application", + "purchaseDate": "2023-05-25T22:00:08.1041229\u002B00:00", +======= + "purchaseDate": "2023-11-10T09:57:45.4485137\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lists_aad/recording_can_list_all_purchased_phone_numbers.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lists_aad/recording_can_list_all_purchased_phone_numbers.json.orig new file mode 100644 index 000000000000..15cab8033422 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lists_aad/recording_can_list_all_purchased_phone_numbers.json.orig @@ -0,0 +1,4173 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers?skip=0\u0026api-version=2023-05-01-preview\u0026top=100", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "32076", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:03 GMT", + "MS-CV": "aQ7BLDodEUiu7qWsSb2KJQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "08yWyZAAAAAA1\u002B02/mKluQJDd7\u002BYuvQgPV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1285ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "629", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:38:43 GMT", + "MS-CV": "pur3\u002Bp/ee0y867v2I5hImA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0MtpdZQAAAADYnZAK5AtaQ7HawoDiUVp7UFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1690ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumbers": [ + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2023-11-10T08:58:56.2621568\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", +<<<<<<< HEAD + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:36:13.5514009\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:09:18.7391177\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:11:43.8093725\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:09:44.856727\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:10:43.0470316\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:11:13.2871013\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:35:43.3598754\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:35:14.2925013\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:35:17.7642032\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:37:57.7589612\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:38:01.2490062\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:38:10.7033129\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T15:41:42.6103267\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:30:51.9182995\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:30:17.6614122\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:32:08.7055072\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:32:20.4489554\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", +======= +>>>>>>> main + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "outbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2021-06-23T23:31:24.7610118\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:31:27.7725472\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:28:06.2941982\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:27:58.4564095\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:35:55.6362141\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:35:38.2751041\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:12.122407\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:40:52.6849802\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:21.3246132\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:52.844006\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:26.0949019\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:16.7736485\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:07.5114194\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:24.9591048\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:31.4083206\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:24.2533723\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:16.2862265\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:37.7662022\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:46.6018872\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:50.4679082\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:44.6881974\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:55.8644165\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:55.9240487\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:40:20.5570756\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:22.1720088\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:41.0997634\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:44.9865457\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:11:13.6760492\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:13:14.7544127\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:51.5548845\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T17:11:40.2093547\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:22:13.6608168\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:23:13.802374\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:40:56.1826813\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:23:43.4526026\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:24:12.4592203\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:17.7235497\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:32:43.9547602\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:10.859962\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:30.851053\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-01-11T22:26:05.2198645\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-01-11T17:06:02.0097082\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:08:43.2976318\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:09:13.3731647\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:33:13.7739402\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:25:13.6206509\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:25:44.3664664\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:29:43.2087273\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:37:14.4369365\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:27:13.4604535\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:27:47.6058406\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:26:43.3088723\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:42:44.4416133\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:28:13.2155644\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:41:58.7312966\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:39:14.5759855\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:40:28.2331315\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:28:43.2865444\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:43:44.3267753\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:43:14.5582972\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:30:42.3622994\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:35:58.515204\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:30:13.3981412\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:36:12.1300788\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:36:43.3727213\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:31:43.1246125\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:45:58.3886965\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:44:13.795794\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:33:42.3770211\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:34:13.0593291\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:44:43.2825566\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:45:43.3853897\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:45:13.8368509\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:48:14.4930555\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:47:29.3763702\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:37:12.9376761\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:37:43.0423694\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:18:13.4190469\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:01:13.3943797\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:02:13.0024309\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ], + "nextLink": "/phoneNumbers?skip=100\u0026api-version=2023-05-01-preview\u0026top=100" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers?skip=100\u0026api-version=2023-05-01-preview\u0026top=100", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "32341", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:04 GMT", + "MS-CV": "TLSK23Rdd0arm\u002BW4SM09ng.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "09CWyZAAAAADqIgU\u002BPRc4Qoj5o0bKfrh5V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1307ms" + }, + "ResponseBody": { + "phoneNumbers": [ + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:18:42.3038608\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:12:13.538747\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:38:42.1281774\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-06-20T21:46:24.7072806\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:50:44.2721958\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:39:13.0650895\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-08-09T21:31:11.7335307\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:41:12.9270148\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:59:43.8702426\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:44:13.1870258\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:00:13.7898843\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:49:13.8501396\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:45:43.2412523\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:56:13.4198655\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:42:43.4785601\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:43:13.3329991\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:43:43.2644646\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:46:13.3693388\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:57:43.4206167\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:58:12.6113168\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:45:13.2256267\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:44:43.2018384\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:00:42.6467973\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:46:43.1901855\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:01:43.7661054\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:02:15.3937268\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:06:41.01465\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:47:43.0690696\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:07:13.6917784\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:48:12.4350945\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:48:43.1996614\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:49:13.5431092\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:50:13.1026413\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:04:13.3157268\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:04:43.1035835\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:22:13.3638878\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:08:43.5413541\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:09:13.8998904\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:51:13.0475026\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:20:05.8658511\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:54:16.6134103\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:11:13.7336785\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:12:58.6058156\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:56:43.0548698\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:11:42.604465\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:57:42.5799099\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:58:11.834285\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:15:28.6354088\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:00:13.1072593\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:30:43.8919494\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:31:13.4310333\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:21:49.9674396\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:45:13.7047676\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:14:13.6220104\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:44:44.6040573\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:54:13.9619565\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:29:43.161106\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:31:14.6037399\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:31:44.5667268\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:56:43.3214042\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:54:13.8504347\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:03:14.7906887\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:15:42.8004345\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:31:13.2708013\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:06:43.0334527\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:04:42.9913305\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:05:13.4188656\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:25:42.7521989\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:09:12.8370429\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:30:43.1675112\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:10:43.1221045\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:07:13.1907406\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:23:43.0592468\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:07:42.9423531\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:08:12.9812814\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:12:13.4724025\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:08:42.9989053\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:27:13.8887667\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:10:12.8329204\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:11:16.1285436\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:11:43.2160866\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:28:28.4487656\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:14:43.1045845\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:30:12.1604917\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:12:43.3294475\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:29:43.4410627\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:14:13.2280446\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:19:17.7166571\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:25:43.4713207\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:08:13.3307166\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:26:13.092427\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:07:43.1286116\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:28:13.6303453\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:28:43.3758897\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:03:43.893635\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:17:43.5066285\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:04:13.9066513\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:18:43.0105843\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:19:13.3153527\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-05T18:13:14.3666161\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ], + "nextLink": "/phoneNumbers?skip=200\u0026api-version=2023-05-01-preview\u0026top=100" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers?skip=200\u0026api-version=2023-05-01-preview\u0026top=100", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "12086", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:06 GMT", + "MS-CV": "hDjkjC4bVEOR37wjdvPqHw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "09SWyZAAAAAAioDj9xLKDTIb/VoaEF1SpV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1409ms" + }, + "ResponseBody": { + "phoneNumbers": [ + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-12-08T16:05:56.7000298\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-12-21T21:33:14.7628777\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-12-22T18:33:35.4149119\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-03T22:15:58.0819861\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T01:31:45.9762541\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T17:26:42.2419258\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-07-11T02:27:56.7009211\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-07-11T02:27:29.7383571\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-06-20T21:27:31.7369364\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:34:45.0763318\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:40:14.5388708\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:38:13.7766563\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:42:00.1600209\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:42:15.9484758\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:42:23.3515457\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:42:13.7459585\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:42:42.5645252\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:59:43.6806531\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:43:42.9562291\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:43:12.077177\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:55:14.1329393\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:57:13.8937202\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:44:12.4528756\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:13:13.4711145\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:46:42.2851739\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:14:15.1108491\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:49:12.0653887\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-07-11T02:27:25.0876521\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:49:42.2605522\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:50:13.2673166\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:51:13.1710277\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:14:44.8212216\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:50:43.5645432\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T17:23:08.4687205\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-12-29T22:41:40.755214\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T01:33:41.947644\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-06-02T10:50:53.3274521\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "141555501003", + "phoneNumber": "\u002B141555501003", + "countryCode": "GB", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "application", + "purchaseDate": "2023-05-25T22:00:08.1041229\u002B00:00", +======= + "purchaseDate": "2023-11-10T09:57:45.4485137\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists/recording_can_list_available_localities.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists/recording_can_list_available_localities.json.orig new file mode 100644 index 000000000000..769af4c9ad10 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists/recording_can_list_available_localities.json.orig @@ -0,0 +1,1728 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:16 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:55 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:16 GMT", + "MS-CV": "LlZeVIlWE0K6oIhT6WNhiw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ACayZAAAAADhhiwB5\u002BqxSJ6p6mz96xmjV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "227ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:55 GMT", + "MS-CV": "/wxULRJIiUmGjmArMw/KMQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ttpdZQAAAAAta//v0q7WTrwc2pWRskobUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "742ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Mobile", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Montgomery", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Fort Smith", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Jonesboro", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Little Rock", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Phoenix", + "administrativeDivision": { + "localizedName": "AZ", + "abbreviatedName": "AZ" + } + }, + { + "localizedName": "Burbank", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Concord", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Escondido", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Fresno", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Los Angeles", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Riverside", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Sacramento", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Salinas", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Diego", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Francisco", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Jose", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Clarita", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Rosa", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Stockton", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Truckee", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Washington DC", + "administrativeDivision": { + "localizedName": "CL", + "abbreviatedName": "CL" + } + }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Grand Junction", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Pueblo", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Bridgeport", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Hartford", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, + { + "localizedName": "Daytona Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Fort Lauderdale", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Gainesville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Jacksonville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Lakeland", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Miami", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Orlando", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Port St Lucie", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Sarasota", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "St. Petersburg", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { +<<<<<<< HEAD + "localizedName": "Tampa", +======= + "localizedName": "Tallahassee", +>>>>>>> main + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tampa", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "West Palm Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Atlanta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Augusta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Macon", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Savannah", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Honolulu", + "administrativeDivision": { + "localizedName": "HI", + "abbreviatedName": "HI" + } + }, + { + "localizedName": "Cedar Rapids", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Davenport", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Iowa City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Sioux City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Boise", + "administrativeDivision": { + "localizedName": "ID", + "abbreviatedName": "ID" + } + }, + { + "localizedName": "Alton", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Aurora", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Champaign", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Chicago", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Cicero", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rock Island", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rockford", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Waukegan", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Evansville", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Fort Wayne", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Gary", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Indianapolis", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "South Bend", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Topeka", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Wichita", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Ashland", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Lexington", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Louisville", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Owensboro", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Baton Rouge", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Lafayette", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "New Orleans", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Shreveport", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Boston", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Chicopee", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", +<<<<<<< HEAD + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Worcester", +======= +>>>>>>> main + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Baltimore", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Bethesda", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "ME", + "abbreviatedName": "ME" + } + }, + { + "localizedName": "Ann Arbor", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Detroit", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Flint", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grand Rapids", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grant", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Lansing", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Otsego", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +<<<<<<< HEAD + "localizedName": "Pontiac", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +======= +>>>>>>> main + "localizedName": "Saginaw", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Sault Ste Marie", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Troy", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + } + ], +<<<<<<< HEAD + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", +======= + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2022-12-01" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2022-12-01", +>>>>>>> main + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:17 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:56 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10209", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:16 GMT", + "MS-CV": "KGE7cwJ95kWTOuMgsQy41Q.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ASayZAAAAADF/eE4U72mQYXhBh6MyEr0V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "227ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10195", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:55 GMT", + "MS-CV": "/nLTmbsBhkKNf2jeJiLG/Q.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0t9pdZQAAAAAOXrpvCKKeSKl/1MfL2lLeUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "750ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Alexandria", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Duluth", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Mankato", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Minneapolis", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Plymouth", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "St. Paul", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Columbia", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Marshall", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Springfield", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "St. Louis", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Biloxi", + "administrativeDivision": { + "localizedName": "MS", + "abbreviatedName": "MS" + } + }, + { + "localizedName": "Jackson", + "administrativeDivision": { + "localizedName": "MS", + "abbreviatedName": "MS" + } + }, + { + "localizedName": "Starkville", + "administrativeDivision": { + "localizedName": "MS", + "abbreviatedName": "MS" + } + }, + { + "localizedName": "Billings", + "administrativeDivision": { + "localizedName": "MT", + "abbreviatedName": "MT" + } + }, + { + "localizedName": "Asheville", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Charlotte", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Fayetteville", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Greensboro", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Raleigh", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Rocky Mount", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Fargo", + "administrativeDivision": { + "localizedName": "ND", + "abbreviatedName": "ND" + } + }, + { + "localizedName": "Kearney", + "administrativeDivision": { + "localizedName": "NE", + "abbreviatedName": "NE" + } + }, + { + "localizedName": "Omaha", + "administrativeDivision": { + "localizedName": "NE", + "abbreviatedName": "NE" + } + }, + { + "localizedName": "All locations", + "administrativeDivision": { + "localizedName": "NG", + "abbreviatedName": "NG" + } + }, + { + "localizedName": "Atlantic City", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Camden", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Edison", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Elizabeth", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Jersey City", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Newark", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Albuquerque", + "administrativeDivision": { + "localizedName": "NM", + "abbreviatedName": "NM" + } + }, + { + "localizedName": "Las Cruces", + "administrativeDivision": { + "localizedName": "NM", + "abbreviatedName": "NM" + } + }, + { + "localizedName": "Las Vegas", + "administrativeDivision": { + "localizedName": "NV", + "abbreviatedName": "NV" + } + }, + { + "localizedName": "Reno", + "administrativeDivision": { + "localizedName": "NV", + "abbreviatedName": "NV" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Brentwood", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Elmira", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Hempstead", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Kingston", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "New York City", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Niagara Falls", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Rochester", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Syracuse", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Yonkers", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Akron", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Cincinnati", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Cleveland", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Columbus", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Dayton", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Toledo", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Lawton", + "administrativeDivision": { + "localizedName": "OK", + "abbreviatedName": "OK" + } + }, + { + "localizedName": "Oklahoma City", + "administrativeDivision": { + "localizedName": "OK", + "abbreviatedName": "OK" + } + }, + { + "localizedName": "Tulsa", + "administrativeDivision": { + "localizedName": "OK", + "abbreviatedName": "OK" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "OR", + "abbreviatedName": "OR" + } + }, + { +<<<<<<< HEAD + "localizedName": "Lancaster", +======= + "localizedName": "Erie", +>>>>>>> main + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { +<<<<<<< HEAD +======= + "localizedName": "Lancaster", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { +>>>>>>> main + "localizedName": "Philadelphia", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Pittsburgh", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Weatherly", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Providence", + "administrativeDivision": { + "localizedName": "RI", + "abbreviatedName": "RI" + } + }, + { + "localizedName": "Charleston", + "administrativeDivision": { + "localizedName": "SC", + "abbreviatedName": "SC" + } + }, + { + "localizedName": "Columbia", + "administrativeDivision": { + "localizedName": "SC", + "abbreviatedName": "SC" + } + }, + { + "localizedName": "Greenville", + "administrativeDivision": { + "localizedName": "SC", + "abbreviatedName": "SC" + } + }, + { + "localizedName": "Sioux Falls", + "administrativeDivision": { + "localizedName": "SD", + "abbreviatedName": "SD" + } + }, + { + "localizedName": "Chattanooga", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Clarksville", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { +<<<<<<< HEAD +======= + "localizedName": "Jackson", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Knoxville", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { +>>>>>>> main + "localizedName": "Memphis", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Nashville", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Abilene", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Austin", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Bryan", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Corpus Christi", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Dallas", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Denton", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "El Paso", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Fort Worth", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Galveston", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Hamilton", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Houston", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Laredo", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Lubbock", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { +<<<<<<< HEAD +======= + "localizedName": "Odessa", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { +>>>>>>> main + "localizedName": "San Antonio", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Tyler", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Salt Lake City", + "administrativeDivision": { + "localizedName": "UT", + "abbreviatedName": "UT" + } + }, + { + "localizedName": "St. George", + "administrativeDivision": { + "localizedName": "UT", + "abbreviatedName": "UT" + } + }, + { + "localizedName": "Arlington", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Danville", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Lynchburg", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Richmond", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Roanoke", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Virginia Beach", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Brattleboro", + "administrativeDivision": { + "localizedName": "VT", + "abbreviatedName": "VT" + } + }, + { + "localizedName": "Montpelier", + "administrativeDivision": { + "localizedName": "VT", + "abbreviatedName": "VT" + } + }, + { +<<<<<<< HEAD + "localizedName": "Spokane", + "administrativeDivision": { + "localizedName": "WA", + "abbreviatedName": "WA" + } + }, + { + "localizedName": "Tacoma", + "administrativeDivision": { + "localizedName": "WA", + "abbreviatedName": "WA" + } + }, + { + "localizedName": "Eau Claire", +======= + "localizedName": "Seattle", +>>>>>>> main + "administrativeDivision": { + "localizedName": "WA", + "abbreviatedName": "WA" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=200\u0026maxPageSize=100\u0026api-version=2022-12-01" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=200\u0026maxPageSize=100\u0026api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:40:57 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "743", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:56 GMT", + "MS-CV": "eku7cIclfEq1igSgGX2Svw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0uNpdZQAAAADWYKnDeU2mSbOQFKp2P7PhUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "718ms" + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Tacoma", + "administrativeDivision": { + "localizedName": "WA", + "abbreviatedName": "WA" + } + }, + { + "localizedName": "Eau Claire", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Kenosha", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Madison", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Milwaukee", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Charleston", + "administrativeDivision": { + "localizedName": "WV", + "abbreviatedName": "WV" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=200\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=200\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Sat, 15 Jul 2023 04:52:17 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "142", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:16 GMT", + "MS-CV": "\u002BhhFhxgi8USquXyueCpWjA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ASayZAAAAAAaZLeX4G8vQ77T5nsXC6fYV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "237ms" + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Laramie", + "administrativeDivision": { + "localizedName": "WY", + "abbreviatedName": "WY" + } + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists/recording_can_list_available_localities_with_administrative_division.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists/recording_can_list_available_localities_with_administrative_division.json.orig new file mode 100644 index 000000000000..840b81b56024 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists/recording_can_list_available_localities_with_administrative_division.json.orig @@ -0,0 +1,863 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:17 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:58 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:17 GMT", + "MS-CV": "1LJYsNhXwUiKEFLkpmFMXA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ASayZAAAAADm/FI7uomlRKiiMAt1s03pV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "238ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:57 GMT", + "MS-CV": "9pwuxCYJEkC8Lt9LLP\u002BRvg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0udpdZQAAAADL6TeWbdyRRJEdz35UKZSqUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "746ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Mobile", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Montgomery", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Fort Smith", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Jonesboro", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Little Rock", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Phoenix", + "administrativeDivision": { + "localizedName": "AZ", + "abbreviatedName": "AZ" + } + }, + { + "localizedName": "Burbank", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Concord", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Escondido", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Fresno", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Los Angeles", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Riverside", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Sacramento", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Salinas", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Diego", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Francisco", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Jose", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Clarita", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Rosa", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Stockton", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Truckee", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Washington DC", + "administrativeDivision": { + "localizedName": "CL", + "abbreviatedName": "CL" + } + }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Grand Junction", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Pueblo", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Bridgeport", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Hartford", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, + { + "localizedName": "Daytona Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Fort Lauderdale", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Gainesville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Jacksonville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Lakeland", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Miami", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Orlando", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Port St Lucie", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Sarasota", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "St. Petersburg", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { +<<<<<<< HEAD + "localizedName": "Tampa", +======= + "localizedName": "Tallahassee", +>>>>>>> main + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tampa", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "West Palm Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Atlanta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Augusta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Macon", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Savannah", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Honolulu", + "administrativeDivision": { + "localizedName": "HI", + "abbreviatedName": "HI" + } + }, + { + "localizedName": "Cedar Rapids", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Davenport", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Iowa City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Sioux City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Boise", + "administrativeDivision": { + "localizedName": "ID", + "abbreviatedName": "ID" + } + }, + { + "localizedName": "Alton", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Aurora", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Champaign", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Chicago", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Cicero", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rock Island", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rockford", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Waukegan", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Evansville", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Fort Wayne", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Gary", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Indianapolis", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "South Bend", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Topeka", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Wichita", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Ashland", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Lexington", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Louisville", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Owensboro", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Baton Rouge", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Lafayette", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "New Orleans", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Shreveport", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Boston", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Chicopee", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", +<<<<<<< HEAD + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Worcester", +======= +>>>>>>> main + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Baltimore", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Bethesda", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "ME", + "abbreviatedName": "ME" + } + }, + { + "localizedName": "Ann Arbor", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Detroit", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Flint", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grand Rapids", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grant", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Lansing", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Otsego", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +<<<<<<< HEAD + "localizedName": "Pontiac", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +======= +>>>>>>> main + "localizedName": "Saginaw", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Sault Ste Marie", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Troy", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026administrativeDivision=AK\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:18 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:58 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "144", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:17 GMT", + "MS-CV": "D95HGByQSEalDVJWr3j77w.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0AiayZAAAAAA05iymGZZrS5D9gt9\u002BjK6SV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "221ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "144", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:58 GMT", + "MS-CV": "iYOdPcl8yEa5ZiGyWoYePg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0udpdZQAAAAB/uXx//qAeRpclVmVPDV\u002BfUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "797ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities.json.orig new file mode 100644 index 000000000000..10d3bda3f7e3 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities.json.orig @@ -0,0 +1,1718 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:14 GMT", + "MS-CV": "eHHdtJqVNEOUZhz1Nn6QNw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0/iWyZAAAAAAAFcH14RE/QZs\u002BooUbFSHHV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "244ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:50 GMT", + "MS-CV": "u4xqN8LX5EOZOoHsIZlHLw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0stpdZQAAAAAR3kXCM4QGSo20Ln8Jc/THUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "744ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Mobile", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Montgomery", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Fort Smith", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Jonesboro", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Little Rock", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Phoenix", + "administrativeDivision": { + "localizedName": "AZ", + "abbreviatedName": "AZ" + } + }, + { + "localizedName": "Burbank", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Concord", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Escondido", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Fresno", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Los Angeles", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Riverside", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Sacramento", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Salinas", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Diego", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Francisco", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Jose", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Clarita", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Rosa", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Stockton", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Truckee", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Washington DC", + "administrativeDivision": { + "localizedName": "CL", + "abbreviatedName": "CL" + } + }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Grand Junction", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Pueblo", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Bridgeport", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Hartford", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, + { + "localizedName": "Daytona Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Fort Lauderdale", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Gainesville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Jacksonville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Lakeland", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Miami", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Orlando", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Port St Lucie", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Sarasota", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "St. Petersburg", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { +<<<<<<< HEAD + "localizedName": "Tampa", +======= + "localizedName": "Tallahassee", +>>>>>>> main + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tampa", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "West Palm Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Atlanta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Augusta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Macon", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Savannah", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Honolulu", + "administrativeDivision": { + "localizedName": "HI", + "abbreviatedName": "HI" + } + }, + { + "localizedName": "Cedar Rapids", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Davenport", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Iowa City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Sioux City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Boise", + "administrativeDivision": { + "localizedName": "ID", + "abbreviatedName": "ID" + } + }, + { + "localizedName": "Alton", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Aurora", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Champaign", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Chicago", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Cicero", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rock Island", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rockford", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Waukegan", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Evansville", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Fort Wayne", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Gary", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Indianapolis", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "South Bend", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Topeka", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Wichita", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Ashland", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Lexington", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Louisville", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Owensboro", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Baton Rouge", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Lafayette", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "New Orleans", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Shreveport", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Boston", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Chicopee", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", +<<<<<<< HEAD + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Worcester", +======= +>>>>>>> main + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Baltimore", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Bethesda", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "ME", + "abbreviatedName": "ME" + } + }, + { + "localizedName": "Ann Arbor", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Detroit", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Flint", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grand Rapids", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grant", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Lansing", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Otsego", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +<<<<<<< HEAD + "localizedName": "Pontiac", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +======= +>>>>>>> main + "localizedName": "Saginaw", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Sault Ste Marie", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Troy", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + } + ], +<<<<<<< HEAD + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", +======= + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2022-12-01" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2022-12-01", +>>>>>>> main + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10209", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:14 GMT", + "MS-CV": "BZqFMWV13U6gwsAd4Nw3RA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0/yWyZAAAAACSeDx5S1xDR5mLV6Wn7u1HV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "220ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10195", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:51 GMT", + "MS-CV": "stAz6p55j0qLIDi5e32uDw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0s9pdZQAAAACPlYWXbDnjTa3Ow37WLH2/UFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "753ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Alexandria", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Duluth", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Mankato", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Minneapolis", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Plymouth", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "St. Paul", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Columbia", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Marshall", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Springfield", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "St. Louis", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Biloxi", + "administrativeDivision": { + "localizedName": "MS", + "abbreviatedName": "MS" + } + }, + { + "localizedName": "Jackson", + "administrativeDivision": { + "localizedName": "MS", + "abbreviatedName": "MS" + } + }, + { + "localizedName": "Starkville", + "administrativeDivision": { + "localizedName": "MS", + "abbreviatedName": "MS" + } + }, + { + "localizedName": "Billings", + "administrativeDivision": { + "localizedName": "MT", + "abbreviatedName": "MT" + } + }, + { + "localizedName": "Asheville", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Charlotte", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Fayetteville", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Greensboro", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Raleigh", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Rocky Mount", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Fargo", + "administrativeDivision": { + "localizedName": "ND", + "abbreviatedName": "ND" + } + }, + { + "localizedName": "Kearney", + "administrativeDivision": { + "localizedName": "NE", + "abbreviatedName": "NE" + } + }, + { + "localizedName": "Omaha", + "administrativeDivision": { + "localizedName": "NE", + "abbreviatedName": "NE" + } + }, + { + "localizedName": "All locations", + "administrativeDivision": { + "localizedName": "NG", + "abbreviatedName": "NG" + } + }, + { + "localizedName": "Atlantic City", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Camden", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Edison", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Elizabeth", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Jersey City", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Newark", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Albuquerque", + "administrativeDivision": { + "localizedName": "NM", + "abbreviatedName": "NM" + } + }, + { + "localizedName": "Las Cruces", + "administrativeDivision": { + "localizedName": "NM", + "abbreviatedName": "NM" + } + }, + { + "localizedName": "Las Vegas", + "administrativeDivision": { + "localizedName": "NV", + "abbreviatedName": "NV" + } + }, + { + "localizedName": "Reno", + "administrativeDivision": { + "localizedName": "NV", + "abbreviatedName": "NV" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Brentwood", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Elmira", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Hempstead", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Kingston", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "New York City", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Niagara Falls", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Rochester", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Syracuse", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Yonkers", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Akron", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Cincinnati", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Cleveland", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Columbus", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Dayton", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Toledo", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Lawton", + "administrativeDivision": { + "localizedName": "OK", + "abbreviatedName": "OK" + } + }, + { + "localizedName": "Oklahoma City", + "administrativeDivision": { + "localizedName": "OK", + "abbreviatedName": "OK" + } + }, + { + "localizedName": "Tulsa", + "administrativeDivision": { + "localizedName": "OK", + "abbreviatedName": "OK" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "OR", + "abbreviatedName": "OR" + } + }, + { +<<<<<<< HEAD + "localizedName": "Lancaster", +======= + "localizedName": "Erie", +>>>>>>> main + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { +<<<<<<< HEAD +======= + "localizedName": "Lancaster", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { +>>>>>>> main + "localizedName": "Philadelphia", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Pittsburgh", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Weatherly", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Providence", + "administrativeDivision": { + "localizedName": "RI", + "abbreviatedName": "RI" + } + }, + { + "localizedName": "Charleston", + "administrativeDivision": { + "localizedName": "SC", + "abbreviatedName": "SC" + } + }, + { + "localizedName": "Columbia", + "administrativeDivision": { + "localizedName": "SC", + "abbreviatedName": "SC" + } + }, + { + "localizedName": "Greenville", + "administrativeDivision": { + "localizedName": "SC", + "abbreviatedName": "SC" + } + }, + { + "localizedName": "Sioux Falls", + "administrativeDivision": { + "localizedName": "SD", + "abbreviatedName": "SD" + } + }, + { + "localizedName": "Chattanooga", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Clarksville", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { +<<<<<<< HEAD +======= + "localizedName": "Jackson", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Knoxville", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { +>>>>>>> main + "localizedName": "Memphis", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Nashville", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Abilene", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Austin", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Bryan", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Corpus Christi", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Dallas", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Denton", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "El Paso", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Fort Worth", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Galveston", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Hamilton", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Houston", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Laredo", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Lubbock", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { +<<<<<<< HEAD +======= + "localizedName": "Odessa", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { +>>>>>>> main + "localizedName": "San Antonio", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Tyler", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Salt Lake City", + "administrativeDivision": { + "localizedName": "UT", + "abbreviatedName": "UT" + } + }, + { + "localizedName": "St. George", + "administrativeDivision": { + "localizedName": "UT", + "abbreviatedName": "UT" + } + }, + { + "localizedName": "Arlington", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Danville", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Lynchburg", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Richmond", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Roanoke", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Virginia Beach", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Brattleboro", + "administrativeDivision": { + "localizedName": "VT", + "abbreviatedName": "VT" + } + }, + { + "localizedName": "Montpelier", + "administrativeDivision": { + "localizedName": "VT", + "abbreviatedName": "VT" + } + }, + { +<<<<<<< HEAD + "localizedName": "Spokane", + "administrativeDivision": { + "localizedName": "WA", + "abbreviatedName": "WA" + } + }, + { + "localizedName": "Tacoma", + "administrativeDivision": { + "localizedName": "WA", + "abbreviatedName": "WA" + } + }, + { + "localizedName": "Eau Claire", +======= + "localizedName": "Seattle", +>>>>>>> main + "administrativeDivision": { + "localizedName": "WA", + "abbreviatedName": "WA" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=200\u0026maxPageSize=100\u0026api-version=2022-12-01" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=200\u0026maxPageSize=100\u0026api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "743", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:52 GMT", + "MS-CV": "owlW86/WlEuRawsjHut5Uw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0s9pdZQAAAADVvLs2uFa3TplrPEREQqnKUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "765ms" + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Tacoma", + "administrativeDivision": { + "localizedName": "WA", + "abbreviatedName": "WA" + } + }, + { + "localizedName": "Eau Claire", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Kenosha", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Madison", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Milwaukee", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Charleston", + "administrativeDivision": { + "localizedName": "WV", + "abbreviatedName": "WV" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=200\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=200\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "142", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:14 GMT", + "MS-CV": "\u002BHGpnwlrAU\u002B3GeiAfd3uKA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0/yWyZAAAAACHbuWVdnunS7osTteKNBO5V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "234ms" + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Laramie", + "administrativeDivision": { + "localizedName": "WY", + "abbreviatedName": "WY" + } + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities_with_administrative_division.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities_with_administrative_division.json.orig new file mode 100644 index 000000000000..bc49a3e3c82a --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities_with_administrative_division.json.orig @@ -0,0 +1,857 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:15 GMT", + "MS-CV": "2vQi69v4b0C7fAW0Da5Hng.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0/yWyZAAAAADfeKKsC/piQpPw5jR4N4vwV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "222ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:53 GMT", + "MS-CV": "W6OJ5OZNVkS0XGkuYSGJSA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0tNpdZQAAAAAVYcKmP6aITaA8au6TWa7CUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "726ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Mobile", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Montgomery", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Fort Smith", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Jonesboro", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Little Rock", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Phoenix", + "administrativeDivision": { + "localizedName": "AZ", + "abbreviatedName": "AZ" + } + }, + { + "localizedName": "Burbank", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Concord", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Escondido", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Fresno", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Los Angeles", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Riverside", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Sacramento", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Salinas", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Diego", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Francisco", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Jose", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Clarita", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Rosa", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Stockton", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Truckee", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Washington DC", + "administrativeDivision": { + "localizedName": "CL", + "abbreviatedName": "CL" + } + }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Grand Junction", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Pueblo", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Bridgeport", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Hartford", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, + { + "localizedName": "Daytona Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Fort Lauderdale", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Gainesville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Jacksonville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Lakeland", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Miami", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Orlando", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Port St Lucie", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Sarasota", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "St. Petersburg", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { +<<<<<<< HEAD + "localizedName": "Tampa", +======= + "localizedName": "Tallahassee", +>>>>>>> main + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tampa", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "West Palm Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Atlanta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Augusta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Macon", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Savannah", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Honolulu", + "administrativeDivision": { + "localizedName": "HI", + "abbreviatedName": "HI" + } + }, + { + "localizedName": "Cedar Rapids", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Davenport", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Iowa City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Sioux City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Boise", + "administrativeDivision": { + "localizedName": "ID", + "abbreviatedName": "ID" + } + }, + { + "localizedName": "Alton", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Aurora", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Champaign", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Chicago", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Cicero", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rock Island", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rockford", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Waukegan", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Evansville", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Fort Wayne", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Gary", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Indianapolis", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "South Bend", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Topeka", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Wichita", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Ashland", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Lexington", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Louisville", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Owensboro", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Baton Rouge", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Lafayette", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "New Orleans", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Shreveport", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Boston", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Chicopee", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", +<<<<<<< HEAD + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Worcester", +======= +>>>>>>> main + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Baltimore", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Bethesda", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "ME", + "abbreviatedName": "ME" + } + }, + { + "localizedName": "Ann Arbor", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Detroit", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Flint", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grand Rapids", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grant", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Lansing", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Otsego", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +<<<<<<< HEAD + "localizedName": "Pontiac", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +======= +>>>>>>> main + "localizedName": "Saginaw", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Sault Ste Marie", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Troy", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026administrativeDivision=AK\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "144", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:15 GMT", + "MS-CV": "4AEU50r/xk\u002BabvWzm0yG4g.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ACayZAAAAAB3Dd0g/t8yR7ZB0QnUZJtjV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "221ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "144", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:54 GMT", + "MS-CV": "vPKz4REi5UGTd3yQNmdevw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0tdpdZQAAAAADCn9\u002BFCJ3SIWHuXVnbrAbUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "761ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__look_up_phone_number/recording_can_look_up_a_phone_number.json b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__look_up_phone_number/recording_can_look_up_a_phone_number.json new file mode 100644 index 000000000000..c770e9c332ab --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__look_up_phone_number/recording_can_look_up_a_phone_number.json @@ -0,0 +1,61 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/operatorInformation/:search?api-version=2024-03-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "\u0022Chromium\u0022;v=\u0022122\u0022, \u0022Not(A:Brand\u0022;v=\u002224\u0022, \u0022HeadlessChrome\u0022;v=\u0022122\u0022", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022Windows\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/122.0.6261.57 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "OmiHT1VilzGeodwSly/sLlTvvNvKSeL1Mf0fzGeyvTs=", + "x-ms-date": "Tue, 27 Feb 2024 18:51:10 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": { + "phoneNumbers": [ + "\u002B14155550100" + ], + "options": { + "includeAdditionalOperatorDetails": false + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview, 2024-03-01-preview, 2024-08-31-preview", + "Content-Length": "180", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 27 Feb 2024 18:51:08 GMT", + "MS-CV": "gR\u002Be7gFanUKiqk6PIFyPlw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0HS/eZQAAAACGh/DNAAymTZvzPMgJnOzGV1NURURHRTAxMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "23ms" + }, + "ResponseBody": { + "values": [ + { + "phoneNumber": "\u002B14155550100", + "nationalFormat": "(833) 201-6898", + "internationalFormat": "\u002B1 833-201-6898", + "isoCountryCode": null, + "numberType": null, + "operatorDetails": null + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__look_up_phone_number/recording_errors_if_multiple_phone_numbers_are_requested.json b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__look_up_phone_number/recording_errors_if_multiple_phone_numbers_are_requested.json new file mode 100644 index 000000000000..350f2565935f --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__look_up_phone_number/recording_errors_if_multiple_phone_numbers_are_requested.json @@ -0,0 +1,56 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/operatorInformation/:search?api-version=2024-03-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "101", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "\u0022Chromium\u0022;v=\u0022122\u0022, \u0022Not(A:Brand\u0022;v=\u002224\u0022, \u0022HeadlessChrome\u0022;v=\u0022122\u0022", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022Windows\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/122.0.6261.57 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "C0wdqHni5iu3jCpgQMmXW\u002B/F4BI/blLXomiVg6pcPkg=", + "x-ms-date": "Tue, 27 Feb 2024 18:51:10 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": { + "phoneNumbers": [ + "\u002B14155550100", + "\u002B14155550100" + ], + "options": { + "includeAdditionalOperatorDetails": false + } + }, + "StatusCode": 400, + "ResponseHeaders": { + "api-supported-versions": "2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview, 2024-03-01-preview, 2024-08-31-preview", + "Content-Type": "application/json", + "Date": "Tue, 27 Feb 2024 18:51:08 GMT", + "MS-CV": "Kt7Va3g2wEifnGKfLx85KQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0HS/eZQAAAABB8SWyzcf8T6aRGZqYiLv2V1NURURHRTAxMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "10ms" + }, + "ResponseBody": { + "error": { + "code": "BadRequest", + "message": "Can only accept one phoneNumber" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__look_up_phone_number/recording_respects_includeadditionaloperatordetails_option.json b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__look_up_phone_number/recording_respects_includeadditionaloperatordetails_option.json new file mode 100644 index 000000000000..8c1ea06e1262 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__look_up_phone_number/recording_respects_includeadditionaloperatordetails_option.json @@ -0,0 +1,121 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/operatorInformation/:search?api-version=2024-03-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "\u0022Chromium\u0022;v=\u0022122\u0022, \u0022Not(A:Brand\u0022;v=\u002224\u0022, \u0022HeadlessChrome\u0022;v=\u0022122\u0022", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022Windows\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/122.0.6261.57 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "OmiHT1VilzGeodwSly/sLlTvvNvKSeL1Mf0fzGeyvTs=", + "x-ms-date": "Tue, 27 Feb 2024 18:51:10 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": { + "phoneNumbers": [ + "\u002B14155550100" + ], + "options": { + "includeAdditionalOperatorDetails": false + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview, 2024-03-01-preview, 2024-08-31-preview", + "Content-Length": "180", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 27 Feb 2024 18:51:09 GMT", + "MS-CV": "6zUGHbXI6E2WiXyfqscs8w.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0HS/eZQAAAAAT23yKEDBVSYxdsg3AT22QV1NURURHRTAxMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "29ms" + }, + "ResponseBody": { + "values": [ + { + "phoneNumber": "\u002B14155550100", + "nationalFormat": "(833) 201-6898", + "internationalFormat": "\u002B1 833-201-6898", + "isoCountryCode": null, + "numberType": null, + "operatorDetails": null + } + ] + } + }, + { + "RequestUri": "https://endpoint/operatorInformation/:search?api-version=2024-03-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "85", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "\u0022Chromium\u0022;v=\u0022122\u0022, \u0022Not(A:Brand\u0022;v=\u002224\u0022, \u0022HeadlessChrome\u0022;v=\u0022122\u0022", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022Windows\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/122.0.6261.57 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "qkBNiaAS8tfKX/Wf8JKOsmJrOnPktJNJDx1K4XvtFFc=", + "x-ms-date": "Tue, 27 Feb 2024 18:51:10 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": { + "phoneNumbers": [ + "\u002B14155550100" + ], + "options": { + "includeAdditionalOperatorDetails": true + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview, 2024-03-01-preview, 2024-08-31-preview", + "Content-Length": "260", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 27 Feb 2024 18:51:09 GMT", + "MS-CV": "d/IEOVqjK0G0DPjiiLQ7zA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0HS/eZQAAAABy4MFhfvRhT4BioFWZJjBXV1NURURHRTAxMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "850ms" + }, + "ResponseBody": { + "values": [ + { + "phoneNumber": "\u002B14155550100", + "nationalFormat": "(833) 201-6898", + "internationalFormat": "\u002B1 833-201-6898", + "isoCountryCode": "US", + "numberType": "other", + "operatorDetails": { + "name": "Multiple OCN Listing", + "mobileNetworkCode": null, + "mobileCountryCode": null + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__purchase_and_release/recording_can_purchase_and_release_a_phone_number.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__purchase_and_release/recording_can_purchase_and_release_a_phone_number.json.orig new file mode 100644 index 000000000000..0c3ce4859613 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__purchase_and_release/recording_can_purchase_and_release_a_phone_number.json.orig @@ -0,0 +1,1354 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "4/hFIxcYwXqhguSdYcV2TsQR1Tf8cOFyLfVXdBF8OBU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:08 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:35:35 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "quantity": 1 + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location,Operation-Location,operation-id,search-id", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Sat, 15 Jul 2023 04:53:09 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "SZ\u002Bu4K\u002Bvj0GZFV5PmLpbfA.0", + "operation-id": "search_sanitized", + "Operation-Location": "/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "search-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0NCayZAAAAAAzxMNFX9w\u002BS7zreFpSVf7EV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1031ms" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:09 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:35:37 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:10 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "NF3pWwDp2UOQtwnrbE1x5A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0NSayZAAAAADLOw2y0R5QTLjPmjAfqqs1V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "246ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "notStarted", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:10 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:35:37 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:10 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "/I8aUekZzEC8eoDcvll\u002BXA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0NiayZAAAAACRpU6MqLsSQ56fJ2WMguCzV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "303ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "notStarted", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Sat, 15 Jul 2023 04:53:12 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:12 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "AVf97Ct8AUmnXlDm08vGNQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0OCayZAAAAAA8VawsTjPAS79mfxrBWrrEV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "236ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "running", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:15 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:35:40 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:15 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "/\u002BmltpnmbEKnl4LPlEaxVg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0OiayZAAAAADYkpkVaXimSoFpOMErUx6lV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "259ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "succeeded", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:15 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:35:40 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "319", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:15 GMT", + "MS-CV": "68wAaVihiU21NVVKgkP1hQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0OyayZAAAAAADpIYqS3HGRokYhb9V97mpV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "471ms" + }, + "ResponseBody": { + "searchId": "sanitized", + "phoneNumbers": [ + "\u002B14155550100" + ], + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + }, + "searchExpiresBy": "2023-07-15T05:09:12.6539873\u002B00:00", + "error": "NoError" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/:purchase?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "24", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-content-sha256": "7y7CnmPxrI4eh5ZGSYsfr/oid3uMYH/tvXVHj34pJvI=", + "x-ms-date": "Sat, 15 Jul 2023 04:53:15 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "O4v56yo2F8/w6SEo011JpVUd2HbGasCmQAeoo9133tg=", + "x-ms-date": "Fri, 06 Jan 2023 17:35:42 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "searchId": "sanitized" + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Operation-Location,operation-id,purchase-id", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Sat, 15 Jul 2023 04:53:16 GMT", + "MS-CV": "tGTfSBiObU6avYroLIhSKQ.0", + "operation-id": "purchase_sanitized", + "Operation-Location": "/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "purchase-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0OyayZAAAAADg0UIY70HRTqmSl6DkWsmdV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "872ms" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:17 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:35:44 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:17 GMT", + "MS-CV": "pCtEqPPlaUqIV0u2qnl7MQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0PSayZAAAAAC\u002Bi/dyPDKPSqFmlbOxSu\u002B6V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "241ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:17 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:35:44 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:17 GMT", + "MS-CV": "1Lrj6oijSUmNFiSIcZ5Kew.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0PSayZAAAAAD2VnFpWxZRR5x04lhlFXaFV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "265ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:19 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:35:47 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:19 GMT", + "MS-CV": "JUI8V7Jqu0SkRSP\u002B7gXK6A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0PyayZAAAAAC2sLy4V\u002BjkQ6keu8d5VDBsV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "249ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Sat, 15 Jul 2023 04:53:22 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:22 GMT", + "MS-CV": "41msbJY8YkChNLXdTPlUxg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0QiayZAAAAAAQvw4qaP22QJzAwMiQs/jrV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "237ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:24 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:35:49 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:24 GMT", + "MS-CV": "e0gFp8IoQ0uYzPboEaD6zQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0RCayZAAAAAB/QlgXcPzUS7VE485K4zs6V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "235ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:26 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:35:52 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:26 GMT", + "MS-CV": "Dp4mrOTV\u002BEyU/ca7/5/W3w.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0RiayZAAAAAAwiyj1vXjQRYwf/RFZb5p8V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "236ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:29 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:35:55 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:29 GMT", + "MS-CV": "CY1UM/frJUGQsqutWIGEaA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0SSayZAAAAAB3QZkM5BYLSI727sx7Wot8V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "235ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:31 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:35:57 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:31 GMT", + "MS-CV": "4PDn932T5U6P5TUHgs3lFw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0SyayZAAAAACYESadvqtHTarN0nsLRK1fV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "232ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:33 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:36:00 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:33 GMT", + "MS-CV": "YH/HnNXTPEaTlbkP6encNg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0TSayZAAAAAB3kxYS9b9LQ6pgkNRyHey8V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "243ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:36 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:36:02 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:36 GMT", + "MS-CV": "RTRCOOhFpEaSg211UgYNxw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0UCayZAAAAACMci72HE1vTqoADAKVk9M/V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "229ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "succeeded", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:36 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:36:03 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "310", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:37 GMT", + "MS-CV": "BOqsmJtIz0Kqj\u002BWBA4BSlg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0UCayZAAAAACS123oEWLST7Vc5/XCZ\u002BHRV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1064ms" + }, + "ResponseBody": { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-07-15T04:53:31.8062039\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:37 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:36:05 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Operation-Location,operation-id,release-id", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Sat, 15 Jul 2023 04:53:39 GMT", + "MS-CV": "9Sx/ngpSF02Bj\u002BtlMirGWg.0", + "operation-id": "release_sanitized", + "Operation-Location": "/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "release-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0USayZAAAAACv0SlS1CyTSaj0V4AGQ3AEV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1796ms" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:39 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:36:07 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:39 GMT", + "MS-CV": "G5/cdbXxPkKwAomuW\u002Bythw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0UyayZAAAAABxB1qQCKezSZG0wm5e5eELV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", +<<<<<<< HEAD + "X-Processing-Time": "217ms" +======= + "X-Processing-Time": "401ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-01-06T17:36:04.2157298\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/108.0.5351.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 06 Jan 2023 17:36:08 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 06 Jan 2023 17:36:05 GMT", + "MS-CV": "pid6SKwT906iTNxndM9tPA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0Bly4YwAAAABw3uHdyS/JQYwzAhqD7soXTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "402ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-01-06T17:36:04.2157298\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/108.0.5351.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 06 Jan 2023 17:36:10 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 06 Jan 2023 17:36:09 GMT", + "MS-CV": "M2emd9Slrk2PKePd9pZwAA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0CFy4YwAAAAAUIQfbjFcmQ7Uqykl6HrTrTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "406ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:38.4942287\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:39 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:36:13 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:39 GMT", + "MS-CV": "otTncT4pdUO/6q8n4PVNdg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0UyayZAAAAAAvwTzb8n6wRbMV1jnCJpMSV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "159ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:38.4942287\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:42 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:36:15 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:42 GMT", + "MS-CV": "TcTrcJP8okGCdM41BsgyyQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ViayZAAAAAAK\u002BxElGC5ZRr2BKO7dmQwfV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "148ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:38.4942287\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:44 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:36:18 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:44 GMT", + "MS-CV": "086q32QYokiNvEk2\u002BH8jww.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0WCayZAAAAAAwDlq/Bk22TaQnWxny1GUQV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "165ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:38.4942287\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:46 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:36:20 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:46 GMT", + "MS-CV": "DA27K\u002BRghkCMIpInH65A6Q.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0WiayZAAAAACQUyIOWiggR6SIfFGhK7w5V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "145ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:38.4942287\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Sat, 15 Jul 2023 04:53:48 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:48 GMT", + "MS-CV": "RPVqnj/G60KmJpCU5jTCRA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0XCayZAAAAACnBRLqu7ekQaNwBD4u7TsPV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "152ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "succeeded", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:38.4942287\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + } + ], + "Variables": {} +} \ No newline at end of file diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__purchase_and_release_aad/recording_can_purchase_and_release_a_phone_number.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__purchase_and_release_aad/recording_can_purchase_and_release_a_phone_number.json.orig new file mode 100644 index 000000000000..aa69a52d0039 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__purchase_and_release_aad/recording_can_purchase_and_release_a_phone_number.json.orig @@ -0,0 +1,1669 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "4/hFIxcYwXqhguSdYcV2TsQR1Tf8cOFyLfVXdBF8OBU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "quantity": 1 + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location,Operation-Location,operation-id,search-id", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:29 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "8vdU9ChCE0azr8CH/Ta\u002BUw.0", +======= + "Date": "Fri, 06 Jan 2023 17:35:34 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "ofp0snc7CECsY8DINlCkBw.0", +>>>>>>> main + "operation-id": "search_sanitized", + "Operation-Location": "/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "search-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", +<<<<<<< HEAD + "X-Azure-Ref": "0DiayZAAAAAA7Lcws2ihCRLsTCY8qi6wyV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "819ms" +======= + "X-Azure-Ref": "05Vu4YwAAAABTwCfnO0b4Tqr7edw9quXDTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1942ms" +>>>>>>> main + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:30 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "vTlx2J0tM0SrsCGTsVWk\u002BQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0DyayZAAAAACxyfwZCjydSpKu8p21iwiwV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "245ms" +======= + "Date": "Fri, 06 Jan 2023 17:35:34 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "YefqEcOZs0e6T4YZivw3lA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "051u4YwAAAADPJ6nre7OCTKzhOBDCnMd1TUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "452ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "search", + "status": "notStarted", +<<<<<<< HEAD + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", +======= + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-01-06T17:35:34.6198719\u002B00:00", +>>>>>>> main + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:30 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "T7lWO8iOlEqnM2LhOEHJaA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0DyayZAAAAAANECYT\u002Bj7VQ6Aq7wTs1X2vV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "232ms" +======= + "Date": "Fri, 06 Jan 2023 17:35:35 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "7s4pQa3zgkOegykTA5aMvA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "051u4YwAAAACEPt0BGp66S4esDoJ7eZyRTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "454ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "search", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", +======= + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-01-06T17:35:34.6198719\u002B00:00", +>>>>>>> main + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:32 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "yKJCADslfEqM78ytojWl3g.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ESayZAAAAACkm833OpQJRZTO/qXFVUm2V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "248ms" +======= + "Date": "Fri, 06 Jan 2023 17:35:37 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "ramfm9BczkqoUKSA5LaaPQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "06lu4YwAAAABtHROUgpRjS4gokH89mA/1TUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "457ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "search", + "status": "succeeded", +<<<<<<< HEAD + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", +======= + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-01-06T17:35:34.6198719\u002B00:00", +>>>>>>> main + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "319", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:33 GMT", + "MS-CV": "uDzEpS3J8kiTPuLX4/sXXQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ESayZAAAAAASooSWLANZSazn1P/u6OhwV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "655ms" +======= + "Date": "Fri, 06 Jan 2023 17:35:39 GMT", + "MS-CV": "4GrV\u002BTw5Q0SdfabVz//gUg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "06lu4YwAAAACOakKbUwtpTqU6r0rgmlY9TUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1125ms" +>>>>>>> main + }, + "ResponseBody": { + "searchId": "sanitized", + "phoneNumbers": [ + "\u002B14155550100" + ], + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + }, +<<<<<<< HEAD + "searchExpiresBy": "2023-07-15T05:08:33.1838285\u002B00:00", + "error": "NoError" +======= + "searchExpiresBy": "2023-01-06T17:51:36.4235517\u002B00:00" +>>>>>>> main + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/:purchase?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "24", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "O4v56yo2F8/w6SEo011JpVUd2HbGasCmQAeoo9133tg=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "searchId": "sanitized" + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Operation-Location,operation-id,purchase-id", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:34 GMT", + "MS-CV": "OF2K6CPzN0\u002BCDe60LO2ipA.0", +======= + "Date": "Fri, 06 Jan 2023 17:35:41 GMT", + "MS-CV": "ICD1R7kV5UaJP09fGU13cg.0", +>>>>>>> main + "operation-id": "purchase_sanitized", + "Operation-Location": "/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "purchase-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", +<<<<<<< HEAD + "X-Azure-Ref": "0EiayZAAAAAD4cFtidtihR7Ff4W7Jl4oEV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "894ms" +======= + "X-Azure-Ref": "07Fu4YwAAAACPWIbOLewaRqykBR/saTdOTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2031ms" +>>>>>>> main + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:35 GMT", + "MS-CV": "RQZ5rQ/VBk\u002BGe4x55MjmtA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0EyayZAAAAAAnR8JuynfzT7a03Ae81aKKV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "249ms" +======= + "Date": "Fri, 06 Jan 2023 17:35:41 GMT", + "MS-CV": "H8ZfbGeL9UK5BHl7Q4odvg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "07lu4YwAAAABgemooQYcpRJskUhcllwobTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "454ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "purchase", + "status": "running", + "resourceLocation": null, +<<<<<<< HEAD + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", +======= + "createdDateTime": "2023-01-06T17:35:34.6198719\u002B00:00", +>>>>>>> main + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:35 GMT", + "MS-CV": "8WuXDW94gEifdMmoAUhy2A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0FCayZAAAAAC8AayhQ0UbTIIZIm/KJcu\u002BV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", +======= + "Date": "Fri, 06 Jan 2023 17:35:42 GMT", + "MS-CV": "LnwYnZyh0Eied78zDWnC3A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "07lu4YwAAAADngvUo2mU2QpnBYl8LqFG2TUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "447ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-01-06T17:35:34.6198719\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/108.0.5351.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 06 Jan 2023 17:35:44 GMT", + "MS-CV": "1B9dS21Fp0mIVE49w9Uhsg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "08Vu4YwAAAAALLysZr76LRKpRM\u002BTfCP\u002BOTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "457ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-01-06T17:35:34.6198719\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/108.0.5351.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 06 Jan 2023 17:35:47 GMT", + "MS-CV": "UcEjJwXlvkKg/PBQjwL35g.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "081u4YwAAAAApIBKXOCfMRoNogL1qQkrMTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "464ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-01-06T17:35:34.6198719\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/108.0.5351.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 06 Jan 2023 17:35:49 GMT", + "MS-CV": "GAf5dZGnoEiW\u002BaK2ioLE1A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "09lu4YwAAAADnLLlfXGzqR7Tx8zgPoNNTTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "474ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-01-06T17:35:34.6198719\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/108.0.5351.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 06 Jan 2023 17:35:52 GMT", + "MS-CV": "U7s0u1zlhEeW1GZD\u002B0EfJw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0\u002BFu4YwAAAABpjgGqjCw3SJCDKv3JThxyTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "461ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-01-06T17:35:34.6198719\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/108.0.5351.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 06 Jan 2023 17:35:54 GMT", + "MS-CV": "mplJ6U5yrUKusA93ojDNUQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0\u002B1u4YwAAAACYpiIRHesvTbNuG7jhYdPDTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", +>>>>>>> main + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "232ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, +<<<<<<< HEAD + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", +======= + "createdDateTime": "2023-01-06T17:35:34.6198719\u002B00:00", +>>>>>>> main + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:37 GMT", + "MS-CV": "bQV39TlHdkyTmdTWMeAmzg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0FiayZAAAAAAh8rQoGJPvRLBF6DXg48uoV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "247ms" +======= + "Date": "Fri, 06 Jan 2023 17:35:57 GMT", + "MS-CV": "TK9HN4q1qUiIEIwkgD0mIA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0/Vu4YwAAAADfYuu/RMJKQ5ILiURtoSpBTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "470ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, +<<<<<<< HEAD + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", +======= + "createdDateTime": "2023-01-06T17:35:34.6198719\u002B00:00", +>>>>>>> main + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:40 GMT", + "MS-CV": "IwIvRFz65kWNjVVKtHTdwg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0GCayZAAAAABHUuohp\u002BLyTZTDbqXtv\u002BlXV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "436ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:43 GMT", + "MS-CV": "ou\u002BZ9ma2h0a6Tin0jT48Hg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0GyayZAAAAADtHDuJ8cyCQpXYdMWPzp2eV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "259ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:46 GMT", + "MS-CV": "JGS1JJQ/IkWiFv7G4CHxvQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0HSayZAAAAAB0sDcYi677Qq1sa6Ak61fJV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "238ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:48 GMT", + "MS-CV": "gAnYm5lRW0WLYBDOTvOY1w.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ICayZAAAAAB6nBVuU6/mTarFbBJ0wRJ3V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "245ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:50 GMT", + "MS-CV": "k4EW\u002BJdhPE6oeLnMK5dang.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0IiayZAAAAABMGYm58JkOSaL0gXZ5JBKkV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "243ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:53 GMT", + "MS-CV": "HkZrn5vdP0mJMZbt2ywjAw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0JCayZAAAAAAx5RxhcGQISYGksjBH\u002BVkyV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "246ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:55 GMT", + "MS-CV": "9WKIwkw8GUiiXLcyhRRCow.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0JyayZAAAAAB1p41P4JBLQopkX63f3CKnV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "243ms" +======= + "Date": "Fri, 06 Jan 2023 17:36:00 GMT", + "MS-CV": "lMRwVDozUU6euie/IFeWFw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0AFy4YwAAAABwWtwRHhSfSYa008MtNtFLTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "465ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "purchase", + "status": "succeeded", + "resourceLocation": null, +<<<<<<< HEAD + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", +======= + "createdDateTime": "2023-01-06T17:35:34.6198719\u002B00:00", +>>>>>>> main + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "310", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:56 GMT", + "MS-CV": "xpYqkFybeUKG7ZW4MAfCGw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0JyayZAAAAAD1cr\u002BIH6JHQomkNoJiD5RiV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "988ms" +======= + "Date": "Fri, 06 Jan 2023 17:36:02 GMT", + "MS-CV": "UuREI/AMSU2TytRCyVypXQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0AVy4YwAAAABBfsbsTgNkS6EOGpgAVhvVTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2439ms" +>>>>>>> main + }, + "ResponseBody": { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2023-07-15T04:52:49.8531401\u002B00:00", +======= + "purchaseDate": "2023-01-06T17:35:57.0332349\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Operation-Location,operation-id,release-id", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:58 GMT", + "MS-CV": "R7cBTnaGWkWvt/q1Gol7IQ.0", +======= + "Date": "Fri, 06 Jan 2023 17:36:04 GMT", + "MS-CV": "M1/8c3MnhEqBVmtTcyV8QQ.0", +>>>>>>> main + "operation-id": "release_sanitized", + "Operation-Location": "/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "release-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", +<<<<<<< HEAD + "X-Azure-Ref": "0KCayZAAAAADLBgA4FZwORblzYQWN2TESV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2044ms" +======= + "X-Azure-Ref": "0A1y4YwAAAAAPsVIyOXM7TYbr\u002BVs16KjzTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1990ms" +>>>>>>> main + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:59 GMT", + "MS-CV": "6Iw1sHiTkUmBiUVY9lLKaw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0KiayZAAAAADHC5Me/oOYRohG/\u002B5Y/GYJV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "188ms" +======= + "Date": "Fri, 06 Jan 2023 17:36:05 GMT", + "MS-CV": "kG45Cu36vUmP4kZrYFUZ/w.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0BVy4YwAAAAAKGqPGfHo5QpoX2Y19dJUYTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "401ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "notStarted", + "resourceLocation": null, +<<<<<<< HEAD + "createdDateTime": "2023-07-15T04:52:57.7473758\u002B00:00", +======= + "createdDateTime": "2023-01-06T17:36:04.2157298\u002B00:00", +>>>>>>> main + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:59 GMT", + "MS-CV": "jXmrQWxazUyMHEW0d0D0qw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0KyayZAAAAABgZ3hrZasUQa3eYMToQZzwV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "162ms" +======= + "Date": "Fri, 06 Jan 2023 17:36:05 GMT", + "MS-CV": "pid6SKwT906iTNxndM9tPA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0Bly4YwAAAABw3uHdyS/JQYwzAhqD7soXTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "402ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-01-06T17:36:04.2157298\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/108.0.5351.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 06 Jan 2023 17:36:09 GMT", + "MS-CV": "M2emd9Slrk2PKePd9pZwAA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0CFy4YwAAAAAUIQfbjFcmQ7Uqykl6HrTrTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "406ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, +<<<<<<< HEAD + "createdDateTime": "2023-07-15T04:52:57.7473758\u002B00:00", +======= + "createdDateTime": "2023-01-06T17:36:04.2157298\u002B00:00", +>>>>>>> main + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:53:01 GMT", + "MS-CV": "T4bVeN4geUyqfm\u002BtQkrc7g.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0LSayZAAAAAAE/iY7vEj3T5F04CGvqmFQV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "144ms" +======= + "Date": "Fri, 06 Jan 2023 17:36:11 GMT", + "MS-CV": "innahT6AG0OUOEkt/TlQ7A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0C1y4YwAAAAAW2fnEKD5wTKYxlp7nqs6yTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "408ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, +<<<<<<< HEAD + "createdDateTime": "2023-07-15T04:52:57.7473758\u002B00:00", +======= + "createdDateTime": "2023-01-06T17:36:04.2157298\u002B00:00", +>>>>>>> main + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:53:03 GMT", + "MS-CV": "ZzA8cPJFhkeia8n/V9aThw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0LyayZAAAAAC2ow5v\u002Bz75RJbeT6IGhVC\u002BV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "147ms" +======= + "Date": "Fri, 06 Jan 2023 17:36:14 GMT", + "MS-CV": "Jk8tulMUA0ep//G2GwTAGw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0DVy4YwAAAAAFxK17uDOLTbkF9FJlSUC6TUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "406ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, +<<<<<<< HEAD + "createdDateTime": "2023-07-15T04:52:57.7473758\u002B00:00", +======= + "createdDateTime": "2023-01-06T17:36:04.2157298\u002B00:00", +>>>>>>> main + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:53:06 GMT", + "MS-CV": "1eoUc1mT40KLxzNKZdgIqQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0MiayZAAAAAAsPIpLfh2AS7cBtyl4hB2zV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "144ms" +======= + "Date": "Fri, 06 Jan 2023 17:36:16 GMT", + "MS-CV": "ATFlfNE5zE6D3DnfCAa2MQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0EFy4YwAAAACrvDGGYGVTQpx7Ji2G0YmCTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "403ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, +<<<<<<< HEAD + "createdDateTime": "2023-07-15T04:52:57.7473758\u002B00:00", +======= + "createdDateTime": "2023-01-06T17:36:04.2157298\u002B00:00", +>>>>>>> main + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { +<<<<<<< HEAD + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", +======= + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2022-12-01", +>>>>>>> main + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", +<<<<<<< HEAD + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/108.0.5351.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:08 GMT", + "MS-CV": "bATDEpeOLEifX6xukhQWQQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0NCayZAAAAABdV3PEDCuJQ6qofaKocs4zV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "152ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 06 Jan 2023 17:36:18 GMT", + "MS-CV": "z9EV498u6k\u002B9RguV5/cUxQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0Ely4YwAAAACR7EoeGUp3Qa\u002B1e7GMjuq\u002BTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "401ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "succeeded", + "resourceLocation": null, +<<<<<<< HEAD + "createdDateTime": "2023-07-15T04:52:57.7473758\u002B00:00", +======= + "createdDateTime": "2023-01-06T17:36:04.2157298\u002B00:00", +>>>>>>> main + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + } + ], + "Variables": {} +} \ No newline at end of file diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search/recording_can_search_for_1_available_phone_number_by_default.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search/recording_can_search_for_1_available_phone_number_by_default.json.orig new file mode 100644 index 000000000000..75bca5034ead --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search/recording_can_search_for_1_available_phone_number_by_default.json.orig @@ -0,0 +1,386 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "125", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "um69rwCQDfoJlf7RIyaR7E83TxRZJQn/i\u002BrWwWXvDMo=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:24 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:16 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "outbound", + "sms": "none" + }, + "quantity": 1 + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location,Operation-Location,operation-id,search-id", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Sat, 15 Jul 2023 04:52:24 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "1627MnfFMU\u002BqKQDQ\u002BBrB4w.0", +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "0", + "Date": "Wed, 22 Nov 2023 10:40:17 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "3VebVkqoTkqK06WDEH5tyw.0", +>>>>>>> main + "operation-id": "search_sanitized", + "Operation-Location": "/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "search-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", +<<<<<<< HEAD + "X-Azure-Ref": "0CCayZAAAAAB5Yaw/kHCRTJMsJZgQAcfgV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "826ms" +======= + "X-Azure-Ref": "0j9pdZQAAAADEGZLEV8XURJQkWBjHjMuYUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1548ms" +>>>>>>> main + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:25 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:18 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:24 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "LbSR6IaEHEmi6EgRpFotiQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0CSayZAAAAACQ9VibDJSVQZnACGtHNqjQV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "254ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "notStarted", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:52:24.9544974\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Sat, 15 Jul 2023 04:52:25 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:25 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "1ldJ2g1wUUGLQaLi274ssw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0CSayZAAAAABfdRLX3DiFT56Mhbg/HWQpV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "230ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:17 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "i/8RnUZIZ0aYT/NKRLINFQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0kdpdZQAAAABdjQ5rGEeFQqbu/LpuiyFKUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "461ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "search", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:52:24.9544974\u002B00:00", +======= + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:16.9679824\u002B00:00", +>>>>>>> main + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:28 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:19 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:27 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "wSajhI8d8E\u002BmQ4ZR9ao/Kw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0DCayZAAAAABMlfEITrNJQopDx9fy\u002B\u002BxrV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "240ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:18 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "oVkPH3masUynry7dfe1pbw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0kdpdZQAAAAAEc59kHmBgRbqxPyG\u002BMcRVUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "448ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "running", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:16.9679824\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:40:21 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:20 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "1da5PLou8Eefp64kTs9wnQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0lNpdZQAAAABZ7qfOnVILTrIinRcR1s59UFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "478ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "search", + "status": "succeeded", +<<<<<<< HEAD + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:52:24.9544974\u002B00:00", +======= + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:16.9679824\u002B00:00", +>>>>>>> main + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:28 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:22 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "311", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:27 GMT", + "MS-CV": "v1Y9HnkfHkO\u002BhqiWphM5LA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0DCayZAAAAACiSdF2eXJGSpayrXrjajWNV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "478ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "311", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:21 GMT", + "MS-CV": "MT0TKqEKj0mK1FkhxhHo5Q.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0lNpdZQAAAADyVUf8HcIwQri/4jhBdXT4UFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "797ms" +>>>>>>> main + }, + "ResponseBody": { + "searchId": "sanitized", + "phoneNumbers": [ + "\u002B14155550100" + ], + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "outbound", + "sms": "none" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + }, +<<<<<<< HEAD + "searchExpiresBy": "2023-07-15T05:08:26.9925171\u002B00:00", +======= + "searchExpiresBy": "2023-11-22T10:56:18.7046517\u002B00:00", +>>>>>>> main + "error": "NoError" + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search/recording_throws_on_invalid_search_request.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search/recording_throws_on_invalid_search_request.json.orig new file mode 100644 index 000000000000..4e3bd4a4874b --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search/recording_throws_on_invalid_search_request.json.orig @@ -0,0 +1,78 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "128", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "sM6mIVawQv4GOUQukUphOk5Hsd8Qa/rx37c067vfCgw=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:29 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:22 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "phoneNumberType": "tollFree", + "assignmentType": "person", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "quantity": 1 + }, + "StatusCode": 400, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Sat, 15 Jul 2023 04:52:28 GMT", + "MS-CV": "JkEgvWI\u002BDUSFbGzJE3ZZXQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0DSayZAAAAADxP\u002B2JdKQ6S5MwNThUo0egV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "500ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:40:22 GMT", + "MS-CV": "DbpTHPehXEKFUu74XoAU1Q.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ldpdZQAAAACkOkQF5mXWQJIW8TOKGbJcUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1117ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "InternalError", + "message": "The server encountered an internal error.", + "innererror": { + "code": "BadRequest", + "message": "We are unable to find phone plans to match your requested capabilities." + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search_aad/recording_can_search_for_1_available_phone_number_by_default.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search_aad/recording_can_search_for_1_available_phone_number_by_default.json.orig new file mode 100644 index 000000000000..40ba88fc0a41 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search_aad/recording_can_search_for_1_available_phone_number_by_default.json.orig @@ -0,0 +1,347 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "125", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "outbound", + "sms": "none" + }, + "quantity": 1 + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location,Operation-Location,operation-id,search-id", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Sat, 15 Jul 2023 04:52:18 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "sQwBMpD3kkmnqLTRwyh2Jw.0", +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "0", + "Date": "Wed, 22 Nov 2023 10:40:09 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "lL8D7Io7sUynhS9Cf\u002B8vyA.0", +>>>>>>> main + "operation-id": "search_sanitized", + "Operation-Location": "/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "search-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", +<<<<<<< HEAD + "X-Azure-Ref": "0AiayZAAAAACGXWYnHqNoR4cnQGTjtGLfV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1008ms" +======= + "X-Azure-Ref": "0iNpdZQAAAACAKSyvxrnBTY/56YJ8nuOsUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1790ms" +>>>>>>> main + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:19 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "PfOuv\u002BEOfU6/BrCWMo6dhA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0AyayZAAAAAD5a9AjXSqGQohmqNnH/KYPV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "255ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:10 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "V23psbiRcEmKcn9zJ5/6OA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0idpdZQAAAADh6/lDbkW\u002BSYf0JXndAr5pUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "468ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "search", + "status": "notStarted", +<<<<<<< HEAD + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:52:19.4849475\u002B00:00", +======= + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:09.5433113\u002B00:00", +>>>>>>> main + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:19 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "CIIE6jlAE0aEl4JAbW2cLQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0BCayZAAAAAAVC\u002Bp8o16sRp6xctqJTp\u002BsV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "238ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:10 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "QPi\u002BKTK2SUOJ766vGSy4mA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0itpdZQAAAAB\u002BsB0n3BayTYbs0hgKq5bEUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "467ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "search", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:52:19.4849475\u002B00:00", +======= + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:09.5433113\u002B00:00", +>>>>>>> main + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:21 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "wg59drlNVUWw1rJvE8OkQA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0BiayZAAAAABgltgWVqEsSLDDI1G\u002B8/5xV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "238ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:13 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "Ln4M1uEyF0aOSdZaM1p28A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0jNpdZQAAAAAN6MMNuiMKS5kTRmKGKTTqUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "467ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "search", + "status": "succeeded", +<<<<<<< HEAD + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:52:19.4849475\u002B00:00", +======= + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:09.5433113\u002B00:00", +>>>>>>> main + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "311", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:22 GMT", + "MS-CV": "UBLf1j1hJEucbYa61kKsXw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0BiayZAAAAABejhHXGyhzRq0ODkRFX9g9V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "518ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "311", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:14 GMT", + "MS-CV": "l6cZXoOP\u002BUi\u002B0VlRpz0Vwg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0jdpdZQAAAADO5W2wPPDGRofwx\u002B1JvVzoUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "774ms" +>>>>>>> main + }, + "ResponseBody": { + "searchId": "sanitized", + "phoneNumbers": [ + "\u002B14155550100" + ], + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "outbound", + "sms": "none" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + }, +<<<<<<< HEAD + "searchExpiresBy": "2023-07-15T05:08:21.2632624\u002B00:00", +======= + "searchExpiresBy": "2023-11-22T10:56:11.6055891\u002B00:00", +>>>>>>> main + "error": "NoError" + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search_aad/recording_throws_on_invalid_search_request.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search_aad/recording_throws_on_invalid_search_request.json.orig new file mode 100644 index 000000000000..c149b7b27479 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search_aad/recording_throws_on_invalid_search_request.json.orig @@ -0,0 +1,75 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "128", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "phoneNumberType": "tollFree", + "assignmentType": "person", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "quantity": 1 + }, + "StatusCode": 400, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Sat, 15 Jul 2023 04:52:23 GMT", + "MS-CV": "aUUyPWeVV0WyV\u002B\u002B7b/xfqg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ByayZAAAAADFd38ZQlT5SYm1snut2LZvV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "474ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:40:15 GMT", + "MS-CV": "JHgjqBG03UOOBL3L2yUIXQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0jtpdZQAAAADlgdORyhfmSKoV5qha0dFlUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1129ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "InternalError", + "message": "The server encountered an internal error.", + "innererror": { + "code": "BadRequest", + "message": "We are unable to find phone plans to match your requested capabilities." + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_can_update_a_phone_numbers_capabilities.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_can_update_a_phone_numbers_capabilities.json.orig new file mode 100644 index 000000000000..cf8964cfe53b --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_can_update_a_phone_numbers_capabilities.json.orig @@ -0,0 +1,431 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100/capabilities?api-version=2023-05-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "35", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "UC9kRixTqGBHL8/8LDOWaZFJCLceepyhWJ\u002B/vn6WEYQ=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:54:01 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:39 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "calling": "none", + "sms": "outbound" + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Operation-Location,Location,operation-id,capabilities-id", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "capabilities-id": "sanitized", + "Content-Length": "36", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:54:02 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "AfqyExLQ/0qXRxpuLMlBfQ.0", +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "capabilities-id": "sanitized", + "Content-Length": "36", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:41 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "uEUDeWxufU2qcFXWrOGa/A.0", +>>>>>>> main + "operation-id": "capabilities_sanitized", + "Operation-Location": "/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "Strict-Transport-Security": "max-age=2592000", +<<<<<<< HEAD + "X-Azure-Ref": "0aSayZAAAAAC3q\u002BvtMIY4R5NnNEs3KjswV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1836ms" +======= + "X-Azure-Ref": "0ptpdZQAAAABPRcYZXMdxR45pdO2uKMQPUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "3266ms" +>>>>>>> main + }, + "ResponseBody": { + "capabilitiesUpdateId": "sanitized" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:54:03 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:42 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:54:03 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "K1IEYQERV0CPrpciyzrhDg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ayayZAAAAACm5axcij5rToQtNXfPlfwuV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "155ms" + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "notStarted", + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:54:02.7812253\u002B00:00", +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:41 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "oRJwCIquIEiVjAZpB9qgUw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0qdpdZQAAAADXVn/jKjlqTL/SGGqZlgB4UFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "379ms" + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "running", + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:41.1696645\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:54:03 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:43 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:54:03 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "LwipP4uI5U\u002BeoQ6eT83BRg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ayayZAAAAACWZJZ1PBbuRomggfDRSWIdV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "150ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:42 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "RKSi2gO2TECEm1686w31sw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0qdpdZQAAAACq9/JBdEf2TqsOt3TSz4wlUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "405ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:54:02.7812253\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:41.1696645\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:54:05 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:45 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:54:05 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "kaPEEScGXEK0JFBRsG044w.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0bSayZAAAAADToD7v23RbQqVS7OeIC82gV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "159ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:44 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "Cx90v6y04EKmqql4Kc0TQQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0rNpdZQAAAABgLHD40um4Qq5xwvswuA\u002B0UFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "389ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:54:02.7812253\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:41.1696645\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:54:07 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:48 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:54:07 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "A/qk/BcimUKAkgRD6jX5xA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0byayZAAAAADYF4NIihG1Ta3fKae/DwZXV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "167ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:47 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "dqSiQsFWBkmnyr8ey7r4jw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0rtpdZQAAAADiKe0WpdrBSqkMs6JtA1p9UFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "385ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "succeeded", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:54:02.7812253\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:41.1696645\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:54:08 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:48 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:54:09 GMT", + "MS-CV": "\u002BDGwoEmFp0ioNSXlpSAwnw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0byayZAAAAAAzqLpy56fZQZ7yN7YJgPmcV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1220ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:48 GMT", + "MS-CV": "XpbWwmHkUkqaY5ey/PqDAQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0r9pdZQAAAACUTPL5abdLRqRoH7DKaqVyUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1662ms" +>>>>>>> main + }, + "ResponseBody": { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", +======= + "purchaseDate": "2023-11-10T09:57:45.4485137\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_invalid.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_invalid.json.orig new file mode 100644 index 000000000000..c71a426bb1a2 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_invalid.json.orig @@ -0,0 +1,73 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/invalid_phone_number/capabilities?api-version=2023-05-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "35", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "UC9kRixTqGBHL8/8LDOWaZFJCLceepyhWJ\u002B/vn6WEYQ=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:54:09 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:50 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "calling": "none", + "sms": "outbound" + }, + "StatusCode": 400, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Sat, 15 Jul 2023 04:54:09 GMT", + "MS-CV": "EDuCR8FYDUSOrdb6L5aM2A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0cSayZAAAAADPYVMuZh/zSJnG\u002BMeL/ZGYV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "120ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:40:49 GMT", + "MS-CV": "7ohFmotwrE\u002BjZL6fJx9ZZQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0sdpdZQAAAABwSTsKu2eNTZyRFa8ouxkNUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "362ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "InternalError", + "message": "The server encountered an internal error.", + "innererror": { + "code": "BadRequest", + "message": "Invalid telephone number \u0027invalid_phone_number\u0027" + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_unauthorized.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_unauthorized.json.orig new file mode 100644 index 000000000000..f75ac33acfa0 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_unauthorized.json.orig @@ -0,0 +1,70 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100/capabilities?api-version=2023-05-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "35", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "UC9kRixTqGBHL8/8LDOWaZFJCLceepyhWJ\u002B/vn6WEYQ=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:54:09 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:50 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "calling": "none", + "sms": "outbound" + }, + "StatusCode": 403, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Sat, 15 Jul 2023 04:54:09 GMT", + "MS-CV": "YrI3x35wgU2ImH8mByQTiA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0cSayZAAAAADlxaxf/Nk7TpyGd6yrnCxQV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "186ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:40:49 GMT", + "MS-CV": "4UVYUwT0yUOUO6fZ0W5YgQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0sdpdZQAAAABBb5eL7E\u002B3RrLY6BXL79HDUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "431ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "InsufficientPermissions", + "message": "Phone number not owned by this resource.", + "target": "phonenumber" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_can_update_a_phone_numbers_capabilities.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_can_update_a_phone_numbers_capabilities.json.orig new file mode 100644 index 000000000000..c73d77c7884d --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_can_update_a_phone_numbers_capabilities.json.orig @@ -0,0 +1,412 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100/capabilities?api-version=2023-05-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "35", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "calling": "none", + "sms": "outbound" + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Operation-Location,Location,operation-id,capabilities-id", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "capabilities-id": "sanitized", + "Content-Length": "36", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:54 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "SnzyLCX28UKLm9HACbZYpQ.0", +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "capabilities-id": "sanitized", + "Content-Length": "36", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:29 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "ze4TkTR4ckq5hR71lcRJUQ.0", +>>>>>>> main + "operation-id": "capabilities_sanitized", + "Operation-Location": "/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "Strict-Transport-Security": "max-age=2592000", +<<<<<<< HEAD + "X-Azure-Ref": "0YCayZAAAAAB1GELH7QoYQ41L6\u002B1e4msnV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1889ms" +======= + "X-Azure-Ref": "0mdpdZQAAAADoH6gOeT0hTIsoBjt2Eu7sUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "3293ms" +>>>>>>> main + }, + "ResponseBody": { + "capabilitiesUpdateId": "sanitized" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:54 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "W6BKrOSsrU\u002B5bhFmOFGt8A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0YiayZAAAAAAOTS95ZYeyTYLPK6JREYuWV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "147ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:29 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "w8RlTqJ/5kmcjNR6LGJwVw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ndpdZQAAAAD96ZdvKGJlSoJmmIIKpqxOUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "390ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:53:53.9265749\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:28.876115\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:54 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "t/9XL71ewUKhFb\u002BNkMGamw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0YiayZAAAAABAbBtdZKMAQoeJErZwPtZoV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "161ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:29 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "SkRdhwdhtEqfo3EvzTmdNg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ndpdZQAAAAAlQUG7hgPLTY7CTBoytY4cUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "378ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:53:53.9265749\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:28.876115\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:56 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "FTgD6se8SEu3w2I6pIKfWg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ZCayZAAAAACmkRBeYLI\u002BSZkeB/WZ8sGaV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "150ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:32 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "H8xqfIfVyEu0ZT\u002BRWOj4oQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0oNpdZQAAAABqT/qOiZDIToKtKxi\u002BXKUzUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "381ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:53:53.9265749\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:28.876115\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:58 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "4xyJItpClUiQPaTqdZNYNA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ZiayZAAAAABk2qqiysGSQKKkUwRziKQQV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "146ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:34 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "4TymIg4NfkCbsVDXO842HA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0otpdZQAAAAD5nrjxmhWkS446N/Hme72CUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "376ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "succeeded", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:53:53.9265749\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:28.876115\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:54:00 GMT", + "MS-CV": "LEpPYHALy06Q3KHbljFY4Q.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ZyayZAAAAACgUCyYINmjR4p0hvA9oy9FV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "970ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:36 GMT", + "MS-CV": "pf1ta7eKkUWylpJjUW7Gxg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0o9pdZQAAAAAeO1v0g6y6TaTYtwE47PV8UFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1739ms" +>>>>>>> main + }, + "ResponseBody": { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", +======= + "purchaseDate": "2023-11-10T09:57:45.4485137\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_invalid.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_invalid.json.orig new file mode 100644 index 000000000000..c201778f84c0 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_invalid.json.orig @@ -0,0 +1,70 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/invalid_phone_number/capabilities?api-version=2023-05-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "35", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "calling": "none", + "sms": "outbound" + }, + "StatusCode": 400, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Sat, 15 Jul 2023 04:54:00 GMT", + "MS-CV": "qdxVAwSTd0y\u002BfgpNdzykVA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0aCayZAAAAAAcdXLcHUC0SLdx8L1TonRBV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "135ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:40:37 GMT", + "MS-CV": "eWtypJ6s70KZLjwDJ264eA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0pdpdZQAAAAALbq3HWSJdTZhQrHqK/sJOUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "392ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "InternalError", + "message": "The server encountered an internal error.", + "innererror": { + "code": "BadRequest", + "message": "Invalid telephone number \u0027invalid_phone_number\u0027" + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_unauthorized.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_unauthorized.json.orig new file mode 100644 index 000000000000..af33bb421fd8 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_unauthorized.json.orig @@ -0,0 +1,67 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100/capabilities?api-version=2023-05-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "35", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "calling": "none", + "sms": "outbound" + }, + "StatusCode": 403, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Sat, 15 Jul 2023 04:54:00 GMT", + "MS-CV": "I7Ew6j1OpEeiip1J9JGlqw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0aCayZAAAAACWKyftmAsFQbhjeHiaE6TLV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "172ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:40:37 GMT", + "MS-CV": "oY8g4VCmaEuaZRofmZhdkA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0pdpdZQAAAAA3YqrpSkCrSIrZpOGjTxZdUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "459ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "InsufficientPermissions", + "message": "Phone number not owned by this resource.", + "target": "phonenumber" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__offerings_lists/recording_can_list_available_offerings.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__offerings_lists/recording_can_list_available_offerings.json.orig new file mode 100644 index 000000000000..fbcc26024b72 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__offerings_lists/recording_can_list_available_offerings.json.orig @@ -0,0 +1,117 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/offerings?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:51 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:25 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "861", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:51 GMT", + "MS-CV": "xSdcG0mUQEu1NTatw3EQNA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0XyayZAAAAAC0hYYKD14JTZqLHIxz/3YcV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "569ms" +======= + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "861", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:25 GMT", + "MS-CV": "tppDcFExEk2BD32SRg\u002Bvkg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0mNpdZQAAAADABUX1jJuRQYAZVH4Man6BUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1157ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberOfferings": [ + { + "phoneNumberType": "geographic", + "assignmentType": "person", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "phoneNumberType": "geographic", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__offerings_lists_aad/recording_can_list_available_offerings.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__offerings_lists_aad/recording_can_list_available_offerings.json.orig new file mode 100644 index 000000000000..e11d703e64ee --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__offerings_lists_aad/recording_can_list_available_offerings.json.orig @@ -0,0 +1,114 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/offerings?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "861", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:51 GMT", + "MS-CV": "U0G1eqKojku\u002BH0/a5VuPcw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0XiayZAAAAABAE/b4GzVaT4CYG7eGonxjV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "511ms" +======= + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "861", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:24 GMT", + "MS-CV": "gAbbSe0VOkqZv6O7tWi3qw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0l9pdZQAAAAAq9QYcUWxZSbQTc3wZ1aoxUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1136ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberOfferings": [ + { + "phoneNumberType": "geographic", + "assignmentType": "person", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "phoneNumberType": "geographic", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists/recording_can_list_all_geographic_area_codes.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists/recording_can_list_all_geographic_area_codes.json.orig new file mode 100644 index 000000000000..e1e5a18476d5 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists/recording_can_list_all_geographic_area_codes.json.orig @@ -0,0 +1,853 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:00:35 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:01:33 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10214", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:00:35 GMT", + "MS-CV": "A6hETOk7CkKyt7Ph\u002BOc0\u002BQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0dNawZAAAAAC\u002BqyR4AZAhS5jIrIl8FIhMV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "312ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:32 GMT", + "MS-CV": "q3xAW3KkxEOcym/dqmnFgA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0fNFdZQAAAAAnxLOUrYGASrgGqwIxGm5fUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "952ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Mobile", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Montgomery", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Fort Smith", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Jonesboro", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Little Rock", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Phoenix", + "administrativeDivision": { + "localizedName": "AZ", + "abbreviatedName": "AZ" + } + }, + { + "localizedName": "Burbank", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Concord", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Fresno", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Los Angeles", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Riverside", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Sacramento", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Salinas", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Diego", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Francisco", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Jose", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Clarita", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Rosa", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Stockton", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Truckee", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Washington DC", + "administrativeDivision": { + "localizedName": "CL", + "abbreviatedName": "CL" + } + }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Grand Junction", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Pueblo", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Bridgeport", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Hartford", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, + { +<<<<<<< HEAD + "localizedName": "Cape Coral", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { +======= +>>>>>>> main + "localizedName": "Daytona Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Fort Lauderdale", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Gainesville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Jacksonville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Lakeland", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Miami", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Orlando", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Sarasota", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "St. Petersburg", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tallahassee", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tampa", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "West Palm Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Atlanta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Augusta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Macon", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Savannah", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Honolulu", + "administrativeDivision": { + "localizedName": "HI", + "abbreviatedName": "HI" + } + }, + { + "localizedName": "Cedar Rapids", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Davenport", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Sioux City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Boise", + "administrativeDivision": { + "localizedName": "ID", + "abbreviatedName": "ID" + } + }, + { + "localizedName": "Alton", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Aurora", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Champaign", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Chicago", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Cicero", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rock Island", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rockford", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Waukegan", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Evansville", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Fort Wayne", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Gary", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Indianapolis", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "South Bend", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Topeka", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Wichita", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Ashland", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Lexington", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Louisville", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Owensboro", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Baton Rouge", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Lafayette", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "New Orleans", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Shreveport", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Boston", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Chicopee", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Baltimore", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Bethesda", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "ME", + "abbreviatedName": "ME" + } + }, + { + "localizedName": "Ann Arbor", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Detroit", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Flint", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grand Rapids", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grant", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Lansing", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Otsego", +<<<<<<< HEAD + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Pontiac", +======= +>>>>>>> main + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Saginaw", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Sault Ste Marie", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Troy", +<<<<<<< HEAD + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Alexandria", +======= +>>>>>>> main + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } +<<<<<<< HEAD +======= + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } +>>>>>>> main + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { +<<<<<<< HEAD + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=geographic\u0026skip=0\u0026maxPageSize=100\u0026locality=Anchorage\u0026administrativeDivision=AK\u0026api-version=2023-05-01-preview", +======= + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=geographic\u0026skip=0\u0026maxPageSize=100\u0026locality=Anchorage\u0026administrativeDivision=AK\u0026api-version=2022-12-01", +>>>>>>> main + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:00:35 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:01:34 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "50", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:00:38 GMT", + "MS-CV": "6jN/wnMAxka/1r3WQ\u002B\u002Bkbg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0dNawZAAAAAA6dFbjy6WHSrWtVAdwwH9uV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2362ms" +======= + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "50", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:35 GMT", + "MS-CV": "xsdi5BlmLkaVDS9Vd7KleA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0fdFdZQAAAADQZsxrxwpdRIuy4eI7\u002BRHXUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2897ms" +>>>>>>> main + }, + "ResponseBody": { + "areaCodes": [ + { + "areaCode": "907" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists/recording_can_list_all_toll_free_area_codes.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists/recording_can_list_all_toll_free_area_codes.json.orig new file mode 100644 index 000000000000..6d2537ba0d34 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists/recording_can_list_all_toll_free_area_codes.json.orig @@ -0,0 +1,71 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=tollFree\u0026skip=0\u0026maxPageSize=100\u0026assignmentType=application\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:00:38 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:01:37 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "182", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:00:48 GMT", + "MS-CV": "MiHLVtSO9U2fWEhzuThPpw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0dtawZAAAAAAHGDdYl2N0QrkYNFcIIjWXV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "9765ms" +======= + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:39 GMT", + "MS-CV": "uDvtOJmq80KactM6YsWlEQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0gNFdZQAAAACIb0KHGrlGS7DDhCirLOeCUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "3837ms" +>>>>>>> main + }, + "ResponseBody": { + "areaCodes": [ + { + "areaCode": "866" + }, + { + "areaCode": "855" + }, + { + "areaCode": "844" + }, + { + "areaCode": "833" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_geographic_area_codes.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_geographic_area_codes.json.orig new file mode 100644 index 000000000000..1e3dde84ceea --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_geographic_area_codes.json.orig @@ -0,0 +1,845 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10214", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:00:22 GMT", + "MS-CV": "PqTbbmb\u002BlkK8SqqTygspSw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ZtawZAAAAAB1Yya2MT9\u002BRqoNB80jsjBMV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "834ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:23 GMT", + "MS-CV": "5n9qZBS4dkSIu4rtjRxRZw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ctFdZQAAAACOE9MSsqpdSqy//IpR1IYFUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1538ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Mobile", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Montgomery", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Fort Smith", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Jonesboro", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Little Rock", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Phoenix", + "administrativeDivision": { + "localizedName": "AZ", + "abbreviatedName": "AZ" + } + }, + { + "localizedName": "Burbank", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Concord", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Fresno", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Los Angeles", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Riverside", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Sacramento", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Salinas", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Diego", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Francisco", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Jose", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Clarita", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Rosa", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Stockton", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Truckee", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Washington DC", + "administrativeDivision": { + "localizedName": "CL", + "abbreviatedName": "CL" + } + }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Grand Junction", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Pueblo", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Bridgeport", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Hartford", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, + { +<<<<<<< HEAD + "localizedName": "Cape Coral", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { +======= +>>>>>>> main + "localizedName": "Daytona Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Fort Lauderdale", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Gainesville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Jacksonville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Lakeland", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Miami", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Orlando", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Sarasota", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "St. Petersburg", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tallahassee", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tampa", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "West Palm Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Atlanta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Augusta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Macon", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Savannah", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Honolulu", + "administrativeDivision": { + "localizedName": "HI", + "abbreviatedName": "HI" + } + }, + { + "localizedName": "Cedar Rapids", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Davenport", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Sioux City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Boise", + "administrativeDivision": { + "localizedName": "ID", + "abbreviatedName": "ID" + } + }, + { + "localizedName": "Alton", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Aurora", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Champaign", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Chicago", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Cicero", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rock Island", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rockford", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Waukegan", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Evansville", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Fort Wayne", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Gary", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Indianapolis", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "South Bend", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Topeka", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Wichita", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Ashland", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Lexington", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Louisville", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Owensboro", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Baton Rouge", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Lafayette", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "New Orleans", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Shreveport", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Boston", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Chicopee", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Baltimore", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Bethesda", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "ME", + "abbreviatedName": "ME" + } + }, + { + "localizedName": "Ann Arbor", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Detroit", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Flint", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grand Rapids", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grant", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Lansing", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Otsego", +<<<<<<< HEAD + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Pontiac", +======= +>>>>>>> main + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Saginaw", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Sault Ste Marie", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Troy", +<<<<<<< HEAD + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Alexandria", +======= +>>>>>>> main + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } +<<<<<<< HEAD +======= + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } +>>>>>>> main + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { +<<<<<<< HEAD + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=geographic\u0026skip=0\u0026maxPageSize=100\u0026locality=Anchorage\u0026administrativeDivision=AK\u0026api-version=2023-05-01-preview", +======= + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=geographic\u0026skip=0\u0026maxPageSize=100\u0026locality=Anchorage\u0026administrativeDivision=AK\u0026api-version=2022-12-01", +>>>>>>> main + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "50", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:00:25 GMT", + "MS-CV": "wxqB2zXXsk6tFQlNxvV2BA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0Z9awZAAAAACsFb4H45QTQqWyL34bg9RYV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2456ms" +======= + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "50", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:27 GMT", + "MS-CV": "qlF3V4qbe0SxhWrwCCQ6mw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0dNFdZQAAAAC9AubGH\u002BBEQaepVnhR8X0VUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "3225ms" +>>>>>>> main + }, + "ResponseBody": { + "areaCodes": [ + { + "areaCode": "907" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_toll_free_area_codes.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_toll_free_area_codes.json.orig new file mode 100644 index 000000000000..d85573ce4c1a --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_toll_free_area_codes.json.orig @@ -0,0 +1,67 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=tollFree\u0026skip=0\u0026maxPageSize=100\u0026assignmentType=application\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "182", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:00:35 GMT", + "MS-CV": "hQw0LG5StUGxUPMnOZRLeg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0atawZAAAAAAnQOmh8sdzRpMSaIiu3wH8V1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "9622ms" +======= + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:31 GMT", + "MS-CV": "YbWj5iOtsEWJ4HdHIvCDsw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0eNFdZQAAAAB9VSkAdKTQSazm/Nl\u002B/dy5UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "3876ms" +>>>>>>> main + }, + "ResponseBody": { + "areaCodes": [ + { + "areaCode": "866" + }, + { + "areaCode": "855" + }, + { + "areaCode": "844" + }, + { + "areaCode": "833" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__countries_lists/recording_can_list_all_available_countries.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__countries_lists/recording_can_list_all_available_countries.json.orig new file mode 100644 index 000000000000..3b5f6ff15f0e --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__countries_lists/recording_can_list_all_available_countries.json.orig @@ -0,0 +1,246 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:00:51 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:01:44 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "1487", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:00:53 GMT", + "MS-CV": "2RR9JnskL0279H0/TwgMqw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0g9awZAAAAAASM\u002Bq5sXJNS5BFZwylzimGV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2558ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "1968", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:44 GMT", + "MS-CV": "FcQXb6Is6kKrFlYdr15XsQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0h9FdZQAAAACHyG6HxNUHQrf3fOyjEb8xUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2470ms" +>>>>>>> main + }, + "ResponseBody": { + "countries": [ + { + "localizedName": "Argentina", + "countryCode": "AR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Austria", + "countryCode": "AT" + }, + { + "localizedName": "Belgium", + "countryCode": "BE" + }, + { +>>>>>>> main + "localizedName": "Brazil", + "countryCode": "BR" + }, + { + "localizedName": "Canada", + "countryCode": "CA" + }, + { + "localizedName": "Chile", + "countryCode": "CL" + }, + { + "localizedName": "China", + "countryCode": "CN" + }, + { + "localizedName": "Colombia", + "countryCode": "CO" + }, + { + "localizedName": "Denmark", + "countryCode": "DK" + }, + { + "localizedName": "Finland", + "countryCode": "FI" + }, + { + "localizedName": "France", + "countryCode": "FR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Germany", + "countryCode": "DE" + }, + { +>>>>>>> main + "localizedName": "Hong Kong SAR", + "countryCode": "HK" + }, + { + "localizedName": "Indonesia", + "countryCode": "ID" + }, + { + "localizedName": "Ireland", + "countryCode": "IE" + }, + { + "localizedName": "Israel", + "countryCode": "IL" + }, + { + "localizedName": "Italy", + "countryCode": "IT" + }, + { + "localizedName": "Korea", + "countryCode": "KR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Luxembourg", + "countryCode": "LU" + }, + { +>>>>>>> main + "localizedName": "Malaysia", + "countryCode": "MY" + }, + { + "localizedName": "Mexico", + "countryCode": "MX" + }, + { + "localizedName": "Netherlands", + "countryCode": "NL" + }, + { + "localizedName": "New Zealand", + "countryCode": "NZ" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Norway", + "countryCode": "NO" + }, + { +>>>>>>> main + "localizedName": "Philippines", + "countryCode": "PH" + }, + { + "localizedName": "Poland", + "countryCode": "PL" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Portugal", + "countryCode": "PT" + }, + { +>>>>>>> main + "localizedName": "Puerto Rico", + "countryCode": "PR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Saudi Arabia", + "countryCode": "SA" + }, + { +>>>>>>> main + "localizedName": "Singapore", + "countryCode": "SG" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Slovakia", + "countryCode": "SK" + }, + { +>>>>>>> main + "localizedName": "South Africa", + "countryCode": "ZA" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Spain", + "countryCode": "ES" + }, + { +>>>>>>> main + "localizedName": "Sweden", + "countryCode": "SE" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Switzerland", + "countryCode": "CH" + }, + { +>>>>>>> main + "localizedName": "Taiwan", + "countryCode": "TW" + }, + { + "localizedName": "Thailand", + "countryCode": "TH" + }, + { + "localizedName": "United Arab Emirates", + "countryCode": "AE" + }, + { + "localizedName": "United Kingdom", + "countryCode": "GB" + }, + { + "localizedName": "United States", + "countryCode": "US" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__countries_lists_aad/recording_can_list_all_available_countries.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__countries_lists_aad/recording_can_list_all_available_countries.json.orig new file mode 100644 index 000000000000..2a5c1295f1dd --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__countries_lists_aad/recording_can_list_all_available_countries.json.orig @@ -0,0 +1,242 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "1487", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:00:50 GMT", + "MS-CV": "oWm32jeIhUCE/r0F9uf2\u002Bg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0gdawZAAAAADhjHyrwzquS7e8v4GxriOOV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2279ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "1968", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:42 GMT", + "MS-CV": "xD6QvY7NjUqaFgVNzsNntw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0hNFdZQAAAACJUkcTs6bFSIHLAroedccTUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2551ms" +>>>>>>> main + }, + "ResponseBody": { + "countries": [ + { + "localizedName": "Argentina", + "countryCode": "AR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Austria", + "countryCode": "AT" + }, + { + "localizedName": "Belgium", + "countryCode": "BE" + }, + { +>>>>>>> main + "localizedName": "Brazil", + "countryCode": "BR" + }, + { + "localizedName": "Canada", + "countryCode": "CA" + }, + { + "localizedName": "Chile", + "countryCode": "CL" + }, + { + "localizedName": "China", + "countryCode": "CN" + }, + { + "localizedName": "Colombia", + "countryCode": "CO" + }, + { + "localizedName": "Denmark", + "countryCode": "DK" + }, + { + "localizedName": "Finland", + "countryCode": "FI" + }, + { + "localizedName": "France", + "countryCode": "FR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Germany", + "countryCode": "DE" + }, + { +>>>>>>> main + "localizedName": "Hong Kong SAR", + "countryCode": "HK" + }, + { + "localizedName": "Indonesia", + "countryCode": "ID" + }, + { + "localizedName": "Ireland", + "countryCode": "IE" + }, + { + "localizedName": "Israel", + "countryCode": "IL" + }, + { + "localizedName": "Italy", + "countryCode": "IT" + }, + { + "localizedName": "Korea", + "countryCode": "KR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Luxembourg", + "countryCode": "LU" + }, + { +>>>>>>> main + "localizedName": "Malaysia", + "countryCode": "MY" + }, + { + "localizedName": "Mexico", + "countryCode": "MX" + }, + { + "localizedName": "Netherlands", + "countryCode": "NL" + }, + { + "localizedName": "New Zealand", + "countryCode": "NZ" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Norway", + "countryCode": "NO" + }, + { +>>>>>>> main + "localizedName": "Philippines", + "countryCode": "PH" + }, + { + "localizedName": "Poland", + "countryCode": "PL" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Portugal", + "countryCode": "PT" + }, + { +>>>>>>> main + "localizedName": "Puerto Rico", + "countryCode": "PR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Saudi Arabia", + "countryCode": "SA" + }, + { +>>>>>>> main + "localizedName": "Singapore", + "countryCode": "SG" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Slovakia", + "countryCode": "SK" + }, + { +>>>>>>> main + "localizedName": "South Africa", + "countryCode": "ZA" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Spain", + "countryCode": "ES" + }, + { +>>>>>>> main + "localizedName": "Sweden", + "countryCode": "SE" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Switzerland", + "countryCode": "CH" + }, + { +>>>>>>> main + "localizedName": "Taiwan", + "countryCode": "TW" + }, + { + "localizedName": "Thailand", + "countryCode": "TH" + }, + { + "localizedName": "United Arab Emirates", + "countryCode": "AE" + }, + { + "localizedName": "United Kingdom", + "countryCode": "GB" + }, + { + "localizedName": "United States", + "countryCode": "US" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number/recording_can_get_a_purchased_phone_number.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number/recording_can_get_a_purchased_phone_number.json.orig new file mode 100644 index 000000000000..2aee537c4456 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number/recording_can_get_a_purchased_phone_number.json.orig @@ -0,0 +1,73 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:00:55 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:01:49 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:00:56 GMT", + "MS-CV": "PimB/qEycUS3wi1q1yafYQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0iNawZAAAAACyJBI0s8UISJigbqFPDcrpV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1005ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:49 GMT", + "MS-CV": "lnlEtXP0SE\u002BlkHiYADI0RQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0jNFdZQAAAAAgGYRmVHdhSort5mCd958LUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1631ms" +>>>>>>> main + }, + "ResponseBody": { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", +======= + "purchaseDate": "2023-11-10T09:57:45.4485137\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number/recording_errors_if_phone_number_not_found.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number/recording_errors_if_phone_number_not_found.json.orig new file mode 100644 index 000000000000..86e8d5927219 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number/recording_errors_if_phone_number_not_found.json.orig @@ -0,0 +1,59 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:00:56 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:01:51 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Fri, 14 Jul 2023 05:00:56 GMT", + "MS-CV": "ngJrBKblKk612CNGYzEb0g.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0idawZAAAAAB\u002BN5nORf6yToKaDUKPdGDoV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "206ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:01:49 GMT", + "MS-CV": "09yJd8ysiU2JotDyYFg4Ow.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0jtFdZQAAAAB1Kn35mhDZRIpaVkZ/B9tlUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "435ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "NotFound", + "message": "Input phoneNumber \u002B14155550100 cannot be found.", + "target": "phonenumber" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number_aad/recording_can_get_a_purchased_phone_number.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number_aad/recording_can_get_a_purchased_phone_number.json.orig new file mode 100644 index 000000000000..91b61ab17f97 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number_aad/recording_can_get_a_purchased_phone_number.json.orig @@ -0,0 +1,69 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:00:54 GMT", + "MS-CV": "v5ybmPndKEe93VUGSMj2yg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0htawZAAAAADC9SuVmFM0RZ/20HTQT2nUV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1005ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:46 GMT", + "MS-CV": "59EL49TJlky8gvNnKdzNMQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0idFdZQAAAADZcqht2hTxQa0z\u002BDyarTEOUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1642ms" +>>>>>>> main + }, + "ResponseBody": { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", +======= + "purchaseDate": "2023-11-10T09:57:45.4485137\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number_aad/recording_errors_if_phone_number_not_found.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number_aad/recording_errors_if_phone_number_not_found.json.orig new file mode 100644 index 000000000000..ba012234059e --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number_aad/recording_errors_if_phone_number_not_found.json.orig @@ -0,0 +1,55 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Fri, 14 Jul 2023 05:00:55 GMT", + "MS-CV": "TJehLq1dB0mPSD1reMolew.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0h9awZAAAAABVXYVuosHaT71PYV8jRwX6V1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "187ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:01:47 GMT", + "MS-CV": "KT/TzxJWHkeEG04GcDh3Gg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0i9FdZQAAAAD2w31Y0MyzTJdI2/t0jKoHUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "439ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "NotFound", + "message": "Input phoneNumber \u002B14155550100 cannot be found.", + "target": "phonenumber" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lists/recording_can_list_all_purchased_phone_numbers.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lists/recording_can_list_all_purchased_phone_numbers.json.orig new file mode 100644 index 000000000000..f8236714db13 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lists/recording_can_list_all_purchased_phone_numbers.json.orig @@ -0,0 +1,1304 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers?skip=0\u0026api-version=2023-05-01-preview\u0026top=100", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:00:59 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:01:53 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "23605", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:00 GMT", + "MS-CV": "hmQEPBBaSkiGqoOjD63yxQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0i9awZAAAAADlpSB7GaAPQ5Yia1T2/sj7V1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1169ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "629", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:53 GMT", + "MS-CV": "uOjj7vyxGU2RC7BOhAajmQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0kNFdZQAAAADai7un2xhER4PMgfSSg8exUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1613ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumbers": [ + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2023-11-10T08:58:56.2621568\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", +<<<<<<< HEAD + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:36:13.5514009\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:09:18.7391177\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:11:43.8093725\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:09:44.856727\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:10:43.0470316\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:11:13.2871013\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:35:43.3598754\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:35:14.2925013\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:35:17.7642032\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:37:57.7589612\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:38:01.2490062\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:38:10.7033129\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T15:41:42.6103267\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:30:51.9182995\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:30:17.6614122\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:32:08.7055072\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:32:20.4489554\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", +======= +>>>>>>> main + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "outbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2021-06-23T23:31:24.7610118\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:31:27.7725472\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:28:06.2941982\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:27:58.4564095\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:35:55.6362141\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:35:38.2751041\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:12.122407\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:40:52.6849802\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:21.3246132\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:52.844006\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:26.0949019\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:16.7736485\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:07.5114194\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:24.9591048\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:31.4083206\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:24.2533723\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:16.2862265\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:37.7662022\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:46.6018872\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:50.4679082\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:44.6881974\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:55.8644165\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:55.9240487\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:40:20.5570756\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:22.1720088\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:41.0997634\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:44.9865457\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:11:13.6760492\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:13:14.7544127\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:51.5548845\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T17:11:40.2093547\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:22:13.6608168\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:23:13.802374\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:40:56.1826813\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:23:43.4526026\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:24:12.4592203\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:17.7235497\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:32:43.9547602\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:10.859962\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:30.851053\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-01-11T22:26:05.2198645\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-01-11T17:06:02.0097082\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:08:43.2976318\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:09:13.3731647\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:33:13.7739402\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:25:13.6206509\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:25:44.3664664\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:29:43.2087273\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:37:14.4369365\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:27:13.4604535\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:27:47.6058406\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:26:43.3088723\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:42:44.4416133\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:28:13.2155644\u002B00:00", +======= + "purchaseDate": "2023-11-10T09:57:45.4485137\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lists_aad/recording_can_list_all_purchased_phone_numbers.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lists_aad/recording_can_list_all_purchased_phone_numbers.json.orig new file mode 100644 index 000000000000..df75f13d6921 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lists_aad/recording_can_list_all_purchased_phone_numbers.json.orig @@ -0,0 +1,1300 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers?skip=0\u0026api-version=2023-05-01-preview\u0026top=100", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "23605", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:00:59 GMT", + "MS-CV": "DwwhbWA1p0mLCQXVGpJllw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0idawZAAAAADoLXVA/EmrSL9L2bh1sEudV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1815ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "629", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:51 GMT", + "MS-CV": "VQsggV4JVUmiIGapes6sXQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0jtFdZQAAAABkV9ywMTOyQJQ1P\u002BbzZqV2UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1621ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumbers": [ + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2023-11-10T08:58:56.2621568\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", +<<<<<<< HEAD + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:36:13.5514009\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:09:18.7391177\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:11:43.8093725\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:09:44.856727\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:10:43.0470316\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:11:13.2871013\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:35:43.3598754\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:35:14.2925013\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:35:17.7642032\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:37:57.7589612\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:38:01.2490062\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:38:10.7033129\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T15:41:42.6103267\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:30:51.9182995\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:30:17.6614122\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:32:08.7055072\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:32:20.4489554\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", +======= +>>>>>>> main + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "outbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2021-06-23T23:31:24.7610118\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:31:27.7725472\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:28:06.2941982\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:27:58.4564095\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:35:55.6362141\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:35:38.2751041\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:12.122407\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:40:52.6849802\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:21.3246132\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:52.844006\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:26.0949019\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:16.7736485\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:07.5114194\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:24.9591048\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:31.4083206\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:24.2533723\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:16.2862265\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:37.7662022\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:46.6018872\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:50.4679082\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:44.6881974\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:55.8644165\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:55.9240487\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:40:20.5570756\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:22.1720088\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:41.0997634\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:44.9865457\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:11:13.6760492\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:13:14.7544127\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:51.5548845\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T17:11:40.2093547\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:22:13.6608168\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:23:13.802374\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:40:56.1826813\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:23:43.4526026\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:24:12.4592203\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:17.7235497\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:32:43.9547602\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:10.859962\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:30.851053\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-01-11T22:26:05.2198645\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-01-11T17:06:02.0097082\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:08:43.2976318\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:09:13.3731647\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:33:13.7739402\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:25:13.6206509\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:25:44.3664664\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:29:43.2087273\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:37:14.4369365\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:27:13.4604535\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:27:47.6058406\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:26:43.3088723\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:42:44.4416133\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:28:13.2155644\u002B00:00", +======= + "purchaseDate": "2023-11-10T09:57:45.4485137\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists/recording_can_list_available_localities.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists/recording_can_list_available_localities.json.orig new file mode 100644 index 000000000000..51e3e8db9c10 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists/recording_can_list_available_localities.json.orig @@ -0,0 +1,1636 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:02 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:02:00 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10214", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:02 GMT", + "MS-CV": "3pNd6AsuqkmTfdeH4tJB7A.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0j9awZAAAAAAfKXBS7MflTrjRncRj97W6V1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "246ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:58 GMT", + "MS-CV": "1V5DVROumEWCKaHEhPr6gA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ltFdZQAAAACZDvVDFF//SLy\u002B4Nt79rsQUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "737ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Mobile", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Montgomery", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Fort Smith", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Jonesboro", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Little Rock", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Phoenix", + "administrativeDivision": { + "localizedName": "AZ", + "abbreviatedName": "AZ" + } + }, + { + "localizedName": "Burbank", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Concord", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Fresno", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Los Angeles", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Riverside", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Sacramento", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Salinas", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Diego", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Francisco", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Jose", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Clarita", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Rosa", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Stockton", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Truckee", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Washington DC", + "administrativeDivision": { + "localizedName": "CL", + "abbreviatedName": "CL" + } + }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Grand Junction", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Pueblo", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Bridgeport", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Hartford", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, + { + "localizedName": "Daytona Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Fort Lauderdale", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Gainesville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Jacksonville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Lakeland", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Miami", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Orlando", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Port St Lucie", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Sarasota", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "St. Petersburg", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { +<<<<<<< HEAD + "localizedName": "Tampa", +======= + "localizedName": "Tallahassee", +>>>>>>> main + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tampa", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "West Palm Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Atlanta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Augusta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Macon", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Savannah", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Honolulu", + "administrativeDivision": { + "localizedName": "HI", + "abbreviatedName": "HI" + } + }, + { + "localizedName": "Cedar Rapids", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Davenport", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Iowa City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Sioux City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Boise", + "administrativeDivision": { + "localizedName": "ID", + "abbreviatedName": "ID" + } + }, + { + "localizedName": "Alton", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Aurora", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Champaign", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Chicago", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Cicero", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rock Island", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rockford", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Waukegan", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Evansville", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Fort Wayne", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Gary", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Indianapolis", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "South Bend", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Topeka", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Wichita", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Ashland", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Lexington", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Louisville", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Owensboro", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Baton Rouge", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Lafayette", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "New Orleans", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Shreveport", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Boston", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Chicopee", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Baltimore", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Bethesda", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "ME", + "abbreviatedName": "ME" + } + }, + { + "localizedName": "Ann Arbor", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Detroit", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Flint", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grand Rapids", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grant", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Lansing", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Otsego", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +<<<<<<< HEAD + "localizedName": "Pontiac", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +======= +>>>>>>> main + "localizedName": "Saginaw", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Sault Ste Marie", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Troy", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2022-12-01" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:02:00 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10195", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:59 GMT", + "MS-CV": "pF8HCNeWvkuR/o74HuH0SA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0l9FdZQAAAAC9hACuJEaxS5c8Op01adSsUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "815ms" + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Alexandria", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:02 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "9909", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:03 GMT", + "MS-CV": "RPTT3dVysk\u002BBzmpyuZz9gw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0j9awZAAAAAD0Wm06k3ZfTKmIP0AGjK4KV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "243ms" + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Duluth", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Mankato", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Minneapolis", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Plymouth", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "St. Paul", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Columbia", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Marshall", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Springfield", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "St. Louis", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Biloxi", + "administrativeDivision": { + "localizedName": "MS", + "abbreviatedName": "MS" + } + }, + { + "localizedName": "Jackson", + "administrativeDivision": { + "localizedName": "MS", + "abbreviatedName": "MS" + } + }, + { + "localizedName": "Starkville", + "administrativeDivision": { + "localizedName": "MS", + "abbreviatedName": "MS" + } + }, + { + "localizedName": "Billings", + "administrativeDivision": { + "localizedName": "MT", + "abbreviatedName": "MT" + } + }, + { + "localizedName": "Asheville", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Charlotte", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Fayetteville", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Greensboro", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Raleigh", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Rocky Mount", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Fargo", + "administrativeDivision": { + "localizedName": "ND", + "abbreviatedName": "ND" + } + }, + { + "localizedName": "Kearney", + "administrativeDivision": { + "localizedName": "NE", + "abbreviatedName": "NE" + } + }, + { + "localizedName": "Omaha", + "administrativeDivision": { + "localizedName": "NE", + "abbreviatedName": "NE" + } + }, + { + "localizedName": "All locations", + "administrativeDivision": { + "localizedName": "NG", + "abbreviatedName": "NG" + } + }, + { + "localizedName": "Atlantic City", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Camden", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Edison", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Elizabeth", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Jersey City", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Newark", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Albuquerque", + "administrativeDivision": { + "localizedName": "NM", + "abbreviatedName": "NM" + } + }, + { + "localizedName": "Las Cruces", + "administrativeDivision": { + "localizedName": "NM", + "abbreviatedName": "NM" + } + }, + { + "localizedName": "Las Vegas", + "administrativeDivision": { + "localizedName": "NV", + "abbreviatedName": "NV" + } + }, + { + "localizedName": "Reno", + "administrativeDivision": { + "localizedName": "NV", + "abbreviatedName": "NV" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Brentwood", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Elmira", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Hempstead", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Kingston", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "New York City", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Niagara Falls", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Rochester", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Syracuse", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Yonkers", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Akron", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Cincinnati", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Cleveland", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Columbus", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Dayton", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Toledo", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Lawton", + "administrativeDivision": { + "localizedName": "OK", + "abbreviatedName": "OK" + } + }, + { + "localizedName": "Oklahoma City", + "administrativeDivision": { + "localizedName": "OK", + "abbreviatedName": "OK" + } + }, + { + "localizedName": "Tulsa", + "administrativeDivision": { + "localizedName": "OK", + "abbreviatedName": "OK" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "OR", + "abbreviatedName": "OR" + } + }, + { +<<<<<<< HEAD + "localizedName": "Lancaster", +======= + "localizedName": "Erie", +>>>>>>> main + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { +<<<<<<< HEAD +======= + "localizedName": "Lancaster", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { +>>>>>>> main + "localizedName": "Philadelphia", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Pittsburgh", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Weatherly", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Providence", + "administrativeDivision": { + "localizedName": "RI", + "abbreviatedName": "RI" + } + }, + { + "localizedName": "Charleston", + "administrativeDivision": { + "localizedName": "SC", + "abbreviatedName": "SC" + } + }, + { + "localizedName": "Columbia", + "administrativeDivision": { + "localizedName": "SC", + "abbreviatedName": "SC" + } + }, + { + "localizedName": "Greenville", + "administrativeDivision": { + "localizedName": "SC", + "abbreviatedName": "SC" + } + }, + { + "localizedName": "Sioux Falls", + "administrativeDivision": { + "localizedName": "SD", + "abbreviatedName": "SD" + } + }, + { + "localizedName": "Chattanooga", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Clarksville", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { +<<<<<<< HEAD +======= + "localizedName": "Jackson", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Knoxville", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { +>>>>>>> main + "localizedName": "Memphis", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Nashville", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Abilene", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Austin", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Bryan", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Corpus Christi", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Dallas", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Denton", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "El Paso", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Fort Worth", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Galveston", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Hamilton", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Houston", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Laredo", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Lubbock", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { +<<<<<<< HEAD +======= + "localizedName": "Odessa", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { +>>>>>>> main + "localizedName": "San Antonio", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Tyler", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Salt Lake City", + "administrativeDivision": { + "localizedName": "UT", + "abbreviatedName": "UT" + } + }, + { + "localizedName": "St. George", + "administrativeDivision": { + "localizedName": "UT", + "abbreviatedName": "UT" + } + }, + { + "localizedName": "Arlington", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Danville", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Lynchburg", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Richmond", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Roanoke", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Virginia Beach", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Brattleboro", + "administrativeDivision": { + "localizedName": "VT", + "abbreviatedName": "VT" + } + }, + { + "localizedName": "Montpelier", + "administrativeDivision": { + "localizedName": "VT", + "abbreviatedName": "VT" + } + }, + { + "localizedName": "Seattle", + "administrativeDivision": { + "localizedName": "WA", + "abbreviatedName": "WA" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=200\u0026maxPageSize=100\u0026api-version=2022-12-01" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=200\u0026maxPageSize=100\u0026api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:02:01 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "743", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:02:00 GMT", + "MS-CV": "cV6i6BlRX0mq0e5mn9aKzw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0mNFdZQAAAABMXhrJRF7jQ7NflEHLWVTXUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "764ms" + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Tacoma", + "administrativeDivision": { + "localizedName": "WA", + "abbreviatedName": "WA" + } + }, + { + "localizedName": "Eau Claire", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Kenosha", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Madison", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Milwaukee", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Charleston", + "administrativeDivision": { + "localizedName": "WV", + "abbreviatedName": "WV" + } + }, + { + "localizedName": "Laramie", + "administrativeDivision": { + "localizedName": "WY", + "abbreviatedName": "WY" + } + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists/recording_can_list_available_localities_with_administrative_division.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists/recording_can_list_available_localities_with_administrative_division.json.orig new file mode 100644 index 000000000000..da72ba017199 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists/recording_can_list_available_localities_with_administrative_division.json.orig @@ -0,0 +1,844 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:03 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:02:02 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10214", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:03 GMT", + "MS-CV": "FlRo5kV0u0uSGXtxWyXvqg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0j9awZAAAAAAdF2MPFziGS5cRolcv3CgPV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "254ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:02:01 GMT", + "MS-CV": "KK2yLt7B6k6rB7E9PHBkFg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0mdFdZQAAAADvsdy7T2\u002B0SqRs\u002BeAyfgfVUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "783ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Mobile", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Montgomery", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Fort Smith", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Jonesboro", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Little Rock", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Phoenix", + "administrativeDivision": { + "localizedName": "AZ", + "abbreviatedName": "AZ" + } + }, + { + "localizedName": "Burbank", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Concord", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Fresno", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Los Angeles", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Riverside", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Sacramento", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Salinas", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Diego", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Francisco", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Jose", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Clarita", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Rosa", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Stockton", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Truckee", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Washington DC", + "administrativeDivision": { + "localizedName": "CL", + "abbreviatedName": "CL" + } + }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Grand Junction", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Pueblo", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Bridgeport", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Hartford", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, + { + "localizedName": "Daytona Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Fort Lauderdale", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Gainesville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Jacksonville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Lakeland", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Miami", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Orlando", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Port St Lucie", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Sarasota", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "St. Petersburg", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { +<<<<<<< HEAD + "localizedName": "Tampa", +======= + "localizedName": "Tallahassee", +>>>>>>> main + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tampa", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "West Palm Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Atlanta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Augusta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Macon", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Savannah", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Honolulu", + "administrativeDivision": { + "localizedName": "HI", + "abbreviatedName": "HI" + } + }, + { + "localizedName": "Cedar Rapids", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Davenport", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Iowa City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Sioux City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Boise", + "administrativeDivision": { + "localizedName": "ID", + "abbreviatedName": "ID" + } + }, + { + "localizedName": "Alton", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Aurora", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Champaign", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Chicago", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Cicero", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rock Island", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rockford", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Waukegan", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Evansville", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Fort Wayne", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Gary", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Indianapolis", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "South Bend", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Topeka", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Wichita", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Ashland", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Lexington", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Louisville", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Owensboro", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Baton Rouge", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Lafayette", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "New Orleans", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Shreveport", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Boston", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Chicopee", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Baltimore", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Bethesda", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "ME", + "abbreviatedName": "ME" + } + }, + { + "localizedName": "Ann Arbor", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Detroit", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Flint", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grand Rapids", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grant", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Lansing", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Otsego", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +<<<<<<< HEAD + "localizedName": "Pontiac", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +======= +>>>>>>> main + "localizedName": "Saginaw", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Sault Ste Marie", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Troy", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } +<<<<<<< HEAD + }, + { + "localizedName": "Alexandria", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } +======= +>>>>>>> main + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026administrativeDivision=AK\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:03 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:02:03 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "144", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:03 GMT", + "MS-CV": "5uGeibtPQka6GiXoPe70Fg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0kNawZAAAAACfhrldxfrETrvorDza72QJV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "245ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "144", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:02:02 GMT", + "MS-CV": "5kEIvD62Ikes6BXbSzaYsQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0mtFdZQAAAACbk\u002B3N/n0KS6/rzmyYxFSfUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "745ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities.json.orig new file mode 100644 index 000000000000..9f6835954d8f --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities.json.orig @@ -0,0 +1,1626 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10214", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:01 GMT", + "MS-CV": "6ywRPUkaw0Oepl4cX6lCqg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0jdawZAAAAABtljH7v0B4TbbuczRbJ70SV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "304ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:54 GMT", + "MS-CV": "DkCv9VnZs0WnrRrBfF9i7g.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ktFdZQAAAAD11kZHgw3fRbroJXMaeUmTUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "749ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Mobile", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Montgomery", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Fort Smith", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Jonesboro", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Little Rock", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Phoenix", + "administrativeDivision": { + "localizedName": "AZ", + "abbreviatedName": "AZ" + } + }, + { + "localizedName": "Burbank", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Concord", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Fresno", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Los Angeles", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Riverside", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Sacramento", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Salinas", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Diego", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Francisco", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Jose", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Clarita", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Rosa", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Stockton", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Truckee", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Washington DC", + "administrativeDivision": { + "localizedName": "CL", + "abbreviatedName": "CL" + } + }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Grand Junction", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Pueblo", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Bridgeport", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Hartford", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, + { + "localizedName": "Daytona Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Fort Lauderdale", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Gainesville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Jacksonville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Lakeland", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Miami", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Orlando", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Port St Lucie", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Sarasota", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "St. Petersburg", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { +<<<<<<< HEAD + "localizedName": "Tampa", +======= + "localizedName": "Tallahassee", +>>>>>>> main + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tampa", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "West Palm Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Atlanta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Augusta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Macon", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Savannah", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Honolulu", + "administrativeDivision": { + "localizedName": "HI", + "abbreviatedName": "HI" + } + }, + { + "localizedName": "Cedar Rapids", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Davenport", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Iowa City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Sioux City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Boise", + "administrativeDivision": { + "localizedName": "ID", + "abbreviatedName": "ID" + } + }, + { + "localizedName": "Alton", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Aurora", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Champaign", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Chicago", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Cicero", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rock Island", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rockford", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Waukegan", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Evansville", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Fort Wayne", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Gary", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Indianapolis", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "South Bend", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Topeka", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Wichita", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Ashland", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Lexington", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Louisville", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Owensboro", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Baton Rouge", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Lafayette", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "New Orleans", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Shreveport", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Boston", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Chicopee", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Baltimore", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Bethesda", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "ME", + "abbreviatedName": "ME" + } + }, + { + "localizedName": "Ann Arbor", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Detroit", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Flint", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grand Rapids", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grant", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Lansing", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Otsego", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +<<<<<<< HEAD + "localizedName": "Pontiac", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +======= +>>>>>>> main + "localizedName": "Saginaw", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Sault Ste Marie", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Troy", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2022-12-01" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10195", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:55 GMT", + "MS-CV": "Zgx0Qbkh70yo4mEjzxQqMw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0k9FdZQAAAAB9/DYWd6fiTaBJfBU3i/TqUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "762ms" + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Alexandria", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "9909", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:01 GMT", + "MS-CV": "qoxVxdgn3UaxKknlETeZEA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0jdawZAAAAADKxZPmTFcKQIbHX/AIQSRWV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "257ms" + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Duluth", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Mankato", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Minneapolis", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Plymouth", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "St. Paul", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Columbia", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Marshall", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Springfield", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "St. Louis", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Biloxi", + "administrativeDivision": { + "localizedName": "MS", + "abbreviatedName": "MS" + } + }, + { + "localizedName": "Jackson", + "administrativeDivision": { + "localizedName": "MS", + "abbreviatedName": "MS" + } + }, + { + "localizedName": "Starkville", + "administrativeDivision": { + "localizedName": "MS", + "abbreviatedName": "MS" + } + }, + { + "localizedName": "Billings", + "administrativeDivision": { + "localizedName": "MT", + "abbreviatedName": "MT" + } + }, + { + "localizedName": "Asheville", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Charlotte", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Fayetteville", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Greensboro", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Raleigh", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Rocky Mount", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Fargo", + "administrativeDivision": { + "localizedName": "ND", + "abbreviatedName": "ND" + } + }, + { + "localizedName": "Kearney", + "administrativeDivision": { + "localizedName": "NE", + "abbreviatedName": "NE" + } + }, + { + "localizedName": "Omaha", + "administrativeDivision": { + "localizedName": "NE", + "abbreviatedName": "NE" + } + }, + { + "localizedName": "All locations", + "administrativeDivision": { + "localizedName": "NG", + "abbreviatedName": "NG" + } + }, + { + "localizedName": "Atlantic City", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Camden", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Edison", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Elizabeth", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Jersey City", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Newark", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Albuquerque", + "administrativeDivision": { + "localizedName": "NM", + "abbreviatedName": "NM" + } + }, + { + "localizedName": "Las Cruces", + "administrativeDivision": { + "localizedName": "NM", + "abbreviatedName": "NM" + } + }, + { + "localizedName": "Las Vegas", + "administrativeDivision": { + "localizedName": "NV", + "abbreviatedName": "NV" + } + }, + { + "localizedName": "Reno", + "administrativeDivision": { + "localizedName": "NV", + "abbreviatedName": "NV" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Brentwood", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Elmira", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Hempstead", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Kingston", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "New York City", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Niagara Falls", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Rochester", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Syracuse", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Yonkers", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Akron", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Cincinnati", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Cleveland", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Columbus", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Dayton", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Toledo", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Lawton", + "administrativeDivision": { + "localizedName": "OK", + "abbreviatedName": "OK" + } + }, + { + "localizedName": "Oklahoma City", + "administrativeDivision": { + "localizedName": "OK", + "abbreviatedName": "OK" + } + }, + { + "localizedName": "Tulsa", + "administrativeDivision": { + "localizedName": "OK", + "abbreviatedName": "OK" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "OR", + "abbreviatedName": "OR" + } + }, + { +<<<<<<< HEAD + "localizedName": "Lancaster", +======= + "localizedName": "Erie", +>>>>>>> main + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { +<<<<<<< HEAD +======= + "localizedName": "Lancaster", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { +>>>>>>> main + "localizedName": "Philadelphia", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Pittsburgh", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Weatherly", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Providence", + "administrativeDivision": { + "localizedName": "RI", + "abbreviatedName": "RI" + } + }, + { + "localizedName": "Charleston", + "administrativeDivision": { + "localizedName": "SC", + "abbreviatedName": "SC" + } + }, + { + "localizedName": "Columbia", + "administrativeDivision": { + "localizedName": "SC", + "abbreviatedName": "SC" + } + }, + { + "localizedName": "Greenville", + "administrativeDivision": { + "localizedName": "SC", + "abbreviatedName": "SC" + } + }, + { + "localizedName": "Sioux Falls", + "administrativeDivision": { + "localizedName": "SD", + "abbreviatedName": "SD" + } + }, + { + "localizedName": "Chattanooga", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Clarksville", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { +<<<<<<< HEAD +======= + "localizedName": "Jackson", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Knoxville", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { +>>>>>>> main + "localizedName": "Memphis", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Nashville", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Abilene", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Austin", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Bryan", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Corpus Christi", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Dallas", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Denton", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "El Paso", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Fort Worth", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Galveston", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Hamilton", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Houston", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Laredo", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Lubbock", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { +<<<<<<< HEAD +======= + "localizedName": "Odessa", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { +>>>>>>> main + "localizedName": "San Antonio", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Tyler", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Salt Lake City", + "administrativeDivision": { + "localizedName": "UT", + "abbreviatedName": "UT" + } + }, + { + "localizedName": "St. George", + "administrativeDivision": { + "localizedName": "UT", + "abbreviatedName": "UT" + } + }, + { + "localizedName": "Arlington", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Danville", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Lynchburg", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Richmond", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Roanoke", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Virginia Beach", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Brattleboro", + "administrativeDivision": { + "localizedName": "VT", + "abbreviatedName": "VT" + } + }, + { + "localizedName": "Montpelier", + "administrativeDivision": { + "localizedName": "VT", + "abbreviatedName": "VT" + } + }, + { + "localizedName": "Seattle", + "administrativeDivision": { + "localizedName": "WA", + "abbreviatedName": "WA" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=200\u0026maxPageSize=100\u0026api-version=2022-12-01" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=200\u0026maxPageSize=100\u0026api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "743", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:56 GMT", + "MS-CV": "l0w\u002BVyLJ70uEC6Ugp1GlxA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0lNFdZQAAAAAiBXR8KZhIS4EEyHafPxWLUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "725ms" + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Tacoma", + "administrativeDivision": { + "localizedName": "WA", + "abbreviatedName": "WA" + } + }, + { + "localizedName": "Eau Claire", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Kenosha", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Madison", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Milwaukee", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Charleston", + "administrativeDivision": { + "localizedName": "WV", + "abbreviatedName": "WV" + } + }, + { + "localizedName": "Laramie", + "administrativeDivision": { + "localizedName": "WY", + "abbreviatedName": "WY" + } + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities_with_administrative_division.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities_with_administrative_division.json.orig new file mode 100644 index 000000000000..abe899aba3f3 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities_with_administrative_division.json.orig @@ -0,0 +1,836 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10214", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:02 GMT", + "MS-CV": "y61p7D4PHkuHiEpAAXaZ9g.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0jtawZAAAAAAD1IUOh9VDQazqhNS7UWBSV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "267ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:57 GMT", + "MS-CV": "cLH6sYsUmEC35tAXl4F6Sg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ldFdZQAAAADAOxQAJWllQp0H3x5T2rSQUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "748ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Mobile", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Montgomery", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Fort Smith", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Jonesboro", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Little Rock", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Phoenix", + "administrativeDivision": { + "localizedName": "AZ", + "abbreviatedName": "AZ" + } + }, + { + "localizedName": "Burbank", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Concord", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Fresno", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Los Angeles", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Riverside", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Sacramento", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Salinas", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Diego", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Francisco", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Jose", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Clarita", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Rosa", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Stockton", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Truckee", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Washington DC", + "administrativeDivision": { + "localizedName": "CL", + "abbreviatedName": "CL" + } + }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Grand Junction", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Pueblo", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Bridgeport", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Hartford", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, + { + "localizedName": "Daytona Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Fort Lauderdale", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Gainesville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Jacksonville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Lakeland", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Miami", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Orlando", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Port St Lucie", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Sarasota", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "St. Petersburg", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { +<<<<<<< HEAD + "localizedName": "Tampa", +======= + "localizedName": "Tallahassee", +>>>>>>> main + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tampa", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "West Palm Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Atlanta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Augusta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Macon", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Savannah", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Honolulu", + "administrativeDivision": { + "localizedName": "HI", + "abbreviatedName": "HI" + } + }, + { + "localizedName": "Cedar Rapids", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Davenport", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Iowa City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Sioux City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Boise", + "administrativeDivision": { + "localizedName": "ID", + "abbreviatedName": "ID" + } + }, + { + "localizedName": "Alton", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Aurora", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Champaign", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Chicago", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Cicero", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rock Island", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rockford", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Waukegan", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Evansville", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Fort Wayne", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Gary", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Indianapolis", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "South Bend", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Topeka", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Wichita", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Ashland", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Lexington", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Louisville", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Owensboro", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Baton Rouge", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Lafayette", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "New Orleans", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Shreveport", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Boston", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Chicopee", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Baltimore", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Bethesda", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "ME", + "abbreviatedName": "ME" + } + }, + { + "localizedName": "Ann Arbor", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Detroit", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Flint", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grand Rapids", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grant", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Lansing", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Otsego", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +<<<<<<< HEAD + "localizedName": "Pontiac", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +======= +>>>>>>> main + "localizedName": "Saginaw", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Sault Ste Marie", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Troy", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } +<<<<<<< HEAD + }, + { + "localizedName": "Alexandria", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } +======= +>>>>>>> main + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026administrativeDivision=AK\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "144", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:02 GMT", + "MS-CV": "fXsW/OsNt0C7m7ngZlpmvA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0jtawZAAAAABVdT13bMhuQblb2fPVnn94V1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "236ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "144", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:58 GMT", + "MS-CV": "0XcWPgRDSEGTpkcKagiDsw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ltFdZQAAAACOhqpir45eTK9mDAPySYTWUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "755ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__look_up_phone_number/recording_can_look_up_a_phone_number.json b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__look_up_phone_number/recording_can_look_up_a_phone_number.json new file mode 100644 index 000000000000..cfd3959a29ba --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__look_up_phone_number/recording_can_look_up_a_phone_number.json @@ -0,0 +1,54 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/operatorInformation/:search?api-version=2024-03-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.14.1 Node/18.18.1 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "OmiHT1VilzGeodwSly/sLlTvvNvKSeL1Mf0fzGeyvTs=", + "x-ms-date": "Tue, 27 Feb 2024 18:50:07 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": { + "phoneNumbers": [ + "\u002B14155550100" + ], + "options": { + "includeAdditionalOperatorDetails": false + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview, 2024-03-01-preview, 2024-08-31-preview", + "Content-Length": "180", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 27 Feb 2024 18:50:06 GMT", + "MS-CV": "\u002BGjePxjII06KJmlfqh2IiA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "03i7eZQAAAABIQXNI5Nf1Rb59nqOdG895V1NURURHRTAxMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "52ms" + }, + "ResponseBody": { + "values": [ + { + "phoneNumber": "\u002B14155550100", + "nationalFormat": "(833) 201-6898", + "internationalFormat": "\u002B1 833-201-6898", + "isoCountryCode": null, + "numberType": null, + "operatorDetails": null + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__look_up_phone_number/recording_errors_if_multiple_phone_numbers_are_requested.json b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__look_up_phone_number/recording_errors_if_multiple_phone_numbers_are_requested.json new file mode 100644 index 000000000000..e1f1ac0e1b85 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__look_up_phone_number/recording_errors_if_multiple_phone_numbers_are_requested.json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/operatorInformation/:search?api-version=2024-03-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "101", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.14.1 Node/18.18.1 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "C0wdqHni5iu3jCpgQMmXW\u002B/F4BI/blLXomiVg6pcPkg=", + "x-ms-date": "Tue, 27 Feb 2024 18:50:07 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": { + "phoneNumbers": [ + "\u002B14155550100", + "\u002B14155550100" + ], + "options": { + "includeAdditionalOperatorDetails": false + } + }, + "StatusCode": 400, + "ResponseHeaders": { + "api-supported-versions": "2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview, 2024-03-01-preview, 2024-08-31-preview", + "Content-Type": "application/json", + "Date": "Tue, 27 Feb 2024 18:50:06 GMT", + "MS-CV": "/m9pNdFS00OtiNop51x7GA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "03i7eZQAAAAD1kafzSyfcRJRZMw5Wg\u002BgmV1NURURHRTAxMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "11ms" + }, + "ResponseBody": { + "error": { + "code": "BadRequest", + "message": "Can only accept one phoneNumber" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__look_up_phone_number/recording_respects_includeadditionaloperatordetails_option.json b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__look_up_phone_number/recording_respects_includeadditionaloperatordetails_option.json new file mode 100644 index 000000000000..56a3552e14db --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__look_up_phone_number/recording_respects_includeadditionaloperatordetails_option.json @@ -0,0 +1,107 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/operatorInformation/:search?api-version=2024-03-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.14.1 Node/18.18.1 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "OmiHT1VilzGeodwSly/sLlTvvNvKSeL1Mf0fzGeyvTs=", + "x-ms-date": "Tue, 27 Feb 2024 18:50:07 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": { + "phoneNumbers": [ + "\u002B14155550100" + ], + "options": { + "includeAdditionalOperatorDetails": false + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview, 2024-03-01-preview, 2024-08-31-preview", + "Content-Length": "180", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 27 Feb 2024 18:50:06 GMT", + "MS-CV": "6h8QfCPn6kWhoGTAi76w8A.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "03i7eZQAAAACFYE6GkVJNT6Kih7fyayZ8V1NURURHRTAxMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "33ms" + }, + "ResponseBody": { + "values": [ + { + "phoneNumber": "\u002B14155550100", + "nationalFormat": "(833) 201-6898", + "internationalFormat": "\u002B1 833-201-6898", + "isoCountryCode": null, + "numberType": null, + "operatorDetails": null + } + ] + } + }, + { + "RequestUri": "https://endpoint/operatorInformation/:search?api-version=2024-03-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "85", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.14.1 Node/18.18.1 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "qkBNiaAS8tfKX/Wf8JKOsmJrOnPktJNJDx1K4XvtFFc=", + "x-ms-date": "Tue, 27 Feb 2024 18:50:07 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": { + "phoneNumbers": [ + "\u002B14155550100" + ], + "options": { + "includeAdditionalOperatorDetails": true + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview, 2024-03-01-preview, 2024-08-31-preview", + "Content-Length": "260", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 27 Feb 2024 18:50:07 GMT", + "MS-CV": "3lKZSaGWKECFnKx89DRqiA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "03i7eZQAAAADv/aMIm1pOTYL4sR0R5dZTV1NURURHRTAxMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1230ms" + }, + "ResponseBody": { + "values": [ + { + "phoneNumber": "\u002B14155550100", + "nationalFormat": "(833) 201-6898", + "internationalFormat": "\u002B1 833-201-6898", + "isoCountryCode": "US", + "numberType": "other", + "operatorDetails": { + "name": "Multiple OCN Listing", + "mobileNetworkCode": null, + "mobileCountryCode": null + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__purchase_and_release/recording_can_purchase_and_release_a_phone_number.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__purchase_and_release/recording_can_purchase_and_release_a_phone_number.json.orig new file mode 100644 index 000000000000..70f843ac7c6a --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__purchase_and_release/recording_can_purchase_and_release_a_phone_number.json.orig @@ -0,0 +1,995 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "4/hFIxcYwXqhguSdYcV2TsQR1Tf8cOFyLfVXdBF8OBU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:20 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:31:36 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "quantity": 1 + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location,Operation-Location,operation-id,search-id", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Fri, 14 Jul 2023 04:48:21 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "XiFgsAmKOEiQeAUk2oj55Q.0", + "operation-id": "search_sanitized", + "Operation-Location": "/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "search-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0lNOwZAAAAABaA6Sy1LpnQ6pkRyw2qSLZV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "879ms" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:21 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:31:38 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:21 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "EHzgZWSmAkOnOq\u002BUpTcOcw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ldOwZAAAAAB0QfbHD1EfQo1nrUVGPTBVV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "415ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "notStarted", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:21 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:31:39 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:22 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "axvOr4CQXkGB1NipvXX2Kw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ltOwZAAAAAA9oKm31PXER7cUApMKOOVtV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "447ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "running", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:24 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:31:41 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:24 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "5z3gG8lbMkKtvIYaPNm82A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0mNOwZAAAAAB/1aP8FHBxSI9vWlvFvEpZV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "248ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "succeeded", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:24 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:31:42 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "319", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:25 GMT", + "MS-CV": "QcLM9nakUEqxHzHZYw7CFQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0mdOwZAAAAADfJw88zMIdRZsO19P7DVlaV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "497ms" + }, + "ResponseBody": { + "searchId": "sanitized", + "phoneNumbers": [ + "\u002B14155550100" + ], + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + }, + "searchExpiresBy": "2023-07-14T05:04:23.3571520\u002B00:00", + "error": "NoError" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/:purchase?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "24", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-content-sha256": "alm2TGuHGpoEPUMvMvglT18kxJ9KTvpv2KQnS1ztbZM=", + "x-ms-date": "Fri, 14 Jul 2023 04:48:25 GMT" +======= + "x-ms-content-sha256": "gnItjevdcLdmg9K05bRhay8e\u002BdlgBgVLAyMsTNJ/9L4=", + "x-ms-date": "Fri, 06 Jan 2023 17:31:43 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "searchId": "sanitized" + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Operation-Location,operation-id,purchase-id", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Fri, 14 Jul 2023 04:48:26 GMT", + "MS-CV": "R/wWlb61kUifaD9kXzOCxw.0", + "operation-id": "purchase_sanitized", + "Operation-Location": "/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "purchase-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0mdOwZAAAAADtgtAU5ja6Rag3en7nvOl9V1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1039ms" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:26 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:31:45 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:26 GMT", + "MS-CV": "ctX\u002BMe9EO0uJdseDlkUesw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0mtOwZAAAAAATX6yrTHc6R70h0gJNoGgVV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "254ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:26 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:31:46 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:26 GMT", + "MS-CV": "mfrwIluJ60qQqIRQjUo5XA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0m9OwZAAAAADaDHGwz0wEQqUJStqa/C6UV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "284ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:28 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:31:48 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:29 GMT", + "MS-CV": "zTh9z8fjw0S\u002BOegXbdJVvQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ndOwZAAAAACYjWJqbhfIR4s4IEXxrcOtV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", +<<<<<<< HEAD + "X-Processing-Time": "251ms" +======= + "X-Processing-Time": "448ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-01-06T17:31:35.8833059\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 06 Jan 2023 17:31:51 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 06 Jan 2023 17:31:49 GMT", + "MS-CV": "3qsugqwGuU2LuHNTsYfgMA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0BVu4YwAAAABrOU4EdNyTS59tvrt7UprRTUVYMzBFREdFMDQyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "462ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:31 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:31:53 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:31 GMT", + "MS-CV": "gtxsDN7tcEe7d/dIIBY7eA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0n9OwZAAAAABzSSca\u002BHwlTK8RVqb\u002BtO0FV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "261ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:33 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:31:56 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:33 GMT", + "MS-CV": "QZvsnuJPH0eW2J6K4OyXJQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0odOwZAAAAACtcvTRnelHTq2JG/Y7uW2YV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "255ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:35 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:31:58 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:36 GMT", + "MS-CV": "4cFRRsC7hk2FeDWctixn0g.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0pNOwZAAAAABfUJjRmk7fQbO03z4m\u002BGbBV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "248ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:38 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:32:01 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:38 GMT", + "MS-CV": "2hGQib3Q7U6mzK1RtITrTA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ptOwZAAAAAC2zoQ04icpSIGC/wr9ZQmIV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "261ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:40 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:32:03 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:40 GMT", + "MS-CV": "wU3cVlqqqEKnlhUiA\u002BTuJQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0qNOwZAAAAACDXhVB9VI9QbRP2MrbmGisV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "270ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 04:48:42 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:43 GMT", + "MS-CV": "E4WwF\u002BV2r0SNVbPG1r\u002BVcA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0q9OwZAAAAAAHhnqKoE/ZTLKKQro465XjV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "283ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 04:48:45 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:45 GMT", + "MS-CV": "CMgwDlZDBEiXbpUdcr9WfA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0rdOwZAAAAAAvxnLJy5TESq2/EThAVM//V1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "268ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "succeeded", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:45 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:32:04 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "310", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:46 GMT", + "MS-CV": "8DvL53/rEki04ABzKZH24A.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0rdOwZAAAAAB7faO3RJ1MQJhhLubeoQp1V1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1565ms" + }, + "ResponseBody": { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-07-14T04:48:39.9083553\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:46 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:32:06 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Operation-Location,operation-id,release-id", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Fri, 14 Jul 2023 04:48:49 GMT", + "MS-CV": "ndpVLbXD50yQOh\u002Bg0d5eFg.0", + "operation-id": "release_sanitized", + "Operation-Location": "/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "release-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0r9OwZAAAAACi7j5PPjJiTbql0O\u002BysyKNV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2453ms" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:49 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:32:08 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:49 GMT", + "MS-CV": "wJW0vI3RzkSRQWnRHWbdMA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0sdOwZAAAAAD30RnyIR7HQ4GiEXbifKWoV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "173ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:48.7161379\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:49 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:32:09 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:49 GMT", + "MS-CV": "T2\u002BRGe/bskGG65A7P8gBKQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0stOwZAAAAABVfS\u002BA5haNTJQwzfg94wquV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "186ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:48.7161379\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:51 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:32:11 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:52 GMT", + "MS-CV": "PCTDIBY0c06BNkKS3NmH9A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0tNOwZAAAAABBnMF8ePmuRbuLcnu1\u002BjBrV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "185ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:48.7161379\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:54 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:32:14 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:54 GMT", + "MS-CV": "HkHSa55F50yY8/1w9lPnJg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ttOwZAAAAAC/IXJp\u002BLV6R56AMzMYZRWyV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "165ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:48.7161379\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 04:48:56 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:56 GMT", + "MS-CV": "i97V3MVl6kCNmqHI0gkn1g.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0uNOwZAAAAACu1FgZ0k1BQqfckeMhu8yDV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "161ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "succeeded", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:48.7161379\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + } + ], + "Variables": {} +} \ No newline at end of file diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__purchase_and_release_aad/recording_can_purchase_and_release_a_phone_number.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__purchase_and_release_aad/recording_can_purchase_and_release_a_phone_number.json.orig new file mode 100644 index 000000000000..3ba29f5dc1e8 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__purchase_and_release_aad/recording_can_purchase_and_release_a_phone_number.json.orig @@ -0,0 +1,960 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "quantity": 1 + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location,Operation-Location,operation-id,search-id", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Fri, 14 Jul 2023 04:47:43 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "DEhCSEXMqkuofl7Iig/URQ.0", + "operation-id": "search_sanitized", + "Operation-Location": "/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "search-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0btOwZAAAAAB1Vj6S4GlbT6CzndRB7mHUV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1203ms" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:47:43 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "dp7aK\u002BZlc02p0rUSsCc3Ew.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0b9OwZAAAAACVR1FSmSnvQKCZpw0Z0VfLV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "317ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "notStarted", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:47:44 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "Ed0F3iuW7Uy87XaNHu2cqQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0cNOwZAAAAAAeAm3o8t3PQKbyFWYKJ10ZV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "265ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "running", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:47:46 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "LuBbW0JBhk6uY/rSZfRdfA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ctOwZAAAAACSQWmlGkwfS7\u002B\u002BtRCUTXppV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "246ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "succeeded", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "319", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:47:46 GMT", + "MS-CV": "hfZbmlY9902ffXkAW139ew.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ctOwZAAAAAB4\u002BQPzySwsSKP9X97H7Gv9V1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "469ms" + }, + "ResponseBody": { + "searchId": "sanitized", + "phoneNumbers": [ + "\u002B14155550100" + ], + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + }, + "searchExpiresBy": "2023-07-14T05:03:45.0725022\u002B00:00", + "error": "NoError" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/:purchase?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "24", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "searchId": "sanitized" + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Operation-Location,operation-id,purchase-id", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Fri, 14 Jul 2023 04:47:48 GMT", + "MS-CV": "6y6T6OVKQkeXlhs1cSiWbA.0", + "operation-id": "purchase_sanitized", + "Operation-Location": "/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "purchase-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0c9OwZAAAAACEYnA\u002B4DzwTor9lKHzAA1BV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1004ms" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:47:48 GMT", + "MS-CV": "xfsDUGyjnE6m1t4v6hvIjQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0dNOwZAAAAAC4TpDJLXRnRKtHZozSnl0VV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "321ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:47:48 GMT", + "MS-CV": "N7W\u002BNax5aEKUUOXF8UfZ4g.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0dNOwZAAAAAAgsFqUyBVpT7QwHnWYId4vV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "257ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:47:50 GMT", + "MS-CV": "IG2RhpyyH0eomtgI0GtA7g.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0d9OwZAAAAACEKir2zbBiQYTrlkhkaSX\u002BV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "266ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:47:53 GMT", + "MS-CV": "pqUicG1EGk23tw7coh0gSw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0edOwZAAAAAAtaDr7D4aDRoZIYpOI2C7AV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "272ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:47:55 GMT", + "MS-CV": "Po4cKJR\u002BbEqRTNnQ5aw4Tw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0e9OwZAAAAABdbV9Oz01IRIbFmZb7sKBMV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "285ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:47:57 GMT", + "MS-CV": "xceT34QH1EOq\u002B4KihXA6Ew.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ftOwZAAAAADimihRFM0SSKQGXRDzjLZFV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "270ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:00 GMT", + "MS-CV": "N5yCtsJLYkGbYxhYURLzcA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0gNOwZAAAAAChLYquhCfMT7xGNoLqq3gHV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "268ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:02 GMT", + "MS-CV": "0Ik7yzteX0e3qk\u002B\u002B47CD5g.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0gtOwZAAAAAB3juov/rhHQowhS89x7pe5V1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "261ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:04 GMT", + "MS-CV": "8WxPGn5D1UusRkGK8xgCjw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0hNOwZAAAAABbVgaOzn0iR5yrVR6iS1EyV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "294ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:07 GMT", + "MS-CV": "v1V6WEOfoEOIVp7byTiy/Q.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0h9OwZAAAAACL1uME/GoBRKg2FTxUVBhgV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "249ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "succeeded", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "310", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:08 GMT", + "MS-CV": "cMR\u002BydO9HEiWgNmeqrsMcw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0h9OwZAAAAACNyZCJp605S7P6r3NJ0m/kV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1315ms" + }, + "ResponseBody": { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-07-14T04:48:02.5294351\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Operation-Location,operation-id,release-id", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Fri, 14 Jul 2023 04:48:11 GMT", + "MS-CV": "07V4\u002B8y80U\u002BcwleBPTDQWw.0", + "operation-id": "release_sanitized", + "Operation-Location": "/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "release-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0iNOwZAAAAADt\u002BDkw8gA5Qo\u002BGQV/ORZqkV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2511ms" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:11 GMT", + "MS-CV": "01Qg7RV6qkqIFsZZM5Ik\u002BA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0i9OwZAAAAABlFgTh/Gz4S7gBIz7PnyzdV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "199ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:10.299096\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:11 GMT", + "MS-CV": "9r9FEj37H0enwaoNyrjhFw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0i9OwZAAAAABkXKpv\u002BiGRRLL4aoPNm3cLV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "175ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:10.299096\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:13 GMT", + "MS-CV": "lSU3IBJwzEanjwkbPFgqVw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0jtOwZAAAAAAjPQV1JBksSaq4a5CmOiMGV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "180ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:10.299096\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:16 GMT", + "MS-CV": "2w2leLWfo0OLhaz2HsKnuA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0kNOwZAAAAADOxJ3PnnwXR5l4uQW0KKTfV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "174ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:10.299096\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:18 GMT", + "MS-CV": "UxJm/8jdl0KRc6Dd9f6jcQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ktOwZAAAAADoj1C0zAx6S7ETqqUHzBuyV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "172ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:10.299096\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:20 GMT", + "MS-CV": "qHABQPRbXkGrldsAKwGOGA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0lNOwZAAAAACb66X\u002BecT9Rb8j589nhJaJV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "166ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "succeeded", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:10.299096\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + } + ], + "Variables": {} +} \ No newline at end of file diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search/recording_can_search_for_1_available_phone_number_by_default.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search/recording_can_search_for_1_available_phone_number_by_default.json.orig new file mode 100644 index 000000000000..b095dfc7c7dd --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search/recording_can_search_for_1_available_phone_number_by_default.json.orig @@ -0,0 +1,345 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "125", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "um69rwCQDfoJlf7RIyaR7E83TxRZJQn/i\u002BrWwWXvDMo=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:09 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "um69rwCQDfoJlf7RIyaR7E83TxRZJQn/i\u002BrWwWXvDMo=", + "x-ms-date": "Wed, 22 Nov 2023 10:03:48 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "outbound", + "sms": "none" + }, + "quantity": 1 + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location,Operation-Location,operation-id,search-id", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Fri, 14 Jul 2023 05:01:10 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "i3pOCc2dl0ShQfvZdxevWQ.0", +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "0", + "Date": "Wed, 22 Nov 2023 10:03:48 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "8Qa8Dl0LCUCsE7mch9Th3w.0", +>>>>>>> main + "operation-id": "search_sanitized", + "Operation-Location": "/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "search-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", +<<<<<<< HEAD + "X-Azure-Ref": "0ldawZAAAAADE2OyHbnUKTI7XToC40QCsV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "822ms" +======= + "X-Azure-Ref": "0A9JdZQAAAADfa5zmdiRAQ4lI2imPo6eRUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1820ms" +>>>>>>> main + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:10 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:03:50 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:10 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "TM\u002BdwEPEdEmSQBqySNKNrw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ltawZAAAAADoxei16CjqS5ZTMsouh5G1V1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "269ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "notStarted", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:10.5355834\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:10 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:10 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "pDbhF4Tdske0Q6dhuFABvg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0l9awZAAAAADFckR2/0JLQI9OrFXYWRNnV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "246ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:03:49 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "rocVAUQMTUKZ3ySRSM9B4g.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0BdJdZQAAAADF3O5AMUKATI0PVsUD/67XUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "669ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "search", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:10.5355834\u002B00:00", +======= + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:03:48.8374982\u002B00:00", +>>>>>>> main + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:12 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:03:51 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:12 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "RzF08i1EgUWiyD/mBT/xZg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0mdawZAAAAAC1mjLYDgaXS6sPwXcYYGWVV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "247ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:03:49 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "8YkiapgW002512cUDmoiKQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0BdJdZQAAAACRVNqIP\u002BsEQK1hFJlAqavIUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "567ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "running", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:03:48.8374982\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:03:53 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:03:52 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "3EpC2bFjfE2ByaVeXenwzA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0CNJdZQAAAABzL\u002BYTMljIToQZXckX9bCOUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "586ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "search", + "status": "succeeded", +<<<<<<< HEAD + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:10.5355834\u002B00:00", +======= + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:03:48.8374982\u002B00:00", +>>>>>>> main + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:13 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:03:54 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "311", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:13 GMT", + "MS-CV": "MR8WTD8\u002BfU6ab0QFJUrS5A.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0mdawZAAAAABCb7j9XsTiSaSdUD3IuGUrV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "429ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "311", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:03:53 GMT", + "MS-CV": "NAo\u002BEPftJ0Czw4OsujDKvA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0CdJdZQAAAAD1uiLnHqWITIsrQzwyaeBnUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "862ms" +>>>>>>> main + }, + "ResponseBody": { + "searchId": "sanitized", + "phoneNumbers": [ + "\u002B14155550100" + ], + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "outbound", + "sms": "none" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + }, +<<<<<<< HEAD + "searchExpiresBy": "2023-07-14T05:17:12.7211917\u002B00:00", +======= + "searchExpiresBy": "2023-11-22T10:19:50.5633566\u002B00:00", +>>>>>>> main + "error": "NoError" + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search/recording_throws_on_invalid_search_request.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search/recording_throws_on_invalid_search_request.json.orig new file mode 100644 index 000000000000..893bc60eea67 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search/recording_throws_on_invalid_search_request.json.orig @@ -0,0 +1,72 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "128", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "sM6mIVawQv4GOUQukUphOk5Hsd8Qa/rx37c067vfCgw=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:13 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "sM6mIVawQv4GOUQukUphOk5Hsd8Qa/rx37c067vfCgw=", + "x-ms-date": "Wed, 22 Nov 2023 10:03:55 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "phoneNumberType": "tollFree", + "assignmentType": "person", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "quantity": 1 + }, + "StatusCode": 400, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Fri, 14 Jul 2023 05:01:13 GMT", + "MS-CV": "cR9NtJ9BlEWdwc4gZ48VCA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0mtawZAAAAACkr\u002Bv5qJP\u002BTI/1yqW2B8j/V1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "419ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:03:54 GMT", + "MS-CV": "ixgWnzb8Wka/WNibRvG1GA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0CtJdZQAAAAAGFDF4\u002BNv8SYpzlBT54P2OUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1420ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "InternalError", + "message": "The server encountered an internal error.", + "innererror": { + "code": "BadRequest", + "message": "We are unable to find phone plans to match your requested capabilities." + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search_aad/recording_can_search_for_1_available_phone_number_by_default.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search_aad/recording_can_search_for_1_available_phone_number_by_default.json.orig new file mode 100644 index 000000000000..82ba6d98b902 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search_aad/recording_can_search_for_1_available_phone_number_by_default.json.orig @@ -0,0 +1,325 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "125", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "outbound", + "sms": "none" + }, + "quantity": 1 + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location,Operation-Location,operation-id,search-id", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Fri, 14 Jul 2023 05:01:05 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "LJZAu7afaE2Du9otBsUmVw.0", +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "0", + "Date": "Wed, 22 Nov 2023 10:03:39 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "V/3zZeVW00eo7Q0DcTlsyQ.0", +>>>>>>> main + "operation-id": "search_sanitized", + "Operation-Location": "/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "search-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", +<<<<<<< HEAD + "X-Azure-Ref": "0kNawZAAAAAA373E28oOqS5qxWnvHhQzVV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1054ms" +======= + "X-Azure-Ref": "0\u002BtFdZQAAAAAUvVptWn2RT5GH4BPtU6DZUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2542ms" +>>>>>>> main + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:05 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "zA8t642a20G4q89yvtvf4Q.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0kdawZAAAAAA8hds7rqIKSL7xfZdrDyB0V1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "253ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "notStarted", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:05.391824\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:05 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "KtAIeOU96Emx/vhyBofSIw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ktawZAAAAAB1z6gDN2VHSJOlFnSDH6UDV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "257ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:03:40 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "/hpyCGodNEOLo2uIcXWlDg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0/NFdZQAAAAA\u002BRRzjcs7JSrgH0\u002BshI\u002BhsUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "817ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "search", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:05.391824\u002B00:00", +======= + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:03:40.364438\u002B00:00", +>>>>>>> main + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:07 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "0\u002BwkLAFu6kS7OcZJxw7yZg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0lNawZAAAAAASL8oK8vAgRakPU/2ldxlKV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "256ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:03:41 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "fOYn8Qxtc0275tBv37Y2uA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0/dFdZQAAAABBrLZjZhWuTIrtIE\u002B22h8TUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "549ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "notStarted", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:03:40.364438\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:03:44 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "L7stPt/IpUerlihtkulQdQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ANJdZQAAAADmTlTJomtuSJf/FdgD31hoUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "633ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "search", + "status": "succeeded", +<<<<<<< HEAD + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:05.391824\u002B00:00", +======= + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:03:40.364438\u002B00:00", +>>>>>>> main + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "311", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:08 GMT", + "MS-CV": "HmzHVp52N0yHDmoQOx9/XQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0lNawZAAAAAAfPZUQgzckRa0KVWiqSwCsV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "449ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "311", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:03:45 GMT", + "MS-CV": "A0J6wIk47UKOKlBZBhVx8A.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ANJdZQAAAADKbZHDAGGORIW8btPR/bvGUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "911ms" +>>>>>>> main + }, + "ResponseBody": { + "searchId": "sanitized", + "phoneNumbers": [ + "\u002B14155550100" + ], + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "outbound", + "sms": "none" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + }, +<<<<<<< HEAD + "searchExpiresBy": "2023-07-14T05:17:07.3409179\u002B00:00", +======= + "searchExpiresBy": "2023-11-22T10:19:41.8202928\u002B00:00", +>>>>>>> main + "error": "NoError" + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search_aad/recording_throws_on_invalid_search_request.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search_aad/recording_throws_on_invalid_search_request.json.orig new file mode 100644 index 000000000000..019ad793effd --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search_aad/recording_throws_on_invalid_search_request.json.orig @@ -0,0 +1,68 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "128", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "phoneNumberType": "tollFree", + "assignmentType": "person", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "quantity": 1 + }, + "StatusCode": 400, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Fri, 14 Jul 2023 05:01:09 GMT", + "MS-CV": "Iruk5gP\u002BEkas0/9EU3b2CQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ldawZAAAAAAHWRFtDCI9TrNSArlkBNYBV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "397ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:03:46 GMT", + "MS-CV": "E\u002BWey5UusU6TlwOx3W3w0w.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0AtJdZQAAAABqR5HENd9xSYrXQYYt6/ZzUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1114ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "InternalError", + "message": "The server encountered an internal error.", + "innererror": { + "code": "BadRequest", + "message": "We are unable to find phone plans to match your requested capabilities." + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_can_update_a_phone_numbers_capabilities.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_can_update_a_phone_numbers_capabilities.json.orig new file mode 100644 index 000000000000..2d188f3a1b0f --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_can_update_a_phone_numbers_capabilities.json.orig @@ -0,0 +1,368 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100/capabilities?api-version=2023-05-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "35", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "UC9kRixTqGBHL8/8LDOWaZFJCLceepyhWJ\u002B/vn6WEYQ=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:23 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "UC9kRixTqGBHL8/8LDOWaZFJCLceepyhWJ\u002B/vn6WEYQ=", + "x-ms-date": "Wed, 22 Nov 2023 10:04:10 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "calling": "none", + "sms": "outbound" + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Operation-Location,Location,operation-id,capabilities-id", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "capabilities-id": "sanitized", + "Content-Length": "36", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:25 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "eur9TWK030mYb/iYg832sw.0", +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "capabilities-id": "sanitized", + "Content-Length": "36", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:04:11 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "ErLnKFuM8EeOnUy0PSBTqQ.0", +>>>>>>> main + "operation-id": "capabilities_sanitized", + "Operation-Location": "/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "Strict-Transport-Security": "max-age=2592000", +<<<<<<< HEAD + "X-Azure-Ref": "0pNawZAAAAADWbDqgYDTzSacZQozHSI6DV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1908ms" +======= + "X-Azure-Ref": "0GNJdZQAAAADZ4AqFkhG2SKrvR6MeDmLvUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "3377ms" +>>>>>>> main + }, + "ResponseBody": { + "capabilitiesUpdateId": "sanitized" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:25 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:04:13 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:25 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "AraqRdro\u002BkGiWw5Un6g3pw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ptawZAAAAACN/weD3qWxSJH9\u002B0eSho5IV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "173ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:04:12 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "v0hLTTAfn0OQ9D4ftBWdZA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0HNJdZQAAAABgDwMQJW0LQrUIJrR9Ti65UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1429ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:25.728242\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:04:12.0058672\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:25 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:04:15 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:25 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "BqdKfD4YsUC\u002B0JT6VpEwGQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ptawZAAAAAAId\u002B8OGUYxSrnXpUJxBk7SV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "193ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:04:13 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "XjhYemN1zUyrQ\u002B00lxfqUg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0HdJdZQAAAACN5Rxuwl7vTp9Z1zo6XkvtUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "355ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:25.728242\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:04:12.0058672\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:28 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:04:17 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:27 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "oH722SGmUEi2gQaRTfoI1w.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0qNawZAAAAABgy8Ld1b36S484w7kPh0f9V1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "171ms" + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "running", + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:25.728242\u002B00:00", + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:30 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:30 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "8Kt8oYTe20idBmd2fmpK3A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0qtawZAAAAAB9Y60tw3k/QZZhaxCHPqk2V1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "176ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:04:15 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "4prJu3HxLkuB3YN8GywIIA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0INJdZQAAAABC2L8eKZyvR4n/i0yt8VjWUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "384ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "succeeded", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:25.728242\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:04:12.0058672\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:30 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:04:17 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:31 GMT", + "MS-CV": "rJ0aaTGHvU\u002BGIgRd3517bg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0qtawZAAAAACTf5Ynrm1xQ5LH/oHgaz8fV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1196ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:04:17 GMT", + "MS-CV": "B9w/zaAQEUOida7kTgo3hg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0INJdZQAAAAAQWjbWiIlIQpyVopqUoKVgUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1692ms" +>>>>>>> main + }, + "ResponseBody": { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", +======= + "purchaseDate": "2023-11-10T09:57:45.4485137\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_invalid.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_invalid.json.orig new file mode 100644 index 000000000000..d601f6c9e5c1 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_invalid.json.orig @@ -0,0 +1,67 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/invalid_phone_number/capabilities?api-version=2023-05-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "35", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "UC9kRixTqGBHL8/8LDOWaZFJCLceepyhWJ\u002B/vn6WEYQ=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:31 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "UC9kRixTqGBHL8/8LDOWaZFJCLceepyhWJ\u002B/vn6WEYQ=", + "x-ms-date": "Wed, 22 Nov 2023 10:04:20 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "calling": "none", + "sms": "outbound" + }, + "StatusCode": 400, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Fri, 14 Jul 2023 05:01:31 GMT", + "MS-CV": "hxQ52BUBRUKRDekSi0MWYw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0rNawZAAAAABrSEq\u002BwGfSQaFBHPyQd4uNV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "147ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:04:18 GMT", + "MS-CV": "C0ePEO4bGU6\u002B5fOanXn7Pw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0I9JdZQAAAACN8LFklJGdQ6U605vtZJYHUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "365ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "InternalError", + "message": "The server encountered an internal error.", + "innererror": { + "code": "BadRequest", + "message": "Invalid telephone number \u0027invalid_phone_number\u0027" + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_unauthorized.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_unauthorized.json.orig new file mode 100644 index 000000000000..d8337280ef46 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_unauthorized.json.orig @@ -0,0 +1,64 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100/capabilities?api-version=2023-05-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "35", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "UC9kRixTqGBHL8/8LDOWaZFJCLceepyhWJ\u002B/vn6WEYQ=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:31 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "UC9kRixTqGBHL8/8LDOWaZFJCLceepyhWJ\u002B/vn6WEYQ=", + "x-ms-date": "Wed, 22 Nov 2023 10:04:19 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "calling": "none", + "sms": "outbound" + }, + "StatusCode": 403, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Fri, 14 Jul 2023 05:01:31 GMT", + "MS-CV": "pxZ8ePsEFESRLfLP8XJvpg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0rNawZAAAAABuOuiS/2P3TolcEj0nRcSSV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "193ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:04:18 GMT", + "MS-CV": "Yh8\u002BKjGtuUK05CqNC1ic6A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ItJdZQAAAAAZ10iby/9gR5cVNdiObwP1UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "468ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "InsufficientPermissions", + "message": "Phone number not owned by this resource.", + "target": "phonenumber" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_can_update_a_phone_numbers_capabilities.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_can_update_a_phone_numbers_capabilities.json.orig new file mode 100644 index 000000000000..97b1ac24897c --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_can_update_a_phone_numbers_capabilities.json.orig @@ -0,0 +1,370 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100/capabilities?api-version=2023-05-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "35", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "calling": "none", + "sms": "outbound" + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Operation-Location,Location,operation-id,capabilities-id", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "capabilities-id": "sanitized", + "Content-Length": "36", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:16 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "p2Z2mxpzu0ORJ9saJcrKXA.0", +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "capabilities-id": "sanitized", + "Content-Length": "36", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:03:58 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "Cvc/gF1QgEyEwOZ8g5NVXA.0", +>>>>>>> main + "operation-id": "capabilities_sanitized", + "Operation-Location": "/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "Strict-Transport-Security": "max-age=2592000", +<<<<<<< HEAD + "X-Azure-Ref": "0mtawZAAAAADn6Su4c28xRYcuCfvMt\u002BzGV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1913ms" +======= + "X-Azure-Ref": "0DNJdZQAAAABL7CIhZZYxT7Tcr6Ht3aODUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "3784ms" +>>>>>>> main + }, + "ResponseBody": { + "capabilitiesUpdateId": "sanitized" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:16 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "9FBIZqH1LU6lq6LfBgZTmg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0nNawZAAAAABY3d/KvhY2SLvLmPiahVkoV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "161ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:03:59 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "iZsjMtvvuUCJWJxWsDHZgw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0D9JdZQAAAAB8SrgyoyAEQptyraE\u002BvpopUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "358ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:16.6358147\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:03:59.4805712\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:16 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "D7Qbt8xGQkeh30WGIEmh3Q.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ndawZAAAAAAMRU4ienQGTZRNr02QTL4TV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "203ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:03:59 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "42H3Cd10IUaa7vMIwBlYgQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ENJdZQAAAAAHSkTrzi1FT6i1CdtT856MUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "414ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:16.6358147\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:03:59.4805712\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:18 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "g77JgfVUXkSTVnnwb9ZAyg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0n9awZAAAAACo/r05CxOuS6YHZ50Udw\u002BlV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "162ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:04:02 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "pIa7O2BsV06kSeU6f70AUQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0EtJdZQAAAABNffUIvOsiQZpzXPWTLmuzUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "378ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:16.6358147\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:03:59.4805712\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:21 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "ohbZzLyFCUGQmmTP0Wobxw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0odawZAAAAABNuitNAeMDQqZ0Xdo9nTegV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "151ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:04:04 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "yMfcAil7lUC/7tWrCMEDTQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0FdJdZQAAAAA3CyWp31QoRqrAvPut9m6AUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "373ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "succeeded", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:16.6358147\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:03:59.4805712\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:22 GMT", + "MS-CV": "tYebWRFh/0SpZ3tvjBxsoA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0odawZAAAAAClqbM1JnRQTbJWg9KUC18XV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "968ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:04:06 GMT", + "MS-CV": "CFvXqzvHJ0Ox8z80RwXyFA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0FdJdZQAAAADuY1xzKgq8R5zmokQvnNpXUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1679ms" +>>>>>>> main + }, + "ResponseBody": { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", +======= + "purchaseDate": "2023-11-10T09:57:45.4485137\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_invalid.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_invalid.json.orig new file mode 100644 index 000000000000..c10d9377863a --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_invalid.json.orig @@ -0,0 +1,63 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/invalid_phone_number/capabilities?api-version=2023-05-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "35", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "calling": "none", + "sms": "outbound" + }, + "StatusCode": 400, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Fri, 14 Jul 2023 05:01:23 GMT", + "MS-CV": "e\u002BSF2cQ1e0eH8XXHkYNPgA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0o9awZAAAAABGtSCRFO/uSaSDe2rNnRnPV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "143ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:04:07 GMT", + "MS-CV": "xx54KwYO9UyB2r\u002Bm/rvbvw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0GNJdZQAAAAAZKU4BTx1oQ7g2RRpZIiwpUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "364ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "InternalError", + "message": "The server encountered an internal error.", + "innererror": { + "code": "BadRequest", + "message": "Invalid telephone number \u0027invalid_phone_number\u0027" + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_unauthorized.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_unauthorized.json.orig new file mode 100644 index 000000000000..e7583c92e82a --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_unauthorized.json.orig @@ -0,0 +1,60 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100/capabilities?api-version=2023-05-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "35", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "calling": "none", + "sms": "outbound" + }, + "StatusCode": 403, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Fri, 14 Jul 2023 05:01:22 GMT", + "MS-CV": "RdBQCPNIk06ORHllsEfEJg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0o9awZAAAAABKFuWH95CjRa4juxps6YwVV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "198ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:04:07 GMT", + "MS-CV": "a4A349nUeEGPsZ9mSuQ5Kg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0F9JdZQAAAAAhiqeZ32zqRp7DhGWnN0RNUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "474ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "InsufficientPermissions", + "message": "Phone number not owned by this resource.", + "target": "phonenumber" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__offerings_lists/recording_can_list_available_offerings.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__offerings_lists/recording_can_list_available_offerings.json.orig new file mode 100644 index 000000000000..287ea33077b5 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__offerings_lists/recording_can_list_available_offerings.json.orig @@ -0,0 +1,111 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/offerings?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:34 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:04:22 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "861", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:34 GMT", + "MS-CV": "djWXycfWU0emtECrehvHpw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0rtawZAAAAACUVxHcQPn7QYtm8ZmmhkevV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "630ms" +======= + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "861", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:04:21 GMT", + "MS-CV": "Jth6kT2/hk6ReOvptHyeRQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0JdJdZQAAAADfhfAh6VTrTbKj5Wan7YKFUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1198ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberOfferings": [ + { + "phoneNumberType": "geographic", + "assignmentType": "person", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "phoneNumberType": "geographic", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__offerings_lists_aad/recording_can_list_available_offerings.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__offerings_lists_aad/recording_can_list_available_offerings.json.orig new file mode 100644 index 000000000000..8e2ef3a5f7da --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__offerings_lists_aad/recording_can_list_available_offerings.json.orig @@ -0,0 +1,107 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/offerings?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "861", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:34 GMT", + "MS-CV": "tsNDPEWeTkaAJO3ckzDFbw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0rtawZAAAAAA\u002B3bctsGzsRLT3hD0A8ALtV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "585ms" +======= + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "861", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:04:20 GMT", + "MS-CV": "A\u002BwXH6YTdE\u002BEFvzP3g/EIw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0I9JdZQAAAABUtBurtXz3Qp01uG2msHMgUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1394ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberOfferings": [ + { + "phoneNumberType": "geographic", + "assignmentType": "person", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "phoneNumberType": "geographic", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/review/communication-phone-numbers.api.md b/sdk/communication/communication-phone-numbers/review/communication-phone-numbers.api.md index 229be0c26921..f296d7125c87 100644 --- a/sdk/communication/communication-phone-numbers/review/communication-phone-numbers.api.md +++ b/sdk/communication/communication-phone-numbers/review/communication-phone-numbers.api.md @@ -72,6 +72,36 @@ export interface ListSipTrunksOptions extends OperationOptions { export interface ListTollFreeAreaCodesOptions extends Omit { } +// @public +export interface OperatorDetails { + mobileCountryCode?: string; + mobileNetworkCode?: string; + name: string; +} + +// @public +export interface OperatorInformation { + internationalFormat?: string; + isoCountryCode?: string; + nationalFormat?: string; + numberType?: OperatorNumberType; + operatorDetails?: OperatorDetails; + phoneNumber: string; +} + +// @public +export interface OperatorInformationOptions { + includeAdditionalOperatorDetails?: boolean; +} + +// @public +export interface OperatorInformationResult { + values?: OperatorInformation[]; +} + +// @public +export type OperatorNumberType = "unknown" | "other" | "geographic" | "mobile"; + // @public export interface PhoneNumberAdministrativeDivision { abbreviatedName: string; @@ -144,6 +174,7 @@ export class PhoneNumbersClient { listAvailableOfferings(countryCode: string, options?: ListOfferingsOptions): PagedAsyncIterableIterator; listAvailableTollFreeAreaCodes(countryCode: string, options?: ListTollFreeAreaCodesOptions): PagedAsyncIterableIterator; listPurchasedPhoneNumbers(options?: ListPurchasedPhoneNumbersOptions): PagedAsyncIterableIterator; + searchOperatorInformation(phoneNumbers: string[], options?: SearchOperatorInformationOptions): Promise; } // @public @@ -165,12 +196,17 @@ export interface PhoneNumberSearchResult { assignmentType: PhoneNumberAssignmentType; capabilities: PhoneNumberCapabilities; cost: PhoneNumberCost; + error?: PhoneNumberSearchResultError; + errorCode?: number; phoneNumbers: string[]; phoneNumberType: PhoneNumberType; searchExpiresBy: Date; searchId: string; } +// @public +export type PhoneNumberSearchResultError = "NoError" | "UnknownErrorCode" | "OutOfStock" | "AuthorizationDenied" | "MissingAddress" | "InvalidAddress" | "InvalidOfferModel" | "NotEnoughLicenses" | "NoWallet" | "NotEnoughCredit" | "NumbersPartiallyAcquired" | "AllNumbersNotAcquired" | "ReservationExpired" | "PurchaseFailed" | "BillingUnavailable" | "ProvisioningFailed" | "UnknownSearchError"; + // @public export interface PhoneNumbersListAreaCodesOptionalParams extends coreClient.OperationOptions { acceptLanguage?: string; @@ -209,6 +245,12 @@ export interface SearchAvailablePhoneNumbersRequest extends PhoneNumberSearchReq countryCode: string; } +// @public +export interface SearchOperatorInformationOptions extends OperationOptions { + // (undocumented) + includeAdditionalOperatorDetails: boolean; +} + // @public export class SipRoutingClient { constructor(connectionString: string, options?: SipRoutingClientOptions); diff --git a/sdk/communication/communication-phone-numbers/src/generated/src/lroImpl.ts b/sdk/communication/communication-phone-numbers/src/generated/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/communication/communication-phone-numbers/src/generated/src/lroImpl.ts +++ b/sdk/communication/communication-phone-numbers/src/generated/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/communication/communication-phone-numbers/src/generated/src/models/index.ts b/sdk/communication/communication-phone-numbers/src/generated/src/models/index.ts index 40764561db9c..6bec4706dbbe 100644 --- a/sdk/communication/communication-phone-numbers/src/generated/src/models/index.ts +++ b/sdk/communication/communication-phone-numbers/src/generated/src/models/index.ts @@ -159,6 +159,10 @@ export interface PhoneNumberSearchResult { cost: PhoneNumberCost; /** The date that this search result expires and phone numbers are no longer on hold. A search result expires in less than 15min, e.g. 2020-11-19T16:31:49.048Z. */ searchExpiresBy: Date; + /** The error code of the search. */ + errorCode?: number; + /** Mapping Error Messages to Codes */ + error?: PhoneNumberSearchResultError; } /** The phone number search purchase request. */ @@ -223,6 +227,55 @@ export interface PurchasedPhoneNumbers { nextLink?: string; } +/** Represents a search request for operator information for the given phone numbers. */ +export interface OperatorInformationRequest { + /** Phone number(s) whose operator information is being requested */ + phoneNumbers: string[]; + /** Represents options to modify a search request for operator information */ + options?: OperatorInformationOptions; +} + +/** Represents options to modify a search request for operator information */ +export interface OperatorInformationOptions { + /** Includes the fields operatorDetails, numberType, and isoCountryCode in the response. Please note: use of this option will result in additional costs */ + includeAdditionalOperatorDetails?: boolean; +} + +/** Represents a search result containing format and operator information associated with the requested phone numbers */ +export interface OperatorInformationResult { + /** + * Results of a search. + * This array will have one entry per requested phone number which will contain the relevant operator information. + */ + values?: OperatorInformation[]; +} + +/** Represents metadata about a phone number that is controlled/provided by that phone number's operator. */ +export interface OperatorInformation { + /** E.164 formatted string representation of the phone number */ + phoneNumber: string; + /** National format of the phone number */ + nationalFormat?: string; + /** International format of the phone number */ + internationalFormat?: string; + /** ISO 3166-1 two character ('alpha-2') code associated with the phone number. */ + isoCountryCode?: string; + /** Type of service associated with the phone number */ + numberType?: OperatorNumberType; + /** Represents metadata describing the operator of a phone number */ + operatorDetails?: OperatorDetails; +} + +/** Represents metadata describing the operator of a phone number */ +export interface OperatorDetails { + /** Name of the phone operator */ + name: string; + /** Mobile Network Code */ + mobileNetworkCode?: string; + /** Mobile Country Code */ + mobileCountryCode?: string; +} + /** Defines headers for PhoneNumbers_searchAvailablePhoneNumbers operation. */ export interface PhoneNumbersSearchAvailablePhoneNumbersHeaders { /** URL to retrieve the final result after operation completes. */ @@ -283,6 +336,25 @@ export type PhoneNumberCapabilityType = | "inbound" | "outbound" | "inbound+outbound"; +/** Defines values for PhoneNumberSearchResultError. */ +export type PhoneNumberSearchResultError = + | "NoError" + | "UnknownErrorCode" + | "OutOfStock" + | "AuthorizationDenied" + | "MissingAddress" + | "InvalidAddress" + | "InvalidOfferModel" + | "NotEnoughLicenses" + | "NoWallet" + | "NotEnoughCredit" + | "NumbersPartiallyAcquired" + | "AllNumbersNotAcquired" + | "ReservationExpired" + | "PurchaseFailed" + | "BillingUnavailable" + | "ProvisioningFailed" + | "UnknownSearchError"; /** Defines values for PhoneNumberOperationType. */ export type PhoneNumberOperationType = | "purchase" @@ -295,6 +367,8 @@ export type PhoneNumberOperationStatus = | "running" | "succeeded" | "failed"; +/** Defines values for OperatorNumberType. */ +export type OperatorNumberType = "unknown" | "other" | "geographic" | "mobile"; /** Optional parameters. */ export interface PhoneNumbersListAreaCodesOptionalParams @@ -303,7 +377,7 @@ export interface PhoneNumbersListAreaCodesOptionalParams skip?: number; /** An optional parameter for how many entries to return, for pagination purposes. The default value is 100. */ maxPageSize?: number; - /** Filter by assignmentType, e.g. User, Application. */ + /** Filter by assignmentType, e.g. Person, Application. */ assignmentType?: PhoneNumberAssignmentType; /** The name of locality or town in which to search for the area code. This is required if the number type is Geographic. */ locality?: string; @@ -378,8 +452,8 @@ export interface PhoneNumbersSearchAvailablePhoneNumbersOptionalParams } /** Contains response data for the searchAvailablePhoneNumbers operation. */ -export type PhoneNumbersSearchAvailablePhoneNumbersResponse = PhoneNumbersSearchAvailablePhoneNumbersHeaders & - PhoneNumberSearchResult; +export type PhoneNumbersSearchAvailablePhoneNumbersResponse = + PhoneNumbersSearchAvailablePhoneNumbersHeaders & PhoneNumberSearchResult; /** Optional parameters. */ export interface PhoneNumbersGetSearchResultOptionalParams @@ -400,7 +474,8 @@ export interface PhoneNumbersPurchasePhoneNumbersOptionalParams } /** Contains response data for the purchasePhoneNumbers operation. */ -export type PhoneNumbersPurchasePhoneNumbersResponse = PhoneNumbersPurchasePhoneNumbersHeaders; +export type PhoneNumbersPurchasePhoneNumbersResponse = + PhoneNumbersPurchasePhoneNumbersHeaders; /** Optional parameters. */ export interface PhoneNumbersGetOperationOptionalParams @@ -428,8 +503,8 @@ export interface PhoneNumbersUpdateCapabilitiesOptionalParams } /** Contains response data for the updateCapabilities operation. */ -export type PhoneNumbersUpdateCapabilitiesResponse = PhoneNumbersUpdateCapabilitiesHeaders & - PurchasedPhoneNumber; +export type PhoneNumbersUpdateCapabilitiesResponse = + PhoneNumbersUpdateCapabilitiesHeaders & PurchasedPhoneNumber; /** Optional parameters. */ export interface PhoneNumbersGetByNumberOptionalParams @@ -448,7 +523,8 @@ export interface PhoneNumbersReleasePhoneNumberOptionalParams } /** Contains response data for the releasePhoneNumber operation. */ -export type PhoneNumbersReleasePhoneNumberResponse = PhoneNumbersReleasePhoneNumberHeaders; +export type PhoneNumbersReleasePhoneNumberResponse = + PhoneNumbersReleasePhoneNumberHeaders; /** Optional parameters. */ export interface PhoneNumbersListPhoneNumbersOptionalParams @@ -462,6 +538,17 @@ export interface PhoneNumbersListPhoneNumbersOptionalParams /** Contains response data for the listPhoneNumbers operation. */ export type PhoneNumbersListPhoneNumbersResponse = PurchasedPhoneNumbers; +/** Optional parameters. */ +export interface PhoneNumbersOperatorInformationSearchOptionalParams + extends coreClient.OperationOptions { + /** Represents options to modify a search request for operator information */ + options?: OperatorInformationOptions; +} + +/** Contains response data for the operatorInformationSearch operation. */ +export type PhoneNumbersOperatorInformationSearchResponse = + OperatorInformationResult; + /** Optional parameters. */ export interface PhoneNumbersListAreaCodesNextOptionalParams extends coreClient.OperationOptions { @@ -480,7 +567,8 @@ export interface PhoneNumbersListAvailableCountriesNextOptionalParams } /** Contains response data for the listAvailableCountriesNext operation. */ -export type PhoneNumbersListAvailableCountriesNextResponse = PhoneNumberCountries; +export type PhoneNumbersListAvailableCountriesNextResponse = + PhoneNumberCountries; /** Optional parameters. */ export interface PhoneNumbersListAvailableLocalitiesNextOptionalParams @@ -490,7 +578,8 @@ export interface PhoneNumbersListAvailableLocalitiesNextOptionalParams } /** Contains response data for the listAvailableLocalitiesNext operation. */ -export type PhoneNumbersListAvailableLocalitiesNextResponse = PhoneNumberLocalities; +export type PhoneNumbersListAvailableLocalitiesNextResponse = + PhoneNumberLocalities; /** Optional parameters. */ export interface PhoneNumbersListOfferingsNextOptionalParams diff --git a/sdk/communication/communication-phone-numbers/src/generated/src/models/mappers.ts b/sdk/communication/communication-phone-numbers/src/generated/src/models/mappers.ts index faa233a8d685..ebfe08889be2 100644 --- a/sdk/communication/communication-phone-numbers/src/generated/src/models/mappers.ts +++ b/sdk/communication/communication-phone-numbers/src/generated/src/models/mappers.ts @@ -21,19 +21,19 @@ export const PhoneNumberAreaCodes: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PhoneNumberAreaCode" - } - } - } + className: "PhoneNumberAreaCode", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PhoneNumberAreaCode: coreClient.CompositeMapper = { @@ -44,11 +44,11 @@ export const PhoneNumberAreaCode: coreClient.CompositeMapper = { areaCode: { serializedName: "areaCode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CommunicationErrorResponse: coreClient.CompositeMapper = { @@ -60,11 +60,11 @@ export const CommunicationErrorResponse: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "CommunicationError" - } - } - } - } + className: "CommunicationError", + }, + }, + }, + }, }; export const CommunicationError: coreClient.CompositeMapper = { @@ -76,22 +76,22 @@ export const CommunicationError: coreClient.CompositeMapper = { serializedName: "code", required: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", required: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -101,20 +101,20 @@ export const CommunicationError: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CommunicationError" - } - } - } + className: "CommunicationError", + }, + }, + }, }, innerError: { serializedName: "innererror", type: { name: "Composite", - className: "CommunicationError" - } - } - } - } + className: "CommunicationError", + }, + }, + }, + }, }; export const PhoneNumberCountries: coreClient.CompositeMapper = { @@ -129,19 +129,19 @@ export const PhoneNumberCountries: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PhoneNumberCountry" - } - } - } + className: "PhoneNumberCountry", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PhoneNumberCountry: coreClient.CompositeMapper = { @@ -153,18 +153,18 @@ export const PhoneNumberCountry: coreClient.CompositeMapper = { serializedName: "localizedName", required: true, type: { - name: "String" - } + name: "String", + }, }, countryCode: { serializedName: "countryCode", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PhoneNumberLocalities: coreClient.CompositeMapper = { @@ -179,19 +179,19 @@ export const PhoneNumberLocalities: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PhoneNumberLocality" - } - } - } + className: "PhoneNumberLocality", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PhoneNumberLocality: coreClient.CompositeMapper = { @@ -203,18 +203,18 @@ export const PhoneNumberLocality: coreClient.CompositeMapper = { serializedName: "localizedName", required: true, type: { - name: "String" - } + name: "String", + }, }, administrativeDivision: { serializedName: "administrativeDivision", type: { name: "Composite", - className: "PhoneNumberAdministrativeDivision" - } - } - } - } + className: "PhoneNumberAdministrativeDivision", + }, + }, + }, + }, }; export const PhoneNumberAdministrativeDivision: coreClient.CompositeMapper = { @@ -226,18 +226,18 @@ export const PhoneNumberAdministrativeDivision: coreClient.CompositeMapper = { serializedName: "localizedName", required: true, type: { - name: "String" - } + name: "String", + }, }, abbreviatedName: { serializedName: "abbreviatedName", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OfferingsResponse: coreClient.CompositeMapper = { @@ -252,19 +252,19 @@ export const OfferingsResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PhoneNumberOffering" - } - } - } + className: "PhoneNumberOffering", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PhoneNumberOffering: coreClient.CompositeMapper = { @@ -275,31 +275,31 @@ export const PhoneNumberOffering: coreClient.CompositeMapper = { phoneNumberType: { serializedName: "phoneNumberType", type: { - name: "String" - } + name: "String", + }, }, assignmentType: { serializedName: "assignmentType", type: { - name: "String" - } + name: "String", + }, }, availableCapabilities: { serializedName: "availableCapabilities", type: { name: "Composite", - className: "PhoneNumberCapabilities" - } + className: "PhoneNumberCapabilities", + }, }, cost: { serializedName: "cost", type: { name: "Composite", - className: "PhoneNumberCost" - } - } - } - } + className: "PhoneNumberCost", + }, + }, + }, + }, }; export const PhoneNumberCapabilities: coreClient.CompositeMapper = { @@ -311,18 +311,18 @@ export const PhoneNumberCapabilities: coreClient.CompositeMapper = { serializedName: "calling", required: true, type: { - name: "String" - } + name: "String", + }, }, sms: { serializedName: "sms", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PhoneNumberCost: coreClient.CompositeMapper = { @@ -334,26 +334,26 @@ export const PhoneNumberCost: coreClient.CompositeMapper = { serializedName: "amount", required: true, type: { - name: "Number" - } + name: "Number", + }, }, currencyCode: { serializedName: "currencyCode", required: true, type: { - name: "String" - } + name: "String", + }, }, billingFrequency: { defaultValue: "monthly", isConstant: true, serializedName: "billingFrequency", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PhoneNumberSearchRequest: coreClient.CompositeMapper = { @@ -365,42 +365,42 @@ export const PhoneNumberSearchRequest: coreClient.CompositeMapper = { serializedName: "phoneNumberType", required: true, type: { - name: "String" - } + name: "String", + }, }, assignmentType: { serializedName: "assignmentType", required: true, type: { - name: "String" - } + name: "String", + }, }, capabilities: { serializedName: "capabilities", type: { name: "Composite", - className: "PhoneNumberCapabilities" - } + className: "PhoneNumberCapabilities", + }, }, areaCode: { serializedName: "areaCode", type: { - name: "String" - } + name: "String", + }, }, quantity: { defaultValue: 1, constraints: { InclusiveMaximum: 2147483647, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "quantity", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const PhoneNumberSearchResult: coreClient.CompositeMapper = { @@ -412,8 +412,8 @@ export const PhoneNumberSearchResult: coreClient.CompositeMapper = { serializedName: "searchId", required: true, type: { - name: "String" - } + name: "String", + }, }, phoneNumbers: { serializedName: "phoneNumbers", @@ -422,48 +422,60 @@ export const PhoneNumberSearchResult: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, phoneNumberType: { serializedName: "phoneNumberType", required: true, type: { - name: "String" - } + name: "String", + }, }, assignmentType: { serializedName: "assignmentType", required: true, type: { - name: "String" - } + name: "String", + }, }, capabilities: { serializedName: "capabilities", type: { name: "Composite", - className: "PhoneNumberCapabilities" - } + className: "PhoneNumberCapabilities", + }, }, cost: { serializedName: "cost", type: { name: "Composite", - className: "PhoneNumberCost" - } + className: "PhoneNumberCost", + }, }, searchExpiresBy: { serializedName: "searchExpiresBy", required: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + errorCode: { + serializedName: "errorCode", + type: { + name: "Number", + }, + }, + error: { + serializedName: "error", + type: { + name: "String", + }, + }, + }, + }, }; export const PhoneNumberPurchaseRequest: coreClient.CompositeMapper = { @@ -474,11 +486,11 @@ export const PhoneNumberPurchaseRequest: coreClient.CompositeMapper = { searchId: { serializedName: "searchId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PhoneNumberOperation: coreClient.CompositeMapper = { @@ -490,52 +502,52 @@ export const PhoneNumberOperation: coreClient.CompositeMapper = { serializedName: "operationType", required: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", required: true, type: { - name: "String" - } + name: "String", + }, }, resourceLocation: { serializedName: "resourceLocation", type: { - name: "String" - } + name: "String", + }, }, createdDateTime: { serializedName: "createdDateTime", required: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "CommunicationError" - } + className: "CommunicationError", + }, }, id: { serializedName: "id", required: true, type: { - name: "String" - } + name: "String", + }, }, lastActionDateTime: { serializedName: "lastActionDateTime", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const PhoneNumberCapabilitiesRequest: coreClient.CompositeMapper = { @@ -546,17 +558,17 @@ export const PhoneNumberCapabilitiesRequest: coreClient.CompositeMapper = { calling: { serializedName: "calling", type: { - name: "String" - } + name: "String", + }, }, sms: { serializedName: "sms", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PurchasedPhoneNumber: coreClient.CompositeMapper = { @@ -568,60 +580,60 @@ export const PurchasedPhoneNumber: coreClient.CompositeMapper = { serializedName: "id", required: true, type: { - name: "String" - } + name: "String", + }, }, phoneNumber: { serializedName: "phoneNumber", required: true, type: { - name: "String" - } + name: "String", + }, }, countryCode: { serializedName: "countryCode", required: true, type: { - name: "String" - } + name: "String", + }, }, phoneNumberType: { serializedName: "phoneNumberType", required: true, type: { - name: "String" - } + name: "String", + }, }, capabilities: { serializedName: "capabilities", type: { name: "Composite", - className: "PhoneNumberCapabilities" - } + className: "PhoneNumberCapabilities", + }, }, assignmentType: { serializedName: "assignmentType", required: true, type: { - name: "String" - } + name: "String", + }, }, purchaseDate: { serializedName: "purchaseDate", required: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, cost: { serializedName: "cost", type: { name: "Composite", - className: "PhoneNumberCost" - } - } - } - } + className: "PhoneNumberCost", + }, + }, + }, + }, }; export const PurchasedPhoneNumbers: coreClient.CompositeMapper = { @@ -637,152 +649,295 @@ export const PurchasedPhoneNumbers: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PurchasedPhoneNumber" - } - } - } + className: "PurchasedPhoneNumber", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PhoneNumbersSearchAvailablePhoneNumbersHeaders: coreClient.CompositeMapper = { +export const OperatorInformationRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PhoneNumbersSearchAvailablePhoneNumbersHeaders", + className: "OperatorInformationRequest", modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - operationLocation: { - serializedName: "operation-location", + phoneNumbers: { + serializedName: "phoneNumbers", + required: true, type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - operationId: { - serializedName: "operation-id", + options: { + serializedName: "options", type: { - name: "String" - } + name: "Composite", + className: "OperatorInformationOptions", + }, }, - searchId: { - serializedName: "search-id", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const PhoneNumbersPurchasePhoneNumbersHeaders: coreClient.CompositeMapper = { +export const OperatorInformationOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PhoneNumbersPurchasePhoneNumbersHeaders", + className: "OperatorInformationOptions", modelProperties: { - operationLocation: { - serializedName: "operation-location", + includeAdditionalOperatorDetails: { + serializedName: "includeAdditionalOperatorDetails", type: { - name: "String" - } - }, - operationId: { - serializedName: "operation-id", - type: { - name: "String" - } + name: "Boolean", + }, }, - purchaseId: { - serializedName: "purchase-id", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const PhoneNumbersGetOperationHeaders: coreClient.CompositeMapper = { +export const OperatorInformationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PhoneNumbersGetOperationHeaders", + className: "OperatorInformationResult", modelProperties: { - location: { - serializedName: "location", + values: { + serializedName: "values", type: { - name: "String" - } - } - } - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperatorInformation", + }, + }, + }, + }, + }, + }, }; -export const PhoneNumbersUpdateCapabilitiesHeaders: coreClient.CompositeMapper = { +export const OperatorInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PhoneNumbersUpdateCapabilitiesHeaders", + className: "OperatorInformation", modelProperties: { - location: { - serializedName: "location", + phoneNumber: { + serializedName: "phoneNumber", + required: true, type: { - name: "String" - } + name: "String", + }, }, - operationLocation: { - serializedName: "operation-location", + nationalFormat: { + serializedName: "nationalFormat", type: { - name: "String" - } + name: "String", + }, }, - operationId: { - serializedName: "operation-id", + internationalFormat: { + serializedName: "internationalFormat", type: { - name: "String" - } + name: "String", + }, }, - capabilitiesId: { - serializedName: "capabilities-id", + isoCountryCode: { + serializedName: "isoCountryCode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + numberType: { + serializedName: "numberType", + type: { + name: "String", + }, + }, + operatorDetails: { + serializedName: "operatorDetails", + type: { + name: "Composite", + className: "OperatorDetails", + }, + }, + }, + }, }; -export const PhoneNumbersReleasePhoneNumberHeaders: coreClient.CompositeMapper = { +export const OperatorDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PhoneNumbersReleasePhoneNumberHeaders", + className: "OperatorDetails", modelProperties: { - operationLocation: { - serializedName: "operation-location", + name: { + serializedName: "name", + required: true, type: { - name: "String" - } + name: "String", + }, }, - operationId: { - serializedName: "operation-id", + mobileNetworkCode: { + serializedName: "mobileNetworkCode", type: { - name: "String" - } + name: "String", + }, }, - releaseId: { - serializedName: "release-id", + mobileCountryCode: { + serializedName: "mobileCountryCode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; + +export const PhoneNumbersSearchAvailablePhoneNumbersHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PhoneNumbersSearchAvailablePhoneNumbersHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + operationLocation: { + serializedName: "operation-location", + type: { + name: "String", + }, + }, + operationId: { + serializedName: "operation-id", + type: { + name: "String", + }, + }, + searchId: { + serializedName: "search-id", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const PhoneNumbersPurchasePhoneNumbersHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PhoneNumbersPurchasePhoneNumbersHeaders", + modelProperties: { + operationLocation: { + serializedName: "operation-location", + type: { + name: "String", + }, + }, + operationId: { + serializedName: "operation-id", + type: { + name: "String", + }, + }, + purchaseId: { + serializedName: "purchase-id", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const PhoneNumbersGetOperationHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PhoneNumbersGetOperationHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const PhoneNumbersUpdateCapabilitiesHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PhoneNumbersUpdateCapabilitiesHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + operationLocation: { + serializedName: "operation-location", + type: { + name: "String", + }, + }, + operationId: { + serializedName: "operation-id", + type: { + name: "String", + }, + }, + capabilitiesId: { + serializedName: "capabilities-id", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const PhoneNumbersReleasePhoneNumberHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PhoneNumbersReleasePhoneNumberHeaders", + modelProperties: { + operationLocation: { + serializedName: "operation-location", + type: { + name: "String", + }, + }, + operationId: { + serializedName: "operation-id", + type: { + name: "String", + }, + }, + releaseId: { + serializedName: "release-id", + type: { + name: "String", + }, + }, + }, + }, + }; diff --git a/sdk/communication/communication-phone-numbers/src/generated/src/models/parameters.ts b/sdk/communication/communication-phone-numbers/src/generated/src/models/parameters.ts index c7c2d68c8f11..b97bdd9a9e7e 100644 --- a/sdk/communication/communication-phone-numbers/src/generated/src/models/parameters.ts +++ b/sdk/communication/communication-phone-numbers/src/generated/src/models/parameters.ts @@ -9,12 +9,13 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { PhoneNumberSearchRequest as PhoneNumberSearchRequestMapper, PhoneNumberPurchaseRequest as PhoneNumberPurchaseRequestMapper, - PhoneNumberCapabilitiesRequest as PhoneNumberCapabilitiesRequestMapper + PhoneNumberCapabilitiesRequest as PhoneNumberCapabilitiesRequestMapper, + OperatorInformationRequest as OperatorInformationRequestMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -24,9 +25,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const endpoint: OperationURLParameter = { @@ -35,10 +36,10 @@ export const endpoint: OperationURLParameter = { serializedName: "endpoint", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const countryCode: OperationURLParameter = { @@ -47,9 +48,9 @@ export const countryCode: OperationURLParameter = { serializedName: "countryCode", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const phoneNumberType: OperationQueryParameter = { @@ -59,9 +60,9 @@ export const phoneNumberType: OperationQueryParameter = { required: true, type: { name: "Enum", - allowedValues: ["geographic", "tollFree"] - } - } + allowedValues: ["geographic", "tollFree"], + }, + }, }; export const skip: OperationQueryParameter = { @@ -70,9 +71,9 @@ export const skip: OperationQueryParameter = { defaultValue: 0, serializedName: "skip", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const maxPageSize: OperationQueryParameter = { @@ -81,9 +82,9 @@ export const maxPageSize: OperationQueryParameter = { defaultValue: 100, serializedName: "maxPageSize", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const assignmentType: OperationQueryParameter = { @@ -92,9 +93,9 @@ export const assignmentType: OperationQueryParameter = { serializedName: "assignmentType", type: { name: "Enum", - allowedValues: ["person", "application"] - } - } + allowedValues: ["person", "application"], + }, + }, }; export const locality: OperationQueryParameter = { @@ -102,9 +103,9 @@ export const locality: OperationQueryParameter = { mapper: { serializedName: "locality", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const administrativeDivision: OperationQueryParameter = { @@ -112,21 +113,21 @@ export const administrativeDivision: OperationQueryParameter = { mapper: { serializedName: "administrativeDivision", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-12-01", + defaultValue: "2024-03-01-preview", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const acceptLanguage: OperationParameter = { @@ -134,9 +135,9 @@ export const acceptLanguage: OperationParameter = { mapper: { serializedName: "accept-language", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const phoneNumberType1: OperationQueryParameter = { @@ -145,9 +146,9 @@ export const phoneNumberType1: OperationQueryParameter = { serializedName: "phoneNumberType", type: { name: "Enum", - allowedValues: ["geographic", "tollFree"] - } - } + allowedValues: ["geographic", "tollFree"], + }, + }, }; export const contentType: OperationParameter = { @@ -157,34 +158,34 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const phoneNumberType2: OperationParameter = { parameterPath: "phoneNumberType", - mapper: PhoneNumberSearchRequestMapper + mapper: PhoneNumberSearchRequestMapper, }; export const assignmentType1: OperationParameter = { parameterPath: "assignmentType", - mapper: PhoneNumberSearchRequestMapper + mapper: PhoneNumberSearchRequestMapper, }; export const capabilities: OperationParameter = { parameterPath: "capabilities", - mapper: PhoneNumberSearchRequestMapper + mapper: PhoneNumberSearchRequestMapper, }; export const areaCode: OperationParameter = { parameterPath: ["options", "areaCode"], - mapper: PhoneNumberSearchRequestMapper + mapper: PhoneNumberSearchRequestMapper, }; export const quantity: OperationParameter = { parameterPath: ["options", "quantity"], - mapper: PhoneNumberSearchRequestMapper + mapper: PhoneNumberSearchRequestMapper, }; export const searchId: OperationURLParameter = { @@ -193,14 +194,14 @@ export const searchId: OperationURLParameter = { serializedName: "searchId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const searchId1: OperationParameter = { parameterPath: ["options", "searchId"], - mapper: PhoneNumberPurchaseRequestMapper + mapper: PhoneNumberPurchaseRequestMapper, }; export const operationId: OperationURLParameter = { @@ -209,9 +210,9 @@ export const operationId: OperationURLParameter = { serializedName: "operationId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const contentType1: OperationParameter = { @@ -221,19 +222,19 @@ export const contentType1: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const calling: OperationParameter = { parameterPath: ["options", "calling"], - mapper: PhoneNumberCapabilitiesRequestMapper + mapper: PhoneNumberCapabilitiesRequestMapper, }; export const sms: OperationParameter = { parameterPath: ["options", "sms"], - mapper: PhoneNumberCapabilitiesRequestMapper + mapper: PhoneNumberCapabilitiesRequestMapper, }; export const phoneNumber: OperationURLParameter = { @@ -242,9 +243,9 @@ export const phoneNumber: OperationURLParameter = { serializedName: "phoneNumber", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const top: OperationQueryParameter = { @@ -253,9 +254,19 @@ export const top: OperationQueryParameter = { defaultValue: 100, serializedName: "top", type: { - name: "Number" - } - } + name: "Number", + }, + }, +}; + +export const phoneNumbers: OperationParameter = { + parameterPath: "phoneNumbers", + mapper: OperatorInformationRequestMapper, +}; + +export const options: OperationParameter = { + parameterPath: ["options", "options"], + mapper: OperatorInformationRequestMapper, }; export const nextLink: OperationURLParameter = { @@ -264,8 +275,8 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; diff --git a/sdk/communication/communication-phone-numbers/src/generated/src/operations/phoneNumbers.ts b/sdk/communication/communication-phone-numbers/src/generated/src/operations/phoneNumbers.ts index b58433a2c788..d820bf4838dd 100644 --- a/sdk/communication/communication-phone-numbers/src/generated/src/operations/phoneNumbers.ts +++ b/sdk/communication/communication-phone-numbers/src/generated/src/operations/phoneNumbers.ts @@ -55,11 +55,13 @@ import { PhoneNumbersGetByNumberResponse, PhoneNumbersReleasePhoneNumberOptionalParams, PhoneNumbersReleasePhoneNumberResponse, + PhoneNumbersOperatorInformationSearchOptionalParams, + PhoneNumbersOperatorInformationSearchResponse, PhoneNumbersListAreaCodesNextResponse, PhoneNumbersListAvailableCountriesNextResponse, PhoneNumbersListAvailableLocalitiesNextResponse, PhoneNumbersListOfferingsNextResponse, - PhoneNumbersListPhoneNumbersNextResponse + PhoneNumbersListPhoneNumbersNextResponse, } from "../models"; /// @@ -84,12 +86,12 @@ export class PhoneNumbersImpl implements PhoneNumbers { public listAreaCodes( countryCode: string, phoneNumberType: PhoneNumberType, - options?: PhoneNumbersListAreaCodesOptionalParams + options?: PhoneNumbersListAreaCodesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAreaCodesPagingAll( countryCode, phoneNumberType, - options + options, ); return { next() { @@ -106,9 +108,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { countryCode, phoneNumberType, options, - settings + settings, ); - } + }, }; } @@ -116,7 +118,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { countryCode: string, phoneNumberType: PhoneNumberType, options?: PhoneNumbersListAreaCodesOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PhoneNumbersListAreaCodesResponse; let continuationToken = settings?.continuationToken; @@ -131,7 +133,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { result = await this._listAreaCodesNext( countryCode, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.areaCodes || []; @@ -143,12 +145,12 @@ export class PhoneNumbersImpl implements PhoneNumbers { private async *listAreaCodesPagingAll( countryCode: string, phoneNumberType: PhoneNumberType, - options?: PhoneNumbersListAreaCodesOptionalParams + options?: PhoneNumbersListAreaCodesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAreaCodesPagingPage( countryCode, phoneNumberType, - options + options, )) { yield* page; } @@ -159,7 +161,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { * @param options The options parameters. */ public listAvailableCountries( - options?: PhoneNumbersListAvailableCountriesOptionalParams + options?: PhoneNumbersListAvailableCountriesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAvailableCountriesPagingAll(options); return { @@ -174,13 +176,13 @@ export class PhoneNumbersImpl implements PhoneNumbers { throw new Error("maxPageSize is not supported by this operation."); } return this.listAvailableCountriesPagingPage(options, settings); - } + }, }; } private async *listAvailableCountriesPagingPage( options?: PhoneNumbersListAvailableCountriesOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PhoneNumbersListAvailableCountriesResponse; let continuationToken = settings?.continuationToken; @@ -194,7 +196,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { while (continuationToken) { result = await this._listAvailableCountriesNext( continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.countries || []; @@ -204,7 +206,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { } private async *listAvailableCountriesPagingAll( - options?: PhoneNumbersListAvailableCountriesOptionalParams + options?: PhoneNumbersListAvailableCountriesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAvailableCountriesPagingPage(options)) { yield* page; @@ -218,7 +220,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ public listAvailableLocalities( countryCode: string, - options?: PhoneNumbersListAvailableLocalitiesOptionalParams + options?: PhoneNumbersListAvailableLocalitiesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAvailableLocalitiesPagingAll(countryCode, options); return { @@ -235,16 +237,16 @@ export class PhoneNumbersImpl implements PhoneNumbers { return this.listAvailableLocalitiesPagingPage( countryCode, options, - settings + settings, ); - } + }, }; } private async *listAvailableLocalitiesPagingPage( countryCode: string, options?: PhoneNumbersListAvailableLocalitiesOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PhoneNumbersListAvailableLocalitiesResponse; let continuationToken = settings?.continuationToken; @@ -259,7 +261,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { result = await this._listAvailableLocalitiesNext( countryCode, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.phoneNumberLocalities || []; @@ -270,11 +272,11 @@ export class PhoneNumbersImpl implements PhoneNumbers { private async *listAvailableLocalitiesPagingAll( countryCode: string, - options?: PhoneNumbersListAvailableLocalitiesOptionalParams + options?: PhoneNumbersListAvailableLocalitiesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAvailableLocalitiesPagingPage( countryCode, - options + options, )) { yield* page; } @@ -287,7 +289,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ public listOfferings( countryCode: string, - options?: PhoneNumbersListOfferingsOptionalParams + options?: PhoneNumbersListOfferingsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listOfferingsPagingAll(countryCode, options); return { @@ -302,14 +304,14 @@ export class PhoneNumbersImpl implements PhoneNumbers { throw new Error("maxPageSize is not supported by this operation."); } return this.listOfferingsPagingPage(countryCode, options, settings); - } + }, }; } private async *listOfferingsPagingPage( countryCode: string, options?: PhoneNumbersListOfferingsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PhoneNumbersListOfferingsResponse; let continuationToken = settings?.continuationToken; @@ -324,7 +326,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { result = await this._listOfferingsNext( countryCode, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.phoneNumberOfferings || []; @@ -335,11 +337,11 @@ export class PhoneNumbersImpl implements PhoneNumbers { private async *listOfferingsPagingAll( countryCode: string, - options?: PhoneNumbersListOfferingsOptionalParams + options?: PhoneNumbersListOfferingsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listOfferingsPagingPage( countryCode, - options + options, )) { yield* page; } @@ -350,7 +352,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { * @param options The options parameters. */ public listPhoneNumbers( - options?: PhoneNumbersListPhoneNumbersOptionalParams + options?: PhoneNumbersListPhoneNumbersOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPhoneNumbersPagingAll(options); return { @@ -365,13 +367,13 @@ export class PhoneNumbersImpl implements PhoneNumbers { throw new Error("maxPageSize is not supported by this operation."); } return this.listPhoneNumbersPagingPage(options, settings); - } + }, }; } private async *listPhoneNumbersPagingPage( options?: PhoneNumbersListPhoneNumbersOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PhoneNumbersListPhoneNumbersResponse; let continuationToken = settings?.continuationToken; @@ -392,7 +394,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { } private async *listPhoneNumbersPagingAll( - options?: PhoneNumbersListPhoneNumbersOptionalParams + options?: PhoneNumbersListPhoneNumbersOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPhoneNumbersPagingPage(options)) { yield* page; @@ -408,7 +410,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { private async _listAreaCodes( countryCode: string, phoneNumberType: PhoneNumberType, - options?: PhoneNumbersListAreaCodesOptionalParams + options?: PhoneNumbersListAreaCodesOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient._listAreaCodes", @@ -416,9 +418,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { countryCode, phoneNumberType, options }, - listAreaCodesOperationSpec + listAreaCodesOperationSpec, ) as Promise; - } + }, ); } @@ -427,7 +429,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { * @param options The options parameters. */ private async _listAvailableCountries( - options?: PhoneNumbersListAvailableCountriesOptionalParams + options?: PhoneNumbersListAvailableCountriesOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient._listAvailableCountries", @@ -435,9 +437,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { options }, - listAvailableCountriesOperationSpec + listAvailableCountriesOperationSpec, ) as Promise; - } + }, ); } @@ -448,7 +450,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ private async _listAvailableLocalities( countryCode: string, - options?: PhoneNumbersListAvailableLocalitiesOptionalParams + options?: PhoneNumbersListAvailableLocalitiesOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient._listAvailableLocalities", @@ -456,9 +458,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { countryCode, options }, - listAvailableLocalitiesOperationSpec + listAvailableLocalitiesOperationSpec, ) as Promise; - } + }, ); } @@ -469,7 +471,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ private async _listOfferings( countryCode: string, - options?: PhoneNumbersListOfferingsOptionalParams + options?: PhoneNumbersListOfferingsOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient._listOfferings", @@ -477,9 +479,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { countryCode, options }, - listOfferingsOperationSpec + listOfferingsOperationSpec, ) as Promise; - } + }, ); } @@ -497,7 +499,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { phoneNumberType: PhoneNumberType, assignmentType: PhoneNumberAssignmentType, capabilities: PhoneNumberCapabilities, - options?: PhoneNumbersSearchAvailablePhoneNumbersOptionalParams + options?: PhoneNumbersSearchAvailablePhoneNumbersOptionalParams, ): Promise< PollerLike< PollOperationState, @@ -506,29 +508,29 @@ export class PhoneNumbersImpl implements PhoneNumbers { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return tracingClient.withSpan( "PhoneNumbersClient.beginSearchAvailablePhoneNumbers", options ?? {}, async () => { - return this.client.sendOperationRequest(args, spec) as Promise< - PhoneNumbersSearchAvailablePhoneNumbersResponse - >; - } + return this.client.sendOperationRequest( + args, + spec, + ) as Promise; + }, ); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -537,8 +539,8 @@ export class PhoneNumbersImpl implements PhoneNumbers { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -546,8 +548,8 @@ export class PhoneNumbersImpl implements PhoneNumbers { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -558,14 +560,14 @@ export class PhoneNumbersImpl implements PhoneNumbers { phoneNumberType, assignmentType, capabilities, - options + options, }, - spec: searchAvailablePhoneNumbersOperationSpec + spec: searchAvailablePhoneNumbersOperationSpec, }); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + lroResourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -585,14 +587,14 @@ export class PhoneNumbersImpl implements PhoneNumbers { phoneNumberType: PhoneNumberType, assignmentType: PhoneNumberAssignmentType, capabilities: PhoneNumberCapabilities, - options?: PhoneNumbersSearchAvailablePhoneNumbersOptionalParams + options?: PhoneNumbersSearchAvailablePhoneNumbersOptionalParams, ): Promise { const poller = await this.beginSearchAvailablePhoneNumbers( countryCode, phoneNumberType, assignmentType, capabilities, - options + options, ); return poller.pollUntilDone(); } @@ -604,7 +606,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ async getSearchResult( searchId: string, - options?: PhoneNumbersGetSearchResultOptionalParams + options?: PhoneNumbersGetSearchResultOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient.getSearchResult", @@ -612,9 +614,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { searchId, options }, - getSearchResultOperationSpec + getSearchResultOperationSpec, ) as Promise; - } + }, ); } @@ -623,7 +625,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { * @param options The options parameters. */ async beginPurchasePhoneNumbers( - options?: PhoneNumbersPurchasePhoneNumbersOptionalParams + options?: PhoneNumbersPurchasePhoneNumbersOptionalParams, ): Promise< PollerLike< PollOperationState, @@ -632,29 +634,29 @@ export class PhoneNumbersImpl implements PhoneNumbers { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return tracingClient.withSpan( "PhoneNumbersClient.beginPurchasePhoneNumbers", options ?? {}, async () => { - return this.client.sendOperationRequest(args, spec) as Promise< - PhoneNumbersPurchasePhoneNumbersResponse - >; - } + return this.client.sendOperationRequest( + args, + spec, + ) as Promise; + }, ); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -663,8 +665,8 @@ export class PhoneNumbersImpl implements PhoneNumbers { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -672,19 +674,19 @@ export class PhoneNumbersImpl implements PhoneNumbers { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { options }, - spec: purchasePhoneNumbersOperationSpec + spec: purchasePhoneNumbersOperationSpec, }); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -695,7 +697,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { * @param options The options parameters. */ async beginPurchasePhoneNumbersAndWait( - options?: PhoneNumbersPurchasePhoneNumbersOptionalParams + options?: PhoneNumbersPurchasePhoneNumbersOptionalParams, ): Promise { const poller = await this.beginPurchasePhoneNumbers(options); return poller.pollUntilDone(); @@ -708,7 +710,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ async getOperation( operationId: string, - options?: PhoneNumbersGetOperationOptionalParams + options?: PhoneNumbersGetOperationOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient.getOperation", @@ -716,9 +718,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { operationId, options }, - getOperationOperationSpec + getOperationOperationSpec, ) as Promise; - } + }, ); } @@ -729,7 +731,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ async cancelOperation( operationId: string, - options?: PhoneNumbersCancelOperationOptionalParams + options?: PhoneNumbersCancelOperationOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient.cancelOperation", @@ -737,9 +739,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { operationId, options }, - cancelOperationOperationSpec + cancelOperationOperationSpec, ) as Promise; - } + }, ); } @@ -751,7 +753,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ async beginUpdateCapabilities( phoneNumber: string, - options?: PhoneNumbersUpdateCapabilitiesOptionalParams + options?: PhoneNumbersUpdateCapabilitiesOptionalParams, ): Promise< PollerLike< PollOperationState, @@ -760,29 +762,29 @@ export class PhoneNumbersImpl implements PhoneNumbers { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return tracingClient.withSpan( "PhoneNumbersClient.beginUpdateCapabilities", options ?? {}, async () => { - return this.client.sendOperationRequest(args, spec) as Promise< - PhoneNumbersUpdateCapabilitiesResponse - >; - } + return this.client.sendOperationRequest( + args, + spec, + ) as Promise; + }, ); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -791,8 +793,8 @@ export class PhoneNumbersImpl implements PhoneNumbers { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -800,20 +802,20 @@ export class PhoneNumbersImpl implements PhoneNumbers { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { phoneNumber, options }, - spec: updateCapabilitiesOperationSpec + spec: updateCapabilitiesOperationSpec, }); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + lroResourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -827,7 +829,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ async beginUpdateCapabilitiesAndWait( phoneNumber: string, - options?: PhoneNumbersUpdateCapabilitiesOptionalParams + options?: PhoneNumbersUpdateCapabilitiesOptionalParams, ): Promise { const poller = await this.beginUpdateCapabilities(phoneNumber, options); return poller.pollUntilDone(); @@ -841,7 +843,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ async getByNumber( phoneNumber: string, - options?: PhoneNumbersGetByNumberOptionalParams + options?: PhoneNumbersGetByNumberOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient.getByNumber", @@ -849,9 +851,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { phoneNumber, options }, - getByNumberOperationSpec + getByNumberOperationSpec, ) as Promise; - } + }, ); } @@ -862,7 +864,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ async beginReleasePhoneNumber( phoneNumber: string, - options?: PhoneNumbersReleasePhoneNumberOptionalParams + options?: PhoneNumbersReleasePhoneNumberOptionalParams, ): Promise< PollerLike< PollOperationState, @@ -871,29 +873,29 @@ export class PhoneNumbersImpl implements PhoneNumbers { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return tracingClient.withSpan( "PhoneNumbersClient.beginReleasePhoneNumber", options ?? {}, async () => { - return this.client.sendOperationRequest(args, spec) as Promise< - PhoneNumbersReleasePhoneNumberResponse - >; - } + return this.client.sendOperationRequest( + args, + spec, + ) as Promise; + }, ); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -902,8 +904,8 @@ export class PhoneNumbersImpl implements PhoneNumbers { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -911,19 +913,19 @@ export class PhoneNumbersImpl implements PhoneNumbers { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { phoneNumber, options }, - spec: releasePhoneNumberOperationSpec + spec: releasePhoneNumberOperationSpec, }); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -936,7 +938,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ async beginReleasePhoneNumberAndWait( phoneNumber: string, - options?: PhoneNumbersReleasePhoneNumberOptionalParams + options?: PhoneNumbersReleasePhoneNumberOptionalParams, ): Promise { const poller = await this.beginReleasePhoneNumber(phoneNumber, options); return poller.pollUntilDone(); @@ -947,7 +949,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { * @param options The options parameters. */ private async _listPhoneNumbers( - options?: PhoneNumbersListPhoneNumbersOptionalParams + options?: PhoneNumbersListPhoneNumbersOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient._listPhoneNumbers", @@ -955,9 +957,30 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { options }, - listPhoneNumbersOperationSpec + listPhoneNumbersOperationSpec, ) as Promise; - } + }, + ); + } + + /** + * Searches for number format and operator information for a given list of phone numbers. + * @param phoneNumbers Phone number(s) whose operator information is being requested + * @param options The options parameters. + */ + async operatorInformationSearch( + phoneNumbers: string[], + options?: PhoneNumbersOperatorInformationSearchOptionalParams, + ): Promise { + return tracingClient.withSpan( + "PhoneNumbersClient.operatorInformationSearch", + options ?? {}, + async (options) => { + return this.client.sendOperationRequest( + { phoneNumbers, options }, + operatorInformationSearchOperationSpec, + ) as Promise; + }, ); } @@ -970,7 +993,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { private async _listAreaCodesNext( countryCode: string, nextLink: string, - options?: PhoneNumbersListAreaCodesNextOptionalParams + options?: PhoneNumbersListAreaCodesNextOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient._listAreaCodesNext", @@ -978,9 +1001,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { countryCode, nextLink, options }, - listAreaCodesNextOperationSpec + listAreaCodesNextOperationSpec, ) as Promise; - } + }, ); } @@ -991,7 +1014,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ private async _listAvailableCountriesNext( nextLink: string, - options?: PhoneNumbersListAvailableCountriesNextOptionalParams + options?: PhoneNumbersListAvailableCountriesNextOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient._listAvailableCountriesNext", @@ -999,9 +1022,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { nextLink, options }, - listAvailableCountriesNextOperationSpec + listAvailableCountriesNextOperationSpec, ) as Promise; - } + }, ); } @@ -1015,7 +1038,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { private async _listAvailableLocalitiesNext( countryCode: string, nextLink: string, - options?: PhoneNumbersListAvailableLocalitiesNextOptionalParams + options?: PhoneNumbersListAvailableLocalitiesNextOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient._listAvailableLocalitiesNext", @@ -1023,9 +1046,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { countryCode, nextLink, options }, - listAvailableLocalitiesNextOperationSpec + listAvailableLocalitiesNextOperationSpec, ) as Promise; - } + }, ); } @@ -1038,7 +1061,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { private async _listOfferingsNext( countryCode: string, nextLink: string, - options?: PhoneNumbersListOfferingsNextOptionalParams + options?: PhoneNumbersListOfferingsNextOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient._listOfferingsNext", @@ -1046,9 +1069,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { countryCode, nextLink, options }, - listOfferingsNextOperationSpec + listOfferingsNextOperationSpec, ) as Promise; - } + }, ); } @@ -1059,7 +1082,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ private async _listPhoneNumbersNext( nextLink: string, - options?: PhoneNumbersListPhoneNumbersNextOptionalParams + options?: PhoneNumbersListPhoneNumbersNextOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient._listPhoneNumbersNext", @@ -1067,9 +1090,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { nextLink, options }, - listPhoneNumbersNextOperationSpec + listPhoneNumbersNextOperationSpec, ) as Promise; - } + }, ); } } @@ -1081,11 +1104,11 @@ const listAreaCodesOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PhoneNumberAreaCodes + bodyMapper: Mappers.PhoneNumberAreaCodes, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, queryParameters: [ Parameters.phoneNumberType, @@ -1094,74 +1117,74 @@ const listAreaCodesOperationSpec: coreClient.OperationSpec = { Parameters.assignmentType, Parameters.locality, Parameters.administrativeDivision, - Parameters.apiVersion + Parameters.apiVersion, ], urlParameters: [Parameters.endpoint, Parameters.countryCode], headerParameters: [Parameters.accept, Parameters.acceptLanguage], - serializer + serializer, }; const listAvailableCountriesOperationSpec: coreClient.OperationSpec = { path: "/availablePhoneNumbers/countries", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PhoneNumberCountries + bodyMapper: Mappers.PhoneNumberCountries, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, queryParameters: [ Parameters.skip, Parameters.maxPageSize, - Parameters.apiVersion + Parameters.apiVersion, ], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.accept, Parameters.acceptLanguage], - serializer + serializer, }; const listAvailableLocalitiesOperationSpec: coreClient.OperationSpec = { path: "/availablePhoneNumbers/countries/{countryCode}/localities", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PhoneNumberLocalities + bodyMapper: Mappers.PhoneNumberLocalities, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, queryParameters: [ Parameters.skip, Parameters.maxPageSize, Parameters.administrativeDivision, - Parameters.apiVersion + Parameters.apiVersion, ], urlParameters: [Parameters.endpoint, Parameters.countryCode], headerParameters: [Parameters.accept, Parameters.acceptLanguage], - serializer + serializer, }; const listOfferingsOperationSpec: coreClient.OperationSpec = { path: "/availablePhoneNumbers/countries/{countryCode}/offerings", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OfferingsResponse + bodyMapper: Mappers.OfferingsResponse, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, queryParameters: [ Parameters.skip, Parameters.maxPageSize, Parameters.assignmentType, Parameters.apiVersion, - Parameters.phoneNumberType1 + Parameters.phoneNumberType1, ], urlParameters: [Parameters.endpoint, Parameters.countryCode], headerParameters: [Parameters.accept, Parameters.acceptLanguage], - serializer + serializer, }; const searchAvailablePhoneNumbersOperationSpec: coreClient.OperationSpec = { path: "/availablePhoneNumbers/countries/{countryCode}/:search", @@ -1169,23 +1192,23 @@ const searchAvailablePhoneNumbersOperationSpec: coreClient.OperationSpec = { responses: { 200: { bodyMapper: Mappers.PhoneNumberSearchResult, - headersMapper: Mappers.PhoneNumbersSearchAvailablePhoneNumbersHeaders + headersMapper: Mappers.PhoneNumbersSearchAvailablePhoneNumbersHeaders, }, 201: { bodyMapper: Mappers.PhoneNumberSearchResult, - headersMapper: Mappers.PhoneNumbersSearchAvailablePhoneNumbersHeaders + headersMapper: Mappers.PhoneNumbersSearchAvailablePhoneNumbersHeaders, }, 202: { bodyMapper: Mappers.PhoneNumberSearchResult, - headersMapper: Mappers.PhoneNumbersSearchAvailablePhoneNumbersHeaders + headersMapper: Mappers.PhoneNumbersSearchAvailablePhoneNumbersHeaders, }, 204: { bodyMapper: Mappers.PhoneNumberSearchResult, - headersMapper: Mappers.PhoneNumbersSearchAvailablePhoneNumbersHeaders + headersMapper: Mappers.PhoneNumbersSearchAvailablePhoneNumbersHeaders, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, requestBody: { parameterPath: { @@ -1193,61 +1216,61 @@ const searchAvailablePhoneNumbersOperationSpec: coreClient.OperationSpec = { assignmentType: ["assignmentType"], capabilities: ["capabilities"], areaCode: ["options", "areaCode"], - quantity: ["options", "quantity"] + quantity: ["options", "quantity"], }, - mapper: { ...Mappers.PhoneNumberSearchRequest, required: true } + mapper: { ...Mappers.PhoneNumberSearchRequest, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.countryCode], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getSearchResultOperationSpec: coreClient.OperationSpec = { path: "/availablePhoneNumbers/searchResults/{searchId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PhoneNumberSearchResult + bodyMapper: Mappers.PhoneNumberSearchResult, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.searchId], headerParameters: [Parameters.accept], - serializer + serializer, }; const purchasePhoneNumbersOperationSpec: coreClient.OperationSpec = { path: "/availablePhoneNumbers/:purchase", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.PhoneNumbersPurchasePhoneNumbersHeaders + headersMapper: Mappers.PhoneNumbersPurchasePhoneNumbersHeaders, }, 201: { - headersMapper: Mappers.PhoneNumbersPurchasePhoneNumbersHeaders + headersMapper: Mappers.PhoneNumbersPurchasePhoneNumbersHeaders, }, 202: { - headersMapper: Mappers.PhoneNumbersPurchasePhoneNumbersHeaders + headersMapper: Mappers.PhoneNumbersPurchasePhoneNumbersHeaders, }, 204: { - headersMapper: Mappers.PhoneNumbersPurchasePhoneNumbersHeaders + headersMapper: Mappers.PhoneNumbersPurchasePhoneNumbersHeaders, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, requestBody: { parameterPath: { searchId: ["options", "searchId"] }, - mapper: { ...Mappers.PhoneNumberPurchaseRequest, required: true } + mapper: { ...Mappers.PhoneNumberPurchaseRequest, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationOperationSpec: coreClient.OperationSpec = { path: "/phoneNumbers/operations/{operationId}", @@ -1255,16 +1278,16 @@ const getOperationOperationSpec: coreClient.OperationSpec = { responses: { 200: { bodyMapper: Mappers.PhoneNumberOperation, - headersMapper: Mappers.PhoneNumbersGetOperationHeaders + headersMapper: Mappers.PhoneNumbersGetOperationHeaders, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.operationId], headerParameters: [Parameters.accept], - serializer + serializer, }; const cancelOperationOperationSpec: coreClient.OperationSpec = { path: "/phoneNumbers/operations/{operationId}", @@ -1272,13 +1295,13 @@ const cancelOperationOperationSpec: coreClient.OperationSpec = { responses: { 204: {}, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.operationId], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateCapabilitiesOperationSpec: coreClient.OperationSpec = { path: "/phoneNumbers/{phoneNumber}/capabilities", @@ -1286,175 +1309,199 @@ const updateCapabilitiesOperationSpec: coreClient.OperationSpec = { responses: { 200: { bodyMapper: Mappers.PurchasedPhoneNumber, - headersMapper: Mappers.PhoneNumbersUpdateCapabilitiesHeaders + headersMapper: Mappers.PhoneNumbersUpdateCapabilitiesHeaders, }, 201: { bodyMapper: Mappers.PurchasedPhoneNumber, - headersMapper: Mappers.PhoneNumbersUpdateCapabilitiesHeaders + headersMapper: Mappers.PhoneNumbersUpdateCapabilitiesHeaders, }, 202: { bodyMapper: Mappers.PurchasedPhoneNumber, - headersMapper: Mappers.PhoneNumbersUpdateCapabilitiesHeaders + headersMapper: Mappers.PhoneNumbersUpdateCapabilitiesHeaders, }, 204: { bodyMapper: Mappers.PurchasedPhoneNumber, - headersMapper: Mappers.PhoneNumbersUpdateCapabilitiesHeaders + headersMapper: Mappers.PhoneNumbersUpdateCapabilitiesHeaders, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, requestBody: { parameterPath: { calling: ["options", "calling"], sms: ["options", "sms"] }, - mapper: Mappers.PhoneNumberCapabilitiesRequest + mapper: Mappers.PhoneNumberCapabilitiesRequest, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.phoneNumber], headerParameters: [Parameters.accept, Parameters.contentType1], mediaType: "json", - serializer + serializer, }; const getByNumberOperationSpec: coreClient.OperationSpec = { path: "/phoneNumbers/{phoneNumber}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PurchasedPhoneNumber + bodyMapper: Mappers.PurchasedPhoneNumber, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.phoneNumber], headerParameters: [Parameters.accept], - serializer + serializer, }; const releasePhoneNumberOperationSpec: coreClient.OperationSpec = { path: "/phoneNumbers/{phoneNumber}", httpMethod: "DELETE", responses: { 200: { - headersMapper: Mappers.PhoneNumbersReleasePhoneNumberHeaders + headersMapper: Mappers.PhoneNumbersReleasePhoneNumberHeaders, }, 201: { - headersMapper: Mappers.PhoneNumbersReleasePhoneNumberHeaders + headersMapper: Mappers.PhoneNumbersReleasePhoneNumberHeaders, }, 202: { - headersMapper: Mappers.PhoneNumbersReleasePhoneNumberHeaders + headersMapper: Mappers.PhoneNumbersReleasePhoneNumberHeaders, }, 204: { - headersMapper: Mappers.PhoneNumbersReleasePhoneNumberHeaders + headersMapper: Mappers.PhoneNumbersReleasePhoneNumberHeaders, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.phoneNumber], headerParameters: [Parameters.accept], - serializer + serializer, }; const listPhoneNumbersOperationSpec: coreClient.OperationSpec = { path: "/phoneNumbers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PurchasedPhoneNumbers + bodyMapper: Mappers.PurchasedPhoneNumbers, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, queryParameters: [Parameters.skip, Parameters.apiVersion, Parameters.top], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.accept], - serializer + serializer, +}; +const operatorInformationSearchOperationSpec: coreClient.OperationSpec = { + path: "/operatorInformation/:search", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.OperatorInformationResult, + }, + default: { + bodyMapper: Mappers.CommunicationErrorResponse, + }, + }, + requestBody: { + parameterPath: { + phoneNumbers: ["phoneNumbers"], + options: ["options", "options"], + }, + mapper: { ...Mappers.OperatorInformationRequest, required: true }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, }; const listAreaCodesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PhoneNumberAreaCodes + bodyMapper: Mappers.PhoneNumberAreaCodes, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, urlParameters: [ Parameters.endpoint, Parameters.countryCode, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept, Parameters.acceptLanguage], - serializer + serializer, }; const listAvailableCountriesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PhoneNumberCountries + bodyMapper: Mappers.PhoneNumberCountries, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, urlParameters: [Parameters.endpoint, Parameters.nextLink], headerParameters: [Parameters.accept, Parameters.acceptLanguage], - serializer + serializer, }; const listAvailableLocalitiesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PhoneNumberLocalities + bodyMapper: Mappers.PhoneNumberLocalities, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, urlParameters: [ Parameters.endpoint, Parameters.countryCode, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept, Parameters.acceptLanguage], - serializer + serializer, }; const listOfferingsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OfferingsResponse + bodyMapper: Mappers.OfferingsResponse, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, urlParameters: [ Parameters.endpoint, Parameters.countryCode, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept, Parameters.acceptLanguage], - serializer + serializer, }; const listPhoneNumbersNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PurchasedPhoneNumbers + bodyMapper: Mappers.PurchasedPhoneNumbers, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, urlParameters: [Parameters.endpoint, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/communication/communication-phone-numbers/src/generated/src/operationsInterfaces/phoneNumbers.ts b/sdk/communication/communication-phone-numbers/src/generated/src/operationsInterfaces/phoneNumbers.ts index c6f45a5bb26f..37375d736b80 100644 --- a/sdk/communication/communication-phone-numbers/src/generated/src/operationsInterfaces/phoneNumbers.ts +++ b/sdk/communication/communication-phone-numbers/src/generated/src/operationsInterfaces/phoneNumbers.ts @@ -36,7 +36,9 @@ import { PhoneNumbersGetByNumberOptionalParams, PhoneNumbersGetByNumberResponse, PhoneNumbersReleasePhoneNumberOptionalParams, - PhoneNumbersReleasePhoneNumberResponse + PhoneNumbersReleasePhoneNumberResponse, + PhoneNumbersOperatorInformationSearchOptionalParams, + PhoneNumbersOperatorInformationSearchResponse, } from "../models"; /// @@ -51,14 +53,14 @@ export interface PhoneNumbers { listAreaCodes( countryCode: string, phoneNumberType: PhoneNumberType, - options?: PhoneNumbersListAreaCodesOptionalParams + options?: PhoneNumbersListAreaCodesOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the list of supported countries. * @param options The options parameters. */ listAvailableCountries( - options?: PhoneNumbersListAvailableCountriesOptionalParams + options?: PhoneNumbersListAvailableCountriesOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the list of cities or towns with available phone numbers. @@ -67,7 +69,7 @@ export interface PhoneNumbers { */ listAvailableLocalities( countryCode: string, - options?: PhoneNumbersListAvailableLocalitiesOptionalParams + options?: PhoneNumbersListAvailableLocalitiesOptionalParams, ): PagedAsyncIterableIterator; /** * List available offerings of capabilities with rates for the given country. @@ -76,14 +78,14 @@ export interface PhoneNumbers { */ listOfferings( countryCode: string, - options?: PhoneNumbersListOfferingsOptionalParams + options?: PhoneNumbersListOfferingsOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the list of all purchased phone numbers. * @param options The options parameters. */ listPhoneNumbers( - options?: PhoneNumbersListPhoneNumbersOptionalParams + options?: PhoneNumbersListPhoneNumbersOptionalParams, ): PagedAsyncIterableIterator; /** * Search for available phone numbers to purchase. @@ -99,7 +101,7 @@ export interface PhoneNumbers { phoneNumberType: PhoneNumberType, assignmentType: PhoneNumberAssignmentType, capabilities: PhoneNumberCapabilities, - options?: PhoneNumbersSearchAvailablePhoneNumbersOptionalParams + options?: PhoneNumbersSearchAvailablePhoneNumbersOptionalParams, ): Promise< PollerLike< PollOperationState, @@ -120,7 +122,7 @@ export interface PhoneNumbers { phoneNumberType: PhoneNumberType, assignmentType: PhoneNumberAssignmentType, capabilities: PhoneNumberCapabilities, - options?: PhoneNumbersSearchAvailablePhoneNumbersOptionalParams + options?: PhoneNumbersSearchAvailablePhoneNumbersOptionalParams, ): Promise; /** * Gets a phone number search result by search id. @@ -129,14 +131,14 @@ export interface PhoneNumbers { */ getSearchResult( searchId: string, - options?: PhoneNumbersGetSearchResultOptionalParams + options?: PhoneNumbersGetSearchResultOptionalParams, ): Promise; /** * Purchases phone numbers. * @param options The options parameters. */ beginPurchasePhoneNumbers( - options?: PhoneNumbersPurchasePhoneNumbersOptionalParams + options?: PhoneNumbersPurchasePhoneNumbersOptionalParams, ): Promise< PollerLike< PollOperationState, @@ -148,7 +150,7 @@ export interface PhoneNumbers { * @param options The options parameters. */ beginPurchasePhoneNumbersAndWait( - options?: PhoneNumbersPurchasePhoneNumbersOptionalParams + options?: PhoneNumbersPurchasePhoneNumbersOptionalParams, ): Promise; /** * Gets an operation by its id. @@ -157,7 +159,7 @@ export interface PhoneNumbers { */ getOperation( operationId: string, - options?: PhoneNumbersGetOperationOptionalParams + options?: PhoneNumbersGetOperationOptionalParams, ): Promise; /** * Cancels an operation by its id. @@ -166,7 +168,7 @@ export interface PhoneNumbers { */ cancelOperation( operationId: string, - options?: PhoneNumbersCancelOperationOptionalParams + options?: PhoneNumbersCancelOperationOptionalParams, ): Promise; /** * Updates the capabilities of a phone number. @@ -176,7 +178,7 @@ export interface PhoneNumbers { */ beginUpdateCapabilities( phoneNumber: string, - options?: PhoneNumbersUpdateCapabilitiesOptionalParams + options?: PhoneNumbersUpdateCapabilitiesOptionalParams, ): Promise< PollerLike< PollOperationState, @@ -191,7 +193,7 @@ export interface PhoneNumbers { */ beginUpdateCapabilitiesAndWait( phoneNumber: string, - options?: PhoneNumbersUpdateCapabilitiesOptionalParams + options?: PhoneNumbersUpdateCapabilitiesOptionalParams, ): Promise; /** * Gets the details of the given purchased phone number. @@ -201,7 +203,7 @@ export interface PhoneNumbers { */ getByNumber( phoneNumber: string, - options?: PhoneNumbersGetByNumberOptionalParams + options?: PhoneNumbersGetByNumberOptionalParams, ): Promise; /** * Releases a purchased phone number. @@ -210,7 +212,7 @@ export interface PhoneNumbers { */ beginReleasePhoneNumber( phoneNumber: string, - options?: PhoneNumbersReleasePhoneNumberOptionalParams + options?: PhoneNumbersReleasePhoneNumberOptionalParams, ): Promise< PollerLike< PollOperationState, @@ -224,6 +226,15 @@ export interface PhoneNumbers { */ beginReleasePhoneNumberAndWait( phoneNumber: string, - options?: PhoneNumbersReleasePhoneNumberOptionalParams + options?: PhoneNumbersReleasePhoneNumberOptionalParams, ): Promise; + /** + * Searches for number format and operator information for a given list of phone numbers. + * @param phoneNumbers Phone number(s) whose operator information is being requested + * @param options The options parameters. + */ + operatorInformationSearch( + phoneNumbers: string[], + options?: PhoneNumbersOperatorInformationSearchOptionalParams, + ): Promise; } diff --git a/sdk/communication/communication-phone-numbers/src/generated/src/pagingHelper.ts b/sdk/communication/communication-phone-numbers/src/generated/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/communication/communication-phone-numbers/src/generated/src/pagingHelper.ts +++ b/sdk/communication/communication-phone-numbers/src/generated/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/communication/communication-phone-numbers/src/generated/src/phoneNumbersClient.ts b/sdk/communication/communication-phone-numbers/src/generated/src/phoneNumbersClient.ts index 92dac483fee0..313ce282de29 100644 --- a/sdk/communication/communication-phone-numbers/src/generated/src/phoneNumbersClient.ts +++ b/sdk/communication/communication-phone-numbers/src/generated/src/phoneNumbersClient.ts @@ -10,7 +10,7 @@ import * as coreClient from "@azure/core-client"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import { PhoneNumbersImpl } from "./operations"; import { PhoneNumbers } from "./operationsInterfaces"; @@ -35,7 +35,7 @@ export class PhoneNumbersClient extends coreClient.ServiceClient { options = {}; } const defaults: PhoneNumbersClientOptionalParams = { - requestContentType: "application/json; charset=utf-8" + requestContentType: "application/json; charset=utf-8", }; const packageDetails = `azsdk-js-communication-phone-numbers/1.2.1`; @@ -48,16 +48,16 @@ export class PhoneNumbersClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, - endpoint: options.endpoint ?? options.baseUri ?? "{endpoint}" + endpoint: options.endpoint ?? options.baseUri ?? "{endpoint}", }; super(optionsWithDefaults); // Parameter assignments this.endpoint = endpoint; // Assigning values to Constant parameters - this.apiVersion = options.apiVersion || "2022-12-01"; + this.apiVersion = options.apiVersion || "2024-03-01-preview"; this.phoneNumbers = new PhoneNumbersImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -71,7 +71,7 @@ export class PhoneNumbersClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -85,7 +85,7 @@ export class PhoneNumbersClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } diff --git a/sdk/communication/communication-phone-numbers/src/generated/src/tracing.ts b/sdk/communication/communication-phone-numbers/src/generated/src/tracing.ts index 202b328faa07..1307019cc683 100644 --- a/sdk/communication/communication-phone-numbers/src/generated/src/tracing.ts +++ b/sdk/communication/communication-phone-numbers/src/generated/src/tracing.ts @@ -11,5 +11,5 @@ import { createTracingClient } from "@azure/core-tracing"; export const tracingClient = createTracingClient({ namespace: "Microsoft.Communication", packageName: "@azure/communication-phone-numbers", - packageVersion: "1.2.1" + packageVersion: "1.2.1", }); diff --git a/sdk/communication/communication-phone-numbers/src/models.ts b/sdk/communication/communication-phone-numbers/src/models.ts index 195fecdcb925..60cd97407ede 100644 --- a/sdk/communication/communication-phone-numbers/src/models.ts +++ b/sdk/communication/communication-phone-numbers/src/models.ts @@ -66,6 +66,13 @@ export interface ListLocalitiesOptions extends OperationOptions { administrativeDivision?: string; } +/** + * Additional options for the search operator information request. + */ +export interface SearchOperatorInformationOptions extends OperationOptions { + includeAdditionalOperatorDetails: boolean; +} + /** * Additional options that can be passed to list SIP routes. */ @@ -98,8 +105,14 @@ export { PhoneNumberOffering, PhoneNumberSearchRequest, PhoneNumberSearchResult, + PhoneNumberSearchResultError, PhoneNumberType, PurchasedPhoneNumber, + OperatorDetails, + OperatorInformation, + OperatorInformationOptions, + OperatorInformationResult, + OperatorNumberType, } from "./generated/src/models/"; export { SipRoutingError, SipTrunkRoute } from "./generated/src/siprouting/models"; diff --git a/sdk/communication/communication-phone-numbers/src/phoneNumbersClient.ts b/sdk/communication/communication-phone-numbers/src/phoneNumbersClient.ts index 9caf5eb669e6..d04eb5307973 100644 --- a/sdk/communication/communication-phone-numbers/src/phoneNumbersClient.ts +++ b/sdk/communication/communication-phone-numbers/src/phoneNumbersClient.ts @@ -13,6 +13,7 @@ import { PollOperationState, PollerLike } from "@azure/core-lro"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PhoneNumbersClient as PhoneNumbersGeneratedClient } from "./generated/src"; import { + OperatorInformationResult, PhoneNumberAreaCode, PhoneNumberCapabilitiesRequest, PhoneNumberCountry, @@ -32,6 +33,7 @@ import { PurchasePhoneNumbersResult, ReleasePhoneNumberResult, SearchAvailablePhoneNumbersRequest, + SearchOperatorInformationOptions, } from "./models"; import { BeginPurchasePhoneNumbersOptions, @@ -538,4 +540,36 @@ export class PhoneNumbersClient { span.end(); } } + + /** + * Search for operator information about specified phone numbers. + * + * @param phoneNumbers - The phone numbers to search. + * @param options - Additional request options. + */ + public searchOperatorInformation( + phoneNumbers: string[], + options: SearchOperatorInformationOptions = { includeAdditionalOperatorDetails: false }, + ): Promise { + const { span, updatedOptions } = tracingClient.startSpan( + "PhoneNumbersClient-searchOperatorInformation", + options, + ); + + try { + return this.client.phoneNumbers.operatorInformationSearch(phoneNumbers, { + ...updatedOptions, + options: { includeAdditionalOperatorDetails: options.includeAdditionalOperatorDetails }, + }); + } catch (e: any) { + span.setStatus({ + status: "error", + error: e, + }); + + throw e; + } finally { + span.end(); + } + } } diff --git a/sdk/communication/communication-phone-numbers/swagger/README.md b/sdk/communication/communication-phone-numbers/swagger/README.md index 71b88d9771d1..827caaaf224c 100644 --- a/sdk/communication/communication-phone-numbers/swagger/README.md +++ b/sdk/communication/communication-phone-numbers/swagger/README.md @@ -7,11 +7,11 @@ ```yaml package-name: "@azure/communication-phone-numbers" description: Phone number configuration client -package-version: 1.2.1 +package-version: 1.3.0-beta.2 license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../src/generated -tag: package-phonenumber-2022-12-01 -require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/edf1d7365a436f0b124c0cecbefd63499e049af0/specification/communication/data-plane/PhoneNumbers/readme.md +tag: package-phonenumber-2024-03-01-preview +require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/b56afb26c5450157006a3a1d9be57bae429051a2/specification/communication/data-plane/PhoneNumbers/readme.md model-date-time-as-string: false optional-response-headers: true payload-flattening-threshold: 10 @@ -63,3 +63,19 @@ directive: transform: > $["x-ms-client-name"] = "AreaCodeItem"; ``` + +``` yaml +directive: + from: swagger-document + where: $.definitions.PhoneNumberSearchResult.properties.error.x-ms-enum + transform: > + $["name"] = "PhoneNumberSearchResultError"; +``` + +``` yaml +directive: + from: swagger-document + where: $.parameters.Endpoint + transform: > + $["format"] = ""; +``` diff --git a/sdk/communication/communication-phone-numbers/test/public/lro.search.spec.ts b/sdk/communication/communication-phone-numbers/test/public/lro.search.spec.ts index 4c7f35041476..8f5ee5fb89bb 100644 --- a/sdk/communication/communication-phone-numbers/test/public/lro.search.spec.ts +++ b/sdk/communication/communication-phone-numbers/test/public/lro.search.spec.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license. import { matrix } from "@azure/test-utils"; -import { Recorder, env } from "@azure-tools/test-recorder"; +import { Recorder, env, isPlaybackMode } from "@azure-tools/test-recorder"; import { assert } from "chai"; import { Context } from "mocha"; import { PhoneNumbersClient, SearchAvailablePhoneNumbersRequest } from "../../src"; @@ -25,7 +25,7 @@ matrix([[true, false]], async function (useAad) { before(function (this: Context) { const skipPhoneNumbersTests = env.COMMUNICATION_SKIP_INT_PHONENUMBERS_TESTS === "true"; - if (skipPhoneNumbersTests) { + if (skipPhoneNumbersTests && !isPlaybackMode()) { this.skip(); } }); diff --git a/sdk/communication/communication-phone-numbers/test/public/lro.update.spec.ts b/sdk/communication/communication-phone-numbers/test/public/lro.update.spec.ts index 5c359b03dfc4..1a6646e58c0a 100644 --- a/sdk/communication/communication-phone-numbers/test/public/lro.update.spec.ts +++ b/sdk/communication/communication-phone-numbers/test/public/lro.update.spec.ts @@ -18,7 +18,8 @@ matrix([[true, false]], async function (useAad) { let client: PhoneNumbersClient; before(function (this: Context) { - const skipPhoneNumbersTests = env.COMMUNICATION_SKIP_INT_PHONENUMBERS_TESTS === "true"; + const skipPhoneNumbersTests = + !isPlaybackMode() && env.COMMUNICATION_SKIP_INT_PHONENUMBERS_TESTS === "true"; const skipUpdateCapabilitiesLiveTests = !isPlaybackMode() && env.SKIP_UPDATE_CAPABILITIES_LIVE_TESTS === "true"; diff --git a/sdk/communication/communication-phone-numbers/test/public/numberLookup.spec.ts b/sdk/communication/communication-phone-numbers/test/public/numberLookup.spec.ts new file mode 100644 index 000000000000..78170e8c6f30 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/test/public/numberLookup.spec.ts @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { Recorder } from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; +import { PhoneNumbersClient } from "../../src"; +import { createRecordedClient } from "./utils/recordedClient"; +import { getPhoneNumber } from "./utils/testPhoneNumber"; + +describe(`PhoneNumbersClient - look up phone number`, function () { + let recorder: Recorder; + let client: PhoneNumbersClient; + + beforeEach(async function (this: Context) { + ({ client, recorder } = await createRecordedClient(this)); + }); + + afterEach(async function (this: Context) { + if (!this.currentTest?.isPending()) { + await recorder.stop(); + } + }); + + it("can look up a phone number", async function (this: Context) { + const phoneNumbers = [getPhoneNumber()]; + const operatorInformation = await client.searchOperatorInformation(phoneNumbers); + + const resultPhoneNumber = operatorInformation.values + ? operatorInformation.values[0].phoneNumber + : ""; + assert.strictEqual(resultPhoneNumber, phoneNumbers[0]); + }).timeout(60000); + + it("errors if multiple phone numbers are requested", async function () { + const phoneNumbers = [getPhoneNumber(), getPhoneNumber()]; + try { + await client.searchOperatorInformation(phoneNumbers); + } catch (error: any) { + assert.strictEqual(error.code, "BadRequest"); + assert.strictEqual(error.message, "Can only accept one phoneNumber"); + } + }).timeout(60000); + + it("respects includeAdditionalOperatorDetails option", async function (this: Context) { + const phoneNumbers = [getPhoneNumber()]; + + let operatorInformation = await client.searchOperatorInformation(phoneNumbers, { + includeAdditionalOperatorDetails: false, + }); + let resultPhoneNumber = operatorInformation.values + ? operatorInformation.values[0].phoneNumber + : ""; + assert.strictEqual(resultPhoneNumber, phoneNumbers[0]); + assert.isNotNull( + operatorInformation.values ? operatorInformation.values[0].nationalFormat : null, + ); + assert.isNotNull( + operatorInformation.values ? operatorInformation.values[0].internationalFormat : null, + ); + assert.isNull(operatorInformation.values ? operatorInformation.values[0].isoCountryCode : null); + assert.isNull(operatorInformation.values ? operatorInformation.values[0].numberType : null); + assert.isNull( + operatorInformation.values ? operatorInformation.values[0].operatorDetails : null, + ); + + operatorInformation = await client.searchOperatorInformation(phoneNumbers, { + includeAdditionalOperatorDetails: true, + }); + resultPhoneNumber = operatorInformation.values ? operatorInformation.values[0].phoneNumber : ""; + assert.strictEqual(resultPhoneNumber, phoneNumbers[0]); + assert.isNotNull( + operatorInformation.values ? operatorInformation.values[0].nationalFormat : null, + ); + assert.isNotNull( + operatorInformation.values ? operatorInformation.values[0].internationalFormat : null, + ); + assert.isNotNull( + operatorInformation.values ? operatorInformation.values[0].isoCountryCode : null, + ); + assert.isNotNull(operatorInformation.values ? operatorInformation.values[0].numberType : null); + assert.isNotNull( + operatorInformation.values ? operatorInformation.values[0].operatorDetails : null, + ); + }).timeout(60000); +}); diff --git a/sdk/communication/communication-phone-numbers/test/public/utils/recordedClient.ts b/sdk/communication/communication-phone-numbers/test/public/utils/recordedClient.ts index 66686791e282..7f388f056f25 100644 --- a/sdk/communication/communication-phone-numbers/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-phone-numbers/test/public/utils/recordedClient.ts @@ -29,14 +29,11 @@ export interface RecordedClient { const envSetupForPlayback: { [k: string]: string } = { COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING: "endpoint=https://endpoint/;accesskey=banana", - INCLUDE_PHONENUMBER_LIVE_TESTS: "false", - SKIP_UPDATE_CAPABILITIES_LIVE_TESTS: "false", COMMUNICATION_ENDPOINT: "https://endpoint/", AZURE_CLIENT_ID: "SomeClientId", AZURE_CLIENT_SECRET: "azure_client_secret", AZURE_TENANT_ID: "SomeTenantId", AZURE_PHONE_NUMBER: "+14155550100", - COMMUNICATION_SKIP_INT_PHONENUMBERS_TESTS: "false", AZURE_USERAGENT_OVERRIDE: "fake-useragent", }; diff --git a/sdk/communication/communication-phone-numbers/tests.yml b/sdk/communication/communication-phone-numbers/tests.yml index 5e4c1518d83a..2722c1e8a928 100644 --- a/sdk/communication/communication-phone-numbers/tests.yml +++ b/sdk/communication/communication-phone-numbers/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/communication-phone-numbers" ServiceDirectory: communication diff --git a/sdk/communication/communication-recipient-verification/tests.yml b/sdk/communication/communication-recipient-verification/tests.yml index 5a220b503e41..c50f84b602b1 100644 --- a/sdk/communication/communication-recipient-verification/tests.yml +++ b/sdk/communication/communication-recipient-verification/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-tools/communication-recipient-verification" ServiceDirectory: communication diff --git a/sdk/communication/communication-rooms/tests.yml b/sdk/communication/communication-rooms/tests.yml index b21e88b5a278..aacbe11e28c1 100644 --- a/sdk/communication/communication-rooms/tests.yml +++ b/sdk/communication/communication-rooms/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/communication-rooms" ServiceDirectory: communication diff --git a/sdk/communication/communication-short-codes/tests.yml b/sdk/communication/communication-short-codes/tests.yml index 3aef1aedfbf0..4c5dc346860c 100644 --- a/sdk/communication/communication-short-codes/tests.yml +++ b/sdk/communication/communication-short-codes/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-tools/communication-short-codes" ServiceDirectory: communication diff --git a/sdk/communication/communication-sms/tests.yml b/sdk/communication/communication-sms/tests.yml index d01d1aeb9158..f29af967e1c6 100644 --- a/sdk/communication/communication-sms/tests.yml +++ b/sdk/communication/communication-sms/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/communication-sms" ServiceDirectory: communication diff --git a/sdk/communication/communication-tiering/tests.yml b/sdk/communication/communication-tiering/tests.yml index 9a0f31550477..2a95c9266ac3 100644 --- a/sdk/communication/communication-tiering/tests.yml +++ b/sdk/communication/communication-tiering/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-tools/communication-tiering" ServiceDirectory: communication diff --git a/sdk/communication/communication-toll-free-verification/tests.yml b/sdk/communication/communication-toll-free-verification/tests.yml index 9b3deb71ad76..28d647604926 100644 --- a/sdk/communication/communication-toll-free-verification/tests.yml +++ b/sdk/communication/communication-toll-free-verification/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-tools/communication-toll-free-verification" ServiceDirectory: communication diff --git a/sdk/compute/arm-compute/CHANGELOG.md b/sdk/compute/arm-compute/CHANGELOG.md index f2ed7c4182f7..720e88b499cf 100644 --- a/sdk/compute/arm-compute/CHANGELOG.md +++ b/sdk/compute/arm-compute/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History + +## 21.5.0 (2024-03-01) + +**Features** -## 21.4.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Interface GalleryArtifactVersionFullSource has a new optional parameter virtualMachineId + + ## 21.4.0 (2023-12-28) **Features** diff --git a/sdk/compute/arm-compute/LICENSE b/sdk/compute/arm-compute/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/compute/arm-compute/LICENSE +++ b/sdk/compute/arm-compute/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/compute/arm-compute/_meta.json b/sdk/compute/arm-compute/_meta.json index c573873d86d0..b6ab9e1afb26 100644 --- a/sdk/compute/arm-compute/_meta.json +++ b/sdk/compute/arm-compute/_meta.json @@ -1,8 +1,8 @@ { - "commit": "4792bce7667477529991457890b4a6b670e70508", + "commit": "c42fcc06eb3581fd22384936e55288496b66a0d4", "readme": "specification/compute/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\compute\\resource-manager\\readme.md --use=@autorest/typescript@6.0.13 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\compute\\resource-manager\\readme.md --use=@autorest/typescript@6.0.17 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", - "use": "@autorest/typescript@6.0.13" + "use": "@autorest/typescript@6.0.17" } \ No newline at end of file diff --git a/sdk/compute/arm-compute/assets.json b/sdk/compute/arm-compute/assets.json index 06c93eb27b63..4ab798d0af3f 100644 --- a/sdk/compute/arm-compute/assets.json +++ b/sdk/compute/arm-compute/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/compute/arm-compute", - "Tag": "js/compute/arm-compute_dd8e9a143f" + "Tag": "js/compute/arm-compute_627455e772" } diff --git a/sdk/compute/arm-compute/package.json b/sdk/compute/arm-compute/package.json index 48ac66790f42..a99d7a4c7de0 100644 --- a/sdk/compute/arm-compute/package.json +++ b/sdk/compute/arm-compute/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ComputeManagementClient.", - "version": "21.4.1", + "version": "21.5.0", "engines": { "node": ">=18.0.0" }, @@ -12,8 +12,8 @@ "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.12.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -79,7 +79,6 @@ "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", diff --git a/sdk/compute/arm-compute/review/arm-compute.api.md b/sdk/compute/arm-compute/review/arm-compute.api.md index 509ce0009873..2f2f932c52ed 100644 --- a/sdk/compute/arm-compute/review/arm-compute.api.md +++ b/sdk/compute/arm-compute/review/arm-compute.api.md @@ -2540,6 +2540,7 @@ export interface GalleryArtifactSource { // @public export interface GalleryArtifactVersionFullSource extends GalleryArtifactVersionSource { communityGalleryImageId?: string; + virtualMachineId?: string; } // @public diff --git a/sdk/compute/arm-compute/samples-dev/availabilitySetsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/availabilitySetsCreateOrUpdateSample.ts index 4ae9419814a1..81654d45a8dc 100644 --- a/sdk/compute/arm-compute/samples-dev/availabilitySetsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/availabilitySetsCreateOrUpdateSample.ts @@ -29,14 +29,14 @@ async function createAnAvailabilitySet() { const parameters: AvailabilitySet = { location: "westus", platformFaultDomainCount: 2, - platformUpdateDomainCount: 20 + platformUpdateDomainCount: 20, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.availabilitySets.createOrUpdate( resourceGroupName, availabilitySetName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/availabilitySetsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/availabilitySetsDeleteSample.ts index a5082c67c213..268ebf39c19f 100644 --- a/sdk/compute/arm-compute/samples-dev/availabilitySetsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/availabilitySetsDeleteSample.ts @@ -30,7 +30,7 @@ async function availabilitySetDeleteMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.availabilitySets.delete( resourceGroupName, - availabilitySetName + availabilitySetName, ); console.log(result); } @@ -51,7 +51,7 @@ async function availabilitySetDeleteMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.availabilitySets.delete( resourceGroupName, - availabilitySetName + availabilitySetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/availabilitySetsGetSample.ts b/sdk/compute/arm-compute/samples-dev/availabilitySetsGetSample.ts index 3e0b4504e136..531c122aa26a 100644 --- a/sdk/compute/arm-compute/samples-dev/availabilitySetsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/availabilitySetsGetSample.ts @@ -30,7 +30,7 @@ async function availabilitySetGetMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.availabilitySets.get( resourceGroupName, - availabilitySetName + availabilitySetName, ); console.log(result); } @@ -51,7 +51,7 @@ async function availabilitySetGetMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.availabilitySets.get( resourceGroupName, - availabilitySetName + availabilitySetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/availabilitySetsListAvailableSizesSample.ts b/sdk/compute/arm-compute/samples-dev/availabilitySetsListAvailableSizesSample.ts index da106655ad9a..4e42e4c546d8 100644 --- a/sdk/compute/arm-compute/samples-dev/availabilitySetsListAvailableSizesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/availabilitySetsListAvailableSizesSample.ts @@ -31,7 +31,7 @@ async function availabilitySetListAvailableSizesMaximumSetGen() { const resArray = new Array(); for await (let item of client.availabilitySets.listAvailableSizes( resourceGroupName, - availabilitySetName + availabilitySetName, )) { resArray.push(item); } @@ -55,7 +55,7 @@ async function availabilitySetListAvailableSizesMinimumSetGen() { const resArray = new Array(); for await (let item of client.availabilitySets.listAvailableSizes( resourceGroupName, - availabilitySetName + availabilitySetName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/availabilitySetsListBySubscriptionSample.ts b/sdk/compute/arm-compute/samples-dev/availabilitySetsListBySubscriptionSample.ts index 7b05ad01a62b..b16bab0d03fe 100644 --- a/sdk/compute/arm-compute/samples-dev/availabilitySetsListBySubscriptionSample.ts +++ b/sdk/compute/arm-compute/samples-dev/availabilitySetsListBySubscriptionSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { AvailabilitySetsListBySubscriptionOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; diff --git a/sdk/compute/arm-compute/samples-dev/availabilitySetsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/availabilitySetsUpdateSample.ts index 6f20cb4ba9f0..f5862c24a093 100644 --- a/sdk/compute/arm-compute/samples-dev/availabilitySetsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/availabilitySetsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { AvailabilitySetUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -33,24 +33,22 @@ async function availabilitySetUpdateMaximumSetGen() { platformFaultDomainCount: 2, platformUpdateDomainCount: 20, proximityPlacementGroup: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, sku: { name: "DSv3-Type1", capacity: 7, tier: "aaa" }, tags: { key2574: "aaaaaaaa" }, virtualMachines: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - ] + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.availabilitySets.update( resourceGroupName, availabilitySetName, - parameters + parameters, ); console.log(result); } @@ -73,7 +71,7 @@ async function availabilitySetUpdateMinimumSetGen() { const result = await client.availabilitySets.update( resourceGroupName, availabilitySetName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsCreateOrUpdateSample.ts index ce800888f48f..a670117d5bf8 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationGroup, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,18 +34,18 @@ async function createOrUpdateACapacityReservationGroup() { sharingProfile: { subscriptionIds: [ { id: "/subscriptions/{subscription-id1}" }, - { id: "/subscriptions/{subscription-id2}" } - ] + { id: "/subscriptions/{subscription-id2}" }, + ], }, tags: { department: "finance" }, - zones: ["1", "2"] + zones: ["1", "2"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.capacityReservationGroups.createOrUpdate( resourceGroupName, capacityReservationGroupName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsDeleteSample.ts index c06dd9f67957..94ed277eab18 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsDeleteSample.ts @@ -30,7 +30,7 @@ async function capacityReservationGroupDeleteMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.capacityReservationGroups.delete( resourceGroupName, - capacityReservationGroupName + capacityReservationGroupName, ); console.log(result); } @@ -51,7 +51,7 @@ async function capacityReservationGroupDeleteMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.capacityReservationGroups.delete( resourceGroupName, - capacityReservationGroupName + capacityReservationGroupName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsGetSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsGetSample.ts index 87ca92a4d6f7..82de4920495b 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationGroupsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function getACapacityReservationGroup() { const result = await client.capacityReservationGroups.get( resourceGroupName, capacityReservationGroupName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsListByResourceGroupSample.ts index b0ab68cbdd2d..0758be0b7724 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsListByResourceGroupSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationGroupsListByResourceGroupOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -30,14 +30,14 @@ async function listCapacityReservationGroupsInResourceGroup() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const expand = "virtualMachines/$ref"; const options: CapacityReservationGroupsListByResourceGroupOptionalParams = { - expand + expand, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.capacityReservationGroups.listByResourceGroup( resourceGroupName, - options + options, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsListBySubscriptionSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsListBySubscriptionSample.ts index 0ef8a0773052..212be0c3128c 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsListBySubscriptionSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsListBySubscriptionSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationGroupsListBySubscriptionOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -28,13 +28,13 @@ async function listCapacityReservationGroupsInSubscription() { process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const expand = "virtualMachines/$ref"; const options: CapacityReservationGroupsListBySubscriptionOptionalParams = { - expand + expand, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.capacityReservationGroups.listBySubscription( - options + options, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsUpdateSample.ts index 0ac2a9c8fdd7..043cff4b9792 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationGroupUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,14 +31,14 @@ async function capacityReservationGroupUpdateMaximumSetGen() { const capacityReservationGroupName = "aaaaaaaaaaaaaaaaaaaaaa"; const parameters: CapacityReservationGroupUpdate = { instanceView: {}, - tags: { key5355: "aaa" } + tags: { key5355: "aaa" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.capacityReservationGroups.update( resourceGroupName, capacityReservationGroupName, - parameters + parameters, ); console.log(result); } @@ -61,7 +61,7 @@ async function capacityReservationGroupUpdateMinimumSetGen() { const result = await client.capacityReservationGroups.update( resourceGroupName, capacityReservationGroupName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationsCreateOrUpdateSample.ts index c476f2944dca..0042121a1a53 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservation, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,7 +34,7 @@ async function createOrUpdateACapacityReservation() { location: "westus", sku: { name: "Standard_DS1_v2", capacity: 4 }, tags: { department: "HR" }, - zones: ["1"] + zones: ["1"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -42,7 +42,7 @@ async function createOrUpdateACapacityReservation() { resourceGroupName, capacityReservationGroupName, capacityReservationName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationsDeleteSample.ts index 1bc5d31d8c8e..6230084fece7 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationsDeleteSample.ts @@ -32,7 +32,7 @@ async function capacityReservationDeleteMaximumSetGen() { const result = await client.capacityReservations.beginDeleteAndWait( resourceGroupName, capacityReservationGroupName, - capacityReservationName + capacityReservationName, ); console.log(result); } @@ -55,7 +55,7 @@ async function capacityReservationDeleteMinimumSetGen() { const result = await client.capacityReservations.beginDeleteAndWait( resourceGroupName, capacityReservationGroupName, - capacityReservationName + capacityReservationName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationsGetSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationsGetSample.ts index 589ef4ac03af..536f3cd53b95 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -38,7 +38,7 @@ async function getACapacityReservation() { resourceGroupName, capacityReservationGroupName, capacityReservationName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationsListByCapacityReservationGroupSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationsListByCapacityReservationGroupSample.ts index 5daea6cd4226..877a9b20b370 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationsListByCapacityReservationGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationsListByCapacityReservationGroupSample.ts @@ -31,7 +31,7 @@ async function listCapacityReservationsInReservationGroup() { const resArray = new Array(); for await (let item of client.capacityReservations.listByCapacityReservationGroup( resourceGroupName, - capacityReservationGroupName + capacityReservationGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationsUpdateSample.ts index 56553cb737fb..b9ff00f83221 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -38,13 +38,13 @@ async function capacityReservationUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], - utilizationInfo: {} + utilizationInfo: {}, }, sku: { name: "Standard_DS1_v2", capacity: 7, tier: "aaa" }, - tags: { key4974: "aaaaaaaaaaaaaaaa" } + tags: { key4974: "aaaaaaaaaaaaaaaa" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -52,7 +52,7 @@ async function capacityReservationUpdateMaximumSetGen() { resourceGroupName, capacityReservationGroupName, capacityReservationName, - parameters + parameters, ); console.log(result); } @@ -77,7 +77,7 @@ async function capacityReservationUpdateMinimumSetGen() { resourceGroupName, capacityReservationGroupName, capacityReservationName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsGetOSFamilySample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsGetOSFamilySample.ts index ab6dc68501b8..a4e18fcff385 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsGetOSFamilySample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsGetOSFamilySample.ts @@ -29,7 +29,7 @@ async function getCloudServiceOSFamily() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServiceOperatingSystems.getOSFamily( location, - osFamilyName + osFamilyName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsGetOSVersionSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsGetOSVersionSample.ts index 0c7c0bc926e5..274cae0c36c3 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsGetOSVersionSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsGetOSVersionSample.ts @@ -29,7 +29,7 @@ async function getCloudServiceOSVersion() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServiceOperatingSystems.getOSVersion( location, - osVersionName + osVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsListOSFamiliesSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsListOSFamiliesSample.ts index 1fee46624d07..9a6714cc6fbc 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsListOSFamiliesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsListOSFamiliesSample.ts @@ -28,7 +28,7 @@ async function listCloudServiceOSFamiliesInASubscription() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.cloudServiceOperatingSystems.listOSFamilies( - location + location, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsListOSVersionsSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsListOSVersionsSample.ts index 895dfd1f6bf0..5df0cbb820ec 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsListOSVersionsSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsListOSVersionsSample.ts @@ -28,7 +28,7 @@ async function listCloudServiceOSVersionsInASubscription() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.cloudServiceOperatingSystems.listOSVersions( - location + location, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesDeleteSample.ts index 5254fe36483a..9856be3c0d30 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteCloudServiceRoleInstance() { const result = await client.cloudServiceRoleInstances.beginDeleteAndWait( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesGetInstanceViewSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesGetInstanceViewSample.ts index 3fcbb262bfe9..d85964b931f6 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesGetInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesGetInstanceViewSample.ts @@ -32,7 +32,7 @@ async function getInstanceViewOfCloudServiceRoleInstance() { const result = await client.cloudServiceRoleInstances.getInstanceView( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts index 9a38dad49fc4..a5e06d0be6c3 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts @@ -32,7 +32,7 @@ async function getCloudServiceRole() { const result = await client.cloudServiceRoleInstances.getRemoteDesktopFile( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesGetSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesGetSample.ts index 4e51d9d34e47..1e7d095773e5 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesGetSample.ts @@ -32,7 +32,7 @@ async function getCloudServiceRoleInstance() { const result = await client.cloudServiceRoleInstances.get( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesListSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesListSample.ts index 282f0e88a897..f32a30568aa6 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesListSample.ts @@ -31,7 +31,7 @@ async function listRoleInstancesInACloudService() { const resArray = new Array(); for await (let item of client.cloudServiceRoleInstances.list( resourceGroupName, - cloudServiceName + cloudServiceName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesRebuildSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesRebuildSample.ts index 4d7a8a253019..60ad73148a9b 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesRebuildSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesRebuildSample.ts @@ -32,7 +32,7 @@ async function rebuildCloudServiceRoleInstance() { const result = await client.cloudServiceRoleInstances.beginRebuildAndWait( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesReimageSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesReimageSample.ts index 93a439d57637..fdd0fdf3d780 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesReimageSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesReimageSample.ts @@ -32,7 +32,7 @@ async function reimageCloudServiceRoleInstance() { const result = await client.cloudServiceRoleInstances.beginReimageAndWait( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesRestartSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesRestartSample.ts index f08faf5cb377..98bce6b1552c 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesRestartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesRestartSample.ts @@ -32,7 +32,7 @@ async function restartCloudServiceRoleInstance() { const result = await client.cloudServiceRoleInstances.beginRestartAndWait( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceRolesGetSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceRolesGetSample.ts index 84e8b3456f22..9341d597dffd 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceRolesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceRolesGetSample.ts @@ -32,7 +32,7 @@ async function getCloudServiceRole() { const result = await client.cloudServiceRoles.get( roleName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceRolesListSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceRolesListSample.ts index d9e4e8fc7583..8e83d253d56a 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceRolesListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceRolesListSample.ts @@ -31,7 +31,7 @@ async function listRolesInACloudService() { const resArray = new Array(); for await (let item of client.cloudServiceRoles.list( resourceGroupName, - cloudServiceName + cloudServiceName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesCreateOrUpdateSample.ts index 3f9342725fa9..dc8b863eabe4 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesCreateOrUpdateSample.ts @@ -11,7 +11,7 @@ import { CloudService, CloudServicesCreateOrUpdateOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -44,31 +44,30 @@ async function createNewCloudServiceWithMultipleRoles() { name: "contosofe", properties: { publicIPAddress: { - id: - "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" - } - } - } - ] - } - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip", + }, + }, + }, + ], + }, + }, + ], }, packageUrl: "{PackageUrl}", roleProfile: { roles: [ { name: "ContosoFrontend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, }, { name: "ContosoBackend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } - } - ] + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, + }, + ], }, - upgradeMode: "Auto" - } + upgradeMode: "Auto", + }, }; const options: CloudServicesCreateOrUpdateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -76,7 +75,7 @@ async function createNewCloudServiceWithMultipleRoles() { const result = await client.cloudServices.beginCreateOrUpdateAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } @@ -107,32 +106,31 @@ async function createNewCloudServiceWithMultipleRolesInASpecificAvailabilityZone name: "contosofe", properties: { publicIPAddress: { - id: - "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" - } - } - } - ] - } - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip", + }, + }, + }, + ], + }, + }, + ], }, packageUrl: "{PackageUrl}", roleProfile: { roles: [ { name: "ContosoFrontend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, }, { name: "ContosoBackend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } - } - ] + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, + }, + ], }, - upgradeMode: "Auto" + upgradeMode: "Auto", }, - zones: ["1"] + zones: ["1"], }; const options: CloudServicesCreateOrUpdateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -140,7 +138,7 @@ async function createNewCloudServiceWithMultipleRolesInASpecificAvailabilityZone const result = await client.cloudServices.beginCreateOrUpdateAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } @@ -171,27 +169,26 @@ async function createNewCloudServiceWithSingleRole() { name: "myfe", properties: { publicIPAddress: { - id: - "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/myPublicIP" - } - } - } - ] - } - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/myPublicIP", + }, + }, + }, + ], + }, + }, + ], }, packageUrl: "{PackageUrl}", roleProfile: { roles: [ { name: "ContosoFrontend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } - } - ] + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, + }, + ], }, - upgradeMode: "Auto" - } + upgradeMode: "Auto", + }, }; const options: CloudServicesCreateOrUpdateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -199,7 +196,7 @@ async function createNewCloudServiceWithSingleRole() { const result = await client.cloudServices.beginCreateOrUpdateAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } @@ -230,43 +227,41 @@ async function createNewCloudServiceWithSingleRoleAndCertificateFromKeyVault() { name: "contosofe", properties: { publicIPAddress: { - id: - "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" - } - } - } - ] - } - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip", + }, + }, + }, + ], + }, + }, + ], }, osProfile: { secrets: [ { sourceVault: { - id: - "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.KeyVault/vaults/{keyvault-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.KeyVault/vaults/{keyvault-name}", }, vaultCertificates: [ { certificateUrl: - "https://{keyvault-name}.vault.azure.net:443/secrets/ContosoCertificate/{secret-id}" - } - ] - } - ] + "https://{keyvault-name}.vault.azure.net:443/secrets/ContosoCertificate/{secret-id}", + }, + ], + }, + ], }, packageUrl: "{PackageUrl}", roleProfile: { roles: [ { name: "ContosoFrontend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } - } - ] + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, + }, + ], }, - upgradeMode: "Auto" - } + upgradeMode: "Auto", + }, }; const options: CloudServicesCreateOrUpdateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -274,7 +269,7 @@ async function createNewCloudServiceWithSingleRoleAndCertificateFromKeyVault() { const result = await client.cloudServices.beginCreateOrUpdateAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } @@ -307,10 +302,10 @@ async function createNewCloudServiceWithSingleRoleAndRdpExtension() { publisher: "Microsoft.Windows.Azure.Extensions", settings: "UserAzure10/22/2021 15:05:45", - typeHandlerVersion: "1.2" - } - } - ] + typeHandlerVersion: "1.2", + }, + }, + ], }, networkProfile: { loadBalancerConfigurations: [ @@ -322,27 +317,26 @@ async function createNewCloudServiceWithSingleRoleAndRdpExtension() { name: "contosofe", properties: { publicIPAddress: { - id: - "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" - } - } - } - ] - } - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip", + }, + }, + }, + ], + }, + }, + ], }, packageUrl: "{PackageUrl}", roleProfile: { roles: [ { name: "ContosoFrontend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } - } - ] + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, + }, + ], }, - upgradeMode: "Auto" - } + upgradeMode: "Auto", + }, }; const options: CloudServicesCreateOrUpdateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -350,7 +344,7 @@ async function createNewCloudServiceWithSingleRoleAndRdpExtension() { const result = await client.cloudServices.beginCreateOrUpdateAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesDeleteInstancesSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesDeleteInstancesSample.ts index d42f6ac115bd..87cb1725998e 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesDeleteInstancesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesDeleteInstancesSample.ts @@ -11,7 +11,7 @@ import { RoleInstances, CloudServicesDeleteInstancesOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,7 +31,7 @@ async function deleteCloudServiceRoleInstancesInACloudService() { process.env["COMPUTE_RESOURCE_GROUP"] || "ConstosoRG"; const cloudServiceName = "{cs-name}"; const parameters: RoleInstances = { - roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"] + roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"], }; const options: CloudServicesDeleteInstancesOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -39,7 +39,7 @@ async function deleteCloudServiceRoleInstancesInACloudService() { const result = await client.cloudServices.beginDeleteInstancesAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesDeleteSample.ts index 4f21f5533124..987468b55800 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteCloudService() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServices.beginDeleteAndWait( resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesGetInstanceViewSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesGetInstanceViewSample.ts index 5c647ca833fd..c25984e5b520 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesGetInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesGetInstanceViewSample.ts @@ -30,7 +30,7 @@ async function getCloudServiceInstanceViewWithMultipleRoles() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServices.getInstanceView( resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesGetSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesGetSample.ts index 03929a56022a..28bfc86b4ad8 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesGetSample.ts @@ -30,7 +30,7 @@ async function getCloudServiceWithMultipleRolesAndRdpExtension() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServices.get( resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesPowerOffSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesPowerOffSample.ts index 212bf61669d3..531159633edb 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesPowerOffSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesPowerOffSample.ts @@ -30,7 +30,7 @@ async function stopOrPowerOffCloudService() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServices.beginPowerOffAndWait( resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesRebuildSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesRebuildSample.ts index a42ce6b3f68b..c359978941b0 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesRebuildSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesRebuildSample.ts @@ -11,7 +11,7 @@ import { RoleInstances, CloudServicesRebuildOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,7 +31,7 @@ async function rebuildCloudServiceRoleInstancesInACloudService() { process.env["COMPUTE_RESOURCE_GROUP"] || "ConstosoRG"; const cloudServiceName = "{cs-name}"; const parameters: RoleInstances = { - roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"] + roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"], }; const options: CloudServicesRebuildOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -39,7 +39,7 @@ async function rebuildCloudServiceRoleInstancesInACloudService() { const result = await client.cloudServices.beginRebuildAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesReimageSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesReimageSample.ts index 7bd3b6c06fce..32cdc98752f6 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesReimageSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesReimageSample.ts @@ -11,7 +11,7 @@ import { RoleInstances, CloudServicesReimageOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,7 +31,7 @@ async function reimageCloudServiceRoleInstancesInACloudService() { process.env["COMPUTE_RESOURCE_GROUP"] || "ConstosoRG"; const cloudServiceName = "{cs-name}"; const parameters: RoleInstances = { - roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"] + roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"], }; const options: CloudServicesReimageOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -39,7 +39,7 @@ async function reimageCloudServiceRoleInstancesInACloudService() { const result = await client.cloudServices.beginReimageAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesRestartSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesRestartSample.ts index 55a492e83a08..229f4dfca5f5 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesRestartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesRestartSample.ts @@ -11,7 +11,7 @@ import { RoleInstances, CloudServicesRestartOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,7 +31,7 @@ async function restartCloudServiceRoleInstancesInACloudService() { process.env["COMPUTE_RESOURCE_GROUP"] || "ConstosoRG"; const cloudServiceName = "{cs-name}"; const parameters: RoleInstances = { - roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"] + roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"], }; const options: CloudServicesRestartOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -39,7 +39,7 @@ async function restartCloudServiceRoleInstancesInACloudService() { const result = await client.cloudServices.beginRestartAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesStartSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesStartSample.ts index 8b67518cd20b..6716efdc1657 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesStartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesStartSample.ts @@ -30,7 +30,7 @@ async function startCloudService() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServices.beginStartAndWait( resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateDomainGetUpdateDomainSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateDomainGetUpdateDomainSample.ts index 8b316f2ecd07..6e86e73a427f 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateDomainGetUpdateDomainSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateDomainGetUpdateDomainSample.ts @@ -32,7 +32,7 @@ async function getCloudServiceUpdateDomain() { const result = await client.cloudServicesUpdateDomain.getUpdateDomain( resourceGroupName, cloudServiceName, - updateDomain + updateDomain, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateDomainListUpdateDomainsSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateDomainListUpdateDomainsSample.ts index 0efb0d0e7594..3890af6092d2 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateDomainListUpdateDomainsSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateDomainListUpdateDomainsSample.ts @@ -31,7 +31,7 @@ async function listUpdateDomainsInCloudService() { const resArray = new Array(); for await (let item of client.cloudServicesUpdateDomain.listUpdateDomains( resourceGroupName, - cloudServiceName + cloudServiceName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateDomainWalkUpdateDomainSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateDomainWalkUpdateDomainSample.ts index a993941c27ca..4e05cf443dcc 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateDomainWalkUpdateDomainSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateDomainWalkUpdateDomainSample.ts @@ -29,11 +29,12 @@ async function updateCloudServiceToSpecifiedDomain() { const updateDomain = 1; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.cloudServicesUpdateDomain.beginWalkUpdateDomainAndWait( - resourceGroupName, - cloudServiceName, - updateDomain - ); + const result = + await client.cloudServicesUpdateDomain.beginWalkUpdateDomainAndWait( + resourceGroupName, + cloudServiceName, + updateDomain, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateSample.ts index 2070ef181141..4e985a0a2787 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateSample.ts @@ -11,7 +11,7 @@ import { CloudServiceUpdate, CloudServicesUpdateOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -37,7 +37,7 @@ async function updateExistingCloudServiceToAddTags() { const result = await client.cloudServices.beginUpdateAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/communityGalleriesGetSample.ts b/sdk/compute/arm-compute/samples-dev/communityGalleriesGetSample.ts index 405aeee67cc7..a32c22450f48 100644 --- a/sdk/compute/arm-compute/samples-dev/communityGalleriesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/communityGalleriesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a community gallery by gallery public name. * * @summary Get a community gallery by gallery public name. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGallery_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGallery_Get.json */ async function getACommunityGallery() { const subscriptionId = @@ -29,7 +29,7 @@ async function getACommunityGallery() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.communityGalleries.get( location, - publicGalleryName + publicGalleryName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/communityGalleryImageVersionsGetSample.ts b/sdk/compute/arm-compute/samples-dev/communityGalleryImageVersionsGetSample.ts index 5239ca70cf2c..6e1954e2fe7b 100644 --- a/sdk/compute/arm-compute/samples-dev/communityGalleryImageVersionsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/communityGalleryImageVersionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a community gallery image version. * * @summary Get a community gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json */ async function getACommunityGalleryImageVersion() { const subscriptionId = @@ -33,7 +33,7 @@ async function getACommunityGalleryImageVersion() { location, publicGalleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/communityGalleryImageVersionsListSample.ts b/sdk/compute/arm-compute/samples-dev/communityGalleryImageVersionsListSample.ts index 379ca8f6f582..4124b7701d09 100644 --- a/sdk/compute/arm-compute/samples-dev/communityGalleryImageVersionsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/communityGalleryImageVersionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List community gallery image versions inside an image. * * @summary List community gallery image versions inside an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json */ async function listCommunityGalleryImageVersions() { const subscriptionId = @@ -32,7 +32,7 @@ async function listCommunityGalleryImageVersions() { for await (let item of client.communityGalleryImageVersions.list( location, publicGalleryName, - galleryImageName + galleryImageName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/communityGalleryImagesGetSample.ts b/sdk/compute/arm-compute/samples-dev/communityGalleryImagesGetSample.ts index e06146557f79..ba0705c3f9c6 100644 --- a/sdk/compute/arm-compute/samples-dev/communityGalleryImagesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/communityGalleryImagesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a community gallery image. * * @summary Get a community gallery image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json */ async function getACommunityGalleryImage() { const subscriptionId = @@ -31,7 +31,7 @@ async function getACommunityGalleryImage() { const result = await client.communityGalleryImages.get( location, publicGalleryName, - galleryImageName + galleryImageName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/communityGalleryImagesListSample.ts b/sdk/compute/arm-compute/samples-dev/communityGalleryImagesListSample.ts index fa6a13caf8ff..32c46a871abc 100644 --- a/sdk/compute/arm-compute/samples-dev/communityGalleryImagesListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/communityGalleryImagesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List community gallery images inside a gallery. * * @summary List community gallery images inside a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json */ async function listCommunityGalleryImages() { const subscriptionId = @@ -30,7 +30,7 @@ async function listCommunityGalleryImages() { const resArray = new Array(); for await (let item of client.communityGalleryImages.list( location, - publicGalleryName + publicGalleryName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsCreateOrUpdateSample.ts index 22347f828c26..2c665764d3e1 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { DedicatedHostGroup, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -35,14 +35,14 @@ async function createOrUpdateADedicatedHostGroupWithUltraSsdSupport() { platformFaultDomainCount: 3, supportAutomaticPlacement: true, tags: { department: "finance" }, - zones: ["1"] + zones: ["1"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.createOrUpdate( resourceGroupName, hostGroupName, - parameters + parameters, ); console.log(result); } @@ -64,14 +64,14 @@ async function createOrUpdateADedicatedHostGroup() { platformFaultDomainCount: 3, supportAutomaticPlacement: true, tags: { department: "finance" }, - zones: ["1"] + zones: ["1"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.createOrUpdate( resourceGroupName, hostGroupName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsDeleteSample.ts index 48b680165837..fe062cf62652 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsDeleteSample.ts @@ -30,7 +30,7 @@ async function dedicatedHostGroupDeleteMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.delete( resourceGroupName, - hostGroupName + hostGroupName, ); console.log(result); } @@ -51,7 +51,7 @@ async function dedicatedHostGroupDeleteMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.delete( resourceGroupName, - hostGroupName + hostGroupName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsGetSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsGetSample.ts index 16ffc0907515..24bf0a8be9e0 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsGetSample.ts @@ -30,7 +30,7 @@ async function createADedicatedHostGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.get( resourceGroupName, - hostGroupName + hostGroupName, ); console.log(result); } @@ -51,7 +51,7 @@ async function createAnUltraSsdEnabledDedicatedHostGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.get( resourceGroupName, - hostGroupName + hostGroupName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsListByResourceGroupSample.ts index a07210a086c2..ea613c0ff0ef 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function dedicatedHostGroupListByResourceGroupMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.dedicatedHostGroups.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } @@ -51,7 +51,7 @@ async function dedicatedHostGroupListByResourceGroupMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.dedicatedHostGroups.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsUpdateSample.ts index cdf8f3d01910..82f42f2542cf 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { DedicatedHostGroupUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,7 +34,7 @@ async function dedicatedHostGroupUpdateMaximumSetGen() { hosts: [ { availableCapacity: { - allocatableVMs: [{ count: 26, vmSize: "aaaaaaaaaaaaaaaaaaaa" }] + allocatableVMs: [{ count: 26, vmSize: "aaaaaaaaaaaaaaaaaaaa" }], }, statuses: [ { @@ -42,23 +42,23 @@ async function dedicatedHostGroupUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } - ] - } - ] + time: new Date("2021-11-30T12:58:26.522Z"), + }, + ], + }, + ], }, platformFaultDomainCount: 3, supportAutomaticPlacement: true, tags: { key9921: "aaaaaaaaaa" }, - zones: ["aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"] + zones: ["aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.update( resourceGroupName, hostGroupName, - parameters + parameters, ); console.log(result); } @@ -81,7 +81,7 @@ async function dedicatedHostGroupUpdateMinimumSetGen() { const result = await client.dedicatedHostGroups.update( resourceGroupName, hostGroupName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostsCreateOrUpdateSample.ts index fc072f5560dc..dddc5c1d4b97 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostsCreateOrUpdateSample.ts @@ -31,7 +31,7 @@ async function createOrUpdateADedicatedHost() { location: "westus", platformFaultDomain: 1, sku: { name: "DSv3-Type1" }, - tags: { department: "HR" } + tags: { department: "HR" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function createOrUpdateADedicatedHost() { resourceGroupName, hostGroupName, hostName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostsDeleteSample.ts index c4502053da6b..b08765836393 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostsDeleteSample.ts @@ -32,7 +32,7 @@ async function dedicatedHostDeleteMaximumSetGen() { const result = await client.dedicatedHosts.beginDeleteAndWait( resourceGroupName, hostGroupName, - hostName + hostName, ); console.log(result); } @@ -55,7 +55,7 @@ async function dedicatedHostDeleteMinimumSetGen() { const result = await client.dedicatedHosts.beginDeleteAndWait( resourceGroupName, hostGroupName, - hostName + hostName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostsGetSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostsGetSample.ts index 6d4a1d4588e5..ca1d89b28ddd 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { DedicatedHostsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -38,7 +38,7 @@ async function getADedicatedHost() { resourceGroupName, hostGroupName, hostName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostsListAvailableSizesSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostsListAvailableSizesSample.ts index f2bab8437922..ec96aa782a5d 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostsListAvailableSizesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostsListAvailableSizesSample.ts @@ -33,7 +33,7 @@ async function getAvailableDedicatedHostSizes() { for await (let item of client.dedicatedHosts.listAvailableSizes( resourceGroupName, hostGroupName, - hostName + hostName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostsListByHostGroupSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostsListByHostGroupSample.ts index 16bde93349a7..39dc4beeb9ea 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostsListByHostGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostsListByHostGroupSample.ts @@ -31,7 +31,7 @@ async function dedicatedHostListByHostGroupMaximumSetGen() { const resArray = new Array(); for await (let item of client.dedicatedHosts.listByHostGroup( resourceGroupName, - hostGroupName + hostGroupName, )) { resArray.push(item); } @@ -55,7 +55,7 @@ async function dedicatedHostListByHostGroupMinimumSetGen() { const resArray = new Array(); for await (let item of client.dedicatedHosts.listByHostGroup( resourceGroupName, - hostGroupName + hostGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostsRedeploySample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostsRedeploySample.ts index d004db93fb39..5602d99a584c 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostsRedeploySample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostsRedeploySample.ts @@ -32,7 +32,7 @@ async function redeployDedicatedHost() { const result = await client.dedicatedHosts.beginRedeployAndWait( resourceGroupName, hostGroupName, - hostName + hostName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostsRestartSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostsRestartSample.ts index 1a8c32099c90..2c17a6c4bcd3 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostsRestartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostsRestartSample.ts @@ -32,7 +32,7 @@ async function restartDedicatedHost() { const result = await client.dedicatedHosts.beginRestartAndWait( resourceGroupName, hostGroupName, - hostName + hostName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostsUpdateSample.ts index 226ca0f55bd0..8617aaf85e10 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { DedicatedHostUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,7 +34,7 @@ async function dedicatedHostUpdateMaximumSetGen() { autoReplaceOnFailure: true, instanceView: { availableCapacity: { - allocatableVMs: [{ count: 26, vmSize: "aaaaaaaaaaaaaaaaaaaa" }] + allocatableVMs: [{ count: 26, vmSize: "aaaaaaaaaaaaaaaaaaaa" }], }, statuses: [ { @@ -42,13 +42,13 @@ async function dedicatedHostUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } - ] + time: new Date("2021-11-30T12:58:26.522Z"), + }, + ], }, licenseType: "Windows_Server_Hybrid", platformFaultDomain: 1, - tags: { key8813: "aaaaaaaaaaaaaaaaaaaaaaaaaaa" } + tags: { key8813: "aaaaaaaaaaaaaaaaaaaaaaaaaaa" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -56,7 +56,7 @@ async function dedicatedHostUpdateMaximumSetGen() { resourceGroupName, hostGroupName, hostName, - parameters + parameters, ); console.log(result); } @@ -81,7 +81,7 @@ async function dedicatedHostUpdateMinimumSetGen() { resourceGroupName, hostGroupName, hostName, - parameters + parameters, ); console.log(result); } @@ -106,7 +106,7 @@ async function dedicatedHostUpdateResize() { resourceGroupName, hostGroupName, hostName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskAccessesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/diskAccessesCreateOrUpdateSample.ts index 133f0909a9bc..30308cd7ef42 100644 --- a/sdk/compute/arm-compute/samples-dev/diskAccessesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskAccessesCreateOrUpdateSample.ts @@ -32,7 +32,7 @@ async function createADiskAccessResource() { const result = await client.diskAccesses.beginCreateOrUpdateAndWait( resourceGroupName, diskAccessName, - diskAccess + diskAccess, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskAccessesDeleteAPrivateEndpointConnectionSample.ts b/sdk/compute/arm-compute/samples-dev/diskAccessesDeleteAPrivateEndpointConnectionSample.ts index 729ac386eb42..053484f4236e 100644 --- a/sdk/compute/arm-compute/samples-dev/diskAccessesDeleteAPrivateEndpointConnectionSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskAccessesDeleteAPrivateEndpointConnectionSample.ts @@ -29,11 +29,12 @@ async function deleteAPrivateEndpointConnectionUnderADiskAccessResource() { const privateEndpointConnectionName = "myPrivateEndpointConnection"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.diskAccesses.beginDeleteAPrivateEndpointConnectionAndWait( - resourceGroupName, - diskAccessName, - privateEndpointConnectionName - ); + const result = + await client.diskAccesses.beginDeleteAPrivateEndpointConnectionAndWait( + resourceGroupName, + diskAccessName, + privateEndpointConnectionName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskAccessesDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/diskAccessesDeleteSample.ts index bd476087eb66..5e288a7afcd8 100644 --- a/sdk/compute/arm-compute/samples-dev/diskAccessesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskAccessesDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteADiskAccessResource() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskAccesses.beginDeleteAndWait( resourceGroupName, - diskAccessName + diskAccessName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskAccessesGetAPrivateEndpointConnectionSample.ts b/sdk/compute/arm-compute/samples-dev/diskAccessesGetAPrivateEndpointConnectionSample.ts index d0ba69f2b9e9..3b7d5648af0c 100644 --- a/sdk/compute/arm-compute/samples-dev/diskAccessesGetAPrivateEndpointConnectionSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskAccessesGetAPrivateEndpointConnectionSample.ts @@ -32,7 +32,7 @@ async function getInformationAboutAPrivateEndpointConnectionUnderADiskAccessReso const result = await client.diskAccesses.getAPrivateEndpointConnection( resourceGroupName, diskAccessName, - privateEndpointConnectionName + privateEndpointConnectionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskAccessesGetPrivateLinkResourcesSample.ts b/sdk/compute/arm-compute/samples-dev/diskAccessesGetPrivateLinkResourcesSample.ts index 819678ea8e1d..da1c00a9a93a 100644 --- a/sdk/compute/arm-compute/samples-dev/diskAccessesGetPrivateLinkResourcesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskAccessesGetPrivateLinkResourcesSample.ts @@ -30,7 +30,7 @@ async function listAllPossiblePrivateLinkResourcesUnderDiskAccessResource() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskAccesses.getPrivateLinkResources( resourceGroupName, - diskAccessName + diskAccessName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskAccessesGetSample.ts b/sdk/compute/arm-compute/samples-dev/diskAccessesGetSample.ts index a6fbf25cc18d..b80b4b552ac7 100644 --- a/sdk/compute/arm-compute/samples-dev/diskAccessesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskAccessesGetSample.ts @@ -30,7 +30,7 @@ async function getInformationAboutADiskAccessResourceWithPrivateEndpoints() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskAccesses.get( resourceGroupName, - diskAccessName + diskAccessName, ); console.log(result); } @@ -51,7 +51,7 @@ async function getInformationAboutADiskAccessResource() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskAccesses.get( resourceGroupName, - diskAccessName + diskAccessName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskAccessesListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples-dev/diskAccessesListByResourceGroupSample.ts index ec7b36c9a4b0..f57887bab2da 100644 --- a/sdk/compute/arm-compute/samples-dev/diskAccessesListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskAccessesListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function listAllDiskAccessResourcesInAResourceGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.diskAccesses.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/diskAccessesListPrivateEndpointConnectionsSample.ts b/sdk/compute/arm-compute/samples-dev/diskAccessesListPrivateEndpointConnectionsSample.ts index 618778ad6bf6..7b2e7144a05d 100644 --- a/sdk/compute/arm-compute/samples-dev/diskAccessesListPrivateEndpointConnectionsSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskAccessesListPrivateEndpointConnectionsSample.ts @@ -31,7 +31,7 @@ async function getInformationAboutAPrivateEndpointConnectionUnderADiskAccessReso const resArray = new Array(); for await (let item of client.diskAccesses.listPrivateEndpointConnections( resourceGroupName, - diskAccessName + diskAccessName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/diskAccessesUpdateAPrivateEndpointConnectionSample.ts b/sdk/compute/arm-compute/samples-dev/diskAccessesUpdateAPrivateEndpointConnectionSample.ts index 9e1e3343a462..ad60027840ba 100644 --- a/sdk/compute/arm-compute/samples-dev/diskAccessesUpdateAPrivateEndpointConnectionSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskAccessesUpdateAPrivateEndpointConnectionSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { PrivateEndpointConnection, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -33,17 +33,18 @@ async function approveAPrivateEndpointConnectionUnderADiskAccessResource() { const privateEndpointConnection: PrivateEndpointConnection = { privateLinkServiceConnectionState: { description: "Approving myPrivateEndpointConnection", - status: "Approved" - } + status: "Approved", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.diskAccesses.beginUpdateAPrivateEndpointConnectionAndWait( - resourceGroupName, - diskAccessName, - privateEndpointConnectionName, - privateEndpointConnection - ); + const result = + await client.diskAccesses.beginUpdateAPrivateEndpointConnectionAndWait( + resourceGroupName, + diskAccessName, + privateEndpointConnectionName, + privateEndpointConnection, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskAccessesUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/diskAccessesUpdateSample.ts index 1c5bb3142bfa..cec7146dff6f 100644 --- a/sdk/compute/arm-compute/samples-dev/diskAccessesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskAccessesUpdateSample.ts @@ -27,14 +27,14 @@ async function updateADiskAccessResource() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const diskAccessName = "myDiskAccess"; const diskAccess: DiskAccessUpdate = { - tags: { department: "Development", project: "PrivateEndpoints" } + tags: { department: "Development", project: "PrivateEndpoints" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskAccesses.beginUpdateAndWait( resourceGroupName, diskAccessName, - diskAccess + diskAccess, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsCreateOrUpdateSample.ts index 7ecc7f898a30..4ba534ae7896 100644 --- a/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsCreateOrUpdateSample.ts @@ -28,18 +28,18 @@ async function createADiskEncryptionSetWithKeyVaultFromADifferentSubscription() const diskEncryptionSetName = "myDiskEncryptionSet"; const diskEncryptionSet: DiskEncryptionSet = { activeKey: { - keyUrl: "https://myvaultdifferentsub.vault-int.azure-int.net/keys/{key}" + keyUrl: "https://myvaultdifferentsub.vault-int.azure-int.net/keys/{key}", }, encryptionType: "EncryptionAtRestWithCustomerKey", identity: { type: "SystemAssigned" }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginCreateOrUpdateAndWait( resourceGroupName, diskEncryptionSetName, - diskEncryptionSet + diskEncryptionSet, ); console.log(result); } @@ -59,24 +59,25 @@ async function createADiskEncryptionSetWithKeyVaultFromADifferentTenant() { const diskEncryptionSet: DiskEncryptionSet = { activeKey: { keyUrl: - "https://myvaultdifferenttenant.vault-int.azure-int.net/keys/{key}" + "https://myvaultdifferenttenant.vault-int.azure-int.net/keys/{key}", }, encryptionType: "EncryptionAtRestWithCustomerKey", federatedClientId: "00000000-0000-0000-0000-000000000000", identity: { type: "UserAssigned", userAssignedIdentities: { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MicrosoftManagedIdentity/userAssignedIdentities/{identityName}": {} - } + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MicrosoftManagedIdentity/userAssignedIdentities/{identityName}": + {}, + }, }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginCreateOrUpdateAndWait( resourceGroupName, diskEncryptionSetName, - diskEncryptionSet + diskEncryptionSet, ); console.log(result); } @@ -97,20 +98,19 @@ async function createADiskEncryptionSet() { activeKey: { keyUrl: "https://myvmvault.vault-int.azure-int.net/keys/{key}", sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault", + }, }, encryptionType: "EncryptionAtRestWithCustomerKey", identity: { type: "SystemAssigned" }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginCreateOrUpdateAndWait( resourceGroupName, diskEncryptionSetName, - diskEncryptionSet + diskEncryptionSet, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsDeleteSample.ts index ec4c11b8621e..695a0958275b 100644 --- a/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteADiskEncryptionSet() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginDeleteAndWait( resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsGetSample.ts b/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsGetSample.ts index e72405a2c053..39b842d7e835 100644 --- a/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsGetSample.ts @@ -30,7 +30,7 @@ async function getInformationAboutADiskEncryptionSetWhenAutoKeyRotationFailed() const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.get( resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, ); console.log(result); } @@ -51,7 +51,7 @@ async function getInformationAboutADiskEncryptionSet() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.get( resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsListAssociatedResourcesSample.ts b/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsListAssociatedResourcesSample.ts index e2bfd3c32488..2d4bc04c1681 100644 --- a/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsListAssociatedResourcesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsListAssociatedResourcesSample.ts @@ -31,7 +31,7 @@ async function listAllResourcesThatAreEncryptedWithThisDiskEncryptionSet() { const resArray = new Array(); for await (let item of client.diskEncryptionSets.listAssociatedResources( resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsListByResourceGroupSample.ts index af7e304aa243..d6495c7875b3 100644 --- a/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function listAllDiskEncryptionSetsInAResourceGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.diskEncryptionSets.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsUpdateSample.ts index c98e27f0b93e..bfa64e97e97e 100644 --- a/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { DiskEncryptionSetUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,18 +32,18 @@ async function updateADiskEncryptionSetWithRotationToLatestKeyVersionEnabledSetT const diskEncryptionSet: DiskEncryptionSetUpdate = { activeKey: { keyUrl: - "https://myvaultdifferentsub.vault-int.azure-int.net/keys/keyName/keyVersion1" + "https://myvaultdifferentsub.vault-int.azure-int.net/keys/keyName/keyVersion1", }, encryptionType: "EncryptionAtRestWithCustomerKey", identity: { type: "SystemAssigned" }, - rotationToLatestKeyVersionEnabled: true + rotationToLatestKeyVersionEnabled: true, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginUpdateAndWait( resourceGroupName, diskEncryptionSetName, - diskEncryptionSet + diskEncryptionSet, ); console.log(result); } @@ -63,18 +63,18 @@ async function updateADiskEncryptionSetWithRotationToLatestKeyVersionEnabledSetT const diskEncryptionSet: DiskEncryptionSetUpdate = { activeKey: { keyUrl: - "https://myvaultdifferentsub.vault-int.azure-int.net/keys/keyName/keyVersion1" + "https://myvaultdifferentsub.vault-int.azure-int.net/keys/keyName/keyVersion1", }, encryptionType: "EncryptionAtRestWithCustomerKey", identity: { type: "SystemAssigned" }, - rotationToLatestKeyVersionEnabled: true + rotationToLatestKeyVersionEnabled: true, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginUpdateAndWait( resourceGroupName, diskEncryptionSetName, - diskEncryptionSet + diskEncryptionSet, ); console.log(result); } @@ -96,19 +96,18 @@ async function updateADiskEncryptionSet() { keyUrl: "https://myvmvault.vault-int.azure-int.net/keys/keyName/keyVersion", sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault", + }, }, encryptionType: "EncryptionAtRestWithCustomerKey", - tags: { department: "Development", project: "Encryption" } + tags: { department: "Development", project: "Encryption" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginUpdateAndWait( resourceGroupName, diskEncryptionSetName, - diskEncryptionSet + diskEncryptionSet, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskRestorePointGetSample.ts b/sdk/compute/arm-compute/samples-dev/diskRestorePointGetSample.ts index c9b6cddfd83a..759552ff5d79 100644 --- a/sdk/compute/arm-compute/samples-dev/diskRestorePointGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskRestorePointGetSample.ts @@ -35,7 +35,7 @@ async function getAnIncrementalDiskRestorePointResource() { resourceGroupName, restorePointCollectionName, vmRestorePointName, - diskRestorePointName + diskRestorePointName, ); console.log(result); } @@ -61,7 +61,7 @@ async function getAnIncrementalDiskRestorePointWhenSourceResourceIsFromADifferen resourceGroupName, restorePointCollectionName, vmRestorePointName, - diskRestorePointName + diskRestorePointName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskRestorePointGrantAccessSample.ts b/sdk/compute/arm-compute/samples-dev/diskRestorePointGrantAccessSample.ts index a1ea3e893723..a3727c1e1a40 100644 --- a/sdk/compute/arm-compute/samples-dev/diskRestorePointGrantAccessSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskRestorePointGrantAccessSample.ts @@ -32,17 +32,18 @@ async function grantsAccessToADiskRestorePoint() { const grantAccessData: GrantAccessData = { access: "Read", durationInSeconds: 300, - fileFormat: "VHDX" + fileFormat: "VHDX", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.diskRestorePointOperations.beginGrantAccessAndWait( - resourceGroupName, - restorePointCollectionName, - vmRestorePointName, - diskRestorePointName, - grantAccessData - ); + const result = + await client.diskRestorePointOperations.beginGrantAccessAndWait( + resourceGroupName, + restorePointCollectionName, + vmRestorePointName, + diskRestorePointName, + grantAccessData, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskRestorePointListByRestorePointSample.ts b/sdk/compute/arm-compute/samples-dev/diskRestorePointListByRestorePointSample.ts index 0e6c7f6d0b7d..daabb88ee3ab 100644 --- a/sdk/compute/arm-compute/samples-dev/diskRestorePointListByRestorePointSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskRestorePointListByRestorePointSample.ts @@ -33,7 +33,7 @@ async function getAnIncrementalDiskRestorePointResource() { for await (let item of client.diskRestorePointOperations.listByRestorePoint( resourceGroupName, restorePointCollectionName, - vmRestorePointName + vmRestorePointName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/diskRestorePointRevokeAccessSample.ts b/sdk/compute/arm-compute/samples-dev/diskRestorePointRevokeAccessSample.ts index 58176b3b1c7f..b3d75eb42fd9 100644 --- a/sdk/compute/arm-compute/samples-dev/diskRestorePointRevokeAccessSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskRestorePointRevokeAccessSample.ts @@ -31,12 +31,13 @@ async function revokesAccessToADiskRestorePoint() { "TestDisk45ceb03433006d1baee0_b70cd924-3362-4a80-93c2-9415eaa12745"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.diskRestorePointOperations.beginRevokeAccessAndWait( - resourceGroupName, - restorePointCollectionName, - vmRestorePointName, - diskRestorePointName - ); + const result = + await client.diskRestorePointOperations.beginRevokeAccessAndWait( + resourceGroupName, + restorePointCollectionName, + vmRestorePointName, + diskRestorePointName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/disksCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/disksCreateOrUpdateSample.ts index 6315c1f4e62b..7353c358b659 100644 --- a/sdk/compute/arm-compute/samples-dev/disksCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/disksCreateOrUpdateSample.ts @@ -30,24 +30,23 @@ async function createAConfidentialVMSupportedDiskEncryptedWithCustomerManagedKey creationData: { createOption: "FromImage", imageReference: { - id: - "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0" - } + id: "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0", + }, }, location: "West US", osType: "Windows", securityProfile: { secureVMDiskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - securityType: "ConfidentialVM_DiskEncryptedWithCustomerKey" - } + securityType: "ConfidentialVM_DiskEncryptedWithCustomerKey", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -70,14 +69,14 @@ async function createAManagedDiskAndAssociateWithDiskAccessResource() { "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/{existing-diskAccess-name}", diskSizeGB: 200, location: "West US", - networkAccessPolicy: "AllowPrivate" + networkAccessPolicy: "AllowPrivate", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -99,16 +98,16 @@ async function createAManagedDiskAndAssociateWithDiskEncryptionSet() { diskSizeGB: 200, encryption: { diskEncryptionSetId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -129,16 +128,16 @@ async function createAManagedDiskByCopyingASnapshot() { creationData: { createOption: "Copy", sourceResourceId: - "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" + "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -161,16 +160,16 @@ async function createAManagedDiskByImportingAnUnmanagedBlobFromADifferentSubscri sourceUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", storageAccountId: - "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount" + "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -191,16 +190,16 @@ async function createAManagedDiskByImportingAnUnmanagedBlobFromTheSameSubscripti creationData: { createOption: "Import", sourceUri: - "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" + "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -225,20 +224,20 @@ async function createAManagedDiskFromImportSecureCreateOption() { sourceUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", storageAccountId: - "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount" + "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", }, location: "West US", osType: "Windows", securityProfile: { - securityType: "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey" - } + securityType: "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -258,18 +257,18 @@ async function createAManagedDiskFromUploadPreparedSecureCreateOption() { const disk: Disk = { creationData: { createOption: "UploadPreparedSecure", - uploadSizeBytes: 10737418752 + uploadSizeBytes: 10737418752, }, location: "West US", osType: "Windows", - securityProfile: { securityType: "TrustedLaunch" } + securityProfile: { securityType: "TrustedLaunch" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -290,19 +289,18 @@ async function createAManagedDiskFromAPlatformImage() { creationData: { createOption: "FromImage", imageReference: { - id: - "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0" - } + id: "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0", + }, }, location: "West US", - osType: "Windows" + osType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -324,18 +322,18 @@ async function createAManagedDiskFromAnAzureComputeGalleryCommunityImage() { createOption: "FromImage", galleryImageReference: { communityGalleryImageId: - "/CommunityGalleries/{communityGalleryPublicGalleryName}/Images/{imageName}/Versions/1.0.0" - } + "/CommunityGalleries/{communityGalleryPublicGalleryName}/Images/{imageName}/Versions/1.0.0", + }, }, location: "West US", - osType: "Windows" + osType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -357,18 +355,18 @@ async function createAManagedDiskFromAnAzureComputeGalleryDirectSharedImage() { createOption: "FromImage", galleryImageReference: { sharedGalleryImageId: - "/SharedGalleries/{sharedGalleryUniqueName}/Images/{imageName}/Versions/1.0.0" - } + "/SharedGalleries/{sharedGalleryUniqueName}/Images/{imageName}/Versions/1.0.0", + }, }, location: "West US", - osType: "Windows" + osType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -389,19 +387,18 @@ async function createAManagedDiskFromAnAzureComputeGalleryImage() { creationData: { createOption: "FromImage", galleryImageReference: { - id: - "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Providers/Microsoft.Compute/Galleries/{galleryName}/Images/{imageName}/Versions/1.0.0" - } + id: "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Providers/Microsoft.Compute/Galleries/{galleryName}/Images/{imageName}/Versions/1.0.0", + }, }, location: "West US", - osType: "Windows" + osType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -422,16 +419,16 @@ async function createAManagedDiskFromAnExistingManagedDiskInTheSameOrDifferentSu creationData: { createOption: "Copy", sourceResourceId: - "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1" + "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -452,16 +449,16 @@ async function createAManagedDiskFromElasticSanVolumeSnapshot() { creationData: { createOption: "CopyFromSanSnapshot", elasticSanResourceId: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot" + "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -482,14 +479,14 @@ async function createAManagedDiskWithDataAccessAuthMode() { creationData: { createOption: "Empty" }, dataAccessAuthMode: "AzureActiveDirectory", diskSizeGB: 200, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -510,14 +507,14 @@ async function createAManagedDiskWithOptimizedForFrequentAttach() { creationData: { createOption: "Empty" }, diskSizeGB: 200, location: "West US", - optimizedForFrequentAttach: true + optimizedForFrequentAttach: true, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -536,14 +533,14 @@ async function createAManagedDiskWithPerformancePlus() { const diskName = "myDisk"; const disk: Disk = { creationData: { createOption: "Upload", performancePlus: true }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -566,14 +563,14 @@ async function createAManagedDiskWithPremiumV2AccountType() { diskMBpsReadWrite: 3000, diskSizeGB: 200, location: "West US", - sku: { name: "PremiumV2_LRS" } + sku: { name: "PremiumV2_LRS" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -594,20 +591,19 @@ async function createAManagedDiskWithSecurityProfile() { creationData: { createOption: "FromImage", imageReference: { - id: - "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}" - } + id: "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}", + }, }, location: "North Central US", osType: "Windows", - securityProfile: { securityType: "TrustedLaunch" } + securityProfile: { securityType: "TrustedLaunch" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -628,14 +624,14 @@ async function createAManagedDiskWithSsdZrsAccountType() { creationData: { createOption: "Empty" }, diskSizeGB: 200, location: "West US", - sku: { name: "Premium_ZRS" } + sku: { name: "Premium_ZRS" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -659,14 +655,14 @@ async function createAManagedDiskWithUltraAccountTypeWithReadOnlyPropertySet() { diskSizeGB: 200, encryption: { type: "EncryptionAtRestWithPlatformKey" }, location: "West US", - sku: { name: "UltraSSD_LRS" } + sku: { name: "UltraSSD_LRS" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -685,14 +681,14 @@ async function createAManagedUploadDisk() { const diskName = "myDisk"; const disk: Disk = { creationData: { createOption: "Upload", uploadSizeBytes: 10737418752 }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -713,14 +709,14 @@ async function createAnEmptyManagedDiskInExtendedLocation() { creationData: { createOption: "Empty" }, diskSizeGB: 200, extendedLocation: { name: "{edge-zone-id}", type: "EdgeZone" }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -740,14 +736,14 @@ async function createAnEmptyManagedDisk() { const disk: Disk = { creationData: { createOption: "Empty" }, diskSizeGB: 200, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -768,14 +764,14 @@ async function createAnUltraManagedDiskWithLogicalSectorSize512E() { creationData: { createOption: "Empty", logicalSectorSize: 512 }, diskSizeGB: 200, location: "West US", - sku: { name: "UltraSSD_LRS" } + sku: { name: "UltraSSD_LRS" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/disksDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/disksDeleteSample.ts index 17fe2a2b2c9b..3ccb80f26724 100644 --- a/sdk/compute/arm-compute/samples-dev/disksDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/disksDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteAManagedDisk() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginDeleteAndWait( resourceGroupName, - diskName + diskName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/disksGrantAccessSample.ts b/sdk/compute/arm-compute/samples-dev/disksGrantAccessSample.ts index a7b5e03b9669..7c18d5813148 100644 --- a/sdk/compute/arm-compute/samples-dev/disksGrantAccessSample.ts +++ b/sdk/compute/arm-compute/samples-dev/disksGrantAccessSample.ts @@ -29,14 +29,14 @@ async function getASasOnAManagedDisk() { const grantAccessData: GrantAccessData = { access: "Read", durationInSeconds: 300, - fileFormat: "VHD" + fileFormat: "VHD", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginGrantAccessAndWait( resourceGroupName, diskName, - grantAccessData + grantAccessData, ); console.log(result); } @@ -56,14 +56,14 @@ async function getSasOnManagedDiskAndVMGuestState() { const grantAccessData: GrantAccessData = { access: "Read", durationInSeconds: 300, - getSecureVMGuestStateSAS: true + getSecureVMGuestStateSAS: true, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginGrantAccessAndWait( resourceGroupName, diskName, - grantAccessData + grantAccessData, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/disksRevokeAccessSample.ts b/sdk/compute/arm-compute/samples-dev/disksRevokeAccessSample.ts index 14a1693d459e..1fea43813b80 100644 --- a/sdk/compute/arm-compute/samples-dev/disksRevokeAccessSample.ts +++ b/sdk/compute/arm-compute/samples-dev/disksRevokeAccessSample.ts @@ -30,7 +30,7 @@ async function revokeAccessToAManagedDisk() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginRevokeAccessAndWait( resourceGroupName, - diskName + diskName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/disksUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/disksUpdateSample.ts index 198328942304..49d3774d5919 100644 --- a/sdk/compute/arm-compute/samples-dev/disksUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/disksUpdateSample.ts @@ -32,7 +32,7 @@ async function createOrUpdateABurstingEnabledManagedDisk() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -50,14 +50,14 @@ async function updateAManagedDiskToAddAcceleratedNetworking() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const diskName = "myDisk"; const disk: DiskUpdate = { - supportedCapabilities: { acceleratedNetwork: false } + supportedCapabilities: { acceleratedNetwork: false }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -80,7 +80,7 @@ async function updateAManagedDiskToAddArchitecture() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -102,15 +102,15 @@ async function updateAManagedDiskToAddPurchasePlan() { name: "myPurchasePlanName", product: "myPurchasePlanProduct", promotionCode: "myPurchasePlanPromotionCode", - publisher: "myPurchasePlanPublisher" - } + publisher: "myPurchasePlanPublisher", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -133,7 +133,7 @@ async function updateAManagedDiskToAddSupportsHibernation() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -156,7 +156,7 @@ async function updateAManagedDiskToChangeTier() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -179,7 +179,7 @@ async function updateAManagedDiskToDisableBursting() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -202,7 +202,7 @@ async function updateAManagedDiskToDisableOptimizedForFrequentAttach() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -220,14 +220,14 @@ async function updateAManagedDiskWithDiskControllerTypes() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const diskName = "myDisk"; const disk: DiskUpdate = { - supportedCapabilities: { diskControllerTypes: "SCSI" } + supportedCapabilities: { diskControllerTypes: "SCSI" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -250,7 +250,7 @@ async function updateManagedDiskToRemoveDiskAccessResourceAssociation() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleriesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/galleriesCreateOrUpdateSample.ts index ecefc848e0fe..082790fdaf86 100644 --- a/sdk/compute/arm-compute/samples-dev/galleriesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleriesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a Shared Image Gallery. * * @summary Create or update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/CommunityGallery_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Create.json */ async function createACommunityGallery() { const subscriptionId = @@ -34,17 +34,17 @@ async function createACommunityGallery() { eula: "eula", publicNamePrefix: "PirPublic", publisherContact: "pir@microsoft.com", - publisherUri: "uri" + publisherUri: "uri", }, - permissions: "Community" - } + permissions: "Community", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.galleries.beginCreateOrUpdateAndWait( resourceGroupName, galleryName, - gallery + gallery, ); console.log(result); } @@ -53,7 +53,7 @@ async function createACommunityGallery() { * This sample demonstrates how to Create or update a Shared Image Gallery. * * @summary Create or update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Create_WithSharingProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Create_WithSharingProfile.json */ async function createOrUpdateASimpleGalleryWithSharingProfile() { const subscriptionId = @@ -64,14 +64,14 @@ async function createOrUpdateASimpleGalleryWithSharingProfile() { const gallery: Gallery = { description: "This is the gallery description.", location: "West US", - sharingProfile: { permissions: "Groups" } + sharingProfile: { permissions: "Groups" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.galleries.beginCreateOrUpdateAndWait( resourceGroupName, galleryName, - gallery + gallery, ); console.log(result); } @@ -80,7 +80,7 @@ async function createOrUpdateASimpleGalleryWithSharingProfile() { * This sample demonstrates how to Create or update a Shared Image Gallery. * * @summary Create or update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Create_SoftDeletionEnabled.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Create_SoftDeletionEnabled.json */ async function createOrUpdateASimpleGalleryWithSoftDeletionEnabled() { const subscriptionId = @@ -91,14 +91,14 @@ async function createOrUpdateASimpleGalleryWithSoftDeletionEnabled() { const gallery: Gallery = { description: "This is the gallery description.", location: "West US", - softDeletePolicy: { isSoftDeleteEnabled: true } + softDeletePolicy: { isSoftDeleteEnabled: true }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.galleries.beginCreateOrUpdateAndWait( resourceGroupName, galleryName, - gallery + gallery, ); console.log(result); } @@ -107,7 +107,7 @@ async function createOrUpdateASimpleGalleryWithSoftDeletionEnabled() { * This sample demonstrates how to Create or update a Shared Image Gallery. * * @summary Create or update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Create.json */ async function createOrUpdateASimpleGallery() { const subscriptionId = @@ -117,14 +117,14 @@ async function createOrUpdateASimpleGallery() { const galleryName = "myGalleryName"; const gallery: Gallery = { description: "This is the gallery description.", - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.galleries.beginCreateOrUpdateAndWait( resourceGroupName, galleryName, - gallery + gallery, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleriesDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/galleriesDeleteSample.ts index aa2c1968e347..2cdad8d821ab 100644 --- a/sdk/compute/arm-compute/samples-dev/galleriesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleriesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a Shared Image Gallery. * * @summary Delete a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Delete.json */ async function deleteAGallery() { const subscriptionId = @@ -30,7 +30,7 @@ async function deleteAGallery() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.galleries.beginDeleteAndWait( resourceGroupName, - galleryName + galleryName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleriesGetSample.ts b/sdk/compute/arm-compute/samples-dev/galleriesGetSample.ts index 64f03f905bbe..915d310529d9 100644 --- a/sdk/compute/arm-compute/samples-dev/galleriesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleriesGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleriesGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a Shared Image Gallery. * * @summary Retrieves information about a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/CommunityGallery_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Get.json */ async function getACommunityGallery() { const subscriptionId = @@ -39,7 +39,7 @@ async function getACommunityGallery() { * This sample demonstrates how to Retrieves information about a Shared Image Gallery. * * @summary Retrieves information about a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json */ async function getAGalleryWithExpandSharingProfileGroups() { const subscriptionId = @@ -54,7 +54,7 @@ async function getAGalleryWithExpandSharingProfileGroups() { const result = await client.galleries.get( resourceGroupName, galleryName, - options + options, ); console.log(result); } @@ -63,7 +63,7 @@ async function getAGalleryWithExpandSharingProfileGroups() { * This sample demonstrates how to Retrieves information about a Shared Image Gallery. * * @summary Retrieves information about a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json */ async function getAGalleryWithSelectPermissions() { const subscriptionId = @@ -78,7 +78,7 @@ async function getAGalleryWithSelectPermissions() { const result = await client.galleries.get( resourceGroupName, galleryName, - options + options, ); console.log(result); } @@ -87,7 +87,7 @@ async function getAGalleryWithSelectPermissions() { * This sample demonstrates how to Retrieves information about a Shared Image Gallery. * * @summary Retrieves information about a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get.json */ async function getAGallery() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/galleriesListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples-dev/galleriesListByResourceGroupSample.ts index 1f566892d9f5..2b167c09f50a 100644 --- a/sdk/compute/arm-compute/samples-dev/galleriesListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleriesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List galleries under a resource group. * * @summary List galleries under a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ListByResourceGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ListByResourceGroup.json */ async function listGalleriesInAResourceGroup() { const subscriptionId = @@ -29,7 +29,7 @@ async function listGalleriesInAResourceGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.galleries.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/galleriesListSample.ts b/sdk/compute/arm-compute/samples-dev/galleriesListSample.ts index 8aaa25172f9d..728fa29bba77 100644 --- a/sdk/compute/arm-compute/samples-dev/galleriesListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleriesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List galleries under a subscription. * * @summary List galleries under a subscription. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ListBySubscription.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ListBySubscription.json */ async function listGalleriesInASubscription() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/galleriesUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/galleriesUpdateSample.ts index a11068594b2c..1a19b56f7ce2 100644 --- a/sdk/compute/arm-compute/samples-dev/galleriesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleriesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Update a Shared Image Gallery. * * @summary Update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Update.json */ async function updateASimpleGallery() { const subscriptionId = @@ -27,14 +27,14 @@ async function updateASimpleGallery() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const galleryName = "myGalleryName"; const gallery: GalleryUpdate = { - description: "This is the gallery description." + description: "This is the gallery description.", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.galleries.beginUpdateAndWait( resourceGroupName, galleryName, - gallery + gallery, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsCreateOrUpdateSample.ts index 86451e0739a1..aaec62cdc642 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryApplicationVersion, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a gallery Application Version. * * @summary Create or update a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Create.json */ async function createOrUpdateASimpleGalleryApplicationVersion() { const subscriptionId = @@ -44,22 +44,22 @@ async function createOrUpdateASimpleGalleryApplicationVersion() { type: "String", description: "This is the description of the parameter", defaultValue: "default value of parameter.", - required: false - } + required: false, + }, ], - script: "myCustomActionScript" - } + script: "myCustomActionScript", + }, ], endOfLifeDate: new Date("2019-07-01T07:00:00Z"), manageActions: { install: 'powershell -command "Expand-Archive -Path package.zip -DestinationPath C:\\package"', - remove: "del C:\\package " + remove: "del C:\\package ", }, replicaCount: 1, source: { mediaLink: - "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}", }, storageAccountType: "Standard_LRS", targetRegions: [ @@ -67,21 +67,22 @@ async function createOrUpdateASimpleGalleryApplicationVersion() { name: "West US", excludeFromLatest: false, regionalReplicaCount: 1, - storageAccountType: "Standard_LRS" - } - ] + storageAccountType: "Standard_LRS", + }, + ], }, - safetyProfile: { allowDeletionOfReplicatedLocations: false } + safetyProfile: { allowDeletionOfReplicatedLocations: false }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.galleryApplicationVersions.beginCreateOrUpdateAndWait( - resourceGroupName, - galleryName, - galleryApplicationName, - galleryApplicationVersionName, - galleryApplicationVersion - ); + const result = + await client.galleryApplicationVersions.beginCreateOrUpdateAndWait( + resourceGroupName, + galleryName, + galleryApplicationName, + galleryApplicationVersionName, + galleryApplicationVersion, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsDeleteSample.ts index 9af5ca0b658c..38f242f79412 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a gallery Application Version. * * @summary Delete a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json */ async function deleteAGalleryApplicationVersion() { const subscriptionId = @@ -34,7 +34,7 @@ async function deleteAGalleryApplicationVersion() { resourceGroupName, galleryName, galleryApplicationName, - galleryApplicationVersionName + galleryApplicationVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsGetSample.ts b/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsGetSample.ts index 6bc12a16971a..9fe6ca7bd9cb 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryApplicationVersionsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a gallery Application Version. * * @summary Retrieves information about a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json */ async function getAGalleryApplicationVersionWithReplicationStatus() { const subscriptionId = @@ -40,7 +40,7 @@ async function getAGalleryApplicationVersionWithReplicationStatus() { galleryName, galleryApplicationName, galleryApplicationVersionName, - options + options, ); console.log(result); } @@ -49,7 +49,7 @@ async function getAGalleryApplicationVersionWithReplicationStatus() { * This sample demonstrates how to Retrieves information about a gallery Application Version. * * @summary Retrieves information about a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get.json */ async function getAGalleryApplicationVersion() { const subscriptionId = @@ -65,7 +65,7 @@ async function getAGalleryApplicationVersion() { resourceGroupName, galleryName, galleryApplicationName, - galleryApplicationVersionName + galleryApplicationVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsListByGalleryApplicationSample.ts b/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsListByGalleryApplicationSample.ts index 5b5fd0d8371a..55a74ff36b20 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsListByGalleryApplicationSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsListByGalleryApplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List gallery Application Versions in a gallery Application Definition. * * @summary List gallery Application Versions in a gallery Application Definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json */ async function listGalleryApplicationVersionsInAGalleryApplicationDefinition() { const subscriptionId = @@ -33,7 +33,7 @@ async function listGalleryApplicationVersionsInAGalleryApplicationDefinition() { for await (let item of client.galleryApplicationVersions.listByGalleryApplication( resourceGroupName, galleryName, - galleryApplicationName + galleryApplicationName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsUpdateSample.ts index 6387db4be388..3d1ebc4e9c7b 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryApplicationVersionUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update a gallery Application Version. * * @summary Update a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Update.json */ async function updateASimpleGalleryApplicationVersion() { const subscriptionId = @@ -37,12 +37,12 @@ async function updateASimpleGalleryApplicationVersion() { manageActions: { install: 'powershell -command "Expand-Archive -Path package.zip -DestinationPath C:\\package"', - remove: "del C:\\package " + remove: "del C:\\package ", }, replicaCount: 1, source: { mediaLink: - "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}", }, storageAccountType: "Standard_LRS", targetRegions: [ @@ -50,11 +50,11 @@ async function updateASimpleGalleryApplicationVersion() { name: "West US", excludeFromLatest: false, regionalReplicaCount: 1, - storageAccountType: "Standard_LRS" - } - ] + storageAccountType: "Standard_LRS", + }, + ], }, - safetyProfile: { allowDeletionOfReplicatedLocations: false } + safetyProfile: { allowDeletionOfReplicatedLocations: false }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -63,7 +63,7 @@ async function updateASimpleGalleryApplicationVersion() { galleryName, galleryApplicationName, galleryApplicationVersionName, - galleryApplicationVersion + galleryApplicationVersion, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryApplicationsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/galleryApplicationsCreateOrUpdateSample.ts index 7e8bfd3dcb2f..13ec8d872b01 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryApplicationsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryApplicationsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryApplication, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a gallery Application Definition. * * @summary Create or update a gallery Application Definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Create.json */ async function createOrUpdateASimpleGalleryApplication() { const subscriptionId = @@ -42,17 +42,17 @@ async function createOrUpdateASimpleGalleryApplication() { type: "String", description: "This is the description of the parameter", defaultValue: "default value of parameter.", - required: false - } + required: false, + }, ], - script: "myCustomActionScript" - } + script: "myCustomActionScript", + }, ], eula: "This is the gallery application EULA.", location: "West US", privacyStatementUri: "myPrivacyStatementUri}", releaseNoteUri: "myReleaseNoteUri", - supportedOSType: "Windows" + supportedOSType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -60,7 +60,7 @@ async function createOrUpdateASimpleGalleryApplication() { resourceGroupName, galleryName, galleryApplicationName, - galleryApplication + galleryApplication, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryApplicationsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/galleryApplicationsDeleteSample.ts index 4420b49c2068..dbf8d2a74f6c 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryApplicationsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryApplicationsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a gallery Application. * * @summary Delete a gallery Application. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Delete.json */ async function deleteAGalleryApplication() { const subscriptionId = @@ -32,7 +32,7 @@ async function deleteAGalleryApplication() { const result = await client.galleryApplications.beginDeleteAndWait( resourceGroupName, galleryName, - galleryApplicationName + galleryApplicationName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryApplicationsGetSample.ts b/sdk/compute/arm-compute/samples-dev/galleryApplicationsGetSample.ts index 8824d03d0d5e..c7241ed0da23 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryApplicationsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryApplicationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a gallery Application Definition. * * @summary Retrieves information about a gallery Application Definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Get.json */ async function getAGalleryApplication() { const subscriptionId = @@ -32,7 +32,7 @@ async function getAGalleryApplication() { const result = await client.galleryApplications.get( resourceGroupName, galleryName, - galleryApplicationName + galleryApplicationName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryApplicationsListByGallerySample.ts b/sdk/compute/arm-compute/samples-dev/galleryApplicationsListByGallerySample.ts index f26edc619f0b..b2a567fa665b 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryApplicationsListByGallerySample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryApplicationsListByGallerySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List gallery Application Definitions in a gallery. * * @summary List gallery Application Definitions in a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_ListByGallery.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_ListByGallery.json */ async function listGalleryApplicationsInAGallery() { const subscriptionId = @@ -31,7 +31,7 @@ async function listGalleryApplicationsInAGallery() { const resArray = new Array(); for await (let item of client.galleryApplications.listByGallery( resourceGroupName, - galleryName + galleryName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryApplicationsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/galleryApplicationsUpdateSample.ts index 9f0354ada9e6..ac9c5128804e 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryApplicationsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryApplicationsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryApplicationUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update a gallery Application Definition. * * @summary Update a gallery Application Definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Update.json */ async function updateASimpleGalleryApplication() { const subscriptionId = @@ -42,16 +42,16 @@ async function updateASimpleGalleryApplication() { type: "String", description: "This is the description of the parameter", defaultValue: "default value of parameter.", - required: false - } + required: false, + }, ], - script: "myCustomActionScript" - } + script: "myCustomActionScript", + }, ], eula: "This is the gallery application EULA.", privacyStatementUri: "myPrivacyStatementUri}", releaseNoteUri: "myReleaseNoteUri", - supportedOSType: "Windows" + supportedOSType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -59,7 +59,7 @@ async function updateASimpleGalleryApplication() { resourceGroupName, galleryName, galleryApplicationName, - galleryApplication + galleryApplication, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryImageVersionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/galleryImageVersionsCreateOrUpdateSample.ts index 34d31259d686..b3a2c2e67c30 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryImageVersionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryImageVersionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryImageVersion, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { const subscriptionId = @@ -42,21 +42,21 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 2 + regionalReplicaCount: 2, }, { name: "East US", @@ -65,32 +65,32 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}" - } - } + virtualMachineId: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -99,7 +99,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -108,7 +108,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithCommunityImageVersionAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithCommunityImageVersionAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImageAsSource() { const subscriptionId = @@ -129,21 +129,21 @@ async function createOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImag { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", @@ -152,32 +152,32 @@ async function createOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImag { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { communityGalleryImageId: - "/communityGalleries/{communityGalleryName}/images/{communityGalleryImageName}" - } - } + "/communityGalleries/{communityGalleryName}/images/{communityGalleryImageName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -186,7 +186,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImag galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -195,7 +195,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImag * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create.json */ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource() { const subscriptionId = @@ -216,21 +216,21 @@ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", @@ -239,32 +239,31 @@ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -273,7 +272,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -282,7 +281,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapshotsAsASource() { const subscriptionId = @@ -303,16 +302,16 @@ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapsho { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", @@ -321,19 +320,19 @@ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapsho { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { @@ -342,19 +341,17 @@ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapsho hostCaching: "None", lun: 1, source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{dataDiskName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{dataDiskName}", + }, + }, ], osDiskImage: { hostCaching: "ReadOnly", source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}" - } - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -363,7 +360,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapsho galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -372,7 +369,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapsho * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithShallowReplicationMode.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithShallowReplicationMode.json */ async function createOrUpdateASimpleGalleryImageVersionUsingShallowReplicationMode() { const subscriptionId = @@ -387,16 +384,15 @@ async function createOrUpdateASimpleGalleryImageVersionUsingShallowReplicationMo publishingProfile: { replicationMode: "Shallow", targetRegions: [ - { name: "West US", excludeFromLatest: false, regionalReplicaCount: 1 } - ] + { name: "West US", excludeFromLatest: false, regionalReplicaCount: 1 }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -405,7 +401,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingShallowReplicationMo galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -414,7 +410,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingShallowReplicationMo * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithImageVersionAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithImageVersionAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource() { const subscriptionId = @@ -435,21 +431,21 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource( { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", @@ -458,32 +454,31 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource( { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -492,7 +487,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource( galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -501,7 +496,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource( * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() { const subscriptionId = @@ -522,16 +517,16 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", @@ -540,19 +535,19 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { @@ -561,19 +556,17 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() hostCaching: "None", lun: 1, source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{dataDiskName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{dataDiskName}", + }, + }, ], osDiskImage: { hostCaching: "ReadOnly", source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}" - } - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -582,7 +575,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -591,7 +584,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD_UefiSettings.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD_UefiSettings.json */ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCustomUefiKeys() { const subscriptionId = @@ -612,24 +605,24 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCust { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, securityProfile: { @@ -637,10 +630,10 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCust additionalSignatures: { db: [{ type: "x509", value: [""] }], dbx: [{ type: "x509", value: [""] }], - kek: [{ type: "sha256", value: [""] }] + kek: [{ type: "sha256", value: [""] }], }, - signatureTemplateNames: ["MicrosoftUefiCertificateAuthorityTemplate"] - } + signatureTemplateNames: ["MicrosoftUefiCertificateAuthorityTemplate"], + }, }, storageProfile: { dataDiskImages: [ @@ -650,21 +643,19 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCust source: { storageAccountId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}", - uri: - "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd" - } - } + uri: "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd", + }, + }, ], osDiskImage: { hostCaching: "ReadOnly", source: { storageAccountId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}", - uri: - "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd" - } - } - } + uri: "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -673,7 +664,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCust galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -682,7 +673,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCust * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD.json */ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { const subscriptionId = @@ -703,24 +694,24 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { @@ -731,21 +722,19 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { source: { storageAccountId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}", - uri: - "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd" - } - } + uri: "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd", + }, + }, ], osDiskImage: { hostCaching: "ReadOnly", source: { storageAccountId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}", - uri: - "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd" - } - } - } + uri: "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -754,7 +743,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -763,7 +752,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithTargetExtendedLocations.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithTargetExtendedLocations.json */ async function createOrUpdateASimpleGalleryImageVersionWithTargetExtendedLocationsSpecified() { const subscriptionId = @@ -784,21 +773,21 @@ async function createOrUpdateASimpleGalleryImageVersionWithTargetExtendedLocatio { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", @@ -807,32 +796,31 @@ async function createOrUpdateASimpleGalleryImageVersionWithTargetExtendedLocatio { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -841,7 +829,7 @@ async function createOrUpdateASimpleGalleryImageVersionWithTargetExtendedLocatio galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryImageVersionsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/galleryImageVersionsDeleteSample.ts index b66f4ae64b5b..6a83e09ea49d 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryImageVersionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryImageVersionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a gallery image version. * * @summary Delete a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Delete.json */ async function deleteAGalleryImageVersion() { const subscriptionId = @@ -34,7 +34,7 @@ async function deleteAGalleryImageVersion() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryImageVersionsGetSample.ts b/sdk/compute/arm-compute/samples-dev/galleryImageVersionsGetSample.ts index 604e400364ca..1c7ce8a851d1 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryImageVersionsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryImageVersionsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryImageVersionsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a gallery image version. * * @summary Retrieves information about a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json */ async function getAGalleryImageVersionWithReplicationStatus() { const subscriptionId = @@ -40,7 +40,7 @@ async function getAGalleryImageVersionWithReplicationStatus() { galleryName, galleryImageName, galleryImageVersionName, - options + options, ); console.log(result); } @@ -49,7 +49,7 @@ async function getAGalleryImageVersionWithReplicationStatus() { * This sample demonstrates how to Retrieves information about a gallery image version. * * @summary Retrieves information about a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json */ async function getAGalleryImageVersionWithSnapshotsAsASource() { const subscriptionId = @@ -65,7 +65,7 @@ async function getAGalleryImageVersionWithSnapshotsAsASource() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ); console.log(result); } @@ -74,7 +74,7 @@ async function getAGalleryImageVersionWithSnapshotsAsASource() { * This sample demonstrates how to Retrieves information about a gallery image version. * * @summary Retrieves information about a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json */ async function getAGalleryImageVersionWithVhdAsASource() { const subscriptionId = @@ -90,7 +90,7 @@ async function getAGalleryImageVersionWithVhdAsASource() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ); console.log(result); } @@ -99,7 +99,7 @@ async function getAGalleryImageVersionWithVhdAsASource() { * This sample demonstrates how to Retrieves information about a gallery image version. * * @summary Retrieves information about a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get.json */ async function getAGalleryImageVersion() { const subscriptionId = @@ -115,7 +115,7 @@ async function getAGalleryImageVersion() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryImageVersionsListByGalleryImageSample.ts b/sdk/compute/arm-compute/samples-dev/galleryImageVersionsListByGalleryImageSample.ts index 133f00a3f8c4..c48a9f9f1add 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryImageVersionsListByGalleryImageSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryImageVersionsListByGalleryImageSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List gallery image versions in a gallery image definition. * * @summary List gallery image versions in a gallery image definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json */ async function listGalleryImageVersionsInAGalleryImageDefinition() { const subscriptionId = @@ -33,7 +33,7 @@ async function listGalleryImageVersionsInAGalleryImageDefinition() { for await (let item of client.galleryImageVersions.listByGalleryImage( resourceGroupName, galleryName, - galleryImageName + galleryImageName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryImageVersionsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/galleryImageVersionsUpdateSample.ts index 426f609b01a4..e0e24976bbc0 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryImageVersionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryImageVersionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryImageVersionUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update a gallery image version. * * @summary Update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Update.json */ async function updateASimpleGalleryImageVersionManagedImageAsSource() { const subscriptionId = @@ -38,16 +38,15 @@ async function updateASimpleGalleryImageVersionManagedImageAsSource() { { name: "East US", regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, storageProfile: { source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -56,7 +55,7 @@ async function updateASimpleGalleryImageVersionManagedImageAsSource() { galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -65,7 +64,7 @@ async function updateASimpleGalleryImageVersionManagedImageAsSource() { * This sample demonstrates how to Update a gallery image version. * * @summary Update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Update_WithoutSourceId.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Update_WithoutSourceId.json */ async function updateASimpleGalleryImageVersionWithoutSourceId() { const subscriptionId = @@ -82,11 +81,11 @@ async function updateASimpleGalleryImageVersionWithoutSourceId() { { name: "East US", regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, - storageProfile: {} + storageProfile: {}, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -95,7 +94,7 @@ async function updateASimpleGalleryImageVersionWithoutSourceId() { galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryImagesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/galleryImagesCreateOrUpdateSample.ts index c7b4ea1843e2..0f63a0191f57 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryImagesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryImagesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a gallery image definition. * * @summary Create or update a gallery image definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Create.json */ async function createOrUpdateASimpleGalleryImage() { const subscriptionId = @@ -32,11 +32,11 @@ async function createOrUpdateASimpleGalleryImage() { identifier: { offer: "myOfferName", publisher: "myPublisherName", - sku: "mySkuName" + sku: "mySkuName", }, location: "West US", osState: "Generalized", - osType: "Windows" + osType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -44,7 +44,7 @@ async function createOrUpdateASimpleGalleryImage() { resourceGroupName, galleryName, galleryImageName, - galleryImage + galleryImage, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryImagesDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/galleryImagesDeleteSample.ts index 79aeace8fe9f..ef6bc052347f 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryImagesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryImagesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a gallery image. * * @summary Delete a gallery image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Delete.json */ async function deleteAGalleryImage() { const subscriptionId = @@ -32,7 +32,7 @@ async function deleteAGalleryImage() { const result = await client.galleryImages.beginDeleteAndWait( resourceGroupName, galleryName, - galleryImageName + galleryImageName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryImagesGetSample.ts b/sdk/compute/arm-compute/samples-dev/galleryImagesGetSample.ts index 90da9b06c25d..2d523eaabfe3 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryImagesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryImagesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a gallery image definition. * * @summary Retrieves information about a gallery image definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Get.json */ async function getAGalleryImage() { const subscriptionId = @@ -32,7 +32,7 @@ async function getAGalleryImage() { const result = await client.galleryImages.get( resourceGroupName, galleryName, - galleryImageName + galleryImageName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryImagesListByGallerySample.ts b/sdk/compute/arm-compute/samples-dev/galleryImagesListByGallerySample.ts index c41ab8528af4..211a3cedfc09 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryImagesListByGallerySample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryImagesListByGallerySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List gallery image definitions in a gallery. * * @summary List gallery image definitions in a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_ListByGallery.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_ListByGallery.json */ async function listGalleryImagesInAGallery() { const subscriptionId = @@ -31,7 +31,7 @@ async function listGalleryImagesInAGallery() { const resArray = new Array(); for await (let item of client.galleryImages.listByGallery( resourceGroupName, - galleryName + galleryName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryImagesUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/galleryImagesUpdateSample.ts index 8afac6ae429f..caf15968df97 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryImagesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryImagesUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryImageUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update a gallery image definition. * * @summary Update a gallery image definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Update.json */ async function updateASimpleGalleryImage() { const subscriptionId = @@ -35,10 +35,10 @@ async function updateASimpleGalleryImage() { identifier: { offer: "myOfferName", publisher: "myPublisherName", - sku: "mySkuName" + sku: "mySkuName", }, osState: "Generalized", - osType: "Windows" + osType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -46,7 +46,7 @@ async function updateASimpleGalleryImage() { resourceGroupName, galleryName, galleryImageName, - galleryImage + galleryImage, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/gallerySharingProfileUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/gallerySharingProfileUpdateSample.ts index 7cc06be19cb4..b3cbc70b8ce8 100644 --- a/sdk/compute/arm-compute/samples-dev/gallerySharingProfileUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/gallerySharingProfileUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Update sharing profile of a gallery. * * @summary Update sharing profile of a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_AddToSharingProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_AddToSharingProfile.json */ async function addSharingIdToTheSharingProfileOfAGallery() { const subscriptionId = @@ -32,19 +32,19 @@ async function addSharingIdToTheSharingProfileOfAGallery() { type: "Subscriptions", ids: [ "34a4ab42-0d72-47d9-bd1a-aed207386dac", - "380fd389-260b-41aa-bad9-0a83108c370b" - ] + "380fd389-260b-41aa-bad9-0a83108c370b", + ], }, - { type: "AADTenants", ids: ["c24c76aa-8897-4027-9b03-8f7928b54ff6"] } + { type: "AADTenants", ids: ["c24c76aa-8897-4027-9b03-8f7928b54ff6"] }, ], - operationType: "Add" + operationType: "Add", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.gallerySharingProfile.beginUpdateAndWait( resourceGroupName, galleryName, - sharingUpdate + sharingUpdate, ); console.log(result); } @@ -53,7 +53,7 @@ async function addSharingIdToTheSharingProfileOfAGallery() { * This sample demonstrates how to Update sharing profile of a gallery. * * @summary Update sharing profile of a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ResetSharingProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ResetSharingProfile.json */ async function resetSharingProfileOfAGallery() { const subscriptionId = @@ -67,7 +67,7 @@ async function resetSharingProfileOfAGallery() { const result = await client.gallerySharingProfile.beginUpdateAndWait( resourceGroupName, galleryName, - sharingUpdate + sharingUpdate, ); console.log(result); } @@ -76,7 +76,7 @@ async function resetSharingProfileOfAGallery() { * This sample demonstrates how to Update sharing profile of a gallery. * * @summary Update sharing profile of a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_EnableCommunityGallery.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_EnableCommunityGallery.json */ async function shareAGalleryToCommunity() { const subscriptionId = @@ -90,7 +90,7 @@ async function shareAGalleryToCommunity() { const result = await client.gallerySharingProfile.beginUpdateAndWait( resourceGroupName, galleryName, - sharingUpdate + sharingUpdate, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/imagesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/imagesCreateOrUpdateSample.ts index e1b9822fcdd3..18d2392fcafc 100644 --- a/sdk/compute/arm-compute/samples-dev/imagesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/imagesCreateOrUpdateSample.ts @@ -33,20 +33,19 @@ async function createAVirtualMachineImageFromABlobWithDiskEncryptionSetResource( blobUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, osState: "Generalized", - osType: "Linux" - } - } + osType: "Linux", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -70,17 +69,17 @@ async function createAVirtualMachineImageFromABlob() { blobUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", osState: "Generalized", - osType: "Linux" + osType: "Linux", }, - zoneResilient: true - } + zoneResilient: true, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -102,24 +101,22 @@ async function createAVirtualMachineImageFromAManagedDiskWithDiskEncryptionSetRe storageProfile: { osDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, osState: "Generalized", osType: "Linux", snapshot: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } - } - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -141,21 +138,20 @@ async function createAVirtualMachineImageFromAManagedDisk() { storageProfile: { osDisk: { managedDisk: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk" + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk", }, osState: "Generalized", - osType: "Linux" + osType: "Linux", }, - zoneResilient: true - } + zoneResilient: true, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -177,24 +173,22 @@ async function createAVirtualMachineImageFromASnapshotWithDiskEncryptionSetResou storageProfile: { osDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, managedDisk: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk" + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk", }, osState: "Generalized", - osType: "Linux" - } - } + osType: "Linux", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -218,19 +212,18 @@ async function createAVirtualMachineImageFromASnapshot() { osState: "Generalized", osType: "Linux", snapshot: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, }, - zoneResilient: false - } + zoneResilient: false, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -250,16 +243,15 @@ async function createAVirtualMachineImageFromAnExistingVirtualMachine() { const parameters: Image = { location: "West US", sourceVirtualMachine: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -283,24 +275,24 @@ async function createAVirtualMachineImageThatIncludesADataDiskFromABlob() { { blobUri: "https://mystorageaccount.blob.core.windows.net/dataimages/dataimage.vhd", - lun: 1 - } + lun: 1, + }, ], osDisk: { blobUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", osState: "Generalized", - osType: "Linux" + osType: "Linux", }, - zoneResilient: false - } + zoneResilient: false, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -324,28 +316,26 @@ async function createAVirtualMachineImageThatIncludesADataDiskFromAManagedDisk() { lun: 1, managedDisk: { - id: - "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk2" - } - } + id: "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk2", + }, + }, ], osDisk: { managedDisk: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk" + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk", }, osState: "Generalized", - osType: "Linux" + osType: "Linux", }, - zoneResilient: false - } + zoneResilient: false, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -369,28 +359,26 @@ async function createAVirtualMachineImageThatIncludesADataDiskFromASnapshot() { { lun: 1, snapshot: { - id: - "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2" - } - } + id: "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2", + }, + }, ], osDisk: { osState: "Generalized", osType: "Linux", snapshot: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, }, - zoneResilient: true - } + zoneResilient: true, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/imagesDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/imagesDeleteSample.ts index 5242180378a8..4128c7f9d8ea 100644 --- a/sdk/compute/arm-compute/samples-dev/imagesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/imagesDeleteSample.ts @@ -30,7 +30,7 @@ async function imageDeleteMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginDeleteAndWait( resourceGroupName, - imageName + imageName, ); console.log(result); } @@ -51,7 +51,7 @@ async function imageDeleteMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginDeleteAndWait( resourceGroupName, - imageName + imageName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/imagesUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/imagesUpdateSample.ts index 4a7b86c53faf..0d52e7fb6b45 100644 --- a/sdk/compute/arm-compute/samples-dev/imagesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/imagesUpdateSample.ts @@ -29,17 +29,16 @@ async function updatesTagsOfAnImage() { const parameters: ImageUpdate = { hyperVGeneration: "V1", sourceVirtualMachine: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", }, - tags: { department: "HR" } + tags: { department: "HR" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/logAnalyticsExportRequestRateByIntervalSample.ts b/sdk/compute/arm-compute/samples-dev/logAnalyticsExportRequestRateByIntervalSample.ts index 4d5a028b6cc2..f4c666da9564 100644 --- a/sdk/compute/arm-compute/samples-dev/logAnalyticsExportRequestRateByIntervalSample.ts +++ b/sdk/compute/arm-compute/samples-dev/logAnalyticsExportRequestRateByIntervalSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { RequestRateByIntervalInput, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,14 +32,15 @@ async function exportLogsWhichContainAllApiRequestsMadeToComputeResourceProvider fromTime: new Date("2018-01-21T01:54:06.862601Z"), groupByResourceName: true, intervalLength: "FiveMins", - toTime: new Date("2018-01-23T01:54:06.862601Z") + toTime: new Date("2018-01-23T01:54:06.862601Z"), }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.logAnalytics.beginExportRequestRateByIntervalAndWait( - location, - parameters - ); + const result = + await client.logAnalytics.beginExportRequestRateByIntervalAndWait( + location, + parameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/logAnalyticsExportThrottledRequestsSample.ts b/sdk/compute/arm-compute/samples-dev/logAnalyticsExportThrottledRequestsSample.ts index 0cde453f3d71..445887388967 100644 --- a/sdk/compute/arm-compute/samples-dev/logAnalyticsExportThrottledRequestsSample.ts +++ b/sdk/compute/arm-compute/samples-dev/logAnalyticsExportThrottledRequestsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ThrottledRequestsInput, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,13 +34,13 @@ async function exportLogsWhichContainAllThrottledApiRequestsMadeToComputeResourc groupByOperationName: true, groupByResourceName: false, groupByUserAgent: false, - toTime: new Date("2018-01-23T01:54:06.862601Z") + toTime: new Date("2018-01-23T01:54:06.862601Z"), }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.logAnalytics.beginExportThrottledRequestsAndWait( location, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsCreateOrUpdateSample.ts index 8da20c7470c7..b01db7389cc7 100644 --- a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ProximityPlacementGroup, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -33,14 +33,14 @@ async function createOrUpdateAProximityPlacementGroup() { intent: { vmSizes: ["Basic_A0", "Basic_A2"] }, location: "westus", proximityPlacementGroupType: "Standard", - zones: ["1"] + zones: ["1"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.proximityPlacementGroups.createOrUpdate( resourceGroupName, proximityPlacementGroupName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsDeleteSample.ts index 78cb930f4808..64d024b47ed9 100644 --- a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteAProximityPlacementGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.proximityPlacementGroups.delete( resourceGroupName, - proximityPlacementGroupName + proximityPlacementGroupName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsGetSample.ts b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsGetSample.ts index c781c18b8422..969a5d0ed9c2 100644 --- a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsGetSample.ts @@ -30,7 +30,7 @@ async function getProximityPlacementGroups() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.proximityPlacementGroups.get( resourceGroupName, - proximityPlacementGroupName + proximityPlacementGroupName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsListByResourceGroupSample.ts index 6f2ccecf187c..ccb49b388f68 100644 --- a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function listProximityPlacementGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.proximityPlacementGroups.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsUpdateSample.ts index f28165f24e28..6351d4f8b5b1 100644 --- a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ProximityPlacementGroupUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -30,14 +30,14 @@ async function updateAProximityPlacementGroup() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const proximityPlacementGroupName = "myProximityPlacementGroup"; const parameters: ProximityPlacementGroupUpdate = { - tags: { additionalProp1: "string" } + tags: { additionalProp1: "string" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.proximityPlacementGroups.update( resourceGroupName, proximityPlacementGroupName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/resourceSkusListSample.ts b/sdk/compute/arm-compute/samples-dev/resourceSkusListSample.ts index b3b4ae81defe..5a7e162de929 100644 --- a/sdk/compute/arm-compute/samples-dev/resourceSkusListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/resourceSkusListSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ResourceSkusListOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; diff --git a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsCreateOrUpdateSample.ts index 0063719e7285..fbb15e579732 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { RestorePointCollection, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,17 +32,16 @@ async function createOrUpdateARestorePointCollectionForCrossRegionCopy() { const parameters: RestorePointCollection = { location: "norwayeast", source: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/sourceRpcName" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/sourceRpcName", }, - tags: { myTag1: "tagValue1" } + tags: { myTag1: "tagValue1" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.createOrUpdate( resourceGroupName, restorePointCollectionName, - parameters + parameters, ); console.log(result); } @@ -62,17 +61,16 @@ async function createOrUpdateARestorePointCollection() { const parameters: RestorePointCollection = { location: "norwayeast", source: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", }, - tags: { myTag1: "tagValue1" } + tags: { myTag1: "tagValue1" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.createOrUpdate( resourceGroupName, restorePointCollectionName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsDeleteSample.ts index 0ec63a868e4e..8eaf6fbbeaa9 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsDeleteSample.ts @@ -30,7 +30,7 @@ async function restorePointCollectionDeleteMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.beginDeleteAndWait( resourceGroupName, - restorePointCollectionName + restorePointCollectionName, ); console.log(result); } @@ -51,7 +51,7 @@ async function restorePointCollectionDeleteMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.beginDeleteAndWait( resourceGroupName, - restorePointCollectionName + restorePointCollectionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsGetSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsGetSample.ts index 2e84a0f854e1..7da1b103e447 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsGetSample.ts @@ -30,7 +30,7 @@ async function getARestorePointCollectionButNotTheRestorePointsContainedInTheRes const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.get( resourceGroupName, - restorePointCollectionName + restorePointCollectionName, ); console.log(result); } @@ -51,7 +51,7 @@ async function getARestorePointCollectionIncludingTheRestorePointsContainedInThe const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.get( resourceGroupName, - restorePointCollectionName + restorePointCollectionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsListSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsListSample.ts index 36b78b98acda..da4381f8e57c 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsListSample.ts @@ -29,7 +29,7 @@ async function getsTheListOfRestorePointCollectionsInAResourceGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.restorePointCollections.list( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsUpdateSample.ts index 8139f2f0148a..56c3b839f3dd 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { RestorePointCollectionUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,17 +31,16 @@ async function restorePointCollectionUpdateMaximumSetGen() { const restorePointCollectionName = "aaaaaaaaaaaaaaaaaaaa"; const parameters: RestorePointCollectionUpdate = { source: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", }, - tags: { key8536: "aaaaaaaaaaaaaaaaaaa" } + tags: { key8536: "aaaaaaaaaaaaaaaaaaa" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.update( resourceGroupName, restorePointCollectionName, - parameters + parameters, ); console.log(result); } @@ -64,7 +63,7 @@ async function restorePointCollectionUpdateMinimumSetGen() { const result = await client.restorePointCollections.update( resourceGroupName, restorePointCollectionName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/restorePointsCreateSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointsCreateSample.ts index 14ea6b48855a..5e9a8b176bc9 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointsCreateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointsCreateSample.ts @@ -29,9 +29,8 @@ async function copyARestorePointToADifferentRegion() { const restorePointName = "rpName"; const parameters: RestorePoint = { sourceRestorePoint: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/sourceRpcName/restorePoints/sourceRpName" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/sourceRpcName/restorePoints/sourceRpName", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -39,7 +38,7 @@ async function copyARestorePointToADifferentRegion() { resourceGroupName, restorePointCollectionName, restorePointName, - parameters + parameters, ); console.log(result); } @@ -60,10 +59,9 @@ async function createARestorePoint() { const parameters: RestorePoint = { excludeDisks: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123" - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -71,7 +69,7 @@ async function createARestorePoint() { resourceGroupName, restorePointCollectionName, restorePointName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/restorePointsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointsDeleteSample.ts index 04d487cb2a79..3830c72a49ae 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointsDeleteSample.ts @@ -32,7 +32,7 @@ async function restorePointDeleteMaximumSetGen() { const result = await client.restorePoints.beginDeleteAndWait( resourceGroupName, restorePointCollectionName, - restorePointName + restorePointName, ); console.log(result); } @@ -55,7 +55,7 @@ async function restorePointDeleteMinimumSetGen() { const result = await client.restorePoints.beginDeleteAndWait( resourceGroupName, restorePointCollectionName, - restorePointName + restorePointName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/restorePointsGetSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointsGetSample.ts index 92b710e9edba..c45959186cb4 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointsGetSample.ts @@ -32,7 +32,7 @@ async function getARestorePoint() { const result = await client.restorePoints.get( resourceGroupName, restorePointCollectionName, - restorePointName + restorePointName, ); console.log(result); } @@ -55,7 +55,7 @@ async function getRestorePointWithInstanceView() { const result = await client.restorePoints.get( resourceGroupName, restorePointCollectionName, - restorePointName + restorePointName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/sharedGalleriesGetSample.ts b/sdk/compute/arm-compute/samples-dev/sharedGalleriesGetSample.ts index 116c46e83351..85674d442cf0 100644 --- a/sdk/compute/arm-compute/samples-dev/sharedGalleriesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sharedGalleriesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a shared gallery by subscription id or tenant id. * * @summary Get a shared gallery by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGallery_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_Get.json */ async function getASharedGallery() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/sharedGalleriesListSample.ts b/sdk/compute/arm-compute/samples-dev/sharedGalleriesListSample.ts index 0193a2a0acd1..cf12445c658f 100644 --- a/sdk/compute/arm-compute/samples-dev/sharedGalleriesListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sharedGalleriesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List shared galleries by subscription id or tenant id. * * @summary List shared galleries by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGallery_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_List.json */ async function listSharedGalleries() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/sharedGalleryImageVersionsGetSample.ts b/sdk/compute/arm-compute/samples-dev/sharedGalleryImageVersionsGetSample.ts index 2db65265c53e..0fc9d92c351c 100644 --- a/sdk/compute/arm-compute/samples-dev/sharedGalleryImageVersionsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sharedGalleryImageVersionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a shared gallery image version by subscription id or tenant id. * * @summary Get a shared gallery image version by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json */ async function getASharedGalleryImageVersion() { const subscriptionId = @@ -33,7 +33,7 @@ async function getASharedGalleryImageVersion() { location, galleryUniqueName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/sharedGalleryImageVersionsListSample.ts b/sdk/compute/arm-compute/samples-dev/sharedGalleryImageVersionsListSample.ts index e38e7ae0ef03..98ae70b401e2 100644 --- a/sdk/compute/arm-compute/samples-dev/sharedGalleryImageVersionsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sharedGalleryImageVersionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List shared gallery image versions by subscription id or tenant id. * * @summary List shared gallery image versions by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json */ async function listSharedGalleryImageVersions() { const subscriptionId = @@ -32,7 +32,7 @@ async function listSharedGalleryImageVersions() { for await (let item of client.sharedGalleryImageVersions.list( location, galleryUniqueName, - galleryImageName + galleryImageName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/sharedGalleryImagesGetSample.ts b/sdk/compute/arm-compute/samples-dev/sharedGalleryImagesGetSample.ts index a2f5bbf42758..130e67be7970 100644 --- a/sdk/compute/arm-compute/samples-dev/sharedGalleryImagesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sharedGalleryImagesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a shared gallery image by subscription id or tenant id. * * @summary Get a shared gallery image by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json */ async function getASharedGalleryImage() { const subscriptionId = @@ -31,7 +31,7 @@ async function getASharedGalleryImage() { const result = await client.sharedGalleryImages.get( location, galleryUniqueName, - galleryImageName + galleryImageName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/sharedGalleryImagesListSample.ts b/sdk/compute/arm-compute/samples-dev/sharedGalleryImagesListSample.ts index 90d09b585616..be7c03622bf6 100644 --- a/sdk/compute/arm-compute/samples-dev/sharedGalleryImagesListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sharedGalleryImagesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List shared gallery images by subscription id or tenant id. * * @summary List shared gallery images by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json */ async function listSharedGalleryImages() { const subscriptionId = @@ -30,7 +30,7 @@ async function listSharedGalleryImages() { const resArray = new Array(); for await (let item of client.sharedGalleryImages.list( location, - galleryUniqueName + galleryUniqueName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/snapshotsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/snapshotsCreateOrUpdateSample.ts index 238b8b1c9374..a7e3916053eb 100644 --- a/sdk/compute/arm-compute/samples-dev/snapshotsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/snapshotsCreateOrUpdateSample.ts @@ -32,16 +32,16 @@ async function createASnapshotByImportingAnUnmanagedBlobFromADifferentSubscripti sourceUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", storageAccountId: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount" + "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginCreateOrUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } @@ -62,16 +62,16 @@ async function createASnapshotByImportingAnUnmanagedBlobFromTheSameSubscription( creationData: { createOption: "Import", sourceUri: - "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" + "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginCreateOrUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } @@ -92,16 +92,16 @@ async function createASnapshotFromAnElasticSanVolumeSnapshot() { creationData: { createOption: "CopyFromSanSnapshot", elasticSanResourceId: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot" + "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginCreateOrUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } @@ -123,16 +123,16 @@ async function createASnapshotFromAnExistingSnapshotInTheSameOrADifferentSubscri createOption: "CopyStart", provisionedBandwidthCopySpeed: "Enhanced", sourceResourceId: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1" + "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginCreateOrUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } @@ -153,16 +153,16 @@ async function createASnapshotFromAnExistingSnapshotInTheSameOrADifferentSubscri creationData: { createOption: "CopyStart", sourceResourceId: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1" + "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginCreateOrUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } @@ -183,16 +183,16 @@ async function createASnapshotFromAnExistingSnapshotInTheSameOrADifferentSubscri creationData: { createOption: "Copy", sourceResourceId: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1" + "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginCreateOrUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/snapshotsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/snapshotsDeleteSample.ts index f7280932794e..0a19e08b60ff 100644 --- a/sdk/compute/arm-compute/samples-dev/snapshotsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/snapshotsDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteASnapshot() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginDeleteAndWait( resourceGroupName, - snapshotName + snapshotName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/snapshotsGrantAccessSample.ts b/sdk/compute/arm-compute/samples-dev/snapshotsGrantAccessSample.ts index 0b480d5736f6..80c826644254 100644 --- a/sdk/compute/arm-compute/samples-dev/snapshotsGrantAccessSample.ts +++ b/sdk/compute/arm-compute/samples-dev/snapshotsGrantAccessSample.ts @@ -29,14 +29,14 @@ async function getASasOnASnapshot() { const grantAccessData: GrantAccessData = { access: "Read", durationInSeconds: 300, - fileFormat: "VHDX" + fileFormat: "VHDX", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginGrantAccessAndWait( resourceGroupName, snapshotName, - grantAccessData + grantAccessData, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/snapshotsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples-dev/snapshotsListByResourceGroupSample.ts index 5225bf7768cc..1357e3df3f30 100644 --- a/sdk/compute/arm-compute/samples-dev/snapshotsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/snapshotsListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function listAllSnapshotsInAResourceGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.snapshots.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/snapshotsRevokeAccessSample.ts b/sdk/compute/arm-compute/samples-dev/snapshotsRevokeAccessSample.ts index f50d8dd83951..d56c77dd2f91 100644 --- a/sdk/compute/arm-compute/samples-dev/snapshotsRevokeAccessSample.ts +++ b/sdk/compute/arm-compute/samples-dev/snapshotsRevokeAccessSample.ts @@ -30,7 +30,7 @@ async function revokeAccessToASnapshot() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginRevokeAccessAndWait( resourceGroupName, - snapshotName + snapshotName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/snapshotsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/snapshotsUpdateSample.ts index 61240be67d98..f7c88b819955 100644 --- a/sdk/compute/arm-compute/samples-dev/snapshotsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/snapshotsUpdateSample.ts @@ -29,14 +29,14 @@ async function updateASnapshotWithAcceleratedNetworking() { const snapshot: SnapshotUpdate = { diskSizeGB: 20, supportedCapabilities: { acceleratedNetwork: false }, - tags: { department: "Development", project: "UpdateSnapshots" } + tags: { department: "Development", project: "UpdateSnapshots" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } @@ -55,14 +55,14 @@ async function updateASnapshot() { const snapshotName = "mySnapshot"; const snapshot: SnapshotUpdate = { diskSizeGB: 20, - tags: { department: "Development", project: "UpdateSnapshots" } + tags: { department: "Development", project: "UpdateSnapshots" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/sshPublicKeysCreateSample.ts b/sdk/compute/arm-compute/samples-dev/sshPublicKeysCreateSample.ts index f6bca8c1eecd..3ee613250145 100644 --- a/sdk/compute/arm-compute/samples-dev/sshPublicKeysCreateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sshPublicKeysCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { SshPublicKeyResource, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,14 +31,14 @@ async function createANewSshPublicKeyResource() { const sshPublicKeyName = "mySshPublicKeyName"; const parameters: SshPublicKeyResource = { location: "westus", - publicKey: "{ssh-rsa public key}" + publicKey: "{ssh-rsa public key}", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.sshPublicKeys.create( resourceGroupName, sshPublicKeyName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/sshPublicKeysDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/sshPublicKeysDeleteSample.ts index ed5f68827f5e..1a380efe51fb 100644 --- a/sdk/compute/arm-compute/samples-dev/sshPublicKeysDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sshPublicKeysDeleteSample.ts @@ -30,7 +30,7 @@ async function sshPublicKeyDeleteMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.sshPublicKeys.delete( resourceGroupName, - sshPublicKeyName + sshPublicKeyName, ); console.log(result); } @@ -51,7 +51,7 @@ async function sshPublicKeyDeleteMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.sshPublicKeys.delete( resourceGroupName, - sshPublicKeyName + sshPublicKeyName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/sshPublicKeysGenerateKeyPairSample.ts b/sdk/compute/arm-compute/samples-dev/sshPublicKeysGenerateKeyPairSample.ts index 13e203f44ab9..4de7ab6cfbd6 100644 --- a/sdk/compute/arm-compute/samples-dev/sshPublicKeysGenerateKeyPairSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sshPublicKeysGenerateKeyPairSample.ts @@ -11,7 +11,7 @@ import { SshGenerateKeyPairInputParameters, SshPublicKeysGenerateKeyPairOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,7 +31,7 @@ async function generateAnSshKeyPairWithEd25519Encryption() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const sshPublicKeyName = "mySshPublicKeyName"; const parameters: SshGenerateKeyPairInputParameters = { - encryptionType: "RSA" + encryptionType: "RSA", }; const options: SshPublicKeysGenerateKeyPairOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -39,7 +39,7 @@ async function generateAnSshKeyPairWithEd25519Encryption() { const result = await client.sshPublicKeys.generateKeyPair( resourceGroupName, sshPublicKeyName, - options + options, ); console.log(result); } @@ -57,7 +57,7 @@ async function generateAnSshKeyPairWithRsaEncryption() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const sshPublicKeyName = "mySshPublicKeyName"; const parameters: SshGenerateKeyPairInputParameters = { - encryptionType: "RSA" + encryptionType: "RSA", }; const options: SshPublicKeysGenerateKeyPairOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -65,7 +65,7 @@ async function generateAnSshKeyPairWithRsaEncryption() { const result = await client.sshPublicKeys.generateKeyPair( resourceGroupName, sshPublicKeyName, - options + options, ); console.log(result); } @@ -86,7 +86,7 @@ async function generateAnSshKeyPair() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.sshPublicKeys.generateKeyPair( resourceGroupName, - sshPublicKeyName + sshPublicKeyName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/sshPublicKeysGetSample.ts b/sdk/compute/arm-compute/samples-dev/sshPublicKeysGetSample.ts index 69ea23c91ac4..3f96cc907874 100644 --- a/sdk/compute/arm-compute/samples-dev/sshPublicKeysGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sshPublicKeysGetSample.ts @@ -30,7 +30,7 @@ async function getAnSshPublicKey() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.sshPublicKeys.get( resourceGroupName, - sshPublicKeyName + sshPublicKeyName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/sshPublicKeysListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples-dev/sshPublicKeysListByResourceGroupSample.ts index 9c69c2e99ac6..6cec1c49751b 100644 --- a/sdk/compute/arm-compute/samples-dev/sshPublicKeysListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sshPublicKeysListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function sshPublicKeyListByResourceGroupMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.sshPublicKeys.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } @@ -51,7 +51,7 @@ async function sshPublicKeyListByResourceGroupMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.sshPublicKeys.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/sshPublicKeysUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/sshPublicKeysUpdateSample.ts index 5ef6ce84fb73..8f64aa963e4e 100644 --- a/sdk/compute/arm-compute/samples-dev/sshPublicKeysUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sshPublicKeysUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { SshPublicKeyUpdateResource, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,14 +31,14 @@ async function sshPublicKeyUpdateMaximumSetGen() { const sshPublicKeyName = "aaaaaaaaaaaa"; const parameters: SshPublicKeyUpdateResource = { publicKey: "{ssh-rsa public key}", - tags: { key2854: "a" } + tags: { key2854: "a" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.sshPublicKeys.update( resourceGroupName, sshPublicKeyName, - parameters + parameters, ); console.log(result); } @@ -61,7 +61,7 @@ async function sshPublicKeyUpdateMinimumSetGen() { const result = await client.sshPublicKeys.update( resourceGroupName, sshPublicKeyName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesGetSample.ts index 867abfcdb602..4793d3b6449c 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesGetSample.ts @@ -33,7 +33,7 @@ async function virtualMachineExtensionImageGetMaximumSetGen() { location, publisherName, typeParam, - version + version, ); console.log(result); } @@ -57,7 +57,7 @@ async function virtualMachineExtensionImageGetMinimumSetGen() { location, publisherName, typeParam, - version + version, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesListTypesSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesListTypesSample.ts index ca5f4b5e13af..be758e2fdf5d 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesListTypesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesListTypesSample.ts @@ -29,7 +29,7 @@ async function virtualMachineExtensionImageListTypesMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineExtensionImages.listTypes( location, - publisherName + publisherName, ); console.log(result); } @@ -49,7 +49,7 @@ async function virtualMachineExtensionImageListTypesMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineExtensionImages.listTypes( location, - publisherName + publisherName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesListVersionsSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesListVersionsSample.ts index 356ca0f2377a..c762507d6723 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesListVersionsSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesListVersionsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineExtensionImagesListVersionsOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -35,7 +35,7 @@ async function virtualMachineExtensionImageListVersionsMaximumSetGen() { const options: VirtualMachineExtensionImagesListVersionsOptionalParams = { filter, top, - orderby + orderby, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function virtualMachineExtensionImageListVersionsMaximumSetGen() { location, publisherName, typeParam, - options + options, ); console.log(result); } @@ -65,7 +65,7 @@ async function virtualMachineExtensionImageListVersionsMinimumSetGen() { const result = await client.virtualMachineExtensionImages.listVersions( location, publisherName, - typeParam + typeParam, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsCreateOrUpdateSample.ts index 404c9c576cc7..6a7b121d4fb2 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineExtension, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -44,8 +44,8 @@ async function virtualMachineExtensionCreateOrUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], substatuses: [ { @@ -53,10 +53,10 @@ async function virtualMachineExtensionCreateOrUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], - typeHandlerVersion: "aaaaaaaaaaaaaaaaaaaaaaaaaa" + typeHandlerVersion: "aaaaaaaaaaaaaaaaaaaaaaaaaa", }, location: "westus", protectedSettings: {}, @@ -64,16 +64,17 @@ async function virtualMachineExtensionCreateOrUpdateMaximumSetGen() { settings: {}, suppressFailures: true, tags: { key9183: "aa" }, - typeHandlerVersion: "1.2" + typeHandlerVersion: "1.2", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineExtensions.beginCreateOrUpdateAndWait( - resourceGroupName, - vmName, - vmExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineExtensions.beginCreateOrUpdateAndWait( + resourceGroupName, + vmName, + vmExtensionName, + extensionParameters, + ); console.log(result); } @@ -93,12 +94,13 @@ async function virtualMachineExtensionCreateOrUpdateMinimumSetGen() { const extensionParameters: VirtualMachineExtension = { location: "westus" }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineExtensions.beginCreateOrUpdateAndWait( - resourceGroupName, - vmName, - vmExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineExtensions.beginCreateOrUpdateAndWait( + resourceGroupName, + vmName, + vmExtensionName, + extensionParameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsDeleteSample.ts index e369cfaa8d56..895d5ffe4607 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsDeleteSample.ts @@ -32,7 +32,7 @@ async function virtualMachineExtensionDeleteMaximumSetGen() { const result = await client.virtualMachineExtensions.beginDeleteAndWait( resourceGroupName, vmName, - vmExtensionName + vmExtensionName, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineExtensionDeleteMinimumSetGen() { const result = await client.virtualMachineExtensions.beginDeleteAndWait( resourceGroupName, vmName, - vmExtensionName + vmExtensionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsGetSample.ts index 07d1bf0e86c3..35788608c2c0 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineExtensionsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -38,7 +38,7 @@ async function virtualMachineExtensionGetMaximumSetGen() { resourceGroupName, vmName, vmExtensionName, - options + options, ); console.log(result); } @@ -61,7 +61,7 @@ async function virtualMachineExtensionGetMinimumSetGen() { const result = await client.virtualMachineExtensions.get( resourceGroupName, vmName, - vmExtensionName + vmExtensionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsListSample.ts index 52c2112dee7a..1d85962c3380 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsListSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineExtensionsListOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function virtualMachineExtensionListMaximumSetGen() { const result = await client.virtualMachineExtensions.list( resourceGroupName, vmName, - options + options, ); console.log(result); } @@ -57,7 +57,7 @@ async function virtualMachineExtensionListMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineExtensions.list( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsUpdateSample.ts index 13942d3566ba..db8f60a70f5c 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineExtensionUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -37,14 +37,13 @@ async function updateVMExtension() { secretUrl: "https://kvName.vault.azure.net/secrets/secretName/79b88b3a6f5440ffb2e73e44a0db712e", sourceVault: { - id: - "/subscriptions/a53f7094-a16c-47af-abe4-b05c05d0d79a/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/kvName" - } + id: "/subscriptions/a53f7094-a16c-47af-abe4-b05c05d0d79a/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/kvName", + }, }, publisher: "extPublisher", settings: { UserName: "xyz@microsoft.com" }, suppressFailures: true, - typeHandlerVersion: "1.2" + typeHandlerVersion: "1.2", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -52,7 +51,7 @@ async function updateVMExtension() { resourceGroupName, vmName, vmExtensionName, - extensionParameters + extensionParameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneGetSample.ts index 94b60cc56842..44a9c52f5d95 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneGetSample.ts @@ -37,7 +37,7 @@ async function virtualMachineImagesEdgeZoneGetMaximumSetGen() { publisherName, offer, skus, - version + version, ); console.log(result); } @@ -65,7 +65,7 @@ async function virtualMachineImagesEdgeZoneGetMinimumSetGen() { publisherName, offer, skus, - version + version, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListOffersSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListOffersSample.ts index a3de877e96c2..5389a691f62b 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListOffersSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListOffersSample.ts @@ -31,7 +31,7 @@ async function virtualMachineImagesEdgeZoneListOffersMaximumSetGen() { const result = await client.virtualMachineImagesEdgeZone.listOffers( location, edgeZone, - publisherName + publisherName, ); console.log(result); } @@ -53,7 +53,7 @@ async function virtualMachineImagesEdgeZoneListOffersMinimumSetGen() { const result = await client.virtualMachineImagesEdgeZone.listOffers( location, edgeZone, - publisherName + publisherName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListPublishersSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListPublishersSample.ts index d71b26105a12..c8d0ba5d4bf2 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListPublishersSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListPublishersSample.ts @@ -29,7 +29,7 @@ async function virtualMachineImagesEdgeZoneListPublishersMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineImagesEdgeZone.listPublishers( location, - edgeZone + edgeZone, ); console.log(result); } @@ -49,7 +49,7 @@ async function virtualMachineImagesEdgeZoneListPublishersMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineImagesEdgeZone.listPublishers( location, - edgeZone + edgeZone, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListSample.ts index 5f8642135e82..c4410133de1d 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineImagesEdgeZoneListOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -37,7 +37,7 @@ async function virtualMachineImagesEdgeZoneListMaximumSetGen() { const options: VirtualMachineImagesEdgeZoneListOptionalParams = { expand, top, - orderby + orderby, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -47,7 +47,7 @@ async function virtualMachineImagesEdgeZoneListMaximumSetGen() { publisherName, offer, skus, - options + options, ); console.log(result); } @@ -73,7 +73,7 @@ async function virtualMachineImagesEdgeZoneListMinimumSetGen() { edgeZone, publisherName, offer, - skus + skus, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListSkusSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListSkusSample.ts index 13e997827eea..a19ca67066eb 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListSkusSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListSkusSample.ts @@ -33,7 +33,7 @@ async function virtualMachineImagesEdgeZoneListSkusMaximumSetGen() { location, edgeZone, publisherName, - offer + offer, ); console.log(result); } @@ -57,7 +57,7 @@ async function virtualMachineImagesEdgeZoneListSkusMinimumSetGen() { location, edgeZone, publisherName, - offer + offer, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesGetSample.ts index 316151bf3739..4e8559d2e922 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesGetSample.ts @@ -35,7 +35,7 @@ async function virtualMachineImageGetMaximumSetGen() { publisherName, offer, skus, - version + version, ); console.log(result); } @@ -61,7 +61,7 @@ async function virtualMachineImageGetMinimumSetGen() { publisherName, offer, skus, - version + version, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListByEdgeZoneSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListByEdgeZoneSample.ts index 3fca77533bfe..8e89d50c0eaf 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListByEdgeZoneSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListByEdgeZoneSample.ts @@ -30,7 +30,7 @@ async function virtualMachineImagesEdgeZoneListByEdgeZoneMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineImages.listByEdgeZone( location, - edgeZone + edgeZone, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineImagesEdgeZoneListByEdgeZoneMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineImages.listByEdgeZone( location, - edgeZone + edgeZone, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListOffersSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListOffersSample.ts index 2e8ebb3fb049..cfd20ea2bee3 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListOffersSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListOffersSample.ts @@ -29,7 +29,7 @@ async function virtualMachineImageListOffersMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineImages.listOffers( location, - publisherName + publisherName, ); console.log(result); } @@ -49,7 +49,7 @@ async function virtualMachineImageListOffersMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineImages.listOffers( location, - publisherName + publisherName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListSample.ts index a9a99490a7cc..963fd7931226 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineImagesListOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function virtualMachineImageListMaximumSetGen() { const options: VirtualMachineImagesListOptionalParams = { expand, top, - orderby + orderby, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -45,7 +45,7 @@ async function virtualMachineImageListMaximumSetGen() { publisherName, offer, skus, - options + options, ); console.log(result); } @@ -69,7 +69,7 @@ async function virtualMachineImageListMinimumSetGen() { location, publisherName, offer, - skus + skus, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListSkusSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListSkusSample.ts index 8d843fdbb89a..1c818c923ccb 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListSkusSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListSkusSample.ts @@ -31,7 +31,7 @@ async function virtualMachineImageListSkusMaximumSetGen() { const result = await client.virtualMachineImages.listSkus( location, publisherName, - offer + offer, ); console.log(result); } @@ -53,7 +53,7 @@ async function virtualMachineImageListSkusMinimumSetGen() { const result = await client.virtualMachineImages.listSkus( location, publisherName, - offer + offer, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsCreateOrUpdateSample.ts index dd4772f5b047..ae5760b8398b 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineRunCommand, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,31 +36,32 @@ async function createOrUpdateARunCommand() { "https://mystorageaccount.blob.core.windows.net/scriptcontainer/scriptURI", location: "West US", outputBlobManagedIdentity: { - clientId: "22d35efb-0c99-4041-8c5b-6d24db33a69a" + clientId: "22d35efb-0c99-4041-8c5b-6d24db33a69a", }, outputBlobUri: "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", parameters: [ { name: "param1", value: "value1" }, - { name: "param2", value: "value2" } + { name: "param2", value: "value2" }, ], runAsPassword: "", runAsUser: "user1", source: { scriptUri: - "https://mystorageaccount.blob.core.windows.net/scriptcontainer/scriptURI" + "https://mystorageaccount.blob.core.windows.net/scriptcontainer/scriptURI", }, timeoutInSeconds: 3600, - treatFailureAsDeploymentFailure: false + treatFailureAsDeploymentFailure: false, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineRunCommands.beginCreateOrUpdateAndWait( - resourceGroupName, - vmName, - runCommandName, - runCommand - ); + const result = + await client.virtualMachineRunCommands.beginCreateOrUpdateAndWait( + resourceGroupName, + vmName, + runCommandName, + runCommand, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsDeleteSample.ts index 782b35cb18b1..d287aed0e43a 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteARunCommand() { const result = await client.virtualMachineRunCommands.beginDeleteAndWait( resourceGroupName, vmName, - runCommandName + runCommandName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsGetByVirtualMachineSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsGetByVirtualMachineSample.ts index 984861a0ca7f..8776bbbf1db7 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsGetByVirtualMachineSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsGetByVirtualMachineSample.ts @@ -32,7 +32,7 @@ async function getARunCommand() { const result = await client.virtualMachineRunCommands.getByVirtualMachine( resourceGroupName, vmName, - runCommandName + runCommandName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsGetSample.ts index 8c34005b96ef..aa34b017efed 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsGetSample.ts @@ -30,7 +30,7 @@ async function virtualMachineRunCommandGet() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineRunCommands.get( location, - commandId + commandId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsListByVirtualMachineSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsListByVirtualMachineSample.ts index c79a3451b142..f18c7e49f22f 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsListByVirtualMachineSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsListByVirtualMachineSample.ts @@ -31,7 +31,7 @@ async function listRunCommandsInAVirtualMachine() { const resArray = new Array(); for await (let item of client.virtualMachineRunCommands.listByVirtualMachine( resourceGroupName, - vmName + vmName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsUpdateSample.ts index 41e4c732f787..b7a3ce564dc9 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineRunCommandUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -33,7 +33,7 @@ async function updateARunCommand() { const runCommand: VirtualMachineRunCommandUpdate = { asyncExecution: false, errorBlobManagedIdentity: { - objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072" + objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072", }, errorBlobUri: "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt", @@ -41,14 +41,14 @@ async function updateARunCommand() { "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/outputUri", parameters: [ { name: "param1", value: "value1" }, - { name: "param2", value: "value2" } + { name: "param2", value: "value2" }, ], runAsPassword: "", runAsUser: "user1", source: { - script: "Write-Host Hello World! ; Remove-Item C:\test\testFile.txt" + script: "Write-Host Hello World! ; Remove-Item C:\test\testFile.txt", }, - timeoutInSeconds: 3600 + timeoutInSeconds: 3600, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -56,7 +56,7 @@ async function updateARunCommand() { resourceGroupName, vmName, runCommandName, - runCommand + runCommand, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts index 7b6ac65f4358..ba35635ee1ea 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetExtension, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -41,16 +41,17 @@ async function virtualMachineScaleSetExtensionCreateOrUpdateMaximumSetGen() { publisher: "{extension-Publisher}", settings: {}, suppressFailures: true, - typeHandlerVersion: "{handler-version}" + typeHandlerVersion: "{handler-version}", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetExtensions.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - vmssExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineScaleSetExtensions.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + vmssExtensionName, + extensionParameters, + ); console.log(result); } @@ -70,12 +71,13 @@ async function virtualMachineScaleSetExtensionCreateOrUpdateMinimumSetGen() { const extensionParameters: VirtualMachineScaleSetExtension = {}; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetExtensions.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - vmssExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineScaleSetExtensions.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + vmssExtensionName, + extensionParameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsDeleteSample.ts index 5fb679cd8ca8..e882f592ffff 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsDeleteSample.ts @@ -29,11 +29,12 @@ async function virtualMachineScaleSetExtensionDeleteMaximumSetGen() { const vmssExtensionName = "aaaaaaaaaaaaaaaaaaaaaaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetExtensions.beginDeleteAndWait( - resourceGroupName, - vmScaleSetName, - vmssExtensionName - ); + const result = + await client.virtualMachineScaleSetExtensions.beginDeleteAndWait( + resourceGroupName, + vmScaleSetName, + vmssExtensionName, + ); console.log(result); } @@ -52,11 +53,12 @@ async function virtualMachineScaleSetExtensionDeleteMinimumSetGen() { const vmssExtensionName = "aaaaaaaaaaaaaaaaaaaaaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetExtensions.beginDeleteAndWait( - resourceGroupName, - vmScaleSetName, - vmssExtensionName - ); + const result = + await client.virtualMachineScaleSetExtensions.beginDeleteAndWait( + resourceGroupName, + vmScaleSetName, + vmssExtensionName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsGetSample.ts index e8163d6df0d9..cf03dda8c657 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetExtensionsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -38,7 +38,7 @@ async function virtualMachineScaleSetExtensionGetMaximumSetGen() { resourceGroupName, vmScaleSetName, vmssExtensionName, - options + options, ); console.log(result); } @@ -61,7 +61,7 @@ async function virtualMachineScaleSetExtensionGetMinimumSetGen() { const result = await client.virtualMachineScaleSetExtensions.get( resourceGroupName, vmScaleSetName, - vmssExtensionName + vmssExtensionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsListSample.ts index 7c5fbffd1dca..1ff4028a265d 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsListSample.ts @@ -31,7 +31,7 @@ async function virtualMachineScaleSetExtensionListMaximumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSetExtensions.list( resourceGroupName, - vmScaleSetName + vmScaleSetName, )) { resArray.push(item); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetExtensionListMinimumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSetExtensions.list( resourceGroupName, - vmScaleSetName + vmScaleSetName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsUpdateSample.ts index b162e3eca96d..8554b5dc3f0c 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetExtensionUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -40,16 +40,17 @@ async function virtualMachineScaleSetExtensionUpdateMaximumSetGen() { publisher: "{extension-Publisher}", settings: {}, suppressFailures: true, - typeHandlerVersion: "{handler-version}" + typeHandlerVersion: "{handler-version}", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetExtensions.beginUpdateAndWait( - resourceGroupName, - vmScaleSetName, - vmssExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineScaleSetExtensions.beginUpdateAndWait( + resourceGroupName, + vmScaleSetName, + vmssExtensionName, + extensionParameters, + ); console.log(result); } @@ -69,12 +70,13 @@ async function virtualMachineScaleSetExtensionUpdateMinimumSetGen() { const extensionParameters: VirtualMachineScaleSetExtensionUpdate = {}; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetExtensions.beginUpdateAndWait( - resourceGroupName, - vmScaleSetName, - vmssExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineScaleSetExtensions.beginUpdateAndWait( + resourceGroupName, + vmScaleSetName, + vmssExtensionName, + extensionParameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesCancelSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesCancelSample.ts index b296f958d1fe..00b963f2d3f9 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesCancelSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesCancelSample.ts @@ -28,10 +28,11 @@ async function virtualMachineScaleSetRollingUpgradeCancelMaximumSetGen() { const vmScaleSetName = "aaaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetRollingUpgrades.beginCancelAndWait( - resourceGroupName, - vmScaleSetName - ); + const result = + await client.virtualMachineScaleSetRollingUpgrades.beginCancelAndWait( + resourceGroupName, + vmScaleSetName, + ); console.log(result); } @@ -49,10 +50,11 @@ async function virtualMachineScaleSetRollingUpgradeCancelMinimumSetGen() { const vmScaleSetName = "aaaaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetRollingUpgrades.beginCancelAndWait( - resourceGroupName, - vmScaleSetName - ); + const result = + await client.virtualMachineScaleSetRollingUpgrades.beginCancelAndWait( + resourceGroupName, + vmScaleSetName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts index 889a1c66f386..717aa5ca68eb 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts @@ -30,7 +30,7 @@ async function virtualMachineScaleSetRollingUpgradeGetLatestMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSetRollingUpgrades.getLatest( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineScaleSetRollingUpgradeGetLatestMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSetRollingUpgrades.getLatest( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts index 54d1eeaef05f..5268c6960435 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts @@ -28,10 +28,11 @@ async function startAnExtensionRollingUpgrade() { const vmScaleSetName = "{vmss-name}"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetRollingUpgrades.beginStartExtensionUpgradeAndWait( - resourceGroupName, - vmScaleSetName - ); + const result = + await client.virtualMachineScaleSetRollingUpgrades.beginStartExtensionUpgradeAndWait( + resourceGroupName, + vmScaleSetName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts index 65dc6a5bbf0e..8f5c578db840 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts @@ -28,10 +28,11 @@ async function virtualMachineScaleSetRollingUpgradeStartOSUpgradeMaximumSetGen() const vmScaleSetName = "aaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetRollingUpgrades.beginStartOSUpgradeAndWait( - resourceGroupName, - vmScaleSetName - ); + const result = + await client.virtualMachineScaleSetRollingUpgrades.beginStartOSUpgradeAndWait( + resourceGroupName, + vmScaleSetName, + ); console.log(result); } @@ -49,10 +50,11 @@ async function virtualMachineScaleSetRollingUpgradeStartOSUpgradeMinimumSetGen() const vmScaleSetName = "aaaaaaaaaaaaaaaaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetRollingUpgrades.beginStartOSUpgradeAndWait( - resourceGroupName, - vmScaleSetName - ); + const result = + await client.virtualMachineScaleSetRollingUpgrades.beginStartOSUpgradeAndWait( + resourceGroupName, + vmScaleSetName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts index 5db4993df20a..14c84993c679 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMExtension, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,17 +36,18 @@ async function createVirtualMachineScaleSetVMExtension() { autoUpgradeMinorVersion: true, publisher: "extPublisher", settings: { UserName: "xyz@microsoft.com" }, - typeHandlerVersion: "1.2" + typeHandlerVersion: "1.2", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMExtensions.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - vmExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineScaleSetVMExtensions.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + vmExtensionName, + extensionParameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsDeleteSample.ts index 8e47771c1f50..2c121e55b4df 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsDeleteSample.ts @@ -30,12 +30,13 @@ async function deleteVirtualMachineScaleSetVMExtension() { const vmExtensionName = "myVMExtension"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMExtensions.beginDeleteAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - vmExtensionName - ); + const result = + await client.virtualMachineScaleSetVMExtensions.beginDeleteAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + vmExtensionName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsGetSample.ts index 170bc0a1f9cd..952c187b273a 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsGetSample.ts @@ -34,7 +34,7 @@ async function getVirtualMachineScaleSetVMExtension() { resourceGroupName, vmScaleSetName, instanceId, - vmExtensionName + vmExtensionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsListSample.ts index 4d799048e325..59a303c8436f 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsListSample.ts @@ -32,7 +32,7 @@ async function listExtensionsInVmssInstance() { const result = await client.virtualMachineScaleSetVMExtensions.list( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsUpdateSample.ts index 98c562605ee2..bd420fc9a114 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMExtensionUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,17 +36,18 @@ async function updateVirtualMachineScaleSetVMExtension() { autoUpgradeMinorVersion: true, publisher: "extPublisher", settings: { UserName: "xyz@microsoft.com" }, - typeHandlerVersion: "1.2" + typeHandlerVersion: "1.2", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMExtensions.beginUpdateAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - vmExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineScaleSetVMExtensions.beginUpdateAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + vmExtensionName, + extensionParameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts index b846330cc38f..6952d366bf0c 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineRunCommand, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -38,13 +38,13 @@ async function createVirtualMachineScaleSetVMRunCommand() { "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt", location: "West US", outputBlobManagedIdentity: { - clientId: "22d35efb-0c99-4041-8c5b-6d24db33a69a" + clientId: "22d35efb-0c99-4041-8c5b-6d24db33a69a", }, outputBlobUri: "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", parameters: [ { name: "param1", value: "value1" }, - { name: "param2", value: "value2" } + { name: "param2", value: "value2" }, ], runAsPassword: "", runAsUser: "user1", @@ -52,21 +52,22 @@ async function createVirtualMachineScaleSetVMRunCommand() { scriptUri: "https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1", scriptUriManagedIdentity: { - objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072" - } + objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072", + }, }, timeoutInSeconds: 3600, - treatFailureAsDeploymentFailure: true + treatFailureAsDeploymentFailure: true, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMRunCommands.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - runCommandName, - runCommand - ); + const result = + await client.virtualMachineScaleSetVMRunCommands.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + runCommandName, + runCommand, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsDeleteSample.ts index 4cd6ada176b4..e5cfa028f87c 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsDeleteSample.ts @@ -30,12 +30,13 @@ async function deleteVirtualMachineScaleSetVMRunCommand() { const runCommandName = "myRunCommand"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMRunCommands.beginDeleteAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - runCommandName - ); + const result = + await client.virtualMachineScaleSetVMRunCommands.beginDeleteAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + runCommandName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsGetSample.ts index 529347f9226c..6d07197de3e4 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsGetSample.ts @@ -34,7 +34,7 @@ async function getVirtualMachineScaleSetVMRunCommands() { resourceGroupName, vmScaleSetName, instanceId, - runCommandName + runCommandName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsListSample.ts index e2dca9fd24d9..0fdd22e4e2c7 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsListSample.ts @@ -33,7 +33,7 @@ async function listRunCommandsInVmssInstance() { for await (let item of client.virtualMachineScaleSetVMRunCommands.list( resourceGroupName, vmScaleSetName, - instanceId + instanceId, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsUpdateSample.ts index 22c1c16abaae..d210be566b25 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineRunCommandUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,19 +36,20 @@ async function updateVirtualMachineScaleSetVMRunCommand() { scriptUri: "https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1", scriptUriManagedIdentity: { - objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072" - } - } + objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMRunCommands.beginUpdateAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - runCommandName, - runCommand - ); + const result = + await client.virtualMachineScaleSetVMRunCommands.beginUpdateAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + runCommandName, + runCommand, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSApproveRollingUpgradeSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSApproveRollingUpgradeSample.ts index b35d63ae4d37..5f6b38530d0c 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSApproveRollingUpgradeSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSApproveRollingUpgradeSample.ts @@ -29,11 +29,12 @@ async function virtualMachineScaleSetVMApproveRollingUpgrade() { const instanceId = "0123"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMs.beginApproveRollingUpgradeAndWait( - resourceGroupName, - vmScaleSetName, - instanceId - ); + const result = + await client.virtualMachineScaleSetVMs.beginApproveRollingUpgradeAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSAttachDetachDataDisksSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSAttachDetachDataDisksSample.ts index 73ca564036f8..755dcc730dde 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSAttachDetachDataDisksSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSAttachDetachDataDisksSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { AttachDetachDataDisksRequest, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -35,35 +35,36 @@ async function virtualMachineScaleSetVMAttachDetachDataDisksMaximumSetGen() { { diskId: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", - lun: 1 + lun: 1, }, { diskId: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_2_disk3_7d5e664bdafa49baa780eb2d128ff38e", - lun: 2 - } + lun: 2, + }, ], dataDisksToDetach: [ { detachOption: "ForceDetach", diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x" + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x", }, { detachOption: "ForceDetach", diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_4_disk4_4d4e784bdafa49baa780eb2d256ff41z" - } - ] + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_4_disk4_4d4e784bdafa49baa780eb2d256ff41z", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMs.beginAttachDetachDataDisksAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - parameters - ); + const result = + await client.virtualMachineScaleSetVMs.beginAttachDetachDataDisksAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + parameters, + ); console.log(result); } @@ -84,24 +85,25 @@ async function virtualMachineScaleSetVMAttachDetachDataDisksMinimumSetGen() { dataDisksToAttach: [ { diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d" - } + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", + }, ], dataDisksToDetach: [ { diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x" - } - ] + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMs.beginAttachDetachDataDisksAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - parameters - ); + const result = + await client.virtualMachineScaleSetVMs.beginAttachDetachDataDisksAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + parameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSDeallocateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSDeallocateSample.ts index f076ab0a6f35..8a727fede9e7 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSDeallocateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSDeallocateSample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetVMDeallocateMaximumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginDeallocateAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetVMDeallocateMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginDeallocateAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSDeleteSample.ts index 6b0b3e7dbcd3..b02200e5f276 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSDeleteSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMsDeleteOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,7 +32,7 @@ async function forceDeleteAVirtualMachineFromAVMScaleSet() { const instanceId = "0"; const forceDeletion = true; const options: VirtualMachineScaleSetVMsDeleteOptionalParams = { - forceDeletion + forceDeletion, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -40,7 +40,7 @@ async function forceDeleteAVirtualMachineFromAVMScaleSet() { resourceGroupName, vmScaleSetName, instanceId, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSGetInstanceViewSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSGetInstanceViewSample.ts index 076ca109aa0a..88aa4a2fae86 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSGetInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSGetInstanceViewSample.ts @@ -32,7 +32,7 @@ async function getInstanceViewOfAVirtualMachineFromAVMScaleSetPlacedOnADedicated const result = await client.virtualMachineScaleSetVMs.getInstanceView( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSGetSample.ts index baf384de2618..33ce5ac50dad 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSGetSample.ts @@ -32,7 +32,7 @@ async function getVMScaleSetVMWithUserData() { const result = await client.virtualMachineScaleSetVMs.get( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } @@ -55,7 +55,7 @@ async function getVMScaleSetVMWithVMSizeProperties() { const result = await client.virtualMachineScaleSetVMs.get( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSListSample.ts index acec35e26723..2a93f94980e5 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSListSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMsListOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -35,7 +35,7 @@ async function virtualMachineScaleSetVMListMaximumSetGen() { const options: VirtualMachineScaleSetVMsListOptionalParams = { filter, select, - expand + expand, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function virtualMachineScaleSetVMListMaximumSetGen() { for await (let item of client.virtualMachineScaleSetVMs.list( resourceGroupName, virtualMachineScaleSetName, - options + options, )) { resArray.push(item); } @@ -67,7 +67,7 @@ async function virtualMachineScaleSetVMListMinimumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSetVMs.list( resourceGroupName, - virtualMachineScaleSetName + virtualMachineScaleSetName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSPerformMaintenanceSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSPerformMaintenanceSample.ts index 28e4bb60c3bf..fb0209eba76d 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSPerformMaintenanceSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSPerformMaintenanceSample.ts @@ -29,11 +29,12 @@ async function virtualMachineScaleSetVMPerformMaintenanceMaximumSetGen() { const instanceId = "aaaaaaaaaaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMs.beginPerformMaintenanceAndWait( - resourceGroupName, - vmScaleSetName, - instanceId - ); + const result = + await client.virtualMachineScaleSetVMs.beginPerformMaintenanceAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + ); console.log(result); } @@ -52,11 +53,12 @@ async function virtualMachineScaleSetVMPerformMaintenanceMinimumSetGen() { const instanceId = "aaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMs.beginPerformMaintenanceAndWait( - resourceGroupName, - vmScaleSetName, - instanceId - ); + const result = + await client.virtualMachineScaleSetVMs.beginPerformMaintenanceAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSPowerOffSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSPowerOffSample.ts index c85b508f98a0..ee654103db98 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSPowerOffSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSPowerOffSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMsPowerOffOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,7 +32,7 @@ async function virtualMachineScaleSetVMPowerOffMaximumSetGen() { const instanceId = "aaaaaaaaa"; const skipShutdown = true; const options: VirtualMachineScaleSetVMsPowerOffOptionalParams = { - skipShutdown + skipShutdown, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -40,7 +40,7 @@ async function virtualMachineScaleSetVMPowerOffMaximumSetGen() { resourceGroupName, vmScaleSetName, instanceId, - options + options, ); console.log(result); } @@ -63,7 +63,7 @@ async function virtualMachineScaleSetVMPowerOffMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginPowerOffAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRedeploySample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRedeploySample.ts index 6193a0c55c53..a52a7525f2d8 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRedeploySample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRedeploySample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetVMRedeployMaximumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginRedeployAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetVMRedeployMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginRedeployAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSReimageAllSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSReimageAllSample.ts index 3a1cc2e18c11..282ff70d3e89 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSReimageAllSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSReimageAllSample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetVMReimageAllMaximumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginReimageAllAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetVMReimageAllMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginReimageAllAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSReimageSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSReimageSample.ts index 34006e5930d6..73371f4f9509 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSReimageSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSReimageSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMReimageParameters, VirtualMachineScaleSetVMsReimageOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,10 +32,10 @@ async function virtualMachineScaleSetVMReimageMaximumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaa"; const instanceId = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; const vmScaleSetVMReimageInput: VirtualMachineScaleSetVMReimageParameters = { - tempDisk: true + tempDisk: true, }; const options: VirtualMachineScaleSetVMsReimageOptionalParams = { - vmScaleSetVMReimageInput + vmScaleSetVMReimageInput, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function virtualMachineScaleSetVMReimageMaximumSetGen() { resourceGroupName, vmScaleSetName, instanceId, - options + options, ); console.log(result); } @@ -66,7 +66,7 @@ async function virtualMachineScaleSetVMReimageMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginReimageAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRestartSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRestartSample.ts index 2a0aa2218e65..fad2732a6c9a 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRestartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRestartSample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetVMRestartMaximumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginRestartAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetVMRestartMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginRestartAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts index 06d43dda8c39..1e265be799f9 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,17 +31,17 @@ async function retrieveBootDiagnosticsDataOfAVirtualMachine() { const vmScaleSetName = "myvmScaleSet"; const instanceId = "0"; const sasUriExpirationTimeInMinutes = 60; - const options: VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams = { - sasUriExpirationTimeInMinutes - }; + const options: VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams = + { sasUriExpirationTimeInMinutes }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMs.retrieveBootDiagnosticsData( - resourceGroupName, - vmScaleSetName, - instanceId, - options - ); + const result = + await client.virtualMachineScaleSetVMs.retrieveBootDiagnosticsData( + resourceGroupName, + vmScaleSetName, + instanceId, + options, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRunCommandSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRunCommandSample.ts index 56da7f345926..71acef1e6e11 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRunCommandSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRunCommandSample.ts @@ -29,7 +29,7 @@ async function virtualMachineScaleSetVMSRunCommand() { const instanceId = "0"; const parameters: RunCommandInput = { commandId: "RunPowerShellScript", - script: ["Write-Host Hello World!"] + script: ["Write-Host Hello World!"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -37,7 +37,7 @@ async function virtualMachineScaleSetVMSRunCommand() { resourceGroupName, vmScaleSetName, instanceId, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSSimulateEvictionSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSSimulateEvictionSample.ts index 315eef0c467a..999a63637542 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSSimulateEvictionSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSSimulateEvictionSample.ts @@ -32,7 +32,7 @@ async function simulateEvictionAVirtualMachine() { const result = await client.virtualMachineScaleSetVMs.simulateEviction( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSStartSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSStartSample.ts index 1f3538808f8c..bcfe0b5cc130 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSStartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSStartSample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetVMStartMaximumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginStartAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetVMStartMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginStartAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSUpdateSample.ts index ec330dc91081..a3e1f23608bc 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVM, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -33,15 +33,14 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { const parameters: VirtualMachineScaleSetVM = { additionalCapabilities: { hibernationEnabled: true, ultraSSDEnabled: true }, availabilitySet: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, diagnosticsProfile: { - bootDiagnostics: { enabled: true, storageUri: "aaaaaaaaaaaaa" } + bootDiagnostics: { enabled: true, storageUri: "aaaaaaaaaaaaa" }, }, hardwareProfile: { vmSize: "Basic_A0", - vmSizeProperties: { vCPUsAvailable: 9, vCPUsPerCore: 12 } + vmSizeProperties: { vCPUsAvailable: 9, vCPUsPerCore: 12 }, }, instanceView: { bootDiagnostics: { @@ -50,8 +49,8 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, }, disks: [ { @@ -61,19 +60,17 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { diskEncryptionKey: { secretUrl: "aaaaaaaa", sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, }, enabled: true, keyEncryptionKey: { keyUrl: "aaaaaaaaaaaaaa", sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, + }, + }, ], statuses: [ { @@ -81,10 +78,10 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } - ] - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, + ], + }, ], maintenanceRedeployStatus: { isCustomerInitiatedMaintenanceAllowed: true, @@ -93,7 +90,7 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { maintenanceWindowEndTime: new Date("2021-11-30T12:58:26.531Z"), maintenanceWindowStartTime: new Date("2021-11-30T12:58:26.531Z"), preMaintenanceWindowEndTime: new Date("2021-11-30T12:58:26.531Z"), - preMaintenanceWindowStartTime: new Date("2021-11-30T12:58:26.531Z") + preMaintenanceWindowStartTime: new Date("2021-11-30T12:58:26.531Z"), }, placementGroupId: "aaa", platformFaultDomain: 14, @@ -105,8 +102,8 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], vmAgent: { extensionHandlers: [ @@ -117,10 +114,10 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") + time: new Date("2021-11-30T12:58:26.522Z"), }, - typeHandlerVersion: "aaaaa" - } + typeHandlerVersion: "aaaaa", + }, ], statuses: [ { @@ -128,10 +125,10 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], - vmAgentVersion: "aaaaaaaaaaaaaaaaaaaaaaa" + vmAgentVersion: "aaaaaaaaaaaaaaaaaaaaaaa", }, vmHealth: { status: { @@ -139,8 +136,8 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, }, extensions: [ { @@ -152,8 +149,8 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], substatuses: [ { @@ -161,12 +158,12 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], - typeHandlerVersion: "aaaaaaaaaaaaaaaaaaaaaaaaaa" - } - ] + typeHandlerVersion: "aaaaaaaaaaaaaaaaaaaaaaaaaa", + }, + ], }, licenseType: "aaaaaaaaaa", location: "westus", @@ -178,8 +175,7 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { deleteOption: "Delete", dnsSettings: { dnsServers: ["aaaaaa"] }, dscpConfiguration: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, enableAcceleratedNetworking: true, enableFpga: true, @@ -189,21 +185,18 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { name: "aa", applicationGatewayBackendAddressPools: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], applicationSecurityGroups: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], loadBalancerBackendAddressPools: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], primary: true, privateIPAddressVersion: "IPv4", @@ -215,38 +208,34 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { ipTags: [ { ipTagType: "aaaaaaaaaaaaaaaaaaaaaaaaa", - tag: "aaaaaaaaaaaaaaaaaaaa" - } + tag: "aaaaaaaaaaaaaaaaaaaa", + }, ], publicIPAddressVersion: "IPv4", publicIPAllocationMethod: "Dynamic", publicIPPrefix: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, - sku: { name: "Basic", tier: "Regional" } + sku: { name: "Basic", tier: "Regional" }, }, subnet: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, + }, ], networkSecurityGroup: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, - primary: true - } + primary: true, + }, ], networkInterfaces: [ { deleteOption: "Delete", - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}/virtualMachines/0/networkInterfaces/vmsstestnetconfig5415", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}/virtualMachines/0/networkInterfaces/vmsstestnetconfig5415", + primary: true, + }, + ], }, networkProfileConfiguration: { networkInterfaceConfigurations: [ @@ -262,27 +251,23 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { name: "vmsstestnetconfig9693", applicationGatewayBackendAddressPools: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], applicationSecurityGroups: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], loadBalancerBackendAddressPools: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], loadBalancerInboundNatPools: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], primary: true, privateIPAddressVersion: "IPv4", @@ -292,28 +277,25 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { dnsSettings: { domainNameLabel: "aaaaaaaaaaaaaaaaaa" }, idleTimeoutInMinutes: 18, ipTags: [ - { ipTagType: "aaaaaaa", tag: "aaaaaaaaaaaaaaaaaaaaaaaaaaa" } + { ipTagType: "aaaaaaa", tag: "aaaaaaaaaaaaaaaaaaaaaaaaaaa" }, ], publicIPAddressVersion: "IPv4", publicIPPrefix: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, - sku: { name: "Basic", tier: "Regional" } + sku: { name: "Basic", tier: "Regional" }, }, subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/vn4071/subnets/sn5503" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/vn4071/subnets/sn5503", + }, + }, ], networkSecurityGroup: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "aaaaaaaaaaaaaaaa", @@ -325,10 +307,10 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { disablePasswordAuthentication: true, patchSettings: { assessmentMode: "ImageDefault", - patchMode: "ImageDefault" + patchMode: "ImageDefault", }, provisionVMAgent: true, - ssh: { publicKeys: [{ path: "aaa", keyData: "aaaaaa" }] } + ssh: { publicKeys: [{ path: "aaa", keyData: "aaaaaa" }] }, }, requireGuestProvisionSignal: true, secrets: [], @@ -338,38 +320,38 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { componentName: "Microsoft-Windows-Shell-Setup", content: "aaaaaaaaaaaaaaaaaaaa", passName: "OobeSystem", - settingName: "AutoLogon" - } + settingName: "AutoLogon", + }, ], enableAutomaticUpdates: true, patchSettings: { assessmentMode: "ImageDefault", enableHotpatching: true, - patchMode: "Manual" + patchMode: "Manual", }, provisionVMAgent: true, timeZone: "aaaaaaaaaaaaaaaaaaaaaaaaaaa", winRM: { listeners: [ - { certificateUrl: "aaaaaaaaaaaaaaaaaaaaaa", protocol: "Http" } - ] - } - } + { certificateUrl: "aaaaaaaaaaaaaaaaaaaaaa", protocol: "Http" }, + ], + }, + }, }, plan: { name: "aaaaaaaaaa", product: "aaaaaaaaaaaaaaaaaaaa", promotionCode: "aaaaaaaaaaaaaaaaaaaa", - publisher: "aaaaaaaaaaaaaaaaaaaaaa" + publisher: "aaaaaaaaaaaaaaaaaaaaaa", }, protectionPolicy: { protectFromScaleIn: true, - protectFromScaleSetActions: true + protectFromScaleSetActions: true, }, securityProfile: { encryptionAtHost: true, securityType: "TrustedLaunch", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, sku: { name: "Classic", capacity: 29, tier: "aaaaaaaaaaaaaa" }, storageProfile: { @@ -382,23 +364,20 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { detachOption: "ForceDetach", diskSizeGB: 128, image: { - uri: - "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd" + uri: "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd", }, lun: 1, managedDisk: { diskEncryptionSet: { id: "aaaaaaaaaaaa" }, - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", - storageAccountType: "Standard_LRS" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", + storageAccountType: "Standard_LRS", }, toBeDetached: true, vhd: { - uri: - "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd" + uri: "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd", }, - writeAcceleratorEnabled: true - } + writeAcceleratorEnabled: true, + }, ], imageReference: { id: "a", @@ -406,7 +385,7 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { publisher: "MicrosoftWindowsServer", sharedGalleryImageId: "aaaaaaaaaaaaaaaaaaaa", sku: "2012-R2-Datacenter", - version: "4.127.20180315" + version: "4.127.20180315", }, osDisk: { name: "vmss3176_vmss3176_0_OsDisk_1_6d72b805e50e4de6830303c5055077fc", @@ -419,39 +398,34 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { diskEncryptionKey: { secretUrl: "aaaaaaaa", sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, }, enabled: true, keyEncryptionKey: { keyUrl: "aaaaaaaaaaaaaa", sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, + }, }, image: { - uri: - "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd" + uri: "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd", }, managedDisk: { diskEncryptionSet: { id: "aaaaaaaaaaaa" }, - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_OsDisk_1_6d72b805e50e4de6830303c5055077fc", - storageAccountType: "Standard_LRS" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_OsDisk_1_6d72b805e50e4de6830303c5055077fc", + storageAccountType: "Standard_LRS", }, osType: "Windows", vhd: { - uri: - "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd" + uri: "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd", }, - writeAcceleratorEnabled: true - } + writeAcceleratorEnabled: true, + }, }, tags: {}, - userData: "RXhhbXBsZSBVc2VyRGF0YQ==" + userData: "RXhhbXBsZSBVc2VyRGF0YQ==", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -459,7 +433,7 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { resourceGroupName, vmScaleSetName, instanceId, - parameters + parameters, ); console.log(result); } @@ -484,7 +458,7 @@ async function virtualMachineScaleSetVMUpdateMinimumSetGen() { resourceGroupName, vmScaleSetName, instanceId, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsApproveRollingUpgradeSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsApproveRollingUpgradeSample.ts index 62de4563a48c..5cdc077b4ca7 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsApproveRollingUpgradeSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsApproveRollingUpgradeSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,18 +31,19 @@ async function virtualMachineScaleSetApproveRollingUpgrade() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "vmssToApproveRollingUpgradeOn"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["0", "1", "2"] + instanceIds: ["0", "1", "2"], }; const options: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams = { - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginApproveRollingUpgradeAndWait( - resourceGroupName, - vmScaleSetName, - options - ); + const result = + await client.virtualMachineScaleSets.beginApproveRollingUpgradeAndWait( + resourceGroupName, + vmScaleSetName, + options, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts index a1468249a927..139a569554f0 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VMScaleSetConvertToSinglePlacementGroupInput, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -30,15 +30,16 @@ async function virtualMachineScaleSetConvertToSinglePlacementGroupMaximumSetGen( process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; const parameters: VMScaleSetConvertToSinglePlacementGroupInput = { - activePlacementGroupId: "aaaaaaaaaaaaaaaaaaaaaaaaaaa" + activePlacementGroupId: "aaaaaaaaaaaaaaaaaaaaaaaaaaa", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.convertToSinglePlacementGroup( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.convertToSinglePlacementGroup( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -57,11 +58,12 @@ async function virtualMachineScaleSetConvertToSinglePlacementGroupMinimumSetGen( const parameters: VMScaleSetConvertToSinglePlacementGroupInput = {}; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.convertToSinglePlacementGroup( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.convertToSinglePlacementGroup( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsCreateOrUpdateSample.ts index 24c1090c5ba6..b9c0a8ea33b2 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSet, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -39,8 +39,8 @@ async function createAVmssWithAnExtensionThatHasSuppressFailuresEnabled() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, extensionProfile: { extensions: [ @@ -51,9 +51,9 @@ async function createAVmssWithAnExtensionThatHasSuppressFailuresEnabled() { publisher: "{extension-Publisher}", settings: {}, suppressFailures: true, - typeHandlerVersion: "{handler-version}" - } - ] + typeHandlerVersion: "{handler-version}", + }, + ], }, networkProfile: { networkInterfaceConfigurations: [ @@ -64,42 +64,42 @@ async function createAVmssWithAnExtensionThatHasSuppressFailuresEnabled() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -125,8 +125,8 @@ async function createAVmssWithAnExtensionWithProtectedSettingsFromKeyVault() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, extensionProfile: { extensions: [ @@ -138,15 +138,14 @@ async function createAVmssWithAnExtensionWithProtectedSettingsFromKeyVault() { secretUrl: "https://kvName.vault.azure.net/secrets/secretName/79b88b3a6f5440ffb2e73e44a0db712e", sourceVault: { - id: - "/subscriptions/a53f7094-a16c-47af-abe4-b05c05d0d79a/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/kvName" - } + id: "/subscriptions/a53f7094-a16c-47af-abe4-b05c05d0d79a/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/kvName", + }, }, publisher: "{extension-Publisher}", settings: {}, - typeHandlerVersion: "{handler-version}" - } - ] + typeHandlerVersion: "{handler-version}", + }, + ], }, networkProfile: { networkInterfaceConfigurations: [ @@ -157,42 +156,42 @@ async function createAVmssWithAnExtensionWithProtectedSettingsFromKeyVault() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -223,19 +222,18 @@ async function createACustomImageScaleSetFromAnUnmanagedGeneralizedOSImage() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { osDisk: { @@ -243,20 +241,20 @@ async function createACustomImageScaleSetFromAnUnmanagedGeneralizedOSImage() { caching: "ReadWrite", createOption: "FromImage", image: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd" - } - } - } - } + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd", + }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -287,26 +285,25 @@ async function createAPlatformImageScaleSetWithUnmanagedOSDisks() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "osDisk", @@ -317,19 +314,20 @@ async function createAPlatformImageScaleSetWithUnmanagedOSDisks() { "http://{existing-storage-account-name-1}.blob.core.windows.net/vhdContainer", "http://{existing-storage-account-name-2}.blob.core.windows.net/vhdContainer", "http://{existing-storage-account-name-3}.blob.core.windows.net/vhdContainer", - "http://{existing-storage-account-name-4}.blob.core.windows.net/vhdContainer" - ] - } - } - } + "http://{existing-storage-account-name-4}.blob.core.windows.net/vhdContainer", + ], + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -360,40 +358,39 @@ async function createAScaleSetFromACustomImage() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -424,40 +421,39 @@ async function createAScaleSetFromAGeneralizedSharedImage() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -488,35 +484,34 @@ async function createAScaleSetFromASpecializedSharedImage() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -549,12 +544,11 @@ async function createAScaleSetWhereNicConfigHasDisableTcpStateTrackingProperty() { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true + primary: true, }, { name: "{nicConfig2-name}", @@ -567,40 +561,39 @@ async function createAScaleSetWhereNicConfigHasDisableTcpStateTrackingProperty() primary: true, privateIPAddressVersion: "IPv4", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-fpga-subnet-name2}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-fpga-subnet-name2}", + }, + }, ], - primary: false - } - ] + primary: false, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -632,13 +625,13 @@ async function createAScaleSetWithApplicationProfile() { packageReferenceId: "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdb/resourceGroups/myresourceGroupName2/providers/Microsoft.Compute/galleries/myGallery1/applications/MyApplication1/versions/1.0", tags: "myTag1", - treatFailureAsDeploymentFailure: true + treatFailureAsDeploymentFailure: true, }, { packageReferenceId: - "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdg/resourceGroups/myresourceGroupName3/providers/Microsoft.Compute/galleries/myGallery2/applications/MyApplication2/versions/1.1" - } - ] + "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdg/resourceGroups/myresourceGroupName3/providers/Microsoft.Compute/galleries/myGallery2/applications/MyApplication2/versions/1.1", + }, + ], }, networkProfile: { networkInterfaceConfigurations: [ @@ -649,42 +642,42 @@ async function createAScaleSetWithApplicationProfile() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -707,7 +700,7 @@ async function createAScaleSetWithDiskControllerType() { upgradePolicy: { mode: "Manual" }, virtualMachineProfile: { hardwareProfile: { - vmSizeProperties: { vCPUsAvailable: 1, vCPUsPerCore: 1 } + vmSizeProperties: { vCPUsAvailable: 1, vCPUsPerCore: 1 }, }, networkProfile: { networkInterfaceConfigurations: [ @@ -718,19 +711,18 @@ async function createAScaleSetWithDiskControllerType() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { diskControllerType: "NVMe", @@ -738,24 +730,25 @@ async function createAScaleSetWithDiskControllerType() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, - userData: "RXhhbXBsZSBVc2VyRGF0YQ==" - } + userData: "RXhhbXBsZSBVc2VyRGF0YQ==", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -786,19 +779,18 @@ async function createAScaleSetWithDiskEncryptionSetResourceInOSDiskAndDataDisk() { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { dataDisks: [ @@ -809,38 +801,36 @@ async function createAScaleSetWithDiskEncryptionSetResourceInOSDiskAndDataDisk() lun: 0, managedDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - storageAccountType: "Standard_LRS" - } - } + storageAccountType: "Standard_LRS", + }, + }, ], imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", managedDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - storageAccountType: "Standard_LRS" - } - } - } - } + storageAccountType: "Standard_LRS", + }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -871,12 +861,11 @@ async function createAScaleSetWithFpgaNetworkInterfaces() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true + primary: true, }, { name: "{fpgaNic-Name}", @@ -889,40 +878,39 @@ async function createAScaleSetWithFpgaNetworkInterfaces() { primary: true, privateIPAddressVersion: "IPv4", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-fpga-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-fpga-subnet-name}", + }, + }, ], - primary: false - } - ] + primary: false, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -944,7 +932,7 @@ async function createAScaleSetWithHostEncryptionUsingEncryptionAtHostProperty() plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, sku: { name: "Standard_DS1_v2", capacity: 3, tier: "Standard" }, upgradePolicy: { mode: "Manual" }, @@ -958,19 +946,18 @@ async function createAScaleSetWithHostEncryptionUsingEncryptionAtHostProperty() { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, securityProfile: { encryptionAtHost: true }, storageProfile: { @@ -978,23 +965,24 @@ async function createAScaleSetWithHostEncryptionUsingEncryptionAtHostProperty() offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1029,12 +1017,11 @@ async function createAScaleSetWithNetworkInterfacesWithPublicIPAddressDnsSetting { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true + primary: true, }, { name: "{nicConfig2-name}", @@ -1050,45 +1037,44 @@ async function createAScaleSetWithNetworkInterfacesWithPublicIPAddressDnsSetting name: "publicip", dnsSettings: { domainNameLabel: "vmsstestlabel01", - domainNameLabelScope: "NoReuse" + domainNameLabelScope: "NoReuse", }, - idleTimeoutInMinutes: 10 + idleTimeoutInMinutes: 10, }, subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-fpga-subnet-name2}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-fpga-subnet-name2}", + }, + }, ], - primary: false - } - ] + primary: false, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1119,45 +1105,45 @@ async function createAScaleSetWithOSImageScheduledEventsEnabled() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, scheduledEventsProfile: { - osImageNotificationProfile: { enable: true, notBeforeTimeout: "PT15M" } + osImageNotificationProfile: { enable: true, notBeforeTimeout: "PT15M" }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1188,45 +1174,45 @@ async function createAScaleSetWithProxyAgentSettingsOfEnabledAndMode() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, securityProfile: { - proxyAgentSettings: { enabled: true, mode: "Enforce" } + proxyAgentSettings: { enabled: true, mode: "Enforce" }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2019-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "StandardSSD_LRS" } - } - } - } + managedDisk: { storageAccountType: "StandardSSD_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1258,42 +1244,42 @@ async function createAScaleSetWithResilientVMCreationEnabled() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1325,42 +1311,42 @@ async function createAScaleSetWithResilientVMDeletionEnabled() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1382,7 +1368,7 @@ async function createAScaleSetWithSecurityPostureReference() { sku: { name: "Standard_A1", capacity: 3, tier: "Standard" }, upgradePolicy: { automaticOSUpgradePolicy: { enableAutomaticOSUpgrade: true }, - mode: "Automatic" + mode: "Automatic", }, virtualMachineProfile: { networkProfile: { @@ -1394,46 +1380,45 @@ async function createAScaleSetWithSecurityPostureReference() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, securityPostureReference: { - id: - "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest" + id: "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2022-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "osDisk", caching: "ReadWrite", - createOption: "FromImage" - } - } - } + createOption: "FromImage", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1464,49 +1449,49 @@ async function createAScaleSetWithSecurityTypeAsConfidentialVM() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, securityProfile: { securityType: "ConfidentialVM", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "2019-datacenter-cvm", publisher: "MicrosoftWindowsServer", sku: "windows-cvm", - version: "17763.2183.2109130127" + version: "17763.2183.2109130127", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", managedDisk: { securityProfile: { securityEncryptionType: "VMGuestStateOnly" }, - storageAccountType: "StandardSSD_LRS" - } - } - } - } + storageAccountType: "StandardSSD_LRS", + }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1537,49 +1522,49 @@ async function createAScaleSetWithSecurityTypeAsConfidentialVMAndNonPersistedTpm { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, securityProfile: { securityType: "ConfidentialVM", - uefiSettings: { secureBootEnabled: false, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: false, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "2022-datacenter-cvm", publisher: "UbuntuServer", sku: "linux-cvm", - version: "17763.2183.2109130127" + version: "17763.2183.2109130127", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", managedDisk: { securityProfile: { securityEncryptionType: "NonPersistedTPM" }, - storageAccountType: "StandardSSD_LRS" - } - } - } - } + storageAccountType: "StandardSSD_LRS", + }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1601,7 +1586,7 @@ async function createAScaleSetWithServiceArtifactReference() { sku: { name: "Standard_A1", capacity: 3, tier: "Standard" }, upgradePolicy: { automaticOSUpgradePolicy: { enableAutomaticOSUpgrade: true }, - mode: "Automatic" + mode: "Automatic", }, virtualMachineProfile: { networkProfile: { @@ -1613,46 +1598,45 @@ async function createAScaleSetWithServiceArtifactReference() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, serviceArtifactReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/serviceArtifacts/serviceArtifactName/vmArtifactsProfiles/vmArtifactsProfilesName" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/serviceArtifacts/serviceArtifactName/vmArtifactsProfiles/vmArtifactsProfilesName", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2022-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "osDisk", caching: "ReadWrite", - createOption: "FromImage" - } - } - } + createOption: "FromImage", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1683,46 +1667,46 @@ async function createAScaleSetWithUefiSettingsOfSecureBootAndVTpm() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, securityProfile: { securityType: "TrustedLaunch", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "windowsserver-gen2preview-preview", publisher: "MicrosoftWindowsServer", sku: "windows10-tvm", - version: "18363.592.2001092016" + version: "18363.592.2001092016", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "StandardSSD_LRS" } - } - } - } + managedDisk: { storageAccountType: "StandardSSD_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1744,7 +1728,7 @@ async function createAScaleSetWithAMarketplaceImagePlan() { plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, sku: { name: "Standard_D1_v2", capacity: 3, tier: "Standard" }, upgradePolicy: { mode: "Manual" }, @@ -1758,42 +1742,42 @@ async function createAScaleSetWithAMarketplaceImagePlan() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1825,47 +1809,46 @@ async function createAScaleSetWithAnAzureApplicationGateway() { name: "{vmss-name}", applicationGatewayBackendAddressPools: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/applicationGateways/{existing-application-gateway-name}/backendAddressPools/{existing-backend-address-pool-name}" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/applicationGateways/{existing-application-gateway-name}/backendAddressPools/{existing-backend-address-pool-name}", + }, ], subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1897,57 +1880,55 @@ async function createAScaleSetWithAnAzureLoadBalancer() { name: "{vmss-name}", loadBalancerBackendAddressPools: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/{existing-load-balancer-name}/backendAddressPools/{existing-backend-address-pool-name}" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/{existing-load-balancer-name}/backendAddressPools/{existing-backend-address-pool-name}", + }, ], loadBalancerInboundNatPools: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/{existing-load-balancer-name}/inboundNatPools/{existing-nat-pool-name}" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/{existing-load-balancer-name}/inboundNatPools/{existing-nat-pool-name}", + }, ], publicIPAddressConfiguration: { name: "{vmss-name}", - publicIPAddressVersion: "IPv4" + publicIPAddressVersion: "IPv4", }, subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1979,42 +1960,42 @@ async function createAScaleSetWithAutomaticRepairsEnabled() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2040,8 +2021,8 @@ async function createAScaleSetWithBootDiagnostics() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, networkProfile: { networkInterfaceConfigurations: [ @@ -2052,42 +2033,42 @@ async function createAScaleSetWithBootDiagnostics() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2118,47 +2099,47 @@ async function createAScaleSetWithEmptyDataDisksOnEachVM() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { dataDisks: [ { createOption: "Empty", diskSizeGB: 1023, lun: 0 }, - { createOption: "Empty", diskSizeGB: 1023, lun: 1 } + { createOption: "Empty", diskSizeGB: 1023, lun: 1 }, ], imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", diskSizeGB: 512, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2180,7 +2161,7 @@ async function createAScaleSetWithEphemeralOSDisksUsingPlacementProperty() { plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, sku: { name: "Standard_DS1_v2", capacity: 3, tier: "Standard" }, upgradePolicy: { mode: "Manual" }, @@ -2194,43 +2175,43 @@ async function createAScaleSetWithEphemeralOSDisksUsingPlacementProperty() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", diffDiskSettings: { option: "Local", placement: "ResourceDisk" }, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2252,7 +2233,7 @@ async function createAScaleSetWithEphemeralOSDisks() { plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, sku: { name: "Standard_DS1_v2", capacity: 3, tier: "Standard" }, upgradePolicy: { mode: "Manual" }, @@ -2266,43 +2247,43 @@ async function createAScaleSetWithEphemeralOSDisks() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", diffDiskSettings: { option: "Local" }, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2328,8 +2309,8 @@ async function createAScaleSetWithExtensionTimeBudget() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, extensionProfile: { extensionsTimeBudget: "PT1H20M", @@ -2340,9 +2321,9 @@ async function createAScaleSetWithExtensionTimeBudget() { autoUpgradeMinorVersion: false, publisher: "{extension-Publisher}", settings: {}, - typeHandlerVersion: "{handler-version}" - } - ] + typeHandlerVersion: "{handler-version}", + }, + ], }, networkProfile: { networkInterfaceConfigurations: [ @@ -2353,42 +2334,42 @@ async function createAScaleSetWithExtensionTimeBudget() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2420,42 +2401,42 @@ async function createAScaleSetWithManagedBootDiagnostics() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2486,42 +2467,42 @@ async function createAScaleSetWithPasswordAuthentication() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2552,42 +2533,42 @@ async function createAScaleSetWithPremiumStorage() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2608,7 +2589,7 @@ async function createAScaleSetWithPriorityMixPolicy() { orchestrationMode: "Flexible", priorityMixPolicy: { baseRegularPriorityCount: 4, - regularPriorityPercentageAboveBase: 50 + regularPriorityPercentageAboveBase: 50, }, singlePlacementGroup: false, sku: { name: "Standard_A8m_v2", capacity: 10, tier: "Standard" }, @@ -2624,19 +2605,18 @@ async function createAScaleSetWithPriorityMixPolicy() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, priority: "Spot", storageProfile: { @@ -2644,23 +2624,24 @@ async function createAScaleSetWithPriorityMixPolicy() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2692,42 +2673,42 @@ async function createAScaleSetWithScaleInPolicy() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2761,19 +2742,18 @@ async function createAScaleSetWithSpotRestorePolicy() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, priority: "Spot", storageProfile: { @@ -2781,23 +2761,24 @@ async function createAScaleSetWithSpotRestorePolicy() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2828,14 +2809,13 @@ async function createAScaleSetWithSshAuthentication() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminUsername: "{your-username}", @@ -2847,34 +2827,35 @@ async function createAScaleSetWithSshAuthentication() { { path: "/home/{your-username}/.ssh/authorized_keys", keyData: - "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" - } - ] - } - } + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1", + }, + ], + }, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2905,45 +2886,48 @@ async function createAScaleSetWithTerminateScheduledEventsEnabled() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, scheduledEventsProfile: { - terminateNotificationProfile: { enable: true, notBeforeTimeout: "PT5M" } + terminateNotificationProfile: { + enable: true, + notBeforeTimeout: "PT5M", + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2974,43 +2958,43 @@ async function createAScaleSetWithUserData() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, - userData: "RXhhbXBsZSBVc2VyRGF0YQ==" - } + userData: "RXhhbXBsZSBVc2VyRGF0YQ==", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -3041,48 +3025,48 @@ async function createAScaleSetWithVirtualMachinesInDifferentZones() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { dataDisks: [ { createOption: "Empty", diskSizeGB: 1023, lun: 0 }, - { createOption: "Empty", diskSizeGB: 1023, lun: 1 } + { createOption: "Empty", diskSizeGB: 1023, lun: 1 }, ], imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", diskSizeGB: 512, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }, - zones: ["1", "3"] + zones: ["1", "3"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -3105,7 +3089,7 @@ async function createAScaleSetWithVMSizeProperties() { upgradePolicy: { mode: "Manual" }, virtualMachineProfile: { hardwareProfile: { - vmSizeProperties: { vCPUsAvailable: 1, vCPUsPerCore: 1 } + vmSizeProperties: { vCPUsAvailable: 1, vCPUsPerCore: 1 }, }, networkProfile: { networkInterfaceConfigurations: [ @@ -3116,43 +3100,43 @@ async function createAScaleSetWithVMSizeProperties() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, - userData: "RXhhbXBsZSBVc2VyRGF0YQ==" - } + userData: "RXhhbXBsZSBVc2VyRGF0YQ==", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -3176,9 +3160,8 @@ async function createOrUpdateAScaleSetWithCapacityReservation() { virtualMachineProfile: { capacityReservation: { capacityReservationGroup: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/CapacityReservationGroups/{crgName}" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/CapacityReservationGroups/{crgName}", + }, }, networkProfile: { networkInterfaceConfigurations: [ @@ -3189,42 +3172,42 @@ async function createOrUpdateAScaleSetWithCapacityReservation() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeallocateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeallocateSample.ts index cadf8fe95290..e4ab362d752f 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeallocateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeallocateSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsDeallocateOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,18 +32,18 @@ async function virtualMachineScaleSetDeallocateMaximumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaa"; const hibernate = true; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsDeallocateOptionalParams = { hibernate, - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginDeallocateAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -64,7 +64,7 @@ async function virtualMachineScaleSetDeallocateMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginDeallocateAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeleteInstancesSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeleteInstancesSample.ts index 43b4a6e0338e..5656c5c0167b 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeleteInstancesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeleteInstancesSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceRequiredIDs, VirtualMachineScaleSetsDeleteInstancesOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,19 +32,20 @@ async function virtualMachineScaleSetDeleteInstancesMaximumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaa"; const forceDeletion = true; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsDeleteInstancesOptionalParams = { - forceDeletion + forceDeletion, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginDeleteInstancesAndWait( - resourceGroupName, - vmScaleSetName, - vmInstanceIDs, - options - ); + const result = + await client.virtualMachineScaleSets.beginDeleteInstancesAndWait( + resourceGroupName, + vmScaleSetName, + vmInstanceIDs, + options, + ); console.log(result); } @@ -61,15 +62,16 @@ async function virtualMachineScaleSetDeleteInstancesMinimumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginDeleteInstancesAndWait( - resourceGroupName, - vmScaleSetName, - vmInstanceIDs - ); + const result = + await client.virtualMachineScaleSets.beginDeleteInstancesAndWait( + resourceGroupName, + vmScaleSetName, + vmInstanceIDs, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeleteSample.ts index b69787c228d7..52c96828424e 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeleteSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetsDeleteOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,14 +31,14 @@ async function forceDeleteAVMScaleSet() { const vmScaleSetName = "myvmScaleSet"; const forceDeletion = true; const options: VirtualMachineScaleSetsDeleteOptionalParams = { - forceDeletion + forceDeletion, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginDeleteAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts index cc1a536cd4fe..b0696a161564 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts @@ -29,11 +29,12 @@ async function virtualMachineScaleSetForceRecoveryServiceFabricPlatformUpdateDom const platformUpdateDomain = 30; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.forceRecoveryServiceFabricPlatformUpdateDomainWalk( - resourceGroupName, - vmScaleSetName, - platformUpdateDomain - ); + const result = + await client.virtualMachineScaleSets.forceRecoveryServiceFabricPlatformUpdateDomainWalk( + resourceGroupName, + vmScaleSetName, + platformUpdateDomain, + ); console.log(result); } @@ -52,11 +53,12 @@ async function virtualMachineScaleSetForceRecoveryServiceFabricPlatformUpdateDom const platformUpdateDomain = 9; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.forceRecoveryServiceFabricPlatformUpdateDomainWalk( - resourceGroupName, - vmScaleSetName, - platformUpdateDomain - ); + const result = + await client.virtualMachineScaleSets.forceRecoveryServiceFabricPlatformUpdateDomainWalk( + resourceGroupName, + vmScaleSetName, + platformUpdateDomain, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetInstanceViewSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetInstanceViewSample.ts index c6401aff521a..0be4b5ed0ca5 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetInstanceViewSample.ts @@ -30,7 +30,7 @@ async function virtualMachineScaleSetGetInstanceViewMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.getInstanceView( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineScaleSetGetInstanceViewMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.getInstanceView( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts index 3e8c4a0d3ea1..4cc783727ca6 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts @@ -31,7 +31,7 @@ async function virtualMachineScaleSetGetOSUpgradeHistoryMaximumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.listOSUpgradeHistory( resourceGroupName, - vmScaleSetName + vmScaleSetName, )) { resArray.push(item); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetGetOSUpgradeHistoryMinimumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.listOSUpgradeHistory( resourceGroupName, - vmScaleSetName + vmScaleSetName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetSample.ts index cc41549c60cc..aab817379d35 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function getVMScaleSetVMWithDiskControllerType() { const result = await client.virtualMachineScaleSets.get( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -57,7 +57,7 @@ async function getAVirtualMachineScaleSet() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.get( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } @@ -78,7 +78,7 @@ async function getAVirtualMachineScaleSetPlacedOnADedicatedHostGroupThroughAutom const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.get( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } @@ -102,7 +102,7 @@ async function getAVirtualMachineScaleSetWithUserData() { const result = await client.virtualMachineScaleSets.get( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListByLocationSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListByLocationSample.ts index 482c0aaa56bf..8f158d60d364 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListByLocationSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListByLocationSample.ts @@ -28,7 +28,7 @@ async function listsAllTheVMScaleSetsUnderTheSpecifiedSubscriptionForTheSpecifie const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.listByLocation( - location + location, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListSample.ts index ef1a4d84817d..8b5a51a53d2a 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListSample.ts @@ -29,7 +29,7 @@ async function virtualMachineScaleSetListMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.list( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } @@ -51,7 +51,7 @@ async function virtualMachineScaleSetListMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.list( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListSkusSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListSkusSample.ts index ac6f0f401d18..82d23dff4a2b 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListSkusSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListSkusSample.ts @@ -31,7 +31,7 @@ async function virtualMachineScaleSetListSkusMaximumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.listSkus( resourceGroupName, - vmScaleSetName + vmScaleSetName, )) { resArray.push(item); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetListSkusMinimumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.listSkus( resourceGroupName, - vmScaleSetName + vmScaleSetName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsPerformMaintenanceSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsPerformMaintenanceSample.ts index fe1f03a88c68..20c856c7fa22 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsPerformMaintenanceSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsPerformMaintenanceSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsPerformMaintenanceOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,18 +31,19 @@ async function virtualMachineScaleSetPerformMaintenanceMaximumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsPerformMaintenanceOptionalParams = { - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginPerformMaintenanceAndWait( - resourceGroupName, - vmScaleSetName, - options - ); + const result = + await client.virtualMachineScaleSets.beginPerformMaintenanceAndWait( + resourceGroupName, + vmScaleSetName, + options, + ); console.log(result); } @@ -60,10 +61,11 @@ async function virtualMachineScaleSetPerformMaintenanceMinimumSetGen() { const vmScaleSetName = "aa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginPerformMaintenanceAndWait( - resourceGroupName, - vmScaleSetName - ); + const result = + await client.virtualMachineScaleSets.beginPerformMaintenanceAndWait( + resourceGroupName, + vmScaleSetName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsPowerOffSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsPowerOffSample.ts index fce76fa99f85..5d0ed3b593bf 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsPowerOffSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsPowerOffSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsPowerOffOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,18 +32,18 @@ async function virtualMachineScaleSetPowerOffMaximumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaaaa"; const skipShutdown = true; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsPowerOffOptionalParams = { skipShutdown, - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginPowerOffAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -64,7 +64,7 @@ async function virtualMachineScaleSetPowerOffMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginPowerOffAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReapplySample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReapplySample.ts index 1c3863a32c1e..e3cc62f3b6c5 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReapplySample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReapplySample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetsReapplyMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginReapplyAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetsReapplyMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginReapplyAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsRedeploySample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsRedeploySample.ts index bac68cc788d3..6b648e7063ad 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsRedeploySample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsRedeploySample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsRedeployOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,17 +31,17 @@ async function virtualMachineScaleSetRedeployMaximumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsRedeployOptionalParams = { - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginRedeployAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -62,7 +62,7 @@ async function virtualMachineScaleSetRedeployMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginRedeployAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReimageAllSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReimageAllSample.ts index 81aa76c55b76..01421e27086f 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReimageAllSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReimageAllSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsReimageAllOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,17 +31,17 @@ async function virtualMachineScaleSetReimageAllMaximumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsReimageAllOptionalParams = { - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginReimageAllAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -62,7 +62,7 @@ async function virtualMachineScaleSetReimageAllMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginReimageAllAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReimageSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReimageSample.ts index d2d27e5a275a..4bfd776d5175 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReimageSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReimageSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetReimageParameters, VirtualMachineScaleSetsReimageOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,17 +32,17 @@ async function virtualMachineScaleSetReimageMaximumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaa"; const vmScaleSetReimageInput: VirtualMachineScaleSetReimageParameters = { instanceIds: ["aaaaaaaaaa"], - tempDisk: true + tempDisk: true, }; const options: VirtualMachineScaleSetsReimageOptionalParams = { - vmScaleSetReimageInput + vmScaleSetReimageInput, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginReimageAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -63,7 +63,7 @@ async function virtualMachineScaleSetReimageMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginReimageAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsRestartSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsRestartSample.ts index 310b99a21fb1..f2006349f0ce 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsRestartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsRestartSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsRestartOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,17 +31,17 @@ async function virtualMachineScaleSetRestartMaximumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsRestartOptionalParams = { - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginRestartAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -62,7 +62,7 @@ async function virtualMachineScaleSetRestartMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginRestartAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts index 2250fe5f7be3..f9562b55e0fa 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { OrchestrationServiceStateInput, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,15 +31,16 @@ async function virtualMachineScaleSetOrchestrationServiceStateMaximumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaa"; const parameters: OrchestrationServiceStateInput = { action: "Resume", - serviceName: "AutomaticRepairs" + serviceName: "AutomaticRepairs", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginSetOrchestrationServiceStateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginSetOrchestrationServiceStateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -57,15 +58,16 @@ async function virtualMachineScaleSetOrchestrationServiceStateMinimumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaa"; const parameters: OrchestrationServiceStateInput = { action: "Resume", - serviceName: "AutomaticRepairs" + serviceName: "AutomaticRepairs", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginSetOrchestrationServiceStateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginSetOrchestrationServiceStateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsStartSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsStartSample.ts index 41f57282a891..6347911d73cc 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsStartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsStartSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsStartOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,7 +31,7 @@ async function virtualMachineScaleSetStartMaximumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsStartOptionalParams = { vmInstanceIDs }; const credential = new DefaultAzureCredential(); @@ -39,7 +39,7 @@ async function virtualMachineScaleSetStartMaximumSetGen() { const result = await client.virtualMachineScaleSets.beginStartAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -60,7 +60,7 @@ async function virtualMachineScaleSetStartMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginStartAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsUpdateInstancesSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsUpdateInstancesSample.ts index 310a28f3459c..7178417d9db1 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsUpdateInstancesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsUpdateInstancesSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMInstanceRequiredIDs, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -30,15 +30,16 @@ async function virtualMachineScaleSetUpdateInstancesMaximumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginUpdateInstancesAndWait( - resourceGroupName, - vmScaleSetName, - vmInstanceIDs - ); + const result = + await client.virtualMachineScaleSets.beginUpdateInstancesAndWait( + resourceGroupName, + vmScaleSetName, + vmInstanceIDs, + ); console.log(result); } @@ -55,15 +56,16 @@ async function virtualMachineScaleSetUpdateInstancesMinimumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginUpdateInstancesAndWait( - resourceGroupName, - vmScaleSetName, - vmInstanceIDs - ); + const result = + await client.virtualMachineScaleSets.beginUpdateInstancesAndWait( + resourceGroupName, + vmScaleSetName, + vmInstanceIDs, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsUpdateSample.ts index 2456cfe0d345..7b328300bb1e 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -35,18 +35,17 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { doNotRunExtensionsOnOverprovisionedVMs: true, identity: { type: "SystemAssigned", - userAssignedIdentities: { key3951: {} } + userAssignedIdentities: { key3951: {} }, }, overprovision: true, plan: { name: "windows2016", product: "windows-data-science-vm", promotionCode: "aaaaaaaaaa", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, proximityPlacementGroup: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", }, scaleInPolicy: { forceDeletion: true, rules: ["OldestVM"] }, singlePlacementGroup: true, @@ -56,7 +55,7 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { automaticOSUpgradePolicy: { disableAutomaticRollback: true, enableAutomaticOSUpgrade: true, - osRollingUpgradeDeferral: true + osRollingUpgradeDeferral: true, }, mode: "Manual", rollingUpgradePolicy: { @@ -67,8 +66,8 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { maxUnhealthyUpgradedInstancePercent: 98, pauseTimeBetweenBatches: "aaaaaaaaaaaaaaa", prioritizeUnhealthyInstances: true, - rollbackFailedInstancesOnPolicyBreach: true - } + rollbackFailedInstancesOnPolicyBreach: true, + }, }, virtualMachineProfile: { billingProfile: { maxPrice: -1 }, @@ -76,8 +75,8 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, extensionProfile: { extensionsTimeBudget: "PT1H20M", @@ -93,15 +92,14 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { publisher: "{extension-Publisher}", settings: {}, suppressFailures: true, - typeHandlerVersion: "{handler-version}" - } - ] + typeHandlerVersion: "{handler-version}", + }, + ], }, licenseType: "aaaaaaaaaaaa", networkProfile: { healthProbe: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123", }, networkApiVersion: "2020-11-01", networkInterfaceConfigurations: [ @@ -117,27 +115,23 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { name: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", applicationGatewayBackendAddressPools: [ { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, ], applicationSecurityGroups: [ { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, ], loadBalancerBackendAddressPools: [ { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, ], loadBalancerInboundNatPools: [ { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, ], primary: true, privateIPAddressVersion: "IPv4", @@ -145,21 +139,19 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { name: "a", deleteOption: "Delete", dnsSettings: { domainNameLabel: "aaaaaaaaaaaaaaaaaa" }, - idleTimeoutInMinutes: 3 + idleTimeoutInMinutes: 3, }, subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123", + }, + }, ], networkSecurityGroup: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", }, - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { customData: "aaaaaaaaaaaaaaaaaaaaaaaaaa", @@ -167,7 +159,7 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { disablePasswordAuthentication: true, patchSettings: { assessmentMode: "ImageDefault", - patchMode: "ImageDefault" + patchMode: "ImageDefault", }, provisionVMAgent: true, ssh: { @@ -175,24 +167,23 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { { path: "/home/{your-username}/.ssh/authorized_keys", keyData: - "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" - } - ] - } + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1", + }, + ], + }, }, secrets: [ { sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, vaultCertificates: [ { certificateStore: "aaaaaaaaaaaaaaaaaaaaaaaaa", - certificateUrl: "aaaaaaa" - } - ] - } + certificateUrl: "aaaaaaa", + }, + ], + }, ], windowsConfiguration: { additionalUnattendContent: [ @@ -200,35 +191,35 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { componentName: "Microsoft-Windows-Shell-Setup", content: "aaaaaaaaaaaaaaaaaaaa", passName: "OobeSystem", - settingName: "AutoLogon" - } + settingName: "AutoLogon", + }, ], enableAutomaticUpdates: true, patchSettings: { assessmentMode: "ImageDefault", automaticByPlatformSettings: { rebootSetting: "Never" }, enableHotpatching: true, - patchMode: "AutomaticByPlatform" + patchMode: "AutomaticByPlatform", }, provisionVMAgent: true, timeZone: "aaaaaaaaaaaaaaaa", winRM: { listeners: [ - { certificateUrl: "aaaaaaaaaaaaaaaaaaaaaa", protocol: "Http" } - ] - } - } + { certificateUrl: "aaaaaaaaaaaaaaaaaaaaaa", protocol: "Http" }, + ], + }, + }, }, scheduledEventsProfile: { terminateNotificationProfile: { enable: true, - notBeforeTimeout: "PT10M" - } + notBeforeTimeout: "PT10M", + }, }, securityProfile: { encryptionAtHost: true, securityType: "TrustedLaunch", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, storageProfile: { dataDisks: [ @@ -242,10 +233,10 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { lun: 26, managedDisk: { diskEncryptionSet: { id: "aaaaaaaaaaaa" }, - storageAccountType: "Standard_LRS" + storageAccountType: "Standard_LRS", }, - writeAcceleratorEnabled: true - } + writeAcceleratorEnabled: true, + }, ], imageReference: { id: "aaaaaaaaaaaaaaaaaaa", @@ -253,32 +244,31 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { publisher: "MicrosoftWindowsServer", sharedGalleryImageId: "aaaaaa", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", diskSizeGB: 6, image: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd" + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd", }, managedDisk: { diskEncryptionSet: { id: "aaaaaaaaaaaa" }, - storageAccountType: "Standard_LRS" + storageAccountType: "Standard_LRS", }, vhdContainers: ["aa"], - writeAcceleratorEnabled: true - } + writeAcceleratorEnabled: true, + }, }, - userData: "aaaaaaaaaaaaa" - } + userData: "aaaaaaaaaaaaa", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginUpdateAndWait( resourceGroupName, vmScaleSetName, - parameters + parameters, ); console.log(result); } @@ -301,7 +291,7 @@ async function virtualMachineScaleSetUpdateMinimumSetGen() { const result = await client.virtualMachineScaleSets.beginUpdateAndWait( resourceGroupName, vmScaleSetName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesAssessPatchesSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesAssessPatchesSample.ts index 4b22c5e47df6..7e144e4ac790 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesAssessPatchesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesAssessPatchesSample.ts @@ -30,7 +30,7 @@ async function assessPatchStateOfAVirtualMachine() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginAssessPatchesAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesAttachDetachDataDisksSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesAttachDetachDataDisksSample.ts index a6ae4d63ca6d..32db8c3aa8d5 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesAttachDetachDataDisksSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesAttachDetachDataDisksSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { AttachDetachDataDisksRequest, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,33 +34,33 @@ async function virtualMachineAttachDetachDataDisksMaximumSetGen() { { diskId: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", - lun: 1 + lun: 1, }, { diskId: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_2_disk3_7d5e664bdafa49baa780eb2d128ff38e", - lun: 2 - } + lun: 2, + }, ], dataDisksToDetach: [ { detachOption: "ForceDetach", diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x" + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x", }, { detachOption: "ForceDetach", diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_4_disk4_4d4e784bdafa49baa780eb2d256ff41z" - } - ] + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_4_disk4_4d4e784bdafa49baa780eb2d256ff41z", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginAttachDetachDataDisksAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -81,22 +81,22 @@ async function virtualMachineAttachDetachDataDisksMinimumSetGen() { dataDisksToAttach: [ { diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d" - } + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", + }, ], dataDisksToDetach: [ { diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x" - } - ] + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginAttachDetachDataDisksAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesCaptureSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesCaptureSample.ts index 8a97b3361028..35474c2a77a6 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesCaptureSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesCaptureSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineCaptureParameters, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,14 +32,14 @@ async function virtualMachineCaptureMaximumSetGen() { const parameters: VirtualMachineCaptureParameters = { destinationContainerName: "aaaaaaa", overwriteVhds: true, - vhdPrefix: "aaaaaaaaa" + vhdPrefix: "aaaaaaaaa", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCaptureAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -59,14 +59,14 @@ async function virtualMachineCaptureMinimumSetGen() { const parameters: VirtualMachineCaptureParameters = { destinationContainerName: "aaaaaaa", overwriteVhds: true, - vhdPrefix: "aaaaaaaaa" + vhdPrefix: "aaaaaaaaa", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCaptureAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesConvertToManagedDisksSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesConvertToManagedDisksSample.ts index 8fba6f5bb4de..49972a1a2cdd 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesConvertToManagedDisksSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesConvertToManagedDisksSample.ts @@ -30,7 +30,7 @@ async function virtualMachineConvertToManagedDisksMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginConvertToManagedDisksAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineConvertToManagedDisksMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginConvertToManagedDisksAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesCreateOrUpdateSample.ts index 72be2de6d0d5..944af4792dcc 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesCreateOrUpdateSample.ts @@ -32,11 +32,10 @@ async function createALinuxVMWithAPatchSettingAssessmentModeOfImageDefault() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -44,30 +43,30 @@ async function createALinuxVMWithAPatchSettingAssessmentModeOfImageDefault() { computerName: "myVM", linuxConfiguration: { patchSettings: { assessmentMode: "ImageDefault" }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "UbuntuServer", publisher: "Canonical", sku: "16.04-LTS", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -90,11 +89,10 @@ async function createALinuxVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndA networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -105,34 +103,34 @@ async function createALinuxVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndA assessmentMode: "AutomaticByPlatform", automaticByPlatformSettings: { bypassPlatformSafetyChecksOnUserSchedule: true, - rebootSetting: "Never" + rebootSetting: "Never", }, - patchMode: "AutomaticByPlatform" + patchMode: "AutomaticByPlatform", }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "UbuntuServer", publisher: "Canonical", sku: "16.04-LTS", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -155,11 +153,10 @@ async function createALinuxVMWithAPatchSettingPatchModeOfImageDefault() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -167,30 +164,30 @@ async function createALinuxVMWithAPatchSettingPatchModeOfImageDefault() { computerName: "myVM", linuxConfiguration: { patchSettings: { patchMode: "ImageDefault" }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "UbuntuServer", publisher: "Canonical", sku: "16.04-LTS", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -213,11 +210,10 @@ async function createALinuxVMWithAPatchSettingsPatchModeAndAssessmentModeSetToAu networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -226,32 +222,32 @@ async function createALinuxVMWithAPatchSettingsPatchModeAndAssessmentModeSetToAu linuxConfiguration: { patchSettings: { assessmentMode: "AutomaticByPlatform", - patchMode: "AutomaticByPlatform" + patchMode: "AutomaticByPlatform", }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "UbuntuServer", publisher: "Canonical", sku: "16.04-LTS", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -274,36 +270,35 @@ async function createAVMFromACommunityGalleryImage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { communityGalleryImageId: - "/CommunityGalleries/galleryPublicName/Images/communityGalleryImageName/Versions/communityGalleryImageVersionName" + "/CommunityGalleries/galleryPublicName/Images/communityGalleryImageName/Versions/communityGalleryImageVersionName", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -326,36 +321,35 @@ async function createAVMFromASharedGalleryImage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { sharedGalleryImageId: - "/SharedGalleries/sharedGalleryName/Images/sharedGalleryImageName/Versions/sharedGalleryImageVersionName" + "/SharedGalleries/sharedGalleryName/Images/sharedGalleryImageName/Versions/sharedGalleryImageVersionName", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -377,24 +371,23 @@ async function createAVMWithDiskControllerType() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, hardwareProfile: { vmSize: "Standard_D4_v3" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { diskControllerType: "NVMe", @@ -402,23 +395,23 @@ async function createAVMWithDiskControllerType() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, - userData: "U29tZSBDdXN0b20gRGF0YQ==" + userData: "U29tZSBDdXN0b20gRGF0YQ==", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -441,46 +434,45 @@ async function createAVMWithHibernationEnabled() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, hardwareProfile: { vmSize: "Standard_D2s_v3" }, location: "eastus2euap", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "{vm-name}" + computerName: "{vm-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2019-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "vmOSdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -503,16 +495,15 @@ async function createAVMWithProxyAgentSettingsOfEnabledAndMode() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, securityProfile: { proxyAgentSettings: { enabled: true, mode: "Enforce" } }, storageProfile: { @@ -520,22 +511,22 @@ async function createAVMWithProxyAgentSettingsOfEnabledAndMode() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2019-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "StandardSSD_LRS" } - } - } + managedDisk: { storageAccountType: "StandardSSD_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -558,42 +549,41 @@ async function createAVMWithUefiSettingsOfSecureBootAndVTpm() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, securityProfile: { securityType: "TrustedLaunch", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "windowsserver-gen2preview-preview", publisher: "MicrosoftWindowsServer", sku: "windows10-tvm", - version: "18363.592.2001092016" + version: "18363.592.2001092016", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "StandardSSD_LRS" } - } - } + managedDisk: { storageAccountType: "StandardSSD_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -615,47 +605,46 @@ async function createAVMWithUserData() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, hardwareProfile: { vmSize: "Standard_D1_v2" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "{vm-name}" + computerName: "{vm-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "vmOSdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, - userData: "RXhhbXBsZSBVc2VyRGF0YQ==" + userData: "RXhhbXBsZSBVc2VyRGF0YQ==", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -677,50 +666,49 @@ async function createAVMWithVMSizeProperties() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, hardwareProfile: { vmSize: "Standard_D4_v3", - vmSizeProperties: { vCPUsAvailable: 1, vCPUsPerCore: 1 } + vmSizeProperties: { vCPUsAvailable: 1, vCPUsPerCore: 1 }, }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, - userData: "U29tZSBDdXN0b20gRGF0YQ==" + userData: "U29tZSBDdXN0b20gRGF0YQ==", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -742,51 +730,51 @@ async function createAVMWithEncryptionIdentity() { identity: { type: "UserAssigned", userAssignedIdentities: { - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/myIdentity": {} - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/myIdentity": + {}, + }, }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, securityProfile: { encryptionIdentity: { userAssignedIdentityResourceId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity" - } + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity", + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2019-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "StandardSSD_LRS" } - } - } + managedDisk: { storageAccountType: "StandardSSD_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -820,40 +808,40 @@ async function createAVMWithNetworkInterfaceConfiguration() { name: "{publicIP-config-name}", deleteOption: "Detach", publicIPAllocationMethod: "Static", - sku: { name: "Basic", tier: "Global" } - } - } + sku: { name: "Basic", tier: "Global" }, + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -888,43 +876,43 @@ async function createAVMWithNetworkInterfaceConfigurationWithPublicIPAddressDnsS deleteOption: "Detach", dnsSettings: { domainNameLabel: "aaaaa", - domainNameLabelScope: "TenantReuse" + domainNameLabelScope: "TenantReuse", }, publicIPAllocationMethod: "Static", - sku: { name: "Basic", tier: "Global" } - } - } + sku: { name: "Basic", tier: "Global" }, + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -947,27 +935,26 @@ async function createAVMWithSecurityTypeConfidentialVMWithCustomerManagedKeys() networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, securityProfile: { securityType: "ConfidentialVM", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "2019-datacenter-cvm", publisher: "MicrosoftWindowsServer", sku: "windows-cvm", - version: "17763.2183.2109130127" + version: "17763.2183.2109130127", }, osDisk: { name: "myVMosdisk", @@ -976,22 +963,21 @@ async function createAVMWithSecurityTypeConfidentialVMWithCustomerManagedKeys() managedDisk: { securityProfile: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - securityEncryptionType: "DiskWithVMGuestState" + securityEncryptionType: "DiskWithVMGuestState", }, - storageAccountType: "StandardSSD_LRS" - } - } - } + storageAccountType: "StandardSSD_LRS", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1014,27 +1000,26 @@ async function createAVMWithSecurityTypeConfidentialVMWithNonPersistedTpmSecurit networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, securityProfile: { securityType: "ConfidentialVM", - uefiSettings: { secureBootEnabled: false, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: false, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "2022-datacenter-cvm", publisher: "UbuntuServer", sku: "linux-cvm", - version: "17763.2183.2109130127" + version: "17763.2183.2109130127", }, osDisk: { name: "myVMosdisk", @@ -1042,17 +1027,17 @@ async function createAVMWithSecurityTypeConfidentialVMWithNonPersistedTpmSecurit createOption: "FromImage", managedDisk: { securityProfile: { securityEncryptionType: "NonPersistedTPM" }, - storageAccountType: "StandardSSD_LRS" - } - } - } + storageAccountType: "StandardSSD_LRS", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1075,27 +1060,26 @@ async function createAVMWithSecurityTypeConfidentialVMWithPlatformManagedKeys() networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, securityProfile: { securityType: "ConfidentialVM", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "2019-datacenter-cvm", publisher: "MicrosoftWindowsServer", sku: "windows-cvm", - version: "17763.2183.2109130127" + version: "17763.2183.2109130127", }, osDisk: { name: "myVMosdisk", @@ -1103,17 +1087,17 @@ async function createAVMWithSecurityTypeConfidentialVMWithPlatformManagedKeys() createOption: "FromImage", managedDisk: { securityProfile: { securityEncryptionType: "DiskWithVMGuestState" }, - storageAccountType: "StandardSSD_LRS" - } - } - } + storageAccountType: "StandardSSD_LRS", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1136,11 +1120,10 @@ async function createAWindowsVMWithAPatchSettingAssessmentModeOfImageDefault() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -1149,30 +1132,30 @@ async function createAWindowsVMWithAPatchSettingAssessmentModeOfImageDefault() { windowsConfiguration: { enableAutomaticUpdates: true, patchSettings: { assessmentMode: "ImageDefault" }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1195,11 +1178,10 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByOS() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -1208,30 +1190,30 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByOS() { windowsConfiguration: { enableAutomaticUpdates: true, patchSettings: { patchMode: "AutomaticByOS" }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1254,11 +1236,10 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -1270,34 +1251,34 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn assessmentMode: "AutomaticByPlatform", automaticByPlatformSettings: { bypassPlatformSafetyChecksOnUserSchedule: false, - rebootSetting: "Never" + rebootSetting: "Never", }, - patchMode: "AutomaticByPlatform" + patchMode: "AutomaticByPlatform", }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1320,11 +1301,10 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -1334,32 +1314,32 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn enableAutomaticUpdates: true, patchSettings: { enableHotpatching: true, - patchMode: "AutomaticByPlatform" + patchMode: "AutomaticByPlatform", }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1382,11 +1362,10 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfManual() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -1395,30 +1374,30 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfManual() { windowsConfiguration: { enableAutomaticUpdates: true, patchSettings: { patchMode: "Manual" }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1441,11 +1420,10 @@ async function createAWindowsVMWithPatchSettingsPatchModeAndAssessmentModeSetToA networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -1455,32 +1433,32 @@ async function createAWindowsVMWithPatchSettingsPatchModeAndAssessmentModeSetToA enableAutomaticUpdates: true, patchSettings: { assessmentMode: "AutomaticByPlatform", - patchMode: "AutomaticByPlatform" + patchMode: "AutomaticByPlatform", }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1503,16 +1481,15 @@ async function createACustomImageVMFromAnUnmanagedGeneralizedOSImage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { osDisk: { @@ -1520,23 +1497,21 @@ async function createACustomImageVMFromAnUnmanagedGeneralizedOSImage() { caching: "ReadWrite", createOption: "FromImage", image: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd" + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd", }, osType: "Windows", vhd: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd" - } - } - } + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1559,16 +1534,15 @@ async function createAPlatformImageVMWithUnmanagedOSAndDataDisks() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { dataDisks: [ @@ -1577,43 +1551,40 @@ async function createAPlatformImageVMWithUnmanagedOSAndDataDisks() { diskSizeGB: 1023, lun: 0, vhd: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk0.vhd" - } + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk0.vhd", + }, }, { createOption: "Empty", diskSizeGB: 1023, lun: 1, vhd: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk1.vhd" - } - } + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk1.vhd", + }, + }, ], imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", vhd: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd" - } - } - } + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1636,36 +1607,34 @@ async function createAVMFromACustomImage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1688,36 +1657,34 @@ async function createAVMFromAGeneralizedSharedImage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1740,31 +1707,29 @@ async function createAVMFromASpecializedSharedImage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1787,16 +1752,15 @@ async function createAVMInAVirtualMachineScaleSetWithCustomerAssignedPlatformFau networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, platformFaultDomain: 1, storageProfile: { @@ -1804,26 +1768,25 @@ async function createAVMInAVirtualMachineScaleSetWithCustomerAssignedPlatformFau offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, virtualMachineScaleSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{existing-flex-vmss-name-with-platformFaultDomainCount-greater-than-1}" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{existing-flex-vmss-name-with-platformFaultDomainCount-greater-than-1}", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1842,46 +1805,44 @@ async function createAVMInAnAvailabilitySet() { const vmName = "myVM"; const parameters: VirtualMachine = { availabilitySet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/availabilitySets/{existing-availability-set-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/availabilitySets/{existing-availability-set-name}", }, hardwareProfile: { vmSize: "Standard_D1_v2" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1909,51 +1870,50 @@ async function createAVMWithApplicationProfile() { packageReferenceId: "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdb/resourceGroups/myresourceGroupName2/providers/Microsoft.Compute/galleries/myGallery1/applications/MyApplication1/versions/1.0", tags: "myTag1", - treatFailureAsDeploymentFailure: false + treatFailureAsDeploymentFailure: false, }, { packageReferenceId: - "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdg/resourceGroups/myresourceGroupName3/providers/Microsoft.Compute/galleries/myGallery2/applications/MyApplication2/versions/1.1" - } - ] + "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdg/resourceGroups/myresourceGroupName3/providers/Microsoft.Compute/galleries/myGallery2/applications/MyApplication2/versions/1.1", + }, + ], }, hardwareProfile: { vmSize: "Standard_D1_v2" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "{image_offer}", publisher: "{image_publisher}", sku: "{image_sku}", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1976,16 +1936,15 @@ async function createAVMWithDiskEncryptionSetResourceIdInTheOSDiskAndDataDisk() networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { dataDisks: [ @@ -1996,11 +1955,10 @@ async function createAVMWithDiskEncryptionSetResourceIdInTheOSDiskAndDataDisk() lun: 0, managedDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - storageAccountType: "Standard_LRS" - } + storageAccountType: "Standard_LRS", + }, }, { caching: "ReadWrite", @@ -2009,18 +1967,15 @@ async function createAVMWithDiskEncryptionSetResourceIdInTheOSDiskAndDataDisk() lun: 1, managedDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/{existing-managed-disk-name}", - storageAccountType: "Standard_LRS" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/{existing-managed-disk-name}", + storageAccountType: "Standard_LRS", + }, + }, ], imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { name: "myVMosdisk", @@ -2028,20 +1983,19 @@ async function createAVMWithDiskEncryptionSetResourceIdInTheOSDiskAndDataDisk() createOption: "FromImage", managedDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - storageAccountType: "Standard_LRS" - } - } - } + storageAccountType: "Standard_LRS", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2064,21 +2018,20 @@ async function createAVMWithHostEncryptionUsingEncryptionAtHostProperty() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, securityProfile: { encryptionAtHost: true }, storageProfile: { @@ -2086,22 +2039,22 @@ async function createAVMWithHostEncryptionUsingEncryptionAtHostProperty() { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2123,50 +2076,49 @@ async function createAVMWithScheduledEventsProfile() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, hardwareProfile: { vmSize: "Standard_D1_v2" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, scheduledEventsProfile: { osImageNotificationProfile: { enable: true, notBeforeTimeout: "PT15M" }, - terminateNotificationProfile: { enable: true, notBeforeTimeout: "PT10M" } + terminateNotificationProfile: { enable: true, notBeforeTimeout: "PT10M" }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2189,43 +2141,42 @@ async function createAVMWithAMarketplaceImagePlan() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2247,8 +2198,8 @@ async function createAVMWithAnExtensionsTimeBudget() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, extensionsTimeBudget: "PT30M", hardwareProfile: { vmSize: "Standard_D1_v2" }, @@ -2256,38 +2207,37 @@ async function createAVMWithAnExtensionsTimeBudget() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2309,46 +2259,45 @@ async function createAVMWithBootDiagnostics() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, hardwareProfile: { vmSize: "Standard_D1_v2" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2371,42 +2320,41 @@ async function createAVMWithEmptyDataDisks() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { dataDisks: [ { createOption: "Empty", diskSizeGB: 1023, lun: 0 }, - { createOption: "Empty", diskSizeGB: 1023, lun: 1 } + { createOption: "Empty", diskSizeGB: 1023, lun: 1 }, ], imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2429,44 +2377,43 @@ async function createAVMWithEphemeralOSDiskProvisioningInCacheDiskUsingPlacement networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", diffDiskSettings: { option: "Local", placement: "CacheDisk" }, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2489,44 +2436,43 @@ async function createAVMWithEphemeralOSDiskProvisioningInResourceDiskUsingPlacem networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", diffDiskSettings: { option: "Local", placement: "ResourceDisk" }, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2549,44 +2495,43 @@ async function createAVMWithEphemeralOSDisk() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", diffDiskSettings: { option: "Local" }, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2610,38 +2555,37 @@ async function createAVMWithManagedBootDiagnostics() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2664,38 +2608,37 @@ async function createAVMWithPasswordAuthentication() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2718,38 +2661,37 @@ async function createAVMWithPremiumStorage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2772,11 +2714,10 @@ async function createAVMWithSshAuthentication() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminUsername: "{your-username}", @@ -2788,33 +2729,33 @@ async function createAVMWithSshAuthentication() { { path: "/home/{your-username}/.ssh/authorized_keys", keyData: - "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" - } - ] - } - } + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1", + }, + ], + }, + }, }, storageProfile: { imageReference: { offer: "{image_offer}", publisher: "{image_publisher}", sku: "{image_sku}", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2834,52 +2775,50 @@ async function createOrUpdateAVMWithCapacityReservation() { const parameters: VirtualMachine = { capacityReservation: { capacityReservationGroup: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/CapacityReservationGroups/{crgName}" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/CapacityReservationGroups/{crgName}", + }, }, hardwareProfile: { vmSize: "Standard_DS1_v2" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesDeallocateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesDeallocateSample.ts index 351b0abf6769..67df8c2cf0bb 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesDeallocateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesDeallocateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesDeallocateOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function virtualMachineDeallocateMaximumSetGen() { const result = await client.virtualMachines.beginDeallocateAndWait( resourceGroupName, vmName, - options + options, ); console.log(result); } @@ -57,7 +57,7 @@ async function virtualMachineDeallocateMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginDeallocateAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesDeleteSample.ts index 6fd67bd0ee3d..97641d945342 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesDeleteSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesDeleteOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function forceDeleteAVM() { const result = await client.virtualMachines.beginDeleteAndWait( resourceGroupName, vmName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesGeneralizeSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesGeneralizeSample.ts index feb2d3e10e63..818fb3778160 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesGeneralizeSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesGeneralizeSample.ts @@ -30,7 +30,7 @@ async function generalizeAVirtualMachine() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.generalize( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesGetSample.ts index 2e96af10b5e2..186af1f68827 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function getAVirtualMachine() { const result = await client.virtualMachines.get( resourceGroupName, vmName, - options + options, ); console.log(result); } @@ -78,7 +78,7 @@ async function getAVirtualMachineWithDiskControllerTypeProperties() { const result = await client.virtualMachines.get( resourceGroupName, vmName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesInstallPatchesSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesInstallPatchesSample.ts index b1e5e8f75265..49d78acbb25f 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesInstallPatchesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesInstallPatchesSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineInstallPatchesParameters, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,15 +34,15 @@ async function installPatchStateOfAVirtualMachine() { rebootSetting: "IfRequired", windowsParameters: { classificationsToInclude: ["Critical", "Security"], - maxPatchPublishDate: new Date("2020-11-19T02:36:43.0539904+00:00") - } + maxPatchPublishDate: new Date("2020-11-19T02:36:43.0539904+00:00"), + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginInstallPatchesAndWait( resourceGroupName, vmName, - installPatchesInput + installPatchesInput, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesInstanceViewSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesInstanceViewSample.ts index 00dfd96b2eac..6df11c00d122 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesInstanceViewSample.ts @@ -30,7 +30,7 @@ async function getVirtualMachineInstanceView() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.instanceView( resourceGroupName, - vmName + vmName, ); console.log(result); } @@ -51,7 +51,7 @@ async function getInstanceViewOfAVirtualMachinePlacedOnADedicatedHostGroupThroug const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.instanceView( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesListAllSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesListAllSample.ts index a2aceebd09cd..680c7972f3d9 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesListAllSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesListAllSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesListAllOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesListAvailableSizesSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesListAvailableSizesSample.ts index 29107a55014b..029b1a3fca05 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesListAvailableSizesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesListAvailableSizesSample.ts @@ -31,7 +31,7 @@ async function listsAllAvailableVirtualMachineSizesToWhichTheSpecifiedVirtualMac const resArray = new Array(); for await (let item of client.virtualMachines.listAvailableSizes( resourceGroupName, - vmName + vmName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesListSample.ts index 9692a239a9a8..359816f299b8 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesListSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesListOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -35,7 +35,7 @@ async function virtualMachineListMaximumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachines.list( resourceGroupName, - options + options, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesPerformMaintenanceSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesPerformMaintenanceSample.ts index 7ceb8d97164c..91dca7f28ef1 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesPerformMaintenanceSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesPerformMaintenanceSample.ts @@ -30,7 +30,7 @@ async function virtualMachinePerformMaintenanceMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginPerformMaintenanceAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachinePerformMaintenanceMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginPerformMaintenanceAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesPowerOffSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesPowerOffSample.ts index 15f84a6d5b82..b955a72f1ca1 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesPowerOffSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesPowerOffSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesPowerOffOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function virtualMachinePowerOffMaximumSetGen() { const result = await client.virtualMachines.beginPowerOffAndWait( resourceGroupName, vmName, - options + options, ); console.log(result); } @@ -57,7 +57,7 @@ async function virtualMachinePowerOffMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginPowerOffAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesReapplySample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesReapplySample.ts index a067f64f057c..857e7823d8f5 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesReapplySample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesReapplySample.ts @@ -30,7 +30,7 @@ async function reapplyTheStateOfAVirtualMachine() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginReapplyAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesRedeploySample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesRedeploySample.ts index e50756b6cbc3..e9468ef49a5e 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesRedeploySample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesRedeploySample.ts @@ -30,7 +30,7 @@ async function virtualMachineRedeployMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginRedeployAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineRedeployMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginRedeployAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesReimageSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesReimageSample.ts index 2c68ff088e8e..a1ec8a6d0ec1 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesReimageSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesReimageSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineReimageParameters, VirtualMachinesReimageOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,9 +34,9 @@ async function reimageANonEphemeralVirtualMachine() { exactVersion: "aaaaaa", osProfile: { adminPassword: "{your-password}", - customData: "{your-custom-data}" + customData: "{your-custom-data}", }, - tempDisk: true + tempDisk: true, }; const options: VirtualMachinesReimageOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -44,7 +44,7 @@ async function reimageANonEphemeralVirtualMachine() { const result = await client.virtualMachines.beginReimageAndWait( resourceGroupName, vmName, - options + options, ); console.log(result); } @@ -68,7 +68,7 @@ async function reimageAVirtualMachine() { const result = await client.virtualMachines.beginReimageAndWait( resourceGroupName, vmName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesRestartSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesRestartSample.ts index cebc0d8be944..7a8e9e6dc08a 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesRestartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesRestartSample.ts @@ -30,7 +30,7 @@ async function virtualMachineRestartMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginRestartAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineRestartMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginRestartAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesRetrieveBootDiagnosticsDataSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesRetrieveBootDiagnosticsDataSample.ts index 873ee356ff5d..a331d5e75b1d 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesRetrieveBootDiagnosticsDataSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesRetrieveBootDiagnosticsDataSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,14 +31,14 @@ async function retrieveBootDiagnosticsDataOfAVirtualMachine() { const vmName = "VMName"; const sasUriExpirationTimeInMinutes = 60; const options: VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams = { - sasUriExpirationTimeInMinutes + sasUriExpirationTimeInMinutes, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.retrieveBootDiagnosticsData( resourceGroupName, vmName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesRunCommandSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesRunCommandSample.ts index 0b640f230ac6..049402ca09bd 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesRunCommandSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesRunCommandSample.ts @@ -33,7 +33,7 @@ async function virtualMachineRunCommand() { const result = await client.virtualMachines.beginRunCommandAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesSimulateEvictionSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesSimulateEvictionSample.ts index cbe6578d22a0..49c46d4ab2f1 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesSimulateEvictionSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesSimulateEvictionSample.ts @@ -30,7 +30,7 @@ async function simulateEvictionAVirtualMachine() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.simulateEviction( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesStartSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesStartSample.ts index 37d02b450959..b8b337a2cc83 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesStartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesStartSample.ts @@ -30,7 +30,7 @@ async function virtualMachineStartMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginStartAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineStartMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginStartAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesUpdateSample.ts index ce9191b96d39..a82f313c230c 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,42 +34,46 @@ async function updateAVMByDetachingDataDisk() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { dataDisks: [ { createOption: "Empty", diskSizeGB: 1023, lun: 0, toBeDetached: true }, - { createOption: "Empty", diskSizeGB: 1023, lun: 1, toBeDetached: false } + { + createOption: "Empty", + diskSizeGB: 1023, + lun: 1, + toBeDetached: false, + }, ], imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -91,16 +95,15 @@ async function updateAVMByForceDetachingDataDisk() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { dataDisks: [ @@ -109,30 +112,35 @@ async function updateAVMByForceDetachingDataDisk() { detachOption: "ForceDetach", diskSizeGB: 1023, lun: 0, - toBeDetached: true + toBeDetached: true, + }, + { + createOption: "Empty", + diskSizeGB: 1023, + lun: 1, + toBeDetached: false, }, - { createOption: "Empty", diskSizeGB: 1023, lun: 1, toBeDetached: false } ], imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/javascript/README.md b/sdk/compute/arm-compute/samples/v21/javascript/README.md index 5871b4c886d6..b8939a45b72f 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/README.md +++ b/sdk/compute/arm-compute/samples/v21/javascript/README.md @@ -52,11 +52,11 @@ These sample programs show how to use the JavaScript client libraries for in som | [cloudServicesUpdateDomainListUpdateDomainsSample.js][cloudservicesupdatedomainlistupdatedomainssample] | Gets a list of all update domains in a cloud service. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/CloudserviceRP/stable/2022-09-04/examples/CloudServiceUpdateDomain_List.json | | [cloudServicesUpdateDomainWalkUpdateDomainSample.js][cloudservicesupdatedomainwalkupdatedomainsample] | Updates the role instances in the specified update domain. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/CloudserviceRP/stable/2022-09-04/examples/CloudServiceUpdateDomain_Update.json | | [cloudServicesUpdateSample.js][cloudservicesupdatesample] | Update a cloud service. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/CloudserviceRP/stable/2022-09-04/examples/CloudService_Update_ToIncludeTags.json | -| [communityGalleriesGetSample.js][communitygalleriesgetsample] | Get a community gallery by gallery public name. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGallery_Get.json | -| [communityGalleryImageVersionsGetSample.js][communitygalleryimageversionsgetsample] | Get a community gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json | -| [communityGalleryImageVersionsListSample.js][communitygalleryimageversionslistsample] | List community gallery image versions inside an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json | -| [communityGalleryImagesGetSample.js][communitygalleryimagesgetsample] | Get a community gallery image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json | -| [communityGalleryImagesListSample.js][communitygalleryimageslistsample] | List community gallery images inside a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json | +| [communityGalleriesGetSample.js][communitygalleriesgetsample] | Get a community gallery by gallery public name. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGallery_Get.json | +| [communityGalleryImageVersionsGetSample.js][communitygalleryimageversionsgetsample] | Get a community gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json | +| [communityGalleryImageVersionsListSample.js][communitygalleryimageversionslistsample] | List community gallery image versions inside an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json | +| [communityGalleryImagesGetSample.js][communitygalleryimagesgetsample] | Get a community gallery image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json | +| [communityGalleryImagesListSample.js][communitygalleryimageslistsample] | List community gallery images inside a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json | | [dedicatedHostGroupsCreateOrUpdateSample.js][dedicatedhostgroupscreateorupdatesample] | Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596) x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate_WithUltraSSD.json | | [dedicatedHostGroupsDeleteSample.js][dedicatedhostgroupsdeletesample] | Delete a dedicated host group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/dedicatedHostExamples/DedicatedHostGroup_Delete_MaximumSet_Gen.json | | [dedicatedHostGroupsGetSample.js][dedicatedhostgroupsgetsample] | Retrieves information about a dedicated host group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/dedicatedHostExamples/DedicatedHostGroup_Get.json | @@ -101,33 +101,33 @@ These sample programs show how to use the JavaScript client libraries for in som | [disksListSample.js][diskslistsample] | Lists all the disks under a subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2023-10-02/examples/diskExamples/Disk_ListBySubscription.json | | [disksRevokeAccessSample.js][disksrevokeaccesssample] | Revokes access to a disk. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2023-10-02/examples/diskExamples/Disk_EndGetAccess.json | | [disksUpdateSample.js][disksupdatesample] | Updates (patches) a disk. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2023-10-02/examples/diskExamples/Disk_CreateOrUpdate_BurstingEnabled.json | -| [galleriesCreateOrUpdateSample.js][galleriescreateorupdatesample] | Create or update a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/CommunityGallery_Create.json | -| [galleriesDeleteSample.js][galleriesdeletesample] | Delete a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Delete.json | -| [galleriesGetSample.js][galleriesgetsample] | Retrieves information about a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/CommunityGallery_Get.json | -| [galleriesListByResourceGroupSample.js][gallerieslistbyresourcegroupsample] | List galleries under a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ListByResourceGroup.json | -| [galleriesListSample.js][gallerieslistsample] | List galleries under a subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ListBySubscription.json | -| [galleriesUpdateSample.js][galleriesupdatesample] | Update a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Update.json | -| [galleryApplicationVersionsCreateOrUpdateSample.js][galleryapplicationversionscreateorupdatesample] | Create or update a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Create.json | -| [galleryApplicationVersionsDeleteSample.js][galleryapplicationversionsdeletesample] | Delete a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json | -| [galleryApplicationVersionsGetSample.js][galleryapplicationversionsgetsample] | Retrieves information about a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json | -| [galleryApplicationVersionsListByGalleryApplicationSample.js][galleryapplicationversionslistbygalleryapplicationsample] | List gallery Application Versions in a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json | -| [galleryApplicationVersionsUpdateSample.js][galleryapplicationversionsupdatesample] | Update a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Update.json | -| [galleryApplicationsCreateOrUpdateSample.js][galleryapplicationscreateorupdatesample] | Create or update a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Create.json | -| [galleryApplicationsDeleteSample.js][galleryapplicationsdeletesample] | Delete a gallery Application. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Delete.json | -| [galleryApplicationsGetSample.js][galleryapplicationsgetsample] | Retrieves information about a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Get.json | -| [galleryApplicationsListByGallerySample.js][galleryapplicationslistbygallerysample] | List gallery Application Definitions in a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_ListByGallery.json | -| [galleryApplicationsUpdateSample.js][galleryapplicationsupdatesample] | Update a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Update.json | -| [galleryImageVersionsCreateOrUpdateSample.js][galleryimageversionscreateorupdatesample] | Create or update a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json | -| [galleryImageVersionsDeleteSample.js][galleryimageversionsdeletesample] | Delete a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Delete.json | -| [galleryImageVersionsGetSample.js][galleryimageversionsgetsample] | Retrieves information about a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json | -| [galleryImageVersionsListByGalleryImageSample.js][galleryimageversionslistbygalleryimagesample] | List gallery image versions in a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json | -| [galleryImageVersionsUpdateSample.js][galleryimageversionsupdatesample] | Update a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Update.json | -| [galleryImagesCreateOrUpdateSample.js][galleryimagescreateorupdatesample] | Create or update a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Create.json | -| [galleryImagesDeleteSample.js][galleryimagesdeletesample] | Delete a gallery image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Delete.json | -| [galleryImagesGetSample.js][galleryimagesgetsample] | Retrieves information about a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Get.json | -| [galleryImagesListByGallerySample.js][galleryimageslistbygallerysample] | List gallery image definitions in a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_ListByGallery.json | -| [galleryImagesUpdateSample.js][galleryimagesupdatesample] | Update a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Update.json | -| [gallerySharingProfileUpdateSample.js][gallerysharingprofileupdatesample] | Update sharing profile of a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_AddToSharingProfile.json | +| [galleriesCreateOrUpdateSample.js][galleriescreateorupdatesample] | Create or update a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Create.json | +| [galleriesDeleteSample.js][galleriesdeletesample] | Delete a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Delete.json | +| [galleriesGetSample.js][galleriesgetsample] | Retrieves information about a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Get.json | +| [galleriesListByResourceGroupSample.js][gallerieslistbyresourcegroupsample] | List galleries under a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ListByResourceGroup.json | +| [galleriesListSample.js][gallerieslistsample] | List galleries under a subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ListBySubscription.json | +| [galleriesUpdateSample.js][galleriesupdatesample] | Update a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Update.json | +| [galleryApplicationVersionsCreateOrUpdateSample.js][galleryapplicationversionscreateorupdatesample] | Create or update a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Create.json | +| [galleryApplicationVersionsDeleteSample.js][galleryapplicationversionsdeletesample] | Delete a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json | +| [galleryApplicationVersionsGetSample.js][galleryapplicationversionsgetsample] | Retrieves information about a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json | +| [galleryApplicationVersionsListByGalleryApplicationSample.js][galleryapplicationversionslistbygalleryapplicationsample] | List gallery Application Versions in a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json | +| [galleryApplicationVersionsUpdateSample.js][galleryapplicationversionsupdatesample] | Update a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Update.json | +| [galleryApplicationsCreateOrUpdateSample.js][galleryapplicationscreateorupdatesample] | Create or update a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Create.json | +| [galleryApplicationsDeleteSample.js][galleryapplicationsdeletesample] | Delete a gallery Application. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Delete.json | +| [galleryApplicationsGetSample.js][galleryapplicationsgetsample] | Retrieves information about a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Get.json | +| [galleryApplicationsListByGallerySample.js][galleryapplicationslistbygallerysample] | List gallery Application Definitions in a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_ListByGallery.json | +| [galleryApplicationsUpdateSample.js][galleryapplicationsupdatesample] | Update a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Update.json | +| [galleryImageVersionsCreateOrUpdateSample.js][galleryimageversionscreateorupdatesample] | Create or update a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json | +| [galleryImageVersionsDeleteSample.js][galleryimageversionsdeletesample] | Delete a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Delete.json | +| [galleryImageVersionsGetSample.js][galleryimageversionsgetsample] | Retrieves information about a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json | +| [galleryImageVersionsListByGalleryImageSample.js][galleryimageversionslistbygalleryimagesample] | List gallery image versions in a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json | +| [galleryImageVersionsUpdateSample.js][galleryimageversionsupdatesample] | Update a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Update.json | +| [galleryImagesCreateOrUpdateSample.js][galleryimagescreateorupdatesample] | Create or update a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Create.json | +| [galleryImagesDeleteSample.js][galleryimagesdeletesample] | Delete a gallery image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Delete.json | +| [galleryImagesGetSample.js][galleryimagesgetsample] | Retrieves information about a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Get.json | +| [galleryImagesListByGallerySample.js][galleryimageslistbygallerysample] | List gallery image definitions in a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_ListByGallery.json | +| [galleryImagesUpdateSample.js][galleryimagesupdatesample] | Update a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Update.json | +| [gallerySharingProfileUpdateSample.js][gallerysharingprofileupdatesample] | Update sharing profile of a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_AddToSharingProfile.json | | [imagesCreateOrUpdateSample.js][imagescreateorupdatesample] | Create or update an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/imageExamples/Image_CreateFromABlobWithDiskEncryptionSet.json | | [imagesDeleteSample.js][imagesdeletesample] | Deletes an Image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/imageExamples/Images_Delete_MaximumSet_Gen.json | | [imagesGetSample.js][imagesgetsample] | Gets an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/imageExamples/Image_Get.json | @@ -153,12 +153,12 @@ These sample programs show how to use the JavaScript client libraries for in som | [restorePointsCreateSample.js][restorepointscreatesample] | The operation to create the restore point. Updating properties of an existing restore point is not allowed x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/restorePointExamples/RestorePoint_Copy_BetweenRegions.json | | [restorePointsDeleteSample.js][restorepointsdeletesample] | The operation to delete the restore point. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/restorePointExamples/RestorePoint_Delete_MaximumSet_Gen.json | | [restorePointsGetSample.js][restorepointsgetsample] | The operation to get the restore point. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/restorePointExamples/RestorePoint_Get.json | -| [sharedGalleriesGetSample.js][sharedgalleriesgetsample] | Get a shared gallery by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGallery_Get.json | -| [sharedGalleriesListSample.js][sharedgallerieslistsample] | List shared galleries by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGallery_List.json | -| [sharedGalleryImageVersionsGetSample.js][sharedgalleryimageversionsgetsample] | Get a shared gallery image version by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json | -| [sharedGalleryImageVersionsListSample.js][sharedgalleryimageversionslistsample] | List shared gallery image versions by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json | -| [sharedGalleryImagesGetSample.js][sharedgalleryimagesgetsample] | Get a shared gallery image by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json | -| [sharedGalleryImagesListSample.js][sharedgalleryimageslistsample] | List shared gallery images by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json | +| [sharedGalleriesGetSample.js][sharedgalleriesgetsample] | Get a shared gallery by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_Get.json | +| [sharedGalleriesListSample.js][sharedgallerieslistsample] | List shared galleries by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_List.json | +| [sharedGalleryImageVersionsGetSample.js][sharedgalleryimageversionsgetsample] | Get a shared gallery image version by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json | +| [sharedGalleryImageVersionsListSample.js][sharedgalleryimageversionslistsample] | List shared gallery image versions by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json | +| [sharedGalleryImagesGetSample.js][sharedgalleryimagesgetsample] | Get a shared gallery image by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json | +| [sharedGalleryImagesListSample.js][sharedgalleryimageslistsample] | List shared gallery images by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json | | [snapshotsCreateOrUpdateSample.js][snapshotscreateorupdatesample] | Creates or updates a snapshot. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2023-10-02/examples/snapshotExamples/Snapshot_Create_ByImportingAnUnmanagedBlobFromADifferentSubscription.json | | [snapshotsDeleteSample.js][snapshotsdeletesample] | Deletes a snapshot. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2023-10-02/examples/snapshotExamples/Snapshot_Delete.json | | [snapshotsGetSample.js][snapshotsgetsample] | Gets information about a snapshot. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2023-10-02/examples/snapshotExamples/Snapshot_Get.json | diff --git a/sdk/compute/arm-compute/samples/v21/javascript/communityGalleriesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleriesGetSample.js index 128441bf9a9d..576e174e415a 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/communityGalleriesGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleriesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a community gallery by gallery public name. * * @summary Get a community gallery by gallery public name. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGallery_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGallery_Get.json */ async function getACommunityGallery() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImageVersionsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImageVersionsGetSample.js index f13a81de20c2..049f4b55999e 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImageVersionsGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImageVersionsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a community gallery image version. * * @summary Get a community gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json */ async function getACommunityGalleryImageVersion() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImageVersionsListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImageVersionsListSample.js index 445c0dcbb619..88e61fcb48fb 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImageVersionsListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImageVersionsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List community gallery image versions inside an image. * * @summary List community gallery image versions inside an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json */ async function listCommunityGalleryImageVersions() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImagesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImagesGetSample.js index cd12a6eb6510..1474b3c62bc0 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImagesGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImagesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a community gallery image. * * @summary Get a community gallery image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json */ async function getACommunityGalleryImage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImagesListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImagesListSample.js index beb50d512d92..ec9ade404036 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImagesListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImagesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List community gallery images inside a gallery. * * @summary List community gallery images inside a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json */ async function listCommunityGalleryImages() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleriesCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleriesCreateOrUpdateSample.js index 2acf21e6aa5d..5776a6b76712 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleriesCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleriesCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update a Shared Image Gallery. * * @summary Create or update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/CommunityGallery_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Create.json */ async function createACommunityGallery() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -49,7 +49,7 @@ async function createACommunityGallery() { * This sample demonstrates how to Create or update a Shared Image Gallery. * * @summary Create or update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Create_WithSharingProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Create_WithSharingProfile.json */ async function createOrUpdateASimpleGalleryWithSharingProfile() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -74,7 +74,7 @@ async function createOrUpdateASimpleGalleryWithSharingProfile() { * This sample demonstrates how to Create or update a Shared Image Gallery. * * @summary Create or update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Create_SoftDeletionEnabled.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Create_SoftDeletionEnabled.json */ async function createOrUpdateASimpleGalleryWithSoftDeletionEnabled() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -99,7 +99,7 @@ async function createOrUpdateASimpleGalleryWithSoftDeletionEnabled() { * This sample demonstrates how to Create or update a Shared Image Gallery. * * @summary Create or update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Create.json */ async function createOrUpdateASimpleGallery() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleriesDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleriesDeleteSample.js index 96f1855d35b1..b6d288221aca 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleriesDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleriesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete a Shared Image Gallery. * * @summary Delete a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Delete.json */ async function deleteAGallery() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleriesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleriesGetSample.js index 96b4e681a8fc..da9baaadf122 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleriesGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleriesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves information about a Shared Image Gallery. * * @summary Retrieves information about a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/CommunityGallery_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Get.json */ async function getACommunityGallery() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -32,7 +32,7 @@ async function getACommunityGallery() { * This sample demonstrates how to Retrieves information about a Shared Image Gallery. * * @summary Retrieves information about a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json */ async function getAGalleryWithExpandSharingProfileGroups() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -50,7 +50,7 @@ async function getAGalleryWithExpandSharingProfileGroups() { * This sample demonstrates how to Retrieves information about a Shared Image Gallery. * * @summary Retrieves information about a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json */ async function getAGalleryWithSelectPermissions() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -68,7 +68,7 @@ async function getAGalleryWithSelectPermissions() { * This sample demonstrates how to Retrieves information about a Shared Image Gallery. * * @summary Retrieves information about a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get.json */ async function getAGallery() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleriesListByResourceGroupSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleriesListByResourceGroupSample.js index 77823b9f5eaf..092d006d047b 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleriesListByResourceGroupSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleriesListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List galleries under a resource group. * * @summary List galleries under a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ListByResourceGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ListByResourceGroup.json */ async function listGalleriesInAResourceGroup() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleriesListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleriesListSample.js index 0777d9ea7b41..95f2f5f50643 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleriesListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleriesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List galleries under a subscription. * * @summary List galleries under a subscription. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ListBySubscription.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ListBySubscription.json */ async function listGalleriesInASubscription() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleriesUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleriesUpdateSample.js index b9771c8d3bda..79d776874161 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleriesUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleriesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update a Shared Image Gallery. * * @summary Update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Update.json */ async function updateASimpleGallery() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsCreateOrUpdateSample.js index dfe20196931d..ee8661f0a50d 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update a gallery Application Version. * * @summary Create or update a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Create.json */ async function createOrUpdateASimpleGalleryApplicationVersion() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsDeleteSample.js index 9132cd50e369..45e1d3cf8802 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete a gallery Application Version. * * @summary Delete a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json */ async function deleteAGalleryApplicationVersion() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsGetSample.js index 8002a5564205..930a7224f651 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves information about a gallery Application Version. * * @summary Retrieves information about a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json */ async function getAGalleryApplicationVersionWithReplicationStatus() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -42,7 +42,7 @@ async function getAGalleryApplicationVersionWithReplicationStatus() { * This sample demonstrates how to Retrieves information about a gallery Application Version. * * @summary Retrieves information about a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get.json */ async function getAGalleryApplicationVersion() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsListByGalleryApplicationSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsListByGalleryApplicationSample.js index 6d7356470e75..84ce819ed0c8 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsListByGalleryApplicationSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsListByGalleryApplicationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List gallery Application Versions in a gallery Application Definition. * * @summary List gallery Application Versions in a gallery Application Definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json */ async function listGalleryApplicationVersionsInAGalleryApplicationDefinition() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsUpdateSample.js index 5433217a30e7..2875bdfa30b4 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update a gallery Application Version. * * @summary Update a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Update.json */ async function updateASimpleGalleryApplicationVersion() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsCreateOrUpdateSample.js index 613ddfbcfdb0..132b3db0ed0c 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update a gallery Application Definition. * * @summary Create or update a gallery Application Definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Create.json */ async function createOrUpdateASimpleGalleryApplication() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsDeleteSample.js index ff836f726cad..85a99ae3cfb6 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete a gallery Application. * * @summary Delete a gallery Application. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Delete.json */ async function deleteAGalleryApplication() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsGetSample.js index 5e52d5d7fe40..321252a17c5d 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves information about a gallery Application Definition. * * @summary Retrieves information about a gallery Application Definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Get.json */ async function getAGalleryApplication() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsListByGallerySample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsListByGallerySample.js index d019e69395f4..0552712677b7 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsListByGallerySample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsListByGallerySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List gallery Application Definitions in a gallery. * * @summary List gallery Application Definitions in a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_ListByGallery.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_ListByGallery.json */ async function listGalleryApplicationsInAGallery() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsUpdateSample.js index 08c67d6cb5eb..a37d89455723 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update a gallery Application Definition. * * @summary Update a gallery Application Definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Update.json */ async function updateASimpleGalleryApplication() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsCreateOrUpdateSample.js index bf90abbadf99..3bd8b3a77d51 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -80,7 +80,8 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}", + virtualMachineId: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}", }, }, }; @@ -100,7 +101,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithCommunityImageVersionAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithCommunityImageVersionAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImageAsSource() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -185,7 +186,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImag * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create.json */ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -269,7 +270,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapshotsAsASource() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -355,7 +356,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapsho * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithShallowReplicationMode.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithShallowReplicationMode.json */ async function createOrUpdateASimpleGalleryImageVersionUsingShallowReplicationMode() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -392,7 +393,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingShallowReplicationMo * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithImageVersionAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithImageVersionAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -476,7 +477,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource( * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -562,7 +563,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD_UefiSettings.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD_UefiSettings.json */ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCustomUefiKeys() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -649,7 +650,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCust * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD.json */ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -726,7 +727,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithTargetExtendedLocations.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithTargetExtendedLocations.json */ async function createOrUpdateASimpleGalleryImageVersionWithTargetExtendedLocationsSpecified() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsDeleteSample.js index 014a291e3650..14d14ddc7a55 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete a gallery image version. * * @summary Delete a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Delete.json */ async function deleteAGalleryImageVersion() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsGetSample.js index 36a224bfc9d3..b72b3b9b13c4 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves information about a gallery image version. * * @summary Retrieves information about a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json */ async function getAGalleryImageVersionWithReplicationStatus() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -42,7 +42,7 @@ async function getAGalleryImageVersionWithReplicationStatus() { * This sample demonstrates how to Retrieves information about a gallery image version. * * @summary Retrieves information about a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json */ async function getAGalleryImageVersionWithSnapshotsAsASource() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -65,7 +65,7 @@ async function getAGalleryImageVersionWithSnapshotsAsASource() { * This sample demonstrates how to Retrieves information about a gallery image version. * * @summary Retrieves information about a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json */ async function getAGalleryImageVersionWithVhdAsASource() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -88,7 +88,7 @@ async function getAGalleryImageVersionWithVhdAsASource() { * This sample demonstrates how to Retrieves information about a gallery image version. * * @summary Retrieves information about a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get.json */ async function getAGalleryImageVersion() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsListByGalleryImageSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsListByGalleryImageSample.js index 7cba4dd17e82..03240bb7c85b 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsListByGalleryImageSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsListByGalleryImageSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List gallery image versions in a gallery image definition. * * @summary List gallery image versions in a gallery image definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json */ async function listGalleryImageVersionsInAGalleryImageDefinition() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsUpdateSample.js index 9606797140d9..375c73f014e2 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update a gallery image version. * * @summary Update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Update.json */ async function updateASimpleGalleryImageVersionManagedImageAsSource() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -57,7 +57,7 @@ async function updateASimpleGalleryImageVersionManagedImageAsSource() { * This sample demonstrates how to Update a gallery image version. * * @summary Update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Update_WithoutSourceId.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Update_WithoutSourceId.json */ async function updateASimpleGalleryImageVersionWithoutSourceId() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesCreateOrUpdateSample.js index 2ab266ec5f34..0e4d0968697b 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update a gallery image definition. * * @summary Create or update a gallery image definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Create.json */ async function createOrUpdateASimpleGalleryImage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesDeleteSample.js index ffcaf9e59bf4..69dd7371143b 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete a gallery image. * * @summary Delete a gallery image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Delete.json */ async function deleteAGalleryImage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesGetSample.js index 2be71ec8099d..15c3e8c76f0c 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves information about a gallery image definition. * * @summary Retrieves information about a gallery image definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Get.json */ async function getAGalleryImage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesListByGallerySample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesListByGallerySample.js index 63b3eb2d5962..c294af279686 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesListByGallerySample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesListByGallerySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List gallery image definitions in a gallery. * * @summary List gallery image definitions in a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_ListByGallery.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_ListByGallery.json */ async function listGalleryImagesInAGallery() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesUpdateSample.js index c6b54deb3cf4..a2280d7d8786 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update a gallery image definition. * * @summary Update a gallery image definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Update.json */ async function updateASimpleGalleryImage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/gallerySharingProfileUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/gallerySharingProfileUpdateSample.js index 6961b0fa5daa..42629c467466 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/gallerySharingProfileUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/gallerySharingProfileUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update sharing profile of a gallery. * * @summary Update sharing profile of a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_AddToSharingProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_AddToSharingProfile.json */ async function addSharingIdToTheSharingProfileOfAGallery() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -46,7 +46,7 @@ async function addSharingIdToTheSharingProfileOfAGallery() { * This sample demonstrates how to Update sharing profile of a gallery. * * @summary Update sharing profile of a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ResetSharingProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ResetSharingProfile.json */ async function resetSharingProfileOfAGallery() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -67,7 +67,7 @@ async function resetSharingProfileOfAGallery() { * This sample demonstrates how to Update sharing profile of a gallery. * * @summary Update sharing profile of a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_EnableCommunityGallery.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_EnableCommunityGallery.json */ async function shareAGalleryToCommunity() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleriesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleriesGetSample.js index cf4edf7508b5..a61895fd181b 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleriesGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleriesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a shared gallery by subscription id or tenant id. * * @summary Get a shared gallery by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGallery_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_Get.json */ async function getASharedGallery() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleriesListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleriesListSample.js index 8fe8e14b2274..041b9fa6aa3f 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleriesListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleriesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List shared galleries by subscription id or tenant id. * * @summary List shared galleries by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGallery_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_List.json */ async function listSharedGalleries() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImageVersionsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImageVersionsGetSample.js index fb060c163aac..d1a3d9d8e46a 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImageVersionsGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImageVersionsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a shared gallery image version by subscription id or tenant id. * * @summary Get a shared gallery image version by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json */ async function getASharedGalleryImageVersion() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImageVersionsListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImageVersionsListSample.js index 1b9bd2273cea..466de4f23b62 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImageVersionsListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImageVersionsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List shared gallery image versions by subscription id or tenant id. * * @summary List shared gallery image versions by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json */ async function listSharedGalleryImageVersions() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImagesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImagesGetSample.js index 1f517f67e00d..f864f4ed1999 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImagesGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImagesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a shared gallery image by subscription id or tenant id. * * @summary Get a shared gallery image by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json */ async function getASharedGalleryImage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImagesListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImagesListSample.js index 21a369c0518f..97b1c2aabf2b 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImagesListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImagesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List shared gallery images by subscription id or tenant id. * * @summary List shared gallery images by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json */ async function listSharedGalleryImages() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.js index d71e8f70ce9b..883769a1d733 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.js @@ -24,9 +24,7 @@ async function retrieveBootDiagnosticsDataOfAVirtualMachine() { const vmScaleSetName = "myvmScaleSet"; const instanceId = "0"; const sasUriExpirationTimeInMinutes = 60; - const options = { - sasUriExpirationTimeInMinutes, - }; + const options = { sasUriExpirationTimeInMinutes }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSetVMs.retrieveBootDiagnosticsData( diff --git a/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsCreateOrUpdateSample.js index 007b6120d124..66c50b5e8a58 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsCreateOrUpdateSample.js @@ -2772,7 +2772,10 @@ async function createAScaleSetWithTerminateScheduledEventsEnabled() { computerNamePrefix: "{vmss-name}", }, scheduledEventsProfile: { - terminateNotificationProfile: { enable: true, notBeforeTimeout: "PT5M" }, + terminateNotificationProfile: { + enable: true, + notBeforeTimeout: "PT5M", + }, }, storageProfile: { imageReference: { diff --git a/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesUpdateSample.js index 12416309a304..8331ea7c0e43 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesUpdateSample.js @@ -40,7 +40,12 @@ async function updateAVMByDetachingDataDisk() { storageProfile: { dataDisks: [ { createOption: "Empty", diskSizeGB: 1023, lun: 0, toBeDetached: true }, - { createOption: "Empty", diskSizeGB: 1023, lun: 1, toBeDetached: false }, + { + createOption: "Empty", + diskSizeGB: 1023, + lun: 1, + toBeDetached: false, + }, ], imageReference: { offer: "WindowsServer", @@ -100,7 +105,12 @@ async function updateAVMByForceDetachingDataDisk() { lun: 0, toBeDetached: true, }, - { createOption: "Empty", diskSizeGB: 1023, lun: 1, toBeDetached: false }, + { + createOption: "Empty", + diskSizeGB: 1023, + lun: 1, + toBeDetached: false, + }, ], imageReference: { offer: "WindowsServer", diff --git a/sdk/compute/arm-compute/samples/v21/typescript/README.md b/sdk/compute/arm-compute/samples/v21/typescript/README.md index eaaf4458628c..d2dadb2b4bc1 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/README.md +++ b/sdk/compute/arm-compute/samples/v21/typescript/README.md @@ -52,11 +52,11 @@ These sample programs show how to use the TypeScript client libraries for in som | [cloudServicesUpdateDomainListUpdateDomainsSample.ts][cloudservicesupdatedomainlistupdatedomainssample] | Gets a list of all update domains in a cloud service. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/CloudserviceRP/stable/2022-09-04/examples/CloudServiceUpdateDomain_List.json | | [cloudServicesUpdateDomainWalkUpdateDomainSample.ts][cloudservicesupdatedomainwalkupdatedomainsample] | Updates the role instances in the specified update domain. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/CloudserviceRP/stable/2022-09-04/examples/CloudServiceUpdateDomain_Update.json | | [cloudServicesUpdateSample.ts][cloudservicesupdatesample] | Update a cloud service. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/CloudserviceRP/stable/2022-09-04/examples/CloudService_Update_ToIncludeTags.json | -| [communityGalleriesGetSample.ts][communitygalleriesgetsample] | Get a community gallery by gallery public name. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGallery_Get.json | -| [communityGalleryImageVersionsGetSample.ts][communitygalleryimageversionsgetsample] | Get a community gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json | -| [communityGalleryImageVersionsListSample.ts][communitygalleryimageversionslistsample] | List community gallery image versions inside an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json | -| [communityGalleryImagesGetSample.ts][communitygalleryimagesgetsample] | Get a community gallery image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json | -| [communityGalleryImagesListSample.ts][communitygalleryimageslistsample] | List community gallery images inside a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json | +| [communityGalleriesGetSample.ts][communitygalleriesgetsample] | Get a community gallery by gallery public name. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGallery_Get.json | +| [communityGalleryImageVersionsGetSample.ts][communitygalleryimageversionsgetsample] | Get a community gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json | +| [communityGalleryImageVersionsListSample.ts][communitygalleryimageversionslistsample] | List community gallery image versions inside an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json | +| [communityGalleryImagesGetSample.ts][communitygalleryimagesgetsample] | Get a community gallery image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json | +| [communityGalleryImagesListSample.ts][communitygalleryimageslistsample] | List community gallery images inside a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json | | [dedicatedHostGroupsCreateOrUpdateSample.ts][dedicatedhostgroupscreateorupdatesample] | Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596) x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate_WithUltraSSD.json | | [dedicatedHostGroupsDeleteSample.ts][dedicatedhostgroupsdeletesample] | Delete a dedicated host group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/dedicatedHostExamples/DedicatedHostGroup_Delete_MaximumSet_Gen.json | | [dedicatedHostGroupsGetSample.ts][dedicatedhostgroupsgetsample] | Retrieves information about a dedicated host group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/dedicatedHostExamples/DedicatedHostGroup_Get.json | @@ -101,33 +101,33 @@ These sample programs show how to use the TypeScript client libraries for in som | [disksListSample.ts][diskslistsample] | Lists all the disks under a subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2023-10-02/examples/diskExamples/Disk_ListBySubscription.json | | [disksRevokeAccessSample.ts][disksrevokeaccesssample] | Revokes access to a disk. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2023-10-02/examples/diskExamples/Disk_EndGetAccess.json | | [disksUpdateSample.ts][disksupdatesample] | Updates (patches) a disk. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2023-10-02/examples/diskExamples/Disk_CreateOrUpdate_BurstingEnabled.json | -| [galleriesCreateOrUpdateSample.ts][galleriescreateorupdatesample] | Create or update a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/CommunityGallery_Create.json | -| [galleriesDeleteSample.ts][galleriesdeletesample] | Delete a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Delete.json | -| [galleriesGetSample.ts][galleriesgetsample] | Retrieves information about a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/CommunityGallery_Get.json | -| [galleriesListByResourceGroupSample.ts][gallerieslistbyresourcegroupsample] | List galleries under a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ListByResourceGroup.json | -| [galleriesListSample.ts][gallerieslistsample] | List galleries under a subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ListBySubscription.json | -| [galleriesUpdateSample.ts][galleriesupdatesample] | Update a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Update.json | -| [galleryApplicationVersionsCreateOrUpdateSample.ts][galleryapplicationversionscreateorupdatesample] | Create or update a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Create.json | -| [galleryApplicationVersionsDeleteSample.ts][galleryapplicationversionsdeletesample] | Delete a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json | -| [galleryApplicationVersionsGetSample.ts][galleryapplicationversionsgetsample] | Retrieves information about a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json | -| [galleryApplicationVersionsListByGalleryApplicationSample.ts][galleryapplicationversionslistbygalleryapplicationsample] | List gallery Application Versions in a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json | -| [galleryApplicationVersionsUpdateSample.ts][galleryapplicationversionsupdatesample] | Update a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Update.json | -| [galleryApplicationsCreateOrUpdateSample.ts][galleryapplicationscreateorupdatesample] | Create or update a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Create.json | -| [galleryApplicationsDeleteSample.ts][galleryapplicationsdeletesample] | Delete a gallery Application. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Delete.json | -| [galleryApplicationsGetSample.ts][galleryapplicationsgetsample] | Retrieves information about a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Get.json | -| [galleryApplicationsListByGallerySample.ts][galleryapplicationslistbygallerysample] | List gallery Application Definitions in a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_ListByGallery.json | -| [galleryApplicationsUpdateSample.ts][galleryapplicationsupdatesample] | Update a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Update.json | -| [galleryImageVersionsCreateOrUpdateSample.ts][galleryimageversionscreateorupdatesample] | Create or update a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json | -| [galleryImageVersionsDeleteSample.ts][galleryimageversionsdeletesample] | Delete a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Delete.json | -| [galleryImageVersionsGetSample.ts][galleryimageversionsgetsample] | Retrieves information about a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json | -| [galleryImageVersionsListByGalleryImageSample.ts][galleryimageversionslistbygalleryimagesample] | List gallery image versions in a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json | -| [galleryImageVersionsUpdateSample.ts][galleryimageversionsupdatesample] | Update a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Update.json | -| [galleryImagesCreateOrUpdateSample.ts][galleryimagescreateorupdatesample] | Create or update a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Create.json | -| [galleryImagesDeleteSample.ts][galleryimagesdeletesample] | Delete a gallery image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Delete.json | -| [galleryImagesGetSample.ts][galleryimagesgetsample] | Retrieves information about a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Get.json | -| [galleryImagesListByGallerySample.ts][galleryimageslistbygallerysample] | List gallery image definitions in a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_ListByGallery.json | -| [galleryImagesUpdateSample.ts][galleryimagesupdatesample] | Update a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Update.json | -| [gallerySharingProfileUpdateSample.ts][gallerysharingprofileupdatesample] | Update sharing profile of a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_AddToSharingProfile.json | +| [galleriesCreateOrUpdateSample.ts][galleriescreateorupdatesample] | Create or update a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Create.json | +| [galleriesDeleteSample.ts][galleriesdeletesample] | Delete a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Delete.json | +| [galleriesGetSample.ts][galleriesgetsample] | Retrieves information about a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Get.json | +| [galleriesListByResourceGroupSample.ts][gallerieslistbyresourcegroupsample] | List galleries under a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ListByResourceGroup.json | +| [galleriesListSample.ts][gallerieslistsample] | List galleries under a subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ListBySubscription.json | +| [galleriesUpdateSample.ts][galleriesupdatesample] | Update a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Update.json | +| [galleryApplicationVersionsCreateOrUpdateSample.ts][galleryapplicationversionscreateorupdatesample] | Create or update a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Create.json | +| [galleryApplicationVersionsDeleteSample.ts][galleryapplicationversionsdeletesample] | Delete a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json | +| [galleryApplicationVersionsGetSample.ts][galleryapplicationversionsgetsample] | Retrieves information about a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json | +| [galleryApplicationVersionsListByGalleryApplicationSample.ts][galleryapplicationversionslistbygalleryapplicationsample] | List gallery Application Versions in a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json | +| [galleryApplicationVersionsUpdateSample.ts][galleryapplicationversionsupdatesample] | Update a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Update.json | +| [galleryApplicationsCreateOrUpdateSample.ts][galleryapplicationscreateorupdatesample] | Create or update a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Create.json | +| [galleryApplicationsDeleteSample.ts][galleryapplicationsdeletesample] | Delete a gallery Application. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Delete.json | +| [galleryApplicationsGetSample.ts][galleryapplicationsgetsample] | Retrieves information about a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Get.json | +| [galleryApplicationsListByGallerySample.ts][galleryapplicationslistbygallerysample] | List gallery Application Definitions in a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_ListByGallery.json | +| [galleryApplicationsUpdateSample.ts][galleryapplicationsupdatesample] | Update a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Update.json | +| [galleryImageVersionsCreateOrUpdateSample.ts][galleryimageversionscreateorupdatesample] | Create or update a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json | +| [galleryImageVersionsDeleteSample.ts][galleryimageversionsdeletesample] | Delete a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Delete.json | +| [galleryImageVersionsGetSample.ts][galleryimageversionsgetsample] | Retrieves information about a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json | +| [galleryImageVersionsListByGalleryImageSample.ts][galleryimageversionslistbygalleryimagesample] | List gallery image versions in a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json | +| [galleryImageVersionsUpdateSample.ts][galleryimageversionsupdatesample] | Update a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Update.json | +| [galleryImagesCreateOrUpdateSample.ts][galleryimagescreateorupdatesample] | Create or update a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Create.json | +| [galleryImagesDeleteSample.ts][galleryimagesdeletesample] | Delete a gallery image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Delete.json | +| [galleryImagesGetSample.ts][galleryimagesgetsample] | Retrieves information about a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Get.json | +| [galleryImagesListByGallerySample.ts][galleryimageslistbygallerysample] | List gallery image definitions in a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_ListByGallery.json | +| [galleryImagesUpdateSample.ts][galleryimagesupdatesample] | Update a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Update.json | +| [gallerySharingProfileUpdateSample.ts][gallerysharingprofileupdatesample] | Update sharing profile of a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_AddToSharingProfile.json | | [imagesCreateOrUpdateSample.ts][imagescreateorupdatesample] | Create or update an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/imageExamples/Image_CreateFromABlobWithDiskEncryptionSet.json | | [imagesDeleteSample.ts][imagesdeletesample] | Deletes an Image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/imageExamples/Images_Delete_MaximumSet_Gen.json | | [imagesGetSample.ts][imagesgetsample] | Gets an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/imageExamples/Image_Get.json | @@ -153,12 +153,12 @@ These sample programs show how to use the TypeScript client libraries for in som | [restorePointsCreateSample.ts][restorepointscreatesample] | The operation to create the restore point. Updating properties of an existing restore point is not allowed x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/restorePointExamples/RestorePoint_Copy_BetweenRegions.json | | [restorePointsDeleteSample.ts][restorepointsdeletesample] | The operation to delete the restore point. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/restorePointExamples/RestorePoint_Delete_MaximumSet_Gen.json | | [restorePointsGetSample.ts][restorepointsgetsample] | The operation to get the restore point. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/restorePointExamples/RestorePoint_Get.json | -| [sharedGalleriesGetSample.ts][sharedgalleriesgetsample] | Get a shared gallery by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGallery_Get.json | -| [sharedGalleriesListSample.ts][sharedgallerieslistsample] | List shared galleries by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGallery_List.json | -| [sharedGalleryImageVersionsGetSample.ts][sharedgalleryimageversionsgetsample] | Get a shared gallery image version by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json | -| [sharedGalleryImageVersionsListSample.ts][sharedgalleryimageversionslistsample] | List shared gallery image versions by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json | -| [sharedGalleryImagesGetSample.ts][sharedgalleryimagesgetsample] | Get a shared gallery image by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json | -| [sharedGalleryImagesListSample.ts][sharedgalleryimageslistsample] | List shared gallery images by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json | +| [sharedGalleriesGetSample.ts][sharedgalleriesgetsample] | Get a shared gallery by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_Get.json | +| [sharedGalleriesListSample.ts][sharedgallerieslistsample] | List shared galleries by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_List.json | +| [sharedGalleryImageVersionsGetSample.ts][sharedgalleryimageversionsgetsample] | Get a shared gallery image version by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json | +| [sharedGalleryImageVersionsListSample.ts][sharedgalleryimageversionslistsample] | List shared gallery image versions by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json | +| [sharedGalleryImagesGetSample.ts][sharedgalleryimagesgetsample] | Get a shared gallery image by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json | +| [sharedGalleryImagesListSample.ts][sharedgalleryimageslistsample] | List shared gallery images by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json | | [snapshotsCreateOrUpdateSample.ts][snapshotscreateorupdatesample] | Creates or updates a snapshot. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2023-10-02/examples/snapshotExamples/Snapshot_Create_ByImportingAnUnmanagedBlobFromADifferentSubscription.json | | [snapshotsDeleteSample.ts][snapshotsdeletesample] | Deletes a snapshot. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2023-10-02/examples/snapshotExamples/Snapshot_Delete.json | | [snapshotsGetSample.ts][snapshotsgetsample] | Gets information about a snapshot. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2023-10-02/examples/snapshotExamples/Snapshot_Get.json | diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsCreateOrUpdateSample.ts index 4ae9419814a1..81654d45a8dc 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsCreateOrUpdateSample.ts @@ -29,14 +29,14 @@ async function createAnAvailabilitySet() { const parameters: AvailabilitySet = { location: "westus", platformFaultDomainCount: 2, - platformUpdateDomainCount: 20 + platformUpdateDomainCount: 20, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.availabilitySets.createOrUpdate( resourceGroupName, availabilitySetName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsDeleteSample.ts index a5082c67c213..268ebf39c19f 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsDeleteSample.ts @@ -30,7 +30,7 @@ async function availabilitySetDeleteMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.availabilitySets.delete( resourceGroupName, - availabilitySetName + availabilitySetName, ); console.log(result); } @@ -51,7 +51,7 @@ async function availabilitySetDeleteMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.availabilitySets.delete( resourceGroupName, - availabilitySetName + availabilitySetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsGetSample.ts index 3e0b4504e136..531c122aa26a 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsGetSample.ts @@ -30,7 +30,7 @@ async function availabilitySetGetMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.availabilitySets.get( resourceGroupName, - availabilitySetName + availabilitySetName, ); console.log(result); } @@ -51,7 +51,7 @@ async function availabilitySetGetMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.availabilitySets.get( resourceGroupName, - availabilitySetName + availabilitySetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListAvailableSizesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListAvailableSizesSample.ts index da106655ad9a..4e42e4c546d8 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListAvailableSizesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListAvailableSizesSample.ts @@ -31,7 +31,7 @@ async function availabilitySetListAvailableSizesMaximumSetGen() { const resArray = new Array(); for await (let item of client.availabilitySets.listAvailableSizes( resourceGroupName, - availabilitySetName + availabilitySetName, )) { resArray.push(item); } @@ -55,7 +55,7 @@ async function availabilitySetListAvailableSizesMinimumSetGen() { const resArray = new Array(); for await (let item of client.availabilitySets.listAvailableSizes( resourceGroupName, - availabilitySetName + availabilitySetName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListBySubscriptionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListBySubscriptionSample.ts index 7b05ad01a62b..b16bab0d03fe 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListBySubscriptionSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListBySubscriptionSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { AvailabilitySetsListBySubscriptionOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsUpdateSample.ts index 6f20cb4ba9f0..f5862c24a093 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { AvailabilitySetUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -33,24 +33,22 @@ async function availabilitySetUpdateMaximumSetGen() { platformFaultDomainCount: 2, platformUpdateDomainCount: 20, proximityPlacementGroup: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, sku: { name: "DSv3-Type1", capacity: 7, tier: "aaa" }, tags: { key2574: "aaaaaaaa" }, virtualMachines: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - ] + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.availabilitySets.update( resourceGroupName, availabilitySetName, - parameters + parameters, ); console.log(result); } @@ -73,7 +71,7 @@ async function availabilitySetUpdateMinimumSetGen() { const result = await client.availabilitySets.update( resourceGroupName, availabilitySetName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsCreateOrUpdateSample.ts index ce800888f48f..a670117d5bf8 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationGroup, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,18 +34,18 @@ async function createOrUpdateACapacityReservationGroup() { sharingProfile: { subscriptionIds: [ { id: "/subscriptions/{subscription-id1}" }, - { id: "/subscriptions/{subscription-id2}" } - ] + { id: "/subscriptions/{subscription-id2}" }, + ], }, tags: { department: "finance" }, - zones: ["1", "2"] + zones: ["1", "2"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.capacityReservationGroups.createOrUpdate( resourceGroupName, capacityReservationGroupName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsDeleteSample.ts index c06dd9f67957..94ed277eab18 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsDeleteSample.ts @@ -30,7 +30,7 @@ async function capacityReservationGroupDeleteMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.capacityReservationGroups.delete( resourceGroupName, - capacityReservationGroupName + capacityReservationGroupName, ); console.log(result); } @@ -51,7 +51,7 @@ async function capacityReservationGroupDeleteMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.capacityReservationGroups.delete( resourceGroupName, - capacityReservationGroupName + capacityReservationGroupName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsGetSample.ts index 87ca92a4d6f7..82de4920495b 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationGroupsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function getACapacityReservationGroup() { const result = await client.capacityReservationGroups.get( resourceGroupName, capacityReservationGroupName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsListByResourceGroupSample.ts index b0ab68cbdd2d..0758be0b7724 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsListByResourceGroupSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationGroupsListByResourceGroupOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -30,14 +30,14 @@ async function listCapacityReservationGroupsInResourceGroup() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const expand = "virtualMachines/$ref"; const options: CapacityReservationGroupsListByResourceGroupOptionalParams = { - expand + expand, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.capacityReservationGroups.listByResourceGroup( resourceGroupName, - options + options, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsListBySubscriptionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsListBySubscriptionSample.ts index 0ef8a0773052..212be0c3128c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsListBySubscriptionSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsListBySubscriptionSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationGroupsListBySubscriptionOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -28,13 +28,13 @@ async function listCapacityReservationGroupsInSubscription() { process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const expand = "virtualMachines/$ref"; const options: CapacityReservationGroupsListBySubscriptionOptionalParams = { - expand + expand, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.capacityReservationGroups.listBySubscription( - options + options, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsUpdateSample.ts index 0ac2a9c8fdd7..043cff4b9792 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationGroupUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,14 +31,14 @@ async function capacityReservationGroupUpdateMaximumSetGen() { const capacityReservationGroupName = "aaaaaaaaaaaaaaaaaaaaaa"; const parameters: CapacityReservationGroupUpdate = { instanceView: {}, - tags: { key5355: "aaa" } + tags: { key5355: "aaa" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.capacityReservationGroups.update( resourceGroupName, capacityReservationGroupName, - parameters + parameters, ); console.log(result); } @@ -61,7 +61,7 @@ async function capacityReservationGroupUpdateMinimumSetGen() { const result = await client.capacityReservationGroups.update( resourceGroupName, capacityReservationGroupName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsCreateOrUpdateSample.ts index c476f2944dca..0042121a1a53 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservation, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,7 +34,7 @@ async function createOrUpdateACapacityReservation() { location: "westus", sku: { name: "Standard_DS1_v2", capacity: 4 }, tags: { department: "HR" }, - zones: ["1"] + zones: ["1"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -42,7 +42,7 @@ async function createOrUpdateACapacityReservation() { resourceGroupName, capacityReservationGroupName, capacityReservationName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsDeleteSample.ts index 1bc5d31d8c8e..6230084fece7 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsDeleteSample.ts @@ -32,7 +32,7 @@ async function capacityReservationDeleteMaximumSetGen() { const result = await client.capacityReservations.beginDeleteAndWait( resourceGroupName, capacityReservationGroupName, - capacityReservationName + capacityReservationName, ); console.log(result); } @@ -55,7 +55,7 @@ async function capacityReservationDeleteMinimumSetGen() { const result = await client.capacityReservations.beginDeleteAndWait( resourceGroupName, capacityReservationGroupName, - capacityReservationName + capacityReservationName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsGetSample.ts index 589ef4ac03af..536f3cd53b95 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -38,7 +38,7 @@ async function getACapacityReservation() { resourceGroupName, capacityReservationGroupName, capacityReservationName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsListByCapacityReservationGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsListByCapacityReservationGroupSample.ts index 5daea6cd4226..877a9b20b370 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsListByCapacityReservationGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsListByCapacityReservationGroupSample.ts @@ -31,7 +31,7 @@ async function listCapacityReservationsInReservationGroup() { const resArray = new Array(); for await (let item of client.capacityReservations.listByCapacityReservationGroup( resourceGroupName, - capacityReservationGroupName + capacityReservationGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsUpdateSample.ts index 56553cb737fb..b9ff00f83221 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -38,13 +38,13 @@ async function capacityReservationUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], - utilizationInfo: {} + utilizationInfo: {}, }, sku: { name: "Standard_DS1_v2", capacity: 7, tier: "aaa" }, - tags: { key4974: "aaaaaaaaaaaaaaaa" } + tags: { key4974: "aaaaaaaaaaaaaaaa" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -52,7 +52,7 @@ async function capacityReservationUpdateMaximumSetGen() { resourceGroupName, capacityReservationGroupName, capacityReservationName, - parameters + parameters, ); console.log(result); } @@ -77,7 +77,7 @@ async function capacityReservationUpdateMinimumSetGen() { resourceGroupName, capacityReservationGroupName, capacityReservationName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsGetOSFamilySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsGetOSFamilySample.ts index ab6dc68501b8..a4e18fcff385 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsGetOSFamilySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsGetOSFamilySample.ts @@ -29,7 +29,7 @@ async function getCloudServiceOSFamily() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServiceOperatingSystems.getOSFamily( location, - osFamilyName + osFamilyName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsGetOSVersionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsGetOSVersionSample.ts index 0c7c0bc926e5..274cae0c36c3 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsGetOSVersionSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsGetOSVersionSample.ts @@ -29,7 +29,7 @@ async function getCloudServiceOSVersion() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServiceOperatingSystems.getOSVersion( location, - osVersionName + osVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsListOSFamiliesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsListOSFamiliesSample.ts index 1fee46624d07..9a6714cc6fbc 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsListOSFamiliesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsListOSFamiliesSample.ts @@ -28,7 +28,7 @@ async function listCloudServiceOSFamiliesInASubscription() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.cloudServiceOperatingSystems.listOSFamilies( - location + location, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsListOSVersionsSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsListOSVersionsSample.ts index 895dfd1f6bf0..5df0cbb820ec 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsListOSVersionsSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsListOSVersionsSample.ts @@ -28,7 +28,7 @@ async function listCloudServiceOSVersionsInASubscription() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.cloudServiceOperatingSystems.listOSVersions( - location + location, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesDeleteSample.ts index 5254fe36483a..9856be3c0d30 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteCloudServiceRoleInstance() { const result = await client.cloudServiceRoleInstances.beginDeleteAndWait( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetInstanceViewSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetInstanceViewSample.ts index 3fcbb262bfe9..d85964b931f6 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetInstanceViewSample.ts @@ -32,7 +32,7 @@ async function getInstanceViewOfCloudServiceRoleInstance() { const result = await client.cloudServiceRoleInstances.getInstanceView( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts index 9a38dad49fc4..a5e06d0be6c3 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts @@ -32,7 +32,7 @@ async function getCloudServiceRole() { const result = await client.cloudServiceRoleInstances.getRemoteDesktopFile( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetSample.ts index 4e51d9d34e47..1e7d095773e5 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetSample.ts @@ -32,7 +32,7 @@ async function getCloudServiceRoleInstance() { const result = await client.cloudServiceRoleInstances.get( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesListSample.ts index 282f0e88a897..f32a30568aa6 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesListSample.ts @@ -31,7 +31,7 @@ async function listRoleInstancesInACloudService() { const resArray = new Array(); for await (let item of client.cloudServiceRoleInstances.list( resourceGroupName, - cloudServiceName + cloudServiceName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesRebuildSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesRebuildSample.ts index 4d7a8a253019..60ad73148a9b 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesRebuildSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesRebuildSample.ts @@ -32,7 +32,7 @@ async function rebuildCloudServiceRoleInstance() { const result = await client.cloudServiceRoleInstances.beginRebuildAndWait( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesReimageSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesReimageSample.ts index 93a439d57637..fdd0fdf3d780 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesReimageSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesReimageSample.ts @@ -32,7 +32,7 @@ async function reimageCloudServiceRoleInstance() { const result = await client.cloudServiceRoleInstances.beginReimageAndWait( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesRestartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesRestartSample.ts index f08faf5cb377..98bce6b1552c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesRestartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesRestartSample.ts @@ -32,7 +32,7 @@ async function restartCloudServiceRoleInstance() { const result = await client.cloudServiceRoleInstances.beginRestartAndWait( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRolesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRolesGetSample.ts index 84e8b3456f22..9341d597dffd 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRolesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRolesGetSample.ts @@ -32,7 +32,7 @@ async function getCloudServiceRole() { const result = await client.cloudServiceRoles.get( roleName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRolesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRolesListSample.ts index d9e4e8fc7583..8e83d253d56a 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRolesListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRolesListSample.ts @@ -31,7 +31,7 @@ async function listRolesInACloudService() { const resArray = new Array(); for await (let item of client.cloudServiceRoles.list( resourceGroupName, - cloudServiceName + cloudServiceName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesCreateOrUpdateSample.ts index 3f9342725fa9..dc8b863eabe4 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesCreateOrUpdateSample.ts @@ -11,7 +11,7 @@ import { CloudService, CloudServicesCreateOrUpdateOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -44,31 +44,30 @@ async function createNewCloudServiceWithMultipleRoles() { name: "contosofe", properties: { publicIPAddress: { - id: - "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" - } - } - } - ] - } - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip", + }, + }, + }, + ], + }, + }, + ], }, packageUrl: "{PackageUrl}", roleProfile: { roles: [ { name: "ContosoFrontend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, }, { name: "ContosoBackend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } - } - ] + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, + }, + ], }, - upgradeMode: "Auto" - } + upgradeMode: "Auto", + }, }; const options: CloudServicesCreateOrUpdateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -76,7 +75,7 @@ async function createNewCloudServiceWithMultipleRoles() { const result = await client.cloudServices.beginCreateOrUpdateAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } @@ -107,32 +106,31 @@ async function createNewCloudServiceWithMultipleRolesInASpecificAvailabilityZone name: "contosofe", properties: { publicIPAddress: { - id: - "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" - } - } - } - ] - } - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip", + }, + }, + }, + ], + }, + }, + ], }, packageUrl: "{PackageUrl}", roleProfile: { roles: [ { name: "ContosoFrontend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, }, { name: "ContosoBackend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } - } - ] + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, + }, + ], }, - upgradeMode: "Auto" + upgradeMode: "Auto", }, - zones: ["1"] + zones: ["1"], }; const options: CloudServicesCreateOrUpdateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -140,7 +138,7 @@ async function createNewCloudServiceWithMultipleRolesInASpecificAvailabilityZone const result = await client.cloudServices.beginCreateOrUpdateAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } @@ -171,27 +169,26 @@ async function createNewCloudServiceWithSingleRole() { name: "myfe", properties: { publicIPAddress: { - id: - "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/myPublicIP" - } - } - } - ] - } - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/myPublicIP", + }, + }, + }, + ], + }, + }, + ], }, packageUrl: "{PackageUrl}", roleProfile: { roles: [ { name: "ContosoFrontend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } - } - ] + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, + }, + ], }, - upgradeMode: "Auto" - } + upgradeMode: "Auto", + }, }; const options: CloudServicesCreateOrUpdateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -199,7 +196,7 @@ async function createNewCloudServiceWithSingleRole() { const result = await client.cloudServices.beginCreateOrUpdateAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } @@ -230,43 +227,41 @@ async function createNewCloudServiceWithSingleRoleAndCertificateFromKeyVault() { name: "contosofe", properties: { publicIPAddress: { - id: - "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" - } - } - } - ] - } - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip", + }, + }, + }, + ], + }, + }, + ], }, osProfile: { secrets: [ { sourceVault: { - id: - "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.KeyVault/vaults/{keyvault-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.KeyVault/vaults/{keyvault-name}", }, vaultCertificates: [ { certificateUrl: - "https://{keyvault-name}.vault.azure.net:443/secrets/ContosoCertificate/{secret-id}" - } - ] - } - ] + "https://{keyvault-name}.vault.azure.net:443/secrets/ContosoCertificate/{secret-id}", + }, + ], + }, + ], }, packageUrl: "{PackageUrl}", roleProfile: { roles: [ { name: "ContosoFrontend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } - } - ] + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, + }, + ], }, - upgradeMode: "Auto" - } + upgradeMode: "Auto", + }, }; const options: CloudServicesCreateOrUpdateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -274,7 +269,7 @@ async function createNewCloudServiceWithSingleRoleAndCertificateFromKeyVault() { const result = await client.cloudServices.beginCreateOrUpdateAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } @@ -307,10 +302,10 @@ async function createNewCloudServiceWithSingleRoleAndRdpExtension() { publisher: "Microsoft.Windows.Azure.Extensions", settings: "UserAzure10/22/2021 15:05:45", - typeHandlerVersion: "1.2" - } - } - ] + typeHandlerVersion: "1.2", + }, + }, + ], }, networkProfile: { loadBalancerConfigurations: [ @@ -322,27 +317,26 @@ async function createNewCloudServiceWithSingleRoleAndRdpExtension() { name: "contosofe", properties: { publicIPAddress: { - id: - "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" - } - } - } - ] - } - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip", + }, + }, + }, + ], + }, + }, + ], }, packageUrl: "{PackageUrl}", roleProfile: { roles: [ { name: "ContosoFrontend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } - } - ] + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, + }, + ], }, - upgradeMode: "Auto" - } + upgradeMode: "Auto", + }, }; const options: CloudServicesCreateOrUpdateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -350,7 +344,7 @@ async function createNewCloudServiceWithSingleRoleAndRdpExtension() { const result = await client.cloudServices.beginCreateOrUpdateAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesDeleteInstancesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesDeleteInstancesSample.ts index d42f6ac115bd..87cb1725998e 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesDeleteInstancesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesDeleteInstancesSample.ts @@ -11,7 +11,7 @@ import { RoleInstances, CloudServicesDeleteInstancesOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,7 +31,7 @@ async function deleteCloudServiceRoleInstancesInACloudService() { process.env["COMPUTE_RESOURCE_GROUP"] || "ConstosoRG"; const cloudServiceName = "{cs-name}"; const parameters: RoleInstances = { - roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"] + roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"], }; const options: CloudServicesDeleteInstancesOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -39,7 +39,7 @@ async function deleteCloudServiceRoleInstancesInACloudService() { const result = await client.cloudServices.beginDeleteInstancesAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesDeleteSample.ts index 4f21f5533124..987468b55800 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteCloudService() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServices.beginDeleteAndWait( resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesGetInstanceViewSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesGetInstanceViewSample.ts index 5c647ca833fd..c25984e5b520 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesGetInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesGetInstanceViewSample.ts @@ -30,7 +30,7 @@ async function getCloudServiceInstanceViewWithMultipleRoles() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServices.getInstanceView( resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesGetSample.ts index 03929a56022a..28bfc86b4ad8 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesGetSample.ts @@ -30,7 +30,7 @@ async function getCloudServiceWithMultipleRolesAndRdpExtension() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServices.get( resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesPowerOffSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesPowerOffSample.ts index 212bf61669d3..531159633edb 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesPowerOffSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesPowerOffSample.ts @@ -30,7 +30,7 @@ async function stopOrPowerOffCloudService() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServices.beginPowerOffAndWait( resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesRebuildSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesRebuildSample.ts index a42ce6b3f68b..c359978941b0 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesRebuildSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesRebuildSample.ts @@ -11,7 +11,7 @@ import { RoleInstances, CloudServicesRebuildOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,7 +31,7 @@ async function rebuildCloudServiceRoleInstancesInACloudService() { process.env["COMPUTE_RESOURCE_GROUP"] || "ConstosoRG"; const cloudServiceName = "{cs-name}"; const parameters: RoleInstances = { - roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"] + roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"], }; const options: CloudServicesRebuildOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -39,7 +39,7 @@ async function rebuildCloudServiceRoleInstancesInACloudService() { const result = await client.cloudServices.beginRebuildAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesReimageSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesReimageSample.ts index 7bd3b6c06fce..32cdc98752f6 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesReimageSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesReimageSample.ts @@ -11,7 +11,7 @@ import { RoleInstances, CloudServicesReimageOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,7 +31,7 @@ async function reimageCloudServiceRoleInstancesInACloudService() { process.env["COMPUTE_RESOURCE_GROUP"] || "ConstosoRG"; const cloudServiceName = "{cs-name}"; const parameters: RoleInstances = { - roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"] + roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"], }; const options: CloudServicesReimageOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -39,7 +39,7 @@ async function reimageCloudServiceRoleInstancesInACloudService() { const result = await client.cloudServices.beginReimageAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesRestartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesRestartSample.ts index 55a492e83a08..229f4dfca5f5 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesRestartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesRestartSample.ts @@ -11,7 +11,7 @@ import { RoleInstances, CloudServicesRestartOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,7 +31,7 @@ async function restartCloudServiceRoleInstancesInACloudService() { process.env["COMPUTE_RESOURCE_GROUP"] || "ConstosoRG"; const cloudServiceName = "{cs-name}"; const parameters: RoleInstances = { - roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"] + roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"], }; const options: CloudServicesRestartOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -39,7 +39,7 @@ async function restartCloudServiceRoleInstancesInACloudService() { const result = await client.cloudServices.beginRestartAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesStartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesStartSample.ts index 8b67518cd20b..6716efdc1657 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesStartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesStartSample.ts @@ -30,7 +30,7 @@ async function startCloudService() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServices.beginStartAndWait( resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainGetUpdateDomainSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainGetUpdateDomainSample.ts index 8b316f2ecd07..6e86e73a427f 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainGetUpdateDomainSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainGetUpdateDomainSample.ts @@ -32,7 +32,7 @@ async function getCloudServiceUpdateDomain() { const result = await client.cloudServicesUpdateDomain.getUpdateDomain( resourceGroupName, cloudServiceName, - updateDomain + updateDomain, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainListUpdateDomainsSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainListUpdateDomainsSample.ts index 0efb0d0e7594..3890af6092d2 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainListUpdateDomainsSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainListUpdateDomainsSample.ts @@ -31,7 +31,7 @@ async function listUpdateDomainsInCloudService() { const resArray = new Array(); for await (let item of client.cloudServicesUpdateDomain.listUpdateDomains( resourceGroupName, - cloudServiceName + cloudServiceName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainWalkUpdateDomainSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainWalkUpdateDomainSample.ts index a993941c27ca..4e05cf443dcc 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainWalkUpdateDomainSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainWalkUpdateDomainSample.ts @@ -29,11 +29,12 @@ async function updateCloudServiceToSpecifiedDomain() { const updateDomain = 1; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.cloudServicesUpdateDomain.beginWalkUpdateDomainAndWait( - resourceGroupName, - cloudServiceName, - updateDomain - ); + const result = + await client.cloudServicesUpdateDomain.beginWalkUpdateDomainAndWait( + resourceGroupName, + cloudServiceName, + updateDomain, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateSample.ts index 2070ef181141..4e985a0a2787 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateSample.ts @@ -11,7 +11,7 @@ import { CloudServiceUpdate, CloudServicesUpdateOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -37,7 +37,7 @@ async function updateExistingCloudServiceToAddTags() { const result = await client.cloudServices.beginUpdateAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleriesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleriesGetSample.ts index 405aeee67cc7..a32c22450f48 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleriesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleriesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a community gallery by gallery public name. * * @summary Get a community gallery by gallery public name. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGallery_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGallery_Get.json */ async function getACommunityGallery() { const subscriptionId = @@ -29,7 +29,7 @@ async function getACommunityGallery() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.communityGalleries.get( location, - publicGalleryName + publicGalleryName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImageVersionsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImageVersionsGetSample.ts index 5239ca70cf2c..6e1954e2fe7b 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImageVersionsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImageVersionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a community gallery image version. * * @summary Get a community gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json */ async function getACommunityGalleryImageVersion() { const subscriptionId = @@ -33,7 +33,7 @@ async function getACommunityGalleryImageVersion() { location, publicGalleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImageVersionsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImageVersionsListSample.ts index 379ca8f6f582..4124b7701d09 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImageVersionsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImageVersionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List community gallery image versions inside an image. * * @summary List community gallery image versions inside an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json */ async function listCommunityGalleryImageVersions() { const subscriptionId = @@ -32,7 +32,7 @@ async function listCommunityGalleryImageVersions() { for await (let item of client.communityGalleryImageVersions.list( location, publicGalleryName, - galleryImageName + galleryImageName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImagesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImagesGetSample.ts index e06146557f79..ba0705c3f9c6 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImagesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImagesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a community gallery image. * * @summary Get a community gallery image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json */ async function getACommunityGalleryImage() { const subscriptionId = @@ -31,7 +31,7 @@ async function getACommunityGalleryImage() { const result = await client.communityGalleryImages.get( location, publicGalleryName, - galleryImageName + galleryImageName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImagesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImagesListSample.ts index fa6a13caf8ff..32c46a871abc 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImagesListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImagesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List community gallery images inside a gallery. * * @summary List community gallery images inside a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json */ async function listCommunityGalleryImages() { const subscriptionId = @@ -30,7 +30,7 @@ async function listCommunityGalleryImages() { const resArray = new Array(); for await (let item of client.communityGalleryImages.list( location, - publicGalleryName + publicGalleryName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsCreateOrUpdateSample.ts index 22347f828c26..2c665764d3e1 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { DedicatedHostGroup, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -35,14 +35,14 @@ async function createOrUpdateADedicatedHostGroupWithUltraSsdSupport() { platformFaultDomainCount: 3, supportAutomaticPlacement: true, tags: { department: "finance" }, - zones: ["1"] + zones: ["1"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.createOrUpdate( resourceGroupName, hostGroupName, - parameters + parameters, ); console.log(result); } @@ -64,14 +64,14 @@ async function createOrUpdateADedicatedHostGroup() { platformFaultDomainCount: 3, supportAutomaticPlacement: true, tags: { department: "finance" }, - zones: ["1"] + zones: ["1"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.createOrUpdate( resourceGroupName, hostGroupName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsDeleteSample.ts index 48b680165837..fe062cf62652 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsDeleteSample.ts @@ -30,7 +30,7 @@ async function dedicatedHostGroupDeleteMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.delete( resourceGroupName, - hostGroupName + hostGroupName, ); console.log(result); } @@ -51,7 +51,7 @@ async function dedicatedHostGroupDeleteMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.delete( resourceGroupName, - hostGroupName + hostGroupName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsGetSample.ts index 16ffc0907515..24bf0a8be9e0 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsGetSample.ts @@ -30,7 +30,7 @@ async function createADedicatedHostGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.get( resourceGroupName, - hostGroupName + hostGroupName, ); console.log(result); } @@ -51,7 +51,7 @@ async function createAnUltraSsdEnabledDedicatedHostGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.get( resourceGroupName, - hostGroupName + hostGroupName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsListByResourceGroupSample.ts index a07210a086c2..ea613c0ff0ef 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function dedicatedHostGroupListByResourceGroupMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.dedicatedHostGroups.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } @@ -51,7 +51,7 @@ async function dedicatedHostGroupListByResourceGroupMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.dedicatedHostGroups.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsUpdateSample.ts index cdf8f3d01910..82f42f2542cf 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { DedicatedHostGroupUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,7 +34,7 @@ async function dedicatedHostGroupUpdateMaximumSetGen() { hosts: [ { availableCapacity: { - allocatableVMs: [{ count: 26, vmSize: "aaaaaaaaaaaaaaaaaaaa" }] + allocatableVMs: [{ count: 26, vmSize: "aaaaaaaaaaaaaaaaaaaa" }], }, statuses: [ { @@ -42,23 +42,23 @@ async function dedicatedHostGroupUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } - ] - } - ] + time: new Date("2021-11-30T12:58:26.522Z"), + }, + ], + }, + ], }, platformFaultDomainCount: 3, supportAutomaticPlacement: true, tags: { key9921: "aaaaaaaaaa" }, - zones: ["aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"] + zones: ["aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.update( resourceGroupName, hostGroupName, - parameters + parameters, ); console.log(result); } @@ -81,7 +81,7 @@ async function dedicatedHostGroupUpdateMinimumSetGen() { const result = await client.dedicatedHostGroups.update( resourceGroupName, hostGroupName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsCreateOrUpdateSample.ts index fc072f5560dc..dddc5c1d4b97 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsCreateOrUpdateSample.ts @@ -31,7 +31,7 @@ async function createOrUpdateADedicatedHost() { location: "westus", platformFaultDomain: 1, sku: { name: "DSv3-Type1" }, - tags: { department: "HR" } + tags: { department: "HR" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function createOrUpdateADedicatedHost() { resourceGroupName, hostGroupName, hostName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsDeleteSample.ts index c4502053da6b..b08765836393 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsDeleteSample.ts @@ -32,7 +32,7 @@ async function dedicatedHostDeleteMaximumSetGen() { const result = await client.dedicatedHosts.beginDeleteAndWait( resourceGroupName, hostGroupName, - hostName + hostName, ); console.log(result); } @@ -55,7 +55,7 @@ async function dedicatedHostDeleteMinimumSetGen() { const result = await client.dedicatedHosts.beginDeleteAndWait( resourceGroupName, hostGroupName, - hostName + hostName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsGetSample.ts index 6d4a1d4588e5..ca1d89b28ddd 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { DedicatedHostsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -38,7 +38,7 @@ async function getADedicatedHost() { resourceGroupName, hostGroupName, hostName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListAvailableSizesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListAvailableSizesSample.ts index f2bab8437922..ec96aa782a5d 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListAvailableSizesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListAvailableSizesSample.ts @@ -33,7 +33,7 @@ async function getAvailableDedicatedHostSizes() { for await (let item of client.dedicatedHosts.listAvailableSizes( resourceGroupName, hostGroupName, - hostName + hostName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListByHostGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListByHostGroupSample.ts index 16bde93349a7..39dc4beeb9ea 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListByHostGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListByHostGroupSample.ts @@ -31,7 +31,7 @@ async function dedicatedHostListByHostGroupMaximumSetGen() { const resArray = new Array(); for await (let item of client.dedicatedHosts.listByHostGroup( resourceGroupName, - hostGroupName + hostGroupName, )) { resArray.push(item); } @@ -55,7 +55,7 @@ async function dedicatedHostListByHostGroupMinimumSetGen() { const resArray = new Array(); for await (let item of client.dedicatedHosts.listByHostGroup( resourceGroupName, - hostGroupName + hostGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsRedeploySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsRedeploySample.ts index d004db93fb39..5602d99a584c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsRedeploySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsRedeploySample.ts @@ -32,7 +32,7 @@ async function redeployDedicatedHost() { const result = await client.dedicatedHosts.beginRedeployAndWait( resourceGroupName, hostGroupName, - hostName + hostName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsRestartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsRestartSample.ts index 1a8c32099c90..2c17a6c4bcd3 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsRestartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsRestartSample.ts @@ -32,7 +32,7 @@ async function restartDedicatedHost() { const result = await client.dedicatedHosts.beginRestartAndWait( resourceGroupName, hostGroupName, - hostName + hostName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsUpdateSample.ts index 226ca0f55bd0..8617aaf85e10 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { DedicatedHostUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,7 +34,7 @@ async function dedicatedHostUpdateMaximumSetGen() { autoReplaceOnFailure: true, instanceView: { availableCapacity: { - allocatableVMs: [{ count: 26, vmSize: "aaaaaaaaaaaaaaaaaaaa" }] + allocatableVMs: [{ count: 26, vmSize: "aaaaaaaaaaaaaaaaaaaa" }], }, statuses: [ { @@ -42,13 +42,13 @@ async function dedicatedHostUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } - ] + time: new Date("2021-11-30T12:58:26.522Z"), + }, + ], }, licenseType: "Windows_Server_Hybrid", platformFaultDomain: 1, - tags: { key8813: "aaaaaaaaaaaaaaaaaaaaaaaaaaa" } + tags: { key8813: "aaaaaaaaaaaaaaaaaaaaaaaaaaa" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -56,7 +56,7 @@ async function dedicatedHostUpdateMaximumSetGen() { resourceGroupName, hostGroupName, hostName, - parameters + parameters, ); console.log(result); } @@ -81,7 +81,7 @@ async function dedicatedHostUpdateMinimumSetGen() { resourceGroupName, hostGroupName, hostName, - parameters + parameters, ); console.log(result); } @@ -106,7 +106,7 @@ async function dedicatedHostUpdateResize() { resourceGroupName, hostGroupName, hostName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesCreateOrUpdateSample.ts index 133f0909a9bc..30308cd7ef42 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesCreateOrUpdateSample.ts @@ -32,7 +32,7 @@ async function createADiskAccessResource() { const result = await client.diskAccesses.beginCreateOrUpdateAndWait( resourceGroupName, diskAccessName, - diskAccess + diskAccess, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesDeleteAPrivateEndpointConnectionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesDeleteAPrivateEndpointConnectionSample.ts index 729ac386eb42..053484f4236e 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesDeleteAPrivateEndpointConnectionSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesDeleteAPrivateEndpointConnectionSample.ts @@ -29,11 +29,12 @@ async function deleteAPrivateEndpointConnectionUnderADiskAccessResource() { const privateEndpointConnectionName = "myPrivateEndpointConnection"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.diskAccesses.beginDeleteAPrivateEndpointConnectionAndWait( - resourceGroupName, - diskAccessName, - privateEndpointConnectionName - ); + const result = + await client.diskAccesses.beginDeleteAPrivateEndpointConnectionAndWait( + resourceGroupName, + diskAccessName, + privateEndpointConnectionName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesDeleteSample.ts index bd476087eb66..5e288a7afcd8 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteADiskAccessResource() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskAccesses.beginDeleteAndWait( resourceGroupName, - diskAccessName + diskAccessName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetAPrivateEndpointConnectionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetAPrivateEndpointConnectionSample.ts index d0ba69f2b9e9..3b7d5648af0c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetAPrivateEndpointConnectionSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetAPrivateEndpointConnectionSample.ts @@ -32,7 +32,7 @@ async function getInformationAboutAPrivateEndpointConnectionUnderADiskAccessReso const result = await client.diskAccesses.getAPrivateEndpointConnection( resourceGroupName, diskAccessName, - privateEndpointConnectionName + privateEndpointConnectionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetPrivateLinkResourcesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetPrivateLinkResourcesSample.ts index 819678ea8e1d..da1c00a9a93a 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetPrivateLinkResourcesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetPrivateLinkResourcesSample.ts @@ -30,7 +30,7 @@ async function listAllPossiblePrivateLinkResourcesUnderDiskAccessResource() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskAccesses.getPrivateLinkResources( resourceGroupName, - diskAccessName + diskAccessName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetSample.ts index a6fbf25cc18d..b80b4b552ac7 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetSample.ts @@ -30,7 +30,7 @@ async function getInformationAboutADiskAccessResourceWithPrivateEndpoints() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskAccesses.get( resourceGroupName, - diskAccessName + diskAccessName, ); console.log(result); } @@ -51,7 +51,7 @@ async function getInformationAboutADiskAccessResource() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskAccesses.get( resourceGroupName, - diskAccessName + diskAccessName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListByResourceGroupSample.ts index ec7b36c9a4b0..f57887bab2da 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function listAllDiskAccessResourcesInAResourceGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.diskAccesses.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListPrivateEndpointConnectionsSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListPrivateEndpointConnectionsSample.ts index 618778ad6bf6..7b2e7144a05d 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListPrivateEndpointConnectionsSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListPrivateEndpointConnectionsSample.ts @@ -31,7 +31,7 @@ async function getInformationAboutAPrivateEndpointConnectionUnderADiskAccessReso const resArray = new Array(); for await (let item of client.diskAccesses.listPrivateEndpointConnections( resourceGroupName, - diskAccessName + diskAccessName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesUpdateAPrivateEndpointConnectionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesUpdateAPrivateEndpointConnectionSample.ts index 9e1e3343a462..ad60027840ba 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesUpdateAPrivateEndpointConnectionSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesUpdateAPrivateEndpointConnectionSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { PrivateEndpointConnection, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -33,17 +33,18 @@ async function approveAPrivateEndpointConnectionUnderADiskAccessResource() { const privateEndpointConnection: PrivateEndpointConnection = { privateLinkServiceConnectionState: { description: "Approving myPrivateEndpointConnection", - status: "Approved" - } + status: "Approved", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.diskAccesses.beginUpdateAPrivateEndpointConnectionAndWait( - resourceGroupName, - diskAccessName, - privateEndpointConnectionName, - privateEndpointConnection - ); + const result = + await client.diskAccesses.beginUpdateAPrivateEndpointConnectionAndWait( + resourceGroupName, + diskAccessName, + privateEndpointConnectionName, + privateEndpointConnection, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesUpdateSample.ts index 1c5bb3142bfa..cec7146dff6f 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesUpdateSample.ts @@ -27,14 +27,14 @@ async function updateADiskAccessResource() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const diskAccessName = "myDiskAccess"; const diskAccess: DiskAccessUpdate = { - tags: { department: "Development", project: "PrivateEndpoints" } + tags: { department: "Development", project: "PrivateEndpoints" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskAccesses.beginUpdateAndWait( resourceGroupName, diskAccessName, - diskAccess + diskAccess, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsCreateOrUpdateSample.ts index 7ecc7f898a30..4ba534ae7896 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsCreateOrUpdateSample.ts @@ -28,18 +28,18 @@ async function createADiskEncryptionSetWithKeyVaultFromADifferentSubscription() const diskEncryptionSetName = "myDiskEncryptionSet"; const diskEncryptionSet: DiskEncryptionSet = { activeKey: { - keyUrl: "https://myvaultdifferentsub.vault-int.azure-int.net/keys/{key}" + keyUrl: "https://myvaultdifferentsub.vault-int.azure-int.net/keys/{key}", }, encryptionType: "EncryptionAtRestWithCustomerKey", identity: { type: "SystemAssigned" }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginCreateOrUpdateAndWait( resourceGroupName, diskEncryptionSetName, - diskEncryptionSet + diskEncryptionSet, ); console.log(result); } @@ -59,24 +59,25 @@ async function createADiskEncryptionSetWithKeyVaultFromADifferentTenant() { const diskEncryptionSet: DiskEncryptionSet = { activeKey: { keyUrl: - "https://myvaultdifferenttenant.vault-int.azure-int.net/keys/{key}" + "https://myvaultdifferenttenant.vault-int.azure-int.net/keys/{key}", }, encryptionType: "EncryptionAtRestWithCustomerKey", federatedClientId: "00000000-0000-0000-0000-000000000000", identity: { type: "UserAssigned", userAssignedIdentities: { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MicrosoftManagedIdentity/userAssignedIdentities/{identityName}": {} - } + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MicrosoftManagedIdentity/userAssignedIdentities/{identityName}": + {}, + }, }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginCreateOrUpdateAndWait( resourceGroupName, diskEncryptionSetName, - diskEncryptionSet + diskEncryptionSet, ); console.log(result); } @@ -97,20 +98,19 @@ async function createADiskEncryptionSet() { activeKey: { keyUrl: "https://myvmvault.vault-int.azure-int.net/keys/{key}", sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault", + }, }, encryptionType: "EncryptionAtRestWithCustomerKey", identity: { type: "SystemAssigned" }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginCreateOrUpdateAndWait( resourceGroupName, diskEncryptionSetName, - diskEncryptionSet + diskEncryptionSet, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsDeleteSample.ts index ec4c11b8621e..695a0958275b 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteADiskEncryptionSet() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginDeleteAndWait( resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsGetSample.ts index e72405a2c053..39b842d7e835 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsGetSample.ts @@ -30,7 +30,7 @@ async function getInformationAboutADiskEncryptionSetWhenAutoKeyRotationFailed() const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.get( resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, ); console.log(result); } @@ -51,7 +51,7 @@ async function getInformationAboutADiskEncryptionSet() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.get( resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListAssociatedResourcesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListAssociatedResourcesSample.ts index e2bfd3c32488..2d4bc04c1681 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListAssociatedResourcesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListAssociatedResourcesSample.ts @@ -31,7 +31,7 @@ async function listAllResourcesThatAreEncryptedWithThisDiskEncryptionSet() { const resArray = new Array(); for await (let item of client.diskEncryptionSets.listAssociatedResources( resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListByResourceGroupSample.ts index af7e304aa243..d6495c7875b3 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function listAllDiskEncryptionSetsInAResourceGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.diskEncryptionSets.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsUpdateSample.ts index c98e27f0b93e..bfa64e97e97e 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { DiskEncryptionSetUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,18 +32,18 @@ async function updateADiskEncryptionSetWithRotationToLatestKeyVersionEnabledSetT const diskEncryptionSet: DiskEncryptionSetUpdate = { activeKey: { keyUrl: - "https://myvaultdifferentsub.vault-int.azure-int.net/keys/keyName/keyVersion1" + "https://myvaultdifferentsub.vault-int.azure-int.net/keys/keyName/keyVersion1", }, encryptionType: "EncryptionAtRestWithCustomerKey", identity: { type: "SystemAssigned" }, - rotationToLatestKeyVersionEnabled: true + rotationToLatestKeyVersionEnabled: true, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginUpdateAndWait( resourceGroupName, diskEncryptionSetName, - diskEncryptionSet + diskEncryptionSet, ); console.log(result); } @@ -63,18 +63,18 @@ async function updateADiskEncryptionSetWithRotationToLatestKeyVersionEnabledSetT const diskEncryptionSet: DiskEncryptionSetUpdate = { activeKey: { keyUrl: - "https://myvaultdifferentsub.vault-int.azure-int.net/keys/keyName/keyVersion1" + "https://myvaultdifferentsub.vault-int.azure-int.net/keys/keyName/keyVersion1", }, encryptionType: "EncryptionAtRestWithCustomerKey", identity: { type: "SystemAssigned" }, - rotationToLatestKeyVersionEnabled: true + rotationToLatestKeyVersionEnabled: true, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginUpdateAndWait( resourceGroupName, diskEncryptionSetName, - diskEncryptionSet + diskEncryptionSet, ); console.log(result); } @@ -96,19 +96,18 @@ async function updateADiskEncryptionSet() { keyUrl: "https://myvmvault.vault-int.azure-int.net/keys/keyName/keyVersion", sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault", + }, }, encryptionType: "EncryptionAtRestWithCustomerKey", - tags: { department: "Development", project: "Encryption" } + tags: { department: "Development", project: "Encryption" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginUpdateAndWait( resourceGroupName, diskEncryptionSetName, - diskEncryptionSet + diskEncryptionSet, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointGetSample.ts index c9b6cddfd83a..759552ff5d79 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointGetSample.ts @@ -35,7 +35,7 @@ async function getAnIncrementalDiskRestorePointResource() { resourceGroupName, restorePointCollectionName, vmRestorePointName, - diskRestorePointName + diskRestorePointName, ); console.log(result); } @@ -61,7 +61,7 @@ async function getAnIncrementalDiskRestorePointWhenSourceResourceIsFromADifferen resourceGroupName, restorePointCollectionName, vmRestorePointName, - diskRestorePointName + diskRestorePointName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointGrantAccessSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointGrantAccessSample.ts index a1ea3e893723..a3727c1e1a40 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointGrantAccessSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointGrantAccessSample.ts @@ -32,17 +32,18 @@ async function grantsAccessToADiskRestorePoint() { const grantAccessData: GrantAccessData = { access: "Read", durationInSeconds: 300, - fileFormat: "VHDX" + fileFormat: "VHDX", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.diskRestorePointOperations.beginGrantAccessAndWait( - resourceGroupName, - restorePointCollectionName, - vmRestorePointName, - diskRestorePointName, - grantAccessData - ); + const result = + await client.diskRestorePointOperations.beginGrantAccessAndWait( + resourceGroupName, + restorePointCollectionName, + vmRestorePointName, + diskRestorePointName, + grantAccessData, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointListByRestorePointSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointListByRestorePointSample.ts index 0e6c7f6d0b7d..daabb88ee3ab 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointListByRestorePointSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointListByRestorePointSample.ts @@ -33,7 +33,7 @@ async function getAnIncrementalDiskRestorePointResource() { for await (let item of client.diskRestorePointOperations.listByRestorePoint( resourceGroupName, restorePointCollectionName, - vmRestorePointName + vmRestorePointName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointRevokeAccessSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointRevokeAccessSample.ts index 58176b3b1c7f..b3d75eb42fd9 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointRevokeAccessSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointRevokeAccessSample.ts @@ -31,12 +31,13 @@ async function revokesAccessToADiskRestorePoint() { "TestDisk45ceb03433006d1baee0_b70cd924-3362-4a80-93c2-9415eaa12745"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.diskRestorePointOperations.beginRevokeAccessAndWait( - resourceGroupName, - restorePointCollectionName, - vmRestorePointName, - diskRestorePointName - ); + const result = + await client.diskRestorePointOperations.beginRevokeAccessAndWait( + resourceGroupName, + restorePointCollectionName, + vmRestorePointName, + diskRestorePointName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/disksCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/disksCreateOrUpdateSample.ts index 6315c1f4e62b..7353c358b659 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/disksCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/disksCreateOrUpdateSample.ts @@ -30,24 +30,23 @@ async function createAConfidentialVMSupportedDiskEncryptedWithCustomerManagedKey creationData: { createOption: "FromImage", imageReference: { - id: - "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0" - } + id: "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0", + }, }, location: "West US", osType: "Windows", securityProfile: { secureVMDiskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - securityType: "ConfidentialVM_DiskEncryptedWithCustomerKey" - } + securityType: "ConfidentialVM_DiskEncryptedWithCustomerKey", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -70,14 +69,14 @@ async function createAManagedDiskAndAssociateWithDiskAccessResource() { "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/{existing-diskAccess-name}", diskSizeGB: 200, location: "West US", - networkAccessPolicy: "AllowPrivate" + networkAccessPolicy: "AllowPrivate", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -99,16 +98,16 @@ async function createAManagedDiskAndAssociateWithDiskEncryptionSet() { diskSizeGB: 200, encryption: { diskEncryptionSetId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -129,16 +128,16 @@ async function createAManagedDiskByCopyingASnapshot() { creationData: { createOption: "Copy", sourceResourceId: - "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" + "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -161,16 +160,16 @@ async function createAManagedDiskByImportingAnUnmanagedBlobFromADifferentSubscri sourceUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", storageAccountId: - "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount" + "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -191,16 +190,16 @@ async function createAManagedDiskByImportingAnUnmanagedBlobFromTheSameSubscripti creationData: { createOption: "Import", sourceUri: - "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" + "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -225,20 +224,20 @@ async function createAManagedDiskFromImportSecureCreateOption() { sourceUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", storageAccountId: - "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount" + "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", }, location: "West US", osType: "Windows", securityProfile: { - securityType: "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey" - } + securityType: "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -258,18 +257,18 @@ async function createAManagedDiskFromUploadPreparedSecureCreateOption() { const disk: Disk = { creationData: { createOption: "UploadPreparedSecure", - uploadSizeBytes: 10737418752 + uploadSizeBytes: 10737418752, }, location: "West US", osType: "Windows", - securityProfile: { securityType: "TrustedLaunch" } + securityProfile: { securityType: "TrustedLaunch" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -290,19 +289,18 @@ async function createAManagedDiskFromAPlatformImage() { creationData: { createOption: "FromImage", imageReference: { - id: - "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0" - } + id: "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0", + }, }, location: "West US", - osType: "Windows" + osType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -324,18 +322,18 @@ async function createAManagedDiskFromAnAzureComputeGalleryCommunityImage() { createOption: "FromImage", galleryImageReference: { communityGalleryImageId: - "/CommunityGalleries/{communityGalleryPublicGalleryName}/Images/{imageName}/Versions/1.0.0" - } + "/CommunityGalleries/{communityGalleryPublicGalleryName}/Images/{imageName}/Versions/1.0.0", + }, }, location: "West US", - osType: "Windows" + osType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -357,18 +355,18 @@ async function createAManagedDiskFromAnAzureComputeGalleryDirectSharedImage() { createOption: "FromImage", galleryImageReference: { sharedGalleryImageId: - "/SharedGalleries/{sharedGalleryUniqueName}/Images/{imageName}/Versions/1.0.0" - } + "/SharedGalleries/{sharedGalleryUniqueName}/Images/{imageName}/Versions/1.0.0", + }, }, location: "West US", - osType: "Windows" + osType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -389,19 +387,18 @@ async function createAManagedDiskFromAnAzureComputeGalleryImage() { creationData: { createOption: "FromImage", galleryImageReference: { - id: - "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Providers/Microsoft.Compute/Galleries/{galleryName}/Images/{imageName}/Versions/1.0.0" - } + id: "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Providers/Microsoft.Compute/Galleries/{galleryName}/Images/{imageName}/Versions/1.0.0", + }, }, location: "West US", - osType: "Windows" + osType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -422,16 +419,16 @@ async function createAManagedDiskFromAnExistingManagedDiskInTheSameOrDifferentSu creationData: { createOption: "Copy", sourceResourceId: - "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1" + "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -452,16 +449,16 @@ async function createAManagedDiskFromElasticSanVolumeSnapshot() { creationData: { createOption: "CopyFromSanSnapshot", elasticSanResourceId: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot" + "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -482,14 +479,14 @@ async function createAManagedDiskWithDataAccessAuthMode() { creationData: { createOption: "Empty" }, dataAccessAuthMode: "AzureActiveDirectory", diskSizeGB: 200, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -510,14 +507,14 @@ async function createAManagedDiskWithOptimizedForFrequentAttach() { creationData: { createOption: "Empty" }, diskSizeGB: 200, location: "West US", - optimizedForFrequentAttach: true + optimizedForFrequentAttach: true, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -536,14 +533,14 @@ async function createAManagedDiskWithPerformancePlus() { const diskName = "myDisk"; const disk: Disk = { creationData: { createOption: "Upload", performancePlus: true }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -566,14 +563,14 @@ async function createAManagedDiskWithPremiumV2AccountType() { diskMBpsReadWrite: 3000, diskSizeGB: 200, location: "West US", - sku: { name: "PremiumV2_LRS" } + sku: { name: "PremiumV2_LRS" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -594,20 +591,19 @@ async function createAManagedDiskWithSecurityProfile() { creationData: { createOption: "FromImage", imageReference: { - id: - "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}" - } + id: "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}", + }, }, location: "North Central US", osType: "Windows", - securityProfile: { securityType: "TrustedLaunch" } + securityProfile: { securityType: "TrustedLaunch" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -628,14 +624,14 @@ async function createAManagedDiskWithSsdZrsAccountType() { creationData: { createOption: "Empty" }, diskSizeGB: 200, location: "West US", - sku: { name: "Premium_ZRS" } + sku: { name: "Premium_ZRS" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -659,14 +655,14 @@ async function createAManagedDiskWithUltraAccountTypeWithReadOnlyPropertySet() { diskSizeGB: 200, encryption: { type: "EncryptionAtRestWithPlatformKey" }, location: "West US", - sku: { name: "UltraSSD_LRS" } + sku: { name: "UltraSSD_LRS" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -685,14 +681,14 @@ async function createAManagedUploadDisk() { const diskName = "myDisk"; const disk: Disk = { creationData: { createOption: "Upload", uploadSizeBytes: 10737418752 }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -713,14 +709,14 @@ async function createAnEmptyManagedDiskInExtendedLocation() { creationData: { createOption: "Empty" }, diskSizeGB: 200, extendedLocation: { name: "{edge-zone-id}", type: "EdgeZone" }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -740,14 +736,14 @@ async function createAnEmptyManagedDisk() { const disk: Disk = { creationData: { createOption: "Empty" }, diskSizeGB: 200, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -768,14 +764,14 @@ async function createAnUltraManagedDiskWithLogicalSectorSize512E() { creationData: { createOption: "Empty", logicalSectorSize: 512 }, diskSizeGB: 200, location: "West US", - sku: { name: "UltraSSD_LRS" } + sku: { name: "UltraSSD_LRS" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/disksDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/disksDeleteSample.ts index 17fe2a2b2c9b..3ccb80f26724 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/disksDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/disksDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteAManagedDisk() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginDeleteAndWait( resourceGroupName, - diskName + diskName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/disksGrantAccessSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/disksGrantAccessSample.ts index a7b5e03b9669..7c18d5813148 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/disksGrantAccessSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/disksGrantAccessSample.ts @@ -29,14 +29,14 @@ async function getASasOnAManagedDisk() { const grantAccessData: GrantAccessData = { access: "Read", durationInSeconds: 300, - fileFormat: "VHD" + fileFormat: "VHD", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginGrantAccessAndWait( resourceGroupName, diskName, - grantAccessData + grantAccessData, ); console.log(result); } @@ -56,14 +56,14 @@ async function getSasOnManagedDiskAndVMGuestState() { const grantAccessData: GrantAccessData = { access: "Read", durationInSeconds: 300, - getSecureVMGuestStateSAS: true + getSecureVMGuestStateSAS: true, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginGrantAccessAndWait( resourceGroupName, diskName, - grantAccessData + grantAccessData, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/disksRevokeAccessSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/disksRevokeAccessSample.ts index 14a1693d459e..1fea43813b80 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/disksRevokeAccessSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/disksRevokeAccessSample.ts @@ -30,7 +30,7 @@ async function revokeAccessToAManagedDisk() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginRevokeAccessAndWait( resourceGroupName, - diskName + diskName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/disksUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/disksUpdateSample.ts index 198328942304..49d3774d5919 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/disksUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/disksUpdateSample.ts @@ -32,7 +32,7 @@ async function createOrUpdateABurstingEnabledManagedDisk() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -50,14 +50,14 @@ async function updateAManagedDiskToAddAcceleratedNetworking() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const diskName = "myDisk"; const disk: DiskUpdate = { - supportedCapabilities: { acceleratedNetwork: false } + supportedCapabilities: { acceleratedNetwork: false }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -80,7 +80,7 @@ async function updateAManagedDiskToAddArchitecture() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -102,15 +102,15 @@ async function updateAManagedDiskToAddPurchasePlan() { name: "myPurchasePlanName", product: "myPurchasePlanProduct", promotionCode: "myPurchasePlanPromotionCode", - publisher: "myPurchasePlanPublisher" - } + publisher: "myPurchasePlanPublisher", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -133,7 +133,7 @@ async function updateAManagedDiskToAddSupportsHibernation() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -156,7 +156,7 @@ async function updateAManagedDiskToChangeTier() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -179,7 +179,7 @@ async function updateAManagedDiskToDisableBursting() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -202,7 +202,7 @@ async function updateAManagedDiskToDisableOptimizedForFrequentAttach() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -220,14 +220,14 @@ async function updateAManagedDiskWithDiskControllerTypes() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const diskName = "myDisk"; const disk: DiskUpdate = { - supportedCapabilities: { diskControllerTypes: "SCSI" } + supportedCapabilities: { diskControllerTypes: "SCSI" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -250,7 +250,7 @@ async function updateManagedDiskToRemoveDiskAccessResourceAssociation() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesCreateOrUpdateSample.ts index ecefc848e0fe..082790fdaf86 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a Shared Image Gallery. * * @summary Create or update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/CommunityGallery_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Create.json */ async function createACommunityGallery() { const subscriptionId = @@ -34,17 +34,17 @@ async function createACommunityGallery() { eula: "eula", publicNamePrefix: "PirPublic", publisherContact: "pir@microsoft.com", - publisherUri: "uri" + publisherUri: "uri", }, - permissions: "Community" - } + permissions: "Community", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.galleries.beginCreateOrUpdateAndWait( resourceGroupName, galleryName, - gallery + gallery, ); console.log(result); } @@ -53,7 +53,7 @@ async function createACommunityGallery() { * This sample demonstrates how to Create or update a Shared Image Gallery. * * @summary Create or update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Create_WithSharingProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Create_WithSharingProfile.json */ async function createOrUpdateASimpleGalleryWithSharingProfile() { const subscriptionId = @@ -64,14 +64,14 @@ async function createOrUpdateASimpleGalleryWithSharingProfile() { const gallery: Gallery = { description: "This is the gallery description.", location: "West US", - sharingProfile: { permissions: "Groups" } + sharingProfile: { permissions: "Groups" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.galleries.beginCreateOrUpdateAndWait( resourceGroupName, galleryName, - gallery + gallery, ); console.log(result); } @@ -80,7 +80,7 @@ async function createOrUpdateASimpleGalleryWithSharingProfile() { * This sample demonstrates how to Create or update a Shared Image Gallery. * * @summary Create or update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Create_SoftDeletionEnabled.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Create_SoftDeletionEnabled.json */ async function createOrUpdateASimpleGalleryWithSoftDeletionEnabled() { const subscriptionId = @@ -91,14 +91,14 @@ async function createOrUpdateASimpleGalleryWithSoftDeletionEnabled() { const gallery: Gallery = { description: "This is the gallery description.", location: "West US", - softDeletePolicy: { isSoftDeleteEnabled: true } + softDeletePolicy: { isSoftDeleteEnabled: true }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.galleries.beginCreateOrUpdateAndWait( resourceGroupName, galleryName, - gallery + gallery, ); console.log(result); } @@ -107,7 +107,7 @@ async function createOrUpdateASimpleGalleryWithSoftDeletionEnabled() { * This sample demonstrates how to Create or update a Shared Image Gallery. * * @summary Create or update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Create.json */ async function createOrUpdateASimpleGallery() { const subscriptionId = @@ -117,14 +117,14 @@ async function createOrUpdateASimpleGallery() { const galleryName = "myGalleryName"; const gallery: Gallery = { description: "This is the gallery description.", - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.galleries.beginCreateOrUpdateAndWait( resourceGroupName, galleryName, - gallery + gallery, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesDeleteSample.ts index aa2c1968e347..2cdad8d821ab 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a Shared Image Gallery. * * @summary Delete a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Delete.json */ async function deleteAGallery() { const subscriptionId = @@ -30,7 +30,7 @@ async function deleteAGallery() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.galleries.beginDeleteAndWait( resourceGroupName, - galleryName + galleryName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesGetSample.ts index 64f03f905bbe..915d310529d9 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleriesGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a Shared Image Gallery. * * @summary Retrieves information about a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/CommunityGallery_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Get.json */ async function getACommunityGallery() { const subscriptionId = @@ -39,7 +39,7 @@ async function getACommunityGallery() { * This sample demonstrates how to Retrieves information about a Shared Image Gallery. * * @summary Retrieves information about a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json */ async function getAGalleryWithExpandSharingProfileGroups() { const subscriptionId = @@ -54,7 +54,7 @@ async function getAGalleryWithExpandSharingProfileGroups() { const result = await client.galleries.get( resourceGroupName, galleryName, - options + options, ); console.log(result); } @@ -63,7 +63,7 @@ async function getAGalleryWithExpandSharingProfileGroups() { * This sample demonstrates how to Retrieves information about a Shared Image Gallery. * * @summary Retrieves information about a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json */ async function getAGalleryWithSelectPermissions() { const subscriptionId = @@ -78,7 +78,7 @@ async function getAGalleryWithSelectPermissions() { const result = await client.galleries.get( resourceGroupName, galleryName, - options + options, ); console.log(result); } @@ -87,7 +87,7 @@ async function getAGalleryWithSelectPermissions() { * This sample demonstrates how to Retrieves information about a Shared Image Gallery. * * @summary Retrieves information about a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get.json */ async function getAGallery() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesListByResourceGroupSample.ts index 1f566892d9f5..2b167c09f50a 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List galleries under a resource group. * * @summary List galleries under a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ListByResourceGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ListByResourceGroup.json */ async function listGalleriesInAResourceGroup() { const subscriptionId = @@ -29,7 +29,7 @@ async function listGalleriesInAResourceGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.galleries.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesListSample.ts index 8aaa25172f9d..728fa29bba77 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List galleries under a subscription. * * @summary List galleries under a subscription. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ListBySubscription.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ListBySubscription.json */ async function listGalleriesInASubscription() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesUpdateSample.ts index a11068594b2c..1a19b56f7ce2 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Update a Shared Image Gallery. * * @summary Update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Update.json */ async function updateASimpleGallery() { const subscriptionId = @@ -27,14 +27,14 @@ async function updateASimpleGallery() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const galleryName = "myGalleryName"; const gallery: GalleryUpdate = { - description: "This is the gallery description." + description: "This is the gallery description.", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.galleries.beginUpdateAndWait( resourceGroupName, galleryName, - gallery + gallery, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsCreateOrUpdateSample.ts index 86451e0739a1..aaec62cdc642 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryApplicationVersion, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a gallery Application Version. * * @summary Create or update a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Create.json */ async function createOrUpdateASimpleGalleryApplicationVersion() { const subscriptionId = @@ -44,22 +44,22 @@ async function createOrUpdateASimpleGalleryApplicationVersion() { type: "String", description: "This is the description of the parameter", defaultValue: "default value of parameter.", - required: false - } + required: false, + }, ], - script: "myCustomActionScript" - } + script: "myCustomActionScript", + }, ], endOfLifeDate: new Date("2019-07-01T07:00:00Z"), manageActions: { install: 'powershell -command "Expand-Archive -Path package.zip -DestinationPath C:\\package"', - remove: "del C:\\package " + remove: "del C:\\package ", }, replicaCount: 1, source: { mediaLink: - "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}", }, storageAccountType: "Standard_LRS", targetRegions: [ @@ -67,21 +67,22 @@ async function createOrUpdateASimpleGalleryApplicationVersion() { name: "West US", excludeFromLatest: false, regionalReplicaCount: 1, - storageAccountType: "Standard_LRS" - } - ] + storageAccountType: "Standard_LRS", + }, + ], }, - safetyProfile: { allowDeletionOfReplicatedLocations: false } + safetyProfile: { allowDeletionOfReplicatedLocations: false }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.galleryApplicationVersions.beginCreateOrUpdateAndWait( - resourceGroupName, - galleryName, - galleryApplicationName, - galleryApplicationVersionName, - galleryApplicationVersion - ); + const result = + await client.galleryApplicationVersions.beginCreateOrUpdateAndWait( + resourceGroupName, + galleryName, + galleryApplicationName, + galleryApplicationVersionName, + galleryApplicationVersion, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsDeleteSample.ts index 9af5ca0b658c..38f242f79412 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a gallery Application Version. * * @summary Delete a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json */ async function deleteAGalleryApplicationVersion() { const subscriptionId = @@ -34,7 +34,7 @@ async function deleteAGalleryApplicationVersion() { resourceGroupName, galleryName, galleryApplicationName, - galleryApplicationVersionName + galleryApplicationVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsGetSample.ts index 6bc12a16971a..9fe6ca7bd9cb 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryApplicationVersionsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a gallery Application Version. * * @summary Retrieves information about a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json */ async function getAGalleryApplicationVersionWithReplicationStatus() { const subscriptionId = @@ -40,7 +40,7 @@ async function getAGalleryApplicationVersionWithReplicationStatus() { galleryName, galleryApplicationName, galleryApplicationVersionName, - options + options, ); console.log(result); } @@ -49,7 +49,7 @@ async function getAGalleryApplicationVersionWithReplicationStatus() { * This sample demonstrates how to Retrieves information about a gallery Application Version. * * @summary Retrieves information about a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get.json */ async function getAGalleryApplicationVersion() { const subscriptionId = @@ -65,7 +65,7 @@ async function getAGalleryApplicationVersion() { resourceGroupName, galleryName, galleryApplicationName, - galleryApplicationVersionName + galleryApplicationVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsListByGalleryApplicationSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsListByGalleryApplicationSample.ts index 5b5fd0d8371a..55a74ff36b20 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsListByGalleryApplicationSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsListByGalleryApplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List gallery Application Versions in a gallery Application Definition. * * @summary List gallery Application Versions in a gallery Application Definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json */ async function listGalleryApplicationVersionsInAGalleryApplicationDefinition() { const subscriptionId = @@ -33,7 +33,7 @@ async function listGalleryApplicationVersionsInAGalleryApplicationDefinition() { for await (let item of client.galleryApplicationVersions.listByGalleryApplication( resourceGroupName, galleryName, - galleryApplicationName + galleryApplicationName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsUpdateSample.ts index 6387db4be388..3d1ebc4e9c7b 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryApplicationVersionUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update a gallery Application Version. * * @summary Update a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Update.json */ async function updateASimpleGalleryApplicationVersion() { const subscriptionId = @@ -37,12 +37,12 @@ async function updateASimpleGalleryApplicationVersion() { manageActions: { install: 'powershell -command "Expand-Archive -Path package.zip -DestinationPath C:\\package"', - remove: "del C:\\package " + remove: "del C:\\package ", }, replicaCount: 1, source: { mediaLink: - "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}", }, storageAccountType: "Standard_LRS", targetRegions: [ @@ -50,11 +50,11 @@ async function updateASimpleGalleryApplicationVersion() { name: "West US", excludeFromLatest: false, regionalReplicaCount: 1, - storageAccountType: "Standard_LRS" - } - ] + storageAccountType: "Standard_LRS", + }, + ], }, - safetyProfile: { allowDeletionOfReplicatedLocations: false } + safetyProfile: { allowDeletionOfReplicatedLocations: false }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -63,7 +63,7 @@ async function updateASimpleGalleryApplicationVersion() { galleryName, galleryApplicationName, galleryApplicationVersionName, - galleryApplicationVersion + galleryApplicationVersion, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsCreateOrUpdateSample.ts index 7e8bfd3dcb2f..13ec8d872b01 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryApplication, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a gallery Application Definition. * * @summary Create or update a gallery Application Definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Create.json */ async function createOrUpdateASimpleGalleryApplication() { const subscriptionId = @@ -42,17 +42,17 @@ async function createOrUpdateASimpleGalleryApplication() { type: "String", description: "This is the description of the parameter", defaultValue: "default value of parameter.", - required: false - } + required: false, + }, ], - script: "myCustomActionScript" - } + script: "myCustomActionScript", + }, ], eula: "This is the gallery application EULA.", location: "West US", privacyStatementUri: "myPrivacyStatementUri}", releaseNoteUri: "myReleaseNoteUri", - supportedOSType: "Windows" + supportedOSType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -60,7 +60,7 @@ async function createOrUpdateASimpleGalleryApplication() { resourceGroupName, galleryName, galleryApplicationName, - galleryApplication + galleryApplication, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsDeleteSample.ts index 4420b49c2068..dbf8d2a74f6c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a gallery Application. * * @summary Delete a gallery Application. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Delete.json */ async function deleteAGalleryApplication() { const subscriptionId = @@ -32,7 +32,7 @@ async function deleteAGalleryApplication() { const result = await client.galleryApplications.beginDeleteAndWait( resourceGroupName, galleryName, - galleryApplicationName + galleryApplicationName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsGetSample.ts index 8824d03d0d5e..c7241ed0da23 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a gallery Application Definition. * * @summary Retrieves information about a gallery Application Definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Get.json */ async function getAGalleryApplication() { const subscriptionId = @@ -32,7 +32,7 @@ async function getAGalleryApplication() { const result = await client.galleryApplications.get( resourceGroupName, galleryName, - galleryApplicationName + galleryApplicationName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsListByGallerySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsListByGallerySample.ts index f26edc619f0b..b2a567fa665b 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsListByGallerySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsListByGallerySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List gallery Application Definitions in a gallery. * * @summary List gallery Application Definitions in a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_ListByGallery.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_ListByGallery.json */ async function listGalleryApplicationsInAGallery() { const subscriptionId = @@ -31,7 +31,7 @@ async function listGalleryApplicationsInAGallery() { const resArray = new Array(); for await (let item of client.galleryApplications.listByGallery( resourceGroupName, - galleryName + galleryName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsUpdateSample.ts index 9f0354ada9e6..ac9c5128804e 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryApplicationUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update a gallery Application Definition. * * @summary Update a gallery Application Definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Update.json */ async function updateASimpleGalleryApplication() { const subscriptionId = @@ -42,16 +42,16 @@ async function updateASimpleGalleryApplication() { type: "String", description: "This is the description of the parameter", defaultValue: "default value of parameter.", - required: false - } + required: false, + }, ], - script: "myCustomActionScript" - } + script: "myCustomActionScript", + }, ], eula: "This is the gallery application EULA.", privacyStatementUri: "myPrivacyStatementUri}", releaseNoteUri: "myReleaseNoteUri", - supportedOSType: "Windows" + supportedOSType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -59,7 +59,7 @@ async function updateASimpleGalleryApplication() { resourceGroupName, galleryName, galleryApplicationName, - galleryApplication + galleryApplication, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsCreateOrUpdateSample.ts index 34d31259d686..b3a2c2e67c30 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryImageVersion, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { const subscriptionId = @@ -42,21 +42,21 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 2 + regionalReplicaCount: 2, }, { name: "East US", @@ -65,32 +65,32 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}" - } - } + virtualMachineId: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -99,7 +99,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -108,7 +108,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithCommunityImageVersionAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithCommunityImageVersionAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImageAsSource() { const subscriptionId = @@ -129,21 +129,21 @@ async function createOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImag { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", @@ -152,32 +152,32 @@ async function createOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImag { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { communityGalleryImageId: - "/communityGalleries/{communityGalleryName}/images/{communityGalleryImageName}" - } - } + "/communityGalleries/{communityGalleryName}/images/{communityGalleryImageName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -186,7 +186,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImag galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -195,7 +195,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImag * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create.json */ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource() { const subscriptionId = @@ -216,21 +216,21 @@ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", @@ -239,32 +239,31 @@ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -273,7 +272,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -282,7 +281,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapshotsAsASource() { const subscriptionId = @@ -303,16 +302,16 @@ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapsho { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", @@ -321,19 +320,19 @@ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapsho { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { @@ -342,19 +341,17 @@ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapsho hostCaching: "None", lun: 1, source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{dataDiskName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{dataDiskName}", + }, + }, ], osDiskImage: { hostCaching: "ReadOnly", source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}" - } - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -363,7 +360,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapsho galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -372,7 +369,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapsho * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithShallowReplicationMode.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithShallowReplicationMode.json */ async function createOrUpdateASimpleGalleryImageVersionUsingShallowReplicationMode() { const subscriptionId = @@ -387,16 +384,15 @@ async function createOrUpdateASimpleGalleryImageVersionUsingShallowReplicationMo publishingProfile: { replicationMode: "Shallow", targetRegions: [ - { name: "West US", excludeFromLatest: false, regionalReplicaCount: 1 } - ] + { name: "West US", excludeFromLatest: false, regionalReplicaCount: 1 }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -405,7 +401,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingShallowReplicationMo galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -414,7 +410,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingShallowReplicationMo * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithImageVersionAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithImageVersionAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource() { const subscriptionId = @@ -435,21 +431,21 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource( { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", @@ -458,32 +454,31 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource( { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -492,7 +487,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource( galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -501,7 +496,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource( * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() { const subscriptionId = @@ -522,16 +517,16 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", @@ -540,19 +535,19 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { @@ -561,19 +556,17 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() hostCaching: "None", lun: 1, source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{dataDiskName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{dataDiskName}", + }, + }, ], osDiskImage: { hostCaching: "ReadOnly", source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}" - } - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -582,7 +575,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -591,7 +584,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD_UefiSettings.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD_UefiSettings.json */ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCustomUefiKeys() { const subscriptionId = @@ -612,24 +605,24 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCust { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, securityProfile: { @@ -637,10 +630,10 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCust additionalSignatures: { db: [{ type: "x509", value: [""] }], dbx: [{ type: "x509", value: [""] }], - kek: [{ type: "sha256", value: [""] }] + kek: [{ type: "sha256", value: [""] }], }, - signatureTemplateNames: ["MicrosoftUefiCertificateAuthorityTemplate"] - } + signatureTemplateNames: ["MicrosoftUefiCertificateAuthorityTemplate"], + }, }, storageProfile: { dataDiskImages: [ @@ -650,21 +643,19 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCust source: { storageAccountId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}", - uri: - "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd" - } - } + uri: "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd", + }, + }, ], osDiskImage: { hostCaching: "ReadOnly", source: { storageAccountId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}", - uri: - "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd" - } - } - } + uri: "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -673,7 +664,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCust galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -682,7 +673,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCust * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD.json */ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { const subscriptionId = @@ -703,24 +694,24 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { @@ -731,21 +722,19 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { source: { storageAccountId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}", - uri: - "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd" - } - } + uri: "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd", + }, + }, ], osDiskImage: { hostCaching: "ReadOnly", source: { storageAccountId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}", - uri: - "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd" - } - } - } + uri: "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -754,7 +743,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -763,7 +752,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithTargetExtendedLocations.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithTargetExtendedLocations.json */ async function createOrUpdateASimpleGalleryImageVersionWithTargetExtendedLocationsSpecified() { const subscriptionId = @@ -784,21 +773,21 @@ async function createOrUpdateASimpleGalleryImageVersionWithTargetExtendedLocatio { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", @@ -807,32 +796,31 @@ async function createOrUpdateASimpleGalleryImageVersionWithTargetExtendedLocatio { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -841,7 +829,7 @@ async function createOrUpdateASimpleGalleryImageVersionWithTargetExtendedLocatio galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsDeleteSample.ts index b66f4ae64b5b..6a83e09ea49d 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a gallery image version. * * @summary Delete a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Delete.json */ async function deleteAGalleryImageVersion() { const subscriptionId = @@ -34,7 +34,7 @@ async function deleteAGalleryImageVersion() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsGetSample.ts index 604e400364ca..1c7ce8a851d1 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryImageVersionsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a gallery image version. * * @summary Retrieves information about a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json */ async function getAGalleryImageVersionWithReplicationStatus() { const subscriptionId = @@ -40,7 +40,7 @@ async function getAGalleryImageVersionWithReplicationStatus() { galleryName, galleryImageName, galleryImageVersionName, - options + options, ); console.log(result); } @@ -49,7 +49,7 @@ async function getAGalleryImageVersionWithReplicationStatus() { * This sample demonstrates how to Retrieves information about a gallery image version. * * @summary Retrieves information about a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json */ async function getAGalleryImageVersionWithSnapshotsAsASource() { const subscriptionId = @@ -65,7 +65,7 @@ async function getAGalleryImageVersionWithSnapshotsAsASource() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ); console.log(result); } @@ -74,7 +74,7 @@ async function getAGalleryImageVersionWithSnapshotsAsASource() { * This sample demonstrates how to Retrieves information about a gallery image version. * * @summary Retrieves information about a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json */ async function getAGalleryImageVersionWithVhdAsASource() { const subscriptionId = @@ -90,7 +90,7 @@ async function getAGalleryImageVersionWithVhdAsASource() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ); console.log(result); } @@ -99,7 +99,7 @@ async function getAGalleryImageVersionWithVhdAsASource() { * This sample demonstrates how to Retrieves information about a gallery image version. * * @summary Retrieves information about a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get.json */ async function getAGalleryImageVersion() { const subscriptionId = @@ -115,7 +115,7 @@ async function getAGalleryImageVersion() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsListByGalleryImageSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsListByGalleryImageSample.ts index 133f00a3f8c4..c48a9f9f1add 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsListByGalleryImageSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsListByGalleryImageSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List gallery image versions in a gallery image definition. * * @summary List gallery image versions in a gallery image definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json */ async function listGalleryImageVersionsInAGalleryImageDefinition() { const subscriptionId = @@ -33,7 +33,7 @@ async function listGalleryImageVersionsInAGalleryImageDefinition() { for await (let item of client.galleryImageVersions.listByGalleryImage( resourceGroupName, galleryName, - galleryImageName + galleryImageName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsUpdateSample.ts index 426f609b01a4..e0e24976bbc0 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryImageVersionUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update a gallery image version. * * @summary Update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Update.json */ async function updateASimpleGalleryImageVersionManagedImageAsSource() { const subscriptionId = @@ -38,16 +38,15 @@ async function updateASimpleGalleryImageVersionManagedImageAsSource() { { name: "East US", regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, storageProfile: { source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -56,7 +55,7 @@ async function updateASimpleGalleryImageVersionManagedImageAsSource() { galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -65,7 +64,7 @@ async function updateASimpleGalleryImageVersionManagedImageAsSource() { * This sample demonstrates how to Update a gallery image version. * * @summary Update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Update_WithoutSourceId.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Update_WithoutSourceId.json */ async function updateASimpleGalleryImageVersionWithoutSourceId() { const subscriptionId = @@ -82,11 +81,11 @@ async function updateASimpleGalleryImageVersionWithoutSourceId() { { name: "East US", regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, - storageProfile: {} + storageProfile: {}, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -95,7 +94,7 @@ async function updateASimpleGalleryImageVersionWithoutSourceId() { galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesCreateOrUpdateSample.ts index c7b4ea1843e2..0f63a0191f57 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a gallery image definition. * * @summary Create or update a gallery image definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Create.json */ async function createOrUpdateASimpleGalleryImage() { const subscriptionId = @@ -32,11 +32,11 @@ async function createOrUpdateASimpleGalleryImage() { identifier: { offer: "myOfferName", publisher: "myPublisherName", - sku: "mySkuName" + sku: "mySkuName", }, location: "West US", osState: "Generalized", - osType: "Windows" + osType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -44,7 +44,7 @@ async function createOrUpdateASimpleGalleryImage() { resourceGroupName, galleryName, galleryImageName, - galleryImage + galleryImage, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesDeleteSample.ts index 79aeace8fe9f..ef6bc052347f 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a gallery image. * * @summary Delete a gallery image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Delete.json */ async function deleteAGalleryImage() { const subscriptionId = @@ -32,7 +32,7 @@ async function deleteAGalleryImage() { const result = await client.galleryImages.beginDeleteAndWait( resourceGroupName, galleryName, - galleryImageName + galleryImageName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesGetSample.ts index 90da9b06c25d..2d523eaabfe3 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a gallery image definition. * * @summary Retrieves information about a gallery image definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Get.json */ async function getAGalleryImage() { const subscriptionId = @@ -32,7 +32,7 @@ async function getAGalleryImage() { const result = await client.galleryImages.get( resourceGroupName, galleryName, - galleryImageName + galleryImageName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesListByGallerySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesListByGallerySample.ts index c41ab8528af4..211a3cedfc09 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesListByGallerySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesListByGallerySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List gallery image definitions in a gallery. * * @summary List gallery image definitions in a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_ListByGallery.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_ListByGallery.json */ async function listGalleryImagesInAGallery() { const subscriptionId = @@ -31,7 +31,7 @@ async function listGalleryImagesInAGallery() { const resArray = new Array(); for await (let item of client.galleryImages.listByGallery( resourceGroupName, - galleryName + galleryName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesUpdateSample.ts index 8afac6ae429f..caf15968df97 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryImageUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update a gallery image definition. * * @summary Update a gallery image definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Update.json */ async function updateASimpleGalleryImage() { const subscriptionId = @@ -35,10 +35,10 @@ async function updateASimpleGalleryImage() { identifier: { offer: "myOfferName", publisher: "myPublisherName", - sku: "mySkuName" + sku: "mySkuName", }, osState: "Generalized", - osType: "Windows" + osType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -46,7 +46,7 @@ async function updateASimpleGalleryImage() { resourceGroupName, galleryName, galleryImageName, - galleryImage + galleryImage, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/gallerySharingProfileUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/gallerySharingProfileUpdateSample.ts index 7cc06be19cb4..b3cbc70b8ce8 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/gallerySharingProfileUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/gallerySharingProfileUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Update sharing profile of a gallery. * * @summary Update sharing profile of a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_AddToSharingProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_AddToSharingProfile.json */ async function addSharingIdToTheSharingProfileOfAGallery() { const subscriptionId = @@ -32,19 +32,19 @@ async function addSharingIdToTheSharingProfileOfAGallery() { type: "Subscriptions", ids: [ "34a4ab42-0d72-47d9-bd1a-aed207386dac", - "380fd389-260b-41aa-bad9-0a83108c370b" - ] + "380fd389-260b-41aa-bad9-0a83108c370b", + ], }, - { type: "AADTenants", ids: ["c24c76aa-8897-4027-9b03-8f7928b54ff6"] } + { type: "AADTenants", ids: ["c24c76aa-8897-4027-9b03-8f7928b54ff6"] }, ], - operationType: "Add" + operationType: "Add", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.gallerySharingProfile.beginUpdateAndWait( resourceGroupName, galleryName, - sharingUpdate + sharingUpdate, ); console.log(result); } @@ -53,7 +53,7 @@ async function addSharingIdToTheSharingProfileOfAGallery() { * This sample demonstrates how to Update sharing profile of a gallery. * * @summary Update sharing profile of a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ResetSharingProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ResetSharingProfile.json */ async function resetSharingProfileOfAGallery() { const subscriptionId = @@ -67,7 +67,7 @@ async function resetSharingProfileOfAGallery() { const result = await client.gallerySharingProfile.beginUpdateAndWait( resourceGroupName, galleryName, - sharingUpdate + sharingUpdate, ); console.log(result); } @@ -76,7 +76,7 @@ async function resetSharingProfileOfAGallery() { * This sample demonstrates how to Update sharing profile of a gallery. * * @summary Update sharing profile of a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_EnableCommunityGallery.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_EnableCommunityGallery.json */ async function shareAGalleryToCommunity() { const subscriptionId = @@ -90,7 +90,7 @@ async function shareAGalleryToCommunity() { const result = await client.gallerySharingProfile.beginUpdateAndWait( resourceGroupName, galleryName, - sharingUpdate + sharingUpdate, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/imagesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/imagesCreateOrUpdateSample.ts index e1b9822fcdd3..18d2392fcafc 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/imagesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/imagesCreateOrUpdateSample.ts @@ -33,20 +33,19 @@ async function createAVirtualMachineImageFromABlobWithDiskEncryptionSetResource( blobUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, osState: "Generalized", - osType: "Linux" - } - } + osType: "Linux", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -70,17 +69,17 @@ async function createAVirtualMachineImageFromABlob() { blobUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", osState: "Generalized", - osType: "Linux" + osType: "Linux", }, - zoneResilient: true - } + zoneResilient: true, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -102,24 +101,22 @@ async function createAVirtualMachineImageFromAManagedDiskWithDiskEncryptionSetRe storageProfile: { osDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, osState: "Generalized", osType: "Linux", snapshot: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } - } - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -141,21 +138,20 @@ async function createAVirtualMachineImageFromAManagedDisk() { storageProfile: { osDisk: { managedDisk: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk" + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk", }, osState: "Generalized", - osType: "Linux" + osType: "Linux", }, - zoneResilient: true - } + zoneResilient: true, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -177,24 +173,22 @@ async function createAVirtualMachineImageFromASnapshotWithDiskEncryptionSetResou storageProfile: { osDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, managedDisk: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk" + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk", }, osState: "Generalized", - osType: "Linux" - } - } + osType: "Linux", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -218,19 +212,18 @@ async function createAVirtualMachineImageFromASnapshot() { osState: "Generalized", osType: "Linux", snapshot: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, }, - zoneResilient: false - } + zoneResilient: false, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -250,16 +243,15 @@ async function createAVirtualMachineImageFromAnExistingVirtualMachine() { const parameters: Image = { location: "West US", sourceVirtualMachine: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -283,24 +275,24 @@ async function createAVirtualMachineImageThatIncludesADataDiskFromABlob() { { blobUri: "https://mystorageaccount.blob.core.windows.net/dataimages/dataimage.vhd", - lun: 1 - } + lun: 1, + }, ], osDisk: { blobUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", osState: "Generalized", - osType: "Linux" + osType: "Linux", }, - zoneResilient: false - } + zoneResilient: false, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -324,28 +316,26 @@ async function createAVirtualMachineImageThatIncludesADataDiskFromAManagedDisk() { lun: 1, managedDisk: { - id: - "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk2" - } - } + id: "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk2", + }, + }, ], osDisk: { managedDisk: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk" + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk", }, osState: "Generalized", - osType: "Linux" + osType: "Linux", }, - zoneResilient: false - } + zoneResilient: false, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -369,28 +359,26 @@ async function createAVirtualMachineImageThatIncludesADataDiskFromASnapshot() { { lun: 1, snapshot: { - id: - "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2" - } - } + id: "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2", + }, + }, ], osDisk: { osState: "Generalized", osType: "Linux", snapshot: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, }, - zoneResilient: true - } + zoneResilient: true, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/imagesDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/imagesDeleteSample.ts index 5242180378a8..4128c7f9d8ea 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/imagesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/imagesDeleteSample.ts @@ -30,7 +30,7 @@ async function imageDeleteMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginDeleteAndWait( resourceGroupName, - imageName + imageName, ); console.log(result); } @@ -51,7 +51,7 @@ async function imageDeleteMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginDeleteAndWait( resourceGroupName, - imageName + imageName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/imagesUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/imagesUpdateSample.ts index 4a7b86c53faf..0d52e7fb6b45 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/imagesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/imagesUpdateSample.ts @@ -29,17 +29,16 @@ async function updatesTagsOfAnImage() { const parameters: ImageUpdate = { hyperVGeneration: "V1", sourceVirtualMachine: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", }, - tags: { department: "HR" } + tags: { department: "HR" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/logAnalyticsExportRequestRateByIntervalSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/logAnalyticsExportRequestRateByIntervalSample.ts index 4d5a028b6cc2..f4c666da9564 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/logAnalyticsExportRequestRateByIntervalSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/logAnalyticsExportRequestRateByIntervalSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { RequestRateByIntervalInput, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,14 +32,15 @@ async function exportLogsWhichContainAllApiRequestsMadeToComputeResourceProvider fromTime: new Date("2018-01-21T01:54:06.862601Z"), groupByResourceName: true, intervalLength: "FiveMins", - toTime: new Date("2018-01-23T01:54:06.862601Z") + toTime: new Date("2018-01-23T01:54:06.862601Z"), }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.logAnalytics.beginExportRequestRateByIntervalAndWait( - location, - parameters - ); + const result = + await client.logAnalytics.beginExportRequestRateByIntervalAndWait( + location, + parameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/logAnalyticsExportThrottledRequestsSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/logAnalyticsExportThrottledRequestsSample.ts index 0cde453f3d71..445887388967 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/logAnalyticsExportThrottledRequestsSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/logAnalyticsExportThrottledRequestsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ThrottledRequestsInput, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,13 +34,13 @@ async function exportLogsWhichContainAllThrottledApiRequestsMadeToComputeResourc groupByOperationName: true, groupByResourceName: false, groupByUserAgent: false, - toTime: new Date("2018-01-23T01:54:06.862601Z") + toTime: new Date("2018-01-23T01:54:06.862601Z"), }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.logAnalytics.beginExportThrottledRequestsAndWait( location, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsCreateOrUpdateSample.ts index 8da20c7470c7..b01db7389cc7 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ProximityPlacementGroup, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -33,14 +33,14 @@ async function createOrUpdateAProximityPlacementGroup() { intent: { vmSizes: ["Basic_A0", "Basic_A2"] }, location: "westus", proximityPlacementGroupType: "Standard", - zones: ["1"] + zones: ["1"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.proximityPlacementGroups.createOrUpdate( resourceGroupName, proximityPlacementGroupName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsDeleteSample.ts index 78cb930f4808..64d024b47ed9 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteAProximityPlacementGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.proximityPlacementGroups.delete( resourceGroupName, - proximityPlacementGroupName + proximityPlacementGroupName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsGetSample.ts index c781c18b8422..969a5d0ed9c2 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsGetSample.ts @@ -30,7 +30,7 @@ async function getProximityPlacementGroups() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.proximityPlacementGroups.get( resourceGroupName, - proximityPlacementGroupName + proximityPlacementGroupName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsListByResourceGroupSample.ts index 6f2ccecf187c..ccb49b388f68 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function listProximityPlacementGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.proximityPlacementGroups.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsUpdateSample.ts index f28165f24e28..6351d4f8b5b1 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ProximityPlacementGroupUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -30,14 +30,14 @@ async function updateAProximityPlacementGroup() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const proximityPlacementGroupName = "myProximityPlacementGroup"; const parameters: ProximityPlacementGroupUpdate = { - tags: { additionalProp1: "string" } + tags: { additionalProp1: "string" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.proximityPlacementGroups.update( resourceGroupName, proximityPlacementGroupName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/resourceSkusListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/resourceSkusListSample.ts index b3b4ae81defe..5a7e162de929 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/resourceSkusListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/resourceSkusListSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ResourceSkusListOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsCreateOrUpdateSample.ts index 0063719e7285..fbb15e579732 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { RestorePointCollection, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,17 +32,16 @@ async function createOrUpdateARestorePointCollectionForCrossRegionCopy() { const parameters: RestorePointCollection = { location: "norwayeast", source: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/sourceRpcName" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/sourceRpcName", }, - tags: { myTag1: "tagValue1" } + tags: { myTag1: "tagValue1" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.createOrUpdate( resourceGroupName, restorePointCollectionName, - parameters + parameters, ); console.log(result); } @@ -62,17 +61,16 @@ async function createOrUpdateARestorePointCollection() { const parameters: RestorePointCollection = { location: "norwayeast", source: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", }, - tags: { myTag1: "tagValue1" } + tags: { myTag1: "tagValue1" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.createOrUpdate( resourceGroupName, restorePointCollectionName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsDeleteSample.ts index 0ec63a868e4e..8eaf6fbbeaa9 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsDeleteSample.ts @@ -30,7 +30,7 @@ async function restorePointCollectionDeleteMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.beginDeleteAndWait( resourceGroupName, - restorePointCollectionName + restorePointCollectionName, ); console.log(result); } @@ -51,7 +51,7 @@ async function restorePointCollectionDeleteMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.beginDeleteAndWait( resourceGroupName, - restorePointCollectionName + restorePointCollectionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsGetSample.ts index 2e84a0f854e1..7da1b103e447 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsGetSample.ts @@ -30,7 +30,7 @@ async function getARestorePointCollectionButNotTheRestorePointsContainedInTheRes const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.get( resourceGroupName, - restorePointCollectionName + restorePointCollectionName, ); console.log(result); } @@ -51,7 +51,7 @@ async function getARestorePointCollectionIncludingTheRestorePointsContainedInThe const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.get( resourceGroupName, - restorePointCollectionName + restorePointCollectionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsListSample.ts index 36b78b98acda..da4381f8e57c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsListSample.ts @@ -29,7 +29,7 @@ async function getsTheListOfRestorePointCollectionsInAResourceGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.restorePointCollections.list( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsUpdateSample.ts index 8139f2f0148a..56c3b839f3dd 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { RestorePointCollectionUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,17 +31,16 @@ async function restorePointCollectionUpdateMaximumSetGen() { const restorePointCollectionName = "aaaaaaaaaaaaaaaaaaaa"; const parameters: RestorePointCollectionUpdate = { source: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", }, - tags: { key8536: "aaaaaaaaaaaaaaaaaaa" } + tags: { key8536: "aaaaaaaaaaaaaaaaaaa" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.update( resourceGroupName, restorePointCollectionName, - parameters + parameters, ); console.log(result); } @@ -64,7 +63,7 @@ async function restorePointCollectionUpdateMinimumSetGen() { const result = await client.restorePointCollections.update( resourceGroupName, restorePointCollectionName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsCreateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsCreateSample.ts index 14ea6b48855a..5e9a8b176bc9 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsCreateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsCreateSample.ts @@ -29,9 +29,8 @@ async function copyARestorePointToADifferentRegion() { const restorePointName = "rpName"; const parameters: RestorePoint = { sourceRestorePoint: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/sourceRpcName/restorePoints/sourceRpName" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/sourceRpcName/restorePoints/sourceRpName", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -39,7 +38,7 @@ async function copyARestorePointToADifferentRegion() { resourceGroupName, restorePointCollectionName, restorePointName, - parameters + parameters, ); console.log(result); } @@ -60,10 +59,9 @@ async function createARestorePoint() { const parameters: RestorePoint = { excludeDisks: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123" - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -71,7 +69,7 @@ async function createARestorePoint() { resourceGroupName, restorePointCollectionName, restorePointName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsDeleteSample.ts index 04d487cb2a79..3830c72a49ae 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsDeleteSample.ts @@ -32,7 +32,7 @@ async function restorePointDeleteMaximumSetGen() { const result = await client.restorePoints.beginDeleteAndWait( resourceGroupName, restorePointCollectionName, - restorePointName + restorePointName, ); console.log(result); } @@ -55,7 +55,7 @@ async function restorePointDeleteMinimumSetGen() { const result = await client.restorePoints.beginDeleteAndWait( resourceGroupName, restorePointCollectionName, - restorePointName + restorePointName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsGetSample.ts index 92b710e9edba..c45959186cb4 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsGetSample.ts @@ -32,7 +32,7 @@ async function getARestorePoint() { const result = await client.restorePoints.get( resourceGroupName, restorePointCollectionName, - restorePointName + restorePointName, ); console.log(result); } @@ -55,7 +55,7 @@ async function getRestorePointWithInstanceView() { const result = await client.restorePoints.get( resourceGroupName, restorePointCollectionName, - restorePointName + restorePointName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleriesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleriesGetSample.ts index 116c46e83351..85674d442cf0 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleriesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleriesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a shared gallery by subscription id or tenant id. * * @summary Get a shared gallery by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGallery_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_Get.json */ async function getASharedGallery() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleriesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleriesListSample.ts index 0193a2a0acd1..cf12445c658f 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleriesListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleriesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List shared galleries by subscription id or tenant id. * * @summary List shared galleries by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGallery_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_List.json */ async function listSharedGalleries() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImageVersionsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImageVersionsGetSample.ts index 2db65265c53e..0fc9d92c351c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImageVersionsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImageVersionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a shared gallery image version by subscription id or tenant id. * * @summary Get a shared gallery image version by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json */ async function getASharedGalleryImageVersion() { const subscriptionId = @@ -33,7 +33,7 @@ async function getASharedGalleryImageVersion() { location, galleryUniqueName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImageVersionsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImageVersionsListSample.ts index e38e7ae0ef03..98ae70b401e2 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImageVersionsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImageVersionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List shared gallery image versions by subscription id or tenant id. * * @summary List shared gallery image versions by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json */ async function listSharedGalleryImageVersions() { const subscriptionId = @@ -32,7 +32,7 @@ async function listSharedGalleryImageVersions() { for await (let item of client.sharedGalleryImageVersions.list( location, galleryUniqueName, - galleryImageName + galleryImageName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImagesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImagesGetSample.ts index a2f5bbf42758..130e67be7970 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImagesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImagesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a shared gallery image by subscription id or tenant id. * * @summary Get a shared gallery image by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json */ async function getASharedGalleryImage() { const subscriptionId = @@ -31,7 +31,7 @@ async function getASharedGalleryImage() { const result = await client.sharedGalleryImages.get( location, galleryUniqueName, - galleryImageName + galleryImageName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImagesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImagesListSample.ts index 90d09b585616..be7c03622bf6 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImagesListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImagesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List shared gallery images by subscription id or tenant id. * * @summary List shared gallery images by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json */ async function listSharedGalleryImages() { const subscriptionId = @@ -30,7 +30,7 @@ async function listSharedGalleryImages() { const resArray = new Array(); for await (let item of client.sharedGalleryImages.list( location, - galleryUniqueName + galleryUniqueName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsCreateOrUpdateSample.ts index 238b8b1c9374..a7e3916053eb 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsCreateOrUpdateSample.ts @@ -32,16 +32,16 @@ async function createASnapshotByImportingAnUnmanagedBlobFromADifferentSubscripti sourceUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", storageAccountId: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount" + "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginCreateOrUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } @@ -62,16 +62,16 @@ async function createASnapshotByImportingAnUnmanagedBlobFromTheSameSubscription( creationData: { createOption: "Import", sourceUri: - "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" + "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginCreateOrUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } @@ -92,16 +92,16 @@ async function createASnapshotFromAnElasticSanVolumeSnapshot() { creationData: { createOption: "CopyFromSanSnapshot", elasticSanResourceId: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot" + "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginCreateOrUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } @@ -123,16 +123,16 @@ async function createASnapshotFromAnExistingSnapshotInTheSameOrADifferentSubscri createOption: "CopyStart", provisionedBandwidthCopySpeed: "Enhanced", sourceResourceId: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1" + "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginCreateOrUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } @@ -153,16 +153,16 @@ async function createASnapshotFromAnExistingSnapshotInTheSameOrADifferentSubscri creationData: { createOption: "CopyStart", sourceResourceId: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1" + "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginCreateOrUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } @@ -183,16 +183,16 @@ async function createASnapshotFromAnExistingSnapshotInTheSameOrADifferentSubscri creationData: { createOption: "Copy", sourceResourceId: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1" + "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginCreateOrUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsDeleteSample.ts index f7280932794e..0a19e08b60ff 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteASnapshot() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginDeleteAndWait( resourceGroupName, - snapshotName + snapshotName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsGrantAccessSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsGrantAccessSample.ts index 0b480d5736f6..80c826644254 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsGrantAccessSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsGrantAccessSample.ts @@ -29,14 +29,14 @@ async function getASasOnASnapshot() { const grantAccessData: GrantAccessData = { access: "Read", durationInSeconds: 300, - fileFormat: "VHDX" + fileFormat: "VHDX", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginGrantAccessAndWait( resourceGroupName, snapshotName, - grantAccessData + grantAccessData, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsListByResourceGroupSample.ts index 5225bf7768cc..1357e3df3f30 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function listAllSnapshotsInAResourceGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.snapshots.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsRevokeAccessSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsRevokeAccessSample.ts index f50d8dd83951..d56c77dd2f91 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsRevokeAccessSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsRevokeAccessSample.ts @@ -30,7 +30,7 @@ async function revokeAccessToASnapshot() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginRevokeAccessAndWait( resourceGroupName, - snapshotName + snapshotName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsUpdateSample.ts index 61240be67d98..f7c88b819955 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsUpdateSample.ts @@ -29,14 +29,14 @@ async function updateASnapshotWithAcceleratedNetworking() { const snapshot: SnapshotUpdate = { diskSizeGB: 20, supportedCapabilities: { acceleratedNetwork: false }, - tags: { department: "Development", project: "UpdateSnapshots" } + tags: { department: "Development", project: "UpdateSnapshots" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } @@ -55,14 +55,14 @@ async function updateASnapshot() { const snapshotName = "mySnapshot"; const snapshot: SnapshotUpdate = { diskSizeGB: 20, - tags: { department: "Development", project: "UpdateSnapshots" } + tags: { department: "Development", project: "UpdateSnapshots" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysCreateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysCreateSample.ts index f6bca8c1eecd..3ee613250145 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysCreateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { SshPublicKeyResource, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,14 +31,14 @@ async function createANewSshPublicKeyResource() { const sshPublicKeyName = "mySshPublicKeyName"; const parameters: SshPublicKeyResource = { location: "westus", - publicKey: "{ssh-rsa public key}" + publicKey: "{ssh-rsa public key}", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.sshPublicKeys.create( resourceGroupName, sshPublicKeyName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysDeleteSample.ts index ed5f68827f5e..1a380efe51fb 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysDeleteSample.ts @@ -30,7 +30,7 @@ async function sshPublicKeyDeleteMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.sshPublicKeys.delete( resourceGroupName, - sshPublicKeyName + sshPublicKeyName, ); console.log(result); } @@ -51,7 +51,7 @@ async function sshPublicKeyDeleteMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.sshPublicKeys.delete( resourceGroupName, - sshPublicKeyName + sshPublicKeyName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysGenerateKeyPairSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysGenerateKeyPairSample.ts index 13e203f44ab9..4de7ab6cfbd6 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysGenerateKeyPairSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysGenerateKeyPairSample.ts @@ -11,7 +11,7 @@ import { SshGenerateKeyPairInputParameters, SshPublicKeysGenerateKeyPairOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,7 +31,7 @@ async function generateAnSshKeyPairWithEd25519Encryption() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const sshPublicKeyName = "mySshPublicKeyName"; const parameters: SshGenerateKeyPairInputParameters = { - encryptionType: "RSA" + encryptionType: "RSA", }; const options: SshPublicKeysGenerateKeyPairOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -39,7 +39,7 @@ async function generateAnSshKeyPairWithEd25519Encryption() { const result = await client.sshPublicKeys.generateKeyPair( resourceGroupName, sshPublicKeyName, - options + options, ); console.log(result); } @@ -57,7 +57,7 @@ async function generateAnSshKeyPairWithRsaEncryption() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const sshPublicKeyName = "mySshPublicKeyName"; const parameters: SshGenerateKeyPairInputParameters = { - encryptionType: "RSA" + encryptionType: "RSA", }; const options: SshPublicKeysGenerateKeyPairOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -65,7 +65,7 @@ async function generateAnSshKeyPairWithRsaEncryption() { const result = await client.sshPublicKeys.generateKeyPair( resourceGroupName, sshPublicKeyName, - options + options, ); console.log(result); } @@ -86,7 +86,7 @@ async function generateAnSshKeyPair() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.sshPublicKeys.generateKeyPair( resourceGroupName, - sshPublicKeyName + sshPublicKeyName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysGetSample.ts index 69ea23c91ac4..3f96cc907874 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysGetSample.ts @@ -30,7 +30,7 @@ async function getAnSshPublicKey() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.sshPublicKeys.get( resourceGroupName, - sshPublicKeyName + sshPublicKeyName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysListByResourceGroupSample.ts index 9c69c2e99ac6..6cec1c49751b 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function sshPublicKeyListByResourceGroupMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.sshPublicKeys.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } @@ -51,7 +51,7 @@ async function sshPublicKeyListByResourceGroupMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.sshPublicKeys.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysUpdateSample.ts index 5ef6ce84fb73..8f64aa963e4e 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { SshPublicKeyUpdateResource, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,14 +31,14 @@ async function sshPublicKeyUpdateMaximumSetGen() { const sshPublicKeyName = "aaaaaaaaaaaa"; const parameters: SshPublicKeyUpdateResource = { publicKey: "{ssh-rsa public key}", - tags: { key2854: "a" } + tags: { key2854: "a" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.sshPublicKeys.update( resourceGroupName, sshPublicKeyName, - parameters + parameters, ); console.log(result); } @@ -61,7 +61,7 @@ async function sshPublicKeyUpdateMinimumSetGen() { const result = await client.sshPublicKeys.update( resourceGroupName, sshPublicKeyName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesGetSample.ts index 867abfcdb602..4793d3b6449c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesGetSample.ts @@ -33,7 +33,7 @@ async function virtualMachineExtensionImageGetMaximumSetGen() { location, publisherName, typeParam, - version + version, ); console.log(result); } @@ -57,7 +57,7 @@ async function virtualMachineExtensionImageGetMinimumSetGen() { location, publisherName, typeParam, - version + version, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesListTypesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesListTypesSample.ts index ca5f4b5e13af..be758e2fdf5d 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesListTypesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesListTypesSample.ts @@ -29,7 +29,7 @@ async function virtualMachineExtensionImageListTypesMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineExtensionImages.listTypes( location, - publisherName + publisherName, ); console.log(result); } @@ -49,7 +49,7 @@ async function virtualMachineExtensionImageListTypesMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineExtensionImages.listTypes( location, - publisherName + publisherName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesListVersionsSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesListVersionsSample.ts index 356ca0f2377a..c762507d6723 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesListVersionsSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesListVersionsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineExtensionImagesListVersionsOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -35,7 +35,7 @@ async function virtualMachineExtensionImageListVersionsMaximumSetGen() { const options: VirtualMachineExtensionImagesListVersionsOptionalParams = { filter, top, - orderby + orderby, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function virtualMachineExtensionImageListVersionsMaximumSetGen() { location, publisherName, typeParam, - options + options, ); console.log(result); } @@ -65,7 +65,7 @@ async function virtualMachineExtensionImageListVersionsMinimumSetGen() { const result = await client.virtualMachineExtensionImages.listVersions( location, publisherName, - typeParam + typeParam, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsCreateOrUpdateSample.ts index 404c9c576cc7..6a7b121d4fb2 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineExtension, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -44,8 +44,8 @@ async function virtualMachineExtensionCreateOrUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], substatuses: [ { @@ -53,10 +53,10 @@ async function virtualMachineExtensionCreateOrUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], - typeHandlerVersion: "aaaaaaaaaaaaaaaaaaaaaaaaaa" + typeHandlerVersion: "aaaaaaaaaaaaaaaaaaaaaaaaaa", }, location: "westus", protectedSettings: {}, @@ -64,16 +64,17 @@ async function virtualMachineExtensionCreateOrUpdateMaximumSetGen() { settings: {}, suppressFailures: true, tags: { key9183: "aa" }, - typeHandlerVersion: "1.2" + typeHandlerVersion: "1.2", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineExtensions.beginCreateOrUpdateAndWait( - resourceGroupName, - vmName, - vmExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineExtensions.beginCreateOrUpdateAndWait( + resourceGroupName, + vmName, + vmExtensionName, + extensionParameters, + ); console.log(result); } @@ -93,12 +94,13 @@ async function virtualMachineExtensionCreateOrUpdateMinimumSetGen() { const extensionParameters: VirtualMachineExtension = { location: "westus" }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineExtensions.beginCreateOrUpdateAndWait( - resourceGroupName, - vmName, - vmExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineExtensions.beginCreateOrUpdateAndWait( + resourceGroupName, + vmName, + vmExtensionName, + extensionParameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsDeleteSample.ts index e369cfaa8d56..895d5ffe4607 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsDeleteSample.ts @@ -32,7 +32,7 @@ async function virtualMachineExtensionDeleteMaximumSetGen() { const result = await client.virtualMachineExtensions.beginDeleteAndWait( resourceGroupName, vmName, - vmExtensionName + vmExtensionName, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineExtensionDeleteMinimumSetGen() { const result = await client.virtualMachineExtensions.beginDeleteAndWait( resourceGroupName, vmName, - vmExtensionName + vmExtensionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsGetSample.ts index 07d1bf0e86c3..35788608c2c0 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineExtensionsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -38,7 +38,7 @@ async function virtualMachineExtensionGetMaximumSetGen() { resourceGroupName, vmName, vmExtensionName, - options + options, ); console.log(result); } @@ -61,7 +61,7 @@ async function virtualMachineExtensionGetMinimumSetGen() { const result = await client.virtualMachineExtensions.get( resourceGroupName, vmName, - vmExtensionName + vmExtensionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsListSample.ts index 52c2112dee7a..1d85962c3380 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsListSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineExtensionsListOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function virtualMachineExtensionListMaximumSetGen() { const result = await client.virtualMachineExtensions.list( resourceGroupName, vmName, - options + options, ); console.log(result); } @@ -57,7 +57,7 @@ async function virtualMachineExtensionListMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineExtensions.list( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsUpdateSample.ts index 13942d3566ba..db8f60a70f5c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineExtensionUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -37,14 +37,13 @@ async function updateVMExtension() { secretUrl: "https://kvName.vault.azure.net/secrets/secretName/79b88b3a6f5440ffb2e73e44a0db712e", sourceVault: { - id: - "/subscriptions/a53f7094-a16c-47af-abe4-b05c05d0d79a/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/kvName" - } + id: "/subscriptions/a53f7094-a16c-47af-abe4-b05c05d0d79a/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/kvName", + }, }, publisher: "extPublisher", settings: { UserName: "xyz@microsoft.com" }, suppressFailures: true, - typeHandlerVersion: "1.2" + typeHandlerVersion: "1.2", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -52,7 +51,7 @@ async function updateVMExtension() { resourceGroupName, vmName, vmExtensionName, - extensionParameters + extensionParameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneGetSample.ts index 94b60cc56842..44a9c52f5d95 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneGetSample.ts @@ -37,7 +37,7 @@ async function virtualMachineImagesEdgeZoneGetMaximumSetGen() { publisherName, offer, skus, - version + version, ); console.log(result); } @@ -65,7 +65,7 @@ async function virtualMachineImagesEdgeZoneGetMinimumSetGen() { publisherName, offer, skus, - version + version, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListOffersSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListOffersSample.ts index a3de877e96c2..5389a691f62b 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListOffersSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListOffersSample.ts @@ -31,7 +31,7 @@ async function virtualMachineImagesEdgeZoneListOffersMaximumSetGen() { const result = await client.virtualMachineImagesEdgeZone.listOffers( location, edgeZone, - publisherName + publisherName, ); console.log(result); } @@ -53,7 +53,7 @@ async function virtualMachineImagesEdgeZoneListOffersMinimumSetGen() { const result = await client.virtualMachineImagesEdgeZone.listOffers( location, edgeZone, - publisherName + publisherName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListPublishersSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListPublishersSample.ts index d71b26105a12..c8d0ba5d4bf2 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListPublishersSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListPublishersSample.ts @@ -29,7 +29,7 @@ async function virtualMachineImagesEdgeZoneListPublishersMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineImagesEdgeZone.listPublishers( location, - edgeZone + edgeZone, ); console.log(result); } @@ -49,7 +49,7 @@ async function virtualMachineImagesEdgeZoneListPublishersMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineImagesEdgeZone.listPublishers( location, - edgeZone + edgeZone, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListSample.ts index 5f8642135e82..c4410133de1d 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineImagesEdgeZoneListOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -37,7 +37,7 @@ async function virtualMachineImagesEdgeZoneListMaximumSetGen() { const options: VirtualMachineImagesEdgeZoneListOptionalParams = { expand, top, - orderby + orderby, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -47,7 +47,7 @@ async function virtualMachineImagesEdgeZoneListMaximumSetGen() { publisherName, offer, skus, - options + options, ); console.log(result); } @@ -73,7 +73,7 @@ async function virtualMachineImagesEdgeZoneListMinimumSetGen() { edgeZone, publisherName, offer, - skus + skus, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListSkusSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListSkusSample.ts index 13e997827eea..a19ca67066eb 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListSkusSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListSkusSample.ts @@ -33,7 +33,7 @@ async function virtualMachineImagesEdgeZoneListSkusMaximumSetGen() { location, edgeZone, publisherName, - offer + offer, ); console.log(result); } @@ -57,7 +57,7 @@ async function virtualMachineImagesEdgeZoneListSkusMinimumSetGen() { location, edgeZone, publisherName, - offer + offer, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesGetSample.ts index 316151bf3739..4e8559d2e922 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesGetSample.ts @@ -35,7 +35,7 @@ async function virtualMachineImageGetMaximumSetGen() { publisherName, offer, skus, - version + version, ); console.log(result); } @@ -61,7 +61,7 @@ async function virtualMachineImageGetMinimumSetGen() { publisherName, offer, skus, - version + version, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListByEdgeZoneSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListByEdgeZoneSample.ts index 3fca77533bfe..8e89d50c0eaf 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListByEdgeZoneSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListByEdgeZoneSample.ts @@ -30,7 +30,7 @@ async function virtualMachineImagesEdgeZoneListByEdgeZoneMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineImages.listByEdgeZone( location, - edgeZone + edgeZone, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineImagesEdgeZoneListByEdgeZoneMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineImages.listByEdgeZone( location, - edgeZone + edgeZone, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListOffersSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListOffersSample.ts index 2e8ebb3fb049..cfd20ea2bee3 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListOffersSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListOffersSample.ts @@ -29,7 +29,7 @@ async function virtualMachineImageListOffersMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineImages.listOffers( location, - publisherName + publisherName, ); console.log(result); } @@ -49,7 +49,7 @@ async function virtualMachineImageListOffersMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineImages.listOffers( location, - publisherName + publisherName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListSample.ts index a9a99490a7cc..963fd7931226 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineImagesListOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function virtualMachineImageListMaximumSetGen() { const options: VirtualMachineImagesListOptionalParams = { expand, top, - orderby + orderby, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -45,7 +45,7 @@ async function virtualMachineImageListMaximumSetGen() { publisherName, offer, skus, - options + options, ); console.log(result); } @@ -69,7 +69,7 @@ async function virtualMachineImageListMinimumSetGen() { location, publisherName, offer, - skus + skus, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListSkusSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListSkusSample.ts index 8d843fdbb89a..1c818c923ccb 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListSkusSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListSkusSample.ts @@ -31,7 +31,7 @@ async function virtualMachineImageListSkusMaximumSetGen() { const result = await client.virtualMachineImages.listSkus( location, publisherName, - offer + offer, ); console.log(result); } @@ -53,7 +53,7 @@ async function virtualMachineImageListSkusMinimumSetGen() { const result = await client.virtualMachineImages.listSkus( location, publisherName, - offer + offer, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsCreateOrUpdateSample.ts index dd4772f5b047..ae5760b8398b 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineRunCommand, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,31 +36,32 @@ async function createOrUpdateARunCommand() { "https://mystorageaccount.blob.core.windows.net/scriptcontainer/scriptURI", location: "West US", outputBlobManagedIdentity: { - clientId: "22d35efb-0c99-4041-8c5b-6d24db33a69a" + clientId: "22d35efb-0c99-4041-8c5b-6d24db33a69a", }, outputBlobUri: "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", parameters: [ { name: "param1", value: "value1" }, - { name: "param2", value: "value2" } + { name: "param2", value: "value2" }, ], runAsPassword: "", runAsUser: "user1", source: { scriptUri: - "https://mystorageaccount.blob.core.windows.net/scriptcontainer/scriptURI" + "https://mystorageaccount.blob.core.windows.net/scriptcontainer/scriptURI", }, timeoutInSeconds: 3600, - treatFailureAsDeploymentFailure: false + treatFailureAsDeploymentFailure: false, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineRunCommands.beginCreateOrUpdateAndWait( - resourceGroupName, - vmName, - runCommandName, - runCommand - ); + const result = + await client.virtualMachineRunCommands.beginCreateOrUpdateAndWait( + resourceGroupName, + vmName, + runCommandName, + runCommand, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsDeleteSample.ts index 782b35cb18b1..d287aed0e43a 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteARunCommand() { const result = await client.virtualMachineRunCommands.beginDeleteAndWait( resourceGroupName, vmName, - runCommandName + runCommandName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsGetByVirtualMachineSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsGetByVirtualMachineSample.ts index 984861a0ca7f..8776bbbf1db7 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsGetByVirtualMachineSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsGetByVirtualMachineSample.ts @@ -32,7 +32,7 @@ async function getARunCommand() { const result = await client.virtualMachineRunCommands.getByVirtualMachine( resourceGroupName, vmName, - runCommandName + runCommandName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsGetSample.ts index 8c34005b96ef..aa34b017efed 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsGetSample.ts @@ -30,7 +30,7 @@ async function virtualMachineRunCommandGet() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineRunCommands.get( location, - commandId + commandId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsListByVirtualMachineSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsListByVirtualMachineSample.ts index c79a3451b142..f18c7e49f22f 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsListByVirtualMachineSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsListByVirtualMachineSample.ts @@ -31,7 +31,7 @@ async function listRunCommandsInAVirtualMachine() { const resArray = new Array(); for await (let item of client.virtualMachineRunCommands.listByVirtualMachine( resourceGroupName, - vmName + vmName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsUpdateSample.ts index 41e4c732f787..b7a3ce564dc9 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineRunCommandUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -33,7 +33,7 @@ async function updateARunCommand() { const runCommand: VirtualMachineRunCommandUpdate = { asyncExecution: false, errorBlobManagedIdentity: { - objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072" + objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072", }, errorBlobUri: "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt", @@ -41,14 +41,14 @@ async function updateARunCommand() { "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/outputUri", parameters: [ { name: "param1", value: "value1" }, - { name: "param2", value: "value2" } + { name: "param2", value: "value2" }, ], runAsPassword: "", runAsUser: "user1", source: { - script: "Write-Host Hello World! ; Remove-Item C:\test\testFile.txt" + script: "Write-Host Hello World! ; Remove-Item C:\test\testFile.txt", }, - timeoutInSeconds: 3600 + timeoutInSeconds: 3600, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -56,7 +56,7 @@ async function updateARunCommand() { resourceGroupName, vmName, runCommandName, - runCommand + runCommand, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts index 7b6ac65f4358..ba35635ee1ea 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetExtension, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -41,16 +41,17 @@ async function virtualMachineScaleSetExtensionCreateOrUpdateMaximumSetGen() { publisher: "{extension-Publisher}", settings: {}, suppressFailures: true, - typeHandlerVersion: "{handler-version}" + typeHandlerVersion: "{handler-version}", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetExtensions.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - vmssExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineScaleSetExtensions.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + vmssExtensionName, + extensionParameters, + ); console.log(result); } @@ -70,12 +71,13 @@ async function virtualMachineScaleSetExtensionCreateOrUpdateMinimumSetGen() { const extensionParameters: VirtualMachineScaleSetExtension = {}; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetExtensions.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - vmssExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineScaleSetExtensions.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + vmssExtensionName, + extensionParameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsDeleteSample.ts index 5fb679cd8ca8..e882f592ffff 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsDeleteSample.ts @@ -29,11 +29,12 @@ async function virtualMachineScaleSetExtensionDeleteMaximumSetGen() { const vmssExtensionName = "aaaaaaaaaaaaaaaaaaaaaaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetExtensions.beginDeleteAndWait( - resourceGroupName, - vmScaleSetName, - vmssExtensionName - ); + const result = + await client.virtualMachineScaleSetExtensions.beginDeleteAndWait( + resourceGroupName, + vmScaleSetName, + vmssExtensionName, + ); console.log(result); } @@ -52,11 +53,12 @@ async function virtualMachineScaleSetExtensionDeleteMinimumSetGen() { const vmssExtensionName = "aaaaaaaaaaaaaaaaaaaaaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetExtensions.beginDeleteAndWait( - resourceGroupName, - vmScaleSetName, - vmssExtensionName - ); + const result = + await client.virtualMachineScaleSetExtensions.beginDeleteAndWait( + resourceGroupName, + vmScaleSetName, + vmssExtensionName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsGetSample.ts index e8163d6df0d9..cf03dda8c657 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetExtensionsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -38,7 +38,7 @@ async function virtualMachineScaleSetExtensionGetMaximumSetGen() { resourceGroupName, vmScaleSetName, vmssExtensionName, - options + options, ); console.log(result); } @@ -61,7 +61,7 @@ async function virtualMachineScaleSetExtensionGetMinimumSetGen() { const result = await client.virtualMachineScaleSetExtensions.get( resourceGroupName, vmScaleSetName, - vmssExtensionName + vmssExtensionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsListSample.ts index 7c5fbffd1dca..1ff4028a265d 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsListSample.ts @@ -31,7 +31,7 @@ async function virtualMachineScaleSetExtensionListMaximumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSetExtensions.list( resourceGroupName, - vmScaleSetName + vmScaleSetName, )) { resArray.push(item); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetExtensionListMinimumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSetExtensions.list( resourceGroupName, - vmScaleSetName + vmScaleSetName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsUpdateSample.ts index b162e3eca96d..8554b5dc3f0c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetExtensionUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -40,16 +40,17 @@ async function virtualMachineScaleSetExtensionUpdateMaximumSetGen() { publisher: "{extension-Publisher}", settings: {}, suppressFailures: true, - typeHandlerVersion: "{handler-version}" + typeHandlerVersion: "{handler-version}", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetExtensions.beginUpdateAndWait( - resourceGroupName, - vmScaleSetName, - vmssExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineScaleSetExtensions.beginUpdateAndWait( + resourceGroupName, + vmScaleSetName, + vmssExtensionName, + extensionParameters, + ); console.log(result); } @@ -69,12 +70,13 @@ async function virtualMachineScaleSetExtensionUpdateMinimumSetGen() { const extensionParameters: VirtualMachineScaleSetExtensionUpdate = {}; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetExtensions.beginUpdateAndWait( - resourceGroupName, - vmScaleSetName, - vmssExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineScaleSetExtensions.beginUpdateAndWait( + resourceGroupName, + vmScaleSetName, + vmssExtensionName, + extensionParameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesCancelSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesCancelSample.ts index b296f958d1fe..00b963f2d3f9 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesCancelSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesCancelSample.ts @@ -28,10 +28,11 @@ async function virtualMachineScaleSetRollingUpgradeCancelMaximumSetGen() { const vmScaleSetName = "aaaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetRollingUpgrades.beginCancelAndWait( - resourceGroupName, - vmScaleSetName - ); + const result = + await client.virtualMachineScaleSetRollingUpgrades.beginCancelAndWait( + resourceGroupName, + vmScaleSetName, + ); console.log(result); } @@ -49,10 +50,11 @@ async function virtualMachineScaleSetRollingUpgradeCancelMinimumSetGen() { const vmScaleSetName = "aaaaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetRollingUpgrades.beginCancelAndWait( - resourceGroupName, - vmScaleSetName - ); + const result = + await client.virtualMachineScaleSetRollingUpgrades.beginCancelAndWait( + resourceGroupName, + vmScaleSetName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts index 889a1c66f386..717aa5ca68eb 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts @@ -30,7 +30,7 @@ async function virtualMachineScaleSetRollingUpgradeGetLatestMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSetRollingUpgrades.getLatest( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineScaleSetRollingUpgradeGetLatestMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSetRollingUpgrades.getLatest( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts index 54d1eeaef05f..5268c6960435 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts @@ -28,10 +28,11 @@ async function startAnExtensionRollingUpgrade() { const vmScaleSetName = "{vmss-name}"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetRollingUpgrades.beginStartExtensionUpgradeAndWait( - resourceGroupName, - vmScaleSetName - ); + const result = + await client.virtualMachineScaleSetRollingUpgrades.beginStartExtensionUpgradeAndWait( + resourceGroupName, + vmScaleSetName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts index 65dc6a5bbf0e..8f5c578db840 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts @@ -28,10 +28,11 @@ async function virtualMachineScaleSetRollingUpgradeStartOSUpgradeMaximumSetGen() const vmScaleSetName = "aaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetRollingUpgrades.beginStartOSUpgradeAndWait( - resourceGroupName, - vmScaleSetName - ); + const result = + await client.virtualMachineScaleSetRollingUpgrades.beginStartOSUpgradeAndWait( + resourceGroupName, + vmScaleSetName, + ); console.log(result); } @@ -49,10 +50,11 @@ async function virtualMachineScaleSetRollingUpgradeStartOSUpgradeMinimumSetGen() const vmScaleSetName = "aaaaaaaaaaaaaaaaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetRollingUpgrades.beginStartOSUpgradeAndWait( - resourceGroupName, - vmScaleSetName - ); + const result = + await client.virtualMachineScaleSetRollingUpgrades.beginStartOSUpgradeAndWait( + resourceGroupName, + vmScaleSetName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts index 5db4993df20a..14c84993c679 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMExtension, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,17 +36,18 @@ async function createVirtualMachineScaleSetVMExtension() { autoUpgradeMinorVersion: true, publisher: "extPublisher", settings: { UserName: "xyz@microsoft.com" }, - typeHandlerVersion: "1.2" + typeHandlerVersion: "1.2", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMExtensions.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - vmExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineScaleSetVMExtensions.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + vmExtensionName, + extensionParameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsDeleteSample.ts index 8e47771c1f50..2c121e55b4df 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsDeleteSample.ts @@ -30,12 +30,13 @@ async function deleteVirtualMachineScaleSetVMExtension() { const vmExtensionName = "myVMExtension"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMExtensions.beginDeleteAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - vmExtensionName - ); + const result = + await client.virtualMachineScaleSetVMExtensions.beginDeleteAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + vmExtensionName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsGetSample.ts index 170bc0a1f9cd..952c187b273a 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsGetSample.ts @@ -34,7 +34,7 @@ async function getVirtualMachineScaleSetVMExtension() { resourceGroupName, vmScaleSetName, instanceId, - vmExtensionName + vmExtensionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsListSample.ts index 4d799048e325..59a303c8436f 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsListSample.ts @@ -32,7 +32,7 @@ async function listExtensionsInVmssInstance() { const result = await client.virtualMachineScaleSetVMExtensions.list( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsUpdateSample.ts index 98c562605ee2..bd420fc9a114 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMExtensionUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,17 +36,18 @@ async function updateVirtualMachineScaleSetVMExtension() { autoUpgradeMinorVersion: true, publisher: "extPublisher", settings: { UserName: "xyz@microsoft.com" }, - typeHandlerVersion: "1.2" + typeHandlerVersion: "1.2", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMExtensions.beginUpdateAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - vmExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineScaleSetVMExtensions.beginUpdateAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + vmExtensionName, + extensionParameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts index b846330cc38f..6952d366bf0c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineRunCommand, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -38,13 +38,13 @@ async function createVirtualMachineScaleSetVMRunCommand() { "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt", location: "West US", outputBlobManagedIdentity: { - clientId: "22d35efb-0c99-4041-8c5b-6d24db33a69a" + clientId: "22d35efb-0c99-4041-8c5b-6d24db33a69a", }, outputBlobUri: "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", parameters: [ { name: "param1", value: "value1" }, - { name: "param2", value: "value2" } + { name: "param2", value: "value2" }, ], runAsPassword: "", runAsUser: "user1", @@ -52,21 +52,22 @@ async function createVirtualMachineScaleSetVMRunCommand() { scriptUri: "https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1", scriptUriManagedIdentity: { - objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072" - } + objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072", + }, }, timeoutInSeconds: 3600, - treatFailureAsDeploymentFailure: true + treatFailureAsDeploymentFailure: true, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMRunCommands.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - runCommandName, - runCommand - ); + const result = + await client.virtualMachineScaleSetVMRunCommands.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + runCommandName, + runCommand, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsDeleteSample.ts index 4cd6ada176b4..e5cfa028f87c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsDeleteSample.ts @@ -30,12 +30,13 @@ async function deleteVirtualMachineScaleSetVMRunCommand() { const runCommandName = "myRunCommand"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMRunCommands.beginDeleteAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - runCommandName - ); + const result = + await client.virtualMachineScaleSetVMRunCommands.beginDeleteAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + runCommandName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsGetSample.ts index 529347f9226c..6d07197de3e4 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsGetSample.ts @@ -34,7 +34,7 @@ async function getVirtualMachineScaleSetVMRunCommands() { resourceGroupName, vmScaleSetName, instanceId, - runCommandName + runCommandName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsListSample.ts index e2dca9fd24d9..0fdd22e4e2c7 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsListSample.ts @@ -33,7 +33,7 @@ async function listRunCommandsInVmssInstance() { for await (let item of client.virtualMachineScaleSetVMRunCommands.list( resourceGroupName, vmScaleSetName, - instanceId + instanceId, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsUpdateSample.ts index 22c1c16abaae..d210be566b25 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineRunCommandUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,19 +36,20 @@ async function updateVirtualMachineScaleSetVMRunCommand() { scriptUri: "https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1", scriptUriManagedIdentity: { - objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072" - } - } + objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMRunCommands.beginUpdateAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - runCommandName, - runCommand - ); + const result = + await client.virtualMachineScaleSetVMRunCommands.beginUpdateAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + runCommandName, + runCommand, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSApproveRollingUpgradeSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSApproveRollingUpgradeSample.ts index b35d63ae4d37..5f6b38530d0c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSApproveRollingUpgradeSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSApproveRollingUpgradeSample.ts @@ -29,11 +29,12 @@ async function virtualMachineScaleSetVMApproveRollingUpgrade() { const instanceId = "0123"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMs.beginApproveRollingUpgradeAndWait( - resourceGroupName, - vmScaleSetName, - instanceId - ); + const result = + await client.virtualMachineScaleSetVMs.beginApproveRollingUpgradeAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSAttachDetachDataDisksSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSAttachDetachDataDisksSample.ts index 73ca564036f8..755dcc730dde 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSAttachDetachDataDisksSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSAttachDetachDataDisksSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { AttachDetachDataDisksRequest, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -35,35 +35,36 @@ async function virtualMachineScaleSetVMAttachDetachDataDisksMaximumSetGen() { { diskId: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", - lun: 1 + lun: 1, }, { diskId: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_2_disk3_7d5e664bdafa49baa780eb2d128ff38e", - lun: 2 - } + lun: 2, + }, ], dataDisksToDetach: [ { detachOption: "ForceDetach", diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x" + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x", }, { detachOption: "ForceDetach", diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_4_disk4_4d4e784bdafa49baa780eb2d256ff41z" - } - ] + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_4_disk4_4d4e784bdafa49baa780eb2d256ff41z", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMs.beginAttachDetachDataDisksAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - parameters - ); + const result = + await client.virtualMachineScaleSetVMs.beginAttachDetachDataDisksAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + parameters, + ); console.log(result); } @@ -84,24 +85,25 @@ async function virtualMachineScaleSetVMAttachDetachDataDisksMinimumSetGen() { dataDisksToAttach: [ { diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d" - } + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", + }, ], dataDisksToDetach: [ { diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x" - } - ] + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMs.beginAttachDetachDataDisksAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - parameters - ); + const result = + await client.virtualMachineScaleSetVMs.beginAttachDetachDataDisksAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + parameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSDeallocateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSDeallocateSample.ts index f076ab0a6f35..8a727fede9e7 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSDeallocateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSDeallocateSample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetVMDeallocateMaximumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginDeallocateAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetVMDeallocateMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginDeallocateAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSDeleteSample.ts index 6b0b3e7dbcd3..b02200e5f276 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSDeleteSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMsDeleteOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,7 +32,7 @@ async function forceDeleteAVirtualMachineFromAVMScaleSet() { const instanceId = "0"; const forceDeletion = true; const options: VirtualMachineScaleSetVMsDeleteOptionalParams = { - forceDeletion + forceDeletion, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -40,7 +40,7 @@ async function forceDeleteAVirtualMachineFromAVMScaleSet() { resourceGroupName, vmScaleSetName, instanceId, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSGetInstanceViewSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSGetInstanceViewSample.ts index 076ca109aa0a..88aa4a2fae86 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSGetInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSGetInstanceViewSample.ts @@ -32,7 +32,7 @@ async function getInstanceViewOfAVirtualMachineFromAVMScaleSetPlacedOnADedicated const result = await client.virtualMachineScaleSetVMs.getInstanceView( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSGetSample.ts index baf384de2618..33ce5ac50dad 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSGetSample.ts @@ -32,7 +32,7 @@ async function getVMScaleSetVMWithUserData() { const result = await client.virtualMachineScaleSetVMs.get( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } @@ -55,7 +55,7 @@ async function getVMScaleSetVMWithVMSizeProperties() { const result = await client.virtualMachineScaleSetVMs.get( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSListSample.ts index acec35e26723..2a93f94980e5 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSListSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMsListOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -35,7 +35,7 @@ async function virtualMachineScaleSetVMListMaximumSetGen() { const options: VirtualMachineScaleSetVMsListOptionalParams = { filter, select, - expand + expand, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function virtualMachineScaleSetVMListMaximumSetGen() { for await (let item of client.virtualMachineScaleSetVMs.list( resourceGroupName, virtualMachineScaleSetName, - options + options, )) { resArray.push(item); } @@ -67,7 +67,7 @@ async function virtualMachineScaleSetVMListMinimumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSetVMs.list( resourceGroupName, - virtualMachineScaleSetName + virtualMachineScaleSetName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSPerformMaintenanceSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSPerformMaintenanceSample.ts index 28e4bb60c3bf..fb0209eba76d 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSPerformMaintenanceSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSPerformMaintenanceSample.ts @@ -29,11 +29,12 @@ async function virtualMachineScaleSetVMPerformMaintenanceMaximumSetGen() { const instanceId = "aaaaaaaaaaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMs.beginPerformMaintenanceAndWait( - resourceGroupName, - vmScaleSetName, - instanceId - ); + const result = + await client.virtualMachineScaleSetVMs.beginPerformMaintenanceAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + ); console.log(result); } @@ -52,11 +53,12 @@ async function virtualMachineScaleSetVMPerformMaintenanceMinimumSetGen() { const instanceId = "aaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMs.beginPerformMaintenanceAndWait( - resourceGroupName, - vmScaleSetName, - instanceId - ); + const result = + await client.virtualMachineScaleSetVMs.beginPerformMaintenanceAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSPowerOffSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSPowerOffSample.ts index c85b508f98a0..ee654103db98 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSPowerOffSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSPowerOffSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMsPowerOffOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,7 +32,7 @@ async function virtualMachineScaleSetVMPowerOffMaximumSetGen() { const instanceId = "aaaaaaaaa"; const skipShutdown = true; const options: VirtualMachineScaleSetVMsPowerOffOptionalParams = { - skipShutdown + skipShutdown, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -40,7 +40,7 @@ async function virtualMachineScaleSetVMPowerOffMaximumSetGen() { resourceGroupName, vmScaleSetName, instanceId, - options + options, ); console.log(result); } @@ -63,7 +63,7 @@ async function virtualMachineScaleSetVMPowerOffMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginPowerOffAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRedeploySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRedeploySample.ts index 6193a0c55c53..a52a7525f2d8 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRedeploySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRedeploySample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetVMRedeployMaximumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginRedeployAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetVMRedeployMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginRedeployAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSReimageAllSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSReimageAllSample.ts index 3a1cc2e18c11..282ff70d3e89 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSReimageAllSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSReimageAllSample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetVMReimageAllMaximumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginReimageAllAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetVMReimageAllMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginReimageAllAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSReimageSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSReimageSample.ts index 34006e5930d6..73371f4f9509 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSReimageSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSReimageSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMReimageParameters, VirtualMachineScaleSetVMsReimageOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,10 +32,10 @@ async function virtualMachineScaleSetVMReimageMaximumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaa"; const instanceId = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; const vmScaleSetVMReimageInput: VirtualMachineScaleSetVMReimageParameters = { - tempDisk: true + tempDisk: true, }; const options: VirtualMachineScaleSetVMsReimageOptionalParams = { - vmScaleSetVMReimageInput + vmScaleSetVMReimageInput, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function virtualMachineScaleSetVMReimageMaximumSetGen() { resourceGroupName, vmScaleSetName, instanceId, - options + options, ); console.log(result); } @@ -66,7 +66,7 @@ async function virtualMachineScaleSetVMReimageMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginReimageAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRestartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRestartSample.ts index 2a0aa2218e65..fad2732a6c9a 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRestartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRestartSample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetVMRestartMaximumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginRestartAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetVMRestartMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginRestartAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts index 06d43dda8c39..1e265be799f9 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,17 +31,17 @@ async function retrieveBootDiagnosticsDataOfAVirtualMachine() { const vmScaleSetName = "myvmScaleSet"; const instanceId = "0"; const sasUriExpirationTimeInMinutes = 60; - const options: VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams = { - sasUriExpirationTimeInMinutes - }; + const options: VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams = + { sasUriExpirationTimeInMinutes }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMs.retrieveBootDiagnosticsData( - resourceGroupName, - vmScaleSetName, - instanceId, - options - ); + const result = + await client.virtualMachineScaleSetVMs.retrieveBootDiagnosticsData( + resourceGroupName, + vmScaleSetName, + instanceId, + options, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRunCommandSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRunCommandSample.ts index 56da7f345926..71acef1e6e11 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRunCommandSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRunCommandSample.ts @@ -29,7 +29,7 @@ async function virtualMachineScaleSetVMSRunCommand() { const instanceId = "0"; const parameters: RunCommandInput = { commandId: "RunPowerShellScript", - script: ["Write-Host Hello World!"] + script: ["Write-Host Hello World!"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -37,7 +37,7 @@ async function virtualMachineScaleSetVMSRunCommand() { resourceGroupName, vmScaleSetName, instanceId, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSSimulateEvictionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSSimulateEvictionSample.ts index 315eef0c467a..999a63637542 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSSimulateEvictionSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSSimulateEvictionSample.ts @@ -32,7 +32,7 @@ async function simulateEvictionAVirtualMachine() { const result = await client.virtualMachineScaleSetVMs.simulateEviction( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSStartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSStartSample.ts index 1f3538808f8c..bcfe0b5cc130 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSStartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSStartSample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetVMStartMaximumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginStartAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetVMStartMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginStartAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSUpdateSample.ts index ec330dc91081..a3e1f23608bc 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVM, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -33,15 +33,14 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { const parameters: VirtualMachineScaleSetVM = { additionalCapabilities: { hibernationEnabled: true, ultraSSDEnabled: true }, availabilitySet: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, diagnosticsProfile: { - bootDiagnostics: { enabled: true, storageUri: "aaaaaaaaaaaaa" } + bootDiagnostics: { enabled: true, storageUri: "aaaaaaaaaaaaa" }, }, hardwareProfile: { vmSize: "Basic_A0", - vmSizeProperties: { vCPUsAvailable: 9, vCPUsPerCore: 12 } + vmSizeProperties: { vCPUsAvailable: 9, vCPUsPerCore: 12 }, }, instanceView: { bootDiagnostics: { @@ -50,8 +49,8 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, }, disks: [ { @@ -61,19 +60,17 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { diskEncryptionKey: { secretUrl: "aaaaaaaa", sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, }, enabled: true, keyEncryptionKey: { keyUrl: "aaaaaaaaaaaaaa", sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, + }, + }, ], statuses: [ { @@ -81,10 +78,10 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } - ] - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, + ], + }, ], maintenanceRedeployStatus: { isCustomerInitiatedMaintenanceAllowed: true, @@ -93,7 +90,7 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { maintenanceWindowEndTime: new Date("2021-11-30T12:58:26.531Z"), maintenanceWindowStartTime: new Date("2021-11-30T12:58:26.531Z"), preMaintenanceWindowEndTime: new Date("2021-11-30T12:58:26.531Z"), - preMaintenanceWindowStartTime: new Date("2021-11-30T12:58:26.531Z") + preMaintenanceWindowStartTime: new Date("2021-11-30T12:58:26.531Z"), }, placementGroupId: "aaa", platformFaultDomain: 14, @@ -105,8 +102,8 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], vmAgent: { extensionHandlers: [ @@ -117,10 +114,10 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") + time: new Date("2021-11-30T12:58:26.522Z"), }, - typeHandlerVersion: "aaaaa" - } + typeHandlerVersion: "aaaaa", + }, ], statuses: [ { @@ -128,10 +125,10 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], - vmAgentVersion: "aaaaaaaaaaaaaaaaaaaaaaa" + vmAgentVersion: "aaaaaaaaaaaaaaaaaaaaaaa", }, vmHealth: { status: { @@ -139,8 +136,8 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, }, extensions: [ { @@ -152,8 +149,8 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], substatuses: [ { @@ -161,12 +158,12 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], - typeHandlerVersion: "aaaaaaaaaaaaaaaaaaaaaaaaaa" - } - ] + typeHandlerVersion: "aaaaaaaaaaaaaaaaaaaaaaaaaa", + }, + ], }, licenseType: "aaaaaaaaaa", location: "westus", @@ -178,8 +175,7 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { deleteOption: "Delete", dnsSettings: { dnsServers: ["aaaaaa"] }, dscpConfiguration: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, enableAcceleratedNetworking: true, enableFpga: true, @@ -189,21 +185,18 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { name: "aa", applicationGatewayBackendAddressPools: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], applicationSecurityGroups: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], loadBalancerBackendAddressPools: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], primary: true, privateIPAddressVersion: "IPv4", @@ -215,38 +208,34 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { ipTags: [ { ipTagType: "aaaaaaaaaaaaaaaaaaaaaaaaa", - tag: "aaaaaaaaaaaaaaaaaaaa" - } + tag: "aaaaaaaaaaaaaaaaaaaa", + }, ], publicIPAddressVersion: "IPv4", publicIPAllocationMethod: "Dynamic", publicIPPrefix: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, - sku: { name: "Basic", tier: "Regional" } + sku: { name: "Basic", tier: "Regional" }, }, subnet: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, + }, ], networkSecurityGroup: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, - primary: true - } + primary: true, + }, ], networkInterfaces: [ { deleteOption: "Delete", - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}/virtualMachines/0/networkInterfaces/vmsstestnetconfig5415", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}/virtualMachines/0/networkInterfaces/vmsstestnetconfig5415", + primary: true, + }, + ], }, networkProfileConfiguration: { networkInterfaceConfigurations: [ @@ -262,27 +251,23 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { name: "vmsstestnetconfig9693", applicationGatewayBackendAddressPools: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], applicationSecurityGroups: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], loadBalancerBackendAddressPools: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], loadBalancerInboundNatPools: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], primary: true, privateIPAddressVersion: "IPv4", @@ -292,28 +277,25 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { dnsSettings: { domainNameLabel: "aaaaaaaaaaaaaaaaaa" }, idleTimeoutInMinutes: 18, ipTags: [ - { ipTagType: "aaaaaaa", tag: "aaaaaaaaaaaaaaaaaaaaaaaaaaa" } + { ipTagType: "aaaaaaa", tag: "aaaaaaaaaaaaaaaaaaaaaaaaaaa" }, ], publicIPAddressVersion: "IPv4", publicIPPrefix: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, - sku: { name: "Basic", tier: "Regional" } + sku: { name: "Basic", tier: "Regional" }, }, subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/vn4071/subnets/sn5503" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/vn4071/subnets/sn5503", + }, + }, ], networkSecurityGroup: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "aaaaaaaaaaaaaaaa", @@ -325,10 +307,10 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { disablePasswordAuthentication: true, patchSettings: { assessmentMode: "ImageDefault", - patchMode: "ImageDefault" + patchMode: "ImageDefault", }, provisionVMAgent: true, - ssh: { publicKeys: [{ path: "aaa", keyData: "aaaaaa" }] } + ssh: { publicKeys: [{ path: "aaa", keyData: "aaaaaa" }] }, }, requireGuestProvisionSignal: true, secrets: [], @@ -338,38 +320,38 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { componentName: "Microsoft-Windows-Shell-Setup", content: "aaaaaaaaaaaaaaaaaaaa", passName: "OobeSystem", - settingName: "AutoLogon" - } + settingName: "AutoLogon", + }, ], enableAutomaticUpdates: true, patchSettings: { assessmentMode: "ImageDefault", enableHotpatching: true, - patchMode: "Manual" + patchMode: "Manual", }, provisionVMAgent: true, timeZone: "aaaaaaaaaaaaaaaaaaaaaaaaaaa", winRM: { listeners: [ - { certificateUrl: "aaaaaaaaaaaaaaaaaaaaaa", protocol: "Http" } - ] - } - } + { certificateUrl: "aaaaaaaaaaaaaaaaaaaaaa", protocol: "Http" }, + ], + }, + }, }, plan: { name: "aaaaaaaaaa", product: "aaaaaaaaaaaaaaaaaaaa", promotionCode: "aaaaaaaaaaaaaaaaaaaa", - publisher: "aaaaaaaaaaaaaaaaaaaaaa" + publisher: "aaaaaaaaaaaaaaaaaaaaaa", }, protectionPolicy: { protectFromScaleIn: true, - protectFromScaleSetActions: true + protectFromScaleSetActions: true, }, securityProfile: { encryptionAtHost: true, securityType: "TrustedLaunch", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, sku: { name: "Classic", capacity: 29, tier: "aaaaaaaaaaaaaa" }, storageProfile: { @@ -382,23 +364,20 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { detachOption: "ForceDetach", diskSizeGB: 128, image: { - uri: - "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd" + uri: "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd", }, lun: 1, managedDisk: { diskEncryptionSet: { id: "aaaaaaaaaaaa" }, - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", - storageAccountType: "Standard_LRS" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", + storageAccountType: "Standard_LRS", }, toBeDetached: true, vhd: { - uri: - "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd" + uri: "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd", }, - writeAcceleratorEnabled: true - } + writeAcceleratorEnabled: true, + }, ], imageReference: { id: "a", @@ -406,7 +385,7 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { publisher: "MicrosoftWindowsServer", sharedGalleryImageId: "aaaaaaaaaaaaaaaaaaaa", sku: "2012-R2-Datacenter", - version: "4.127.20180315" + version: "4.127.20180315", }, osDisk: { name: "vmss3176_vmss3176_0_OsDisk_1_6d72b805e50e4de6830303c5055077fc", @@ -419,39 +398,34 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { diskEncryptionKey: { secretUrl: "aaaaaaaa", sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, }, enabled: true, keyEncryptionKey: { keyUrl: "aaaaaaaaaaaaaa", sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, + }, }, image: { - uri: - "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd" + uri: "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd", }, managedDisk: { diskEncryptionSet: { id: "aaaaaaaaaaaa" }, - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_OsDisk_1_6d72b805e50e4de6830303c5055077fc", - storageAccountType: "Standard_LRS" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_OsDisk_1_6d72b805e50e4de6830303c5055077fc", + storageAccountType: "Standard_LRS", }, osType: "Windows", vhd: { - uri: - "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd" + uri: "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd", }, - writeAcceleratorEnabled: true - } + writeAcceleratorEnabled: true, + }, }, tags: {}, - userData: "RXhhbXBsZSBVc2VyRGF0YQ==" + userData: "RXhhbXBsZSBVc2VyRGF0YQ==", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -459,7 +433,7 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { resourceGroupName, vmScaleSetName, instanceId, - parameters + parameters, ); console.log(result); } @@ -484,7 +458,7 @@ async function virtualMachineScaleSetVMUpdateMinimumSetGen() { resourceGroupName, vmScaleSetName, instanceId, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsApproveRollingUpgradeSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsApproveRollingUpgradeSample.ts index 62de4563a48c..5cdc077b4ca7 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsApproveRollingUpgradeSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsApproveRollingUpgradeSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,18 +31,19 @@ async function virtualMachineScaleSetApproveRollingUpgrade() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "vmssToApproveRollingUpgradeOn"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["0", "1", "2"] + instanceIds: ["0", "1", "2"], }; const options: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams = { - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginApproveRollingUpgradeAndWait( - resourceGroupName, - vmScaleSetName, - options - ); + const result = + await client.virtualMachineScaleSets.beginApproveRollingUpgradeAndWait( + resourceGroupName, + vmScaleSetName, + options, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts index a1468249a927..139a569554f0 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VMScaleSetConvertToSinglePlacementGroupInput, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -30,15 +30,16 @@ async function virtualMachineScaleSetConvertToSinglePlacementGroupMaximumSetGen( process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; const parameters: VMScaleSetConvertToSinglePlacementGroupInput = { - activePlacementGroupId: "aaaaaaaaaaaaaaaaaaaaaaaaaaa" + activePlacementGroupId: "aaaaaaaaaaaaaaaaaaaaaaaaaaa", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.convertToSinglePlacementGroup( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.convertToSinglePlacementGroup( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -57,11 +58,12 @@ async function virtualMachineScaleSetConvertToSinglePlacementGroupMinimumSetGen( const parameters: VMScaleSetConvertToSinglePlacementGroupInput = {}; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.convertToSinglePlacementGroup( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.convertToSinglePlacementGroup( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsCreateOrUpdateSample.ts index 24c1090c5ba6..b9c0a8ea33b2 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSet, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -39,8 +39,8 @@ async function createAVmssWithAnExtensionThatHasSuppressFailuresEnabled() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, extensionProfile: { extensions: [ @@ -51,9 +51,9 @@ async function createAVmssWithAnExtensionThatHasSuppressFailuresEnabled() { publisher: "{extension-Publisher}", settings: {}, suppressFailures: true, - typeHandlerVersion: "{handler-version}" - } - ] + typeHandlerVersion: "{handler-version}", + }, + ], }, networkProfile: { networkInterfaceConfigurations: [ @@ -64,42 +64,42 @@ async function createAVmssWithAnExtensionThatHasSuppressFailuresEnabled() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -125,8 +125,8 @@ async function createAVmssWithAnExtensionWithProtectedSettingsFromKeyVault() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, extensionProfile: { extensions: [ @@ -138,15 +138,14 @@ async function createAVmssWithAnExtensionWithProtectedSettingsFromKeyVault() { secretUrl: "https://kvName.vault.azure.net/secrets/secretName/79b88b3a6f5440ffb2e73e44a0db712e", sourceVault: { - id: - "/subscriptions/a53f7094-a16c-47af-abe4-b05c05d0d79a/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/kvName" - } + id: "/subscriptions/a53f7094-a16c-47af-abe4-b05c05d0d79a/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/kvName", + }, }, publisher: "{extension-Publisher}", settings: {}, - typeHandlerVersion: "{handler-version}" - } - ] + typeHandlerVersion: "{handler-version}", + }, + ], }, networkProfile: { networkInterfaceConfigurations: [ @@ -157,42 +156,42 @@ async function createAVmssWithAnExtensionWithProtectedSettingsFromKeyVault() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -223,19 +222,18 @@ async function createACustomImageScaleSetFromAnUnmanagedGeneralizedOSImage() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { osDisk: { @@ -243,20 +241,20 @@ async function createACustomImageScaleSetFromAnUnmanagedGeneralizedOSImage() { caching: "ReadWrite", createOption: "FromImage", image: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd" - } - } - } - } + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd", + }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -287,26 +285,25 @@ async function createAPlatformImageScaleSetWithUnmanagedOSDisks() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "osDisk", @@ -317,19 +314,20 @@ async function createAPlatformImageScaleSetWithUnmanagedOSDisks() { "http://{existing-storage-account-name-1}.blob.core.windows.net/vhdContainer", "http://{existing-storage-account-name-2}.blob.core.windows.net/vhdContainer", "http://{existing-storage-account-name-3}.blob.core.windows.net/vhdContainer", - "http://{existing-storage-account-name-4}.blob.core.windows.net/vhdContainer" - ] - } - } - } + "http://{existing-storage-account-name-4}.blob.core.windows.net/vhdContainer", + ], + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -360,40 +358,39 @@ async function createAScaleSetFromACustomImage() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -424,40 +421,39 @@ async function createAScaleSetFromAGeneralizedSharedImage() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -488,35 +484,34 @@ async function createAScaleSetFromASpecializedSharedImage() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -549,12 +544,11 @@ async function createAScaleSetWhereNicConfigHasDisableTcpStateTrackingProperty() { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true + primary: true, }, { name: "{nicConfig2-name}", @@ -567,40 +561,39 @@ async function createAScaleSetWhereNicConfigHasDisableTcpStateTrackingProperty() primary: true, privateIPAddressVersion: "IPv4", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-fpga-subnet-name2}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-fpga-subnet-name2}", + }, + }, ], - primary: false - } - ] + primary: false, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -632,13 +625,13 @@ async function createAScaleSetWithApplicationProfile() { packageReferenceId: "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdb/resourceGroups/myresourceGroupName2/providers/Microsoft.Compute/galleries/myGallery1/applications/MyApplication1/versions/1.0", tags: "myTag1", - treatFailureAsDeploymentFailure: true + treatFailureAsDeploymentFailure: true, }, { packageReferenceId: - "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdg/resourceGroups/myresourceGroupName3/providers/Microsoft.Compute/galleries/myGallery2/applications/MyApplication2/versions/1.1" - } - ] + "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdg/resourceGroups/myresourceGroupName3/providers/Microsoft.Compute/galleries/myGallery2/applications/MyApplication2/versions/1.1", + }, + ], }, networkProfile: { networkInterfaceConfigurations: [ @@ -649,42 +642,42 @@ async function createAScaleSetWithApplicationProfile() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -707,7 +700,7 @@ async function createAScaleSetWithDiskControllerType() { upgradePolicy: { mode: "Manual" }, virtualMachineProfile: { hardwareProfile: { - vmSizeProperties: { vCPUsAvailable: 1, vCPUsPerCore: 1 } + vmSizeProperties: { vCPUsAvailable: 1, vCPUsPerCore: 1 }, }, networkProfile: { networkInterfaceConfigurations: [ @@ -718,19 +711,18 @@ async function createAScaleSetWithDiskControllerType() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { diskControllerType: "NVMe", @@ -738,24 +730,25 @@ async function createAScaleSetWithDiskControllerType() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, - userData: "RXhhbXBsZSBVc2VyRGF0YQ==" - } + userData: "RXhhbXBsZSBVc2VyRGF0YQ==", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -786,19 +779,18 @@ async function createAScaleSetWithDiskEncryptionSetResourceInOSDiskAndDataDisk() { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { dataDisks: [ @@ -809,38 +801,36 @@ async function createAScaleSetWithDiskEncryptionSetResourceInOSDiskAndDataDisk() lun: 0, managedDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - storageAccountType: "Standard_LRS" - } - } + storageAccountType: "Standard_LRS", + }, + }, ], imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", managedDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - storageAccountType: "Standard_LRS" - } - } - } - } + storageAccountType: "Standard_LRS", + }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -871,12 +861,11 @@ async function createAScaleSetWithFpgaNetworkInterfaces() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true + primary: true, }, { name: "{fpgaNic-Name}", @@ -889,40 +878,39 @@ async function createAScaleSetWithFpgaNetworkInterfaces() { primary: true, privateIPAddressVersion: "IPv4", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-fpga-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-fpga-subnet-name}", + }, + }, ], - primary: false - } - ] + primary: false, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -944,7 +932,7 @@ async function createAScaleSetWithHostEncryptionUsingEncryptionAtHostProperty() plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, sku: { name: "Standard_DS1_v2", capacity: 3, tier: "Standard" }, upgradePolicy: { mode: "Manual" }, @@ -958,19 +946,18 @@ async function createAScaleSetWithHostEncryptionUsingEncryptionAtHostProperty() { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, securityProfile: { encryptionAtHost: true }, storageProfile: { @@ -978,23 +965,24 @@ async function createAScaleSetWithHostEncryptionUsingEncryptionAtHostProperty() offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1029,12 +1017,11 @@ async function createAScaleSetWithNetworkInterfacesWithPublicIPAddressDnsSetting { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true + primary: true, }, { name: "{nicConfig2-name}", @@ -1050,45 +1037,44 @@ async function createAScaleSetWithNetworkInterfacesWithPublicIPAddressDnsSetting name: "publicip", dnsSettings: { domainNameLabel: "vmsstestlabel01", - domainNameLabelScope: "NoReuse" + domainNameLabelScope: "NoReuse", }, - idleTimeoutInMinutes: 10 + idleTimeoutInMinutes: 10, }, subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-fpga-subnet-name2}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-fpga-subnet-name2}", + }, + }, ], - primary: false - } - ] + primary: false, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1119,45 +1105,45 @@ async function createAScaleSetWithOSImageScheduledEventsEnabled() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, scheduledEventsProfile: { - osImageNotificationProfile: { enable: true, notBeforeTimeout: "PT15M" } + osImageNotificationProfile: { enable: true, notBeforeTimeout: "PT15M" }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1188,45 +1174,45 @@ async function createAScaleSetWithProxyAgentSettingsOfEnabledAndMode() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, securityProfile: { - proxyAgentSettings: { enabled: true, mode: "Enforce" } + proxyAgentSettings: { enabled: true, mode: "Enforce" }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2019-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "StandardSSD_LRS" } - } - } - } + managedDisk: { storageAccountType: "StandardSSD_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1258,42 +1244,42 @@ async function createAScaleSetWithResilientVMCreationEnabled() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1325,42 +1311,42 @@ async function createAScaleSetWithResilientVMDeletionEnabled() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1382,7 +1368,7 @@ async function createAScaleSetWithSecurityPostureReference() { sku: { name: "Standard_A1", capacity: 3, tier: "Standard" }, upgradePolicy: { automaticOSUpgradePolicy: { enableAutomaticOSUpgrade: true }, - mode: "Automatic" + mode: "Automatic", }, virtualMachineProfile: { networkProfile: { @@ -1394,46 +1380,45 @@ async function createAScaleSetWithSecurityPostureReference() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, securityPostureReference: { - id: - "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest" + id: "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2022-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "osDisk", caching: "ReadWrite", - createOption: "FromImage" - } - } - } + createOption: "FromImage", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1464,49 +1449,49 @@ async function createAScaleSetWithSecurityTypeAsConfidentialVM() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, securityProfile: { securityType: "ConfidentialVM", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "2019-datacenter-cvm", publisher: "MicrosoftWindowsServer", sku: "windows-cvm", - version: "17763.2183.2109130127" + version: "17763.2183.2109130127", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", managedDisk: { securityProfile: { securityEncryptionType: "VMGuestStateOnly" }, - storageAccountType: "StandardSSD_LRS" - } - } - } - } + storageAccountType: "StandardSSD_LRS", + }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1537,49 +1522,49 @@ async function createAScaleSetWithSecurityTypeAsConfidentialVMAndNonPersistedTpm { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, securityProfile: { securityType: "ConfidentialVM", - uefiSettings: { secureBootEnabled: false, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: false, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "2022-datacenter-cvm", publisher: "UbuntuServer", sku: "linux-cvm", - version: "17763.2183.2109130127" + version: "17763.2183.2109130127", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", managedDisk: { securityProfile: { securityEncryptionType: "NonPersistedTPM" }, - storageAccountType: "StandardSSD_LRS" - } - } - } - } + storageAccountType: "StandardSSD_LRS", + }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1601,7 +1586,7 @@ async function createAScaleSetWithServiceArtifactReference() { sku: { name: "Standard_A1", capacity: 3, tier: "Standard" }, upgradePolicy: { automaticOSUpgradePolicy: { enableAutomaticOSUpgrade: true }, - mode: "Automatic" + mode: "Automatic", }, virtualMachineProfile: { networkProfile: { @@ -1613,46 +1598,45 @@ async function createAScaleSetWithServiceArtifactReference() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, serviceArtifactReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/serviceArtifacts/serviceArtifactName/vmArtifactsProfiles/vmArtifactsProfilesName" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/serviceArtifacts/serviceArtifactName/vmArtifactsProfiles/vmArtifactsProfilesName", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2022-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "osDisk", caching: "ReadWrite", - createOption: "FromImage" - } - } - } + createOption: "FromImage", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1683,46 +1667,46 @@ async function createAScaleSetWithUefiSettingsOfSecureBootAndVTpm() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, securityProfile: { securityType: "TrustedLaunch", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "windowsserver-gen2preview-preview", publisher: "MicrosoftWindowsServer", sku: "windows10-tvm", - version: "18363.592.2001092016" + version: "18363.592.2001092016", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "StandardSSD_LRS" } - } - } - } + managedDisk: { storageAccountType: "StandardSSD_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1744,7 +1728,7 @@ async function createAScaleSetWithAMarketplaceImagePlan() { plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, sku: { name: "Standard_D1_v2", capacity: 3, tier: "Standard" }, upgradePolicy: { mode: "Manual" }, @@ -1758,42 +1742,42 @@ async function createAScaleSetWithAMarketplaceImagePlan() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1825,47 +1809,46 @@ async function createAScaleSetWithAnAzureApplicationGateway() { name: "{vmss-name}", applicationGatewayBackendAddressPools: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/applicationGateways/{existing-application-gateway-name}/backendAddressPools/{existing-backend-address-pool-name}" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/applicationGateways/{existing-application-gateway-name}/backendAddressPools/{existing-backend-address-pool-name}", + }, ], subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1897,57 +1880,55 @@ async function createAScaleSetWithAnAzureLoadBalancer() { name: "{vmss-name}", loadBalancerBackendAddressPools: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/{existing-load-balancer-name}/backendAddressPools/{existing-backend-address-pool-name}" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/{existing-load-balancer-name}/backendAddressPools/{existing-backend-address-pool-name}", + }, ], loadBalancerInboundNatPools: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/{existing-load-balancer-name}/inboundNatPools/{existing-nat-pool-name}" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/{existing-load-balancer-name}/inboundNatPools/{existing-nat-pool-name}", + }, ], publicIPAddressConfiguration: { name: "{vmss-name}", - publicIPAddressVersion: "IPv4" + publicIPAddressVersion: "IPv4", }, subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1979,42 +1960,42 @@ async function createAScaleSetWithAutomaticRepairsEnabled() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2040,8 +2021,8 @@ async function createAScaleSetWithBootDiagnostics() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, networkProfile: { networkInterfaceConfigurations: [ @@ -2052,42 +2033,42 @@ async function createAScaleSetWithBootDiagnostics() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2118,47 +2099,47 @@ async function createAScaleSetWithEmptyDataDisksOnEachVM() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { dataDisks: [ { createOption: "Empty", diskSizeGB: 1023, lun: 0 }, - { createOption: "Empty", diskSizeGB: 1023, lun: 1 } + { createOption: "Empty", diskSizeGB: 1023, lun: 1 }, ], imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", diskSizeGB: 512, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2180,7 +2161,7 @@ async function createAScaleSetWithEphemeralOSDisksUsingPlacementProperty() { plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, sku: { name: "Standard_DS1_v2", capacity: 3, tier: "Standard" }, upgradePolicy: { mode: "Manual" }, @@ -2194,43 +2175,43 @@ async function createAScaleSetWithEphemeralOSDisksUsingPlacementProperty() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", diffDiskSettings: { option: "Local", placement: "ResourceDisk" }, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2252,7 +2233,7 @@ async function createAScaleSetWithEphemeralOSDisks() { plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, sku: { name: "Standard_DS1_v2", capacity: 3, tier: "Standard" }, upgradePolicy: { mode: "Manual" }, @@ -2266,43 +2247,43 @@ async function createAScaleSetWithEphemeralOSDisks() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", diffDiskSettings: { option: "Local" }, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2328,8 +2309,8 @@ async function createAScaleSetWithExtensionTimeBudget() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, extensionProfile: { extensionsTimeBudget: "PT1H20M", @@ -2340,9 +2321,9 @@ async function createAScaleSetWithExtensionTimeBudget() { autoUpgradeMinorVersion: false, publisher: "{extension-Publisher}", settings: {}, - typeHandlerVersion: "{handler-version}" - } - ] + typeHandlerVersion: "{handler-version}", + }, + ], }, networkProfile: { networkInterfaceConfigurations: [ @@ -2353,42 +2334,42 @@ async function createAScaleSetWithExtensionTimeBudget() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2420,42 +2401,42 @@ async function createAScaleSetWithManagedBootDiagnostics() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2486,42 +2467,42 @@ async function createAScaleSetWithPasswordAuthentication() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2552,42 +2533,42 @@ async function createAScaleSetWithPremiumStorage() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2608,7 +2589,7 @@ async function createAScaleSetWithPriorityMixPolicy() { orchestrationMode: "Flexible", priorityMixPolicy: { baseRegularPriorityCount: 4, - regularPriorityPercentageAboveBase: 50 + regularPriorityPercentageAboveBase: 50, }, singlePlacementGroup: false, sku: { name: "Standard_A8m_v2", capacity: 10, tier: "Standard" }, @@ -2624,19 +2605,18 @@ async function createAScaleSetWithPriorityMixPolicy() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, priority: "Spot", storageProfile: { @@ -2644,23 +2624,24 @@ async function createAScaleSetWithPriorityMixPolicy() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2692,42 +2673,42 @@ async function createAScaleSetWithScaleInPolicy() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2761,19 +2742,18 @@ async function createAScaleSetWithSpotRestorePolicy() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, priority: "Spot", storageProfile: { @@ -2781,23 +2761,24 @@ async function createAScaleSetWithSpotRestorePolicy() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2828,14 +2809,13 @@ async function createAScaleSetWithSshAuthentication() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminUsername: "{your-username}", @@ -2847,34 +2827,35 @@ async function createAScaleSetWithSshAuthentication() { { path: "/home/{your-username}/.ssh/authorized_keys", keyData: - "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" - } - ] - } - } + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1", + }, + ], + }, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2905,45 +2886,48 @@ async function createAScaleSetWithTerminateScheduledEventsEnabled() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, scheduledEventsProfile: { - terminateNotificationProfile: { enable: true, notBeforeTimeout: "PT5M" } + terminateNotificationProfile: { + enable: true, + notBeforeTimeout: "PT5M", + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2974,43 +2958,43 @@ async function createAScaleSetWithUserData() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, - userData: "RXhhbXBsZSBVc2VyRGF0YQ==" - } + userData: "RXhhbXBsZSBVc2VyRGF0YQ==", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -3041,48 +3025,48 @@ async function createAScaleSetWithVirtualMachinesInDifferentZones() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { dataDisks: [ { createOption: "Empty", diskSizeGB: 1023, lun: 0 }, - { createOption: "Empty", diskSizeGB: 1023, lun: 1 } + { createOption: "Empty", diskSizeGB: 1023, lun: 1 }, ], imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", diskSizeGB: 512, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }, - zones: ["1", "3"] + zones: ["1", "3"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -3105,7 +3089,7 @@ async function createAScaleSetWithVMSizeProperties() { upgradePolicy: { mode: "Manual" }, virtualMachineProfile: { hardwareProfile: { - vmSizeProperties: { vCPUsAvailable: 1, vCPUsPerCore: 1 } + vmSizeProperties: { vCPUsAvailable: 1, vCPUsPerCore: 1 }, }, networkProfile: { networkInterfaceConfigurations: [ @@ -3116,43 +3100,43 @@ async function createAScaleSetWithVMSizeProperties() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, - userData: "RXhhbXBsZSBVc2VyRGF0YQ==" - } + userData: "RXhhbXBsZSBVc2VyRGF0YQ==", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -3176,9 +3160,8 @@ async function createOrUpdateAScaleSetWithCapacityReservation() { virtualMachineProfile: { capacityReservation: { capacityReservationGroup: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/CapacityReservationGroups/{crgName}" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/CapacityReservationGroups/{crgName}", + }, }, networkProfile: { networkInterfaceConfigurations: [ @@ -3189,42 +3172,42 @@ async function createOrUpdateAScaleSetWithCapacityReservation() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeallocateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeallocateSample.ts index cadf8fe95290..e4ab362d752f 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeallocateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeallocateSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsDeallocateOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,18 +32,18 @@ async function virtualMachineScaleSetDeallocateMaximumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaa"; const hibernate = true; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsDeallocateOptionalParams = { hibernate, - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginDeallocateAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -64,7 +64,7 @@ async function virtualMachineScaleSetDeallocateMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginDeallocateAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeleteInstancesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeleteInstancesSample.ts index 43b4a6e0338e..5656c5c0167b 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeleteInstancesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeleteInstancesSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceRequiredIDs, VirtualMachineScaleSetsDeleteInstancesOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,19 +32,20 @@ async function virtualMachineScaleSetDeleteInstancesMaximumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaa"; const forceDeletion = true; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsDeleteInstancesOptionalParams = { - forceDeletion + forceDeletion, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginDeleteInstancesAndWait( - resourceGroupName, - vmScaleSetName, - vmInstanceIDs, - options - ); + const result = + await client.virtualMachineScaleSets.beginDeleteInstancesAndWait( + resourceGroupName, + vmScaleSetName, + vmInstanceIDs, + options, + ); console.log(result); } @@ -61,15 +62,16 @@ async function virtualMachineScaleSetDeleteInstancesMinimumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginDeleteInstancesAndWait( - resourceGroupName, - vmScaleSetName, - vmInstanceIDs - ); + const result = + await client.virtualMachineScaleSets.beginDeleteInstancesAndWait( + resourceGroupName, + vmScaleSetName, + vmInstanceIDs, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeleteSample.ts index b69787c228d7..52c96828424e 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeleteSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetsDeleteOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,14 +31,14 @@ async function forceDeleteAVMScaleSet() { const vmScaleSetName = "myvmScaleSet"; const forceDeletion = true; const options: VirtualMachineScaleSetsDeleteOptionalParams = { - forceDeletion + forceDeletion, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginDeleteAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts index cc1a536cd4fe..b0696a161564 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts @@ -29,11 +29,12 @@ async function virtualMachineScaleSetForceRecoveryServiceFabricPlatformUpdateDom const platformUpdateDomain = 30; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.forceRecoveryServiceFabricPlatformUpdateDomainWalk( - resourceGroupName, - vmScaleSetName, - platformUpdateDomain - ); + const result = + await client.virtualMachineScaleSets.forceRecoveryServiceFabricPlatformUpdateDomainWalk( + resourceGroupName, + vmScaleSetName, + platformUpdateDomain, + ); console.log(result); } @@ -52,11 +53,12 @@ async function virtualMachineScaleSetForceRecoveryServiceFabricPlatformUpdateDom const platformUpdateDomain = 9; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.forceRecoveryServiceFabricPlatformUpdateDomainWalk( - resourceGroupName, - vmScaleSetName, - platformUpdateDomain - ); + const result = + await client.virtualMachineScaleSets.forceRecoveryServiceFabricPlatformUpdateDomainWalk( + resourceGroupName, + vmScaleSetName, + platformUpdateDomain, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetInstanceViewSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetInstanceViewSample.ts index c6401aff521a..0be4b5ed0ca5 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetInstanceViewSample.ts @@ -30,7 +30,7 @@ async function virtualMachineScaleSetGetInstanceViewMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.getInstanceView( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineScaleSetGetInstanceViewMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.getInstanceView( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts index 3e8c4a0d3ea1..4cc783727ca6 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts @@ -31,7 +31,7 @@ async function virtualMachineScaleSetGetOSUpgradeHistoryMaximumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.listOSUpgradeHistory( resourceGroupName, - vmScaleSetName + vmScaleSetName, )) { resArray.push(item); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetGetOSUpgradeHistoryMinimumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.listOSUpgradeHistory( resourceGroupName, - vmScaleSetName + vmScaleSetName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetSample.ts index cc41549c60cc..aab817379d35 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function getVMScaleSetVMWithDiskControllerType() { const result = await client.virtualMachineScaleSets.get( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -57,7 +57,7 @@ async function getAVirtualMachineScaleSet() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.get( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } @@ -78,7 +78,7 @@ async function getAVirtualMachineScaleSetPlacedOnADedicatedHostGroupThroughAutom const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.get( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } @@ -102,7 +102,7 @@ async function getAVirtualMachineScaleSetWithUserData() { const result = await client.virtualMachineScaleSets.get( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListByLocationSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListByLocationSample.ts index 482c0aaa56bf..8f158d60d364 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListByLocationSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListByLocationSample.ts @@ -28,7 +28,7 @@ async function listsAllTheVMScaleSetsUnderTheSpecifiedSubscriptionForTheSpecifie const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.listByLocation( - location + location, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListSample.ts index ef1a4d84817d..8b5a51a53d2a 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListSample.ts @@ -29,7 +29,7 @@ async function virtualMachineScaleSetListMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.list( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } @@ -51,7 +51,7 @@ async function virtualMachineScaleSetListMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.list( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListSkusSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListSkusSample.ts index ac6f0f401d18..82d23dff4a2b 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListSkusSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListSkusSample.ts @@ -31,7 +31,7 @@ async function virtualMachineScaleSetListSkusMaximumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.listSkus( resourceGroupName, - vmScaleSetName + vmScaleSetName, )) { resArray.push(item); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetListSkusMinimumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.listSkus( resourceGroupName, - vmScaleSetName + vmScaleSetName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsPerformMaintenanceSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsPerformMaintenanceSample.ts index fe1f03a88c68..20c856c7fa22 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsPerformMaintenanceSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsPerformMaintenanceSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsPerformMaintenanceOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,18 +31,19 @@ async function virtualMachineScaleSetPerformMaintenanceMaximumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsPerformMaintenanceOptionalParams = { - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginPerformMaintenanceAndWait( - resourceGroupName, - vmScaleSetName, - options - ); + const result = + await client.virtualMachineScaleSets.beginPerformMaintenanceAndWait( + resourceGroupName, + vmScaleSetName, + options, + ); console.log(result); } @@ -60,10 +61,11 @@ async function virtualMachineScaleSetPerformMaintenanceMinimumSetGen() { const vmScaleSetName = "aa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginPerformMaintenanceAndWait( - resourceGroupName, - vmScaleSetName - ); + const result = + await client.virtualMachineScaleSets.beginPerformMaintenanceAndWait( + resourceGroupName, + vmScaleSetName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsPowerOffSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsPowerOffSample.ts index fce76fa99f85..5d0ed3b593bf 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsPowerOffSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsPowerOffSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsPowerOffOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,18 +32,18 @@ async function virtualMachineScaleSetPowerOffMaximumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaaaa"; const skipShutdown = true; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsPowerOffOptionalParams = { skipShutdown, - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginPowerOffAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -64,7 +64,7 @@ async function virtualMachineScaleSetPowerOffMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginPowerOffAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReapplySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReapplySample.ts index 1c3863a32c1e..e3cc62f3b6c5 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReapplySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReapplySample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetsReapplyMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginReapplyAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetsReapplyMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginReapplyAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsRedeploySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsRedeploySample.ts index bac68cc788d3..6b648e7063ad 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsRedeploySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsRedeploySample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsRedeployOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,17 +31,17 @@ async function virtualMachineScaleSetRedeployMaximumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsRedeployOptionalParams = { - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginRedeployAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -62,7 +62,7 @@ async function virtualMachineScaleSetRedeployMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginRedeployAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReimageAllSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReimageAllSample.ts index 81aa76c55b76..01421e27086f 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReimageAllSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReimageAllSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsReimageAllOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,17 +31,17 @@ async function virtualMachineScaleSetReimageAllMaximumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsReimageAllOptionalParams = { - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginReimageAllAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -62,7 +62,7 @@ async function virtualMachineScaleSetReimageAllMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginReimageAllAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReimageSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReimageSample.ts index d2d27e5a275a..4bfd776d5175 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReimageSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReimageSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetReimageParameters, VirtualMachineScaleSetsReimageOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,17 +32,17 @@ async function virtualMachineScaleSetReimageMaximumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaa"; const vmScaleSetReimageInput: VirtualMachineScaleSetReimageParameters = { instanceIds: ["aaaaaaaaaa"], - tempDisk: true + tempDisk: true, }; const options: VirtualMachineScaleSetsReimageOptionalParams = { - vmScaleSetReimageInput + vmScaleSetReimageInput, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginReimageAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -63,7 +63,7 @@ async function virtualMachineScaleSetReimageMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginReimageAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsRestartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsRestartSample.ts index 310b99a21fb1..f2006349f0ce 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsRestartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsRestartSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsRestartOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,17 +31,17 @@ async function virtualMachineScaleSetRestartMaximumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsRestartOptionalParams = { - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginRestartAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -62,7 +62,7 @@ async function virtualMachineScaleSetRestartMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginRestartAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts index 2250fe5f7be3..f9562b55e0fa 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { OrchestrationServiceStateInput, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,15 +31,16 @@ async function virtualMachineScaleSetOrchestrationServiceStateMaximumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaa"; const parameters: OrchestrationServiceStateInput = { action: "Resume", - serviceName: "AutomaticRepairs" + serviceName: "AutomaticRepairs", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginSetOrchestrationServiceStateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginSetOrchestrationServiceStateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -57,15 +58,16 @@ async function virtualMachineScaleSetOrchestrationServiceStateMinimumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaa"; const parameters: OrchestrationServiceStateInput = { action: "Resume", - serviceName: "AutomaticRepairs" + serviceName: "AutomaticRepairs", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginSetOrchestrationServiceStateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginSetOrchestrationServiceStateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsStartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsStartSample.ts index 41f57282a891..6347911d73cc 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsStartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsStartSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsStartOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,7 +31,7 @@ async function virtualMachineScaleSetStartMaximumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsStartOptionalParams = { vmInstanceIDs }; const credential = new DefaultAzureCredential(); @@ -39,7 +39,7 @@ async function virtualMachineScaleSetStartMaximumSetGen() { const result = await client.virtualMachineScaleSets.beginStartAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -60,7 +60,7 @@ async function virtualMachineScaleSetStartMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginStartAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsUpdateInstancesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsUpdateInstancesSample.ts index 310a28f3459c..7178417d9db1 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsUpdateInstancesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsUpdateInstancesSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMInstanceRequiredIDs, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -30,15 +30,16 @@ async function virtualMachineScaleSetUpdateInstancesMaximumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginUpdateInstancesAndWait( - resourceGroupName, - vmScaleSetName, - vmInstanceIDs - ); + const result = + await client.virtualMachineScaleSets.beginUpdateInstancesAndWait( + resourceGroupName, + vmScaleSetName, + vmInstanceIDs, + ); console.log(result); } @@ -55,15 +56,16 @@ async function virtualMachineScaleSetUpdateInstancesMinimumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginUpdateInstancesAndWait( - resourceGroupName, - vmScaleSetName, - vmInstanceIDs - ); + const result = + await client.virtualMachineScaleSets.beginUpdateInstancesAndWait( + resourceGroupName, + vmScaleSetName, + vmInstanceIDs, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsUpdateSample.ts index 2456cfe0d345..7b328300bb1e 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -35,18 +35,17 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { doNotRunExtensionsOnOverprovisionedVMs: true, identity: { type: "SystemAssigned", - userAssignedIdentities: { key3951: {} } + userAssignedIdentities: { key3951: {} }, }, overprovision: true, plan: { name: "windows2016", product: "windows-data-science-vm", promotionCode: "aaaaaaaaaa", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, proximityPlacementGroup: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", }, scaleInPolicy: { forceDeletion: true, rules: ["OldestVM"] }, singlePlacementGroup: true, @@ -56,7 +55,7 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { automaticOSUpgradePolicy: { disableAutomaticRollback: true, enableAutomaticOSUpgrade: true, - osRollingUpgradeDeferral: true + osRollingUpgradeDeferral: true, }, mode: "Manual", rollingUpgradePolicy: { @@ -67,8 +66,8 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { maxUnhealthyUpgradedInstancePercent: 98, pauseTimeBetweenBatches: "aaaaaaaaaaaaaaa", prioritizeUnhealthyInstances: true, - rollbackFailedInstancesOnPolicyBreach: true - } + rollbackFailedInstancesOnPolicyBreach: true, + }, }, virtualMachineProfile: { billingProfile: { maxPrice: -1 }, @@ -76,8 +75,8 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, extensionProfile: { extensionsTimeBudget: "PT1H20M", @@ -93,15 +92,14 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { publisher: "{extension-Publisher}", settings: {}, suppressFailures: true, - typeHandlerVersion: "{handler-version}" - } - ] + typeHandlerVersion: "{handler-version}", + }, + ], }, licenseType: "aaaaaaaaaaaa", networkProfile: { healthProbe: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123", }, networkApiVersion: "2020-11-01", networkInterfaceConfigurations: [ @@ -117,27 +115,23 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { name: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", applicationGatewayBackendAddressPools: [ { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, ], applicationSecurityGroups: [ { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, ], loadBalancerBackendAddressPools: [ { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, ], loadBalancerInboundNatPools: [ { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, ], primary: true, privateIPAddressVersion: "IPv4", @@ -145,21 +139,19 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { name: "a", deleteOption: "Delete", dnsSettings: { domainNameLabel: "aaaaaaaaaaaaaaaaaa" }, - idleTimeoutInMinutes: 3 + idleTimeoutInMinutes: 3, }, subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123", + }, + }, ], networkSecurityGroup: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", }, - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { customData: "aaaaaaaaaaaaaaaaaaaaaaaaaa", @@ -167,7 +159,7 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { disablePasswordAuthentication: true, patchSettings: { assessmentMode: "ImageDefault", - patchMode: "ImageDefault" + patchMode: "ImageDefault", }, provisionVMAgent: true, ssh: { @@ -175,24 +167,23 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { { path: "/home/{your-username}/.ssh/authorized_keys", keyData: - "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" - } - ] - } + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1", + }, + ], + }, }, secrets: [ { sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, vaultCertificates: [ { certificateStore: "aaaaaaaaaaaaaaaaaaaaaaaaa", - certificateUrl: "aaaaaaa" - } - ] - } + certificateUrl: "aaaaaaa", + }, + ], + }, ], windowsConfiguration: { additionalUnattendContent: [ @@ -200,35 +191,35 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { componentName: "Microsoft-Windows-Shell-Setup", content: "aaaaaaaaaaaaaaaaaaaa", passName: "OobeSystem", - settingName: "AutoLogon" - } + settingName: "AutoLogon", + }, ], enableAutomaticUpdates: true, patchSettings: { assessmentMode: "ImageDefault", automaticByPlatformSettings: { rebootSetting: "Never" }, enableHotpatching: true, - patchMode: "AutomaticByPlatform" + patchMode: "AutomaticByPlatform", }, provisionVMAgent: true, timeZone: "aaaaaaaaaaaaaaaa", winRM: { listeners: [ - { certificateUrl: "aaaaaaaaaaaaaaaaaaaaaa", protocol: "Http" } - ] - } - } + { certificateUrl: "aaaaaaaaaaaaaaaaaaaaaa", protocol: "Http" }, + ], + }, + }, }, scheduledEventsProfile: { terminateNotificationProfile: { enable: true, - notBeforeTimeout: "PT10M" - } + notBeforeTimeout: "PT10M", + }, }, securityProfile: { encryptionAtHost: true, securityType: "TrustedLaunch", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, storageProfile: { dataDisks: [ @@ -242,10 +233,10 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { lun: 26, managedDisk: { diskEncryptionSet: { id: "aaaaaaaaaaaa" }, - storageAccountType: "Standard_LRS" + storageAccountType: "Standard_LRS", }, - writeAcceleratorEnabled: true - } + writeAcceleratorEnabled: true, + }, ], imageReference: { id: "aaaaaaaaaaaaaaaaaaa", @@ -253,32 +244,31 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { publisher: "MicrosoftWindowsServer", sharedGalleryImageId: "aaaaaa", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", diskSizeGB: 6, image: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd" + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd", }, managedDisk: { diskEncryptionSet: { id: "aaaaaaaaaaaa" }, - storageAccountType: "Standard_LRS" + storageAccountType: "Standard_LRS", }, vhdContainers: ["aa"], - writeAcceleratorEnabled: true - } + writeAcceleratorEnabled: true, + }, }, - userData: "aaaaaaaaaaaaa" - } + userData: "aaaaaaaaaaaaa", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginUpdateAndWait( resourceGroupName, vmScaleSetName, - parameters + parameters, ); console.log(result); } @@ -301,7 +291,7 @@ async function virtualMachineScaleSetUpdateMinimumSetGen() { const result = await client.virtualMachineScaleSets.beginUpdateAndWait( resourceGroupName, vmScaleSetName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesAssessPatchesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesAssessPatchesSample.ts index 4b22c5e47df6..7e144e4ac790 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesAssessPatchesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesAssessPatchesSample.ts @@ -30,7 +30,7 @@ async function assessPatchStateOfAVirtualMachine() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginAssessPatchesAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesAttachDetachDataDisksSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesAttachDetachDataDisksSample.ts index a6ae4d63ca6d..32db8c3aa8d5 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesAttachDetachDataDisksSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesAttachDetachDataDisksSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { AttachDetachDataDisksRequest, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,33 +34,33 @@ async function virtualMachineAttachDetachDataDisksMaximumSetGen() { { diskId: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", - lun: 1 + lun: 1, }, { diskId: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_2_disk3_7d5e664bdafa49baa780eb2d128ff38e", - lun: 2 - } + lun: 2, + }, ], dataDisksToDetach: [ { detachOption: "ForceDetach", diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x" + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x", }, { detachOption: "ForceDetach", diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_4_disk4_4d4e784bdafa49baa780eb2d256ff41z" - } - ] + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_4_disk4_4d4e784bdafa49baa780eb2d256ff41z", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginAttachDetachDataDisksAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -81,22 +81,22 @@ async function virtualMachineAttachDetachDataDisksMinimumSetGen() { dataDisksToAttach: [ { diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d" - } + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", + }, ], dataDisksToDetach: [ { diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x" - } - ] + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginAttachDetachDataDisksAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesCaptureSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesCaptureSample.ts index 8a97b3361028..35474c2a77a6 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesCaptureSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesCaptureSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineCaptureParameters, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,14 +32,14 @@ async function virtualMachineCaptureMaximumSetGen() { const parameters: VirtualMachineCaptureParameters = { destinationContainerName: "aaaaaaa", overwriteVhds: true, - vhdPrefix: "aaaaaaaaa" + vhdPrefix: "aaaaaaaaa", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCaptureAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -59,14 +59,14 @@ async function virtualMachineCaptureMinimumSetGen() { const parameters: VirtualMachineCaptureParameters = { destinationContainerName: "aaaaaaa", overwriteVhds: true, - vhdPrefix: "aaaaaaaaa" + vhdPrefix: "aaaaaaaaa", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCaptureAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesConvertToManagedDisksSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesConvertToManagedDisksSample.ts index 8fba6f5bb4de..49972a1a2cdd 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesConvertToManagedDisksSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesConvertToManagedDisksSample.ts @@ -30,7 +30,7 @@ async function virtualMachineConvertToManagedDisksMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginConvertToManagedDisksAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineConvertToManagedDisksMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginConvertToManagedDisksAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesCreateOrUpdateSample.ts index 72be2de6d0d5..944af4792dcc 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesCreateOrUpdateSample.ts @@ -32,11 +32,10 @@ async function createALinuxVMWithAPatchSettingAssessmentModeOfImageDefault() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -44,30 +43,30 @@ async function createALinuxVMWithAPatchSettingAssessmentModeOfImageDefault() { computerName: "myVM", linuxConfiguration: { patchSettings: { assessmentMode: "ImageDefault" }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "UbuntuServer", publisher: "Canonical", sku: "16.04-LTS", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -90,11 +89,10 @@ async function createALinuxVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndA networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -105,34 +103,34 @@ async function createALinuxVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndA assessmentMode: "AutomaticByPlatform", automaticByPlatformSettings: { bypassPlatformSafetyChecksOnUserSchedule: true, - rebootSetting: "Never" + rebootSetting: "Never", }, - patchMode: "AutomaticByPlatform" + patchMode: "AutomaticByPlatform", }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "UbuntuServer", publisher: "Canonical", sku: "16.04-LTS", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -155,11 +153,10 @@ async function createALinuxVMWithAPatchSettingPatchModeOfImageDefault() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -167,30 +164,30 @@ async function createALinuxVMWithAPatchSettingPatchModeOfImageDefault() { computerName: "myVM", linuxConfiguration: { patchSettings: { patchMode: "ImageDefault" }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "UbuntuServer", publisher: "Canonical", sku: "16.04-LTS", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -213,11 +210,10 @@ async function createALinuxVMWithAPatchSettingsPatchModeAndAssessmentModeSetToAu networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -226,32 +222,32 @@ async function createALinuxVMWithAPatchSettingsPatchModeAndAssessmentModeSetToAu linuxConfiguration: { patchSettings: { assessmentMode: "AutomaticByPlatform", - patchMode: "AutomaticByPlatform" + patchMode: "AutomaticByPlatform", }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "UbuntuServer", publisher: "Canonical", sku: "16.04-LTS", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -274,36 +270,35 @@ async function createAVMFromACommunityGalleryImage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { communityGalleryImageId: - "/CommunityGalleries/galleryPublicName/Images/communityGalleryImageName/Versions/communityGalleryImageVersionName" + "/CommunityGalleries/galleryPublicName/Images/communityGalleryImageName/Versions/communityGalleryImageVersionName", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -326,36 +321,35 @@ async function createAVMFromASharedGalleryImage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { sharedGalleryImageId: - "/SharedGalleries/sharedGalleryName/Images/sharedGalleryImageName/Versions/sharedGalleryImageVersionName" + "/SharedGalleries/sharedGalleryName/Images/sharedGalleryImageName/Versions/sharedGalleryImageVersionName", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -377,24 +371,23 @@ async function createAVMWithDiskControllerType() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, hardwareProfile: { vmSize: "Standard_D4_v3" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { diskControllerType: "NVMe", @@ -402,23 +395,23 @@ async function createAVMWithDiskControllerType() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, - userData: "U29tZSBDdXN0b20gRGF0YQ==" + userData: "U29tZSBDdXN0b20gRGF0YQ==", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -441,46 +434,45 @@ async function createAVMWithHibernationEnabled() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, hardwareProfile: { vmSize: "Standard_D2s_v3" }, location: "eastus2euap", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "{vm-name}" + computerName: "{vm-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2019-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "vmOSdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -503,16 +495,15 @@ async function createAVMWithProxyAgentSettingsOfEnabledAndMode() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, securityProfile: { proxyAgentSettings: { enabled: true, mode: "Enforce" } }, storageProfile: { @@ -520,22 +511,22 @@ async function createAVMWithProxyAgentSettingsOfEnabledAndMode() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2019-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "StandardSSD_LRS" } - } - } + managedDisk: { storageAccountType: "StandardSSD_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -558,42 +549,41 @@ async function createAVMWithUefiSettingsOfSecureBootAndVTpm() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, securityProfile: { securityType: "TrustedLaunch", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "windowsserver-gen2preview-preview", publisher: "MicrosoftWindowsServer", sku: "windows10-tvm", - version: "18363.592.2001092016" + version: "18363.592.2001092016", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "StandardSSD_LRS" } - } - } + managedDisk: { storageAccountType: "StandardSSD_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -615,47 +605,46 @@ async function createAVMWithUserData() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, hardwareProfile: { vmSize: "Standard_D1_v2" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "{vm-name}" + computerName: "{vm-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "vmOSdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, - userData: "RXhhbXBsZSBVc2VyRGF0YQ==" + userData: "RXhhbXBsZSBVc2VyRGF0YQ==", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -677,50 +666,49 @@ async function createAVMWithVMSizeProperties() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, hardwareProfile: { vmSize: "Standard_D4_v3", - vmSizeProperties: { vCPUsAvailable: 1, vCPUsPerCore: 1 } + vmSizeProperties: { vCPUsAvailable: 1, vCPUsPerCore: 1 }, }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, - userData: "U29tZSBDdXN0b20gRGF0YQ==" + userData: "U29tZSBDdXN0b20gRGF0YQ==", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -742,51 +730,51 @@ async function createAVMWithEncryptionIdentity() { identity: { type: "UserAssigned", userAssignedIdentities: { - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/myIdentity": {} - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/myIdentity": + {}, + }, }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, securityProfile: { encryptionIdentity: { userAssignedIdentityResourceId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity" - } + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity", + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2019-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "StandardSSD_LRS" } - } - } + managedDisk: { storageAccountType: "StandardSSD_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -820,40 +808,40 @@ async function createAVMWithNetworkInterfaceConfiguration() { name: "{publicIP-config-name}", deleteOption: "Detach", publicIPAllocationMethod: "Static", - sku: { name: "Basic", tier: "Global" } - } - } + sku: { name: "Basic", tier: "Global" }, + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -888,43 +876,43 @@ async function createAVMWithNetworkInterfaceConfigurationWithPublicIPAddressDnsS deleteOption: "Detach", dnsSettings: { domainNameLabel: "aaaaa", - domainNameLabelScope: "TenantReuse" + domainNameLabelScope: "TenantReuse", }, publicIPAllocationMethod: "Static", - sku: { name: "Basic", tier: "Global" } - } - } + sku: { name: "Basic", tier: "Global" }, + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -947,27 +935,26 @@ async function createAVMWithSecurityTypeConfidentialVMWithCustomerManagedKeys() networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, securityProfile: { securityType: "ConfidentialVM", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "2019-datacenter-cvm", publisher: "MicrosoftWindowsServer", sku: "windows-cvm", - version: "17763.2183.2109130127" + version: "17763.2183.2109130127", }, osDisk: { name: "myVMosdisk", @@ -976,22 +963,21 @@ async function createAVMWithSecurityTypeConfidentialVMWithCustomerManagedKeys() managedDisk: { securityProfile: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - securityEncryptionType: "DiskWithVMGuestState" + securityEncryptionType: "DiskWithVMGuestState", }, - storageAccountType: "StandardSSD_LRS" - } - } - } + storageAccountType: "StandardSSD_LRS", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1014,27 +1000,26 @@ async function createAVMWithSecurityTypeConfidentialVMWithNonPersistedTpmSecurit networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, securityProfile: { securityType: "ConfidentialVM", - uefiSettings: { secureBootEnabled: false, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: false, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "2022-datacenter-cvm", publisher: "UbuntuServer", sku: "linux-cvm", - version: "17763.2183.2109130127" + version: "17763.2183.2109130127", }, osDisk: { name: "myVMosdisk", @@ -1042,17 +1027,17 @@ async function createAVMWithSecurityTypeConfidentialVMWithNonPersistedTpmSecurit createOption: "FromImage", managedDisk: { securityProfile: { securityEncryptionType: "NonPersistedTPM" }, - storageAccountType: "StandardSSD_LRS" - } - } - } + storageAccountType: "StandardSSD_LRS", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1075,27 +1060,26 @@ async function createAVMWithSecurityTypeConfidentialVMWithPlatformManagedKeys() networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, securityProfile: { securityType: "ConfidentialVM", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "2019-datacenter-cvm", publisher: "MicrosoftWindowsServer", sku: "windows-cvm", - version: "17763.2183.2109130127" + version: "17763.2183.2109130127", }, osDisk: { name: "myVMosdisk", @@ -1103,17 +1087,17 @@ async function createAVMWithSecurityTypeConfidentialVMWithPlatformManagedKeys() createOption: "FromImage", managedDisk: { securityProfile: { securityEncryptionType: "DiskWithVMGuestState" }, - storageAccountType: "StandardSSD_LRS" - } - } - } + storageAccountType: "StandardSSD_LRS", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1136,11 +1120,10 @@ async function createAWindowsVMWithAPatchSettingAssessmentModeOfImageDefault() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -1149,30 +1132,30 @@ async function createAWindowsVMWithAPatchSettingAssessmentModeOfImageDefault() { windowsConfiguration: { enableAutomaticUpdates: true, patchSettings: { assessmentMode: "ImageDefault" }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1195,11 +1178,10 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByOS() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -1208,30 +1190,30 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByOS() { windowsConfiguration: { enableAutomaticUpdates: true, patchSettings: { patchMode: "AutomaticByOS" }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1254,11 +1236,10 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -1270,34 +1251,34 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn assessmentMode: "AutomaticByPlatform", automaticByPlatformSettings: { bypassPlatformSafetyChecksOnUserSchedule: false, - rebootSetting: "Never" + rebootSetting: "Never", }, - patchMode: "AutomaticByPlatform" + patchMode: "AutomaticByPlatform", }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1320,11 +1301,10 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -1334,32 +1314,32 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn enableAutomaticUpdates: true, patchSettings: { enableHotpatching: true, - patchMode: "AutomaticByPlatform" + patchMode: "AutomaticByPlatform", }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1382,11 +1362,10 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfManual() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -1395,30 +1374,30 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfManual() { windowsConfiguration: { enableAutomaticUpdates: true, patchSettings: { patchMode: "Manual" }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1441,11 +1420,10 @@ async function createAWindowsVMWithPatchSettingsPatchModeAndAssessmentModeSetToA networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -1455,32 +1433,32 @@ async function createAWindowsVMWithPatchSettingsPatchModeAndAssessmentModeSetToA enableAutomaticUpdates: true, patchSettings: { assessmentMode: "AutomaticByPlatform", - patchMode: "AutomaticByPlatform" + patchMode: "AutomaticByPlatform", }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1503,16 +1481,15 @@ async function createACustomImageVMFromAnUnmanagedGeneralizedOSImage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { osDisk: { @@ -1520,23 +1497,21 @@ async function createACustomImageVMFromAnUnmanagedGeneralizedOSImage() { caching: "ReadWrite", createOption: "FromImage", image: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd" + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd", }, osType: "Windows", vhd: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd" - } - } - } + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1559,16 +1534,15 @@ async function createAPlatformImageVMWithUnmanagedOSAndDataDisks() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { dataDisks: [ @@ -1577,43 +1551,40 @@ async function createAPlatformImageVMWithUnmanagedOSAndDataDisks() { diskSizeGB: 1023, lun: 0, vhd: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk0.vhd" - } + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk0.vhd", + }, }, { createOption: "Empty", diskSizeGB: 1023, lun: 1, vhd: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk1.vhd" - } - } + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk1.vhd", + }, + }, ], imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", vhd: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd" - } - } - } + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1636,36 +1607,34 @@ async function createAVMFromACustomImage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1688,36 +1657,34 @@ async function createAVMFromAGeneralizedSharedImage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1740,31 +1707,29 @@ async function createAVMFromASpecializedSharedImage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1787,16 +1752,15 @@ async function createAVMInAVirtualMachineScaleSetWithCustomerAssignedPlatformFau networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, platformFaultDomain: 1, storageProfile: { @@ -1804,26 +1768,25 @@ async function createAVMInAVirtualMachineScaleSetWithCustomerAssignedPlatformFau offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, virtualMachineScaleSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{existing-flex-vmss-name-with-platformFaultDomainCount-greater-than-1}" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{existing-flex-vmss-name-with-platformFaultDomainCount-greater-than-1}", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1842,46 +1805,44 @@ async function createAVMInAnAvailabilitySet() { const vmName = "myVM"; const parameters: VirtualMachine = { availabilitySet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/availabilitySets/{existing-availability-set-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/availabilitySets/{existing-availability-set-name}", }, hardwareProfile: { vmSize: "Standard_D1_v2" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1909,51 +1870,50 @@ async function createAVMWithApplicationProfile() { packageReferenceId: "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdb/resourceGroups/myresourceGroupName2/providers/Microsoft.Compute/galleries/myGallery1/applications/MyApplication1/versions/1.0", tags: "myTag1", - treatFailureAsDeploymentFailure: false + treatFailureAsDeploymentFailure: false, }, { packageReferenceId: - "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdg/resourceGroups/myresourceGroupName3/providers/Microsoft.Compute/galleries/myGallery2/applications/MyApplication2/versions/1.1" - } - ] + "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdg/resourceGroups/myresourceGroupName3/providers/Microsoft.Compute/galleries/myGallery2/applications/MyApplication2/versions/1.1", + }, + ], }, hardwareProfile: { vmSize: "Standard_D1_v2" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "{image_offer}", publisher: "{image_publisher}", sku: "{image_sku}", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1976,16 +1936,15 @@ async function createAVMWithDiskEncryptionSetResourceIdInTheOSDiskAndDataDisk() networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { dataDisks: [ @@ -1996,11 +1955,10 @@ async function createAVMWithDiskEncryptionSetResourceIdInTheOSDiskAndDataDisk() lun: 0, managedDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - storageAccountType: "Standard_LRS" - } + storageAccountType: "Standard_LRS", + }, }, { caching: "ReadWrite", @@ -2009,18 +1967,15 @@ async function createAVMWithDiskEncryptionSetResourceIdInTheOSDiskAndDataDisk() lun: 1, managedDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/{existing-managed-disk-name}", - storageAccountType: "Standard_LRS" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/{existing-managed-disk-name}", + storageAccountType: "Standard_LRS", + }, + }, ], imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { name: "myVMosdisk", @@ -2028,20 +1983,19 @@ async function createAVMWithDiskEncryptionSetResourceIdInTheOSDiskAndDataDisk() createOption: "FromImage", managedDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - storageAccountType: "Standard_LRS" - } - } - } + storageAccountType: "Standard_LRS", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2064,21 +2018,20 @@ async function createAVMWithHostEncryptionUsingEncryptionAtHostProperty() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, securityProfile: { encryptionAtHost: true }, storageProfile: { @@ -2086,22 +2039,22 @@ async function createAVMWithHostEncryptionUsingEncryptionAtHostProperty() { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2123,50 +2076,49 @@ async function createAVMWithScheduledEventsProfile() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, hardwareProfile: { vmSize: "Standard_D1_v2" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, scheduledEventsProfile: { osImageNotificationProfile: { enable: true, notBeforeTimeout: "PT15M" }, - terminateNotificationProfile: { enable: true, notBeforeTimeout: "PT10M" } + terminateNotificationProfile: { enable: true, notBeforeTimeout: "PT10M" }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2189,43 +2141,42 @@ async function createAVMWithAMarketplaceImagePlan() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2247,8 +2198,8 @@ async function createAVMWithAnExtensionsTimeBudget() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, extensionsTimeBudget: "PT30M", hardwareProfile: { vmSize: "Standard_D1_v2" }, @@ -2256,38 +2207,37 @@ async function createAVMWithAnExtensionsTimeBudget() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2309,46 +2259,45 @@ async function createAVMWithBootDiagnostics() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, hardwareProfile: { vmSize: "Standard_D1_v2" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2371,42 +2320,41 @@ async function createAVMWithEmptyDataDisks() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { dataDisks: [ { createOption: "Empty", diskSizeGB: 1023, lun: 0 }, - { createOption: "Empty", diskSizeGB: 1023, lun: 1 } + { createOption: "Empty", diskSizeGB: 1023, lun: 1 }, ], imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2429,44 +2377,43 @@ async function createAVMWithEphemeralOSDiskProvisioningInCacheDiskUsingPlacement networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", diffDiskSettings: { option: "Local", placement: "CacheDisk" }, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2489,44 +2436,43 @@ async function createAVMWithEphemeralOSDiskProvisioningInResourceDiskUsingPlacem networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", diffDiskSettings: { option: "Local", placement: "ResourceDisk" }, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2549,44 +2495,43 @@ async function createAVMWithEphemeralOSDisk() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", diffDiskSettings: { option: "Local" }, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2610,38 +2555,37 @@ async function createAVMWithManagedBootDiagnostics() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2664,38 +2608,37 @@ async function createAVMWithPasswordAuthentication() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2718,38 +2661,37 @@ async function createAVMWithPremiumStorage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2772,11 +2714,10 @@ async function createAVMWithSshAuthentication() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminUsername: "{your-username}", @@ -2788,33 +2729,33 @@ async function createAVMWithSshAuthentication() { { path: "/home/{your-username}/.ssh/authorized_keys", keyData: - "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" - } - ] - } - } + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1", + }, + ], + }, + }, }, storageProfile: { imageReference: { offer: "{image_offer}", publisher: "{image_publisher}", sku: "{image_sku}", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2834,52 +2775,50 @@ async function createOrUpdateAVMWithCapacityReservation() { const parameters: VirtualMachine = { capacityReservation: { capacityReservationGroup: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/CapacityReservationGroups/{crgName}" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/CapacityReservationGroups/{crgName}", + }, }, hardwareProfile: { vmSize: "Standard_DS1_v2" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesDeallocateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesDeallocateSample.ts index 351b0abf6769..67df8c2cf0bb 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesDeallocateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesDeallocateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesDeallocateOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function virtualMachineDeallocateMaximumSetGen() { const result = await client.virtualMachines.beginDeallocateAndWait( resourceGroupName, vmName, - options + options, ); console.log(result); } @@ -57,7 +57,7 @@ async function virtualMachineDeallocateMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginDeallocateAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesDeleteSample.ts index 6fd67bd0ee3d..97641d945342 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesDeleteSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesDeleteOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function forceDeleteAVM() { const result = await client.virtualMachines.beginDeleteAndWait( resourceGroupName, vmName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesGeneralizeSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesGeneralizeSample.ts index feb2d3e10e63..818fb3778160 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesGeneralizeSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesGeneralizeSample.ts @@ -30,7 +30,7 @@ async function generalizeAVirtualMachine() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.generalize( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesGetSample.ts index 2e96af10b5e2..186af1f68827 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function getAVirtualMachine() { const result = await client.virtualMachines.get( resourceGroupName, vmName, - options + options, ); console.log(result); } @@ -78,7 +78,7 @@ async function getAVirtualMachineWithDiskControllerTypeProperties() { const result = await client.virtualMachines.get( resourceGroupName, vmName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesInstallPatchesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesInstallPatchesSample.ts index b1e5e8f75265..49d78acbb25f 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesInstallPatchesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesInstallPatchesSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineInstallPatchesParameters, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,15 +34,15 @@ async function installPatchStateOfAVirtualMachine() { rebootSetting: "IfRequired", windowsParameters: { classificationsToInclude: ["Critical", "Security"], - maxPatchPublishDate: new Date("2020-11-19T02:36:43.0539904+00:00") - } + maxPatchPublishDate: new Date("2020-11-19T02:36:43.0539904+00:00"), + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginInstallPatchesAndWait( resourceGroupName, vmName, - installPatchesInput + installPatchesInput, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesInstanceViewSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesInstanceViewSample.ts index 00dfd96b2eac..6df11c00d122 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesInstanceViewSample.ts @@ -30,7 +30,7 @@ async function getVirtualMachineInstanceView() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.instanceView( resourceGroupName, - vmName + vmName, ); console.log(result); } @@ -51,7 +51,7 @@ async function getInstanceViewOfAVirtualMachinePlacedOnADedicatedHostGroupThroug const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.instanceView( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListAllSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListAllSample.ts index a2aceebd09cd..680c7972f3d9 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListAllSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListAllSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesListAllOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListAvailableSizesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListAvailableSizesSample.ts index 29107a55014b..029b1a3fca05 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListAvailableSizesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListAvailableSizesSample.ts @@ -31,7 +31,7 @@ async function listsAllAvailableVirtualMachineSizesToWhichTheSpecifiedVirtualMac const resArray = new Array(); for await (let item of client.virtualMachines.listAvailableSizes( resourceGroupName, - vmName + vmName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListSample.ts index 9692a239a9a8..359816f299b8 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesListOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -35,7 +35,7 @@ async function virtualMachineListMaximumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachines.list( resourceGroupName, - options + options, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesPerformMaintenanceSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesPerformMaintenanceSample.ts index 7ceb8d97164c..91dca7f28ef1 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesPerformMaintenanceSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesPerformMaintenanceSample.ts @@ -30,7 +30,7 @@ async function virtualMachinePerformMaintenanceMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginPerformMaintenanceAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachinePerformMaintenanceMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginPerformMaintenanceAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesPowerOffSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesPowerOffSample.ts index 15f84a6d5b82..b955a72f1ca1 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesPowerOffSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesPowerOffSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesPowerOffOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function virtualMachinePowerOffMaximumSetGen() { const result = await client.virtualMachines.beginPowerOffAndWait( resourceGroupName, vmName, - options + options, ); console.log(result); } @@ -57,7 +57,7 @@ async function virtualMachinePowerOffMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginPowerOffAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesReapplySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesReapplySample.ts index a067f64f057c..857e7823d8f5 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesReapplySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesReapplySample.ts @@ -30,7 +30,7 @@ async function reapplyTheStateOfAVirtualMachine() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginReapplyAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRedeploySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRedeploySample.ts index e50756b6cbc3..e9468ef49a5e 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRedeploySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRedeploySample.ts @@ -30,7 +30,7 @@ async function virtualMachineRedeployMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginRedeployAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineRedeployMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginRedeployAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesReimageSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesReimageSample.ts index 2c68ff088e8e..a1ec8a6d0ec1 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesReimageSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesReimageSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineReimageParameters, VirtualMachinesReimageOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,9 +34,9 @@ async function reimageANonEphemeralVirtualMachine() { exactVersion: "aaaaaa", osProfile: { adminPassword: "{your-password}", - customData: "{your-custom-data}" + customData: "{your-custom-data}", }, - tempDisk: true + tempDisk: true, }; const options: VirtualMachinesReimageOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -44,7 +44,7 @@ async function reimageANonEphemeralVirtualMachine() { const result = await client.virtualMachines.beginReimageAndWait( resourceGroupName, vmName, - options + options, ); console.log(result); } @@ -68,7 +68,7 @@ async function reimageAVirtualMachine() { const result = await client.virtualMachines.beginReimageAndWait( resourceGroupName, vmName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRestartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRestartSample.ts index cebc0d8be944..7a8e9e6dc08a 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRestartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRestartSample.ts @@ -30,7 +30,7 @@ async function virtualMachineRestartMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginRestartAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineRestartMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginRestartAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRetrieveBootDiagnosticsDataSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRetrieveBootDiagnosticsDataSample.ts index 873ee356ff5d..a331d5e75b1d 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRetrieveBootDiagnosticsDataSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRetrieveBootDiagnosticsDataSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,14 +31,14 @@ async function retrieveBootDiagnosticsDataOfAVirtualMachine() { const vmName = "VMName"; const sasUriExpirationTimeInMinutes = 60; const options: VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams = { - sasUriExpirationTimeInMinutes + sasUriExpirationTimeInMinutes, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.retrieveBootDiagnosticsData( resourceGroupName, vmName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRunCommandSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRunCommandSample.ts index 0b640f230ac6..049402ca09bd 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRunCommandSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRunCommandSample.ts @@ -33,7 +33,7 @@ async function virtualMachineRunCommand() { const result = await client.virtualMachines.beginRunCommandAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesSimulateEvictionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesSimulateEvictionSample.ts index cbe6578d22a0..49c46d4ab2f1 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesSimulateEvictionSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesSimulateEvictionSample.ts @@ -30,7 +30,7 @@ async function simulateEvictionAVirtualMachine() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.simulateEviction( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesStartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesStartSample.ts index 37d02b450959..b8b337a2cc83 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesStartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesStartSample.ts @@ -30,7 +30,7 @@ async function virtualMachineStartMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginStartAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineStartMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginStartAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesUpdateSample.ts index ce9191b96d39..a82f313c230c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,42 +34,46 @@ async function updateAVMByDetachingDataDisk() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { dataDisks: [ { createOption: "Empty", diskSizeGB: 1023, lun: 0, toBeDetached: true }, - { createOption: "Empty", diskSizeGB: 1023, lun: 1, toBeDetached: false } + { + createOption: "Empty", + diskSizeGB: 1023, + lun: 1, + toBeDetached: false, + }, ], imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -91,16 +95,15 @@ async function updateAVMByForceDetachingDataDisk() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { dataDisks: [ @@ -109,30 +112,35 @@ async function updateAVMByForceDetachingDataDisk() { detachOption: "ForceDetach", diskSizeGB: 1023, lun: 0, - toBeDetached: true + toBeDetached: true, + }, + { + createOption: "Empty", + diskSizeGB: 1023, + lun: 1, + toBeDetached: false, }, - { createOption: "Empty", diskSizeGB: 1023, lun: 1, toBeDetached: false } ], imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index 56b075ca833e..03f8c3247ec4 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -58,7 +58,7 @@ import { CloudServiceRolesImpl, CloudServicesImpl, CloudServicesUpdateDomainImpl, - CloudServiceOperatingSystemsImpl + CloudServiceOperatingSystemsImpl, } from "./operations"; import { Operations, @@ -109,7 +109,7 @@ import { CloudServiceRoles, CloudServices, CloudServicesUpdateDomain, - CloudServiceOperatingSystems + CloudServiceOperatingSystems, } from "./operationsInterfaces"; import { ComputeManagementClientOptionalParams } from "./models"; @@ -127,7 +127,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: ComputeManagementClientOptionalParams + options?: ComputeManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -142,10 +142,10 @@ export class ComputeManagementClient extends coreClient.ServiceClient { } const defaults: ComputeManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-compute/21.4.1`; + const packageDetails = `azsdk-js-arm-compute/21.5.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -155,20 +155,21 @@ export class ComputeManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -178,7 +179,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -188,9 +189,9 @@ export class ComputeManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -202,24 +203,21 @@ export class ComputeManagementClient extends coreClient.ServiceClient { this.usageOperations = new UsageOperationsImpl(this); this.virtualMachineSizes = new VirtualMachineSizesImpl(this); this.virtualMachineScaleSets = new VirtualMachineScaleSetsImpl(this); - this.virtualMachineScaleSetExtensions = new VirtualMachineScaleSetExtensionsImpl( - this - ); - this.virtualMachineScaleSetRollingUpgrades = new VirtualMachineScaleSetRollingUpgradesImpl( - this - ); - this.virtualMachineScaleSetVMExtensions = new VirtualMachineScaleSetVMExtensionsImpl( - this - ); + this.virtualMachineScaleSetExtensions = + new VirtualMachineScaleSetExtensionsImpl(this); + this.virtualMachineScaleSetRollingUpgrades = + new VirtualMachineScaleSetRollingUpgradesImpl(this); + this.virtualMachineScaleSetVMExtensions = + new VirtualMachineScaleSetVMExtensionsImpl(this); this.virtualMachineScaleSetVMs = new VirtualMachineScaleSetVMsImpl(this); this.virtualMachineExtensions = new VirtualMachineExtensionsImpl(this); this.virtualMachines = new VirtualMachinesImpl(this); this.virtualMachineImages = new VirtualMachineImagesImpl(this); this.virtualMachineImagesEdgeZone = new VirtualMachineImagesEdgeZoneImpl( - this + this, ); this.virtualMachineExtensionImages = new VirtualMachineExtensionImagesImpl( - this + this, ); this.availabilitySets = new AvailabilitySetsImpl(this); this.proximityPlacementGroups = new ProximityPlacementGroupsImpl(this); @@ -233,9 +231,8 @@ export class ComputeManagementClient extends coreClient.ServiceClient { this.capacityReservations = new CapacityReservationsImpl(this); this.logAnalytics = new LogAnalyticsImpl(this); this.virtualMachineRunCommands = new VirtualMachineRunCommandsImpl(this); - this.virtualMachineScaleSetVMRunCommands = new VirtualMachineScaleSetVMRunCommandsImpl( - this - ); + this.virtualMachineScaleSetVMRunCommands = + new VirtualMachineScaleSetVMRunCommandsImpl(this); this.disks = new DisksImpl(this); this.diskAccesses = new DiskAccessesImpl(this); this.diskEncryptionSets = new DiskEncryptionSetsImpl(this); @@ -254,14 +251,14 @@ export class ComputeManagementClient extends coreClient.ServiceClient { this.communityGalleries = new CommunityGalleriesImpl(this); this.communityGalleryImages = new CommunityGalleryImagesImpl(this); this.communityGalleryImageVersions = new CommunityGalleryImageVersionsImpl( - this + this, ); this.cloudServiceRoleInstances = new CloudServiceRoleInstancesImpl(this); this.cloudServiceRoles = new CloudServiceRolesImpl(this); this.cloudServices = new CloudServicesImpl(this); this.cloudServicesUpdateDomain = new CloudServicesUpdateDomainImpl(this); this.cloudServiceOperatingSystems = new CloudServiceOperatingSystemsImpl( - this + this, ); } diff --git a/sdk/compute/arm-compute/src/lroImpl.ts b/sdk/compute/arm-compute/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/compute/arm-compute/src/lroImpl.ts +++ b/sdk/compute/arm-compute/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index fc8e05970052..6f73319b997f 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -3855,7 +3855,7 @@ export interface GalleryImageVersionStorageProfile { /** The gallery artifact version source. */ export interface GalleryArtifactVersionSource { - /** The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource. */ + /** The id of the gallery artifact version source. */ id?: string; } @@ -6668,6 +6668,8 @@ export interface GalleryArtifactVersionFullSource extends GalleryArtifactVersionSource { /** The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source. */ communityGalleryImageId?: string; + /** The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image Version. */ + virtualMachineId?: string; } /** The source for the disk image. */ @@ -6897,7 +6899,7 @@ export enum KnownRepairAction { /** Restart */ Restart = "Restart", /** Reimage */ - Reimage = "Reimage" + Reimage = "Reimage", } /** @@ -6918,7 +6920,7 @@ export enum KnownWindowsVMGuestPatchMode { /** AutomaticByOS */ AutomaticByOS = "AutomaticByOS", /** AutomaticByPlatform */ - AutomaticByPlatform = "AutomaticByPlatform" + AutomaticByPlatform = "AutomaticByPlatform", } /** @@ -6937,7 +6939,7 @@ export enum KnownWindowsPatchAssessmentMode { /** ImageDefault */ ImageDefault = "ImageDefault", /** AutomaticByPlatform */ - AutomaticByPlatform = "AutomaticByPlatform" + AutomaticByPlatform = "AutomaticByPlatform", } /** @@ -6959,7 +6961,7 @@ export enum KnownWindowsVMGuestPatchAutomaticByPlatformRebootSetting { /** Never */ Never = "Never", /** Always */ - Always = "Always" + Always = "Always", } /** @@ -6979,7 +6981,7 @@ export enum KnownLinuxVMGuestPatchMode { /** ImageDefault */ ImageDefault = "ImageDefault", /** AutomaticByPlatform */ - AutomaticByPlatform = "AutomaticByPlatform" + AutomaticByPlatform = "AutomaticByPlatform", } /** @@ -6997,7 +6999,7 @@ export enum KnownLinuxPatchAssessmentMode { /** ImageDefault */ ImageDefault = "ImageDefault", /** AutomaticByPlatform */ - AutomaticByPlatform = "AutomaticByPlatform" + AutomaticByPlatform = "AutomaticByPlatform", } /** @@ -7019,7 +7021,7 @@ export enum KnownLinuxVMGuestPatchAutomaticByPlatformRebootSetting { /** Never */ Never = "Never", /** Always */ - Always = "Always" + Always = "Always", } /** @@ -7041,7 +7043,7 @@ export enum KnownDiskCreateOptionTypes { /** Empty */ Empty = "Empty", /** Attach */ - Attach = "Attach" + Attach = "Attach", } /** @@ -7058,7 +7060,7 @@ export type DiskCreateOptionTypes = string; /** Known values of {@link DiffDiskOptions} that the service accepts. */ export enum KnownDiffDiskOptions { /** Local */ - Local = "Local" + Local = "Local", } /** @@ -7075,7 +7077,7 @@ export enum KnownDiffDiskPlacement { /** CacheDisk */ CacheDisk = "CacheDisk", /** ResourceDisk */ - ResourceDisk = "ResourceDisk" + ResourceDisk = "ResourceDisk", } /** @@ -7103,7 +7105,7 @@ export enum KnownStorageAccountTypes { /** StandardSSDZRS */ StandardSSDZRS = "StandardSSD_ZRS", /** PremiumV2LRS */ - PremiumV2LRS = "PremiumV2_LRS" + PremiumV2LRS = "PremiumV2_LRS", } /** @@ -7128,7 +7130,7 @@ export enum KnownSecurityEncryptionTypes { /** DiskWithVMGuestState */ DiskWithVMGuestState = "DiskWithVMGuestState", /** NonPersistedTPM */ - NonPersistedTPM = "NonPersistedTPM" + NonPersistedTPM = "NonPersistedTPM", } /** @@ -7147,7 +7149,7 @@ export enum KnownDiskDeleteOptionTypes { /** Delete */ Delete = "Delete", /** Detach */ - Detach = "Detach" + Detach = "Detach", } /** @@ -7169,7 +7171,7 @@ export enum KnownDomainNameLabelScopeTypes { /** ResourceGroupReuse */ ResourceGroupReuse = "ResourceGroupReuse", /** NoReuse */ - NoReuse = "NoReuse" + NoReuse = "NoReuse", } /** @@ -7189,7 +7191,7 @@ export enum KnownIPVersion { /** IPv4 */ IPv4 = "IPv4", /** IPv6 */ - IPv6 = "IPv6" + IPv6 = "IPv6", } /** @@ -7207,7 +7209,7 @@ export enum KnownDeleteOptions { /** Delete */ Delete = "Delete", /** Detach */ - Detach = "Detach" + Detach = "Detach", } /** @@ -7225,7 +7227,7 @@ export enum KnownPublicIPAddressSkuName { /** Basic */ Basic = "Basic", /** Standard */ - Standard = "Standard" + Standard = "Standard", } /** @@ -7243,7 +7245,7 @@ export enum KnownPublicIPAddressSkuTier { /** Regional */ Regional = "Regional", /** Global */ - Global = "Global" + Global = "Global", } /** @@ -7263,7 +7265,7 @@ export enum KnownNetworkInterfaceAuxiliaryMode { /** AcceleratedConnections */ AcceleratedConnections = "AcceleratedConnections", /** Floating */ - Floating = "Floating" + Floating = "Floating", } /** @@ -7288,7 +7290,7 @@ export enum KnownNetworkInterfaceAuxiliarySku { /** A4 */ A4 = "A4", /** A8 */ - A8 = "A8" + A8 = "A8", } /** @@ -7307,7 +7309,7 @@ export type NetworkInterfaceAuxiliarySku = string; /** Known values of {@link NetworkApiVersion} that the service accepts. */ export enum KnownNetworkApiVersion { /** TwoThousandTwenty1101 */ - TwoThousandTwenty1101 = "2020-11-01" + TwoThousandTwenty1101 = "2020-11-01", } /** @@ -7324,7 +7326,7 @@ export enum KnownSecurityTypes { /** TrustedLaunch */ TrustedLaunch = "TrustedLaunch", /** ConfidentialVM */ - ConfidentialVM = "ConfidentialVM" + ConfidentialVM = "ConfidentialVM", } /** @@ -7342,7 +7344,7 @@ export enum KnownMode { /** Audit */ Audit = "Audit", /** Enforce */ - Enforce = "Enforce" + Enforce = "Enforce", } /** @@ -7362,7 +7364,7 @@ export enum KnownVirtualMachinePriorityTypes { /** Low */ Low = "Low", /** Spot */ - Spot = "Spot" + Spot = "Spot", } /** @@ -7381,7 +7383,7 @@ export enum KnownVirtualMachineEvictionPolicyTypes { /** Deallocate */ Deallocate = "Deallocate", /** Delete */ - Delete = "Delete" + Delete = "Delete", } /** @@ -7401,7 +7403,7 @@ export enum KnownVirtualMachineScaleSetScaleInRules { /** OldestVM */ OldestVM = "OldestVM", /** NewestVM */ - NewestVM = "NewestVM" + NewestVM = "NewestVM", } /** @@ -7420,7 +7422,7 @@ export enum KnownOrchestrationMode { /** Uniform */ Uniform = "Uniform", /** Flexible */ - Flexible = "Flexible" + Flexible = "Flexible", } /** @@ -7436,7 +7438,7 @@ export type OrchestrationMode = string; /** Known values of {@link ExtendedLocationTypes} that the service accepts. */ export enum KnownExtendedLocationTypes { /** EdgeZone */ - EdgeZone = "EdgeZone" + EdgeZone = "EdgeZone", } /** @@ -7451,7 +7453,7 @@ export type ExtendedLocationTypes = string; /** Known values of {@link ExpandTypesForGetVMScaleSets} that the service accepts. */ export enum KnownExpandTypesForGetVMScaleSets { /** UserData */ - UserData = "userData" + UserData = "userData", } /** @@ -7468,7 +7470,7 @@ export enum KnownOrchestrationServiceNames { /** AutomaticRepairs */ AutomaticRepairs = "AutomaticRepairs", /** DummyOrchestrationServiceName */ - DummyOrchestrationServiceName = "DummyOrchestrationServiceName" + DummyOrchestrationServiceName = "DummyOrchestrationServiceName", } /** @@ -7488,7 +7490,7 @@ export enum KnownOrchestrationServiceState { /** Running */ Running = "Running", /** Suspended */ - Suspended = "Suspended" + Suspended = "Suspended", } /** @@ -7507,7 +7509,7 @@ export enum KnownOrchestrationServiceStateAction { /** Resume */ Resume = "Resume", /** Suspend */ - Suspend = "Suspend" + Suspend = "Suspend", } /** @@ -7525,7 +7527,7 @@ export enum KnownHyperVGeneration { /** V1 */ V1 = "V1", /** V2 */ - V2 = "V2" + V2 = "V2", } /** @@ -7871,7 +7873,7 @@ export enum KnownVirtualMachineSizeTypes { /** StandardNV12 */ StandardNV12 = "Standard_NV12", /** StandardNV24 */ - StandardNV24 = "Standard_NV24" + StandardNV24 = "Standard_NV24", } /** @@ -8051,7 +8053,7 @@ export type VirtualMachineSizeTypes = string; /** Known values of {@link DiskDetachOptionTypes} that the service accepts. */ export enum KnownDiskDetachOptionTypes { /** ForceDetach */ - ForceDetach = "ForceDetach" + ForceDetach = "ForceDetach", } /** @@ -8068,7 +8070,7 @@ export enum KnownDiskControllerTypes { /** Scsi */ Scsi = "SCSI", /** NVMe */ - NVMe = "NVMe" + NVMe = "NVMe", } /** @@ -8086,7 +8088,7 @@ export enum KnownIPVersions { /** IPv4 */ IPv4 = "IPv4", /** IPv6 */ - IPv6 = "IPv6" + IPv6 = "IPv6", } /** @@ -8104,7 +8106,7 @@ export enum KnownPublicIPAllocationMethod { /** Dynamic */ Dynamic = "Dynamic", /** Static */ - Static = "Static" + Static = "Static", } /** @@ -8122,7 +8124,7 @@ export enum KnownHyperVGenerationType { /** V1 */ V1 = "V1", /** V2 */ - V2 = "V2" + V2 = "V2", } /** @@ -8146,7 +8148,7 @@ export enum KnownPatchOperationStatus { /** Succeeded */ Succeeded = "Succeeded", /** CompletedWithWarnings */ - CompletedWithWarnings = "CompletedWithWarnings" + CompletedWithWarnings = "CompletedWithWarnings", } /** @@ -8165,7 +8167,7 @@ export type PatchOperationStatus = string; /** Known values of {@link ExpandTypeForListVMs} that the service accepts. */ export enum KnownExpandTypeForListVMs { /** InstanceView */ - InstanceView = "instanceView" + InstanceView = "instanceView", } /** @@ -8180,7 +8182,7 @@ export type ExpandTypeForListVMs = string; /** Known values of {@link ExpandTypesForListVMs} that the service accepts. */ export enum KnownExpandTypesForListVMs { /** InstanceView */ - InstanceView = "instanceView" + InstanceView = "instanceView", } /** @@ -8201,7 +8203,7 @@ export enum KnownVMGuestPatchRebootBehavior { /** AlwaysRequiresReboot */ AlwaysRequiresReboot = "AlwaysRequiresReboot", /** CanRequestReboot */ - CanRequestReboot = "CanRequestReboot" + CanRequestReboot = "CanRequestReboot", } /** @@ -8221,7 +8223,7 @@ export enum KnownPatchAssessmentState { /** Unknown */ Unknown = "Unknown", /** Available */ - Available = "Available" + Available = "Available", } /** @@ -8241,7 +8243,7 @@ export enum KnownVMGuestPatchRebootSetting { /** Never */ Never = "Never", /** Always */ - Always = "Always" + Always = "Always", } /** @@ -8272,7 +8274,7 @@ export enum KnownVMGuestPatchClassificationWindows { /** Tools */ Tools = "Tools", /** Updates */ - Updates = "Updates" + Updates = "Updates", } /** @@ -8298,7 +8300,7 @@ export enum KnownVMGuestPatchClassificationLinux { /** Security */ Security = "Security", /** Other */ - Other = "Other" + Other = "Other", } /** @@ -8325,7 +8327,7 @@ export enum KnownVMGuestPatchRebootStatus { /** Failed */ Failed = "Failed", /** Completed */ - Completed = "Completed" + Completed = "Completed", } /** @@ -8355,7 +8357,7 @@ export enum KnownPatchInstallationState { /** NotSelected */ NotSelected = "NotSelected", /** Pending */ - Pending = "Pending" + Pending = "Pending", } /** @@ -8377,7 +8379,7 @@ export enum KnownHyperVGenerationTypes { /** V1 */ V1 = "V1", /** V2 */ - V2 = "V2" + V2 = "V2", } /** @@ -8395,7 +8397,7 @@ export enum KnownVmDiskTypes { /** None */ None = "None", /** Unmanaged */ - Unmanaged = "Unmanaged" + Unmanaged = "Unmanaged", } /** @@ -8413,7 +8415,7 @@ export enum KnownArchitectureTypes { /** X64 */ X64 = "x64", /** Arm64 */ - Arm64 = "Arm64" + Arm64 = "Arm64", } /** @@ -8433,7 +8435,7 @@ export enum KnownImageState { /** ScheduledForDeprecation */ ScheduledForDeprecation = "ScheduledForDeprecation", /** Deprecated */ - Deprecated = "Deprecated" + Deprecated = "Deprecated", } /** @@ -8454,7 +8456,7 @@ export enum KnownAlternativeType { /** Offer */ Offer = "Offer", /** Plan */ - Plan = "Plan" + Plan = "Plan", } /** @@ -8473,7 +8475,7 @@ export enum KnownProximityPlacementGroupType { /** Standard */ Standard = "Standard", /** Ultra */ - Ultra = "Ultra" + Ultra = "Ultra", } /** @@ -8491,7 +8493,7 @@ export enum KnownSshEncryptionTypes { /** RSA */ RSA = "RSA", /** Ed25519 */ - Ed25519 = "Ed25519" + Ed25519 = "Ed25519", } /** @@ -8509,7 +8511,7 @@ export enum KnownOperatingSystemType { /** Windows */ Windows = "Windows", /** Linux */ - Linux = "Linux" + Linux = "Linux", } /** @@ -8529,7 +8531,7 @@ export enum KnownRestorePointEncryptionType { /** Disk Restore Point is encrypted at rest with Customer managed key that can be changed and revoked by a customer. */ EncryptionAtRestWithCustomerKey = "EncryptionAtRestWithCustomerKey", /** Disk Restore Point is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and the other key is Platform managed. */ - EncryptionAtRestWithPlatformAndCustomerKeys = "EncryptionAtRestWithPlatformAndCustomerKeys" + EncryptionAtRestWithPlatformAndCustomerKeys = "EncryptionAtRestWithPlatformAndCustomerKeys", } /** @@ -8550,7 +8552,7 @@ export enum KnownConsistencyModeTypes { /** FileSystemConsistent */ FileSystemConsistent = "FileSystemConsistent", /** ApplicationConsistent */ - ApplicationConsistent = "ApplicationConsistent" + ApplicationConsistent = "ApplicationConsistent", } /** @@ -8567,7 +8569,7 @@ export type ConsistencyModeTypes = string; /** Known values of {@link RestorePointCollectionExpandOptions} that the service accepts. */ export enum KnownRestorePointCollectionExpandOptions { /** RestorePoints */ - RestorePoints = "restorePoints" + RestorePoints = "restorePoints", } /** @@ -8582,7 +8584,7 @@ export type RestorePointCollectionExpandOptions = string; /** Known values of {@link RestorePointExpandOptions} that the service accepts. */ export enum KnownRestorePointExpandOptions { /** InstanceView */ - InstanceView = "instanceView" + InstanceView = "instanceView", } /** @@ -8597,7 +8599,7 @@ export type RestorePointExpandOptions = string; /** Known values of {@link CapacityReservationGroupInstanceViewTypes} that the service accepts. */ export enum KnownCapacityReservationGroupInstanceViewTypes { /** InstanceView */ - InstanceView = "instanceView" + InstanceView = "instanceView", } /** @@ -8614,7 +8616,7 @@ export enum KnownExpandTypesForGetCapacityReservationGroups { /** VirtualMachineScaleSetVMsRef */ VirtualMachineScaleSetVMsRef = "virtualMachineScaleSetVMs/$ref", /** VirtualMachinesRef */ - VirtualMachinesRef = "virtualMachines/$ref" + VirtualMachinesRef = "virtualMachines/$ref", } /** @@ -8630,7 +8632,7 @@ export type ExpandTypesForGetCapacityReservationGroups = string; /** Known values of {@link CapacityReservationInstanceViewTypes} that the service accepts. */ export enum KnownCapacityReservationInstanceViewTypes { /** InstanceView */ - InstanceView = "instanceView" + InstanceView = "instanceView", } /** @@ -8657,7 +8659,7 @@ export enum KnownExecutionState { /** TimedOut */ TimedOut = "TimedOut", /** Canceled */ - Canceled = "Canceled" + Canceled = "Canceled", } /** @@ -8690,7 +8692,7 @@ export enum KnownDiskStorageAccountTypes { /** Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications and dev\/test that need storage resiliency against zone failures. */ StandardSSDZRS = "StandardSSD_ZRS", /** Premium SSD v2 locally redundant storage. Best for production and performance-sensitive workloads that consistently require low latency and high IOPS and throughput. */ - PremiumV2LRS = "PremiumV2_LRS" + PremiumV2LRS = "PremiumV2_LRS", } /** @@ -8713,7 +8715,7 @@ export enum KnownArchitecture { /** X64 */ X64 = "x64", /** Arm64 */ - Arm64 = "Arm64" + Arm64 = "Arm64", } /** @@ -8749,7 +8751,7 @@ export enum KnownDiskCreateOption { /** Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported disk and upload using write token in both disk and VM guest state */ UploadPreparedSecure = "UploadPreparedSecure", /** Create a new disk by exporting from elastic san volume snapshot */ - CopyFromSanSnapshot = "CopyFromSanSnapshot" + CopyFromSanSnapshot = "CopyFromSanSnapshot", } /** @@ -8776,7 +8778,7 @@ export enum KnownProvisionedBandwidthCopyOption { /** None */ None = "None", /** Enhanced */ - Enhanced = "Enhanced" + Enhanced = "Enhanced", } /** @@ -8806,7 +8808,7 @@ export enum KnownDiskState { /** A disk is ready to be created by upload by requesting a write token. */ ReadyToUpload = "ReadyToUpload", /** A disk is created for upload and a write token has been issued for uploading to it. */ - ActiveUpload = "ActiveUpload" + ActiveUpload = "ActiveUpload", } /** @@ -8832,7 +8834,7 @@ export enum KnownEncryptionType { /** Disk is encrypted at rest with Customer managed key that can be changed and revoked by a customer. */ EncryptionAtRestWithCustomerKey = "EncryptionAtRestWithCustomerKey", /** Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and the other key is Platform managed. */ - EncryptionAtRestWithPlatformAndCustomerKeys = "EncryptionAtRestWithPlatformAndCustomerKeys" + EncryptionAtRestWithPlatformAndCustomerKeys = "EncryptionAtRestWithPlatformAndCustomerKeys", } /** @@ -8853,7 +8855,7 @@ export enum KnownNetworkAccessPolicy { /** The disk can be exported or uploaded to using a DiskAccess resource's private endpoints. */ AllowPrivate = "AllowPrivate", /** The disk cannot be exported. */ - DenyAll = "DenyAll" + DenyAll = "DenyAll", } /** @@ -8878,7 +8880,7 @@ export enum KnownDiskSecurityTypes { /** Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a customer managed key */ ConfidentialVMDiskEncryptedWithCustomerKey = "ConfidentialVM_DiskEncryptedWithCustomerKey", /** Indicates Confidential VM disk with a ephemeral vTPM. vTPM state is not persisted across VM reboots. */ - ConfidentialVMNonPersistedTPM = "ConfidentialVM_NonPersistedTPM" + ConfidentialVMNonPersistedTPM = "ConfidentialVM_NonPersistedTPM", } /** @@ -8899,7 +8901,7 @@ export enum KnownPublicNetworkAccess { /** You can generate a SAS URI to access the underlying data of the disk publicly on the internet when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. */ Enabled = "Enabled", /** You cannot access the underlying data of the disk publicly on the internet even when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. */ - Disabled = "Disabled" + Disabled = "Disabled", } /** @@ -8917,7 +8919,7 @@ export enum KnownDataAccessAuthMode { /** When export\/upload URL is used, the system checks if the user has an identity in Azure Active Directory and has necessary permissions to export\/upload the data. Please refer to aka.ms\/DisksAzureADAuth. */ AzureActiveDirectory = "AzureActiveDirectory", /** No additional authentication would be performed when accessing export\/upload URL. */ - None = "None" + None = "None", } /** @@ -8937,7 +8939,7 @@ export enum KnownAccessLevel { /** Read */ Read = "Read", /** Write */ - Write = "Write" + Write = "Write", } /** @@ -8956,7 +8958,7 @@ export enum KnownFileFormat { /** A VHD file is a disk image file in the Virtual Hard Disk file format. */ VHD = "VHD", /** A VHDX file is a disk image file in the Virtual Hard Disk v2 file format. */ - Vhdx = "VHDX" + Vhdx = "VHDX", } /** @@ -8976,7 +8978,7 @@ export enum KnownPrivateEndpointServiceConnectionStatus { /** Approved */ Approved = "Approved", /** Rejected */ - Rejected = "Rejected" + Rejected = "Rejected", } /** @@ -8999,7 +9001,7 @@ export enum KnownPrivateEndpointConnectionProvisioningState { /** Deleting */ Deleting = "Deleting", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -9023,7 +9025,7 @@ export enum KnownDiskEncryptionSetIdentityType { /** SystemAssignedUserAssigned */ SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", /** None */ - None = "None" + None = "None", } /** @@ -9045,7 +9047,7 @@ export enum KnownDiskEncryptionSetType { /** Resource using diskEncryptionSet would be encrypted at rest with two layers of encryption. One of the keys is Customer managed and the other key is Platform managed. */ EncryptionAtRestWithPlatformAndCustomerKeys = "EncryptionAtRestWithPlatformAndCustomerKeys", /** Confidential VM supported disk and VM guest state would be encrypted with customer managed key. */ - ConfidentialVmEncryptedWithCustomerKey = "ConfidentialVmEncryptedWithCustomerKey" + ConfidentialVmEncryptedWithCustomerKey = "ConfidentialVmEncryptedWithCustomerKey", } /** @@ -9066,7 +9068,7 @@ export enum KnownSnapshotStorageAccountTypes { /** Premium SSD locally redundant storage */ PremiumLRS = "Premium_LRS", /** Standard zone redundant storage */ - StandardZRS = "Standard_ZRS" + StandardZRS = "Standard_ZRS", } /** @@ -9083,7 +9085,7 @@ export type SnapshotStorageAccountTypes = string; /** Known values of {@link CopyCompletionErrorReason} that the service accepts. */ export enum KnownCopyCompletionErrorReason { /** Indicates that the source snapshot was deleted while the background copy of the resource created via CopyStart operation was in progress. */ - CopySourceNotFound = "CopySourceNotFound" + CopySourceNotFound = "CopySourceNotFound", } /** @@ -9098,7 +9100,7 @@ export type CopyCompletionErrorReason = string; /** Known values of {@link ExtendedLocationType} that the service accepts. */ export enum KnownExtendedLocationType { /** EdgeZone */ - EdgeZone = "EdgeZone" + EdgeZone = "EdgeZone", } /** @@ -9123,7 +9125,7 @@ export enum KnownGalleryProvisioningState { /** Deleting */ Deleting = "Deleting", /** Migrating */ - Migrating = "Migrating" + Migrating = "Migrating", } /** @@ -9147,7 +9149,7 @@ export enum KnownGallerySharingPermissionTypes { /** Groups */ Groups = "Groups", /** Community */ - Community = "Community" + Community = "Community", } /** @@ -9166,7 +9168,7 @@ export enum KnownSharingProfileGroupTypes { /** Subscriptions */ Subscriptions = "Subscriptions", /** AADTenants */ - AADTenants = "AADTenants" + AADTenants = "AADTenants", } /** @@ -9188,7 +9190,7 @@ export enum KnownSharingState { /** Failed */ Failed = "Failed", /** Unknown */ - Unknown = "Unknown" + Unknown = "Unknown", } /** @@ -9206,7 +9208,7 @@ export type SharingState = string; /** Known values of {@link SelectPermissions} that the service accepts. */ export enum KnownSelectPermissions { /** Permissions */ - Permissions = "Permissions" + Permissions = "Permissions", } /** @@ -9221,7 +9223,7 @@ export type SelectPermissions = string; /** Known values of {@link GalleryExpandParams} that the service accepts. */ export enum KnownGalleryExpandParams { /** SharingProfileGroups */ - SharingProfileGroups = "SharingProfile/Groups" + SharingProfileGroups = "SharingProfile/Groups", } /** @@ -9240,7 +9242,7 @@ export enum KnownStorageAccountType { /** StandardZRS */ StandardZRS = "Standard_ZRS", /** PremiumLRS */ - PremiumLRS = "Premium_LRS" + PremiumLRS = "Premium_LRS", } /** @@ -9263,7 +9265,7 @@ export enum KnownConfidentialVMEncryptionType { /** EncryptedWithCmk */ EncryptedWithCmk = "EncryptedWithCmk", /** NonPersistedTPM */ - NonPersistedTPM = "NonPersistedTPM" + NonPersistedTPM = "NonPersistedTPM", } /** @@ -9283,7 +9285,7 @@ export enum KnownReplicationMode { /** Full */ Full = "Full", /** Shallow */ - Shallow = "Shallow" + Shallow = "Shallow", } /** @@ -9301,7 +9303,7 @@ export enum KnownGalleryExtendedLocationType { /** EdgeZone */ EdgeZone = "EdgeZone", /** Unknown */ - Unknown = "Unknown" + Unknown = "Unknown", } /** @@ -9323,7 +9325,7 @@ export enum KnownEdgeZoneStorageAccountType { /** StandardSSDLRS */ StandardSSDLRS = "StandardSSD_LRS", /** PremiumLRS */ - PremiumLRS = "Premium_LRS" + PremiumLRS = "Premium_LRS", } /** @@ -9347,7 +9349,7 @@ export enum KnownPolicyViolationCategory { /** CopyrightValidation */ CopyrightValidation = "CopyrightValidation", /** IpTheft */ - IpTheft = "IpTheft" + IpTheft = "IpTheft", } /** @@ -9371,7 +9373,7 @@ export enum KnownAggregatedReplicationState { /** Completed */ Completed = "Completed", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -9395,7 +9397,7 @@ export enum KnownReplicationState { /** Completed */ Completed = "Completed", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -9417,7 +9419,7 @@ export enum KnownUefiSignatureTemplateName { /** MicrosoftUefiCertificateAuthorityTemplate */ MicrosoftUefiCertificateAuthorityTemplate = "MicrosoftUefiCertificateAuthorityTemplate", /** MicrosoftWindowsTemplate */ - MicrosoftWindowsTemplate = "MicrosoftWindowsTemplate" + MicrosoftWindowsTemplate = "MicrosoftWindowsTemplate", } /** @@ -9436,7 +9438,7 @@ export enum KnownUefiKeyType { /** Sha256 */ Sha256 = "sha256", /** X509 */ - X509 = "x509" + X509 = "x509", } /** @@ -9454,7 +9456,7 @@ export enum KnownReplicationStatusTypes { /** ReplicationStatus */ ReplicationStatus = "ReplicationStatus", /** UefiSettings */ - UefiSettings = "UefiSettings" + UefiSettings = "UefiSettings", } /** @@ -9476,7 +9478,7 @@ export enum KnownSharingUpdateOperationTypes { /** Reset */ Reset = "Reset", /** EnableCommunity */ - EnableCommunity = "EnableCommunity" + EnableCommunity = "EnableCommunity", } /** @@ -9494,7 +9496,7 @@ export type SharingUpdateOperationTypes = string; /** Known values of {@link SharedToValues} that the service accepts. */ export enum KnownSharedToValues { /** Tenant */ - Tenant = "tenant" + Tenant = "tenant", } /** @@ -9513,7 +9515,7 @@ export enum KnownSharedGalleryHostCaching { /** ReadOnly */ ReadOnly = "ReadOnly", /** ReadWrite */ - ReadWrite = "ReadWrite" + ReadWrite = "ReadWrite", } /** @@ -9534,7 +9536,7 @@ export enum KnownCloudServiceUpgradeMode { /** Manual */ Manual = "Manual", /** Simultaneous */ - Simultaneous = "Simultaneous" + Simultaneous = "Simultaneous", } /** @@ -9553,7 +9555,7 @@ export enum KnownCloudServiceSlotType { /** Production */ Production = "Production", /** Staging */ - Staging = "Staging" + Staging = "Staging", } /** @@ -9571,7 +9573,7 @@ export enum KnownAvailabilitySetSkuTypes { /** Classic */ Classic = "Classic", /** Aligned */ - Aligned = "Aligned" + Aligned = "Aligned", } /** @@ -9688,7 +9690,8 @@ export interface VirtualMachineScaleSetsListByLocationOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByLocation operation. */ -export type VirtualMachineScaleSetsListByLocationResponse = VirtualMachineScaleSetListResult; +export type VirtualMachineScaleSetsListByLocationResponse = + VirtualMachineScaleSetListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsCreateOrUpdateOptionalParams @@ -9704,7 +9707,8 @@ export interface VirtualMachineScaleSetsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineScaleSetsCreateOrUpdateResponse = VirtualMachineScaleSet; +export type VirtualMachineScaleSetsCreateOrUpdateResponse = + VirtualMachineScaleSet; /** Optional parameters. */ export interface VirtualMachineScaleSetsUpdateOptionalParams @@ -9772,35 +9776,40 @@ export interface VirtualMachineScaleSetsGetInstanceViewOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getInstanceView operation. */ -export type VirtualMachineScaleSetsGetInstanceViewResponse = VirtualMachineScaleSetInstanceView; +export type VirtualMachineScaleSetsGetInstanceViewResponse = + VirtualMachineScaleSetInstanceView; /** Optional parameters. */ export interface VirtualMachineScaleSetsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type VirtualMachineScaleSetsListResponse = VirtualMachineScaleSetListResult; +export type VirtualMachineScaleSetsListResponse = + VirtualMachineScaleSetListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsListAllOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAll operation. */ -export type VirtualMachineScaleSetsListAllResponse = VirtualMachineScaleSetListWithLinkResult; +export type VirtualMachineScaleSetsListAllResponse = + VirtualMachineScaleSetListWithLinkResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsListSkusOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSkus operation. */ -export type VirtualMachineScaleSetsListSkusResponse = VirtualMachineScaleSetListSkusResult; +export type VirtualMachineScaleSetsListSkusResponse = + VirtualMachineScaleSetListSkusResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getOSUpgradeHistory operation. */ -export type VirtualMachineScaleSetsGetOSUpgradeHistoryResponse = VirtualMachineScaleSetListOSUpgradeHistory; +export type VirtualMachineScaleSetsGetOSUpgradeHistoryResponse = + VirtualMachineScaleSetListOSUpgradeHistory; /** Optional parameters. */ export interface VirtualMachineScaleSetsPowerOffOptionalParams @@ -9911,7 +9920,8 @@ export interface VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams } /** Contains response data for the approveRollingUpgrade operation. */ -export type VirtualMachineScaleSetsApproveRollingUpgradeResponse = VirtualMachineScaleSetsApproveRollingUpgradeHeaders; +export type VirtualMachineScaleSetsApproveRollingUpgradeResponse = + VirtualMachineScaleSetsApproveRollingUpgradeHeaders; /** Optional parameters. */ export interface VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams @@ -9923,7 +9933,8 @@ export interface VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdate } /** Contains response data for the forceRecoveryServiceFabricPlatformUpdateDomainWalk operation. */ -export type VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse = RecoveryWalkResponse; +export type VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse = + RecoveryWalkResponse; /** Optional parameters. */ export interface VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams @@ -9943,35 +9954,40 @@ export interface VirtualMachineScaleSetsListByLocationNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByLocationNext operation. */ -export type VirtualMachineScaleSetsListByLocationNextResponse = VirtualMachineScaleSetListResult; +export type VirtualMachineScaleSetsListByLocationNextResponse = + VirtualMachineScaleSetListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type VirtualMachineScaleSetsListNextResponse = VirtualMachineScaleSetListResult; +export type VirtualMachineScaleSetsListNextResponse = + VirtualMachineScaleSetListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsListAllNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAllNext operation. */ -export type VirtualMachineScaleSetsListAllNextResponse = VirtualMachineScaleSetListWithLinkResult; +export type VirtualMachineScaleSetsListAllNextResponse = + VirtualMachineScaleSetListWithLinkResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsListSkusNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSkusNext operation. */ -export type VirtualMachineScaleSetsListSkusNextResponse = VirtualMachineScaleSetListSkusResult; +export type VirtualMachineScaleSetsListSkusNextResponse = + VirtualMachineScaleSetListSkusResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsGetOSUpgradeHistoryNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getOSUpgradeHistoryNext operation. */ -export type VirtualMachineScaleSetsGetOSUpgradeHistoryNextResponse = VirtualMachineScaleSetListOSUpgradeHistory; +export type VirtualMachineScaleSetsGetOSUpgradeHistoryNextResponse = + VirtualMachineScaleSetListOSUpgradeHistory; /** Optional parameters. */ export interface VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams @@ -9983,7 +9999,8 @@ export interface VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineScaleSetExtensionsCreateOrUpdateResponse = VirtualMachineScaleSetExtension; +export type VirtualMachineScaleSetExtensionsCreateOrUpdateResponse = + VirtualMachineScaleSetExtension; /** Optional parameters. */ export interface VirtualMachineScaleSetExtensionsUpdateOptionalParams @@ -9995,7 +10012,8 @@ export interface VirtualMachineScaleSetExtensionsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type VirtualMachineScaleSetExtensionsUpdateResponse = VirtualMachineScaleSetExtension; +export type VirtualMachineScaleSetExtensionsUpdateResponse = + VirtualMachineScaleSetExtension; /** Optional parameters. */ export interface VirtualMachineScaleSetExtensionsDeleteOptionalParams @@ -10014,21 +10032,24 @@ export interface VirtualMachineScaleSetExtensionsGetOptionalParams } /** Contains response data for the get operation. */ -export type VirtualMachineScaleSetExtensionsGetResponse = VirtualMachineScaleSetExtension; +export type VirtualMachineScaleSetExtensionsGetResponse = + VirtualMachineScaleSetExtension; /** Optional parameters. */ export interface VirtualMachineScaleSetExtensionsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type VirtualMachineScaleSetExtensionsListResponse = VirtualMachineScaleSetExtensionListResult; +export type VirtualMachineScaleSetExtensionsListResponse = + VirtualMachineScaleSetExtensionListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetExtensionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type VirtualMachineScaleSetExtensionsListNextResponse = VirtualMachineScaleSetExtensionListResult; +export type VirtualMachineScaleSetExtensionsListNextResponse = + VirtualMachineScaleSetExtensionListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetRollingUpgradesCancelOptionalParams @@ -10062,7 +10083,8 @@ export interface VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getLatest operation. */ -export type VirtualMachineScaleSetRollingUpgradesGetLatestResponse = RollingUpgradeStatusInfo; +export type VirtualMachineScaleSetRollingUpgradesGetLatestResponse = + RollingUpgradeStatusInfo; /** Optional parameters. */ export interface VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams @@ -10074,7 +10096,8 @@ export interface VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse = VirtualMachineScaleSetVMExtension; +export type VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse = + VirtualMachineScaleSetVMExtension; /** Optional parameters. */ export interface VirtualMachineScaleSetVMExtensionsUpdateOptionalParams @@ -10086,7 +10109,8 @@ export interface VirtualMachineScaleSetVMExtensionsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type VirtualMachineScaleSetVMExtensionsUpdateResponse = VirtualMachineScaleSetVMExtension; +export type VirtualMachineScaleSetVMExtensionsUpdateResponse = + VirtualMachineScaleSetVMExtension; /** Optional parameters. */ export interface VirtualMachineScaleSetVMExtensionsDeleteOptionalParams @@ -10105,7 +10129,8 @@ export interface VirtualMachineScaleSetVMExtensionsGetOptionalParams } /** Contains response data for the get operation. */ -export type VirtualMachineScaleSetVMExtensionsGetResponse = VirtualMachineScaleSetVMExtension; +export type VirtualMachineScaleSetVMExtensionsGetResponse = + VirtualMachineScaleSetVMExtension; /** Optional parameters. */ export interface VirtualMachineScaleSetVMExtensionsListOptionalParams @@ -10115,7 +10140,8 @@ export interface VirtualMachineScaleSetVMExtensionsListOptionalParams } /** Contains response data for the list operation. */ -export type VirtualMachineScaleSetVMExtensionsListResponse = VirtualMachineScaleSetVMExtensionsListResult; +export type VirtualMachineScaleSetVMExtensionsListResponse = + VirtualMachineScaleSetVMExtensionsListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsReimageOptionalParams @@ -10147,7 +10173,8 @@ export interface VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams } /** Contains response data for the approveRollingUpgrade operation. */ -export type VirtualMachineScaleSetVMsApproveRollingUpgradeResponse = VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders; +export type VirtualMachineScaleSetVMsApproveRollingUpgradeResponse = + VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsDeallocateOptionalParams @@ -10200,7 +10227,8 @@ export interface VirtualMachineScaleSetVMsGetInstanceViewOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getInstanceView operation. */ -export type VirtualMachineScaleSetVMsGetInstanceViewResponse = VirtualMachineScaleSetVMInstanceView; +export type VirtualMachineScaleSetVMsGetInstanceViewResponse = + VirtualMachineScaleSetVMInstanceView; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsListOptionalParams @@ -10214,7 +10242,8 @@ export interface VirtualMachineScaleSetVMsListOptionalParams } /** Contains response data for the list operation. */ -export type VirtualMachineScaleSetVMsListResponse = VirtualMachineScaleSetVMListResult; +export type VirtualMachineScaleSetVMsListResponse = + VirtualMachineScaleSetVMListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsPowerOffOptionalParams @@ -10262,7 +10291,8 @@ export interface VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalPar } /** Contains response data for the retrieveBootDiagnosticsData operation. */ -export type VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataResponse = RetrieveBootDiagnosticsDataResult; +export type VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataResponse = + RetrieveBootDiagnosticsDataResult; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams @@ -10287,7 +10317,8 @@ export interface VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams } /** Contains response data for the attachDetachDataDisks operation. */ -export type VirtualMachineScaleSetVMsAttachDetachDataDisksResponse = StorageProfile; +export type VirtualMachineScaleSetVMsAttachDetachDataDisksResponse = + StorageProfile; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsRunCommandOptionalParams @@ -10306,7 +10337,8 @@ export interface VirtualMachineScaleSetVMsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type VirtualMachineScaleSetVMsListNextResponse = VirtualMachineScaleSetVMListResult; +export type VirtualMachineScaleSetVMsListNextResponse = + VirtualMachineScaleSetVMListResult; /** Optional parameters. */ export interface VirtualMachineExtensionsCreateOrUpdateOptionalParams @@ -10318,7 +10350,8 @@ export interface VirtualMachineExtensionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineExtensionsCreateOrUpdateResponse = VirtualMachineExtension; +export type VirtualMachineExtensionsCreateOrUpdateResponse = + VirtualMachineExtension; /** Optional parameters. */ export interface VirtualMachineExtensionsUpdateOptionalParams @@ -10359,7 +10392,8 @@ export interface VirtualMachineExtensionsListOptionalParams } /** Contains response data for the list operation. */ -export type VirtualMachineExtensionsListResponse = VirtualMachineExtensionsListResult; +export type VirtualMachineExtensionsListResponse = + VirtualMachineExtensionsListResult; /** Optional parameters. */ export interface VirtualMachinesListByLocationOptionalParams @@ -10495,7 +10529,8 @@ export interface VirtualMachinesListAvailableSizesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAvailableSizes operation. */ -export type VirtualMachinesListAvailableSizesResponse = VirtualMachineSizeListResult; +export type VirtualMachinesListAvailableSizesResponse = + VirtualMachineSizeListResult; /** Optional parameters. */ export interface VirtualMachinesPowerOffOptionalParams @@ -10563,7 +10598,8 @@ export interface VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams } /** Contains response data for the retrieveBootDiagnosticsData operation. */ -export type VirtualMachinesRetrieveBootDiagnosticsDataResponse = RetrieveBootDiagnosticsDataResult; +export type VirtualMachinesRetrieveBootDiagnosticsDataResponse = + RetrieveBootDiagnosticsDataResult; /** Optional parameters. */ export interface VirtualMachinesPerformMaintenanceOptionalParams @@ -10588,7 +10624,8 @@ export interface VirtualMachinesAssessPatchesOptionalParams } /** Contains response data for the assessPatches operation. */ -export type VirtualMachinesAssessPatchesResponse = VirtualMachineAssessPatchesResult; +export type VirtualMachinesAssessPatchesResponse = + VirtualMachineAssessPatchesResult; /** Optional parameters. */ export interface VirtualMachinesInstallPatchesOptionalParams @@ -10600,7 +10637,8 @@ export interface VirtualMachinesInstallPatchesOptionalParams } /** Contains response data for the installPatches operation. */ -export type VirtualMachinesInstallPatchesResponse = VirtualMachineInstallPatchesResult; +export type VirtualMachinesInstallPatchesResponse = + VirtualMachineInstallPatchesResult; /** Optional parameters. */ export interface VirtualMachinesAttachDetachDataDisksOptionalParams @@ -10631,7 +10669,8 @@ export interface VirtualMachinesListByLocationNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByLocationNext operation. */ -export type VirtualMachinesListByLocationNextResponse = VirtualMachineListResult; +export type VirtualMachinesListByLocationNextResponse = + VirtualMachineListResult; /** Optional parameters. */ export interface VirtualMachinesListNextOptionalParams @@ -10671,28 +10710,32 @@ export interface VirtualMachineImagesListOffersOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listOffers operation. */ -export type VirtualMachineImagesListOffersResponse = VirtualMachineImageResource[]; +export type VirtualMachineImagesListOffersResponse = + VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesListPublishersOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listPublishers operation. */ -export type VirtualMachineImagesListPublishersResponse = VirtualMachineImageResource[]; +export type VirtualMachineImagesListPublishersResponse = + VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesListSkusOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSkus operation. */ -export type VirtualMachineImagesListSkusResponse = VirtualMachineImageResource[]; +export type VirtualMachineImagesListSkusResponse = + VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesListByEdgeZoneOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByEdgeZone operation. */ -export type VirtualMachineImagesListByEdgeZoneResponse = VmImagesInEdgeZoneListResult; +export type VirtualMachineImagesListByEdgeZoneResponse = + VmImagesInEdgeZoneListResult; /** Optional parameters. */ export interface VirtualMachineImagesEdgeZoneGetOptionalParams @@ -10713,42 +10756,48 @@ export interface VirtualMachineImagesEdgeZoneListOptionalParams } /** Contains response data for the list operation. */ -export type VirtualMachineImagesEdgeZoneListResponse = VirtualMachineImageResource[]; +export type VirtualMachineImagesEdgeZoneListResponse = + VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesEdgeZoneListOffersOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listOffers operation. */ -export type VirtualMachineImagesEdgeZoneListOffersResponse = VirtualMachineImageResource[]; +export type VirtualMachineImagesEdgeZoneListOffersResponse = + VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesEdgeZoneListPublishersOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listPublishers operation. */ -export type VirtualMachineImagesEdgeZoneListPublishersResponse = VirtualMachineImageResource[]; +export type VirtualMachineImagesEdgeZoneListPublishersResponse = + VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesEdgeZoneListSkusOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSkus operation. */ -export type VirtualMachineImagesEdgeZoneListSkusResponse = VirtualMachineImageResource[]; +export type VirtualMachineImagesEdgeZoneListSkusResponse = + VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineExtensionImagesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type VirtualMachineExtensionImagesGetResponse = VirtualMachineExtensionImage; +export type VirtualMachineExtensionImagesGetResponse = + VirtualMachineExtensionImage; /** Optional parameters. */ export interface VirtualMachineExtensionImagesListTypesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listTypes operation. */ -export type VirtualMachineExtensionImagesListTypesResponse = VirtualMachineExtensionImage[]; +export type VirtualMachineExtensionImagesListTypesResponse = + VirtualMachineExtensionImage[]; /** Optional parameters. */ export interface VirtualMachineExtensionImagesListVersionsOptionalParams @@ -10760,7 +10809,8 @@ export interface VirtualMachineExtensionImagesListVersionsOptionalParams } /** Contains response data for the listVersions operation. */ -export type VirtualMachineExtensionImagesListVersionsResponse = VirtualMachineExtensionImage[]; +export type VirtualMachineExtensionImagesListVersionsResponse = + VirtualMachineExtensionImage[]; /** Optional parameters. */ export interface AvailabilitySetsCreateOrUpdateOptionalParams @@ -10795,7 +10845,8 @@ export interface AvailabilitySetsListBySubscriptionOptionalParams } /** Contains response data for the listBySubscription operation. */ -export type AvailabilitySetsListBySubscriptionResponse = AvailabilitySetListResult; +export type AvailabilitySetsListBySubscriptionResponse = + AvailabilitySetListResult; /** Optional parameters. */ export interface AvailabilitySetsListOptionalParams @@ -10809,14 +10860,16 @@ export interface AvailabilitySetsListAvailableSizesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAvailableSizes operation. */ -export type AvailabilitySetsListAvailableSizesResponse = VirtualMachineSizeListResult; +export type AvailabilitySetsListAvailableSizesResponse = + VirtualMachineSizeListResult; /** Optional parameters. */ export interface AvailabilitySetsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type AvailabilitySetsListBySubscriptionNextResponse = AvailabilitySetListResult; +export type AvailabilitySetsListBySubscriptionNextResponse = + AvailabilitySetListResult; /** Optional parameters. */ export interface AvailabilitySetsListNextOptionalParams @@ -10830,7 +10883,8 @@ export interface ProximityPlacementGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ProximityPlacementGroupsCreateOrUpdateResponse = ProximityPlacementGroup; +export type ProximityPlacementGroupsCreateOrUpdateResponse = + ProximityPlacementGroup; /** Optional parameters. */ export interface ProximityPlacementGroupsUpdateOptionalParams @@ -10858,28 +10912,32 @@ export interface ProximityPlacementGroupsListBySubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ -export type ProximityPlacementGroupsListBySubscriptionResponse = ProximityPlacementGroupListResult; +export type ProximityPlacementGroupsListBySubscriptionResponse = + ProximityPlacementGroupListResult; /** Optional parameters. */ export interface ProximityPlacementGroupsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type ProximityPlacementGroupsListByResourceGroupResponse = ProximityPlacementGroupListResult; +export type ProximityPlacementGroupsListByResourceGroupResponse = + ProximityPlacementGroupListResult; /** Optional parameters. */ export interface ProximityPlacementGroupsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type ProximityPlacementGroupsListBySubscriptionNextResponse = ProximityPlacementGroupListResult; +export type ProximityPlacementGroupsListBySubscriptionNextResponse = + ProximityPlacementGroupListResult; /** Optional parameters. */ export interface ProximityPlacementGroupsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type ProximityPlacementGroupsListByResourceGroupNextResponse = ProximityPlacementGroupListResult; +export type ProximityPlacementGroupsListByResourceGroupNextResponse = + ProximityPlacementGroupListResult; /** Optional parameters. */ export interface DedicatedHostGroupsCreateOrUpdateOptionalParams @@ -10914,28 +10972,32 @@ export interface DedicatedHostGroupsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type DedicatedHostGroupsListByResourceGroupResponse = DedicatedHostGroupListResult; +export type DedicatedHostGroupsListByResourceGroupResponse = + DedicatedHostGroupListResult; /** Optional parameters. */ export interface DedicatedHostGroupsListBySubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ -export type DedicatedHostGroupsListBySubscriptionResponse = DedicatedHostGroupListResult; +export type DedicatedHostGroupsListBySubscriptionResponse = + DedicatedHostGroupListResult; /** Optional parameters. */ export interface DedicatedHostGroupsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type DedicatedHostGroupsListByResourceGroupNextResponse = DedicatedHostGroupListResult; +export type DedicatedHostGroupsListByResourceGroupNextResponse = + DedicatedHostGroupListResult; /** Optional parameters. */ export interface DedicatedHostGroupsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type DedicatedHostGroupsListBySubscriptionNextResponse = DedicatedHostGroupListResult; +export type DedicatedHostGroupsListBySubscriptionNextResponse = + DedicatedHostGroupListResult; /** Optional parameters. */ export interface DedicatedHostsCreateOrUpdateOptionalParams @@ -11013,7 +11075,8 @@ export interface DedicatedHostsListAvailableSizesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAvailableSizes operation. */ -export type DedicatedHostsListAvailableSizesResponse = DedicatedHostSizeListResult; +export type DedicatedHostsListAvailableSizesResponse = + DedicatedHostSizeListResult; /** Optional parameters. */ export interface DedicatedHostsListByHostGroupNextOptionalParams @@ -11027,14 +11090,16 @@ export interface SshPublicKeysListBySubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ -export type SshPublicKeysListBySubscriptionResponse = SshPublicKeysGroupListResult; +export type SshPublicKeysListBySubscriptionResponse = + SshPublicKeysGroupListResult; /** Optional parameters. */ export interface SshPublicKeysListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type SshPublicKeysListByResourceGroupResponse = SshPublicKeysGroupListResult; +export type SshPublicKeysListByResourceGroupResponse = + SshPublicKeysGroupListResult; /** Optional parameters. */ export interface SshPublicKeysCreateOptionalParams @@ -11069,21 +11134,24 @@ export interface SshPublicKeysGenerateKeyPairOptionalParams } /** Contains response data for the generateKeyPair operation. */ -export type SshPublicKeysGenerateKeyPairResponse = SshPublicKeyGenerateKeyPairResult; +export type SshPublicKeysGenerateKeyPairResponse = + SshPublicKeyGenerateKeyPairResult; /** Optional parameters. */ export interface SshPublicKeysListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type SshPublicKeysListBySubscriptionNextResponse = SshPublicKeysGroupListResult; +export type SshPublicKeysListBySubscriptionNextResponse = + SshPublicKeysGroupListResult; /** Optional parameters. */ export interface SshPublicKeysListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type SshPublicKeysListByResourceGroupNextResponse = SshPublicKeysGroupListResult; +export type SshPublicKeysListByResourceGroupNextResponse = + SshPublicKeysGroupListResult; /** Optional parameters. */ export interface ImagesCreateOrUpdateOptionalParams @@ -11159,7 +11227,8 @@ export interface RestorePointCollectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type RestorePointCollectionsCreateOrUpdateResponse = RestorePointCollection; +export type RestorePointCollectionsCreateOrUpdateResponse = + RestorePointCollection; /** Optional parameters. */ export interface RestorePointCollectionsUpdateOptionalParams @@ -11192,28 +11261,32 @@ export interface RestorePointCollectionsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type RestorePointCollectionsListResponse = RestorePointCollectionListResult; +export type RestorePointCollectionsListResponse = + RestorePointCollectionListResult; /** Optional parameters. */ export interface RestorePointCollectionsListAllOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAll operation. */ -export type RestorePointCollectionsListAllResponse = RestorePointCollectionListResult; +export type RestorePointCollectionsListAllResponse = + RestorePointCollectionListResult; /** Optional parameters. */ export interface RestorePointCollectionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type RestorePointCollectionsListNextResponse = RestorePointCollectionListResult; +export type RestorePointCollectionsListNextResponse = + RestorePointCollectionListResult; /** Optional parameters. */ export interface RestorePointCollectionsListAllNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAllNext operation. */ -export type RestorePointCollectionsListAllNextResponse = RestorePointCollectionListResult; +export type RestorePointCollectionsListAllNextResponse = + RestorePointCollectionListResult; /** Optional parameters. */ export interface RestorePointsCreateOptionalParams @@ -11251,7 +11324,8 @@ export interface CapacityReservationGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type CapacityReservationGroupsCreateOrUpdateResponse = CapacityReservationGroup; +export type CapacityReservationGroupsCreateOrUpdateResponse = + CapacityReservationGroup; /** Optional parameters. */ export interface CapacityReservationGroupsUpdateOptionalParams @@ -11282,7 +11356,8 @@ export interface CapacityReservationGroupsListByResourceGroupOptionalParams } /** Contains response data for the listByResourceGroup operation. */ -export type CapacityReservationGroupsListByResourceGroupResponse = CapacityReservationGroupListResult; +export type CapacityReservationGroupsListByResourceGroupResponse = + CapacityReservationGroupListResult; /** Optional parameters. */ export interface CapacityReservationGroupsListBySubscriptionOptionalParams @@ -11292,21 +11367,24 @@ export interface CapacityReservationGroupsListBySubscriptionOptionalParams } /** Contains response data for the listBySubscription operation. */ -export type CapacityReservationGroupsListBySubscriptionResponse = CapacityReservationGroupListResult; +export type CapacityReservationGroupsListBySubscriptionResponse = + CapacityReservationGroupListResult; /** Optional parameters. */ export interface CapacityReservationGroupsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type CapacityReservationGroupsListByResourceGroupNextResponse = CapacityReservationGroupListResult; +export type CapacityReservationGroupsListByResourceGroupNextResponse = + CapacityReservationGroupListResult; /** Optional parameters. */ export interface CapacityReservationGroupsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type CapacityReservationGroupsListBySubscriptionNextResponse = CapacityReservationGroupListResult; +export type CapacityReservationGroupsListBySubscriptionNextResponse = + CapacityReservationGroupListResult; /** Optional parameters. */ export interface CapacityReservationsCreateOrUpdateOptionalParams @@ -11356,14 +11434,16 @@ export interface CapacityReservationsListByCapacityReservationGroupOptionalParam extends coreClient.OperationOptions {} /** Contains response data for the listByCapacityReservationGroup operation. */ -export type CapacityReservationsListByCapacityReservationGroupResponse = CapacityReservationListResult; +export type CapacityReservationsListByCapacityReservationGroupResponse = + CapacityReservationListResult; /** Optional parameters. */ export interface CapacityReservationsListByCapacityReservationGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByCapacityReservationGroupNext operation. */ -export type CapacityReservationsListByCapacityReservationGroupNextResponse = CapacityReservationListResult; +export type CapacityReservationsListByCapacityReservationGroupNextResponse = + CapacityReservationListResult; /** Optional parameters. */ export interface LogAnalyticsExportRequestRateByIntervalOptionalParams @@ -11375,7 +11455,8 @@ export interface LogAnalyticsExportRequestRateByIntervalOptionalParams } /** Contains response data for the exportRequestRateByInterval operation. */ -export type LogAnalyticsExportRequestRateByIntervalResponse = LogAnalyticsOperationResult; +export type LogAnalyticsExportRequestRateByIntervalResponse = + LogAnalyticsOperationResult; /** Optional parameters. */ export interface LogAnalyticsExportThrottledRequestsOptionalParams @@ -11387,7 +11468,8 @@ export interface LogAnalyticsExportThrottledRequestsOptionalParams } /** Contains response data for the exportThrottledRequests operation. */ -export type LogAnalyticsExportThrottledRequestsResponse = LogAnalyticsOperationResult; +export type LogAnalyticsExportThrottledRequestsResponse = + LogAnalyticsOperationResult; /** Optional parameters. */ export interface VirtualMachineRunCommandsListOptionalParams @@ -11413,7 +11495,8 @@ export interface VirtualMachineRunCommandsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineRunCommandsCreateOrUpdateResponse = VirtualMachineRunCommand; +export type VirtualMachineRunCommandsCreateOrUpdateResponse = + VirtualMachineRunCommand; /** Optional parameters. */ export interface VirtualMachineRunCommandsUpdateOptionalParams @@ -11444,7 +11527,8 @@ export interface VirtualMachineRunCommandsGetByVirtualMachineOptionalParams } /** Contains response data for the getByVirtualMachine operation. */ -export type VirtualMachineRunCommandsGetByVirtualMachineResponse = VirtualMachineRunCommand; +export type VirtualMachineRunCommandsGetByVirtualMachineResponse = + VirtualMachineRunCommand; /** Optional parameters. */ export interface VirtualMachineRunCommandsListByVirtualMachineOptionalParams @@ -11454,7 +11538,8 @@ export interface VirtualMachineRunCommandsListByVirtualMachineOptionalParams } /** Contains response data for the listByVirtualMachine operation. */ -export type VirtualMachineRunCommandsListByVirtualMachineResponse = VirtualMachineRunCommandsListResult; +export type VirtualMachineRunCommandsListByVirtualMachineResponse = + VirtualMachineRunCommandsListResult; /** Optional parameters. */ export interface VirtualMachineRunCommandsListNextOptionalParams @@ -11468,7 +11553,8 @@ export interface VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByVirtualMachineNext operation. */ -export type VirtualMachineRunCommandsListByVirtualMachineNextResponse = VirtualMachineRunCommandsListResult; +export type VirtualMachineRunCommandsListByVirtualMachineNextResponse = + VirtualMachineRunCommandsListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams @@ -11480,7 +11566,8 @@ export interface VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResponse = VirtualMachineRunCommand; +export type VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResponse = + VirtualMachineRunCommand; /** Optional parameters. */ export interface VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams @@ -11492,7 +11579,8 @@ export interface VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type VirtualMachineScaleSetVMRunCommandsUpdateResponse = VirtualMachineRunCommand; +export type VirtualMachineScaleSetVMRunCommandsUpdateResponse = + VirtualMachineRunCommand; /** Optional parameters. */ export interface VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams @@ -11511,7 +11599,8 @@ export interface VirtualMachineScaleSetVMRunCommandsGetOptionalParams } /** Contains response data for the get operation. */ -export type VirtualMachineScaleSetVMRunCommandsGetResponse = VirtualMachineRunCommand; +export type VirtualMachineScaleSetVMRunCommandsGetResponse = + VirtualMachineRunCommand; /** Optional parameters. */ export interface VirtualMachineScaleSetVMRunCommandsListOptionalParams @@ -11521,14 +11610,16 @@ export interface VirtualMachineScaleSetVMRunCommandsListOptionalParams } /** Contains response data for the list operation. */ -export type VirtualMachineScaleSetVMRunCommandsListResponse = VirtualMachineRunCommandsListResult; +export type VirtualMachineScaleSetVMRunCommandsListResponse = + VirtualMachineRunCommandsListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetVMRunCommandsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type VirtualMachineScaleSetVMRunCommandsListNextResponse = VirtualMachineRunCommandsListResult; +export type VirtualMachineScaleSetVMRunCommandsListNextResponse = + VirtualMachineRunCommandsListResult; /** Optional parameters. */ export interface DisksCreateOrUpdateOptionalParams @@ -11674,7 +11765,8 @@ export interface DiskAccessesGetPrivateLinkResourcesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getPrivateLinkResources operation. */ -export type DiskAccessesGetPrivateLinkResourcesResponse = PrivateLinkResourceListResult; +export type DiskAccessesGetPrivateLinkResourcesResponse = + PrivateLinkResourceListResult; /** Optional parameters. */ export interface DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams @@ -11686,14 +11778,16 @@ export interface DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams } /** Contains response data for the updateAPrivateEndpointConnection operation. */ -export type DiskAccessesUpdateAPrivateEndpointConnectionResponse = PrivateEndpointConnection; +export type DiskAccessesUpdateAPrivateEndpointConnectionResponse = + PrivateEndpointConnection; /** Optional parameters. */ export interface DiskAccessesGetAPrivateEndpointConnectionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getAPrivateEndpointConnection operation. */ -export type DiskAccessesGetAPrivateEndpointConnectionResponse = PrivateEndpointConnection; +export type DiskAccessesGetAPrivateEndpointConnectionResponse = + PrivateEndpointConnection; /** Optional parameters. */ export interface DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams @@ -11709,7 +11803,8 @@ export interface DiskAccessesListPrivateEndpointConnectionsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listPrivateEndpointConnections operation. */ -export type DiskAccessesListPrivateEndpointConnectionsResponse = PrivateEndpointConnectionListResult; +export type DiskAccessesListPrivateEndpointConnectionsResponse = + PrivateEndpointConnectionListResult; /** Optional parameters. */ export interface DiskAccessesListByResourceGroupNextOptionalParams @@ -11730,7 +11825,8 @@ export interface DiskAccessesListPrivateEndpointConnectionsNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listPrivateEndpointConnectionsNext operation. */ -export type DiskAccessesListPrivateEndpointConnectionsNextResponse = PrivateEndpointConnectionListResult; +export type DiskAccessesListPrivateEndpointConnectionsNextResponse = + PrivateEndpointConnectionListResult; /** Optional parameters. */ export interface DiskEncryptionSetsCreateOrUpdateOptionalParams @@ -11777,7 +11873,8 @@ export interface DiskEncryptionSetsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type DiskEncryptionSetsListByResourceGroupResponse = DiskEncryptionSetList; +export type DiskEncryptionSetsListByResourceGroupResponse = + DiskEncryptionSetList; /** Optional parameters. */ export interface DiskEncryptionSetsListOptionalParams @@ -11798,7 +11895,8 @@ export interface DiskEncryptionSetsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type DiskEncryptionSetsListByResourceGroupNextResponse = DiskEncryptionSetList; +export type DiskEncryptionSetsListByResourceGroupNextResponse = + DiskEncryptionSetList; /** Optional parameters. */ export interface DiskEncryptionSetsListNextOptionalParams @@ -11812,7 +11910,8 @@ export interface DiskEncryptionSetsListAssociatedResourcesNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAssociatedResourcesNext operation. */ -export type DiskEncryptionSetsListAssociatedResourcesNextResponse = ResourceUriList; +export type DiskEncryptionSetsListAssociatedResourcesNextResponse = + ResourceUriList; /** Optional parameters. */ export interface DiskRestorePointGetOptionalParams @@ -11854,7 +11953,8 @@ export interface DiskRestorePointListByRestorePointNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByRestorePointNext operation. */ -export type DiskRestorePointListByRestorePointNextResponse = DiskRestorePointList; +export type DiskRestorePointListByRestorePointNextResponse = + DiskRestorePointList; /** Optional parameters. */ export interface SnapshotsCreateOrUpdateOptionalParams @@ -12139,14 +12239,16 @@ export interface GalleryImageVersionsListByGalleryImageOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByGalleryImage operation. */ -export type GalleryImageVersionsListByGalleryImageResponse = GalleryImageVersionList; +export type GalleryImageVersionsListByGalleryImageResponse = + GalleryImageVersionList; /** Optional parameters. */ export interface GalleryImageVersionsListByGalleryImageNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByGalleryImageNext operation. */ -export type GalleryImageVersionsListByGalleryImageNextResponse = GalleryImageVersionList; +export type GalleryImageVersionsListByGalleryImageNextResponse = + GalleryImageVersionList; /** Optional parameters. */ export interface GalleryApplicationsCreateOrUpdateOptionalParams @@ -12200,7 +12302,8 @@ export interface GalleryApplicationsListByGalleryNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByGalleryNext operation. */ -export type GalleryApplicationsListByGalleryNextResponse = GalleryApplicationList; +export type GalleryApplicationsListByGalleryNextResponse = + GalleryApplicationList; /** Optional parameters. */ export interface GalleryApplicationVersionsCreateOrUpdateOptionalParams @@ -12212,7 +12315,8 @@ export interface GalleryApplicationVersionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type GalleryApplicationVersionsCreateOrUpdateResponse = GalleryApplicationVersion; +export type GalleryApplicationVersionsCreateOrUpdateResponse = + GalleryApplicationVersion; /** Optional parameters. */ export interface GalleryApplicationVersionsUpdateOptionalParams @@ -12224,7 +12328,8 @@ export interface GalleryApplicationVersionsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type GalleryApplicationVersionsUpdateResponse = GalleryApplicationVersion; +export type GalleryApplicationVersionsUpdateResponse = + GalleryApplicationVersion; /** Optional parameters. */ export interface GalleryApplicationVersionsGetOptionalParams @@ -12250,14 +12355,16 @@ export interface GalleryApplicationVersionsListByGalleryApplicationOptionalParam extends coreClient.OperationOptions {} /** Contains response data for the listByGalleryApplication operation. */ -export type GalleryApplicationVersionsListByGalleryApplicationResponse = GalleryApplicationVersionList; +export type GalleryApplicationVersionsListByGalleryApplicationResponse = + GalleryApplicationVersionList; /** Optional parameters. */ export interface GalleryApplicationVersionsListByGalleryApplicationNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByGalleryApplicationNext operation. */ -export type GalleryApplicationVersionsListByGalleryApplicationNextResponse = GalleryApplicationVersionList; +export type GalleryApplicationVersionsListByGalleryApplicationNextResponse = + GalleryApplicationVersionList; /** Optional parameters. */ export interface GallerySharingProfileUpdateOptionalParams @@ -12327,7 +12434,8 @@ export interface SharedGalleryImageVersionsListOptionalParams } /** Contains response data for the list operation. */ -export type SharedGalleryImageVersionsListResponse = SharedGalleryImageVersionList; +export type SharedGalleryImageVersionsListResponse = + SharedGalleryImageVersionList; /** Optional parameters. */ export interface SharedGalleryImageVersionsGetOptionalParams @@ -12341,7 +12449,8 @@ export interface SharedGalleryImageVersionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SharedGalleryImageVersionsListNextResponse = SharedGalleryImageVersionList; +export type SharedGalleryImageVersionsListNextResponse = + SharedGalleryImageVersionList; /** Optional parameters. */ export interface CommunityGalleriesGetOptionalParams @@ -12376,21 +12485,24 @@ export interface CommunityGalleryImageVersionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type CommunityGalleryImageVersionsGetResponse = CommunityGalleryImageVersion; +export type CommunityGalleryImageVersionsGetResponse = + CommunityGalleryImageVersion; /** Optional parameters. */ export interface CommunityGalleryImageVersionsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type CommunityGalleryImageVersionsListResponse = CommunityGalleryImageVersionList; +export type CommunityGalleryImageVersionsListResponse = + CommunityGalleryImageVersionList; /** Optional parameters. */ export interface CommunityGalleryImageVersionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type CommunityGalleryImageVersionsListNextResponse = CommunityGalleryImageVersionList; +export type CommunityGalleryImageVersionsListNextResponse = + CommunityGalleryImageVersionList; /** Optional parameters. */ export interface CloudServiceRoleInstancesDeleteOptionalParams @@ -12669,14 +12781,16 @@ export interface CloudServicesUpdateDomainListUpdateDomainsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listUpdateDomains operation. */ -export type CloudServicesUpdateDomainListUpdateDomainsResponse = UpdateDomainListResult; +export type CloudServicesUpdateDomainListUpdateDomainsResponse = + UpdateDomainListResult; /** Optional parameters. */ export interface CloudServicesUpdateDomainListUpdateDomainsNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listUpdateDomainsNext operation. */ -export type CloudServicesUpdateDomainListUpdateDomainsNextResponse = UpdateDomainListResult; +export type CloudServicesUpdateDomainListUpdateDomainsNextResponse = + UpdateDomainListResult; /** Optional parameters. */ export interface CloudServiceOperatingSystemsGetOSVersionOptionalParams @@ -12690,7 +12804,8 @@ export interface CloudServiceOperatingSystemsListOSVersionsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listOSVersions operation. */ -export type CloudServiceOperatingSystemsListOSVersionsResponse = OSVersionListResult; +export type CloudServiceOperatingSystemsListOSVersionsResponse = + OSVersionListResult; /** Optional parameters. */ export interface CloudServiceOperatingSystemsGetOSFamilyOptionalParams @@ -12704,21 +12819,24 @@ export interface CloudServiceOperatingSystemsListOSFamiliesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listOSFamilies operation. */ -export type CloudServiceOperatingSystemsListOSFamiliesResponse = OSFamilyListResult; +export type CloudServiceOperatingSystemsListOSFamiliesResponse = + OSFamilyListResult; /** Optional parameters. */ export interface CloudServiceOperatingSystemsListOSVersionsNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listOSVersionsNext operation. */ -export type CloudServiceOperatingSystemsListOSVersionsNextResponse = OSVersionListResult; +export type CloudServiceOperatingSystemsListOSVersionsNextResponse = + OSVersionListResult; /** Optional parameters. */ export interface CloudServiceOperatingSystemsListOSFamiliesNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listOSFamiliesNext operation. */ -export type CloudServiceOperatingSystemsListOSFamiliesNextResponse = OSFamilyListResult; +export type CloudServiceOperatingSystemsListOSFamiliesNextResponse = + OSFamilyListResult; /** Optional parameters. */ export interface ComputeManagementClientOptionalParams diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index d27adb0c3126..2c55387101a7 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -21,13 +21,13 @@ export const ComputeOperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ComputeOperationValue" - } - } - } - } - } - } + className: "ComputeOperationValue", + }, + }, + }, + }, + }, + }, }; export const ComputeOperationValue: coreClient.CompositeMapper = { @@ -39,46 +39,46 @@ export const ComputeOperationValue: coreClient.CompositeMapper = { serializedName: "origin", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "display.operation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "display.resource", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "display.description", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provider: { serializedName: "display.provider", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudError: coreClient.CompositeMapper = { @@ -90,11 +90,11 @@ export const CloudError: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ApiError" - } - } - } - } + className: "ApiError", + }, + }, + }, + }, }; export const ApiError: coreClient.CompositeMapper = { @@ -109,38 +109,38 @@ export const ApiError: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiErrorBase" - } - } - } + className: "ApiErrorBase", + }, + }, + }, }, innererror: { serializedName: "innererror", type: { name: "Composite", - className: "InnerError" - } + className: "InnerError", + }, }, code: { serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiErrorBase: coreClient.CompositeMapper = { @@ -151,23 +151,23 @@ export const ApiErrorBase: coreClient.CompositeMapper = { code: { serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const InnerError: coreClient.CompositeMapper = { @@ -178,17 +178,17 @@ export const InnerError: coreClient.CompositeMapper = { exceptiontype: { serializedName: "exceptiontype", type: { - name: "String" - } + name: "String", + }, }, errordetail: { serializedName: "errordetail", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ListUsagesResult: coreClient.CompositeMapper = { @@ -204,19 +204,19 @@ export const ListUsagesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Usage" - } - } - } + className: "Usage", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Usage: coreClient.CompositeMapper = { @@ -229,32 +229,32 @@ export const Usage: coreClient.CompositeMapper = { isConstant: true, serializedName: "unit", type: { - name: "String" - } + name: "String", + }, }, currentValue: { serializedName: "currentValue", required: true, type: { - name: "Number" - } + name: "Number", + }, }, limit: { serializedName: "limit", required: true, type: { - name: "Number" - } + name: "Number", + }, }, name: { serializedName: "name", type: { name: "Composite", - className: "UsageName" - } - } - } - } + className: "UsageName", + }, + }, + }, + }, }; export const UsageName: coreClient.CompositeMapper = { @@ -265,17 +265,17 @@ export const UsageName: coreClient.CompositeMapper = { value: { serializedName: "value", type: { - name: "String" - } + name: "String", + }, }, localizedValue: { serializedName: "localizedValue", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineSizeListResult: coreClient.CompositeMapper = { @@ -290,13 +290,13 @@ export const VirtualMachineSizeListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineSize" - } - } - } - } - } - } + className: "VirtualMachineSize", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineSize: coreClient.CompositeMapper = { @@ -307,41 +307,41 @@ export const VirtualMachineSize: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, numberOfCores: { serializedName: "numberOfCores", type: { - name: "Number" - } + name: "Number", + }, }, osDiskSizeInMB: { serializedName: "osDiskSizeInMB", type: { - name: "Number" - } + name: "Number", + }, }, resourceDiskSizeInMB: { serializedName: "resourceDiskSizeInMB", type: { - name: "Number" - } + name: "Number", + }, }, memoryInMB: { serializedName: "memoryInMB", type: { - name: "Number" - } + name: "Number", + }, }, maxDataDiskCount: { serializedName: "maxDataDiskCount", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const VirtualMachineScaleSetListResult: coreClient.CompositeMapper = { @@ -357,19 +357,19 @@ export const VirtualMachineScaleSetListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineScaleSet" - } - } - } + className: "VirtualMachineScaleSet", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Sku: coreClient.CompositeMapper = { @@ -380,23 +380,23 @@ export const Sku: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", type: { - name: "String" - } + name: "String", + }, }, capacity: { serializedName: "capacity", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const Plan: coreClient.CompositeMapper = { @@ -407,29 +407,29 @@ export const Plan: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "publisher", type: { - name: "String" - } + name: "String", + }, }, product: { serializedName: "product", type: { - name: "String" - } + name: "String", + }, }, promotionCode: { serializedName: "promotionCode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UpgradePolicy: coreClient.CompositeMapper = { @@ -441,25 +441,25 @@ export const UpgradePolicy: coreClient.CompositeMapper = { serializedName: "mode", type: { name: "Enum", - allowedValues: ["Automatic", "Manual", "Rolling"] - } + allowedValues: ["Automatic", "Manual", "Rolling"], + }, }, rollingUpgradePolicy: { serializedName: "rollingUpgradePolicy", type: { name: "Composite", - className: "RollingUpgradePolicy" - } + className: "RollingUpgradePolicy", + }, }, automaticOSUpgradePolicy: { serializedName: "automaticOSUpgradePolicy", type: { name: "Composite", - className: "AutomaticOSUpgradePolicy" - } - } - } - } + className: "AutomaticOSUpgradePolicy", + }, + }, + }, + }, }; export const RollingUpgradePolicy: coreClient.CompositeMapper = { @@ -470,65 +470,65 @@ export const RollingUpgradePolicy: coreClient.CompositeMapper = { maxBatchInstancePercent: { constraints: { InclusiveMaximum: 100, - InclusiveMinimum: 5 + InclusiveMinimum: 5, }, serializedName: "maxBatchInstancePercent", type: { - name: "Number" - } + name: "Number", + }, }, maxUnhealthyInstancePercent: { constraints: { InclusiveMaximum: 100, - InclusiveMinimum: 5 + InclusiveMinimum: 5, }, serializedName: "maxUnhealthyInstancePercent", type: { - name: "Number" - } + name: "Number", + }, }, maxUnhealthyUpgradedInstancePercent: { constraints: { InclusiveMaximum: 100, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "maxUnhealthyUpgradedInstancePercent", type: { - name: "Number" - } + name: "Number", + }, }, pauseTimeBetweenBatches: { serializedName: "pauseTimeBetweenBatches", type: { - name: "String" - } + name: "String", + }, }, enableCrossZoneUpgrade: { serializedName: "enableCrossZoneUpgrade", type: { - name: "Boolean" - } + name: "Boolean", + }, }, prioritizeUnhealthyInstances: { serializedName: "prioritizeUnhealthyInstances", type: { - name: "Boolean" - } + name: "Boolean", + }, }, rollbackFailedInstancesOnPolicyBreach: { serializedName: "rollbackFailedInstancesOnPolicyBreach", type: { - name: "Boolean" - } + name: "Boolean", + }, }, maxSurge: { serializedName: "maxSurge", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const AutomaticOSUpgradePolicy: coreClient.CompositeMapper = { @@ -539,29 +539,29 @@ export const AutomaticOSUpgradePolicy: coreClient.CompositeMapper = { enableAutomaticOSUpgrade: { serializedName: "enableAutomaticOSUpgrade", type: { - name: "Boolean" - } + name: "Boolean", + }, }, disableAutomaticRollback: { serializedName: "disableAutomaticRollback", type: { - name: "Boolean" - } + name: "Boolean", + }, }, useRollingUpgradePolicy: { serializedName: "useRollingUpgradePolicy", type: { - name: "Boolean" - } + name: "Boolean", + }, }, osRollingUpgradeDeferral: { serializedName: "osRollingUpgradeDeferral", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const AutomaticRepairsPolicy: coreClient.CompositeMapper = { @@ -572,23 +572,23 @@ export const AutomaticRepairsPolicy: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, gracePeriod: { serializedName: "gracePeriod", type: { - name: "String" - } + name: "String", + }, }, repairAction: { serializedName: "repairAction", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineScaleSetVMProfile: coreClient.CompositeMapper = { @@ -600,126 +600,126 @@ export const VirtualMachineScaleSetVMProfile: coreClient.CompositeMapper = { serializedName: "osProfile", type: { name: "Composite", - className: "VirtualMachineScaleSetOSProfile" - } + className: "VirtualMachineScaleSetOSProfile", + }, }, storageProfile: { serializedName: "storageProfile", type: { name: "Composite", - className: "VirtualMachineScaleSetStorageProfile" - } + className: "VirtualMachineScaleSetStorageProfile", + }, }, networkProfile: { serializedName: "networkProfile", type: { name: "Composite", - className: "VirtualMachineScaleSetNetworkProfile" - } + className: "VirtualMachineScaleSetNetworkProfile", + }, }, securityProfile: { serializedName: "securityProfile", type: { name: "Composite", - className: "SecurityProfile" - } + className: "SecurityProfile", + }, }, diagnosticsProfile: { serializedName: "diagnosticsProfile", type: { name: "Composite", - className: "DiagnosticsProfile" - } + className: "DiagnosticsProfile", + }, }, extensionProfile: { serializedName: "extensionProfile", type: { name: "Composite", - className: "VirtualMachineScaleSetExtensionProfile" - } + className: "VirtualMachineScaleSetExtensionProfile", + }, }, licenseType: { serializedName: "licenseType", type: { - name: "String" - } + name: "String", + }, }, priority: { serializedName: "priority", type: { - name: "String" - } + name: "String", + }, }, evictionPolicy: { serializedName: "evictionPolicy", type: { - name: "String" - } + name: "String", + }, }, billingProfile: { serializedName: "billingProfile", type: { name: "Composite", - className: "BillingProfile" - } + className: "BillingProfile", + }, }, scheduledEventsProfile: { serializedName: "scheduledEventsProfile", type: { name: "Composite", - className: "ScheduledEventsProfile" - } + className: "ScheduledEventsProfile", + }, }, userData: { serializedName: "userData", type: { - name: "String" - } + name: "String", + }, }, capacityReservation: { serializedName: "capacityReservation", type: { name: "Composite", - className: "CapacityReservationProfile" - } + className: "CapacityReservationProfile", + }, }, applicationProfile: { serializedName: "applicationProfile", type: { name: "Composite", - className: "ApplicationProfile" - } + className: "ApplicationProfile", + }, }, hardwareProfile: { serializedName: "hardwareProfile", type: { name: "Composite", - className: "VirtualMachineScaleSetHardwareProfile" - } + className: "VirtualMachineScaleSetHardwareProfile", + }, }, serviceArtifactReference: { serializedName: "serviceArtifactReference", type: { name: "Composite", - className: "ServiceArtifactReference" - } + className: "ServiceArtifactReference", + }, }, securityPostureReference: { serializedName: "securityPostureReference", type: { name: "Composite", - className: "SecurityPostureReference" - } + className: "SecurityPostureReference", + }, }, timeCreated: { serializedName: "timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const VirtualMachineScaleSetOSProfile: coreClient.CompositeMapper = { @@ -730,40 +730,40 @@ export const VirtualMachineScaleSetOSProfile: coreClient.CompositeMapper = { computerNamePrefix: { serializedName: "computerNamePrefix", type: { - name: "String" - } + name: "String", + }, }, adminUsername: { serializedName: "adminUsername", type: { - name: "String" - } + name: "String", + }, }, adminPassword: { serializedName: "adminPassword", type: { - name: "String" - } + name: "String", + }, }, customData: { serializedName: "customData", type: { - name: "String" - } + name: "String", + }, }, windowsConfiguration: { serializedName: "windowsConfiguration", type: { name: "Composite", - className: "WindowsConfiguration" - } + className: "WindowsConfiguration", + }, }, linuxConfiguration: { serializedName: "linuxConfiguration", type: { name: "Composite", - className: "LinuxConfiguration" - } + className: "LinuxConfiguration", + }, }, secrets: { serializedName: "secrets", @@ -772,25 +772,25 @@ export const VirtualMachineScaleSetOSProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VaultSecretGroup" - } - } - } + className: "VaultSecretGroup", + }, + }, + }, }, allowExtensionOperations: { serializedName: "allowExtensionOperations", type: { - name: "Boolean" - } + name: "Boolean", + }, }, requireGuestProvisionSignal: { serializedName: "requireGuestProvisionSignal", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const WindowsConfiguration: coreClient.CompositeMapper = { @@ -801,20 +801,20 @@ export const WindowsConfiguration: coreClient.CompositeMapper = { provisionVMAgent: { serializedName: "provisionVMAgent", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableAutomaticUpdates: { serializedName: "enableAutomaticUpdates", type: { - name: "Boolean" - } + name: "Boolean", + }, }, timeZone: { serializedName: "timeZone", type: { - name: "String" - } + name: "String", + }, }, additionalUnattendContent: { serializedName: "additionalUnattendContent", @@ -823,33 +823,33 @@ export const WindowsConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AdditionalUnattendContent" - } - } - } + className: "AdditionalUnattendContent", + }, + }, + }, }, patchSettings: { serializedName: "patchSettings", type: { name: "Composite", - className: "PatchSettings" - } + className: "PatchSettings", + }, }, winRM: { serializedName: "winRM", type: { name: "Composite", - className: "WinRMConfiguration" - } + className: "WinRMConfiguration", + }, }, enableVMAgentPlatformUpdates: { serializedName: "enableVMAgentPlatformUpdates", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const AdditionalUnattendContent: coreClient.CompositeMapper = { @@ -862,32 +862,32 @@ export const AdditionalUnattendContent: coreClient.CompositeMapper = { isConstant: true, serializedName: "passName", type: { - name: "String" - } + name: "String", + }, }, componentName: { defaultValue: "Microsoft-Windows-Shell-Setup", isConstant: true, serializedName: "componentName", type: { - name: "String" - } + name: "String", + }, }, settingName: { serializedName: "settingName", type: { name: "Enum", - allowedValues: ["AutoLogon", "FirstLogonCommands"] - } + allowedValues: ["AutoLogon", "FirstLogonCommands"], + }, }, content: { serializedName: "content", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PatchSettings: coreClient.CompositeMapper = { @@ -898,52 +898,53 @@ export const PatchSettings: coreClient.CompositeMapper = { patchMode: { serializedName: "patchMode", type: { - name: "String" - } + name: "String", + }, }, enableHotpatching: { serializedName: "enableHotpatching", type: { - name: "Boolean" - } + name: "Boolean", + }, }, assessmentMode: { serializedName: "assessmentMode", type: { - name: "String" - } + name: "String", + }, }, automaticByPlatformSettings: { serializedName: "automaticByPlatformSettings", type: { name: "Composite", - className: "WindowsVMGuestPatchAutomaticByPlatformSettings" - } - } - } - } -}; - -export const WindowsVMGuestPatchAutomaticByPlatformSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WindowsVMGuestPatchAutomaticByPlatformSettings", - modelProperties: { - rebootSetting: { - serializedName: "rebootSetting", - type: { - name: "String" - } + className: "WindowsVMGuestPatchAutomaticByPlatformSettings", + }, }, - bypassPlatformSafetyChecksOnUserSchedule: { - serializedName: "bypassPlatformSafetyChecksOnUserSchedule", - type: { - name: "Boolean" - } - } - } - } -}; + }, + }, +}; + +export const WindowsVMGuestPatchAutomaticByPlatformSettings: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "WindowsVMGuestPatchAutomaticByPlatformSettings", + modelProperties: { + rebootSetting: { + serializedName: "rebootSetting", + type: { + name: "String", + }, + }, + bypassPlatformSafetyChecksOnUserSchedule: { + serializedName: "bypassPlatformSafetyChecksOnUserSchedule", + type: { + name: "Boolean", + }, + }, + }, + }, + }; export const WinRMConfiguration: coreClient.CompositeMapper = { type: { @@ -957,13 +958,13 @@ export const WinRMConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "WinRMListener" - } - } - } - } - } - } + className: "WinRMListener", + }, + }, + }, + }, + }, + }, }; export const WinRMListener: coreClient.CompositeMapper = { @@ -975,17 +976,17 @@ export const WinRMListener: coreClient.CompositeMapper = { serializedName: "protocol", type: { name: "Enum", - allowedValues: ["Http", "Https"] - } + allowedValues: ["Http", "Https"], + }, }, certificateUrl: { serializedName: "certificateUrl", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LinuxConfiguration: coreClient.CompositeMapper = { @@ -996,37 +997,37 @@ export const LinuxConfiguration: coreClient.CompositeMapper = { disablePasswordAuthentication: { serializedName: "disablePasswordAuthentication", type: { - name: "Boolean" - } + name: "Boolean", + }, }, ssh: { serializedName: "ssh", type: { name: "Composite", - className: "SshConfiguration" - } + className: "SshConfiguration", + }, }, provisionVMAgent: { serializedName: "provisionVMAgent", type: { - name: "Boolean" - } + name: "Boolean", + }, }, patchSettings: { serializedName: "patchSettings", type: { name: "Composite", - className: "LinuxPatchSettings" - } + className: "LinuxPatchSettings", + }, }, enableVMAgentPlatformUpdates: { serializedName: "enableVMAgentPlatformUpdates", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SshConfiguration: coreClient.CompositeMapper = { @@ -1041,13 +1042,13 @@ export const SshConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SshPublicKey" - } - } - } - } - } - } + className: "SshPublicKey", + }, + }, + }, + }, + }, + }, }; export const SshPublicKey: coreClient.CompositeMapper = { @@ -1058,17 +1059,17 @@ export const SshPublicKey: coreClient.CompositeMapper = { path: { serializedName: "path", type: { - name: "String" - } + name: "String", + }, }, keyData: { serializedName: "keyData", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LinuxPatchSettings: coreClient.CompositeMapper = { @@ -1079,46 +1080,47 @@ export const LinuxPatchSettings: coreClient.CompositeMapper = { patchMode: { serializedName: "patchMode", type: { - name: "String" - } + name: "String", + }, }, assessmentMode: { serializedName: "assessmentMode", type: { - name: "String" - } + name: "String", + }, }, automaticByPlatformSettings: { serializedName: "automaticByPlatformSettings", type: { name: "Composite", - className: "LinuxVMGuestPatchAutomaticByPlatformSettings" - } - } - } - } -}; - -export const LinuxVMGuestPatchAutomaticByPlatformSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LinuxVMGuestPatchAutomaticByPlatformSettings", - modelProperties: { - rebootSetting: { - serializedName: "rebootSetting", - type: { - name: "String" - } + className: "LinuxVMGuestPatchAutomaticByPlatformSettings", + }, }, - bypassPlatformSafetyChecksOnUserSchedule: { - serializedName: "bypassPlatformSafetyChecksOnUserSchedule", - type: { - name: "Boolean" - } - } - } - } -}; + }, + }, +}; + +export const LinuxVMGuestPatchAutomaticByPlatformSettings: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "LinuxVMGuestPatchAutomaticByPlatformSettings", + modelProperties: { + rebootSetting: { + serializedName: "rebootSetting", + type: { + name: "String", + }, + }, + bypassPlatformSafetyChecksOnUserSchedule: { + serializedName: "bypassPlatformSafetyChecksOnUserSchedule", + type: { + name: "Boolean", + }, + }, + }, + }, + }; export const VaultSecretGroup: coreClient.CompositeMapper = { type: { @@ -1129,8 +1131,8 @@ export const VaultSecretGroup: coreClient.CompositeMapper = { serializedName: "sourceVault", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, vaultCertificates: { serializedName: "vaultCertificates", @@ -1139,13 +1141,13 @@ export const VaultSecretGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VaultCertificate" - } - } - } - } - } - } + className: "VaultCertificate", + }, + }, + }, + }, + }, + }, }; export const SubResource: coreClient.CompositeMapper = { @@ -1156,11 +1158,11 @@ export const SubResource: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VaultCertificate: coreClient.CompositeMapper = { @@ -1171,59 +1173,60 @@ export const VaultCertificate: coreClient.CompositeMapper = { certificateUrl: { serializedName: "certificateUrl", type: { - name: "String" - } + name: "String", + }, }, certificateStore: { serializedName: "certificateStore", type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetStorageProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetStorageProfile", - modelProperties: { - imageReference: { - serializedName: "imageReference", - type: { - name: "Composite", - className: "ImageReference" - } - }, - osDisk: { - serializedName: "osDisk", - type: { - name: "Composite", - className: "VirtualMachineScaleSetOSDisk" - } + name: "String", + }, }, - dataDisks: { - serializedName: "dataDisks", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetDataDisk" - } - } - } + }, + }, +}; + +export const VirtualMachineScaleSetStorageProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetStorageProfile", + modelProperties: { + imageReference: { + serializedName: "imageReference", + type: { + name: "Composite", + className: "ImageReference", + }, + }, + osDisk: { + serializedName: "osDisk", + type: { + name: "Composite", + className: "VirtualMachineScaleSetOSDisk", + }, + }, + dataDisks: { + serializedName: "dataDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetDataDisk", + }, + }, + }, + }, + diskControllerType: { + serializedName: "diskControllerType", + type: { + name: "String", + }, + }, }, - diskControllerType: { - serializedName: "diskControllerType", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const VirtualMachineScaleSetOSDisk: coreClient.CompositeMapper = { type: { @@ -1233,55 +1236,55 @@ export const VirtualMachineScaleSetOSDisk: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, caching: { serializedName: "caching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, writeAcceleratorEnabled: { serializedName: "writeAcceleratorEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, createOption: { serializedName: "createOption", required: true, type: { - name: "String" - } + name: "String", + }, }, diffDiskSettings: { serializedName: "diffDiskSettings", type: { name: "Composite", - className: "DiffDiskSettings" - } + className: "DiffDiskSettings", + }, }, diskSizeGB: { serializedName: "diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, osType: { serializedName: "osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, image: { serializedName: "image", type: { name: "Composite", - className: "VirtualHardDisk" - } + className: "VirtualHardDisk", + }, }, vhdContainers: { serializedName: "vhdContainers", @@ -1289,26 +1292,26 @@ export const VirtualMachineScaleSetOSDisk: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "VirtualMachineScaleSetManagedDiskParameters" - } + className: "VirtualMachineScaleSetManagedDiskParameters", + }, }, deleteOption: { serializedName: "deleteOption", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiffDiskSettings: coreClient.CompositeMapper = { @@ -1319,17 +1322,17 @@ export const DiffDiskSettings: coreClient.CompositeMapper = { option: { serializedName: "option", type: { - name: "String" - } + name: "String", + }, }, placement: { serializedName: "placement", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualHardDisk: coreClient.CompositeMapper = { @@ -1340,41 +1343,42 @@ export const VirtualHardDisk: coreClient.CompositeMapper = { uri: { serializedName: "uri", type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetManagedDiskParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetManagedDiskParameters", - modelProperties: { - storageAccountType: { - serializedName: "storageAccountType", - type: { - name: "String" - } + name: "String", + }, }, - diskEncryptionSet: { - serializedName: "diskEncryptionSet", - type: { - name: "Composite", - className: "DiskEncryptionSetParameters" - } + }, + }, +}; + +export const VirtualMachineScaleSetManagedDiskParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetManagedDiskParameters", + modelProperties: { + storageAccountType: { + serializedName: "storageAccountType", + type: { + name: "String", + }, + }, + diskEncryptionSet: { + serializedName: "diskEncryptionSet", + type: { + name: "Composite", + className: "DiskEncryptionSetParameters", + }, + }, + securityProfile: { + serializedName: "securityProfile", + type: { + name: "Composite", + className: "VMDiskSecurityProfile", + }, + }, }, - securityProfile: { - serializedName: "securityProfile", - type: { - name: "Composite", - className: "VMDiskSecurityProfile" - } - } - } - } -}; + }, + }; export const VMDiskSecurityProfile: coreClient.CompositeMapper = { type: { @@ -1384,18 +1388,18 @@ export const VMDiskSecurityProfile: coreClient.CompositeMapper = { securityEncryptionType: { serializedName: "securityEncryptionType", type: { - name: "String" - } + name: "String", + }, }, diskEncryptionSet: { serializedName: "diskEncryptionSet", type: { name: "Composite", - className: "DiskEncryptionSetParameters" - } - } - } - } + className: "DiskEncryptionSetParameters", + }, + }, + }, + }, }; export const VirtualMachineScaleSetDataDisk: coreClient.CompositeMapper = { @@ -1406,104 +1410,105 @@ export const VirtualMachineScaleSetDataDisk: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, lun: { serializedName: "lun", required: true, type: { - name: "Number" - } + name: "Number", + }, }, caching: { serializedName: "caching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, writeAcceleratorEnabled: { serializedName: "writeAcceleratorEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, createOption: { serializedName: "createOption", required: true, type: { - name: "String" - } + name: "String", + }, }, diskSizeGB: { serializedName: "diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "VirtualMachineScaleSetManagedDiskParameters" - } + className: "VirtualMachineScaleSetManagedDiskParameters", + }, }, diskIopsReadWrite: { serializedName: "diskIOPSReadWrite", type: { - name: "Number" - } + name: "Number", + }, }, diskMBpsReadWrite: { serializedName: "diskMBpsReadWrite", type: { - name: "Number" - } + name: "Number", + }, }, deleteOption: { serializedName: "deleteOption", type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetNetworkProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkProfile", - modelProperties: { - healthProbe: { - serializedName: "healthProbe", - type: { - name: "Composite", - className: "ApiEntityReference" - } - }, - networkInterfaceConfigurations: { - serializedName: "networkInterfaceConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfiguration" - } - } - } - }, - networkApiVersion: { - serializedName: "networkApiVersion", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const VirtualMachineScaleSetNetworkProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkProfile", + modelProperties: { + healthProbe: { + serializedName: "healthProbe", + type: { + name: "Composite", + className: "ApiEntityReference", + }, + }, + networkInterfaceConfigurations: { + serializedName: "networkInterfaceConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfiguration", + }, + }, + }, + }, + networkApiVersion: { + serializedName: "networkApiVersion", + type: { + name: "String", + }, + }, + }, + }, + }; export const ApiEntityReference: coreClient.CompositeMapper = { type: { @@ -1513,302 +1518,308 @@ export const ApiEntityReference: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetNetworkConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfiguration", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - primary: { - serializedName: "properties.primary", - type: { - name: "Boolean" - } - }, - enableAcceleratedNetworking: { - serializedName: "properties.enableAcceleratedNetworking", - type: { - name: "Boolean" - } - }, - disableTcpStateTracking: { - serializedName: "properties.disableTcpStateTracking", - type: { - name: "Boolean" - } - }, - enableFpga: { - serializedName: "properties.enableFpga", - type: { - name: "Boolean" - } - }, - networkSecurityGroup: { - serializedName: "properties.networkSecurityGroup", - type: { - name: "Composite", - className: "SubResource" - } - }, - dnsSettings: { - serializedName: "properties.dnsSettings", - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" - } - }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetIPConfiguration" - } - } - } - }, - enableIPForwarding: { - serializedName: "properties.enableIPForwarding", - type: { - name: "Boolean" - } - }, - deleteOption: { - serializedName: "properties.deleteOption", - type: { - name: "String" - } - }, - auxiliaryMode: { - serializedName: "properties.auxiliaryMode", - type: { - name: "String" - } - }, - auxiliarySku: { - serializedName: "properties.auxiliarySku", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetNetworkConfigurationDnsSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings", - modelProperties: { - dnsServers: { - serializedName: "dnsServers", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetIPConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetIPConfiguration", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - subnet: { - serializedName: "properties.subnet", - type: { - name: "Composite", - className: "ApiEntityReference" - } - }, - primary: { - serializedName: "properties.primary", - type: { - name: "Boolean" - } - }, - publicIPAddressConfiguration: { - serializedName: "properties.publicIPAddressConfiguration", - type: { - name: "Composite", - className: "VirtualMachineScaleSetPublicIPAddressConfiguration" - } - }, - privateIPAddressVersion: { - serializedName: "properties.privateIPAddressVersion", - type: { - name: "String" - } - }, - applicationGatewayBackendAddressPools: { - serializedName: "properties.applicationGatewayBackendAddressPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - applicationSecurityGroups: { - serializedName: "properties.applicationSecurityGroups", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - loadBalancerBackendAddressPools: { - serializedName: "properties.loadBalancerBackendAddressPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - loadBalancerInboundNatPools: { - serializedName: "properties.loadBalancerInboundNatPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetPublicIPAddressConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetPublicIPAddressConfiguration", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "PublicIPAddressSku" - } - }, - idleTimeoutInMinutes: { - serializedName: "properties.idleTimeoutInMinutes", - type: { - name: "Number" - } + name: "String", + }, }, - dnsSettings: { - serializedName: "properties.dnsSettings", - type: { - name: "Composite", - className: - "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings" - } + }, + }, +}; + +export const VirtualMachineScaleSetNetworkConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean", + }, + }, + enableAcceleratedNetworking: { + serializedName: "properties.enableAcceleratedNetworking", + type: { + name: "Boolean", + }, + }, + disableTcpStateTracking: { + serializedName: "properties.disableTcpStateTracking", + type: { + name: "Boolean", + }, + }, + enableFpga: { + serializedName: "properties.enableFpga", + type: { + name: "Boolean", + }, + }, + networkSecurityGroup: { + serializedName: "properties.networkSecurityGroup", + type: { + name: "Composite", + className: "SubResource", + }, + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings", + }, + }, + ipConfigurations: { + serializedName: "properties.ipConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetIPConfiguration", + }, + }, + }, + }, + enableIPForwarding: { + serializedName: "properties.enableIPForwarding", + type: { + name: "Boolean", + }, + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String", + }, + }, + auxiliaryMode: { + serializedName: "properties.auxiliaryMode", + type: { + name: "String", + }, + }, + auxiliarySku: { + serializedName: "properties.auxiliarySku", + type: { + name: "String", + }, + }, }, - ipTags: { - serializedName: "properties.ipTags", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetIpTag" - } - } - } + }, + }; + +export const VirtualMachineScaleSetNetworkConfigurationDnsSettings: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings", + modelProperties: { + dnsServers: { + serializedName: "dnsServers", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, }, - publicIPPrefix: { - serializedName: "properties.publicIPPrefix", - type: { - name: "Composite", - className: "SubResource" - } + }, + }; + +export const VirtualMachineScaleSetIPConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetIPConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "ApiEntityReference", + }, + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean", + }, + }, + publicIPAddressConfiguration: { + serializedName: "properties.publicIPAddressConfiguration", + type: { + name: "Composite", + className: "VirtualMachineScaleSetPublicIPAddressConfiguration", + }, + }, + privateIPAddressVersion: { + serializedName: "properties.privateIPAddressVersion", + type: { + name: "String", + }, + }, + applicationGatewayBackendAddressPools: { + serializedName: "properties.applicationGatewayBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + applicationSecurityGroups: { + serializedName: "properties.applicationSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + loadBalancerBackendAddressPools: { + serializedName: "properties.loadBalancerBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + loadBalancerInboundNatPools: { + serializedName: "properties.loadBalancerInboundNatPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, }, - publicIPAddressVersion: { - serializedName: "properties.publicIPAddressVersion", - type: { - name: "String" - } + }, + }; + +export const VirtualMachineScaleSetPublicIPAddressConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetPublicIPAddressConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "PublicIPAddressSku", + }, + }, + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", + type: { + name: "Number", + }, + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: + "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings", + }, + }, + ipTags: { + serializedName: "properties.ipTags", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetIpTag", + }, + }, + }, + }, + publicIPPrefix: { + serializedName: "properties.publicIPPrefix", + type: { + name: "Composite", + className: "SubResource", + }, + }, + publicIPAddressVersion: { + serializedName: "properties.publicIPAddressVersion", + type: { + name: "String", + }, + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String", + }, + }, }, - deleteOption: { - serializedName: "properties.deleteOption", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings", - modelProperties: { - domainNameLabel: { - serializedName: "domainNameLabel", - required: true, - type: { - name: "String" - } + }, + }; + +export const VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: + "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings", + modelProperties: { + domainNameLabel: { + serializedName: "domainNameLabel", + required: true, + type: { + name: "String", + }, + }, + domainNameLabelScope: { + serializedName: "domainNameLabelScope", + type: { + name: "String", + }, + }, }, - domainNameLabelScope: { - serializedName: "domainNameLabelScope", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const VirtualMachineScaleSetIpTag: coreClient.CompositeMapper = { type: { @@ -1818,17 +1829,17 @@ export const VirtualMachineScaleSetIpTag: coreClient.CompositeMapper = { ipTagType: { serializedName: "ipTagType", type: { - name: "String" - } + name: "String", + }, }, tag: { serializedName: "tag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PublicIPAddressSku: coreClient.CompositeMapper = { @@ -1839,17 +1850,17 @@ export const PublicIPAddressSku: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SecurityProfile: coreClient.CompositeMapper = { @@ -1861,37 +1872,37 @@ export const SecurityProfile: coreClient.CompositeMapper = { serializedName: "uefiSettings", type: { name: "Composite", - className: "UefiSettings" - } + className: "UefiSettings", + }, }, encryptionAtHost: { serializedName: "encryptionAtHost", type: { - name: "Boolean" - } + name: "Boolean", + }, }, securityType: { serializedName: "securityType", type: { - name: "String" - } + name: "String", + }, }, encryptionIdentity: { serializedName: "encryptionIdentity", type: { name: "Composite", - className: "EncryptionIdentity" - } + className: "EncryptionIdentity", + }, }, proxyAgentSettings: { serializedName: "proxyAgentSettings", type: { name: "Composite", - className: "ProxyAgentSettings" - } - } - } - } + className: "ProxyAgentSettings", + }, + }, + }, + }, }; export const UefiSettings: coreClient.CompositeMapper = { @@ -1902,17 +1913,17 @@ export const UefiSettings: coreClient.CompositeMapper = { secureBootEnabled: { serializedName: "secureBootEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, vTpmEnabled: { serializedName: "vTpmEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const EncryptionIdentity: coreClient.CompositeMapper = { @@ -1923,11 +1934,11 @@ export const EncryptionIdentity: coreClient.CompositeMapper = { userAssignedIdentityResourceId: { serializedName: "userAssignedIdentityResourceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProxyAgentSettings: coreClient.CompositeMapper = { @@ -1938,23 +1949,23 @@ export const ProxyAgentSettings: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, mode: { serializedName: "mode", type: { - name: "String" - } + name: "String", + }, }, keyIncarnationId: { serializedName: "keyIncarnationId", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const DiagnosticsProfile: coreClient.CompositeMapper = { @@ -1966,11 +1977,11 @@ export const DiagnosticsProfile: coreClient.CompositeMapper = { serializedName: "bootDiagnostics", type: { name: "Composite", - className: "BootDiagnostics" - } - } - } - } + className: "BootDiagnostics", + }, + }, + }, + }, }; export const BootDiagnostics: coreClient.CompositeMapper = { @@ -1981,45 +1992,46 @@ export const BootDiagnostics: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, storageUri: { serializedName: "storageUri", type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetExtensionProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetExtensionProfile", - modelProperties: { - extensions: { - serializedName: "extensions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetExtension" - } - } - } + name: "String", + }, }, - extensionsTimeBudget: { - serializedName: "extensionsTimeBudget", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const VirtualMachineScaleSetExtensionProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetExtensionProfile", + modelProperties: { + extensions: { + serializedName: "extensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetExtension", + }, + }, + }, + }, + extensionsTimeBudget: { + serializedName: "extensionsTimeBudget", + type: { + name: "String", + }, + }, + }, + }, + }; export const KeyVaultSecretReference: coreClient.CompositeMapper = { type: { @@ -2030,18 +2042,18 @@ export const KeyVaultSecretReference: coreClient.CompositeMapper = { serializedName: "secretUrl", required: true, type: { - name: "String" - } + name: "String", + }, }, sourceVault: { serializedName: "sourceVault", type: { name: "Composite", - className: "SubResource" - } - } - } - } + className: "SubResource", + }, + }, + }, + }, }; export const SubResourceReadOnly: coreClient.CompositeMapper = { @@ -2053,11 +2065,11 @@ export const SubResourceReadOnly: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BillingProfile: coreClient.CompositeMapper = { @@ -2068,11 +2080,11 @@ export const BillingProfile: coreClient.CompositeMapper = { maxPrice: { serializedName: "maxPrice", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ScheduledEventsProfile: coreClient.CompositeMapper = { @@ -2084,18 +2096,18 @@ export const ScheduledEventsProfile: coreClient.CompositeMapper = { serializedName: "terminateNotificationProfile", type: { name: "Composite", - className: "TerminateNotificationProfile" - } + className: "TerminateNotificationProfile", + }, }, osImageNotificationProfile: { serializedName: "osImageNotificationProfile", type: { name: "Composite", - className: "OSImageNotificationProfile" - } - } - } - } + className: "OSImageNotificationProfile", + }, + }, + }, + }, }; export const TerminateNotificationProfile: coreClient.CompositeMapper = { @@ -2106,17 +2118,17 @@ export const TerminateNotificationProfile: coreClient.CompositeMapper = { notBeforeTimeout: { serializedName: "notBeforeTimeout", type: { - name: "String" - } + name: "String", + }, }, enable: { serializedName: "enable", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const OSImageNotificationProfile: coreClient.CompositeMapper = { @@ -2127,17 +2139,17 @@ export const OSImageNotificationProfile: coreClient.CompositeMapper = { notBeforeTimeout: { serializedName: "notBeforeTimeout", type: { - name: "String" - } + name: "String", + }, }, enable: { serializedName: "enable", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const CapacityReservationProfile: coreClient.CompositeMapper = { @@ -2149,11 +2161,11 @@ export const CapacityReservationProfile: coreClient.CompositeMapper = { serializedName: "capacityReservationGroup", type: { name: "Composite", - className: "SubResource" - } - } - } - } + className: "SubResource", + }, + }, + }, + }, }; export const ApplicationProfile: coreClient.CompositeMapper = { @@ -2168,13 +2180,13 @@ export const ApplicationProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VMGalleryApplication" - } - } - } - } - } - } + className: "VMGalleryApplication", + }, + }, + }, + }, + }, + }, }; export const VMGalleryApplication: coreClient.CompositeMapper = { @@ -2185,59 +2197,60 @@ export const VMGalleryApplication: coreClient.CompositeMapper = { tags: { serializedName: "tags", type: { - name: "String" - } + name: "String", + }, }, order: { serializedName: "order", type: { - name: "Number" - } + name: "Number", + }, }, packageReferenceId: { serializedName: "packageReferenceId", required: true, type: { - name: "String" - } + name: "String", + }, }, configurationReference: { serializedName: "configurationReference", type: { - name: "String" - } + name: "String", + }, }, treatFailureAsDeploymentFailure: { serializedName: "treatFailureAsDeploymentFailure", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableAutomaticUpgrade: { serializedName: "enableAutomaticUpgrade", type: { - name: "Boolean" - } - } - } - } -}; - -export const VirtualMachineScaleSetHardwareProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetHardwareProfile", - modelProperties: { - vmSizeProperties: { - serializedName: "vmSizeProperties", - type: { - name: "Composite", - className: "VMSizeProperties" - } - } - } - } -}; + name: "Boolean", + }, + }, + }, + }, +}; + +export const VirtualMachineScaleSetHardwareProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetHardwareProfile", + modelProperties: { + vmSizeProperties: { + serializedName: "vmSizeProperties", + type: { + name: "Composite", + className: "VMSizeProperties", + }, + }, + }, + }, + }; export const VMSizeProperties: coreClient.CompositeMapper = { type: { @@ -2247,17 +2260,17 @@ export const VMSizeProperties: coreClient.CompositeMapper = { vCPUsAvailable: { serializedName: "vCPUsAvailable", type: { - name: "Number" - } + name: "Number", + }, }, vCPUsPerCore: { serializedName: "vCPUsPerCore", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ServiceArtifactReference: coreClient.CompositeMapper = { @@ -2268,11 +2281,11 @@ export const ServiceArtifactReference: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SecurityPostureReference: coreClient.CompositeMapper = { @@ -2283,8 +2296,8 @@ export const SecurityPostureReference: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, excludeExtensions: { serializedName: "excludeExtensions", @@ -2293,13 +2306,13 @@ export const SecurityPostureReference: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineExtension" - } - } - } - } - } - } + className: "VirtualMachineExtension", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineExtensionInstanceView: coreClient.CompositeMapper = { @@ -2310,20 +2323,20 @@ export const VirtualMachineExtensionInstanceView: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, typeHandlerVersion: { serializedName: "typeHandlerVersion", type: { - name: "String" - } + name: "String", + }, }, substatuses: { serializedName: "substatuses", @@ -2332,10 +2345,10 @@ export const VirtualMachineExtensionInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } + className: "InstanceViewStatus", + }, + }, + }, }, statuses: { serializedName: "statuses", @@ -2344,13 +2357,13 @@ export const VirtualMachineExtensionInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const InstanceViewStatus: coreClient.CompositeMapper = { @@ -2361,36 +2374,36 @@ export const InstanceViewStatus: coreClient.CompositeMapper = { code: { serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, level: { serializedName: "level", type: { name: "Enum", - allowedValues: ["Info", "Warning", "Error"] - } + allowedValues: ["Info", "Warning", "Error"], + }, }, displayStatus: { serializedName: "displayStatus", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } + name: "String", + }, }, time: { serializedName: "time", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const ResourceWithOptionalLocation: coreClient.CompositeMapper = { @@ -2401,39 +2414,39 @@ export const ResourceWithOptionalLocation: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const AdditionalCapabilities: coreClient.CompositeMapper = { @@ -2444,17 +2457,17 @@ export const AdditionalCapabilities: coreClient.CompositeMapper = { ultraSSDEnabled: { serializedName: "ultraSSDEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, hibernationEnabled: { serializedName: "hibernationEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ScaleInPolicy: coreClient.CompositeMapper = { @@ -2468,19 +2481,19 @@ export const ScaleInPolicy: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, forceDeletion: { serializedName: "forceDeletion", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SpotRestorePolicy: coreClient.CompositeMapper = { @@ -2491,17 +2504,17 @@ export const SpotRestorePolicy: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, restoreTimeout: { serializedName: "restoreTimeout", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PriorityMixPolicy: coreClient.CompositeMapper = { @@ -2511,25 +2524,25 @@ export const PriorityMixPolicy: coreClient.CompositeMapper = { modelProperties: { baseRegularPriorityCount: { constraints: { - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "baseRegularPriorityCount", type: { - name: "Number" - } + name: "Number", + }, }, regularPriorityPercentageAboveBase: { constraints: { InclusiveMaximum: 100, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "regularPriorityPercentageAboveBase", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ResiliencyPolicy: coreClient.CompositeMapper = { @@ -2541,18 +2554,18 @@ export const ResiliencyPolicy: coreClient.CompositeMapper = { serializedName: "resilientVMCreationPolicy", type: { name: "Composite", - className: "ResilientVMCreationPolicy" - } + className: "ResilientVMCreationPolicy", + }, }, resilientVMDeletionPolicy: { serializedName: "resilientVMDeletionPolicy", type: { name: "Composite", - className: "ResilientVMDeletionPolicy" - } - } - } - } + className: "ResilientVMDeletionPolicy", + }, + }, + }, + }, }; export const ResilientVMCreationPolicy: coreClient.CompositeMapper = { @@ -2563,11 +2576,11 @@ export const ResilientVMCreationPolicy: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ResilientVMDeletionPolicy: coreClient.CompositeMapper = { @@ -2578,11 +2591,11 @@ export const ResilientVMDeletionPolicy: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const VirtualMachineScaleSetIdentity: coreClient.CompositeMapper = { @@ -2594,15 +2607,15 @@ export const VirtualMachineScaleSetIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", @@ -2612,9 +2625,9 @@ export const VirtualMachineScaleSetIdentity: coreClient.CompositeMapper = { "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", - "None" - ] - } + "None", + ], + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", @@ -2623,13 +2636,13 @@ export const VirtualMachineScaleSetIdentity: coreClient.CompositeMapper = { value: { type: { name: "Composite", - className: "UserAssignedIdentitiesValue" - } - } - } - } - } - } + className: "UserAssignedIdentitiesValue", + }, + }, + }, + }, + }, + }, }; export const UserAssignedIdentitiesValue: coreClient.CompositeMapper = { @@ -2641,18 +2654,18 @@ export const UserAssignedIdentitiesValue: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, clientId: { serializedName: "clientId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ExtendedLocation: coreClient.CompositeMapper = { @@ -2663,17 +2676,17 @@ export const ExtendedLocation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -2685,206 +2698,209 @@ export const Resource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", required: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const VirtualMachineScaleSetUpdateVMProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateVMProfile", - modelProperties: { - osProfile: { - serializedName: "osProfile", - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateOSProfile" - } - }, - storageProfile: { - serializedName: "storageProfile", - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateStorageProfile" - } - }, - networkProfile: { - serializedName: "networkProfile", - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkProfile" - } - }, - securityProfile: { - serializedName: "securityProfile", - type: { - name: "Composite", - className: "SecurityProfile" - } - }, - diagnosticsProfile: { - serializedName: "diagnosticsProfile", - type: { - name: "Composite", - className: "DiagnosticsProfile" - } - }, - extensionProfile: { - serializedName: "extensionProfile", - type: { - name: "Composite", - className: "VirtualMachineScaleSetExtensionProfile" - } - }, - licenseType: { - serializedName: "licenseType", - type: { - name: "String" - } - }, - billingProfile: { - serializedName: "billingProfile", - type: { - name: "Composite", - className: "BillingProfile" - } - }, - scheduledEventsProfile: { - serializedName: "scheduledEventsProfile", - type: { - name: "Composite", - className: "ScheduledEventsProfile" - } - }, - userData: { - serializedName: "userData", - type: { - name: "String" - } - }, - hardwareProfile: { - serializedName: "hardwareProfile", - type: { - name: "Composite", - className: "VirtualMachineScaleSetHardwareProfile" - } - } - } - } -}; - -export const VirtualMachineScaleSetUpdateOSProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateOSProfile", - modelProperties: { - customData: { - serializedName: "customData", - type: { - name: "String" - } - }, - windowsConfiguration: { - serializedName: "windowsConfiguration", - type: { - name: "Composite", - className: "WindowsConfiguration" - } - }, - linuxConfiguration: { - serializedName: "linuxConfiguration", - type: { - name: "Composite", - className: "LinuxConfiguration" - } + value: { type: { name: "String" } }, + }, }, - secrets: { - serializedName: "secrets", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VaultSecretGroup" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetUpdateStorageProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateStorageProfile", - modelProperties: { - imageReference: { - serializedName: "imageReference", - type: { - name: "Composite", - className: "ImageReference" - } + }, + }, +}; + +export const VirtualMachineScaleSetUpdateVMProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateVMProfile", + modelProperties: { + osProfile: { + serializedName: "osProfile", + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateOSProfile", + }, + }, + storageProfile: { + serializedName: "storageProfile", + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateStorageProfile", + }, + }, + networkProfile: { + serializedName: "networkProfile", + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateNetworkProfile", + }, + }, + securityProfile: { + serializedName: "securityProfile", + type: { + name: "Composite", + className: "SecurityProfile", + }, + }, + diagnosticsProfile: { + serializedName: "diagnosticsProfile", + type: { + name: "Composite", + className: "DiagnosticsProfile", + }, + }, + extensionProfile: { + serializedName: "extensionProfile", + type: { + name: "Composite", + className: "VirtualMachineScaleSetExtensionProfile", + }, + }, + licenseType: { + serializedName: "licenseType", + type: { + name: "String", + }, + }, + billingProfile: { + serializedName: "billingProfile", + type: { + name: "Composite", + className: "BillingProfile", + }, + }, + scheduledEventsProfile: { + serializedName: "scheduledEventsProfile", + type: { + name: "Composite", + className: "ScheduledEventsProfile", + }, + }, + userData: { + serializedName: "userData", + type: { + name: "String", + }, + }, + hardwareProfile: { + serializedName: "hardwareProfile", + type: { + name: "Composite", + className: "VirtualMachineScaleSetHardwareProfile", + }, + }, }, - osDisk: { - serializedName: "osDisk", - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateOSDisk" - } + }, + }; + +export const VirtualMachineScaleSetUpdateOSProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateOSProfile", + modelProperties: { + customData: { + serializedName: "customData", + type: { + name: "String", + }, + }, + windowsConfiguration: { + serializedName: "windowsConfiguration", + type: { + name: "Composite", + className: "WindowsConfiguration", + }, + }, + linuxConfiguration: { + serializedName: "linuxConfiguration", + type: { + name: "Composite", + className: "LinuxConfiguration", + }, + }, + secrets: { + serializedName: "secrets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VaultSecretGroup", + }, + }, + }, + }, }, - dataDisks: { - serializedName: "dataDisks", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetDataDisk" - } - } - } + }, + }; + +export const VirtualMachineScaleSetUpdateStorageProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateStorageProfile", + modelProperties: { + imageReference: { + serializedName: "imageReference", + type: { + name: "Composite", + className: "ImageReference", + }, + }, + osDisk: { + serializedName: "osDisk", + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateOSDisk", + }, + }, + dataDisks: { + serializedName: "dataDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetDataDisk", + }, + }, + }, + }, + diskControllerType: { + serializedName: "diskControllerType", + type: { + name: "String", + }, + }, }, - diskControllerType: { - serializedName: "diskControllerType", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const VirtualMachineScaleSetUpdateOSDisk: coreClient.CompositeMapper = { type: { @@ -2895,27 +2911,27 @@ export const VirtualMachineScaleSetUpdateOSDisk: coreClient.CompositeMapper = { serializedName: "caching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, writeAcceleratorEnabled: { serializedName: "writeAcceleratorEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, diskSizeGB: { serializedName: "diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, image: { serializedName: "image", type: { name: "Composite", - className: "VirtualHardDisk" - } + className: "VirtualHardDisk", + }, }, vhdContainers: { serializedName: "vhdContainers", @@ -2923,296 +2939,301 @@ export const VirtualMachineScaleSetUpdateOSDisk: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "VirtualMachineScaleSetManagedDiskParameters" - } + className: "VirtualMachineScaleSetManagedDiskParameters", + }, }, deleteOption: { serializedName: "deleteOption", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const VirtualMachineScaleSetUpdateNetworkProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateNetworkProfile", + modelProperties: { + healthProbe: { + serializedName: "healthProbe", + type: { + name: "Composite", + className: "ApiEntityReference", + }, + }, + networkInterfaceConfigurations: { + serializedName: "networkInterfaceConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateNetworkConfiguration", + }, + }, + }, + }, + networkApiVersion: { + serializedName: "networkApiVersion", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const VirtualMachineScaleSetUpdateNetworkConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateNetworkConfiguration", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean", + }, + }, + enableAcceleratedNetworking: { + serializedName: "properties.enableAcceleratedNetworking", + type: { + name: "Boolean", + }, + }, + disableTcpStateTracking: { + serializedName: "properties.disableTcpStateTracking", + type: { + name: "Boolean", + }, + }, + enableFpga: { + serializedName: "properties.enableFpga", + type: { + name: "Boolean", + }, + }, + networkSecurityGroup: { + serializedName: "properties.networkSecurityGroup", + type: { + name: "Composite", + className: "SubResource", + }, + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings", + }, + }, + ipConfigurations: { + serializedName: "properties.ipConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateIPConfiguration", + }, + }, + }, + }, + enableIPForwarding: { + serializedName: "properties.enableIPForwarding", + type: { + name: "Boolean", + }, + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String", + }, + }, + auxiliaryMode: { + serializedName: "properties.auxiliaryMode", + type: { + name: "String", + }, + }, + auxiliarySku: { + serializedName: "properties.auxiliarySku", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const VirtualMachineScaleSetUpdateIPConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateIPConfiguration", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "ApiEntityReference", + }, + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean", + }, + }, + publicIPAddressConfiguration: { + serializedName: "properties.publicIPAddressConfiguration", + type: { + name: "Composite", + className: + "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration", + }, + }, + privateIPAddressVersion: { + serializedName: "properties.privateIPAddressVersion", + type: { + name: "String", + }, + }, + applicationGatewayBackendAddressPools: { + serializedName: "properties.applicationGatewayBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + applicationSecurityGroups: { + serializedName: "properties.applicationSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + loadBalancerBackendAddressPools: { + serializedName: "properties.loadBalancerBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + loadBalancerInboundNatPools: { + serializedName: "properties.loadBalancerInboundNatPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + }, + }, + }; + +export const VirtualMachineScaleSetUpdatePublicIPAddressConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", + type: { + name: "Number", + }, + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: + "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings", + }, + }, + publicIPPrefix: { + serializedName: "properties.publicIPPrefix", + type: { + name: "Composite", + className: "SubResource", + }, + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String", + }, + }, + }, + }, + }; -export const VirtualMachineScaleSetUpdateNetworkProfile: coreClient.CompositeMapper = { +export const UpdateResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkProfile", + className: "UpdateResource", modelProperties: { - healthProbe: { - serializedName: "healthProbe", - type: { - name: "Composite", - className: "ApiEntityReference" - } - }, - networkInterfaceConfigurations: { - serializedName: "networkInterfaceConfigurations", + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkConfiguration" - } - } - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - networkApiVersion: { - serializedName: "networkApiVersion", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetUpdateNetworkConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkConfiguration", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - primary: { - serializedName: "properties.primary", - type: { - name: "Boolean" - } - }, - enableAcceleratedNetworking: { - serializedName: "properties.enableAcceleratedNetworking", - type: { - name: "Boolean" - } - }, - disableTcpStateTracking: { - serializedName: "properties.disableTcpStateTracking", - type: { - name: "Boolean" - } - }, - enableFpga: { - serializedName: "properties.enableFpga", - type: { - name: "Boolean" - } - }, - networkSecurityGroup: { - serializedName: "properties.networkSecurityGroup", - type: { - name: "Composite", - className: "SubResource" - } - }, - dnsSettings: { - serializedName: "properties.dnsSettings", - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" - } - }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateIPConfiguration" - } - } - } - }, - enableIPForwarding: { - serializedName: "properties.enableIPForwarding", - type: { - name: "Boolean" - } - }, - deleteOption: { - serializedName: "properties.deleteOption", - type: { - name: "String" - } - }, - auxiliaryMode: { - serializedName: "properties.auxiliaryMode", - type: { - name: "String" - } - }, - auxiliarySku: { - serializedName: "properties.auxiliarySku", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetUpdateIPConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateIPConfiguration", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - subnet: { - serializedName: "properties.subnet", - type: { - name: "Composite", - className: "ApiEntityReference" - } - }, - primary: { - serializedName: "properties.primary", - type: { - name: "Boolean" - } - }, - publicIPAddressConfiguration: { - serializedName: "properties.publicIPAddressConfiguration", - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration" - } - }, - privateIPAddressVersion: { - serializedName: "properties.privateIPAddressVersion", - type: { - name: "String" - } - }, - applicationGatewayBackendAddressPools: { - serializedName: "properties.applicationGatewayBackendAddressPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - applicationSecurityGroups: { - serializedName: "properties.applicationSecurityGroups", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - loadBalancerBackendAddressPools: { - serializedName: "properties.loadBalancerBackendAddressPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - loadBalancerInboundNatPools: { - serializedName: "properties.loadBalancerInboundNatPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetUpdatePublicIPAddressConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - idleTimeoutInMinutes: { - serializedName: "properties.idleTimeoutInMinutes", - type: { - name: "Number" - } - }, - dnsSettings: { - serializedName: "properties.dnsSettings", - type: { - name: "Composite", - className: - "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings" - } - }, - publicIPPrefix: { - serializedName: "properties.publicIPPrefix", - type: { - name: "Composite", - className: "SubResource" - } - }, - deleteOption: { - serializedName: "properties.deleteOption", - type: { - name: "String" - } - } - } - } -}; - -export const UpdateResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpdateResource", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + }, + }, }; export const VirtualMachineScaleSetVMInstanceIDs: coreClient.CompositeMapper = { @@ -3226,35 +3247,36 @@ export const VirtualMachineScaleSetVMInstanceIDs: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetVMInstanceRequiredIDs: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMInstanceRequiredIDs", - modelProperties: { - instanceIds: { - serializedName: "instanceIds", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const VirtualMachineScaleSetVMInstanceRequiredIDs: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMInstanceRequiredIDs", + modelProperties: { + instanceIds: { + serializedName: "instanceIds", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, + }; export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { type: { @@ -3265,8 +3287,8 @@ export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { serializedName: "virtualMachine", type: { name: "Composite", - className: "VirtualMachineScaleSetInstanceViewStatusesSummary" - } + className: "VirtualMachineScaleSetInstanceViewStatusesSummary", + }, }, extensions: { serializedName: "extensions", @@ -3276,10 +3298,10 @@ export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineScaleSetVMExtensionsSummary" - } - } - } + className: "VirtualMachineScaleSetVMExtensionsSummary", + }, + }, + }, }, statuses: { serializedName: "statuses", @@ -3288,10 +3310,10 @@ export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } + className: "InstanceViewStatus", + }, + }, + }, }, orchestrationServices: { serializedName: "orchestrationServices", @@ -3301,36 +3323,37 @@ export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OrchestrationServiceSummary" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetInstanceViewStatusesSummary: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetInstanceViewStatusesSummary", - modelProperties: { - statusesSummary: { - serializedName: "statusesSummary", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineStatusCodeCount" - } - } - } - } - } - } -}; + className: "OrchestrationServiceSummary", + }, + }, + }, + }, + }, + }, +}; + +export const VirtualMachineScaleSetInstanceViewStatusesSummary: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetInstanceViewStatusesSummary", + modelProperties: { + statusesSummary: { + serializedName: "statusesSummary", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineStatusCodeCount", + }, + }, + }, + }, + }, + }, + }; export const VirtualMachineStatusCodeCount: coreClient.CompositeMapper = { type: { @@ -3341,48 +3364,49 @@ export const VirtualMachineStatusCodeCount: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, count: { serializedName: "count", readOnly: true, type: { - name: "Number" - } - } - } - } -}; - -export const VirtualMachineScaleSetVMExtensionsSummary: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMExtensionsSummary", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } + name: "Number", + }, }, - statusesSummary: { - serializedName: "statusesSummary", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineStatusCodeCount" - } - } - } - } - } - } -}; + }, + }, +}; + +export const VirtualMachineScaleSetVMExtensionsSummary: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMExtensionsSummary", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + statusesSummary: { + serializedName: "statusesSummary", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineStatusCodeCount", + }, + }, + }, + }, + }, + }, + }; export const OrchestrationServiceSummary: coreClient.CompositeMapper = { type: { @@ -3393,103 +3417,106 @@ export const OrchestrationServiceSummary: coreClient.CompositeMapper = { serializedName: "serviceName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, serviceState: { serializedName: "serviceState", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetExtensionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetExtensionListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetExtension" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetListWithLinkResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetListWithLinkResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSet" - } - } - } + }, + }, +}; + +export const VirtualMachineScaleSetExtensionListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetExtensionListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetExtension", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetListSkusResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetListSkusResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetSku" - } - } - } + }, + }; + +export const VirtualMachineScaleSetListWithLinkResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetListWithLinkResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSet", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; + }, + }; + +export const VirtualMachineScaleSetListSkusResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetListSkusResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetSku", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; export const VirtualMachineScaleSetSku: coreClient.CompositeMapper = { type: { @@ -3500,25 +3527,25 @@ export const VirtualMachineScaleSetSku: coreClient.CompositeMapper = { serializedName: "resourceType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, capacity: { serializedName: "capacity", type: { name: "Composite", - className: "VirtualMachineScaleSetSkuCapacity" - } - } - } - } + className: "VirtualMachineScaleSetSkuCapacity", + }, + }, + }, + }, }; export const VirtualMachineScaleSetSkuCapacity: coreClient.CompositeMapper = { @@ -3530,144 +3557,147 @@ export const VirtualMachineScaleSetSkuCapacity: coreClient.CompositeMapper = { serializedName: "minimum", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, maximum: { serializedName: "maximum", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, defaultCapacity: { serializedName: "defaultCapacity", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, scaleType: { serializedName: "scaleType", readOnly: true, type: { name: "Enum", - allowedValues: ["Automatic", "None"] - } - } - } - } -}; - -export const VirtualMachineScaleSetListOSUpgradeHistory: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetListOSUpgradeHistory", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UpgradeOperationHistoricalStatusInfo" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const UpgradeOperationHistoricalStatusInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpgradeOperationHistoricalStatusInfo", - modelProperties: { - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "UpgradeOperationHistoricalStatusInfoProperties" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - location: { - serializedName: "location", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const UpgradeOperationHistoricalStatusInfoProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpgradeOperationHistoricalStatusInfoProperties", - modelProperties: { - runningStatus: { - serializedName: "runningStatus", - type: { - name: "Composite", - className: "UpgradeOperationHistoryStatus" - } - }, - progress: { - serializedName: "progress", - type: { - name: "Composite", - className: "RollingUpgradeProgressInfo" - } + allowedValues: ["Automatic", "None"], + }, }, - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ApiError" - } + }, + }, +}; + +export const VirtualMachineScaleSetListOSUpgradeHistory: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetListOSUpgradeHistory", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UpgradeOperationHistoricalStatusInfo", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, }, - startedBy: { - serializedName: "startedBy", - readOnly: true, + }, + }; + +export const UpgradeOperationHistoricalStatusInfo: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "UpgradeOperationHistoricalStatusInfo", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "UpgradeOperationHistoricalStatusInfoProperties", + }, + }, type: { - name: "Enum", - allowedValues: ["Unknown", "User", "Platform"] - } + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String", + }, + }, }, - targetImageReference: { - serializedName: "targetImageReference", - type: { - name: "Composite", - className: "ImageReference" - } + }, + }; + +export const UpgradeOperationHistoricalStatusInfoProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "UpgradeOperationHistoricalStatusInfoProperties", + modelProperties: { + runningStatus: { + serializedName: "runningStatus", + type: { + name: "Composite", + className: "UpgradeOperationHistoryStatus", + }, + }, + progress: { + serializedName: "progress", + type: { + name: "Composite", + className: "RollingUpgradeProgressInfo", + }, + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ApiError", + }, + }, + startedBy: { + serializedName: "startedBy", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Unknown", "User", "Platform"], + }, + }, + targetImageReference: { + serializedName: "targetImageReference", + type: { + name: "Composite", + className: "ImageReference", + }, + }, + rollbackInfo: { + serializedName: "rollbackInfo", + type: { + name: "Composite", + className: "RollbackStatusInfo", + }, + }, }, - rollbackInfo: { - serializedName: "rollbackInfo", - type: { - name: "Composite", - className: "RollbackStatusInfo" - } - } - } - } -}; + }, + }; export const UpgradeOperationHistoryStatus: coreClient.CompositeMapper = { type: { @@ -3679,25 +3709,30 @@ export const UpgradeOperationHistoryStatus: coreClient.CompositeMapper = { readOnly: true, type: { name: "Enum", - allowedValues: ["RollingForward", "Cancelled", "Completed", "Faulted"] - } + allowedValues: [ + "RollingForward", + "Cancelled", + "Completed", + "Faulted", + ], + }, }, startTime: { serializedName: "startTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, endTime: { serializedName: "endTime", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const RollingUpgradeProgressInfo: coreClient.CompositeMapper = { @@ -3709,32 +3744,32 @@ export const RollingUpgradeProgressInfo: coreClient.CompositeMapper = { serializedName: "successfulInstanceCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, failedInstanceCount: { serializedName: "failedInstanceCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, inProgressInstanceCount: { serializedName: "inProgressInstanceCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, pendingInstanceCount: { serializedName: "pendingInstanceCount", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const RollbackStatusInfo: coreClient.CompositeMapper = { @@ -3746,25 +3781,25 @@ export const RollbackStatusInfo: coreClient.CompositeMapper = { serializedName: "successfullyRolledbackInstanceCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, failedRolledbackInstanceCount: { serializedName: "failedRolledbackInstanceCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, rollbackError: { serializedName: "rollbackError", type: { name: "Composite", - className: "ApiError" - } - } - } - } + className: "ApiError", + }, + }, + }, + }, }; export const VirtualMachineReimageParameters: coreClient.CompositeMapper = { @@ -3775,24 +3810,24 @@ export const VirtualMachineReimageParameters: coreClient.CompositeMapper = { tempDisk: { serializedName: "tempDisk", type: { - name: "Boolean" - } + name: "Boolean", + }, }, exactVersion: { serializedName: "exactVersion", type: { - name: "String" - } + name: "String", + }, }, osProfile: { serializedName: "osProfile", type: { name: "Composite", - className: "OSProfileProvisioningData" - } - } - } - } + className: "OSProfileProvisioningData", + }, + }, + }, + }, }; export const OSProfileProvisioningData: coreClient.CompositeMapper = { @@ -3803,17 +3838,17 @@ export const OSProfileProvisioningData: coreClient.CompositeMapper = { adminPassword: { serializedName: "adminPassword", type: { - name: "String" - } + name: "String", + }, }, customData: { serializedName: "customData", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RollingUpgradeRunningStatus: coreClient.CompositeMapper = { @@ -3826,244 +3861,252 @@ export const RollingUpgradeRunningStatus: coreClient.CompositeMapper = { readOnly: true, type: { name: "Enum", - allowedValues: ["RollingForward", "Cancelled", "Completed", "Faulted"] - } + allowedValues: [ + "RollingForward", + "Cancelled", + "Completed", + "Faulted", + ], + }, }, startTime: { serializedName: "startTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastAction: { serializedName: "lastAction", readOnly: true, type: { name: "Enum", - allowedValues: ["Start", "Cancel"] - } + allowedValues: ["Start", "Cancel"], + }, }, lastActionTime: { serializedName: "lastActionTime", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const RecoveryWalkResponse: coreClient.CompositeMapper = { type: { name: "Composite", className: "RecoveryWalkResponse", - modelProperties: { - walkPerformed: { - serializedName: "walkPerformed", - readOnly: true, - type: { - name: "Boolean" - } - }, - nextPlatformUpdateDomain: { - serializedName: "nextPlatformUpdateDomain", - readOnly: true, - type: { - name: "Number" - } - } - } - } -}; - -export const VMScaleSetConvertToSinglePlacementGroupInput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VMScaleSetConvertToSinglePlacementGroupInput", - modelProperties: { - activePlacementGroupId: { - serializedName: "activePlacementGroupId", - type: { - name: "String" - } - } - } - } -}; - -export const OrchestrationServiceStateInput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OrchestrationServiceStateInput", - modelProperties: { - serviceName: { - serializedName: "serviceName", - required: true, - type: { - name: "String" - } - }, - action: { - serializedName: "action", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetVMExtensionsListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMExtensionsListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMExtension" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetVMInstanceView: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMInstanceView", - modelProperties: { - platformUpdateDomain: { - serializedName: "platformUpdateDomain", - type: { - name: "Number" - } - }, - platformFaultDomain: { - serializedName: "platformFaultDomain", - type: { - name: "Number" - } - }, - rdpThumbPrint: { - serializedName: "rdpThumbPrint", - type: { - name: "String" - } - }, - vmAgent: { - serializedName: "vmAgent", - type: { - name: "Composite", - className: "VirtualMachineAgentInstanceView" - } - }, - maintenanceRedeployStatus: { - serializedName: "maintenanceRedeployStatus", - type: { - name: "Composite", - className: "MaintenanceRedeployStatus" - } - }, - disks: { - serializedName: "disks", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiskInstanceView" - } - } - } - }, - extensions: { - serializedName: "extensions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineExtensionInstanceView" - } - } - } - }, - vmHealth: { - serializedName: "vmHealth", - type: { - name: "Composite", - className: "VirtualMachineHealthStatus" - } - }, - bootDiagnostics: { - serializedName: "bootDiagnostics", - type: { - name: "Composite", - className: "BootDiagnosticsInstanceView" - } - }, - statuses: { - serializedName: "statuses", + modelProperties: { + walkPerformed: { + serializedName: "walkPerformed", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } - } + name: "Boolean", + }, }, - assignedHost: { - serializedName: "assignedHost", + nextPlatformUpdateDomain: { + serializedName: "nextPlatformUpdateDomain", readOnly: true, type: { - name: "String" - } + name: "Number", + }, }, - placementGroupId: { - serializedName: "placementGroupId", - type: { - name: "String" - } + }, + }, +}; + +export const VMScaleSetConvertToSinglePlacementGroupInput: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VMScaleSetConvertToSinglePlacementGroupInput", + modelProperties: { + activePlacementGroupId: { + serializedName: "activePlacementGroupId", + type: { + name: "String", + }, + }, }, - computerName: { - serializedName: "computerName", + }, + }; + +export const OrchestrationServiceStateInput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OrchestrationServiceStateInput", + modelProperties: { + serviceName: { + serializedName: "serviceName", + required: true, type: { - name: "String" - } + name: "String", + }, }, - osName: { - serializedName: "osName", + action: { + serializedName: "action", + required: true, type: { - name: "String" - } + name: "String", + }, }, - osVersion: { - serializedName: "osVersion", - type: { - name: "String" - } + }, + }, +}; + +export const VirtualMachineScaleSetVMExtensionsListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMExtensionsListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMExtension", + }, + }, + }, + }, }, - hyperVGeneration: { - serializedName: "hyperVGeneration", - type: { - name: "String" - } - } - } - } -}; + }, + }; + +export const VirtualMachineScaleSetVMInstanceView: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMInstanceView", + modelProperties: { + platformUpdateDomain: { + serializedName: "platformUpdateDomain", + type: { + name: "Number", + }, + }, + platformFaultDomain: { + serializedName: "platformFaultDomain", + type: { + name: "Number", + }, + }, + rdpThumbPrint: { + serializedName: "rdpThumbPrint", + type: { + name: "String", + }, + }, + vmAgent: { + serializedName: "vmAgent", + type: { + name: "Composite", + className: "VirtualMachineAgentInstanceView", + }, + }, + maintenanceRedeployStatus: { + serializedName: "maintenanceRedeployStatus", + type: { + name: "Composite", + className: "MaintenanceRedeployStatus", + }, + }, + disks: { + serializedName: "disks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskInstanceView", + }, + }, + }, + }, + extensions: { + serializedName: "extensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineExtensionInstanceView", + }, + }, + }, + }, + vmHealth: { + serializedName: "vmHealth", + type: { + name: "Composite", + className: "VirtualMachineHealthStatus", + }, + }, + bootDiagnostics: { + serializedName: "bootDiagnostics", + type: { + name: "Composite", + className: "BootDiagnosticsInstanceView", + }, + }, + statuses: { + serializedName: "statuses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus", + }, + }, + }, + }, + assignedHost: { + serializedName: "assignedHost", + readOnly: true, + type: { + name: "String", + }, + }, + placementGroupId: { + serializedName: "placementGroupId", + type: { + name: "String", + }, + }, + computerName: { + serializedName: "computerName", + type: { + name: "String", + }, + }, + osName: { + serializedName: "osName", + type: { + name: "String", + }, + }, + osVersion: { + serializedName: "osVersion", + type: { + name: "String", + }, + }, + hyperVGeneration: { + serializedName: "hyperVGeneration", + type: { + name: "String", + }, + }, + }, + }, + }; export const VirtualMachineAgentInstanceView: coreClient.CompositeMapper = { type: { @@ -4073,8 +4116,8 @@ export const VirtualMachineAgentInstanceView: coreClient.CompositeMapper = { vmAgentVersion: { serializedName: "vmAgentVersion", type: { - name: "String" - } + name: "String", + }, }, extensionHandlers: { serializedName: "extensionHandlers", @@ -4083,10 +4126,10 @@ export const VirtualMachineAgentInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineExtensionHandlerInstanceView" - } - } - } + className: "VirtualMachineExtensionHandlerInstanceView", + }, + }, + }, }, statuses: { serializedName: "statuses", @@ -4095,42 +4138,43 @@ export const VirtualMachineAgentInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; -export const VirtualMachineExtensionHandlerInstanceView: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineExtensionHandlerInstanceView", - modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - }, - typeHandlerVersion: { - serializedName: "typeHandlerVersion", +export const VirtualMachineExtensionHandlerInstanceView: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineExtensionHandlerInstanceView", + modelProperties: { type: { - name: "String" - } + serializedName: "type", + type: { + name: "String", + }, + }, + typeHandlerVersion: { + serializedName: "typeHandlerVersion", + type: { + name: "String", + }, + }, + status: { + serializedName: "status", + type: { + name: "Composite", + className: "InstanceViewStatus", + }, + }, }, - status: { - serializedName: "status", - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } - } - } -}; + }, + }; export const MaintenanceRedeployStatus: coreClient.CompositeMapper = { type: { @@ -4140,32 +4184,32 @@ export const MaintenanceRedeployStatus: coreClient.CompositeMapper = { isCustomerInitiatedMaintenanceAllowed: { serializedName: "isCustomerInitiatedMaintenanceAllowed", type: { - name: "Boolean" - } + name: "Boolean", + }, }, preMaintenanceWindowStartTime: { serializedName: "preMaintenanceWindowStartTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, preMaintenanceWindowEndTime: { serializedName: "preMaintenanceWindowEndTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, maintenanceWindowStartTime: { serializedName: "maintenanceWindowStartTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, maintenanceWindowEndTime: { serializedName: "maintenanceWindowEndTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastOperationResultCode: { serializedName: "lastOperationResultCode", @@ -4175,18 +4219,18 @@ export const MaintenanceRedeployStatus: coreClient.CompositeMapper = { "None", "RetryLater", "MaintenanceAborted", - "MaintenanceCompleted" - ] - } + "MaintenanceCompleted", + ], + }, }, lastOperationMessage: { serializedName: "lastOperationMessage", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskInstanceView: coreClient.CompositeMapper = { @@ -4197,8 +4241,8 @@ export const DiskInstanceView: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, encryptionSettings: { serializedName: "encryptionSettings", @@ -4207,10 +4251,10 @@ export const DiskInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiskEncryptionSettings" - } - } - } + className: "DiskEncryptionSettings", + }, + }, + }, }, statuses: { serializedName: "statuses", @@ -4219,13 +4263,13 @@ export const DiskInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const DiskEncryptionSettings: coreClient.CompositeMapper = { @@ -4237,24 +4281,24 @@ export const DiskEncryptionSettings: coreClient.CompositeMapper = { serializedName: "diskEncryptionKey", type: { name: "Composite", - className: "KeyVaultSecretReference" - } + className: "KeyVaultSecretReference", + }, }, keyEncryptionKey: { serializedName: "keyEncryptionKey", type: { name: "Composite", - className: "KeyVaultKeyReference" - } + className: "KeyVaultKeyReference", + }, }, enabled: { serializedName: "enabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const KeyVaultKeyReference: coreClient.CompositeMapper = { @@ -4266,18 +4310,18 @@ export const KeyVaultKeyReference: coreClient.CompositeMapper = { serializedName: "keyUrl", required: true, type: { - name: "String" - } + name: "String", + }, }, sourceVault: { serializedName: "sourceVault", type: { name: "Composite", - className: "SubResource" - } - } - } - } + className: "SubResource", + }, + }, + }, + }, }; export const VirtualMachineHealthStatus: coreClient.CompositeMapper = { @@ -4289,11 +4333,11 @@ export const VirtualMachineHealthStatus: coreClient.CompositeMapper = { serializedName: "status", type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, }; export const BootDiagnosticsInstanceView: coreClient.CompositeMapper = { @@ -4305,25 +4349,25 @@ export const BootDiagnosticsInstanceView: coreClient.CompositeMapper = { serializedName: "consoleScreenshotBlobUri", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, serialConsoleLogBlobUri: { serializedName: "serialConsoleLogBlobUri", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, }; export const HardwareProfile: coreClient.CompositeMapper = { @@ -4334,18 +4378,18 @@ export const HardwareProfile: coreClient.CompositeMapper = { vmSize: { serializedName: "vmSize", type: { - name: "String" - } + name: "String", + }, }, vmSizeProperties: { serializedName: "vmSizeProperties", type: { name: "Composite", - className: "VMSizeProperties" - } - } - } - } + className: "VMSizeProperties", + }, + }, + }, + }, }; export const StorageProfile: coreClient.CompositeMapper = { @@ -4357,15 +4401,15 @@ export const StorageProfile: coreClient.CompositeMapper = { serializedName: "imageReference", type: { name: "Composite", - className: "ImageReference" - } + className: "ImageReference", + }, }, osDisk: { serializedName: "osDisk", type: { name: "Composite", - className: "OSDisk" - } + className: "OSDisk", + }, }, dataDisks: { serializedName: "dataDisks", @@ -4374,19 +4418,19 @@ export const StorageProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataDisk" - } - } - } + className: "DataDisk", + }, + }, + }, }, diskControllerType: { serializedName: "diskControllerType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OSDisk: coreClient.CompositeMapper = { @@ -4398,84 +4442,84 @@ export const OSDisk: coreClient.CompositeMapper = { serializedName: "osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, encryptionSettings: { serializedName: "encryptionSettings", type: { name: "Composite", - className: "DiskEncryptionSettings" - } + className: "DiskEncryptionSettings", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, vhd: { serializedName: "vhd", type: { name: "Composite", - className: "VirtualHardDisk" - } + className: "VirtualHardDisk", + }, }, image: { serializedName: "image", type: { name: "Composite", - className: "VirtualHardDisk" - } + className: "VirtualHardDisk", + }, }, caching: { serializedName: "caching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, writeAcceleratorEnabled: { serializedName: "writeAcceleratorEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, diffDiskSettings: { serializedName: "diffDiskSettings", type: { name: "Composite", - className: "DiffDiskSettings" - } + className: "DiffDiskSettings", + }, }, createOption: { serializedName: "createOption", required: true, type: { - name: "String" - } + name: "String", + }, }, diskSizeGB: { serializedName: "diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "ManagedDiskParameters" - } + className: "ManagedDiskParameters", + }, }, deleteOption: { serializedName: "deleteOption", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DataDisk: coreClient.CompositeMapper = { @@ -4487,497 +4531,502 @@ export const DataDisk: coreClient.CompositeMapper = { serializedName: "lun", required: true, type: { - name: "Number" - } + name: "Number", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, vhd: { serializedName: "vhd", type: { name: "Composite", - className: "VirtualHardDisk" - } + className: "VirtualHardDisk", + }, }, image: { serializedName: "image", type: { name: "Composite", - className: "VirtualHardDisk" - } + className: "VirtualHardDisk", + }, }, caching: { serializedName: "caching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, writeAcceleratorEnabled: { serializedName: "writeAcceleratorEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, createOption: { serializedName: "createOption", required: true, type: { - name: "String" - } + name: "String", + }, }, diskSizeGB: { serializedName: "diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "ManagedDiskParameters" - } + className: "ManagedDiskParameters", + }, }, toBeDetached: { serializedName: "toBeDetached", type: { - name: "Boolean" - } - }, - diskIopsReadWrite: { - serializedName: "diskIOPSReadWrite", - readOnly: true, - type: { - name: "Number" - } - }, - diskMBpsReadWrite: { - serializedName: "diskMBpsReadWrite", - readOnly: true, - type: { - name: "Number" - } - }, - detachOption: { - serializedName: "detachOption", - type: { - name: "String" - } - }, - deleteOption: { - serializedName: "deleteOption", - type: { - name: "String" - } - } - } - } -}; - -export const OSProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OSProfile", - modelProperties: { - computerName: { - serializedName: "computerName", - type: { - name: "String" - } - }, - adminUsername: { - serializedName: "adminUsername", - type: { - name: "String" - } - }, - adminPassword: { - serializedName: "adminPassword", - type: { - name: "String" - } - }, - customData: { - serializedName: "customData", - type: { - name: "String" - } - }, - windowsConfiguration: { - serializedName: "windowsConfiguration", - type: { - name: "Composite", - className: "WindowsConfiguration" - } - }, - linuxConfiguration: { - serializedName: "linuxConfiguration", - type: { - name: "Composite", - className: "LinuxConfiguration" - } - }, - secrets: { - serializedName: "secrets", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VaultSecretGroup" - } - } - } - }, - allowExtensionOperations: { - serializedName: "allowExtensionOperations", - type: { - name: "Boolean" - } - }, - requireGuestProvisionSignal: { - serializedName: "requireGuestProvisionSignal", - type: { - name: "Boolean" - } - } - } - } -}; - -export const NetworkProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkProfile", - modelProperties: { - networkInterfaces: { - serializedName: "networkInterfaces", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkInterfaceReference" - } - } - } - }, - networkApiVersion: { - serializedName: "networkApiVersion", - type: { - name: "String" - } - }, - networkInterfaceConfigurations: { - serializedName: "networkInterfaceConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineNetworkInterfaceConfiguration" - } - } - } - } - } - } -}; - -export const VirtualMachineNetworkInterfaceConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineNetworkInterfaceConfiguration", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - primary: { - serializedName: "properties.primary", - type: { - name: "Boolean" - } - }, - deleteOption: { - serializedName: "properties.deleteOption", - type: { - name: "String" - } - }, - enableAcceleratedNetworking: { - serializedName: "properties.enableAcceleratedNetworking", - type: { - name: "Boolean" - } - }, - disableTcpStateTracking: { - serializedName: "properties.disableTcpStateTracking", - type: { - name: "Boolean" - } - }, - enableFpga: { - serializedName: "properties.enableFpga", - type: { - name: "Boolean" - } - }, - enableIPForwarding: { - serializedName: "properties.enableIPForwarding", - type: { - name: "Boolean" - } - }, - networkSecurityGroup: { - serializedName: "properties.networkSecurityGroup", - type: { - name: "Composite", - className: "SubResource" - } + name: "Boolean", + }, }, - dnsSettings: { - serializedName: "properties.dnsSettings", + diskIopsReadWrite: { + serializedName: "diskIOPSReadWrite", + readOnly: true, type: { - name: "Composite", - className: "VirtualMachineNetworkInterfaceDnsSettingsConfiguration" - } + name: "Number", + }, }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", + diskMBpsReadWrite: { + serializedName: "diskMBpsReadWrite", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineNetworkInterfaceIPConfiguration" - } - } - } + name: "Number", + }, }, - dscpConfiguration: { - serializedName: "properties.dscpConfiguration", + detachOption: { + serializedName: "detachOption", type: { - name: "Composite", - className: "SubResource" - } + name: "String", + }, }, - auxiliaryMode: { - serializedName: "properties.auxiliaryMode", + deleteOption: { + serializedName: "deleteOption", type: { - name: "String" - } + name: "String", + }, }, - auxiliarySku: { - serializedName: "properties.auxiliarySku", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const VirtualMachineNetworkInterfaceDnsSettingsConfiguration: coreClient.CompositeMapper = { +export const OSProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineNetworkInterfaceDnsSettingsConfiguration", + className: "OSProfile", modelProperties: { - dnsServers: { - serializedName: "dnsServers", + computerName: { + serializedName: "computerName", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const VirtualMachineNetworkInterfaceIPConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineNetworkInterfaceIPConfiguration", - modelProperties: { - name: { - serializedName: "name", - required: true, + name: "String", + }, + }, + adminUsername: { + serializedName: "adminUsername", type: { - name: "String" - } + name: "String", + }, }, - subnet: { - serializedName: "properties.subnet", + adminPassword: { + serializedName: "adminPassword", type: { - name: "Composite", - className: "SubResource" - } + name: "String", + }, }, - primary: { - serializedName: "properties.primary", + customData: { + serializedName: "customData", type: { - name: "Boolean" - } + name: "String", + }, }, - publicIPAddressConfiguration: { - serializedName: "properties.publicIPAddressConfiguration", + windowsConfiguration: { + serializedName: "windowsConfiguration", type: { name: "Composite", - className: "VirtualMachinePublicIPAddressConfiguration" - } + className: "WindowsConfiguration", + }, }, - privateIPAddressVersion: { - serializedName: "properties.privateIPAddressVersion", + linuxConfiguration: { + serializedName: "linuxConfiguration", type: { - name: "String" - } + name: "Composite", + className: "LinuxConfiguration", + }, }, - applicationSecurityGroups: { - serializedName: "properties.applicationSecurityGroups", + secrets: { + serializedName: "secrets", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubResource" - } - } - } + className: "VaultSecretGroup", + }, + }, + }, }, - applicationGatewayBackendAddressPools: { - serializedName: "properties.applicationGatewayBackendAddressPools", + allowExtensionOperations: { + serializedName: "allowExtensionOperations", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } + name: "Boolean", + }, }, - loadBalancerBackendAddressPools: { - serializedName: "properties.loadBalancerBackendAddressPools", + requireGuestProvisionSignal: { + serializedName: "requireGuestProvisionSignal", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; -export const VirtualMachinePublicIPAddressConfiguration: coreClient.CompositeMapper = { +export const NetworkProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachinePublicIPAddressConfiguration", + className: "NetworkProfile", modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "PublicIPAddressSku" - } - }, - idleTimeoutInMinutes: { - serializedName: "properties.idleTimeoutInMinutes", - type: { - name: "Number" - } - }, - deleteOption: { - serializedName: "properties.deleteOption", + networkInterfaces: { + serializedName: "networkInterfaces", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterfaceReference", + }, + }, + }, }, - dnsSettings: { - serializedName: "properties.dnsSettings", + networkApiVersion: { + serializedName: "networkApiVersion", type: { - name: "Composite", - className: "VirtualMachinePublicIPAddressDnsSettingsConfiguration" - } + name: "String", + }, }, - ipTags: { - serializedName: "properties.ipTags", + networkInterfaceConfigurations: { + serializedName: "networkInterfaceConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineIpTag" - } - } - } + className: "VirtualMachineNetworkInterfaceConfiguration", + }, + }, + }, }, - publicIPPrefix: { - serializedName: "properties.publicIPPrefix", - type: { - name: "Composite", - className: "SubResource" - } + }, + }, +}; + +export const VirtualMachineNetworkInterfaceConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineNetworkInterfaceConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean", + }, + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String", + }, + }, + enableAcceleratedNetworking: { + serializedName: "properties.enableAcceleratedNetworking", + type: { + name: "Boolean", + }, + }, + disableTcpStateTracking: { + serializedName: "properties.disableTcpStateTracking", + type: { + name: "Boolean", + }, + }, + enableFpga: { + serializedName: "properties.enableFpga", + type: { + name: "Boolean", + }, + }, + enableIPForwarding: { + serializedName: "properties.enableIPForwarding", + type: { + name: "Boolean", + }, + }, + networkSecurityGroup: { + serializedName: "properties.networkSecurityGroup", + type: { + name: "Composite", + className: "SubResource", + }, + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: "VirtualMachineNetworkInterfaceDnsSettingsConfiguration", + }, + }, + ipConfigurations: { + serializedName: "properties.ipConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineNetworkInterfaceIPConfiguration", + }, + }, + }, + }, + dscpConfiguration: { + serializedName: "properties.dscpConfiguration", + type: { + name: "Composite", + className: "SubResource", + }, + }, + auxiliaryMode: { + serializedName: "properties.auxiliaryMode", + type: { + name: "String", + }, + }, + auxiliarySku: { + serializedName: "properties.auxiliarySku", + type: { + name: "String", + }, + }, }, - publicIPAddressVersion: { - serializedName: "properties.publicIPAddressVersion", - type: { - name: "String" - } + }, + }; + +export const VirtualMachineNetworkInterfaceDnsSettingsConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineNetworkInterfaceDnsSettingsConfiguration", + modelProperties: { + dnsServers: { + serializedName: "dnsServers", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, }, - publicIPAllocationMethod: { - serializedName: "properties.publicIPAllocationMethod", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachinePublicIPAddressDnsSettingsConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachinePublicIPAddressDnsSettingsConfiguration", - modelProperties: { - domainNameLabel: { - serializedName: "domainNameLabel", - required: true, - type: { - name: "String" - } + }, + }; + +export const VirtualMachineNetworkInterfaceIPConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineNetworkInterfaceIPConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "SubResource", + }, + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean", + }, + }, + publicIPAddressConfiguration: { + serializedName: "properties.publicIPAddressConfiguration", + type: { + name: "Composite", + className: "VirtualMachinePublicIPAddressConfiguration", + }, + }, + privateIPAddressVersion: { + serializedName: "properties.privateIPAddressVersion", + type: { + name: "String", + }, + }, + applicationSecurityGroups: { + serializedName: "properties.applicationSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + applicationGatewayBackendAddressPools: { + serializedName: "properties.applicationGatewayBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + loadBalancerBackendAddressPools: { + serializedName: "properties.loadBalancerBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, }, - domainNameLabelScope: { - serializedName: "domainNameLabelScope", - type: { - name: "String" - } - } - } - } -}; + }, + }; + +export const VirtualMachinePublicIPAddressConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachinePublicIPAddressConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "PublicIPAddressSku", + }, + }, + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", + type: { + name: "Number", + }, + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String", + }, + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: "VirtualMachinePublicIPAddressDnsSettingsConfiguration", + }, + }, + ipTags: { + serializedName: "properties.ipTags", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineIpTag", + }, + }, + }, + }, + publicIPPrefix: { + serializedName: "properties.publicIPPrefix", + type: { + name: "Composite", + className: "SubResource", + }, + }, + publicIPAddressVersion: { + serializedName: "properties.publicIPAddressVersion", + type: { + name: "String", + }, + }, + publicIPAllocationMethod: { + serializedName: "properties.publicIPAllocationMethod", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const VirtualMachinePublicIPAddressDnsSettingsConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachinePublicIPAddressDnsSettingsConfiguration", + modelProperties: { + domainNameLabel: { + serializedName: "domainNameLabel", + required: true, + type: { + name: "String", + }, + }, + domainNameLabelScope: { + serializedName: "domainNameLabelScope", + type: { + name: "String", + }, + }, + }, + }, + }; export const VirtualMachineIpTag: coreClient.CompositeMapper = { type: { @@ -4987,60 +5036,62 @@ export const VirtualMachineIpTag: coreClient.CompositeMapper = { ipTagType: { serializedName: "ipTagType", type: { - name: "String" - } + name: "String", + }, }, tag: { serializedName: "tag", type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetVMNetworkProfileConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMNetworkProfileConfiguration", - modelProperties: { - networkInterfaceConfigurations: { - serializedName: "networkInterfaceConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfiguration" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetVMProtectionPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMProtectionPolicy", - modelProperties: { - protectFromScaleIn: { - serializedName: "protectFromScaleIn", - type: { - name: "Boolean" - } + name: "String", + }, }, - protectFromScaleSetActions: { - serializedName: "protectFromScaleSetActions", - type: { - name: "Boolean" - } - } - } - } -}; + }, + }, +}; + +export const VirtualMachineScaleSetVMNetworkProfileConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMNetworkProfileConfiguration", + modelProperties: { + networkInterfaceConfigurations: { + serializedName: "networkInterfaceConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfiguration", + }, + }, + }, + }, + }, + }, + }; + +export const VirtualMachineScaleSetVMProtectionPolicy: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMProtectionPolicy", + modelProperties: { + protectFromScaleIn: { + serializedName: "protectFromScaleIn", + type: { + name: "Boolean", + }, + }, + protectFromScaleSetActions: { + serializedName: "protectFromScaleSetActions", + type: { + name: "Boolean", + }, + }, + }, + }, + }; export const VirtualMachineIdentity: coreClient.CompositeMapper = { type: { @@ -5051,15 +5102,15 @@ export const VirtualMachineIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", @@ -5069,9 +5120,9 @@ export const VirtualMachineIdentity: coreClient.CompositeMapper = { "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", - "None" - ] - } + "None", + ], + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", @@ -5080,13 +5131,13 @@ export const VirtualMachineIdentity: coreClient.CompositeMapper = { value: { type: { name: "Composite", - className: "UserAssignedIdentitiesValue" - } - } - } - } - } - } + className: "UserAssignedIdentitiesValue", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineScaleSetVMListResult: coreClient.CompositeMapper = { @@ -5102,19 +5153,19 @@ export const VirtualMachineScaleSetVMListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineScaleSetVM" - } - } - } + className: "VirtualMachineScaleSetVM", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RetrieveBootDiagnosticsDataResult: coreClient.CompositeMapper = { @@ -5126,18 +5177,18 @@ export const RetrieveBootDiagnosticsDataResult: coreClient.CompositeMapper = { serializedName: "consoleScreenshotBlobUri", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, serialConsoleLogBlobUri: { serializedName: "serialConsoleLogBlobUri", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AttachDetachDataDisksRequest: coreClient.CompositeMapper = { @@ -5147,7 +5198,7 @@ export const AttachDetachDataDisksRequest: coreClient.CompositeMapper = { modelProperties: { dataDisksToAttach: { constraints: { - MinItems: 1 + MinItems: 1, }, serializedName: "dataDisksToAttach", type: { @@ -5155,14 +5206,14 @@ export const AttachDetachDataDisksRequest: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataDisksToAttach" - } - } - } + className: "DataDisksToAttach", + }, + }, + }, }, dataDisksToDetach: { constraints: { - MinItems: 1 + MinItems: 1, }, serializedName: "dataDisksToDetach", type: { @@ -5170,13 +5221,13 @@ export const AttachDetachDataDisksRequest: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataDisksToDetach" - } - } - } - } - } - } + className: "DataDisksToDetach", + }, + }, + }, + }, + }, + }, }; export const DataDisksToAttach: coreClient.CompositeMapper = { @@ -5188,17 +5239,17 @@ export const DataDisksToAttach: coreClient.CompositeMapper = { serializedName: "diskId", required: true, type: { - name: "String" - } + name: "String", + }, }, lun: { serializedName: "lun", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const DataDisksToDetach: coreClient.CompositeMapper = { @@ -5210,17 +5261,17 @@ export const DataDisksToDetach: coreClient.CompositeMapper = { serializedName: "diskId", required: true, type: { - name: "String" - } + name: "String", + }, }, detachOption: { serializedName: "detachOption", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineExtensionsListResult: coreClient.CompositeMapper = { @@ -5235,13 +5286,13 @@ export const VirtualMachineExtensionsListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineExtension" - } - } - } - } - } - } + className: "VirtualMachineExtension", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineListResult: coreClient.CompositeMapper = { @@ -5257,19 +5308,19 @@ export const VirtualMachineListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachine" - } - } - } + className: "VirtualMachine", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineInstanceView: coreClient.CompositeMapper = { @@ -5280,58 +5331,58 @@ export const VirtualMachineInstanceView: coreClient.CompositeMapper = { platformUpdateDomain: { serializedName: "platformUpdateDomain", type: { - name: "Number" - } + name: "Number", + }, }, platformFaultDomain: { serializedName: "platformFaultDomain", type: { - name: "Number" - } + name: "Number", + }, }, computerName: { serializedName: "computerName", type: { - name: "String" - } + name: "String", + }, }, osName: { serializedName: "osName", type: { - name: "String" - } + name: "String", + }, }, osVersion: { serializedName: "osVersion", type: { - name: "String" - } + name: "String", + }, }, hyperVGeneration: { serializedName: "hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, rdpThumbPrint: { serializedName: "rdpThumbPrint", type: { - name: "String" - } + name: "String", + }, }, vmAgent: { serializedName: "vmAgent", type: { name: "Composite", - className: "VirtualMachineAgentInstanceView" - } + className: "VirtualMachineAgentInstanceView", + }, }, maintenanceRedeployStatus: { serializedName: "maintenanceRedeployStatus", type: { name: "Composite", - className: "MaintenanceRedeployStatus" - } + className: "MaintenanceRedeployStatus", + }, }, disks: { serializedName: "disks", @@ -5340,10 +5391,10 @@ export const VirtualMachineInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiskInstanceView" - } - } - } + className: "DiskInstanceView", + }, + }, + }, }, extensions: { serializedName: "extensions", @@ -5352,31 +5403,31 @@ export const VirtualMachineInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineExtensionInstanceView" - } - } - } + className: "VirtualMachineExtensionInstanceView", + }, + }, + }, }, vmHealth: { serializedName: "vmHealth", type: { name: "Composite", - className: "VirtualMachineHealthStatus" - } + className: "VirtualMachineHealthStatus", + }, }, bootDiagnostics: { serializedName: "bootDiagnostics", type: { name: "Composite", - className: "BootDiagnosticsInstanceView" - } + className: "BootDiagnosticsInstanceView", + }, }, assignedHost: { serializedName: "assignedHost", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, statuses: { serializedName: "statuses", @@ -5385,27 +5436,27 @@ export const VirtualMachineInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } + className: "InstanceViewStatus", + }, + }, + }, }, patchStatus: { serializedName: "patchStatus", type: { name: "Composite", - className: "VirtualMachinePatchStatus" - } + className: "VirtualMachinePatchStatus", + }, }, isVMInStandbyPool: { serializedName: "isVMInStandbyPool", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const VirtualMachinePatchStatus: coreClient.CompositeMapper = { @@ -5417,15 +5468,15 @@ export const VirtualMachinePatchStatus: coreClient.CompositeMapper = { serializedName: "availablePatchSummary", type: { name: "Composite", - className: "AvailablePatchSummary" - } + className: "AvailablePatchSummary", + }, }, lastPatchInstallationSummary: { serializedName: "lastPatchInstallationSummary", type: { name: "Composite", - className: "LastPatchInstallationSummary" - } + className: "LastPatchInstallationSummary", + }, }, configurationStatuses: { serializedName: "configurationStatuses", @@ -5435,13 +5486,13 @@ export const VirtualMachinePatchStatus: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const AvailablePatchSummary: coreClient.CompositeMapper = { @@ -5453,60 +5504,60 @@ export const AvailablePatchSummary: coreClient.CompositeMapper = { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, assessmentActivityId: { serializedName: "assessmentActivityId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rebootPending: { serializedName: "rebootPending", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, criticalAndSecurityPatchCount: { serializedName: "criticalAndSecurityPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, otherPatchCount: { serializedName: "otherPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, startTime: { serializedName: "startTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedTime: { serializedName: "lastModifiedTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "ApiError" - } - } - } - } + className: "ApiError", + }, + }, + }, + }, }; export const LastPatchInstallationSummary: coreClient.CompositeMapper = { @@ -5518,81 +5569,81 @@ export const LastPatchInstallationSummary: coreClient.CompositeMapper = { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, installationActivityId: { serializedName: "installationActivityId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, maintenanceWindowExceeded: { serializedName: "maintenanceWindowExceeded", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, notSelectedPatchCount: { serializedName: "notSelectedPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, excludedPatchCount: { serializedName: "excludedPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, pendingPatchCount: { serializedName: "pendingPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, installedPatchCount: { serializedName: "installedPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, failedPatchCount: { serializedName: "failedPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, startTime: { serializedName: "startTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedTime: { serializedName: "lastModifiedTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "ApiError" - } - } - } - } + className: "ApiError", + }, + }, + }, + }, }; export const VirtualMachineCaptureParameters: coreClient.CompositeMapper = { @@ -5604,25 +5655,25 @@ export const VirtualMachineCaptureParameters: coreClient.CompositeMapper = { serializedName: "vhdPrefix", required: true, type: { - name: "String" - } + name: "String", + }, }, destinationContainerName: { serializedName: "destinationContainerName", required: true, type: { - name: "String" - } + name: "String", + }, }, overwriteVhds: { serializedName: "overwriteVhds", required: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const VirtualMachineAssessPatchesResult: coreClient.CompositeMapper = { @@ -5634,43 +5685,43 @@ export const VirtualMachineAssessPatchesResult: coreClient.CompositeMapper = { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, assessmentActivityId: { serializedName: "assessmentActivityId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rebootPending: { serializedName: "rebootPending", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, criticalAndSecurityPatchCount: { serializedName: "criticalAndSecurityPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, otherPatchCount: { serializedName: "otherPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, startDateTime: { serializedName: "startDateTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, availablePatches: { serializedName: "availablePatches", @@ -5680,141 +5731,143 @@ export const VirtualMachineAssessPatchesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineSoftwarePatchProperties" - } - } - } + className: "VirtualMachineSoftwarePatchProperties", + }, + }, + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "ApiError" - } - } - } - } -}; - -export const VirtualMachineSoftwarePatchProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineSoftwarePatchProperties", - modelProperties: { - patchId: { - serializedName: "patchId", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - version: { - serializedName: "version", - readOnly: true, - type: { - name: "String" - } - }, - kbId: { - serializedName: "kbId", - readOnly: true, - type: { - name: "String" - } - }, - classifications: { - serializedName: "classifications", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - rebootBehavior: { - serializedName: "rebootBehavior", - readOnly: true, - type: { - name: "String" - } - }, - activityId: { - serializedName: "activityId", - readOnly: true, - type: { - name: "String" - } - }, - publishedDate: { - serializedName: "publishedDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - lastModifiedDateTime: { - serializedName: "lastModifiedDateTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - assessmentState: { - serializedName: "assessmentState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineInstallPatchesParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineInstallPatchesParameters", - modelProperties: { - maximumDuration: { - serializedName: "maximumDuration", - type: { - name: "String" - } + className: "ApiError", + }, }, - rebootSetting: { - serializedName: "rebootSetting", - required: true, - type: { - name: "String" - } + }, + }, +}; + +export const VirtualMachineSoftwarePatchProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineSoftwarePatchProperties", + modelProperties: { + patchId: { + serializedName: "patchId", + readOnly: true, + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + version: { + serializedName: "version", + readOnly: true, + type: { + name: "String", + }, + }, + kbId: { + serializedName: "kbId", + readOnly: true, + type: { + name: "String", + }, + }, + classifications: { + serializedName: "classifications", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + rebootBehavior: { + serializedName: "rebootBehavior", + readOnly: true, + type: { + name: "String", + }, + }, + activityId: { + serializedName: "activityId", + readOnly: true, + type: { + name: "String", + }, + }, + publishedDate: { + serializedName: "publishedDate", + readOnly: true, + type: { + name: "DateTime", + }, + }, + lastModifiedDateTime: { + serializedName: "lastModifiedDateTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + assessmentState: { + serializedName: "assessmentState", + readOnly: true, + type: { + name: "String", + }, + }, }, - windowsParameters: { - serializedName: "windowsParameters", - type: { - name: "Composite", - className: "WindowsParameters" - } + }, + }; + +export const VirtualMachineInstallPatchesParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineInstallPatchesParameters", + modelProperties: { + maximumDuration: { + serializedName: "maximumDuration", + type: { + name: "String", + }, + }, + rebootSetting: { + serializedName: "rebootSetting", + required: true, + type: { + name: "String", + }, + }, + windowsParameters: { + serializedName: "windowsParameters", + type: { + name: "Composite", + className: "WindowsParameters", + }, + }, + linuxParameters: { + serializedName: "linuxParameters", + type: { + name: "Composite", + className: "LinuxParameters", + }, + }, }, - linuxParameters: { - serializedName: "linuxParameters", - type: { - name: "Composite", - className: "LinuxParameters" - } - } - } - } -}; + }, + }; export const WindowsParameters: coreClient.CompositeMapper = { type: { @@ -5827,10 +5880,10 @@ export const WindowsParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, kbNumbersToInclude: { serializedName: "kbNumbersToInclude", @@ -5838,10 +5891,10 @@ export const WindowsParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, kbNumbersToExclude: { serializedName: "kbNumbersToExclude", @@ -5849,25 +5902,25 @@ export const WindowsParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, excludeKbsRequiringReboot: { serializedName: "excludeKbsRequiringReboot", type: { - name: "Boolean" - } + name: "Boolean", + }, }, maxPatchPublishDate: { serializedName: "maxPatchPublishDate", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const LinuxParameters: coreClient.CompositeMapper = { @@ -5881,10 +5934,10 @@ export const LinuxParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, packageNameMasksToInclude: { serializedName: "packageNameMasksToInclude", @@ -5892,10 +5945,10 @@ export const LinuxParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, packageNameMasksToExclude: { serializedName: "packageNameMasksToExclude", @@ -5903,19 +5956,19 @@ export const LinuxParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, maintenanceRunId: { serializedName: "maintenanceRunId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineInstallPatchesResult: coreClient.CompositeMapper = { @@ -5927,64 +5980,64 @@ export const VirtualMachineInstallPatchesResult: coreClient.CompositeMapper = { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, installationActivityId: { serializedName: "installationActivityId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rebootStatus: { serializedName: "rebootStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, maintenanceWindowExceeded: { serializedName: "maintenanceWindowExceeded", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, excludedPatchCount: { serializedName: "excludedPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, notSelectedPatchCount: { serializedName: "notSelectedPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, pendingPatchCount: { serializedName: "pendingPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, installedPatchCount: { serializedName: "installedPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, failedPatchCount: { serializedName: "failedPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, patches: { serializedName: "patches", @@ -5994,27 +6047,27 @@ export const VirtualMachineInstallPatchesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PatchInstallationDetail" - } - } - } + className: "PatchInstallationDetail", + }, + }, + }, }, startDateTime: { serializedName: "startDateTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "ApiError" - } - } - } - } + className: "ApiError", + }, + }, + }, + }, }; export const PatchInstallationDetail: coreClient.CompositeMapper = { @@ -6026,29 +6079,29 @@ export const PatchInstallationDetail: coreClient.CompositeMapper = { serializedName: "patchId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, kbId: { serializedName: "kbId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, classifications: { serializedName: "classifications", @@ -6057,20 +6110,20 @@ export const PatchInstallationDetail: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, installationState: { serializedName: "installationState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PurchasePlan: coreClient.CompositeMapper = { @@ -6082,25 +6135,25 @@ export const PurchasePlan: coreClient.CompositeMapper = { serializedName: "publisher", required: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, product: { serializedName: "product", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OSDiskImage: coreClient.CompositeMapper = { @@ -6113,11 +6166,11 @@ export const OSDiskImage: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } - } - } - } + allowedValues: ["Windows", "Linux"], + }, + }, + }, + }, }; export const DataDiskImage: coreClient.CompositeMapper = { @@ -6129,11 +6182,11 @@ export const DataDiskImage: coreClient.CompositeMapper = { serializedName: "lun", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const AutomaticOSUpgradeProperties: coreClient.CompositeMapper = { @@ -6145,11 +6198,11 @@ export const AutomaticOSUpgradeProperties: coreClient.CompositeMapper = { serializedName: "automaticOSUpgradeSupported", required: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const DisallowedConfiguration: coreClient.CompositeMapper = { @@ -6160,11 +6213,11 @@ export const DisallowedConfiguration: coreClient.CompositeMapper = { vmDiskType: { serializedName: "vmDiskType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineImageFeature: coreClient.CompositeMapper = { @@ -6175,17 +6228,17 @@ export const VirtualMachineImageFeature: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ImageDeprecationStatus: coreClient.CompositeMapper = { @@ -6196,24 +6249,24 @@ export const ImageDeprecationStatus: coreClient.CompositeMapper = { imageState: { serializedName: "imageState", type: { - name: "String" - } + name: "String", + }, }, scheduledDeprecationTime: { serializedName: "scheduledDeprecationTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, alternativeOption: { serializedName: "alternativeOption", type: { name: "Composite", - className: "AlternativeOption" - } - } - } - } + className: "AlternativeOption", + }, + }, + }, + }, }; export const AlternativeOption: coreClient.CompositeMapper = { @@ -6224,17 +6277,17 @@ export const AlternativeOption: coreClient.CompositeMapper = { type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VmImagesInEdgeZoneListResult: coreClient.CompositeMapper = { @@ -6249,19 +6302,19 @@ export const VmImagesInEdgeZoneListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AvailabilitySetListResult: coreClient.CompositeMapper = { @@ -6277,40 +6330,41 @@ export const AvailabilitySetListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AvailabilitySet" - } - } - } + className: "AvailabilitySet", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const ProximityPlacementGroupPropertiesIntent: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProximityPlacementGroupPropertiesIntent", - modelProperties: { - vmSizes: { - serializedName: "vmSizes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ProximityPlacementGroupPropertiesIntent: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ProximityPlacementGroupPropertiesIntent", + modelProperties: { + vmSizes: { + serializedName: "vmSizes", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, + }; export const ProximityPlacementGroupListResult: coreClient.CompositeMapper = { type: { @@ -6325,19 +6379,19 @@ export const ProximityPlacementGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ProximityPlacementGroup" - } - } - } + className: "ProximityPlacementGroup", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DedicatedHostGroupInstanceView: coreClient.CompositeMapper = { @@ -6352,13 +6406,13 @@ export const DedicatedHostGroupInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DedicatedHostInstanceViewWithName" - } - } - } - } - } - } + className: "DedicatedHostInstanceViewWithName", + }, + }, + }, + }, + }, + }, }; export const DedicatedHostInstanceView: coreClient.CompositeMapper = { @@ -6370,15 +6424,15 @@ export const DedicatedHostInstanceView: coreClient.CompositeMapper = { serializedName: "assetId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, availableCapacity: { serializedName: "availableCapacity", type: { name: "Composite", - className: "DedicatedHostAvailableCapacity" - } + className: "DedicatedHostAvailableCapacity", + }, }, statuses: { serializedName: "statuses", @@ -6387,13 +6441,13 @@ export const DedicatedHostInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const DedicatedHostAvailableCapacity: coreClient.CompositeMapper = { @@ -6408,13 +6462,13 @@ export const DedicatedHostAvailableCapacity: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DedicatedHostAllocatableVM" - } - } - } - } - } - } + className: "DedicatedHostAllocatableVM", + }, + }, + }, + }, + }, + }, }; export const DedicatedHostAllocatableVM: coreClient.CompositeMapper = { @@ -6425,33 +6479,34 @@ export const DedicatedHostAllocatableVM: coreClient.CompositeMapper = { vmSize: { serializedName: "vmSize", type: { - name: "String" - } + name: "String", + }, }, count: { serializedName: "count", type: { - name: "Number" - } - } - } - } -}; - -export const DedicatedHostGroupPropertiesAdditionalCapabilities: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DedicatedHostGroupPropertiesAdditionalCapabilities", - modelProperties: { - ultraSSDEnabled: { - serializedName: "ultraSSDEnabled", - type: { - name: "Boolean" - } - } - } - } -}; + name: "Number", + }, + }, + }, + }, +}; + +export const DedicatedHostGroupPropertiesAdditionalCapabilities: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DedicatedHostGroupPropertiesAdditionalCapabilities", + modelProperties: { + ultraSSDEnabled: { + serializedName: "ultraSSDEnabled", + type: { + name: "Boolean", + }, + }, + }, + }, + }; export const DedicatedHostGroupListResult: coreClient.CompositeMapper = { type: { @@ -6466,19 +6521,19 @@ export const DedicatedHostGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DedicatedHostGroup" - } - } - } + className: "DedicatedHostGroup", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DedicatedHostListResult: coreClient.CompositeMapper = { @@ -6494,19 +6549,19 @@ export const DedicatedHostListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DedicatedHost" - } - } - } + className: "DedicatedHost", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DedicatedHostSizeListResult: coreClient.CompositeMapper = { @@ -6520,13 +6575,13 @@ export const DedicatedHostSizeListResult: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const SshPublicKeysGroupListResult: coreClient.CompositeMapper = { @@ -6542,19 +6597,19 @@ export const SshPublicKeysGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SshPublicKeyResource" - } - } - } + className: "SshPublicKeyResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SshGenerateKeyPairInputParameters: coreClient.CompositeMapper = { @@ -6565,11 +6620,11 @@ export const SshGenerateKeyPairInputParameters: coreClient.CompositeMapper = { encryptionType: { serializedName: "encryptionType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SshPublicKeyGenerateKeyPairResult: coreClient.CompositeMapper = { @@ -6581,25 +6636,25 @@ export const SshPublicKeyGenerateKeyPairResult: coreClient.CompositeMapper = { serializedName: "privateKey", required: true, type: { - name: "String" - } + name: "String", + }, }, publicKey: { serializedName: "publicKey", required: true, type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ImageStorageProfile: coreClient.CompositeMapper = { @@ -6611,8 +6666,8 @@ export const ImageStorageProfile: coreClient.CompositeMapper = { serializedName: "osDisk", type: { name: "Composite", - className: "ImageOSDisk" - } + className: "ImageOSDisk", + }, }, dataDisks: { serializedName: "dataDisks", @@ -6621,19 +6676,19 @@ export const ImageStorageProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ImageDataDisk" - } - } - } + className: "ImageDataDisk", + }, + }, + }, }, zoneResilient: { serializedName: "zoneResilient", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ImageDisk: coreClient.CompositeMapper = { @@ -6645,50 +6700,50 @@ export const ImageDisk: coreClient.CompositeMapper = { serializedName: "snapshot", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, blobUri: { serializedName: "blobUri", type: { - name: "String" - } + name: "String", + }, }, caching: { serializedName: "caching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, diskSizeGB: { serializedName: "diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, storageAccountType: { serializedName: "storageAccountType", type: { - name: "String" - } + name: "String", + }, }, diskEncryptionSet: { serializedName: "diskEncryptionSet", type: { name: "Composite", - className: "DiskEncryptionSetParameters" - } - } - } - } + className: "DiskEncryptionSetParameters", + }, + }, + }, + }, }; export const ImageListResult: coreClient.CompositeMapper = { @@ -6704,42 +6759,43 @@ export const ImageListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Image" - } - } - } + className: "Image", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const RestorePointCollectionSourceProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorePointCollectionSourceProperties", - modelProperties: { - location: { - serializedName: "location", - readOnly: true, - type: { - name: "String" - } + name: "String", + }, }, - id: { - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const RestorePointCollectionSourceProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RestorePointCollectionSourceProperties", + modelProperties: { + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String", + }, + }, + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + }, + }, + }; export const RestorePointSourceMetadata: coreClient.CompositeMapper = { type: { @@ -6750,74 +6806,74 @@ export const RestorePointSourceMetadata: coreClient.CompositeMapper = { serializedName: "hardwareProfile", type: { name: "Composite", - className: "HardwareProfile" - } + className: "HardwareProfile", + }, }, storageProfile: { serializedName: "storageProfile", type: { name: "Composite", - className: "RestorePointSourceVMStorageProfile" - } + className: "RestorePointSourceVMStorageProfile", + }, }, osProfile: { serializedName: "osProfile", type: { name: "Composite", - className: "OSProfile" - } + className: "OSProfile", + }, }, diagnosticsProfile: { serializedName: "diagnosticsProfile", type: { name: "Composite", - className: "DiagnosticsProfile" - } + className: "DiagnosticsProfile", + }, }, licenseType: { serializedName: "licenseType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, vmId: { serializedName: "vmId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, securityProfile: { serializedName: "securityProfile", type: { name: "Composite", - className: "SecurityProfile" - } + className: "SecurityProfile", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, userData: { serializedName: "userData", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hyperVGeneration: { serializedName: "hyperVGeneration", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RestorePointSourceVMStorageProfile: coreClient.CompositeMapper = { @@ -6829,8 +6885,8 @@ export const RestorePointSourceVMStorageProfile: coreClient.CompositeMapper = { serializedName: "osDisk", type: { name: "Composite", - className: "RestorePointSourceVmosDisk" - } + className: "RestorePointSourceVmosDisk", + }, }, dataDisks: { serializedName: "dataDisks", @@ -6839,20 +6895,20 @@ export const RestorePointSourceVMStorageProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RestorePointSourceVMDataDisk" - } - } - } + className: "RestorePointSourceVMDataDisk", + }, + }, + }, }, diskControllerType: { serializedName: "diskControllerType", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RestorePointSourceVmosDisk: coreClient.CompositeMapper = { @@ -6864,61 +6920,61 @@ export const RestorePointSourceVmosDisk: coreClient.CompositeMapper = { serializedName: "osType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, encryptionSettings: { serializedName: "encryptionSettings", type: { name: "Composite", - className: "DiskEncryptionSettings" - } + className: "DiskEncryptionSettings", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, caching: { serializedName: "caching", readOnly: true, type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, diskSizeGB: { serializedName: "diskSizeGB", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "ManagedDiskParameters" - } + className: "ManagedDiskParameters", + }, }, diskRestorePoint: { serializedName: "diskRestorePoint", type: { name: "Composite", - className: "DiskRestorePointAttributes" - } + className: "DiskRestorePointAttributes", + }, }, writeAcceleratorEnabled: { serializedName: "writeAcceleratorEnabled", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const RestorePointEncryption: coreClient.CompositeMapper = { @@ -6930,17 +6986,17 @@ export const RestorePointEncryption: coreClient.CompositeMapper = { serializedName: "diskEncryptionSet", type: { name: "Composite", - className: "DiskEncryptionSetParameters" - } + className: "DiskEncryptionSetParameters", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RestorePointSourceVMDataDisk: coreClient.CompositeMapper = { @@ -6952,54 +7008,54 @@ export const RestorePointSourceVMDataDisk: coreClient.CompositeMapper = { serializedName: "lun", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, caching: { serializedName: "caching", readOnly: true, type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, diskSizeGB: { serializedName: "diskSizeGB", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "ManagedDiskParameters" - } + className: "ManagedDiskParameters", + }, }, diskRestorePoint: { serializedName: "diskRestorePoint", type: { name: "Composite", - className: "DiskRestorePointAttributes" - } + className: "DiskRestorePointAttributes", + }, }, writeAcceleratorEnabled: { serializedName: "writeAcceleratorEnabled", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const RestorePointInstanceView: coreClient.CompositeMapper = { @@ -7014,10 +7070,10 @@ export const RestorePointInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiskRestorePointInstanceView" - } - } - } + className: "DiskRestorePointInstanceView", + }, + }, + }, }, statuses: { serializedName: "statuses", @@ -7026,13 +7082,13 @@ export const RestorePointInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const DiskRestorePointInstanceView: coreClient.CompositeMapper = { @@ -7043,18 +7099,18 @@ export const DiskRestorePointInstanceView: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, replicationStatus: { serializedName: "replicationStatus", type: { name: "Composite", - className: "DiskRestorePointReplicationStatus" - } - } - } - } + className: "DiskRestorePointReplicationStatus", + }, + }, + }, + }, }; export const DiskRestorePointReplicationStatus: coreClient.CompositeMapper = { @@ -7066,17 +7122,17 @@ export const DiskRestorePointReplicationStatus: coreClient.CompositeMapper = { serializedName: "status", type: { name: "Composite", - className: "InstanceViewStatus" - } + className: "InstanceViewStatus", + }, }, completionPercent: { serializedName: "completionPercent", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ProxyResource: coreClient.CompositeMapper = { @@ -7088,25 +7144,25 @@ export const ProxyResource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RestorePointCollectionListResult: coreClient.CompositeMapper = { @@ -7121,55 +7177,56 @@ export const RestorePointCollectionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RestorePointCollection" - } - } - } + className: "RestorePointCollection", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const CapacityReservationGroupInstanceView: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CapacityReservationGroupInstanceView", - modelProperties: { - capacityReservations: { - serializedName: "capacityReservations", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CapacityReservationInstanceViewWithName" - } - } - } + name: "String", + }, }, - sharedSubscriptionIds: { - serializedName: "sharedSubscriptionIds", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceReadOnly" - } - } - } - } - } - } -}; + }, + }, +}; + +export const CapacityReservationGroupInstanceView: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "CapacityReservationGroupInstanceView", + modelProperties: { + capacityReservations: { + serializedName: "capacityReservations", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CapacityReservationInstanceViewWithName", + }, + }, + }, + }, + sharedSubscriptionIds: { + serializedName: "sharedSubscriptionIds", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly", + }, + }, + }, + }, + }, + }, + }; export const CapacityReservationInstanceView: coreClient.CompositeMapper = { type: { @@ -7180,8 +7237,8 @@ export const CapacityReservationInstanceView: coreClient.CompositeMapper = { serializedName: "utilizationInfo", type: { name: "Composite", - className: "CapacityReservationUtilization" - } + className: "CapacityReservationUtilization", + }, }, statuses: { serializedName: "statuses", @@ -7190,13 +7247,13 @@ export const CapacityReservationInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const CapacityReservationUtilization: coreClient.CompositeMapper = { @@ -7208,8 +7265,8 @@ export const CapacityReservationUtilization: coreClient.CompositeMapper = { serializedName: "currentCapacity", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, virtualMachinesAllocated: { serializedName: "virtualMachinesAllocated", @@ -7219,13 +7276,13 @@ export const CapacityReservationUtilization: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, + }, + }, + }, }; export const ResourceSharingProfile: coreClient.CompositeMapper = { @@ -7240,13 +7297,13 @@ export const ResourceSharingProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResource" - } - } - } - } - } - } + className: "SubResource", + }, + }, + }, + }, + }, + }, }; export const CapacityReservationGroupListResult: coreClient.CompositeMapper = { @@ -7262,19 +7319,19 @@ export const CapacityReservationGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CapacityReservationGroup" - } - } - } + className: "CapacityReservationGroup", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CapacityReservationListResult: coreClient.CompositeMapper = { @@ -7290,19 +7347,19 @@ export const CapacityReservationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CapacityReservation" - } - } - } + className: "CapacityReservation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LogAnalyticsInputBase: coreClient.CompositeMapper = { @@ -7314,55 +7371,55 @@ export const LogAnalyticsInputBase: coreClient.CompositeMapper = { serializedName: "blobContainerSasUri", required: true, type: { - name: "String" - } + name: "String", + }, }, fromTime: { serializedName: "fromTime", required: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, toTime: { serializedName: "toTime", required: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, groupByThrottlePolicy: { serializedName: "groupByThrottlePolicy", type: { - name: "Boolean" - } + name: "Boolean", + }, }, groupByOperationName: { serializedName: "groupByOperationName", type: { - name: "Boolean" - } + name: "Boolean", + }, }, groupByResourceName: { serializedName: "groupByResourceName", type: { - name: "Boolean" - } + name: "Boolean", + }, }, groupByClientApplicationId: { serializedName: "groupByClientApplicationId", type: { - name: "Boolean" - } + name: "Boolean", + }, }, groupByUserAgent: { serializedName: "groupByUserAgent", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const LogAnalyticsOperationResult: coreClient.CompositeMapper = { @@ -7374,11 +7431,11 @@ export const LogAnalyticsOperationResult: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "LogAnalyticsOutput" - } - } - } - } + className: "LogAnalyticsOutput", + }, + }, + }, + }, }; export const LogAnalyticsOutput: coreClient.CompositeMapper = { @@ -7390,11 +7447,11 @@ export const LogAnalyticsOutput: coreClient.CompositeMapper = { serializedName: "output", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RunCommandListResult: coreClient.CompositeMapper = { @@ -7410,19 +7467,19 @@ export const RunCommandListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandDocumentBase" - } - } - } + className: "RunCommandDocumentBase", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RunCommandDocumentBase: coreClient.CompositeMapper = { @@ -7434,40 +7491,40 @@ export const RunCommandDocumentBase: coreClient.CompositeMapper = { serializedName: "$schema", required: true, type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", required: true, type: { - name: "String" - } + name: "String", + }, }, osType: { serializedName: "osType", required: true, type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, label: { serializedName: "label", required: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RunCommandParameterDefinition: coreClient.CompositeMapper = { @@ -7479,31 +7536,31 @@ export const RunCommandParameterDefinition: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, defaultValue: { serializedName: "defaultValue", type: { - name: "String" - } + name: "String", + }, }, required: { defaultValue: false, serializedName: "required", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const RunCommandInput: coreClient.CompositeMapper = { @@ -7515,8 +7572,8 @@ export const RunCommandInput: coreClient.CompositeMapper = { serializedName: "commandId", required: true, type: { - name: "String" - } + name: "String", + }, }, script: { serializedName: "script", @@ -7524,10 +7581,10 @@ export const RunCommandInput: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, parameters: { serializedName: "parameters", @@ -7536,13 +7593,13 @@ export const RunCommandInput: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandInputParameter" - } - } - } - } - } - } + className: "RunCommandInputParameter", + }, + }, + }, + }, + }, + }, }; export const RunCommandInputParameter: coreClient.CompositeMapper = { @@ -7554,18 +7611,18 @@ export const RunCommandInputParameter: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RunCommandResult: coreClient.CompositeMapper = { @@ -7580,48 +7637,49 @@ export const RunCommandResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } -}; - -export const VirtualMachineRunCommandScriptSource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineRunCommandScriptSource", - modelProperties: { - script: { - serializedName: "script", - type: { - name: "String" - } - }, - scriptUri: { - serializedName: "scriptUri", - type: { - name: "String" - } + className: "InstanceViewStatus", + }, + }, + }, }, - commandId: { - serializedName: "commandId", - type: { - name: "String" - } + }, + }, +}; + +export const VirtualMachineRunCommandScriptSource: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineRunCommandScriptSource", + modelProperties: { + script: { + serializedName: "script", + type: { + name: "String", + }, + }, + scriptUri: { + serializedName: "scriptUri", + type: { + name: "String", + }, + }, + commandId: { + serializedName: "commandId", + type: { + name: "String", + }, + }, + scriptUriManagedIdentity: { + serializedName: "scriptUriManagedIdentity", + type: { + name: "Composite", + className: "RunCommandManagedIdentity", + }, + }, }, - scriptUriManagedIdentity: { - serializedName: "scriptUriManagedIdentity", - type: { - name: "Composite", - className: "RunCommandManagedIdentity" - } - } - } - } -}; + }, + }; export const RunCommandManagedIdentity: coreClient.CompositeMapper = { type: { @@ -7631,81 +7689,82 @@ export const RunCommandManagedIdentity: coreClient.CompositeMapper = { clientId: { serializedName: "clientId", type: { - name: "String" - } + name: "String", + }, }, objectId: { serializedName: "objectId", type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineRunCommandInstanceView: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineRunCommandInstanceView", - modelProperties: { - executionState: { - serializedName: "executionState", - type: { - name: "String" - } - }, - executionMessage: { - serializedName: "executionMessage", - type: { - name: "String" - } - }, - exitCode: { - serializedName: "exitCode", - type: { - name: "Number" - } - }, - output: { - serializedName: "output", - type: { - name: "String" - } - }, - error: { - serializedName: "error", - type: { - name: "String" - } - }, - startTime: { - serializedName: "startTime", - type: { - name: "DateTime" - } + name: "String", + }, }, - endTime: { - serializedName: "endTime", - type: { - name: "DateTime" - } + }, + }, +}; + +export const VirtualMachineRunCommandInstanceView: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineRunCommandInstanceView", + modelProperties: { + executionState: { + serializedName: "executionState", + type: { + name: "String", + }, + }, + executionMessage: { + serializedName: "executionMessage", + type: { + name: "String", + }, + }, + exitCode: { + serializedName: "exitCode", + type: { + name: "Number", + }, + }, + output: { + serializedName: "output", + type: { + name: "String", + }, + }, + error: { + serializedName: "error", + type: { + name: "String", + }, + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime", + }, + }, + endTime: { + serializedName: "endTime", + type: { + name: "DateTime", + }, + }, + statuses: { + serializedName: "statuses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus", + }, + }, + }, + }, }, - statuses: { - serializedName: "statuses", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } -}; + }, + }; export const VirtualMachineRunCommandsListResult: coreClient.CompositeMapper = { type: { @@ -7720,19 +7779,19 @@ export const VirtualMachineRunCommandsListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineRunCommand" - } - } - } + className: "VirtualMachineRunCommand", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskSku: coreClient.CompositeMapper = { @@ -7743,18 +7802,18 @@ export const DiskSku: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PurchasePlanAutoGenerated: coreClient.CompositeMapper = { @@ -7766,31 +7825,31 @@ export const PurchasePlanAutoGenerated: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "publisher", required: true, type: { - name: "String" - } + name: "String", + }, }, product: { serializedName: "product", required: true, type: { - name: "String" - } + name: "String", + }, }, promotionCode: { serializedName: "promotionCode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SupportedCapabilities: coreClient.CompositeMapper = { @@ -7801,23 +7860,23 @@ export const SupportedCapabilities: coreClient.CompositeMapper = { diskControllerTypes: { serializedName: "diskControllerTypes", type: { - name: "String" - } + name: "String", + }, }, acceleratedNetwork: { serializedName: "acceleratedNetwork", type: { - name: "Boolean" - } + name: "Boolean", + }, }, architecture: { serializedName: "architecture", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CreationData: coreClient.CompositeMapper = { @@ -7829,86 +7888,86 @@ export const CreationData: coreClient.CompositeMapper = { serializedName: "createOption", required: true, type: { - name: "String" - } + name: "String", + }, }, storageAccountId: { serializedName: "storageAccountId", type: { - name: "String" - } + name: "String", + }, }, imageReference: { serializedName: "imageReference", type: { name: "Composite", - className: "ImageDiskReference" - } + className: "ImageDiskReference", + }, }, galleryImageReference: { serializedName: "galleryImageReference", type: { name: "Composite", - className: "ImageDiskReference" - } + className: "ImageDiskReference", + }, }, sourceUri: { serializedName: "sourceUri", type: { - name: "String" - } + name: "String", + }, }, sourceResourceId: { serializedName: "sourceResourceId", type: { - name: "String" - } + name: "String", + }, }, sourceUniqueId: { serializedName: "sourceUniqueId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, uploadSizeBytes: { serializedName: "uploadSizeBytes", type: { - name: "Number" - } + name: "Number", + }, }, logicalSectorSize: { serializedName: "logicalSectorSize", type: { - name: "Number" - } + name: "Number", + }, }, securityDataUri: { serializedName: "securityDataUri", type: { - name: "String" - } + name: "String", + }, }, performancePlus: { serializedName: "performancePlus", type: { - name: "Boolean" - } + name: "Boolean", + }, }, elasticSanResourceId: { serializedName: "elasticSanResourceId", type: { - name: "String" - } + name: "String", + }, }, provisionedBandwidthCopySpeed: { serializedName: "provisionedBandwidthCopySpeed", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ImageDiskReference: coreClient.CompositeMapper = { @@ -7919,29 +7978,29 @@ export const ImageDiskReference: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, sharedGalleryImageId: { serializedName: "sharedGalleryImageId", type: { - name: "String" - } + name: "String", + }, }, communityGalleryImageId: { serializedName: "communityGalleryImageId", type: { - name: "String" - } + name: "String", + }, }, lun: { serializedName: "lun", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const EncryptionSettingsCollection: coreClient.CompositeMapper = { @@ -7953,8 +8012,8 @@ export const EncryptionSettingsCollection: coreClient.CompositeMapper = { serializedName: "enabled", required: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, encryptionSettings: { serializedName: "encryptionSettings", @@ -7963,19 +8022,19 @@ export const EncryptionSettingsCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EncryptionSettingsElement" - } - } - } + className: "EncryptionSettingsElement", + }, + }, + }, }, encryptionSettingsVersion: { serializedName: "encryptionSettingsVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EncryptionSettingsElement: coreClient.CompositeMapper = { @@ -7987,18 +8046,18 @@ export const EncryptionSettingsElement: coreClient.CompositeMapper = { serializedName: "diskEncryptionKey", type: { name: "Composite", - className: "KeyVaultAndSecretReference" - } + className: "KeyVaultAndSecretReference", + }, }, keyEncryptionKey: { serializedName: "keyEncryptionKey", type: { name: "Composite", - className: "KeyVaultAndKeyReference" - } - } - } - } + className: "KeyVaultAndKeyReference", + }, + }, + }, + }, }; export const KeyVaultAndSecretReference: coreClient.CompositeMapper = { @@ -8010,18 +8069,18 @@ export const KeyVaultAndSecretReference: coreClient.CompositeMapper = { serializedName: "sourceVault", type: { name: "Composite", - className: "SourceVault" - } + className: "SourceVault", + }, }, secretUrl: { serializedName: "secretUrl", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SourceVault: coreClient.CompositeMapper = { @@ -8032,11 +8091,11 @@ export const SourceVault: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const KeyVaultAndKeyReference: coreClient.CompositeMapper = { @@ -8048,18 +8107,18 @@ export const KeyVaultAndKeyReference: coreClient.CompositeMapper = { serializedName: "sourceVault", type: { name: "Composite", - className: "SourceVault" - } + className: "SourceVault", + }, }, keyUrl: { serializedName: "keyUrl", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Encryption: coreClient.CompositeMapper = { @@ -8070,17 +8129,17 @@ export const Encryption: coreClient.CompositeMapper = { diskEncryptionSetId: { serializedName: "diskEncryptionSetId", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ShareInfoElement: coreClient.CompositeMapper = { @@ -8092,11 +8151,11 @@ export const ShareInfoElement: coreClient.CompositeMapper = { serializedName: "vmUri", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PropertyUpdatesInProgress: coreClient.CompositeMapper = { @@ -8107,11 +8166,11 @@ export const PropertyUpdatesInProgress: coreClient.CompositeMapper = { targetTier: { serializedName: "targetTier", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskSecurityProfile: coreClient.CompositeMapper = { @@ -8122,17 +8181,17 @@ export const DiskSecurityProfile: coreClient.CompositeMapper = { securityType: { serializedName: "securityType", type: { - name: "String" - } + name: "String", + }, }, secureVMDiskEncryptionSetId: { serializedName: "secureVMDiskEncryptionSetId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskUpdate: coreClient.CompositeMapper = { @@ -8144,144 +8203,144 @@ export const DiskUpdate: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "DiskSku" - } + className: "DiskSku", + }, }, osType: { serializedName: "properties.osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, diskSizeGB: { serializedName: "properties.diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, encryptionSettingsCollection: { serializedName: "properties.encryptionSettingsCollection", type: { name: "Composite", - className: "EncryptionSettingsCollection" - } + className: "EncryptionSettingsCollection", + }, }, diskIopsReadWrite: { serializedName: "properties.diskIOPSReadWrite", type: { - name: "Number" - } + name: "Number", + }, }, diskMBpsReadWrite: { serializedName: "properties.diskMBpsReadWrite", type: { - name: "Number" - } + name: "Number", + }, }, diskIopsReadOnly: { serializedName: "properties.diskIOPSReadOnly", type: { - name: "Number" - } + name: "Number", + }, }, diskMBpsReadOnly: { serializedName: "properties.diskMBpsReadOnly", type: { - name: "Number" - } + name: "Number", + }, }, maxShares: { serializedName: "properties.maxShares", type: { - name: "Number" - } + name: "Number", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "Encryption" - } + className: "Encryption", + }, }, networkAccessPolicy: { serializedName: "properties.networkAccessPolicy", type: { - name: "String" - } + name: "String", + }, }, diskAccessId: { serializedName: "properties.diskAccessId", type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "properties.tier", type: { - name: "String" - } + name: "String", + }, }, burstingEnabled: { serializedName: "properties.burstingEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, purchasePlan: { serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "PurchasePlanAutoGenerated" - } + className: "PurchasePlanAutoGenerated", + }, }, supportedCapabilities: { serializedName: "properties.supportedCapabilities", type: { name: "Composite", - className: "SupportedCapabilities" - } + className: "SupportedCapabilities", + }, }, propertyUpdatesInProgress: { serializedName: "properties.propertyUpdatesInProgress", type: { name: "Composite", - className: "PropertyUpdatesInProgress" - } + className: "PropertyUpdatesInProgress", + }, }, supportsHibernation: { serializedName: "properties.supportsHibernation", type: { - name: "Boolean" - } + name: "Boolean", + }, }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, dataAccessAuthMode: { serializedName: "properties.dataAccessAuthMode", type: { - name: "String" - } + name: "String", + }, }, optimizedForFrequentAttach: { serializedName: "properties.optimizedForFrequentAttach", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const DiskList: coreClient.CompositeMapper = { @@ -8297,19 +8356,19 @@ export const DiskList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Disk" - } - } - } + className: "Disk", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GrantAccessData: coreClient.CompositeMapper = { @@ -8321,30 +8380,30 @@ export const GrantAccessData: coreClient.CompositeMapper = { serializedName: "access", required: true, type: { - name: "String" - } + name: "String", + }, }, durationInSeconds: { serializedName: "durationInSeconds", required: true, type: { - name: "Number" - } + name: "Number", + }, }, getSecureVMGuestStateSAS: { serializedName: "getSecureVMGuestStateSAS", type: { - name: "Boolean" - } + name: "Boolean", + }, }, fileFormat: { serializedName: "fileFormat", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AccessUri: coreClient.CompositeMapper = { @@ -8356,18 +8415,18 @@ export const AccessUri: coreClient.CompositeMapper = { serializedName: "accessSAS", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, securityDataAccessSAS: { serializedName: "securityDataAccessSAS", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpointConnection: coreClient.CompositeMapper = { @@ -8379,46 +8438,46 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, privateEndpoint: { serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "PrivateEndpoint" - } + className: "PrivateEndpoint", + }, }, privateLinkServiceConnectionState: { serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState" - } + className: "PrivateLinkServiceConnectionState", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpoint: coreClient.CompositeMapper = { @@ -8430,11 +8489,11 @@ export const PrivateEndpoint: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { @@ -8445,23 +8504,23 @@ export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { status: { serializedName: "status", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, actionsRequired: { serializedName: "actionsRequired", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskAccessUpdate: coreClient.CompositeMapper = { @@ -8473,11 +8532,11 @@ export const DiskAccessUpdate: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const DiskAccessList: coreClient.CompositeMapper = { @@ -8493,19 +8552,19 @@ export const DiskAccessList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiskAccess" - } - } - } + className: "DiskAccess", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { @@ -8520,13 +8579,13 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" - } - } - } - } - } - } + className: "PrivateLinkResource", + }, + }, + }, + }, + }, + }, }; export const PrivateLinkResource: coreClient.CompositeMapper = { @@ -8538,29 +8597,29 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, groupId: { serializedName: "properties.groupId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, requiredMembers: { serializedName: "properties.requiredMembers", @@ -8569,10 +8628,10 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, requiredZoneNames: { serializedName: "properties.requiredZoneNames", @@ -8580,13 +8639,13 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { @@ -8601,19 +8660,19 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EncryptionSetIdentity: coreClient.CompositeMapper = { @@ -8624,22 +8683,22 @@ export const EncryptionSetIdentity: coreClient.CompositeMapper = { type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, principalId: { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", @@ -8648,13 +8707,13 @@ export const EncryptionSetIdentity: coreClient.CompositeMapper = { value: { type: { name: "Composite", - className: "UserAssignedIdentitiesValue" - } - } - } - } - } - } + className: "UserAssignedIdentitiesValue", + }, + }, + }, + }, + }, + }, }; export const KeyForDiskEncryptionSet: coreClient.CompositeMapper = { @@ -8666,18 +8725,18 @@ export const KeyForDiskEncryptionSet: coreClient.CompositeMapper = { serializedName: "sourceVault", type: { name: "Composite", - className: "SourceVault" - } + className: "SourceVault", + }, }, keyUrl: { serializedName: "keyUrl", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskEncryptionSetUpdate: coreClient.CompositeMapper = { @@ -8689,43 +8748,43 @@ export const DiskEncryptionSetUpdate: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "EncryptionSetIdentity" - } + className: "EncryptionSetIdentity", + }, }, encryptionType: { serializedName: "properties.encryptionType", type: { - name: "String" - } + name: "String", + }, }, activeKey: { serializedName: "properties.activeKey", type: { name: "Composite", - className: "KeyForDiskEncryptionSet" - } + className: "KeyForDiskEncryptionSet", + }, }, rotationToLatestKeyVersionEnabled: { serializedName: "properties.rotationToLatestKeyVersionEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, federatedClientId: { serializedName: "properties.federatedClientId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskEncryptionSetList: coreClient.CompositeMapper = { @@ -8741,19 +8800,19 @@ export const DiskEncryptionSetList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiskEncryptionSet" - } - } - } + className: "DiskEncryptionSet", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceUriList: coreClient.CompositeMapper = { @@ -8768,19 +8827,19 @@ export const ResourceUriList: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProxyOnlyResource: coreClient.CompositeMapper = { @@ -8792,25 +8851,25 @@ export const ProxyOnlyResource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskRestorePointList: coreClient.CompositeMapper = { @@ -8826,19 +8885,19 @@ export const DiskRestorePointList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiskRestorePoint" - } - } - } + className: "DiskRestorePoint", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SnapshotSku: coreClient.CompositeMapper = { @@ -8849,18 +8908,18 @@ export const SnapshotSku: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CopyCompletionError: coreClient.CompositeMapper = { @@ -8872,18 +8931,18 @@ export const CopyCompletionError: coreClient.CompositeMapper = { serializedName: "errorCode", required: true, type: { - name: "String" - } + name: "String", + }, }, errorMessage: { serializedName: "errorMessage", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SnapshotUpdate: coreClient.CompositeMapper = { @@ -8895,82 +8954,82 @@ export const SnapshotUpdate: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "SnapshotSku" - } + className: "SnapshotSku", + }, }, osType: { serializedName: "properties.osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, diskSizeGB: { serializedName: "properties.diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, encryptionSettingsCollection: { serializedName: "properties.encryptionSettingsCollection", type: { name: "Composite", - className: "EncryptionSettingsCollection" - } + className: "EncryptionSettingsCollection", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "Encryption" - } + className: "Encryption", + }, }, networkAccessPolicy: { serializedName: "properties.networkAccessPolicy", type: { - name: "String" - } + name: "String", + }, }, diskAccessId: { serializedName: "properties.diskAccessId", type: { - name: "String" - } + name: "String", + }, }, supportsHibernation: { serializedName: "properties.supportsHibernation", type: { - name: "Boolean" - } + name: "Boolean", + }, }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, dataAccessAuthMode: { serializedName: "properties.dataAccessAuthMode", type: { - name: "String" - } + name: "String", + }, }, supportedCapabilities: { serializedName: "properties.supportedCapabilities", type: { name: "Composite", - className: "SupportedCapabilities" - } - } - } - } + className: "SupportedCapabilities", + }, + }, + }, + }, }; export const SnapshotList: coreClient.CompositeMapper = { @@ -8986,19 +9045,19 @@ export const SnapshotList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Snapshot" - } - } - } + className: "Snapshot", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSkusResult: coreClient.CompositeMapper = { @@ -9014,19 +9073,19 @@ export const ResourceSkusResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSku" - } - } - } + className: "ResourceSku", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSku: coreClient.CompositeMapper = { @@ -9038,50 +9097,50 @@ export const ResourceSku: coreClient.CompositeMapper = { serializedName: "resourceType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, size: { serializedName: "size", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, family: { serializedName: "family", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, kind: { serializedName: "kind", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, capacity: { serializedName: "capacity", type: { name: "Composite", - className: "ResourceSkuCapacity" - } + className: "ResourceSkuCapacity", + }, }, locations: { serializedName: "locations", @@ -9090,10 +9149,10 @@ export const ResourceSku: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, locationInfo: { serializedName: "locationInfo", @@ -9103,10 +9162,10 @@ export const ResourceSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuLocationInfo" - } - } - } + className: "ResourceSkuLocationInfo", + }, + }, + }, }, apiVersions: { serializedName: "apiVersions", @@ -9115,10 +9174,10 @@ export const ResourceSku: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, costs: { serializedName: "costs", @@ -9128,10 +9187,10 @@ export const ResourceSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuCosts" - } - } - } + className: "ResourceSkuCosts", + }, + }, + }, }, capabilities: { serializedName: "capabilities", @@ -9141,10 +9200,10 @@ export const ResourceSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuCapabilities" - } - } - } + className: "ResourceSkuCapabilities", + }, + }, + }, }, restrictions: { serializedName: "restrictions", @@ -9154,13 +9213,13 @@ export const ResourceSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuRestrictions" - } - } - } - } - } - } + className: "ResourceSkuRestrictions", + }, + }, + }, + }, + }, + }, }; export const ResourceSkuCapacity: coreClient.CompositeMapper = { @@ -9172,33 +9231,33 @@ export const ResourceSkuCapacity: coreClient.CompositeMapper = { serializedName: "minimum", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, maximum: { serializedName: "maximum", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, default: { serializedName: "default", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, scaleType: { serializedName: "scaleType", readOnly: true, type: { name: "Enum", - allowedValues: ["Automatic", "Manual", "None"] - } - } - } - } + allowedValues: ["Automatic", "Manual", "None"], + }, + }, + }, + }, }; export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { @@ -9210,8 +9269,8 @@ export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, zones: { serializedName: "zones", @@ -9220,10 +9279,10 @@ export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, zoneDetails: { serializedName: "zoneDetails", @@ -9233,10 +9292,10 @@ export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuZoneDetails" - } - } - } + className: "ResourceSkuZoneDetails", + }, + }, + }, }, extendedLocations: { serializedName: "extendedLocations", @@ -9245,20 +9304,20 @@ export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { @@ -9273,10 +9332,10 @@ export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, capabilities: { serializedName: "capabilities", @@ -9286,13 +9345,13 @@ export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuCapabilities" - } - } - } - } - } - } + className: "ResourceSkuCapabilities", + }, + }, + }, + }, + }, + }, }; export const ResourceSkuCapabilities: coreClient.CompositeMapper = { @@ -9304,18 +9363,18 @@ export const ResourceSkuCapabilities: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSkuCosts: coreClient.CompositeMapper = { @@ -9327,25 +9386,25 @@ export const ResourceSkuCosts: coreClient.CompositeMapper = { serializedName: "meterID", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, quantity: { serializedName: "quantity", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, extendedUnit: { serializedName: "extendedUnit", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSkuRestrictions: coreClient.CompositeMapper = { @@ -9358,8 +9417,8 @@ export const ResourceSkuRestrictions: coreClient.CompositeMapper = { readOnly: true, type: { name: "Enum", - allowedValues: ["Location", "Zone"] - } + allowedValues: ["Location", "Zone"], + }, }, values: { serializedName: "values", @@ -9368,28 +9427,28 @@ export const ResourceSkuRestrictions: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, restrictionInfo: { serializedName: "restrictionInfo", type: { name: "Composite", - className: "ResourceSkuRestrictionInfo" - } + className: "ResourceSkuRestrictionInfo", + }, }, reasonCode: { serializedName: "reasonCode", readOnly: true, type: { name: "Enum", - allowedValues: ["QuotaId", "NotAvailableForSubscription"] - } - } - } - } + allowedValues: ["QuotaId", "NotAvailableForSubscription"], + }, + }, + }, + }, }; export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { @@ -9404,10 +9463,10 @@ export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, zones: { serializedName: "zones", @@ -9416,13 +9475,13 @@ export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const GalleryIdentifier: coreClient.CompositeMapper = { @@ -9434,11 +9493,11 @@ export const GalleryIdentifier: coreClient.CompositeMapper = { serializedName: "uniqueName", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SharingProfile: coreClient.CompositeMapper = { @@ -9449,8 +9508,8 @@ export const SharingProfile: coreClient.CompositeMapper = { permissions: { serializedName: "permissions", type: { - name: "String" - } + name: "String", + }, }, groups: { serializedName: "groups", @@ -9460,20 +9519,20 @@ export const SharingProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SharingProfileGroup" - } - } - } + className: "SharingProfileGroup", + }, + }, + }, }, communityGalleryInfo: { serializedName: "communityGalleryInfo", type: { name: "Composite", - className: "CommunityGalleryInfo" - } - } - } - } + className: "CommunityGalleryInfo", + }, + }, + }, + }, }; export const SharingProfileGroup: coreClient.CompositeMapper = { @@ -9484,8 +9543,8 @@ export const SharingProfileGroup: coreClient.CompositeMapper = { type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, ids: { serializedName: "ids", @@ -9493,13 +9552,13 @@ export const SharingProfileGroup: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const CommunityGalleryInfo: coreClient.CompositeMapper = { @@ -9510,33 +9569,33 @@ export const CommunityGalleryInfo: coreClient.CompositeMapper = { publisherUri: { serializedName: "publisherUri", type: { - name: "String" - } + name: "String", + }, }, publisherContact: { serializedName: "publisherContact", type: { - name: "String" - } + name: "String", + }, }, eula: { serializedName: "eula", type: { - name: "String" - } + name: "String", + }, }, publicNamePrefix: { serializedName: "publicNamePrefix", type: { - name: "String" - } + name: "String", + }, }, communityGalleryEnabled: { serializedName: "communityGalleryEnabled", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, publicNames: { serializedName: "publicNames", @@ -9545,13 +9604,13 @@ export const CommunityGalleryInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const SoftDeletePolicy: coreClient.CompositeMapper = { @@ -9562,11 +9621,11 @@ export const SoftDeletePolicy: coreClient.CompositeMapper = { isSoftDeleteEnabled: { serializedName: "isSoftDeleteEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SharingStatus: coreClient.CompositeMapper = { @@ -9578,8 +9637,8 @@ export const SharingStatus: coreClient.CompositeMapper = { serializedName: "aggregatedState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, summary: { serializedName: "summary", @@ -9588,13 +9647,13 @@ export const SharingStatus: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RegionalSharingStatus" - } - } - } - } - } - } + className: "RegionalSharingStatus", + }, + }, + }, + }, + }, + }, }; export const RegionalSharingStatus: coreClient.CompositeMapper = { @@ -9605,24 +9664,24 @@ export const RegionalSharingStatus: coreClient.CompositeMapper = { region: { serializedName: "region", type: { - name: "String" - } + name: "String", + }, }, state: { serializedName: "state", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UpdateResourceDefinition: coreClient.CompositeMapper = { @@ -9634,32 +9693,32 @@ export const UpdateResourceDefinition: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const GalleryImageIdentifier: coreClient.CompositeMapper = { @@ -9671,25 +9730,25 @@ export const GalleryImageIdentifier: coreClient.CompositeMapper = { serializedName: "publisher", required: true, type: { - name: "String" - } + name: "String", + }, }, offer: { serializedName: "offer", required: true, type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RecommendedMachineConfiguration: coreClient.CompositeMapper = { @@ -9701,18 +9760,18 @@ export const RecommendedMachineConfiguration: coreClient.CompositeMapper = { serializedName: "vCPUs", type: { name: "Composite", - className: "ResourceRange" - } + className: "ResourceRange", + }, }, memory: { serializedName: "memory", type: { name: "Composite", - className: "ResourceRange" - } - } - } - } + className: "ResourceRange", + }, + }, + }, + }, }; export const ResourceRange: coreClient.CompositeMapper = { @@ -9723,17 +9782,17 @@ export const ResourceRange: coreClient.CompositeMapper = { min: { serializedName: "min", type: { - name: "Number" - } + name: "Number", + }, }, max: { serializedName: "max", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const Disallowed: coreClient.CompositeMapper = { @@ -9747,13 +9806,13 @@ export const Disallowed: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ImagePurchasePlan: coreClient.CompositeMapper = { @@ -9764,23 +9823,23 @@ export const ImagePurchasePlan: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "publisher", type: { - name: "String" - } + name: "String", + }, }, product: { serializedName: "product", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryImageFeature: coreClient.CompositeMapper = { @@ -9791,88 +9850,89 @@ export const GalleryImageFeature: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", type: { - name: "String" - } - } - } - } -}; - -export const GalleryArtifactPublishingProfileBase: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryArtifactPublishingProfileBase", - modelProperties: { - targetRegions: { - serializedName: "targetRegions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TargetRegion" - } - } - } - }, - replicaCount: { - serializedName: "replicaCount", - type: { - name: "Number" - } - }, - excludeFromLatest: { - serializedName: "excludeFromLatest", - type: { - name: "Boolean" - } - }, - publishedDate: { - serializedName: "publishedDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - endOfLifeDate: { - serializedName: "endOfLifeDate", - type: { - name: "DateTime" - } - }, - storageAccountType: { - serializedName: "storageAccountType", - type: { - name: "String" - } + name: "String", + }, }, - replicationMode: { - serializedName: "replicationMode", - type: { - name: "String" - } + }, + }, +}; + +export const GalleryArtifactPublishingProfileBase: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "GalleryArtifactPublishingProfileBase", + modelProperties: { + targetRegions: { + serializedName: "targetRegions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TargetRegion", + }, + }, + }, + }, + replicaCount: { + serializedName: "replicaCount", + type: { + name: "Number", + }, + }, + excludeFromLatest: { + serializedName: "excludeFromLatest", + type: { + name: "Boolean", + }, + }, + publishedDate: { + serializedName: "publishedDate", + readOnly: true, + type: { + name: "DateTime", + }, + }, + endOfLifeDate: { + serializedName: "endOfLifeDate", + type: { + name: "DateTime", + }, + }, + storageAccountType: { + serializedName: "storageAccountType", + type: { + name: "String", + }, + }, + replicationMode: { + serializedName: "replicationMode", + type: { + name: "String", + }, + }, + targetExtendedLocations: { + serializedName: "targetExtendedLocations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryTargetExtendedLocation", + }, + }, + }, + }, }, - targetExtendedLocations: { - serializedName: "targetExtendedLocations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GalleryTargetExtendedLocation" - } - } - } - } - } - } -}; + }, + }; export const TargetRegion: coreClient.CompositeMapper = { type: { @@ -9883,36 +9943,36 @@ export const TargetRegion: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, regionalReplicaCount: { serializedName: "regionalReplicaCount", type: { - name: "Number" - } + name: "Number", + }, }, storageAccountType: { serializedName: "storageAccountType", type: { - name: "String" - } + name: "String", + }, }, encryption: { serializedName: "encryption", type: { name: "Composite", - className: "EncryptionImages" - } + className: "EncryptionImages", + }, }, excludeFromLatest: { serializedName: "excludeFromLatest", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const EncryptionImages: coreClient.CompositeMapper = { @@ -9924,8 +9984,8 @@ export const EncryptionImages: coreClient.CompositeMapper = { serializedName: "osDiskImage", type: { name: "Composite", - className: "OSDiskImageEncryption" - } + className: "OSDiskImageEncryption", + }, }, dataDiskImages: { serializedName: "dataDiskImages", @@ -9934,13 +9994,13 @@ export const EncryptionImages: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataDiskImageEncryption" - } - } - } - } - } - } + className: "DataDiskImageEncryption", + }, + }, + }, + }, + }, + }, }; export const OSDiskImageSecurityProfile: coreClient.CompositeMapper = { @@ -9951,17 +10011,17 @@ export const OSDiskImageSecurityProfile: coreClient.CompositeMapper = { confidentialVMEncryptionType: { serializedName: "confidentialVMEncryptionType", type: { - name: "String" - } + name: "String", + }, }, secureVMDiskEncryptionSetId: { serializedName: "secureVMDiskEncryptionSetId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskImageEncryption: coreClient.CompositeMapper = { @@ -9972,11 +10032,11 @@ export const DiskImageEncryption: coreClient.CompositeMapper = { diskEncryptionSetId: { serializedName: "diskEncryptionSetId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryTargetExtendedLocation: coreClient.CompositeMapper = { @@ -9987,37 +10047,37 @@ export const GalleryTargetExtendedLocation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, extendedLocation: { serializedName: "extendedLocation", type: { name: "Composite", - className: "GalleryExtendedLocation" - } + className: "GalleryExtendedLocation", + }, }, extendedLocationReplicaCount: { serializedName: "extendedLocationReplicaCount", type: { - name: "Number" - } + name: "Number", + }, }, storageAccountType: { serializedName: "storageAccountType", type: { - name: "String" - } + name: "String", + }, }, encryption: { serializedName: "encryption", type: { name: "Composite", - className: "EncryptionImages" - } - } - } - } + className: "EncryptionImages", + }, + }, + }, + }, }; export const GalleryExtendedLocation: coreClient.CompositeMapper = { @@ -10028,17 +10088,17 @@ export const GalleryExtendedLocation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryImageVersionStorageProfile: coreClient.CompositeMapper = { @@ -10050,15 +10110,15 @@ export const GalleryImageVersionStorageProfile: coreClient.CompositeMapper = { serializedName: "source", type: { name: "Composite", - className: "GalleryArtifactVersionFullSource" - } + className: "GalleryArtifactVersionFullSource", + }, }, osDiskImage: { serializedName: "osDiskImage", type: { name: "Composite", - className: "GalleryOSDiskImage" - } + className: "GalleryOSDiskImage", + }, }, dataDiskImages: { serializedName: "dataDiskImages", @@ -10067,13 +10127,13 @@ export const GalleryImageVersionStorageProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryDataDiskImage" - } - } - } - } - } - } + className: "GalleryDataDiskImage", + }, + }, + }, + }, + }, + }, }; export const GalleryArtifactVersionSource: coreClient.CompositeMapper = { @@ -10084,11 +10144,11 @@ export const GalleryArtifactVersionSource: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryDiskImage: coreClient.CompositeMapper = { @@ -10100,25 +10160,25 @@ export const GalleryDiskImage: coreClient.CompositeMapper = { serializedName: "sizeInGB", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, hostCaching: { serializedName: "hostCaching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, source: { serializedName: "source", type: { name: "Composite", - className: "GalleryDiskImageSource" - } - } - } - } + className: "GalleryDiskImageSource", + }, + }, + }, + }, }; export const PolicyViolation: coreClient.CompositeMapper = { @@ -10129,17 +10189,17 @@ export const PolicyViolation: coreClient.CompositeMapper = { category: { serializedName: "category", type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryArtifactSafetyProfileBase: coreClient.CompositeMapper = { @@ -10150,11 +10210,11 @@ export const GalleryArtifactSafetyProfileBase: coreClient.CompositeMapper = { allowDeletionOfReplicatedLocations: { serializedName: "allowDeletionOfReplicatedLocations", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ReplicationStatus: coreClient.CompositeMapper = { @@ -10166,8 +10226,8 @@ export const ReplicationStatus: coreClient.CompositeMapper = { serializedName: "aggregatedState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, summary: { serializedName: "summary", @@ -10177,13 +10237,13 @@ export const ReplicationStatus: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RegionalReplicationStatus" - } - } - } - } - } - } + className: "RegionalReplicationStatus", + }, + }, + }, + }, + }, + }, }; export const RegionalReplicationStatus: coreClient.CompositeMapper = { @@ -10195,32 +10255,32 @@ export const RegionalReplicationStatus: coreClient.CompositeMapper = { serializedName: "region", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, state: { serializedName: "state", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, progress: { serializedName: "progress", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ImageVersionSecurityProfile: coreClient.CompositeMapper = { @@ -10232,11 +10292,11 @@ export const ImageVersionSecurityProfile: coreClient.CompositeMapper = { serializedName: "uefiSettings", type: { name: "Composite", - className: "GalleryImageVersionUefiSettings" - } - } - } - } + className: "GalleryImageVersionUefiSettings", + }, + }, + }, + }, }; export const GalleryImageVersionUefiSettings: coreClient.CompositeMapper = { @@ -10250,20 +10310,20 @@ export const GalleryImageVersionUefiSettings: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, additionalSignatures: { serializedName: "additionalSignatures", type: { name: "Composite", - className: "UefiKeySignatures" - } - } - } - } + className: "UefiKeySignatures", + }, + }, + }, + }, }; export const UefiKeySignatures: coreClient.CompositeMapper = { @@ -10275,8 +10335,8 @@ export const UefiKeySignatures: coreClient.CompositeMapper = { serializedName: "pk", type: { name: "Composite", - className: "UefiKey" - } + className: "UefiKey", + }, }, kek: { serializedName: "kek", @@ -10285,10 +10345,10 @@ export const UefiKeySignatures: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UefiKey" - } - } - } + className: "UefiKey", + }, + }, + }, }, db: { serializedName: "db", @@ -10297,10 +10357,10 @@ export const UefiKeySignatures: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UefiKey" - } - } - } + className: "UefiKey", + }, + }, + }, }, dbx: { serializedName: "dbx", @@ -10309,13 +10369,13 @@ export const UefiKeySignatures: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UefiKey" - } - } - } - } - } - } + className: "UefiKey", + }, + }, + }, + }, + }, + }, }; export const UefiKey: coreClient.CompositeMapper = { @@ -10326,8 +10386,8 @@ export const UefiKey: coreClient.CompositeMapper = { type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -10335,13 +10395,13 @@ export const UefiKey: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const GalleryApplicationCustomAction: coreClient.CompositeMapper = { @@ -10353,21 +10413,21 @@ export const GalleryApplicationCustomAction: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, script: { serializedName: "script", required: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, parameters: { serializedName: "parameters", @@ -10376,55 +10436,56 @@ export const GalleryApplicationCustomAction: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryApplicationCustomActionParameter" - } - } - } - } - } - } -}; - -export const GalleryApplicationCustomActionParameter: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryApplicationCustomActionParameter", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - required: { - serializedName: "required", - type: { - name: "Boolean" - } - }, - type: { - serializedName: "type", - type: { - name: "Enum", - allowedValues: ["String", "ConfigurationDataBlob", "LogOutputBlob"] - } + className: "GalleryApplicationCustomActionParameter", + }, + }, + }, }, - defaultValue: { - serializedName: "defaultValue", + }, + }, +}; + +export const GalleryApplicationCustomActionParameter: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "GalleryApplicationCustomActionParameter", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + required: { + serializedName: "required", + type: { + name: "Boolean", + }, + }, type: { - name: "String" - } + serializedName: "type", + type: { + name: "Enum", + allowedValues: ["String", "ConfigurationDataBlob", "LogOutputBlob"], + }, + }, + defaultValue: { + serializedName: "defaultValue", + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + type: { + name: "String", + }, + }, }, - description: { - serializedName: "description", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const UserArtifactSource: coreClient.CompositeMapper = { type: { @@ -10435,17 +10496,17 @@ export const UserArtifactSource: coreClient.CompositeMapper = { serializedName: "mediaLink", required: true, type: { - name: "String" - } + name: "String", + }, }, defaultConfigurationLink: { serializedName: "defaultConfigurationLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserArtifactManage: coreClient.CompositeMapper = { @@ -10457,24 +10518,24 @@ export const UserArtifactManage: coreClient.CompositeMapper = { serializedName: "install", required: true, type: { - name: "String" - } + name: "String", + }, }, remove: { serializedName: "remove", required: true, type: { - name: "String" - } + name: "String", + }, }, update: { serializedName: "update", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserArtifactSettings: coreClient.CompositeMapper = { @@ -10485,17 +10546,17 @@ export const UserArtifactSettings: coreClient.CompositeMapper = { packageFileName: { serializedName: "packageFileName", type: { - name: "String" - } + name: "String", + }, }, configFileName: { serializedName: "configFileName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryList: coreClient.CompositeMapper = { @@ -10511,19 +10572,19 @@ export const GalleryList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Gallery" - } - } - } + className: "Gallery", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryImageList: coreClient.CompositeMapper = { @@ -10539,19 +10600,19 @@ export const GalleryImageList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryImage" - } - } - } + className: "GalleryImage", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryImageVersionList: coreClient.CompositeMapper = { @@ -10567,19 +10628,19 @@ export const GalleryImageVersionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryImageVersion" - } - } - } + className: "GalleryImageVersion", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryApplicationList: coreClient.CompositeMapper = { @@ -10595,19 +10656,19 @@ export const GalleryApplicationList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryApplication" - } - } - } + className: "GalleryApplication", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryApplicationVersionList: coreClient.CompositeMapper = { @@ -10623,19 +10684,19 @@ export const GalleryApplicationVersionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryApplicationVersion" - } - } - } + className: "GalleryApplicationVersion", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SharingUpdate: coreClient.CompositeMapper = { @@ -10647,8 +10708,8 @@ export const SharingUpdate: coreClient.CompositeMapper = { serializedName: "operationType", required: true, type: { - name: "String" - } + name: "String", + }, }, groups: { serializedName: "groups", @@ -10657,13 +10718,13 @@ export const SharingUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SharingProfileGroup" - } - } - } - } - } - } + className: "SharingProfileGroup", + }, + }, + }, + }, + }, + }, }; export const SharedGalleryList: coreClient.CompositeMapper = { @@ -10679,19 +10740,19 @@ export const SharedGalleryList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SharedGallery" - } - } - } + className: "SharedGallery", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PirResource: coreClient.CompositeMapper = { @@ -10703,18 +10764,18 @@ export const PirResource: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SharedGalleryImageList: coreClient.CompositeMapper = { @@ -10730,19 +10791,19 @@ export const SharedGalleryImageList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SharedGalleryImage" - } - } - } + className: "SharedGalleryImage", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SharedGalleryImageVersionList: coreClient.CompositeMapper = { @@ -10758,48 +10819,49 @@ export const SharedGalleryImageVersionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SharedGalleryImageVersion" - } - } - } + className: "SharedGalleryImageVersion", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const SharedGalleryImageVersionStorageProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SharedGalleryImageVersionStorageProfile", - modelProperties: { - osDiskImage: { - serializedName: "osDiskImage", - type: { - name: "Composite", - className: "SharedGalleryOSDiskImage" - } + name: "String", + }, }, - dataDiskImages: { - serializedName: "dataDiskImages", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SharedGalleryDataDiskImage" - } - } - } - } - } - } -}; + }, + }, +}; + +export const SharedGalleryImageVersionStorageProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SharedGalleryImageVersionStorageProfile", + modelProperties: { + osDiskImage: { + serializedName: "osDiskImage", + type: { + name: "Composite", + className: "SharedGalleryOSDiskImage", + }, + }, + dataDiskImages: { + serializedName: "dataDiskImages", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedGalleryDataDiskImage", + }, + }, + }, + }, + }, + }, + }; export const SharedGalleryDiskImage: coreClient.CompositeMapper = { type: { @@ -10810,17 +10872,17 @@ export const SharedGalleryDiskImage: coreClient.CompositeMapper = { serializedName: "diskSizeGB", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, hostCaching: { serializedName: "hostCaching", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CommunityGalleryMetadata: coreClient.CompositeMapper = { @@ -10831,21 +10893,21 @@ export const CommunityGalleryMetadata: coreClient.CompositeMapper = { publisherUri: { serializedName: "publisherUri", type: { - name: "String" - } + name: "String", + }, }, publisherContact: { serializedName: "publisherContact", required: true, type: { - name: "String" - } + name: "String", + }, }, eula: { serializedName: "eula", type: { - name: "String" - } + name: "String", + }, }, publicNames: { serializedName: "publicNames", @@ -10854,19 +10916,19 @@ export const CommunityGalleryMetadata: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, privacyStatementUri: { serializedName: "privacyStatementUri", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PirCommunityGalleryResource: coreClient.CompositeMapper = { @@ -10878,31 +10940,31 @@ export const PirCommunityGalleryResource: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, uniqueId: { serializedName: "identifier.uniqueId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CommunityGalleryImageIdentifier: coreClient.CompositeMapper = { @@ -10913,23 +10975,23 @@ export const CommunityGalleryImageIdentifier: coreClient.CompositeMapper = { publisher: { serializedName: "publisher", type: { - name: "String" - } + name: "String", + }, }, offer: { serializedName: "offer", type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CommunityGalleryImageList: coreClient.CompositeMapper = { @@ -10945,19 +11007,19 @@ export const CommunityGalleryImageList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CommunityGalleryImage" - } - } - } + className: "CommunityGalleryImage", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CommunityGalleryImageVersionList: coreClient.CompositeMapper = { @@ -10973,19 +11035,19 @@ export const CommunityGalleryImageVersionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CommunityGalleryImageVersion" - } - } - } + className: "CommunityGalleryImageVersion", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RoleInstance: coreClient.CompositeMapper = { @@ -10997,54 +11059,54 @@ export const RoleInstance: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "InstanceSku" - } + className: "InstanceSku", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "RoleInstanceProperties" - } - } - } - } + className: "RoleInstanceProperties", + }, + }, + }, + }, }; export const InstanceSku: coreClient.CompositeMapper = { @@ -11056,18 +11118,18 @@ export const InstanceSku: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RoleInstanceProperties: coreClient.CompositeMapper = { @@ -11079,18 +11141,18 @@ export const RoleInstanceProperties: coreClient.CompositeMapper = { serializedName: "networkProfile", type: { name: "Composite", - className: "RoleInstanceNetworkProfile" - } + className: "RoleInstanceNetworkProfile", + }, }, instanceView: { serializedName: "instanceView", type: { name: "Composite", - className: "RoleInstanceView" - } - } - } - } + className: "RoleInstanceView", + }, + }, + }, + }, }; export const RoleInstanceNetworkProfile: coreClient.CompositeMapper = { @@ -11106,13 +11168,13 @@ export const RoleInstanceNetworkProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResource" - } - } - } - } - } - } + className: "SubResource", + }, + }, + }, + }, + }, + }, }; export const RoleInstanceView: coreClient.CompositeMapper = { @@ -11124,22 +11186,22 @@ export const RoleInstanceView: coreClient.CompositeMapper = { serializedName: "platformUpdateDomain", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, platformFaultDomain: { serializedName: "platformFaultDomain", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, privateId: { serializedName: "privateId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, statuses: { serializedName: "statuses", @@ -11149,13 +11211,13 @@ export const RoleInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceInstanceViewStatus" - } - } - } - } - } - } + className: "ResourceInstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const ResourceInstanceViewStatus: coreClient.CompositeMapper = { @@ -11167,39 +11229,39 @@ export const ResourceInstanceViewStatus: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, displayStatus: { serializedName: "displayStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, time: { serializedName: "time", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, level: { serializedName: "level", type: { name: "Enum", - allowedValues: ["Info", "Warning", "Error"] - } - } - } - } + allowedValues: ["Info", "Warning", "Error"], + }, + }, + }, + }, }; export const RoleInstanceListResult: coreClient.CompositeMapper = { @@ -11215,19 +11277,19 @@ export const RoleInstanceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RoleInstance" - } - } - } + className: "RoleInstance", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudServiceRole: coreClient.CompositeMapper = { @@ -11239,46 +11301,46 @@ export const CloudServiceRole: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "CloudServiceRoleSku" - } + className: "CloudServiceRoleSku", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "CloudServiceRoleProperties" - } - } - } - } + className: "CloudServiceRoleProperties", + }, + }, + }, + }, }; export const CloudServiceRoleSku: coreClient.CompositeMapper = { @@ -11289,23 +11351,23 @@ export const CloudServiceRoleSku: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", type: { - name: "String" - } + name: "String", + }, }, capacity: { serializedName: "capacity", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const CloudServiceRoleProperties: coreClient.CompositeMapper = { @@ -11317,11 +11379,11 @@ export const CloudServiceRoleProperties: coreClient.CompositeMapper = { serializedName: "uniqueId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudServiceRoleListResult: coreClient.CompositeMapper = { @@ -11337,19 +11399,19 @@ export const CloudServiceRoleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudServiceRole" - } - } - } + className: "CloudServiceRole", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudService: coreClient.CompositeMapper = { @@ -11361,50 +11423,50 @@ export const CloudService: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", required: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "CloudServiceProperties" - } + className: "CloudServiceProperties", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, zones: { serializedName: "zones", @@ -11412,13 +11474,13 @@ export const CloudService: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const CloudServiceProperties: coreClient.CompositeMapper = { @@ -11429,83 +11491,83 @@ export const CloudServiceProperties: coreClient.CompositeMapper = { packageUrl: { serializedName: "packageUrl", type: { - name: "String" - } + name: "String", + }, }, configuration: { serializedName: "configuration", type: { - name: "String" - } + name: "String", + }, }, configurationUrl: { serializedName: "configurationUrl", type: { - name: "String" - } + name: "String", + }, }, startCloudService: { serializedName: "startCloudService", type: { - name: "Boolean" - } + name: "Boolean", + }, }, allowModelOverride: { serializedName: "allowModelOverride", type: { - name: "Boolean" - } + name: "Boolean", + }, }, upgradeMode: { serializedName: "upgradeMode", type: { - name: "String" - } + name: "String", + }, }, roleProfile: { serializedName: "roleProfile", type: { name: "Composite", - className: "CloudServiceRoleProfile" - } + className: "CloudServiceRoleProfile", + }, }, osProfile: { serializedName: "osProfile", type: { name: "Composite", - className: "CloudServiceOsProfile" - } + className: "CloudServiceOsProfile", + }, }, networkProfile: { serializedName: "networkProfile", type: { name: "Composite", - className: "CloudServiceNetworkProfile" - } + className: "CloudServiceNetworkProfile", + }, }, extensionProfile: { serializedName: "extensionProfile", type: { name: "Composite", - className: "CloudServiceExtensionProfile" - } + className: "CloudServiceExtensionProfile", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, uniqueId: { serializedName: "uniqueId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudServiceRoleProfile: coreClient.CompositeMapper = { @@ -11520,13 +11582,13 @@ export const CloudServiceRoleProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudServiceRoleProfileProperties" - } - } - } - } - } - } + className: "CloudServiceRoleProfileProperties", + }, + }, + }, + }, + }, + }, }; export const CloudServiceRoleProfileProperties: coreClient.CompositeMapper = { @@ -11537,18 +11599,18 @@ export const CloudServiceRoleProfileProperties: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "CloudServiceRoleSku" - } - } - } - } + className: "CloudServiceRoleSku", + }, + }, + }, + }, }; export const CloudServiceOsProfile: coreClient.CompositeMapper = { @@ -11563,13 +11625,13 @@ export const CloudServiceOsProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudServiceVaultSecretGroup" - } - } - } - } - } - } + className: "CloudServiceVaultSecretGroup", + }, + }, + }, + }, + }, + }, }; export const CloudServiceVaultSecretGroup: coreClient.CompositeMapper = { @@ -11581,8 +11643,8 @@ export const CloudServiceVaultSecretGroup: coreClient.CompositeMapper = { serializedName: "sourceVault", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, vaultCertificates: { serializedName: "vaultCertificates", @@ -11591,13 +11653,13 @@ export const CloudServiceVaultSecretGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudServiceVaultCertificate" - } - } - } - } - } - } + className: "CloudServiceVaultCertificate", + }, + }, + }, + }, + }, + }, }; export const CloudServiceVaultCertificate: coreClient.CompositeMapper = { @@ -11608,11 +11670,11 @@ export const CloudServiceVaultCertificate: coreClient.CompositeMapper = { certificateUrl: { serializedName: "certificateUrl", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudServiceNetworkProfile: coreClient.CompositeMapper = { @@ -11627,26 +11689,26 @@ export const CloudServiceNetworkProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LoadBalancerConfiguration" - } - } - } + className: "LoadBalancerConfiguration", + }, + }, + }, }, slotType: { serializedName: "slotType", type: { - name: "String" - } + name: "String", + }, }, swappableCloudService: { serializedName: "swappableCloudService", type: { name: "Composite", - className: "SubResource" - } - } - } - } + className: "SubResource", + }, + }, + }, + }, }; export const LoadBalancerConfiguration: coreClient.CompositeMapper = { @@ -11657,25 +11719,25 @@ export const LoadBalancerConfiguration: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "LoadBalancerConfigurationProperties" - } - } - } - } + className: "LoadBalancerConfigurationProperties", + }, + }, + }, + }, }; export const LoadBalancerConfigurationProperties: coreClient.CompositeMapper = { @@ -11691,13 +11753,13 @@ export const LoadBalancerConfigurationProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LoadBalancerFrontendIpConfiguration" - } - } - } - } - } - } + className: "LoadBalancerFrontendIpConfiguration", + }, + }, + }, + }, + }, + }, }; export const LoadBalancerFrontendIpConfiguration: coreClient.CompositeMapper = { @@ -11709,48 +11771,49 @@ export const LoadBalancerFrontendIpConfiguration: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "LoadBalancerFrontendIpConfigurationProperties" - } - } - } - } -}; - -export const LoadBalancerFrontendIpConfigurationProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LoadBalancerFrontendIpConfigurationProperties", - modelProperties: { - publicIPAddress: { - serializedName: "publicIPAddress", - type: { - name: "Composite", - className: "SubResource" - } + className: "LoadBalancerFrontendIpConfigurationProperties", + }, }, - subnet: { - serializedName: "subnet", - type: { - name: "Composite", - className: "SubResource" - } + }, + }, +}; + +export const LoadBalancerFrontendIpConfigurationProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "LoadBalancerFrontendIpConfigurationProperties", + modelProperties: { + publicIPAddress: { + serializedName: "publicIPAddress", + type: { + name: "Composite", + className: "SubResource", + }, + }, + subnet: { + serializedName: "subnet", + type: { + name: "Composite", + className: "SubResource", + }, + }, + privateIPAddress: { + serializedName: "privateIPAddress", + type: { + name: "String", + }, + }, }, - privateIPAddress: { - serializedName: "privateIPAddress", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const CloudServiceExtensionProfile: coreClient.CompositeMapper = { type: { @@ -11764,13 +11827,13 @@ export const CloudServiceExtensionProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Extension" - } - } - } - } - } - } + className: "Extension", + }, + }, + }, + }, + }, + }, }; export const Extension: coreClient.CompositeMapper = { @@ -11781,18 +11844,18 @@ export const Extension: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "CloudServiceExtensionProperties" - } - } - } - } + className: "CloudServiceExtensionProperties", + }, + }, + }, + }, }; export const CloudServiceExtensionProperties: coreClient.CompositeMapper = { @@ -11803,58 +11866,58 @@ export const CloudServiceExtensionProperties: coreClient.CompositeMapper = { publisher: { serializedName: "publisher", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, typeHandlerVersion: { serializedName: "typeHandlerVersion", type: { - name: "String" - } + name: "String", + }, }, autoUpgradeMinorVersion: { serializedName: "autoUpgradeMinorVersion", type: { - name: "Boolean" - } + name: "Boolean", + }, }, settings: { serializedName: "settings", type: { - name: "any" - } + name: "any", + }, }, protectedSettings: { serializedName: "protectedSettings", type: { - name: "any" - } + name: "any", + }, }, protectedSettingsFromKeyVault: { serializedName: "protectedSettingsFromKeyVault", type: { name: "Composite", - className: "CloudServiceVaultAndSecretReference" - } + className: "CloudServiceVaultAndSecretReference", + }, }, forceUpdateTag: { serializedName: "forceUpdateTag", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rolesAppliedTo: { serializedName: "rolesAppliedTo", @@ -11862,13 +11925,13 @@ export const CloudServiceExtensionProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const CloudServiceVaultAndSecretReference: coreClient.CompositeMapper = { @@ -11880,17 +11943,17 @@ export const CloudServiceVaultAndSecretReference: coreClient.CompositeMapper = { serializedName: "sourceVault", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, secretUrl: { serializedName: "secretUrl", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -11902,18 +11965,18 @@ export const SystemData: coreClient.CompositeMapper = { serializedName: "createdAt", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const CloudServiceUpdate: coreClient.CompositeMapper = { @@ -11925,11 +11988,11 @@ export const CloudServiceUpdate: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const CloudServiceInstanceView: coreClient.CompositeMapper = { @@ -11941,15 +12004,15 @@ export const CloudServiceInstanceView: coreClient.CompositeMapper = { serializedName: "roleInstance", type: { name: "Composite", - className: "InstanceViewStatusesSummary" - } + className: "InstanceViewStatusesSummary", + }, }, sdkVersion: { serializedName: "sdkVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, privateIds: { serializedName: "privateIds", @@ -11958,10 +12021,10 @@ export const CloudServiceInstanceView: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, statuses: { serializedName: "statuses", @@ -11971,13 +12034,13 @@ export const CloudServiceInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceInstanceViewStatus" - } - } - } - } - } - } + className: "ResourceInstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const InstanceViewStatusesSummary: coreClient.CompositeMapper = { @@ -11993,13 +12056,13 @@ export const InstanceViewStatusesSummary: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "StatusCodeCount" - } - } - } - } - } - } + className: "StatusCodeCount", + }, + }, + }, + }, + }, + }, }; export const StatusCodeCount: coreClient.CompositeMapper = { @@ -12011,18 +12074,18 @@ export const StatusCodeCount: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, count: { serializedName: "count", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const CloudServiceListResult: coreClient.CompositeMapper = { @@ -12038,19 +12101,19 @@ export const CloudServiceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudService" - } - } - } + className: "CloudService", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RoleInstances: coreClient.CompositeMapper = { @@ -12065,13 +12128,13 @@ export const RoleInstances: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const UpdateDomain: coreClient.CompositeMapper = { @@ -12083,18 +12146,18 @@ export const UpdateDomain: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UpdateDomainListResult: coreClient.CompositeMapper = { @@ -12110,19 +12173,19 @@ export const UpdateDomainListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UpdateDomain" - } - } - } + className: "UpdateDomain", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OSVersion: coreClient.CompositeMapper = { @@ -12134,39 +12197,39 @@ export const OSVersion: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "OSVersionProperties" - } - } - } - } + className: "OSVersionProperties", + }, + }, + }, + }, }; export const OSVersionProperties: coreClient.CompositeMapper = { @@ -12178,46 +12241,46 @@ export const OSVersionProperties: coreClient.CompositeMapper = { serializedName: "family", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, familyLabel: { serializedName: "familyLabel", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, label: { serializedName: "label", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isDefault: { serializedName: "isDefault", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, isActive: { serializedName: "isActive", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const OSVersionListResult: coreClient.CompositeMapper = { @@ -12233,19 +12296,19 @@ export const OSVersionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OSVersion" - } - } - } + className: "OSVersion", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OSFamily: coreClient.CompositeMapper = { @@ -12257,39 +12320,39 @@ export const OSFamily: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "OSFamilyProperties" - } - } - } - } + className: "OSFamilyProperties", + }, + }, + }, + }, }; export const OSFamilyProperties: coreClient.CompositeMapper = { @@ -12301,15 +12364,15 @@ export const OSFamilyProperties: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, label: { serializedName: "label", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, versions: { serializedName: "versions", @@ -12319,13 +12382,13 @@ export const OSFamilyProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OSVersionPropertiesBase" - } - } - } - } - } - } + className: "OSVersionPropertiesBase", + }, + }, + }, + }, + }, + }, }; export const OSVersionPropertiesBase: coreClient.CompositeMapper = { @@ -12337,32 +12400,32 @@ export const OSVersionPropertiesBase: coreClient.CompositeMapper = { serializedName: "version", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, label: { serializedName: "label", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isDefault: { serializedName: "isDefault", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, isActive: { serializedName: "isActive", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const OSFamilyListResult: coreClient.CompositeMapper = { @@ -12378,19 +12441,19 @@ export const OSFamilyListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OSFamily" - } - } - } + className: "OSFamily", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryArtifactSource: coreClient.CompositeMapper = { @@ -12402,11 +12465,11 @@ export const GalleryArtifactSource: coreClient.CompositeMapper = { serializedName: "managedImage", type: { name: "Composite", - className: "ManagedArtifact" - } - } - } - } + className: "ManagedArtifact", + }, + }, + }, + }, }; export const ManagedArtifact: coreClient.CompositeMapper = { @@ -12418,11 +12481,11 @@ export const ManagedArtifact: coreClient.CompositeMapper = { serializedName: "id", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LatestGalleryImageVersion: coreClient.CompositeMapper = { @@ -12433,17 +12496,17 @@ export const LatestGalleryImageVersion: coreClient.CompositeMapper = { latestVersionName: { serializedName: "latestVersionName", type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ImageReference: coreClient.CompositeMapper = { @@ -12455,48 +12518,48 @@ export const ImageReference: coreClient.CompositeMapper = { publisher: { serializedName: "publisher", type: { - name: "String" - } + name: "String", + }, }, offer: { serializedName: "offer", type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", type: { - name: "String" - } + name: "String", + }, }, exactVersion: { serializedName: "exactVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sharedGalleryImageId: { serializedName: "sharedGalleryImageId", type: { - name: "String" - } + name: "String", + }, }, communityGalleryImageId: { serializedName: "communityGalleryImageId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskEncryptionSetParameters: coreClient.CompositeMapper = { @@ -12504,9 +12567,9 @@ export const DiskEncryptionSetParameters: coreClient.CompositeMapper = { name: "Composite", className: "DiskEncryptionSetParameters", modelProperties: { - ...SubResource.type.modelProperties - } - } + ...SubResource.type.modelProperties, + }, + }, }; export const ManagedDiskParameters: coreClient.CompositeMapper = { @@ -12518,25 +12581,25 @@ export const ManagedDiskParameters: coreClient.CompositeMapper = { storageAccountType: { serializedName: "storageAccountType", type: { - name: "String" - } + name: "String", + }, }, diskEncryptionSet: { serializedName: "diskEncryptionSet", type: { name: "Composite", - className: "DiskEncryptionSetParameters" - } + className: "DiskEncryptionSetParameters", + }, }, securityProfile: { serializedName: "securityProfile", type: { name: "Composite", - className: "VMDiskSecurityProfile" - } - } - } - } + className: "VMDiskSecurityProfile", + }, + }, + }, + }, }; export const NetworkInterfaceReference: coreClient.CompositeMapper = { @@ -12548,17 +12611,17 @@ export const NetworkInterfaceReference: coreClient.CompositeMapper = { primary: { serializedName: "properties.primary", type: { - name: "Boolean" - } + name: "Boolean", + }, }, deleteOption: { serializedName: "properties.deleteOption", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineCaptureResult: coreClient.CompositeMapper = { @@ -12571,22 +12634,22 @@ export const VirtualMachineCaptureResult: coreClient.CompositeMapper = { serializedName: "$schema", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, contentVersion: { serializedName: "contentVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, parameters: { serializedName: "parameters", readOnly: true, type: { - name: "any" - } + name: "any", + }, }, resources: { serializedName: "resources", @@ -12595,13 +12658,13 @@ export const VirtualMachineCaptureResult: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "any" - } - } - } - } - } - } + name: "any", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineImageResource: coreClient.CompositeMapper = { @@ -12614,32 +12677,32 @@ export const VirtualMachineImageResource: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", required: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, extendedLocation: { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } - } - } - } + className: "ExtendedLocation", + }, + }, + }, + }, }; export const SubResourceWithColocationStatus: coreClient.CompositeMapper = { @@ -12652,11 +12715,11 @@ export const SubResourceWithColocationStatus: coreClient.CompositeMapper = { serializedName: "colocationStatus", type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, }; export const VirtualMachineScaleSetExtension: coreClient.CompositeMapper = { @@ -12668,70 +12731,70 @@ export const VirtualMachineScaleSetExtension: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, forceUpdateTag: { serializedName: "properties.forceUpdateTag", type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "properties.publisher", type: { - name: "String" - } + name: "String", + }, }, typePropertiesType: { serializedName: "properties.type", type: { - name: "String" - } + name: "String", + }, }, typeHandlerVersion: { serializedName: "properties.typeHandlerVersion", type: { - name: "String" - } + name: "String", + }, }, autoUpgradeMinorVersion: { serializedName: "properties.autoUpgradeMinorVersion", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableAutomaticUpgrade: { serializedName: "properties.enableAutomaticUpgrade", type: { - name: "Boolean" - } + name: "Boolean", + }, }, settings: { serializedName: "properties.settings", type: { - name: "any" - } + name: "any", + }, }, protectedSettings: { serializedName: "properties.protectedSettings", type: { - name: "any" - } + name: "any", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisionAfterExtensions: { serializedName: "properties.provisionAfterExtensions", @@ -12739,130 +12802,131 @@ export const VirtualMachineScaleSetExtension: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, suppressFailures: { serializedName: "properties.suppressFailures", type: { - name: "Boolean" - } + name: "Boolean", + }, }, protectedSettingsFromKeyVault: { serializedName: "properties.protectedSettingsFromKeyVault", type: { name: "Composite", - className: "KeyVaultSecretReference" - } - } - } - } -}; - -export const VirtualMachineScaleSetExtensionUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetExtensionUpdate", - modelProperties: { - ...SubResourceReadOnly.type.modelProperties, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", - type: { - name: "String" - } - }, - publisher: { - serializedName: "properties.publisher", - type: { - name: "String" - } - }, - typePropertiesType: { - serializedName: "properties.type", - type: { - name: "String" - } - }, - typeHandlerVersion: { - serializedName: "properties.typeHandlerVersion", - type: { - name: "String" - } - }, - autoUpgradeMinorVersion: { - serializedName: "properties.autoUpgradeMinorVersion", - type: { - name: "Boolean" - } - }, - enableAutomaticUpgrade: { - serializedName: "properties.enableAutomaticUpgrade", - type: { - name: "Boolean" - } - }, - settings: { - serializedName: "properties.settings", - type: { - name: "any" - } - }, - protectedSettings: { - serializedName: "properties.protectedSettings", - type: { - name: "any" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - provisionAfterExtensions: { - serializedName: "properties.provisionAfterExtensions", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + className: "KeyVaultSecretReference", + }, }, - suppressFailures: { - serializedName: "properties.suppressFailures", + }, + }, +}; + +export const VirtualMachineScaleSetExtensionUpdate: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetExtensionUpdate", + modelProperties: { + ...SubResourceReadOnly.type.modelProperties, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, type: { - name: "Boolean" - } + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", + type: { + name: "String", + }, + }, + publisher: { + serializedName: "properties.publisher", + type: { + name: "String", + }, + }, + typePropertiesType: { + serializedName: "properties.type", + type: { + name: "String", + }, + }, + typeHandlerVersion: { + serializedName: "properties.typeHandlerVersion", + type: { + name: "String", + }, + }, + autoUpgradeMinorVersion: { + serializedName: "properties.autoUpgradeMinorVersion", + type: { + name: "Boolean", + }, + }, + enableAutomaticUpgrade: { + serializedName: "properties.enableAutomaticUpgrade", + type: { + name: "Boolean", + }, + }, + settings: { + serializedName: "properties.settings", + type: { + name: "any", + }, + }, + protectedSettings: { + serializedName: "properties.protectedSettings", + type: { + name: "any", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + provisionAfterExtensions: { + serializedName: "properties.provisionAfterExtensions", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + suppressFailures: { + serializedName: "properties.suppressFailures", + type: { + name: "Boolean", + }, + }, + protectedSettingsFromKeyVault: { + serializedName: "properties.protectedSettingsFromKeyVault", + type: { + name: "Composite", + className: "KeyVaultSecretReference", + }, + }, }, - protectedSettingsFromKeyVault: { - serializedName: "properties.protectedSettingsFromKeyVault", - type: { - name: "Composite", - className: "KeyVaultSecretReference" - } - } - } - } -}; + }, + }; export const VirtualMachineScaleSetVMExtension: coreClient.CompositeMapper = { type: { @@ -12874,196 +12938,197 @@ export const VirtualMachineScaleSetVMExtension: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, forceUpdateTag: { serializedName: "properties.forceUpdateTag", type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "properties.publisher", type: { - name: "String" - } + name: "String", + }, }, typePropertiesType: { serializedName: "properties.type", type: { - name: "String" - } + name: "String", + }, }, typeHandlerVersion: { serializedName: "properties.typeHandlerVersion", type: { - name: "String" - } + name: "String", + }, }, autoUpgradeMinorVersion: { serializedName: "properties.autoUpgradeMinorVersion", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableAutomaticUpgrade: { serializedName: "properties.enableAutomaticUpgrade", type: { - name: "Boolean" - } + name: "Boolean", + }, }, settings: { serializedName: "properties.settings", type: { - name: "any" - } + name: "any", + }, }, protectedSettings: { serializedName: "properties.protectedSettings", type: { - name: "any" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - instanceView: { - serializedName: "properties.instanceView", - type: { - name: "Composite", - className: "VirtualMachineExtensionInstanceView" - } - }, - suppressFailures: { - serializedName: "properties.suppressFailures", - type: { - name: "Boolean" - } - }, - protectedSettingsFromKeyVault: { - serializedName: "properties.protectedSettingsFromKeyVault", - type: { - name: "Composite", - className: "KeyVaultSecretReference" - } - }, - provisionAfterExtensions: { - serializedName: "properties.provisionAfterExtensions", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetVMExtensionUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMExtensionUpdate", - modelProperties: { - ...SubResourceReadOnly.type.modelProperties, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", - type: { - name: "String" - } - }, - publisher: { - serializedName: "properties.publisher", - type: { - name: "String" - } - }, - typePropertiesType: { - serializedName: "properties.type", - type: { - name: "String" - } - }, - typeHandlerVersion: { - serializedName: "properties.typeHandlerVersion", - type: { - name: "String" - } - }, - autoUpgradeMinorVersion: { - serializedName: "properties.autoUpgradeMinorVersion", - type: { - name: "Boolean" - } - }, - enableAutomaticUpgrade: { - serializedName: "properties.enableAutomaticUpgrade", - type: { - name: "Boolean" - } + name: "any", + }, }, - settings: { - serializedName: "properties.settings", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "any" - } + name: "String", + }, }, - protectedSettings: { - serializedName: "properties.protectedSettings", + instanceView: { + serializedName: "properties.instanceView", type: { - name: "any" - } + name: "Composite", + className: "VirtualMachineExtensionInstanceView", + }, }, suppressFailures: { serializedName: "properties.suppressFailures", type: { - name: "Boolean" - } + name: "Boolean", + }, }, protectedSettingsFromKeyVault: { serializedName: "properties.protectedSettingsFromKeyVault", type: { name: "Composite", - className: "KeyVaultSecretReference" - } - } - } - } -}; + className: "KeyVaultSecretReference", + }, + }, + provisionAfterExtensions: { + serializedName: "properties.provisionAfterExtensions", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const VirtualMachineScaleSetVMExtensionUpdate: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMExtensionUpdate", + modelProperties: { + ...SubResourceReadOnly.type.modelProperties, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", + type: { + name: "String", + }, + }, + publisher: { + serializedName: "properties.publisher", + type: { + name: "String", + }, + }, + typePropertiesType: { + serializedName: "properties.type", + type: { + name: "String", + }, + }, + typeHandlerVersion: { + serializedName: "properties.typeHandlerVersion", + type: { + name: "String", + }, + }, + autoUpgradeMinorVersion: { + serializedName: "properties.autoUpgradeMinorVersion", + type: { + name: "Boolean", + }, + }, + enableAutomaticUpgrade: { + serializedName: "properties.enableAutomaticUpgrade", + type: { + name: "Boolean", + }, + }, + settings: { + serializedName: "properties.settings", + type: { + name: "any", + }, + }, + protectedSettings: { + serializedName: "properties.protectedSettings", + type: { + name: "any", + }, + }, + suppressFailures: { + serializedName: "properties.suppressFailures", + type: { + name: "Boolean", + }, + }, + protectedSettingsFromKeyVault: { + serializedName: "properties.protectedSettingsFromKeyVault", + type: { + name: "Composite", + className: "KeyVaultSecretReference", + }, + }, + }, + }, + }; export const DiskRestorePointAttributes: coreClient.CompositeMapper = { type: { @@ -13075,18 +13140,18 @@ export const DiskRestorePointAttributes: coreClient.CompositeMapper = { serializedName: "encryption", type: { name: "Composite", - className: "RestorePointEncryption" - } + className: "RestorePointEncryption", + }, }, sourceDiskRestorePoint: { serializedName: "sourceDiskRestorePoint", type: { name: "Composite", - className: "ApiEntityReference" - } - } - } - } + className: "ApiEntityReference", + }, + }, + }, + }, }; export const VirtualMachineExtension: coreClient.CompositeMapper = { @@ -13098,77 +13163,77 @@ export const VirtualMachineExtension: coreClient.CompositeMapper = { forceUpdateTag: { serializedName: "properties.forceUpdateTag", type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "properties.publisher", type: { - name: "String" - } + name: "String", + }, }, typePropertiesType: { serializedName: "properties.type", type: { - name: "String" - } + name: "String", + }, }, typeHandlerVersion: { serializedName: "properties.typeHandlerVersion", type: { - name: "String" - } + name: "String", + }, }, autoUpgradeMinorVersion: { serializedName: "properties.autoUpgradeMinorVersion", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableAutomaticUpgrade: { serializedName: "properties.enableAutomaticUpgrade", type: { - name: "Boolean" - } + name: "Boolean", + }, }, settings: { serializedName: "properties.settings", type: { - name: "any" - } + name: "any", + }, }, protectedSettings: { serializedName: "properties.protectedSettings", type: { - name: "any" - } + name: "any", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineExtensionInstanceView" - } + className: "VirtualMachineExtensionInstanceView", + }, }, suppressFailures: { serializedName: "properties.suppressFailures", type: { - name: "Boolean" - } + name: "Boolean", + }, }, protectedSettingsFromKeyVault: { serializedName: "properties.protectedSettingsFromKeyVault", type: { name: "Composite", - className: "KeyVaultSecretReference" - } + className: "KeyVaultSecretReference", + }, }, provisionAfterExtensions: { serializedName: "properties.provisionAfterExtensions", @@ -13176,13 +13241,13 @@ export const VirtualMachineExtension: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineScaleSet: coreClient.CompositeMapper = { @@ -13195,22 +13260,22 @@ export const VirtualMachineScaleSet: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, plan: { serializedName: "plan", type: { name: "Composite", - className: "Plan" - } + className: "Plan", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "VirtualMachineScaleSetIdentity" - } + className: "VirtualMachineScaleSetIdentity", + }, }, zones: { serializedName: "zones", @@ -13218,160 +13283,160 @@ export const VirtualMachineScaleSet: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, extendedLocation: { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, etag: { serializedName: "etag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, upgradePolicy: { serializedName: "properties.upgradePolicy", type: { name: "Composite", - className: "UpgradePolicy" - } + className: "UpgradePolicy", + }, }, automaticRepairsPolicy: { serializedName: "properties.automaticRepairsPolicy", type: { name: "Composite", - className: "AutomaticRepairsPolicy" - } + className: "AutomaticRepairsPolicy", + }, }, virtualMachineProfile: { serializedName: "properties.virtualMachineProfile", type: { name: "Composite", - className: "VirtualMachineScaleSetVMProfile" - } + className: "VirtualMachineScaleSetVMProfile", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, overprovision: { serializedName: "properties.overprovision", type: { - name: "Boolean" - } + name: "Boolean", + }, }, doNotRunExtensionsOnOverprovisionedVMs: { serializedName: "properties.doNotRunExtensionsOnOverprovisionedVMs", type: { - name: "Boolean" - } + name: "Boolean", + }, }, uniqueId: { serializedName: "properties.uniqueId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, singlePlacementGroup: { serializedName: "properties.singlePlacementGroup", type: { - name: "Boolean" - } + name: "Boolean", + }, }, zoneBalance: { serializedName: "properties.zoneBalance", type: { - name: "Boolean" - } + name: "Boolean", + }, }, platformFaultDomainCount: { serializedName: "properties.platformFaultDomainCount", type: { - name: "Number" - } + name: "Number", + }, }, proximityPlacementGroup: { serializedName: "properties.proximityPlacementGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, hostGroup: { serializedName: "properties.hostGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, additionalCapabilities: { serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "AdditionalCapabilities" - } + className: "AdditionalCapabilities", + }, }, scaleInPolicy: { serializedName: "properties.scaleInPolicy", type: { name: "Composite", - className: "ScaleInPolicy" - } + className: "ScaleInPolicy", + }, }, orchestrationMode: { serializedName: "properties.orchestrationMode", type: { - name: "String" - } + name: "String", + }, }, spotRestorePolicy: { serializedName: "properties.spotRestorePolicy", type: { name: "Composite", - className: "SpotRestorePolicy" - } + className: "SpotRestorePolicy", + }, }, priorityMixPolicy: { serializedName: "properties.priorityMixPolicy", type: { name: "Composite", - className: "PriorityMixPolicy" - } + className: "PriorityMixPolicy", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, constrainedMaximumCapacity: { serializedName: "properties.constrainedMaximumCapacity", type: { - name: "Boolean" - } + name: "Boolean", + }, }, resiliencyPolicy: { serializedName: "properties.resiliencyPolicy", type: { name: "Composite", - className: "ResiliencyPolicy" - } - } - } - } + className: "ResiliencyPolicy", + }, + }, + }, + }, }; export const RollingUpgradeStatusInfo: coreClient.CompositeMapper = { @@ -13384,32 +13449,32 @@ export const RollingUpgradeStatusInfo: coreClient.CompositeMapper = { serializedName: "properties.policy", type: { name: "Composite", - className: "RollingUpgradePolicy" - } + className: "RollingUpgradePolicy", + }, }, runningStatus: { serializedName: "properties.runningStatus", type: { name: "Composite", - className: "RollingUpgradeRunningStatus" - } + className: "RollingUpgradeRunningStatus", + }, }, progress: { serializedName: "properties.progress", type: { name: "Composite", - className: "RollingUpgradeProgressInfo" - } + className: "RollingUpgradeProgressInfo", + }, }, error: { serializedName: "properties.error", type: { name: "Composite", - className: "ApiError" - } - } - } - } + className: "ApiError", + }, + }, + }, + }, }; export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { @@ -13422,22 +13487,22 @@ export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { serializedName: "instanceId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, plan: { serializedName: "plan", type: { name: "Composite", - className: "Plan" - } + className: "Plan", + }, }, resources: { serializedName: "resources", @@ -13447,10 +13512,10 @@ export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineExtension" - } - } - } + className: "VirtualMachineExtension", + }, + }, + }, }, zones: { serializedName: "zones", @@ -13459,151 +13524,151 @@ export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "VirtualMachineIdentity" - } + className: "VirtualMachineIdentity", + }, }, etag: { serializedName: "etag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, latestModelApplied: { serializedName: "properties.latestModelApplied", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, vmId: { serializedName: "properties.vmId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineScaleSetVMInstanceView" - } + className: "VirtualMachineScaleSetVMInstanceView", + }, }, hardwareProfile: { serializedName: "properties.hardwareProfile", type: { name: "Composite", - className: "HardwareProfile" - } + className: "HardwareProfile", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "StorageProfile" - } + className: "StorageProfile", + }, }, additionalCapabilities: { serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "AdditionalCapabilities" - } + className: "AdditionalCapabilities", + }, }, osProfile: { serializedName: "properties.osProfile", type: { name: "Composite", - className: "OSProfile" - } + className: "OSProfile", + }, }, securityProfile: { serializedName: "properties.securityProfile", type: { name: "Composite", - className: "SecurityProfile" - } + className: "SecurityProfile", + }, }, networkProfile: { serializedName: "properties.networkProfile", type: { name: "Composite", - className: "NetworkProfile" - } + className: "NetworkProfile", + }, }, networkProfileConfiguration: { serializedName: "properties.networkProfileConfiguration", type: { name: "Composite", - className: "VirtualMachineScaleSetVMNetworkProfileConfiguration" - } + className: "VirtualMachineScaleSetVMNetworkProfileConfiguration", + }, }, diagnosticsProfile: { serializedName: "properties.diagnosticsProfile", type: { name: "Composite", - className: "DiagnosticsProfile" - } + className: "DiagnosticsProfile", + }, }, availabilitySet: { serializedName: "properties.availabilitySet", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, licenseType: { serializedName: "properties.licenseType", type: { - name: "String" - } + name: "String", + }, }, modelDefinitionApplied: { serializedName: "properties.modelDefinitionApplied", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, protectionPolicy: { serializedName: "properties.protectionPolicy", type: { name: "Composite", - className: "VirtualMachineScaleSetVMProtectionPolicy" - } + className: "VirtualMachineScaleSetVMProtectionPolicy", + }, }, userData: { serializedName: "properties.userData", type: { - name: "String" - } + name: "String", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const VirtualMachine: coreClient.CompositeMapper = { @@ -13616,8 +13681,8 @@ export const VirtualMachine: coreClient.CompositeMapper = { serializedName: "plan", type: { name: "Composite", - className: "Plan" - } + className: "Plan", + }, }, resources: { serializedName: "resources", @@ -13627,17 +13692,17 @@ export const VirtualMachine: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineExtension" - } - } - } + className: "VirtualMachineExtension", + }, + }, + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "VirtualMachineIdentity" - } + className: "VirtualMachineIdentity", + }, }, zones: { serializedName: "zones", @@ -13645,210 +13710,210 @@ export const VirtualMachine: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, extendedLocation: { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, managedBy: { serializedName: "managedBy", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, etag: { serializedName: "etag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hardwareProfile: { serializedName: "properties.hardwareProfile", type: { name: "Composite", - className: "HardwareProfile" - } + className: "HardwareProfile", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "StorageProfile" - } + className: "StorageProfile", + }, }, additionalCapabilities: { serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "AdditionalCapabilities" - } + className: "AdditionalCapabilities", + }, }, osProfile: { serializedName: "properties.osProfile", type: { name: "Composite", - className: "OSProfile" - } + className: "OSProfile", + }, }, networkProfile: { serializedName: "properties.networkProfile", type: { name: "Composite", - className: "NetworkProfile" - } + className: "NetworkProfile", + }, }, securityProfile: { serializedName: "properties.securityProfile", type: { name: "Composite", - className: "SecurityProfile" - } + className: "SecurityProfile", + }, }, diagnosticsProfile: { serializedName: "properties.diagnosticsProfile", type: { name: "Composite", - className: "DiagnosticsProfile" - } + className: "DiagnosticsProfile", + }, }, availabilitySet: { serializedName: "properties.availabilitySet", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, virtualMachineScaleSet: { serializedName: "properties.virtualMachineScaleSet", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, proximityPlacementGroup: { serializedName: "properties.proximityPlacementGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, priority: { serializedName: "properties.priority", type: { - name: "String" - } + name: "String", + }, }, evictionPolicy: { serializedName: "properties.evictionPolicy", type: { - name: "String" - } + name: "String", + }, }, billingProfile: { serializedName: "properties.billingProfile", type: { name: "Composite", - className: "BillingProfile" - } + className: "BillingProfile", + }, }, host: { serializedName: "properties.host", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, hostGroup: { serializedName: "properties.hostGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineInstanceView" - } + className: "VirtualMachineInstanceView", + }, }, licenseType: { serializedName: "properties.licenseType", type: { - name: "String" - } + name: "String", + }, }, vmId: { serializedName: "properties.vmId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, extensionsTimeBudget: { serializedName: "properties.extensionsTimeBudget", type: { - name: "String" - } + name: "String", + }, }, platformFaultDomain: { serializedName: "properties.platformFaultDomain", type: { - name: "Number" - } + name: "Number", + }, }, scheduledEventsProfile: { serializedName: "properties.scheduledEventsProfile", type: { name: "Composite", - className: "ScheduledEventsProfile" - } + className: "ScheduledEventsProfile", + }, }, userData: { serializedName: "properties.userData", type: { - name: "String" - } + name: "String", + }, }, capacityReservation: { serializedName: "properties.capacityReservation", type: { name: "Composite", - className: "CapacityReservationProfile" - } + className: "CapacityReservationProfile", + }, }, applicationProfile: { serializedName: "properties.applicationProfile", type: { name: "Composite", - className: "ApplicationProfile" - } + className: "ApplicationProfile", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const VirtualMachineExtensionImage: coreClient.CompositeMapper = { @@ -13860,35 +13925,35 @@ export const VirtualMachineExtensionImage: coreClient.CompositeMapper = { operatingSystem: { serializedName: "properties.operatingSystem", type: { - name: "String" - } + name: "String", + }, }, computeRole: { serializedName: "properties.computeRole", type: { - name: "String" - } + name: "String", + }, }, handlerSchema: { serializedName: "properties.handlerSchema", type: { - name: "String" - } + name: "String", + }, }, vmScaleSetEnabled: { serializedName: "properties.vmScaleSetEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, supportsMultipleExtensions: { serializedName: "properties.supportsMultipleExtensions", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const AvailabilitySet: coreClient.CompositeMapper = { @@ -13901,20 +13966,20 @@ export const AvailabilitySet: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, platformUpdateDomainCount: { serializedName: "properties.platformUpdateDomainCount", type: { - name: "Number" - } + name: "Number", + }, }, platformFaultDomainCount: { serializedName: "properties.platformFaultDomainCount", type: { - name: "Number" - } + name: "Number", + }, }, virtualMachines: { serializedName: "properties.virtualMachines", @@ -13923,17 +13988,17 @@ export const AvailabilitySet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResource" - } - } - } + className: "SubResource", + }, + }, + }, }, proximityPlacementGroup: { serializedName: "properties.proximityPlacementGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, statuses: { serializedName: "properties.statuses", @@ -13943,13 +14008,13 @@ export const AvailabilitySet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const ProximityPlacementGroup: coreClient.CompositeMapper = { @@ -13964,16 +14029,16 @@ export const ProximityPlacementGroup: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, proximityPlacementGroupType: { serializedName: "properties.proximityPlacementGroupType", type: { - name: "String" - } + name: "String", + }, }, virtualMachines: { serializedName: "properties.virtualMachines", @@ -13983,10 +14048,10 @@ export const ProximityPlacementGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceWithColocationStatus" - } - } - } + className: "SubResourceWithColocationStatus", + }, + }, + }, }, virtualMachineScaleSets: { serializedName: "properties.virtualMachineScaleSets", @@ -13996,10 +14061,10 @@ export const ProximityPlacementGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceWithColocationStatus" - } - } - } + className: "SubResourceWithColocationStatus", + }, + }, + }, }, availabilitySets: { serializedName: "properties.availabilitySets", @@ -14009,27 +14074,27 @@ export const ProximityPlacementGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceWithColocationStatus" - } - } - } + className: "SubResourceWithColocationStatus", + }, + }, + }, }, colocationStatus: { serializedName: "properties.colocationStatus", type: { name: "Composite", - className: "InstanceViewStatus" - } + className: "InstanceViewStatus", + }, }, intent: { serializedName: "properties.intent", type: { name: "Composite", - className: "ProximityPlacementGroupPropertiesIntent" - } - } - } - } + className: "ProximityPlacementGroupPropertiesIntent", + }, + }, + }, + }, }; export const DedicatedHostGroup: coreClient.CompositeMapper = { @@ -14044,19 +14109,19 @@ export const DedicatedHostGroup: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, platformFaultDomainCount: { constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.platformFaultDomainCount", type: { - name: "Number" - } + name: "Number", + }, }, hosts: { serializedName: "properties.hosts", @@ -14066,33 +14131,33 @@ export const DedicatedHostGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "DedicatedHostGroupInstanceView" - } + className: "DedicatedHostGroupInstanceView", + }, }, supportAutomaticPlacement: { serializedName: "properties.supportAutomaticPlacement", type: { - name: "Boolean" - } + name: "Boolean", + }, }, additionalCapabilities: { serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "DedicatedHostGroupPropertiesAdditionalCapabilities" - } - } - } - } + className: "DedicatedHostGroupPropertiesAdditionalCapabilities", + }, + }, + }, + }, }; export const DedicatedHost: coreClient.CompositeMapper = { @@ -14105,30 +14170,30 @@ export const DedicatedHost: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, platformFaultDomain: { constraints: { - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "properties.platformFaultDomain", type: { - name: "Number" - } + name: "Number", + }, }, autoReplaceOnFailure: { serializedName: "properties.autoReplaceOnFailure", type: { - name: "Boolean" - } + name: "Boolean", + }, }, hostId: { serializedName: "properties.hostId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, virtualMachines: { serializedName: "properties.virtualMachines", @@ -14138,10 +14203,10 @@ export const DedicatedHost: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, licenseType: { serializedName: "properties.licenseType", @@ -14150,40 +14215,40 @@ export const DedicatedHost: coreClient.CompositeMapper = { allowedValues: [ "None", "Windows_Server_Hybrid", - "Windows_Server_Perpetual" - ] - } + "Windows_Server_Perpetual", + ], + }, }, provisioningTime: { serializedName: "properties.provisioningTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "DedicatedHostInstanceView" - } + className: "DedicatedHostInstanceView", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const SshPublicKeyResource: coreClient.CompositeMapper = { @@ -14195,11 +14260,11 @@ export const SshPublicKeyResource: coreClient.CompositeMapper = { publicKey: { serializedName: "properties.publicKey", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Image: coreClient.CompositeMapper = { @@ -14212,38 +14277,38 @@ export const Image: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, sourceVirtualMachine: { serializedName: "properties.sourceVirtualMachine", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "ImageStorageProfile" - } + className: "ImageStorageProfile", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RestorePointCollection: coreClient.CompositeMapper = { @@ -14256,22 +14321,22 @@ export const RestorePointCollection: coreClient.CompositeMapper = { serializedName: "properties.source", type: { name: "Composite", - className: "RestorePointCollectionSourceProperties" - } + className: "RestorePointCollectionSourceProperties", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, restorePointCollectionId: { serializedName: "properties.restorePointCollectionId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, restorePoints: { serializedName: "properties.restorePoints", @@ -14281,13 +14346,13 @@ export const RestorePointCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RestorePoint" - } - } - } - } - } - } + className: "RestorePoint", + }, + }, + }, + }, + }, + }, }; export const CapacityReservationGroup: coreClient.CompositeMapper = { @@ -14302,10 +14367,10 @@ export const CapacityReservationGroup: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, capacityReservations: { serializedName: "properties.capacityReservations", @@ -14315,10 +14380,10 @@ export const CapacityReservationGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, virtualMachinesAssociated: { serializedName: "properties.virtualMachinesAssociated", @@ -14328,27 +14393,27 @@ export const CapacityReservationGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "CapacityReservationGroupInstanceView" - } + className: "CapacityReservationGroupInstanceView", + }, }, sharingProfile: { serializedName: "properties.sharingProfile", type: { name: "Composite", - className: "ResourceSharingProfile" - } - } - } - } + className: "ResourceSharingProfile", + }, + }, + }, + }, }; export const CapacityReservation: coreClient.CompositeMapper = { @@ -14361,8 +14426,8 @@ export const CapacityReservation: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, zones: { serializedName: "zones", @@ -14370,24 +14435,24 @@ export const CapacityReservation: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, reservationId: { serializedName: "properties.reservationId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, platformFaultDomainCount: { serializedName: "properties.platformFaultDomainCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, virtualMachinesAssociated: { serializedName: "properties.virtualMachinesAssociated", @@ -14397,41 +14462,41 @@ export const CapacityReservation: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, provisioningTime: { serializedName: "properties.provisioningTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "CapacityReservationInstanceView" - } + className: "CapacityReservationInstanceView", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const VirtualMachineRunCommand: coreClient.CompositeMapper = { @@ -14444,8 +14509,8 @@ export const VirtualMachineRunCommand: coreClient.CompositeMapper = { serializedName: "properties.source", type: { name: "Composite", - className: "VirtualMachineRunCommandScriptSource" - } + className: "VirtualMachineRunCommandScriptSource", + }, }, parameters: { serializedName: "properties.parameters", @@ -14454,10 +14519,10 @@ export const VirtualMachineRunCommand: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandInputParameter" - } - } - } + className: "RunCommandInputParameter", + }, + }, + }, }, protectedParameters: { serializedName: "properties.protectedParameters", @@ -14466,85 +14531,85 @@ export const VirtualMachineRunCommand: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandInputParameter" - } - } - } + className: "RunCommandInputParameter", + }, + }, + }, }, asyncExecution: { defaultValue: false, serializedName: "properties.asyncExecution", type: { - name: "Boolean" - } + name: "Boolean", + }, }, runAsUser: { serializedName: "properties.runAsUser", type: { - name: "String" - } + name: "String", + }, }, runAsPassword: { serializedName: "properties.runAsPassword", type: { - name: "String" - } + name: "String", + }, }, timeoutInSeconds: { serializedName: "properties.timeoutInSeconds", type: { - name: "Number" - } + name: "Number", + }, }, outputBlobUri: { serializedName: "properties.outputBlobUri", type: { - name: "String" - } + name: "String", + }, }, errorBlobUri: { serializedName: "properties.errorBlobUri", type: { - name: "String" - } + name: "String", + }, }, outputBlobManagedIdentity: { serializedName: "properties.outputBlobManagedIdentity", type: { name: "Composite", - className: "RunCommandManagedIdentity" - } + className: "RunCommandManagedIdentity", + }, }, errorBlobManagedIdentity: { serializedName: "properties.errorBlobManagedIdentity", type: { name: "Composite", - className: "RunCommandManagedIdentity" - } + className: "RunCommandManagedIdentity", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineRunCommandInstanceView" - } + className: "VirtualMachineRunCommandInstanceView", + }, }, treatFailureAsDeploymentFailure: { defaultValue: false, serializedName: "properties.treatFailureAsDeploymentFailure", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const Disk: coreClient.CompositeMapper = { @@ -14557,8 +14622,8 @@ export const Disk: coreClient.CompositeMapper = { serializedName: "managedBy", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, managedByExtended: { serializedName: "managedByExtended", @@ -14567,17 +14632,17 @@ export const Disk: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "DiskSku" - } + className: "DiskSku", + }, }, zones: { serializedName: "zones", @@ -14585,136 +14650,136 @@ export const Disk: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, extendedLocation: { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, osType: { serializedName: "properties.osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, purchasePlan: { serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "PurchasePlanAutoGenerated" - } + className: "PurchasePlanAutoGenerated", + }, }, supportedCapabilities: { serializedName: "properties.supportedCapabilities", type: { name: "Composite", - className: "SupportedCapabilities" - } + className: "SupportedCapabilities", + }, }, creationData: { serializedName: "properties.creationData", type: { name: "Composite", - className: "CreationData" - } + className: "CreationData", + }, }, diskSizeGB: { serializedName: "properties.diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, diskSizeBytes: { serializedName: "properties.diskSizeBytes", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, uniqueId: { serializedName: "properties.uniqueId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, encryptionSettingsCollection: { serializedName: "properties.encryptionSettingsCollection", type: { name: "Composite", - className: "EncryptionSettingsCollection" - } + className: "EncryptionSettingsCollection", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, diskIopsReadWrite: { serializedName: "properties.diskIOPSReadWrite", type: { - name: "Number" - } + name: "Number", + }, }, diskMBpsReadWrite: { serializedName: "properties.diskMBpsReadWrite", type: { - name: "Number" - } + name: "Number", + }, }, diskIopsReadOnly: { serializedName: "properties.diskIOPSReadOnly", type: { - name: "Number" - } + name: "Number", + }, }, diskMBpsReadOnly: { serializedName: "properties.diskMBpsReadOnly", type: { - name: "Number" - } + name: "Number", + }, }, diskState: { serializedName: "properties.diskState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "Encryption" - } + className: "Encryption", + }, }, maxShares: { serializedName: "properties.maxShares", type: { - name: "Number" - } + name: "Number", + }, }, shareInfo: { serializedName: "properties.shareInfo", @@ -14724,95 +14789,95 @@ export const Disk: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ShareInfoElement" - } - } - } + className: "ShareInfoElement", + }, + }, + }, }, networkAccessPolicy: { serializedName: "properties.networkAccessPolicy", type: { - name: "String" - } + name: "String", + }, }, diskAccessId: { serializedName: "properties.diskAccessId", type: { - name: "String" - } + name: "String", + }, }, burstingEnabledTime: { serializedName: "properties.burstingEnabledTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, tier: { serializedName: "properties.tier", type: { - name: "String" - } + name: "String", + }, }, burstingEnabled: { serializedName: "properties.burstingEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, propertyUpdatesInProgress: { serializedName: "properties.propertyUpdatesInProgress", type: { name: "Composite", - className: "PropertyUpdatesInProgress" - } + className: "PropertyUpdatesInProgress", + }, }, supportsHibernation: { serializedName: "properties.supportsHibernation", type: { - name: "Boolean" - } + name: "Boolean", + }, }, securityProfile: { serializedName: "properties.securityProfile", type: { name: "Composite", - className: "DiskSecurityProfile" - } + className: "DiskSecurityProfile", + }, }, completionPercent: { serializedName: "properties.completionPercent", type: { - name: "Number" - } + name: "Number", + }, }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, dataAccessAuthMode: { serializedName: "properties.dataAccessAuthMode", type: { - name: "String" - } + name: "String", + }, }, optimizedForFrequentAttach: { serializedName: "properties.optimizedForFrequentAttach", type: { - name: "Boolean" - } + name: "Boolean", + }, }, lastOwnershipUpdateTime: { serializedName: "properties.LastOwnershipUpdateTime", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const DiskAccess: coreClient.CompositeMapper = { @@ -14825,8 +14890,8 @@ export const DiskAccess: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, privateEndpointConnections: { serializedName: "properties.privateEndpointConnections", @@ -14836,27 +14901,27 @@ export const DiskAccess: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const DiskEncryptionSet: coreClient.CompositeMapper = { @@ -14869,21 +14934,21 @@ export const DiskEncryptionSet: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "EncryptionSetIdentity" - } + className: "EncryptionSetIdentity", + }, }, encryptionType: { serializedName: "properties.encryptionType", type: { - name: "String" - } + name: "String", + }, }, activeKey: { serializedName: "properties.activeKey", type: { name: "Composite", - className: "KeyForDiskEncryptionSet" - } + className: "KeyForDiskEncryptionSet", + }, }, previousKeys: { serializedName: "properties.previousKeys", @@ -14893,46 +14958,46 @@ export const DiskEncryptionSet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KeyForDiskEncryptionSet" - } - } - } + className: "KeyForDiskEncryptionSet", + }, + }, + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rotationToLatestKeyVersionEnabled: { serializedName: "properties.rotationToLatestKeyVersionEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, lastKeyRotationTimestamp: { serializedName: "properties.lastKeyRotationTimestamp", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, autoKeyRotationError: { serializedName: "properties.autoKeyRotationError", type: { name: "Composite", - className: "ApiError" - } + className: "ApiError", + }, }, federatedClientId: { serializedName: "properties.federatedClientId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Snapshot: coreClient.CompositeMapper = { @@ -14945,177 +15010,177 @@ export const Snapshot: coreClient.CompositeMapper = { serializedName: "managedBy", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "SnapshotSku" - } + className: "SnapshotSku", + }, }, extendedLocation: { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, osType: { serializedName: "properties.osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, purchasePlan: { serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "PurchasePlanAutoGenerated" - } + className: "PurchasePlanAutoGenerated", + }, }, supportedCapabilities: { serializedName: "properties.supportedCapabilities", type: { name: "Composite", - className: "SupportedCapabilities" - } + className: "SupportedCapabilities", + }, }, creationData: { serializedName: "properties.creationData", type: { name: "Composite", - className: "CreationData" - } + className: "CreationData", + }, }, diskSizeGB: { serializedName: "properties.diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, diskSizeBytes: { serializedName: "properties.diskSizeBytes", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, diskState: { serializedName: "properties.diskState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, uniqueId: { serializedName: "properties.uniqueId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, encryptionSettingsCollection: { serializedName: "properties.encryptionSettingsCollection", type: { name: "Composite", - className: "EncryptionSettingsCollection" - } + className: "EncryptionSettingsCollection", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, incremental: { serializedName: "properties.incremental", type: { - name: "Boolean" - } + name: "Boolean", + }, }, incrementalSnapshotFamilyId: { serializedName: "properties.incrementalSnapshotFamilyId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "Encryption" - } + className: "Encryption", + }, }, networkAccessPolicy: { serializedName: "properties.networkAccessPolicy", type: { - name: "String" - } + name: "String", + }, }, diskAccessId: { serializedName: "properties.diskAccessId", type: { - name: "String" - } + name: "String", + }, }, securityProfile: { serializedName: "properties.securityProfile", type: { name: "Composite", - className: "DiskSecurityProfile" - } + className: "DiskSecurityProfile", + }, }, supportsHibernation: { serializedName: "properties.supportsHibernation", type: { - name: "Boolean" - } + name: "Boolean", + }, }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, completionPercent: { serializedName: "properties.completionPercent", type: { - name: "Number" - } + name: "Number", + }, }, copyCompletionError: { serializedName: "properties.copyCompletionError", type: { name: "Composite", - className: "CopyCompletionError" - } + className: "CopyCompletionError", + }, }, dataAccessAuthMode: { serializedName: "properties.dataAccessAuthMode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Gallery: coreClient.CompositeMapper = { @@ -15127,46 +15192,46 @@ export const Gallery: coreClient.CompositeMapper = { description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, identifier: { serializedName: "properties.identifier", type: { name: "Composite", - className: "GalleryIdentifier" - } + className: "GalleryIdentifier", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sharingProfile: { serializedName: "properties.sharingProfile", type: { name: "Composite", - className: "SharingProfile" - } + className: "SharingProfile", + }, }, softDeletePolicy: { serializedName: "properties.softDeletePolicy", type: { name: "Composite", - className: "SoftDeletePolicy" - } + className: "SoftDeletePolicy", + }, }, sharingStatus: { serializedName: "properties.sharingStatus", type: { name: "Composite", - className: "SharingStatus" - } - } - } - } + className: "SharingStatus", + }, + }, + }, + }, }; export const GalleryImage: coreClient.CompositeMapper = { @@ -15178,87 +15243,87 @@ export const GalleryImage: coreClient.CompositeMapper = { description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, eula: { serializedName: "properties.eula", type: { - name: "String" - } + name: "String", + }, }, privacyStatementUri: { serializedName: "properties.privacyStatementUri", type: { - name: "String" - } + name: "String", + }, }, releaseNoteUri: { serializedName: "properties.releaseNoteUri", type: { - name: "String" - } + name: "String", + }, }, osType: { serializedName: "properties.osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, osState: { serializedName: "properties.osState", type: { name: "Enum", - allowedValues: ["Generalized", "Specialized"] - } + allowedValues: ["Generalized", "Specialized"], + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, identifier: { serializedName: "properties.identifier", type: { name: "Composite", - className: "GalleryImageIdentifier" - } + className: "GalleryImageIdentifier", + }, }, recommended: { serializedName: "properties.recommended", type: { name: "Composite", - className: "RecommendedMachineConfiguration" - } + className: "RecommendedMachineConfiguration", + }, }, disallowed: { serializedName: "properties.disallowed", type: { name: "Composite", - className: "Disallowed" - } + className: "Disallowed", + }, }, purchasePlan: { serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "ImagePurchasePlan" - } + className: "ImagePurchasePlan", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, features: { serializedName: "properties.features", @@ -15267,19 +15332,19 @@ export const GalleryImage: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryImageFeature" - } - } - } + className: "GalleryImageFeature", + }, + }, + }, }, architecture: { serializedName: "properties.architecture", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryImageVersion: coreClient.CompositeMapper = { @@ -15292,46 +15357,46 @@ export const GalleryImageVersion: coreClient.CompositeMapper = { serializedName: "properties.publishingProfile", type: { name: "Composite", - className: "GalleryImageVersionPublishingProfile" - } + className: "GalleryImageVersionPublishingProfile", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "GalleryImageVersionStorageProfile" - } + className: "GalleryImageVersionStorageProfile", + }, }, safetyProfile: { serializedName: "properties.safetyProfile", type: { name: "Composite", - className: "GalleryImageVersionSafetyProfile" - } + className: "GalleryImageVersionSafetyProfile", + }, }, replicationStatus: { serializedName: "properties.replicationStatus", type: { name: "Composite", - className: "ReplicationStatus" - } + className: "ReplicationStatus", + }, }, securityProfile: { serializedName: "properties.securityProfile", type: { name: "Composite", - className: "ImageVersionSecurityProfile" - } - } - } - } + className: "ImageVersionSecurityProfile", + }, + }, + }, + }, }; export const GalleryApplication: coreClient.CompositeMapper = { @@ -15343,39 +15408,39 @@ export const GalleryApplication: coreClient.CompositeMapper = { description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, eula: { serializedName: "properties.eula", type: { - name: "String" - } + name: "String", + }, }, privacyStatementUri: { serializedName: "properties.privacyStatementUri", type: { - name: "String" - } + name: "String", + }, }, releaseNoteUri: { serializedName: "properties.releaseNoteUri", type: { - name: "String" - } + name: "String", + }, }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, supportedOSType: { serializedName: "properties.supportedOSType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, customActions: { serializedName: "properties.customActions", @@ -15384,13 +15449,13 @@ export const GalleryApplication: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryApplicationCustomAction" - } - } - } - } - } - } + className: "GalleryApplicationCustomAction", + }, + }, + }, + }, + }, + }, }; export const GalleryApplicationVersion: coreClient.CompositeMapper = { @@ -15403,32 +15468,32 @@ export const GalleryApplicationVersion: coreClient.CompositeMapper = { serializedName: "properties.publishingProfile", type: { name: "Composite", - className: "GalleryApplicationVersionPublishingProfile" - } + className: "GalleryApplicationVersionPublishingProfile", + }, }, safetyProfile: { serializedName: "properties.safetyProfile", type: { name: "Composite", - className: "GalleryApplicationVersionSafetyProfile" - } + className: "GalleryApplicationVersionSafetyProfile", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, replicationStatus: { serializedName: "properties.replicationStatus", type: { name: "Composite", - className: "ReplicationStatus" - } - } - } - } + className: "ReplicationStatus", + }, + }, + }, + }, }; export const VirtualMachineScaleSetUpdate: coreClient.CompositeMapper = { @@ -15441,106 +15506,106 @@ export const VirtualMachineScaleSetUpdate: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, plan: { serializedName: "plan", type: { name: "Composite", - className: "Plan" - } + className: "Plan", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "VirtualMachineScaleSetIdentity" - } + className: "VirtualMachineScaleSetIdentity", + }, }, upgradePolicy: { serializedName: "properties.upgradePolicy", type: { name: "Composite", - className: "UpgradePolicy" - } + className: "UpgradePolicy", + }, }, automaticRepairsPolicy: { serializedName: "properties.automaticRepairsPolicy", type: { name: "Composite", - className: "AutomaticRepairsPolicy" - } + className: "AutomaticRepairsPolicy", + }, }, virtualMachineProfile: { serializedName: "properties.virtualMachineProfile", type: { name: "Composite", - className: "VirtualMachineScaleSetUpdateVMProfile" - } + className: "VirtualMachineScaleSetUpdateVMProfile", + }, }, overprovision: { serializedName: "properties.overprovision", type: { - name: "Boolean" - } + name: "Boolean", + }, }, doNotRunExtensionsOnOverprovisionedVMs: { serializedName: "properties.doNotRunExtensionsOnOverprovisionedVMs", type: { - name: "Boolean" - } + name: "Boolean", + }, }, singlePlacementGroup: { serializedName: "properties.singlePlacementGroup", type: { - name: "Boolean" - } + name: "Boolean", + }, }, additionalCapabilities: { serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "AdditionalCapabilities" - } + className: "AdditionalCapabilities", + }, }, scaleInPolicy: { serializedName: "properties.scaleInPolicy", type: { name: "Composite", - className: "ScaleInPolicy" - } + className: "ScaleInPolicy", + }, }, proximityPlacementGroup: { serializedName: "properties.proximityPlacementGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, priorityMixPolicy: { serializedName: "properties.priorityMixPolicy", type: { name: "Composite", - className: "PriorityMixPolicy" - } + className: "PriorityMixPolicy", + }, }, spotRestorePolicy: { serializedName: "properties.spotRestorePolicy", type: { name: "Composite", - className: "SpotRestorePolicy" - } + className: "SpotRestorePolicy", + }, }, resiliencyPolicy: { serializedName: "properties.resiliencyPolicy", type: { name: "Composite", - className: "ResiliencyPolicy" - } - } - } - } + className: "ResiliencyPolicy", + }, + }, + }, + }, }; export const VirtualMachineExtensionUpdate: coreClient.CompositeMapper = { @@ -15552,66 +15617,66 @@ export const VirtualMachineExtensionUpdate: coreClient.CompositeMapper = { forceUpdateTag: { serializedName: "properties.forceUpdateTag", type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "properties.publisher", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "properties.type", type: { - name: "String" - } + name: "String", + }, }, typeHandlerVersion: { serializedName: "properties.typeHandlerVersion", type: { - name: "String" - } + name: "String", + }, }, autoUpgradeMinorVersion: { serializedName: "properties.autoUpgradeMinorVersion", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableAutomaticUpgrade: { serializedName: "properties.enableAutomaticUpgrade", type: { - name: "Boolean" - } + name: "Boolean", + }, }, settings: { serializedName: "properties.settings", type: { - name: "any" - } + name: "any", + }, }, protectedSettings: { serializedName: "properties.protectedSettings", type: { - name: "any" - } + name: "any", + }, }, suppressFailures: { serializedName: "properties.suppressFailures", type: { - name: "Boolean" - } + name: "Boolean", + }, }, protectedSettingsFromKeyVault: { serializedName: "properties.protectedSettingsFromKeyVault", type: { name: "Composite", - className: "KeyVaultSecretReference" - } - } - } - } + className: "KeyVaultSecretReference", + }, + }, + }, + }, }; export const VirtualMachineUpdate: coreClient.CompositeMapper = { @@ -15624,15 +15689,15 @@ export const VirtualMachineUpdate: coreClient.CompositeMapper = { serializedName: "plan", type: { name: "Composite", - className: "Plan" - } + className: "Plan", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "VirtualMachineIdentity" - } + className: "VirtualMachineIdentity", + }, }, zones: { serializedName: "zones", @@ -15640,189 +15705,189 @@ export const VirtualMachineUpdate: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, hardwareProfile: { serializedName: "properties.hardwareProfile", type: { name: "Composite", - className: "HardwareProfile" - } + className: "HardwareProfile", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "StorageProfile" - } + className: "StorageProfile", + }, }, additionalCapabilities: { serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "AdditionalCapabilities" - } + className: "AdditionalCapabilities", + }, }, osProfile: { serializedName: "properties.osProfile", type: { name: "Composite", - className: "OSProfile" - } + className: "OSProfile", + }, }, networkProfile: { serializedName: "properties.networkProfile", type: { name: "Composite", - className: "NetworkProfile" - } + className: "NetworkProfile", + }, }, securityProfile: { serializedName: "properties.securityProfile", type: { name: "Composite", - className: "SecurityProfile" - } + className: "SecurityProfile", + }, }, diagnosticsProfile: { serializedName: "properties.diagnosticsProfile", type: { name: "Composite", - className: "DiagnosticsProfile" - } + className: "DiagnosticsProfile", + }, }, availabilitySet: { serializedName: "properties.availabilitySet", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, virtualMachineScaleSet: { serializedName: "properties.virtualMachineScaleSet", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, proximityPlacementGroup: { serializedName: "properties.proximityPlacementGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, priority: { serializedName: "properties.priority", type: { - name: "String" - } + name: "String", + }, }, evictionPolicy: { serializedName: "properties.evictionPolicy", type: { - name: "String" - } + name: "String", + }, }, billingProfile: { serializedName: "properties.billingProfile", type: { name: "Composite", - className: "BillingProfile" - } + className: "BillingProfile", + }, }, host: { serializedName: "properties.host", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, hostGroup: { serializedName: "properties.hostGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineInstanceView" - } + className: "VirtualMachineInstanceView", + }, }, licenseType: { serializedName: "properties.licenseType", type: { - name: "String" - } + name: "String", + }, }, vmId: { serializedName: "properties.vmId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, extensionsTimeBudget: { serializedName: "properties.extensionsTimeBudget", type: { - name: "String" - } + name: "String", + }, }, platformFaultDomain: { serializedName: "properties.platformFaultDomain", type: { - name: "Number" - } + name: "Number", + }, }, scheduledEventsProfile: { serializedName: "properties.scheduledEventsProfile", type: { name: "Composite", - className: "ScheduledEventsProfile" - } + className: "ScheduledEventsProfile", + }, }, userData: { serializedName: "properties.userData", type: { - name: "String" - } + name: "String", + }, }, capacityReservation: { serializedName: "properties.capacityReservation", type: { name: "Composite", - className: "CapacityReservationProfile" - } + className: "CapacityReservationProfile", + }, }, applicationProfile: { serializedName: "properties.applicationProfile", type: { name: "Composite", - className: "ApplicationProfile" - } + className: "ApplicationProfile", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const AvailabilitySetUpdate: coreClient.CompositeMapper = { @@ -15835,20 +15900,20 @@ export const AvailabilitySetUpdate: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, platformUpdateDomainCount: { serializedName: "properties.platformUpdateDomainCount", type: { - name: "Number" - } + name: "Number", + }, }, platformFaultDomainCount: { serializedName: "properties.platformFaultDomainCount", type: { - name: "Number" - } + name: "Number", + }, }, virtualMachines: { serializedName: "properties.virtualMachines", @@ -15857,17 +15922,17 @@ export const AvailabilitySetUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResource" - } - } - } + className: "SubResource", + }, + }, + }, }, proximityPlacementGroup: { serializedName: "properties.proximityPlacementGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, statuses: { serializedName: "properties.statuses", @@ -15877,13 +15942,13 @@ export const AvailabilitySetUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const ProximityPlacementGroupUpdate: coreClient.CompositeMapper = { @@ -15891,9 +15956,9 @@ export const ProximityPlacementGroupUpdate: coreClient.CompositeMapper = { name: "Composite", className: "ProximityPlacementGroupUpdate", modelProperties: { - ...UpdateResource.type.modelProperties - } - } + ...UpdateResource.type.modelProperties, + }, + }, }; export const DedicatedHostGroupUpdate: coreClient.CompositeMapper = { @@ -15908,19 +15973,19 @@ export const DedicatedHostGroupUpdate: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, platformFaultDomainCount: { constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.platformFaultDomainCount", type: { - name: "Number" - } + name: "Number", + }, }, hosts: { serializedName: "properties.hosts", @@ -15930,33 +15995,33 @@ export const DedicatedHostGroupUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "DedicatedHostGroupInstanceView" - } + className: "DedicatedHostGroupInstanceView", + }, }, supportAutomaticPlacement: { serializedName: "properties.supportAutomaticPlacement", type: { - name: "Boolean" - } + name: "Boolean", + }, }, additionalCapabilities: { serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "DedicatedHostGroupPropertiesAdditionalCapabilities" - } - } - } - } + className: "DedicatedHostGroupPropertiesAdditionalCapabilities", + }, + }, + }, + }, }; export const DedicatedHostUpdate: coreClient.CompositeMapper = { @@ -15969,30 +16034,30 @@ export const DedicatedHostUpdate: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, platformFaultDomain: { constraints: { - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "properties.platformFaultDomain", type: { - name: "Number" - } + name: "Number", + }, }, autoReplaceOnFailure: { serializedName: "properties.autoReplaceOnFailure", type: { - name: "Boolean" - } + name: "Boolean", + }, }, hostId: { serializedName: "properties.hostId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, virtualMachines: { serializedName: "properties.virtualMachines", @@ -16002,10 +16067,10 @@ export const DedicatedHostUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, licenseType: { serializedName: "properties.licenseType", @@ -16014,40 +16079,40 @@ export const DedicatedHostUpdate: coreClient.CompositeMapper = { allowedValues: [ "None", "Windows_Server_Hybrid", - "Windows_Server_Perpetual" - ] - } + "Windows_Server_Perpetual", + ], + }, }, provisioningTime: { serializedName: "properties.provisioningTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "DedicatedHostInstanceView" - } + className: "DedicatedHostInstanceView", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const SshPublicKeyUpdateResource: coreClient.CompositeMapper = { @@ -16059,11 +16124,11 @@ export const SshPublicKeyUpdateResource: coreClient.CompositeMapper = { publicKey: { serializedName: "properties.publicKey", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ImageUpdate: coreClient.CompositeMapper = { @@ -16076,31 +16141,31 @@ export const ImageUpdate: coreClient.CompositeMapper = { serializedName: "properties.sourceVirtualMachine", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "ImageStorageProfile" - } + className: "ImageStorageProfile", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RestorePointCollectionUpdate: coreClient.CompositeMapper = { @@ -16113,22 +16178,22 @@ export const RestorePointCollectionUpdate: coreClient.CompositeMapper = { serializedName: "properties.source", type: { name: "Composite", - className: "RestorePointCollectionSourceProperties" - } + className: "RestorePointCollectionSourceProperties", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, restorePointCollectionId: { serializedName: "properties.restorePointCollectionId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, restorePoints: { serializedName: "properties.restorePoints", @@ -16138,13 +16203,13 @@ export const RestorePointCollectionUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RestorePoint" - } - } - } - } - } - } + className: "RestorePoint", + }, + }, + }, + }, + }, + }, }; export const CapacityReservationGroupUpdate: coreClient.CompositeMapper = { @@ -16161,10 +16226,10 @@ export const CapacityReservationGroupUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, virtualMachinesAssociated: { serializedName: "properties.virtualMachinesAssociated", @@ -16174,27 +16239,27 @@ export const CapacityReservationGroupUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "CapacityReservationGroupInstanceView" - } + className: "CapacityReservationGroupInstanceView", + }, }, sharingProfile: { serializedName: "properties.sharingProfile", type: { name: "Composite", - className: "ResourceSharingProfile" - } - } - } - } + className: "ResourceSharingProfile", + }, + }, + }, + }, }; export const CapacityReservationUpdate: coreClient.CompositeMapper = { @@ -16207,22 +16272,22 @@ export const CapacityReservationUpdate: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, reservationId: { serializedName: "properties.reservationId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, platformFaultDomainCount: { serializedName: "properties.platformFaultDomainCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, virtualMachinesAssociated: { serializedName: "properties.virtualMachinesAssociated", @@ -16232,41 +16297,41 @@ export const CapacityReservationUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, provisioningTime: { serializedName: "properties.provisioningTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "CapacityReservationInstanceView" - } + className: "CapacityReservationInstanceView", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const VirtualMachineRunCommandUpdate: coreClient.CompositeMapper = { @@ -16279,8 +16344,8 @@ export const VirtualMachineRunCommandUpdate: coreClient.CompositeMapper = { serializedName: "properties.source", type: { name: "Composite", - className: "VirtualMachineRunCommandScriptSource" - } + className: "VirtualMachineRunCommandScriptSource", + }, }, parameters: { serializedName: "properties.parameters", @@ -16289,10 +16354,10 @@ export const VirtualMachineRunCommandUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandInputParameter" - } - } - } + className: "RunCommandInputParameter", + }, + }, + }, }, protectedParameters: { serializedName: "properties.protectedParameters", @@ -16301,96 +16366,97 @@ export const VirtualMachineRunCommandUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandInputParameter" - } - } - } + className: "RunCommandInputParameter", + }, + }, + }, }, asyncExecution: { defaultValue: false, serializedName: "properties.asyncExecution", type: { - name: "Boolean" - } + name: "Boolean", + }, }, runAsUser: { serializedName: "properties.runAsUser", type: { - name: "String" - } + name: "String", + }, }, runAsPassword: { serializedName: "properties.runAsPassword", type: { - name: "String" - } + name: "String", + }, }, timeoutInSeconds: { serializedName: "properties.timeoutInSeconds", type: { - name: "Number" - } + name: "Number", + }, }, outputBlobUri: { serializedName: "properties.outputBlobUri", type: { - name: "String" - } + name: "String", + }, }, errorBlobUri: { serializedName: "properties.errorBlobUri", type: { - name: "String" - } + name: "String", + }, }, outputBlobManagedIdentity: { serializedName: "properties.outputBlobManagedIdentity", type: { name: "Composite", - className: "RunCommandManagedIdentity" - } + className: "RunCommandManagedIdentity", + }, }, errorBlobManagedIdentity: { serializedName: "properties.errorBlobManagedIdentity", type: { name: "Composite", - className: "RunCommandManagedIdentity" - } + className: "RunCommandManagedIdentity", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineRunCommandInstanceView" - } + className: "VirtualMachineRunCommandInstanceView", + }, }, treatFailureAsDeploymentFailure: { defaultValue: false, serializedName: "properties.treatFailureAsDeploymentFailure", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; -export const VirtualMachineScaleSetVMReimageParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMReimageParameters", - modelProperties: { - ...VirtualMachineReimageParameters.type.modelProperties - } - } -}; +export const VirtualMachineScaleSetVMReimageParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMReimageParameters", + modelProperties: { + ...VirtualMachineReimageParameters.type.modelProperties, + }, + }, + }; export const DedicatedHostInstanceViewWithName: coreClient.CompositeMapper = { type: { @@ -16402,11 +16468,11 @@ export const DedicatedHostInstanceViewWithName: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ImageOSDisk: coreClient.CompositeMapper = { @@ -16420,19 +16486,19 @@ export const ImageOSDisk: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, osState: { serializedName: "osState", required: true, type: { name: "Enum", - allowedValues: ["Generalized", "Specialized"] - } - } - } - } + allowedValues: ["Generalized", "Specialized"], + }, + }, + }, + }, }; export const ImageDataDisk: coreClient.CompositeMapper = { @@ -16445,11 +16511,11 @@ export const ImageDataDisk: coreClient.CompositeMapper = { serializedName: "lun", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const RestorePoint: coreClient.CompositeMapper = { @@ -16465,71 +16531,72 @@ export const RestorePoint: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiEntityReference" - } - } - } + className: "ApiEntityReference", + }, + }, + }, }, sourceMetadata: { serializedName: "properties.sourceMetadata", type: { name: "Composite", - className: "RestorePointSourceMetadata" - } + className: "RestorePointSourceMetadata", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, consistencyMode: { serializedName: "properties.consistencyMode", type: { - name: "String" - } + name: "String", + }, }, timeCreated: { serializedName: "properties.timeCreated", type: { - name: "DateTime" - } + name: "DateTime", + }, }, sourceRestorePoint: { serializedName: "properties.sourceRestorePoint", type: { name: "Composite", - className: "ApiEntityReference" - } + className: "ApiEntityReference", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "RestorePointInstanceView" - } - } - } - } -}; - -export const CapacityReservationInstanceViewWithName: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CapacityReservationInstanceViewWithName", - modelProperties: { - ...CapacityReservationInstanceView.type.modelProperties, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; + className: "RestorePointInstanceView", + }, + }, + }, + }, +}; + +export const CapacityReservationInstanceViewWithName: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "CapacityReservationInstanceViewWithName", + modelProperties: { + ...CapacityReservationInstanceView.type.modelProperties, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const RequestRateByIntervalInput: coreClient.CompositeMapper = { type: { @@ -16542,11 +16609,11 @@ export const RequestRateByIntervalInput: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["ThreeMins", "FiveMins", "ThirtyMins", "SixtyMins"] - } - } - } - } + allowedValues: ["ThreeMins", "FiveMins", "ThirtyMins", "SixtyMins"], + }, + }, + }, + }, }; export const ThrottledRequestsInput: coreClient.CompositeMapper = { @@ -16554,9 +16621,9 @@ export const ThrottledRequestsInput: coreClient.CompositeMapper = { name: "Composite", className: "ThrottledRequestsInput", modelProperties: { - ...LogAnalyticsInputBase.type.modelProperties - } - } + ...LogAnalyticsInputBase.type.modelProperties, + }, + }, }; export const RunCommandDocument: coreClient.CompositeMapper = { @@ -16572,10 +16639,10 @@ export const RunCommandDocument: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, parameters: { serializedName: "parameters", @@ -16584,13 +16651,13 @@ export const RunCommandDocument: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandParameterDefinition" - } - } - } - } - } - } + className: "RunCommandParameterDefinition", + }, + }, + }, + }, + }, + }, }; export const DiskRestorePoint: coreClient.CompositeMapper = { @@ -16603,118 +16670,118 @@ export const DiskRestorePoint: coreClient.CompositeMapper = { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, sourceResourceId: { serializedName: "properties.sourceResourceId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, osType: { serializedName: "properties.osType", readOnly: true, type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, purchasePlan: { serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "PurchasePlanAutoGenerated" - } + className: "PurchasePlanAutoGenerated", + }, }, supportedCapabilities: { serializedName: "properties.supportedCapabilities", type: { name: "Composite", - className: "SupportedCapabilities" - } + className: "SupportedCapabilities", + }, }, familyId: { serializedName: "properties.familyId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sourceUniqueId: { serializedName: "properties.sourceUniqueId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "Encryption" - } + className: "Encryption", + }, }, supportsHibernation: { serializedName: "properties.supportsHibernation", type: { - name: "Boolean" - } + name: "Boolean", + }, }, networkAccessPolicy: { serializedName: "properties.networkAccessPolicy", type: { - name: "String" - } + name: "String", + }, }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, diskAccessId: { serializedName: "properties.diskAccessId", type: { - name: "String" - } + name: "String", + }, }, completionPercent: { serializedName: "properties.completionPercent", type: { - name: "Number" - } + name: "Number", + }, }, replicationState: { serializedName: "properties.replicationState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sourceResourceLocation: { serializedName: "properties.sourceResourceLocation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, securityProfile: { serializedName: "properties.securityProfile", type: { name: "Composite", - className: "DiskSecurityProfile" - } - } - } - } + className: "DiskSecurityProfile", + }, + }, + }, + }, }; export const GalleryUpdate: coreClient.CompositeMapper = { @@ -16726,46 +16793,46 @@ export const GalleryUpdate: coreClient.CompositeMapper = { description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, identifier: { serializedName: "properties.identifier", type: { name: "Composite", - className: "GalleryIdentifier" - } + className: "GalleryIdentifier", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sharingProfile: { serializedName: "properties.sharingProfile", type: { name: "Composite", - className: "SharingProfile" - } + className: "SharingProfile", + }, }, softDeletePolicy: { serializedName: "properties.softDeletePolicy", type: { name: "Composite", - className: "SoftDeletePolicy" - } + className: "SoftDeletePolicy", + }, }, sharingStatus: { serializedName: "properties.sharingStatus", type: { name: "Composite", - className: "SharingStatus" - } - } - } - } + className: "SharingStatus", + }, + }, + }, + }, }; export const GalleryImageUpdate: coreClient.CompositeMapper = { @@ -16777,87 +16844,87 @@ export const GalleryImageUpdate: coreClient.CompositeMapper = { description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, eula: { serializedName: "properties.eula", type: { - name: "String" - } + name: "String", + }, }, privacyStatementUri: { serializedName: "properties.privacyStatementUri", type: { - name: "String" - } + name: "String", + }, }, releaseNoteUri: { serializedName: "properties.releaseNoteUri", type: { - name: "String" - } + name: "String", + }, }, osType: { serializedName: "properties.osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, osState: { serializedName: "properties.osState", type: { name: "Enum", - allowedValues: ["Generalized", "Specialized"] - } + allowedValues: ["Generalized", "Specialized"], + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, identifier: { serializedName: "properties.identifier", type: { name: "Composite", - className: "GalleryImageIdentifier" - } + className: "GalleryImageIdentifier", + }, }, recommended: { serializedName: "properties.recommended", type: { name: "Composite", - className: "RecommendedMachineConfiguration" - } + className: "RecommendedMachineConfiguration", + }, }, disallowed: { serializedName: "properties.disallowed", type: { name: "Composite", - className: "Disallowed" - } + className: "Disallowed", + }, }, purchasePlan: { serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "ImagePurchasePlan" - } + className: "ImagePurchasePlan", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, features: { serializedName: "properties.features", @@ -16866,19 +16933,19 @@ export const GalleryImageUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryImageFeature" - } - } - } + className: "GalleryImageFeature", + }, + }, + }, }, architecture: { serializedName: "properties.architecture", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryImageVersionUpdate: coreClient.CompositeMapper = { @@ -16891,46 +16958,46 @@ export const GalleryImageVersionUpdate: coreClient.CompositeMapper = { serializedName: "properties.publishingProfile", type: { name: "Composite", - className: "GalleryImageVersionPublishingProfile" - } + className: "GalleryImageVersionPublishingProfile", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "GalleryImageVersionStorageProfile" - } + className: "GalleryImageVersionStorageProfile", + }, }, safetyProfile: { serializedName: "properties.safetyProfile", type: { name: "Composite", - className: "GalleryImageVersionSafetyProfile" - } + className: "GalleryImageVersionSafetyProfile", + }, }, replicationStatus: { serializedName: "properties.replicationStatus", type: { name: "Composite", - className: "ReplicationStatus" - } + className: "ReplicationStatus", + }, }, securityProfile: { serializedName: "properties.securityProfile", type: { name: "Composite", - className: "ImageVersionSecurityProfile" - } - } - } - } + className: "ImageVersionSecurityProfile", + }, + }, + }, + }, }; export const GalleryApplicationUpdate: coreClient.CompositeMapper = { @@ -16942,39 +17009,39 @@ export const GalleryApplicationUpdate: coreClient.CompositeMapper = { description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, eula: { serializedName: "properties.eula", type: { - name: "String" - } + name: "String", + }, }, privacyStatementUri: { serializedName: "properties.privacyStatementUri", type: { - name: "String" - } + name: "String", + }, }, releaseNoteUri: { serializedName: "properties.releaseNoteUri", type: { - name: "String" - } + name: "String", + }, }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, supportedOSType: { serializedName: "properties.supportedOSType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, customActions: { serializedName: "properties.customActions", @@ -16983,13 +17050,13 @@ export const GalleryApplicationUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryApplicationCustomAction" - } - } - } - } - } - } + className: "GalleryApplicationCustomAction", + }, + }, + }, + }, + }, + }, }; export const GalleryApplicationVersionUpdate: coreClient.CompositeMapper = { @@ -17002,99 +17069,101 @@ export const GalleryApplicationVersionUpdate: coreClient.CompositeMapper = { serializedName: "properties.publishingProfile", type: { name: "Composite", - className: "GalleryApplicationVersionPublishingProfile" - } + className: "GalleryApplicationVersionPublishingProfile", + }, }, safetyProfile: { serializedName: "properties.safetyProfile", type: { name: "Composite", - className: "GalleryApplicationVersionSafetyProfile" - } + className: "GalleryApplicationVersionSafetyProfile", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, replicationStatus: { serializedName: "properties.replicationStatus", type: { name: "Composite", - className: "ReplicationStatus" - } - } - } - } -}; - -export const GalleryImageVersionPublishingProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryImageVersionPublishingProfile", - modelProperties: { - ...GalleryArtifactPublishingProfileBase.type.modelProperties - } - } -}; - -export const GalleryApplicationVersionPublishingProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryApplicationVersionPublishingProfile", - modelProperties: { - ...GalleryArtifactPublishingProfileBase.type.modelProperties, - source: { - serializedName: "source", - type: { - name: "Composite", - className: "UserArtifactSource" - } - }, - manageActions: { - serializedName: "manageActions", - type: { - name: "Composite", - className: "UserArtifactManage" - } - }, - settings: { - serializedName: "settings", - type: { - name: "Composite", - className: "UserArtifactSettings" - } - }, - advancedSettings: { - serializedName: "advancedSettings", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + className: "ReplicationStatus", + }, }, - enableHealthCheck: { - serializedName: "enableHealthCheck", - type: { - name: "Boolean" - } + }, + }, +}; + +export const GalleryImageVersionPublishingProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "GalleryImageVersionPublishingProfile", + modelProperties: { + ...GalleryArtifactPublishingProfileBase.type.modelProperties, + }, + }, + }; + +export const GalleryApplicationVersionPublishingProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "GalleryApplicationVersionPublishingProfile", + modelProperties: { + ...GalleryArtifactPublishingProfileBase.type.modelProperties, + source: { + serializedName: "source", + type: { + name: "Composite", + className: "UserArtifactSource", + }, + }, + manageActions: { + serializedName: "manageActions", + type: { + name: "Composite", + className: "UserArtifactManage", + }, + }, + settings: { + serializedName: "settings", + type: { + name: "Composite", + className: "UserArtifactSettings", + }, + }, + advancedSettings: { + serializedName: "advancedSettings", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + enableHealthCheck: { + serializedName: "enableHealthCheck", + type: { + name: "Boolean", + }, + }, + customActions: { + serializedName: "customActions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryApplicationCustomAction", + }, + }, + }, + }, }, - customActions: { - serializedName: "customActions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GalleryApplicationCustomAction" - } - } - } - } - } - } -}; + }, + }; export const OSDiskImageEncryption: coreClient.CompositeMapper = { type: { @@ -17106,11 +17175,11 @@ export const OSDiskImageEncryption: coreClient.CompositeMapper = { serializedName: "securityProfile", type: { name: "Composite", - className: "OSDiskImageSecurityProfile" - } - } - } - } + className: "OSDiskImageSecurityProfile", + }, + }, + }, + }, }; export const DataDiskImageEncryption: coreClient.CompositeMapper = { @@ -17123,11 +17192,11 @@ export const DataDiskImageEncryption: coreClient.CompositeMapper = { serializedName: "lun", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const GalleryArtifactVersionFullSource: coreClient.CompositeMapper = { @@ -17139,11 +17208,17 @@ export const GalleryArtifactVersionFullSource: coreClient.CompositeMapper = { communityGalleryImageId: { serializedName: "communityGalleryImageId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + virtualMachineId: { + serializedName: "virtualMachineId", + type: { + name: "String", + }, + }, + }, + }, }; export const GalleryDiskImageSource: coreClient.CompositeMapper = { @@ -17155,17 +17230,17 @@ export const GalleryDiskImageSource: coreClient.CompositeMapper = { uri: { serializedName: "uri", type: { - name: "String" - } + name: "String", + }, }, storageAccountId: { serializedName: "storageAccountId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryOSDiskImage: coreClient.CompositeMapper = { @@ -17173,9 +17248,9 @@ export const GalleryOSDiskImage: coreClient.CompositeMapper = { name: "Composite", className: "GalleryOSDiskImage", modelProperties: { - ...GalleryDiskImage.type.modelProperties - } - } + ...GalleryDiskImage.type.modelProperties, + }, + }, }; export const GalleryDataDiskImage: coreClient.CompositeMapper = { @@ -17188,11 +17263,11 @@ export const GalleryDataDiskImage: coreClient.CompositeMapper = { serializedName: "lun", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const GalleryImageVersionSafetyProfile: coreClient.CompositeMapper = { @@ -17205,8 +17280,8 @@ export const GalleryImageVersionSafetyProfile: coreClient.CompositeMapper = { serializedName: "reportedForPolicyViolation", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, policyViolations: { serializedName: "policyViolations", @@ -17216,24 +17291,25 @@ export const GalleryImageVersionSafetyProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PolicyViolation" - } - } - } - } - } - } + className: "PolicyViolation", + }, + }, + }, + }, + }, + }, }; -export const GalleryApplicationVersionSafetyProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryApplicationVersionSafetyProfile", - modelProperties: { - ...GalleryArtifactSafetyProfileBase.type.modelProperties - } - } -}; +export const GalleryApplicationVersionSafetyProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "GalleryApplicationVersionSafetyProfile", + modelProperties: { + ...GalleryArtifactSafetyProfileBase.type.modelProperties, + }, + }, + }; export const PirSharedGalleryResource: coreClient.CompositeMapper = { type: { @@ -17244,11 +17320,11 @@ export const PirSharedGalleryResource: coreClient.CompositeMapper = { uniqueId: { serializedName: "identifier.uniqueId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SharedGalleryOSDiskImage: coreClient.CompositeMapper = { @@ -17256,9 +17332,9 @@ export const SharedGalleryOSDiskImage: coreClient.CompositeMapper = { name: "Composite", className: "SharedGalleryOSDiskImage", modelProperties: { - ...SharedGalleryDiskImage.type.modelProperties - } - } + ...SharedGalleryDiskImage.type.modelProperties, + }, + }, }; export const SharedGalleryDataDiskImage: coreClient.CompositeMapper = { @@ -17271,11 +17347,11 @@ export const SharedGalleryDataDiskImage: coreClient.CompositeMapper = { serializedName: "lun", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const CommunityGallery: coreClient.CompositeMapper = { @@ -17287,25 +17363,25 @@ export const CommunityGallery: coreClient.CompositeMapper = { disclaimer: { serializedName: "properties.disclaimer", type: { - name: "String" - } + name: "String", + }, }, artifactTags: { serializedName: "properties.artifactTags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, communityMetadata: { serializedName: "properties.communityMetadata", type: { name: "Composite", - className: "CommunityGalleryMetadata" - } - } - } - } + className: "CommunityGalleryMetadata", + }, + }, + }, + }, }; export const CommunityGalleryImage: coreClient.CompositeMapper = { @@ -17318,48 +17394,48 @@ export const CommunityGalleryImage: coreClient.CompositeMapper = { serializedName: "properties.osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, osState: { serializedName: "properties.osState", type: { name: "Enum", - allowedValues: ["Generalized", "Specialized"] - } + allowedValues: ["Generalized", "Specialized"], + }, }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, identifier: { serializedName: "properties.identifier", type: { name: "Composite", - className: "CommunityGalleryImageIdentifier" - } + className: "CommunityGalleryImageIdentifier", + }, }, recommended: { serializedName: "properties.recommended", type: { name: "Composite", - className: "RecommendedMachineConfiguration" - } + className: "RecommendedMachineConfiguration", + }, }, disallowed: { serializedName: "properties.disallowed", type: { name: "Composite", - className: "Disallowed" - } + className: "Disallowed", + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, features: { serializedName: "properties.features", @@ -17368,51 +17444,51 @@ export const CommunityGalleryImage: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryImageFeature" - } - } - } + className: "GalleryImageFeature", + }, + }, + }, }, purchasePlan: { serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "ImagePurchasePlan" - } + className: "ImagePurchasePlan", + }, }, architecture: { serializedName: "properties.architecture", type: { - name: "String" - } + name: "String", + }, }, privacyStatementUri: { serializedName: "properties.privacyStatementUri", type: { - name: "String" - } + name: "String", + }, }, eula: { serializedName: "properties.eula", type: { - name: "String" - } + name: "String", + }, }, disclaimer: { serializedName: "properties.disclaimer", type: { - name: "String" - } + name: "String", + }, }, artifactTags: { serializedName: "properties.artifactTags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const CommunityGalleryImageVersion: coreClient.CompositeMapper = { @@ -17424,43 +17500,43 @@ export const CommunityGalleryImageVersion: coreClient.CompositeMapper = { publishedDate: { serializedName: "properties.publishedDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, excludeFromLatest: { serializedName: "properties.excludeFromLatest", type: { - name: "Boolean" - } + name: "Boolean", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "SharedGalleryImageVersionStorageProfile" - } + className: "SharedGalleryImageVersionStorageProfile", + }, }, disclaimer: { serializedName: "properties.disclaimer", type: { - name: "String" - } + name: "String", + }, }, artifactTags: { serializedName: "properties.artifactTags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const VirtualMachineImage: coreClient.CompositeMapper = { @@ -17473,15 +17549,15 @@ export const VirtualMachineImage: coreClient.CompositeMapper = { serializedName: "properties.plan", type: { name: "Composite", - className: "PurchasePlan" - } + className: "PurchasePlan", + }, }, osDiskImage: { serializedName: "properties.osDiskImage", type: { name: "Composite", - className: "OSDiskImage" - } + className: "OSDiskImage", + }, }, dataDiskImages: { serializedName: "properties.dataDiskImages", @@ -17490,30 +17566,30 @@ export const VirtualMachineImage: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataDiskImage" - } - } - } + className: "DataDiskImage", + }, + }, + }, }, automaticOSUpgradeProperties: { serializedName: "properties.automaticOSUpgradeProperties", type: { name: "Composite", - className: "AutomaticOSUpgradeProperties" - } + className: "AutomaticOSUpgradeProperties", + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, disallowed: { serializedName: "properties.disallowed", type: { name: "Composite", - className: "DisallowedConfiguration" - } + className: "DisallowedConfiguration", + }, }, features: { serializedName: "properties.features", @@ -17522,48 +17598,49 @@ export const VirtualMachineImage: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineImageFeature" - } - } - } + className: "VirtualMachineImageFeature", + }, + }, + }, }, architecture: { serializedName: "properties.architecture", type: { - name: "String" - } + name: "String", + }, }, imageDeprecationStatus: { serializedName: "properties.imageDeprecationStatus", type: { name: "Composite", - className: "ImageDeprecationStatus" - } - } - } - } -}; - -export const VirtualMachineScaleSetReimageParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetReimageParameters", - modelProperties: { - ...VirtualMachineScaleSetVMReimageParameters.type.modelProperties, - instanceIds: { - serializedName: "instanceIds", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; + className: "ImageDeprecationStatus", + }, + }, + }, + }, +}; + +export const VirtualMachineScaleSetReimageParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetReimageParameters", + modelProperties: { + ...VirtualMachineScaleSetVMReimageParameters.type.modelProperties, + instanceIds: { + serializedName: "instanceIds", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, + }; export const SharedGallery: coreClient.CompositeMapper = { type: { @@ -17576,11 +17653,11 @@ export const SharedGallery: coreClient.CompositeMapper = { readOnly: true, type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const SharedGalleryImage: coreClient.CompositeMapper = { @@ -17593,48 +17670,48 @@ export const SharedGalleryImage: coreClient.CompositeMapper = { serializedName: "properties.osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, osState: { serializedName: "properties.osState", type: { name: "Enum", - allowedValues: ["Generalized", "Specialized"] - } + allowedValues: ["Generalized", "Specialized"], + }, }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, identifier: { serializedName: "properties.identifier", type: { name: "Composite", - className: "GalleryImageIdentifier" - } + className: "GalleryImageIdentifier", + }, }, recommended: { serializedName: "properties.recommended", type: { name: "Composite", - className: "RecommendedMachineConfiguration" - } + className: "RecommendedMachineConfiguration", + }, }, disallowed: { serializedName: "properties.disallowed", type: { name: "Composite", - className: "Disallowed" - } + className: "Disallowed", + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, features: { serializedName: "properties.features", @@ -17643,45 +17720,45 @@ export const SharedGalleryImage: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryImageFeature" - } - } - } + className: "GalleryImageFeature", + }, + }, + }, }, purchasePlan: { serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "ImagePurchasePlan" - } + className: "ImagePurchasePlan", + }, }, architecture: { serializedName: "properties.architecture", type: { - name: "String" - } + name: "String", + }, }, privacyStatementUri: { serializedName: "properties.privacyStatementUri", type: { - name: "String" - } + name: "String", + }, }, eula: { serializedName: "properties.eula", type: { - name: "String" - } + name: "String", + }, }, artifactTags: { serializedName: "properties.artifactTags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const SharedGalleryImageVersion: coreClient.CompositeMapper = { @@ -17693,113 +17770,118 @@ export const SharedGalleryImageVersion: coreClient.CompositeMapper = { publishedDate: { serializedName: "properties.publishedDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, excludeFromLatest: { serializedName: "properties.excludeFromLatest", type: { - name: "Boolean" - } + name: "Boolean", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "SharedGalleryImageVersionStorageProfile" - } + className: "SharedGalleryImageVersionStorageProfile", + }, }, artifactTags: { serializedName: "properties.artifactTags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const VirtualMachineScaleSetsReapplyHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetsReapplyHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetsApproveRollingUpgradeHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetsApproveRollingUpgradeHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetVMsAttachDetachDataDisksHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMsAttachDetachDataDisksHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachinesAttachDetachDataDisksHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachinesAttachDetachDataDisksHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; + value: { type: { name: "String" } }, + }, + }, + }, + }, +}; + +export const VirtualMachineScaleSetsReapplyHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetsReapplyHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const VirtualMachineScaleSetsApproveRollingUpgradeHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetsApproveRollingUpgradeHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const VirtualMachineScaleSetVMsAttachDetachDataDisksHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMsAttachDetachDataDisksHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const VirtualMachinesAttachDetachDataDisksHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachinesAttachDetachDataDisksHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; export const DedicatedHostsRedeployHeaders: coreClient.CompositeMapper = { type: { @@ -17809,9 +17891,9 @@ export const DedicatedHostsRedeployHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts index 4ed3984bb0d1..d37d6833c0d0 100644 --- a/sdk/compute/arm-compute/src/models/parameters.ts +++ b/sdk/compute/arm-compute/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { VirtualMachineScaleSet as VirtualMachineScaleSetMapper, @@ -82,7 +82,7 @@ import { CloudService as CloudServiceMapper, CloudServiceUpdate as CloudServiceUpdateMapper, RoleInstances as RoleInstancesMapper, - UpdateDomain as UpdateDomainMapper + UpdateDomain as UpdateDomainMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -92,9 +92,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -103,10 +103,10 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { @@ -116,23 +116,23 @@ export const apiVersion: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const location: OperationURLParameter = { parameterPath: "location", mapper: { constraints: { - Pattern: new RegExp("^[-\\w\\._]+$") + Pattern: new RegExp("^[-\\w\\._]+$"), }, serializedName: "location", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const subscriptionId: OperationURLParameter = { @@ -141,9 +141,9 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -152,10 +152,10 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const contentType: OperationParameter = { @@ -165,14 +165,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: VirtualMachineScaleSetMapper + mapper: VirtualMachineScaleSetMapper, }; export const resourceGroupName: OperationURLParameter = { @@ -181,9 +181,9 @@ export const resourceGroupName: OperationURLParameter = { serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const vmScaleSetName: OperationURLParameter = { @@ -192,9 +192,9 @@ export const vmScaleSetName: OperationURLParameter = { serializedName: "vmScaleSetName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const ifMatch: OperationParameter = { @@ -202,9 +202,9 @@ export const ifMatch: OperationParameter = { mapper: { serializedName: "If-Match", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const ifNoneMatch: OperationParameter = { @@ -212,14 +212,14 @@ export const ifNoneMatch: OperationParameter = { mapper: { serializedName: "If-None-Match", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters1: OperationParameter = { parameterPath: "parameters", - mapper: VirtualMachineScaleSetUpdateMapper + mapper: VirtualMachineScaleSetUpdateMapper, }; export const forceDeletion: OperationQueryParameter = { @@ -227,9 +227,9 @@ export const forceDeletion: OperationQueryParameter = { mapper: { serializedName: "forceDeletion", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const expand: OperationQueryParameter = { @@ -237,14 +237,14 @@ export const expand: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const vmInstanceIDs: OperationParameter = { parameterPath: ["options", "vmInstanceIDs"], - mapper: VirtualMachineScaleSetVMInstanceIDsMapper + mapper: VirtualMachineScaleSetVMInstanceIDsMapper, }; export const hibernate: OperationQueryParameter = { @@ -252,14 +252,14 @@ export const hibernate: OperationQueryParameter = { mapper: { serializedName: "hibernate", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const vmInstanceIDs1: OperationParameter = { parameterPath: "vmInstanceIDs", - mapper: VirtualMachineScaleSetVMInstanceRequiredIDsMapper + mapper: VirtualMachineScaleSetVMInstanceRequiredIDsMapper, }; export const skipShutdown: OperationQueryParameter = { @@ -268,14 +268,14 @@ export const skipShutdown: OperationQueryParameter = { defaultValue: false, serializedName: "skipShutdown", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const vmScaleSetReimageInput: OperationParameter = { parameterPath: ["options", "vmScaleSetReimageInput"], - mapper: VirtualMachineScaleSetReimageParametersMapper + mapper: VirtualMachineScaleSetReimageParametersMapper, }; export const platformUpdateDomain: OperationQueryParameter = { @@ -284,9 +284,9 @@ export const platformUpdateDomain: OperationQueryParameter = { serializedName: "platformUpdateDomain", required: true, type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const zone: OperationQueryParameter = { @@ -294,9 +294,9 @@ export const zone: OperationQueryParameter = { mapper: { serializedName: "zone", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const placementGroupId: OperationQueryParameter = { @@ -304,24 +304,24 @@ export const placementGroupId: OperationQueryParameter = { mapper: { serializedName: "placementGroupId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: VMScaleSetConvertToSinglePlacementGroupInputMapper + mapper: VMScaleSetConvertToSinglePlacementGroupInputMapper, }; export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: OrchestrationServiceStateInputMapper + mapper: OrchestrationServiceStateInputMapper, }; export const extensionParameters: OperationParameter = { parameterPath: "extensionParameters", - mapper: VirtualMachineScaleSetExtensionMapper + mapper: VirtualMachineScaleSetExtensionMapper, }; export const vmssExtensionName: OperationURLParameter = { @@ -330,14 +330,14 @@ export const vmssExtensionName: OperationURLParameter = { serializedName: "vmssExtensionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const extensionParameters1: OperationParameter = { parameterPath: "extensionParameters", - mapper: VirtualMachineScaleSetExtensionUpdateMapper + mapper: VirtualMachineScaleSetExtensionUpdateMapper, }; export const expand1: OperationQueryParameter = { @@ -345,14 +345,14 @@ export const expand1: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const extensionParameters2: OperationParameter = { parameterPath: "extensionParameters", - mapper: VirtualMachineScaleSetVMExtensionMapper + mapper: VirtualMachineScaleSetVMExtensionMapper, }; export const instanceId: OperationURLParameter = { @@ -361,9 +361,9 @@ export const instanceId: OperationURLParameter = { serializedName: "instanceId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const vmExtensionName: OperationURLParameter = { @@ -372,24 +372,24 @@ export const vmExtensionName: OperationURLParameter = { serializedName: "vmExtensionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const extensionParameters3: OperationParameter = { parameterPath: "extensionParameters", - mapper: VirtualMachineScaleSetVMExtensionUpdateMapper + mapper: VirtualMachineScaleSetVMExtensionUpdateMapper, }; export const vmScaleSetVMReimageInput: OperationParameter = { parameterPath: ["options", "vmScaleSetVMReimageInput"], - mapper: VirtualMachineScaleSetVMReimageParametersMapper + mapper: VirtualMachineScaleSetVMReimageParametersMapper, }; export const parameters4: OperationParameter = { parameterPath: "parameters", - mapper: VirtualMachineScaleSetVMMapper + mapper: VirtualMachineScaleSetVMMapper, }; export const expand2: OperationQueryParameter = { @@ -398,9 +398,9 @@ export const expand2: OperationQueryParameter = { serializedName: "$expand", type: { name: "Enum", - allowedValues: ["instanceView", "userData"] - } - } + allowedValues: ["instanceView", "userData"], + }, + }, }; export const virtualMachineScaleSetName: OperationURLParameter = { @@ -409,9 +409,9 @@ export const virtualMachineScaleSetName: OperationURLParameter = { serializedName: "virtualMachineScaleSetName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const filter: OperationQueryParameter = { @@ -419,9 +419,9 @@ export const filter: OperationQueryParameter = { mapper: { serializedName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const select: OperationQueryParameter = { @@ -429,9 +429,9 @@ export const select: OperationQueryParameter = { mapper: { serializedName: "$select", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const sasUriExpirationTimeInMinutes: OperationQueryParameter = { @@ -439,19 +439,19 @@ export const sasUriExpirationTimeInMinutes: OperationQueryParameter = { mapper: { serializedName: "sasUriExpirationTimeInMinutes", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const parameters5: OperationParameter = { parameterPath: "parameters", - mapper: AttachDetachDataDisksRequestMapper + mapper: AttachDetachDataDisksRequestMapper, }; export const parameters6: OperationParameter = { parameterPath: "parameters", - mapper: RunCommandInputMapper + mapper: RunCommandInputMapper, }; export const accept1: OperationParameter = { @@ -461,14 +461,14 @@ export const accept1: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const extensionParameters4: OperationParameter = { parameterPath: "extensionParameters", - mapper: VirtualMachineExtensionMapper + mapper: VirtualMachineExtensionMapper, }; export const vmName: OperationURLParameter = { @@ -477,29 +477,29 @@ export const vmName: OperationURLParameter = { serializedName: "vmName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const extensionParameters5: OperationParameter = { parameterPath: "extensionParameters", - mapper: VirtualMachineExtensionUpdateMapper + mapper: VirtualMachineExtensionUpdateMapper, }; export const parameters7: OperationParameter = { parameterPath: "parameters", - mapper: VirtualMachineCaptureParametersMapper + mapper: VirtualMachineCaptureParametersMapper, }; export const parameters8: OperationParameter = { parameterPath: "parameters", - mapper: VirtualMachineMapper + mapper: VirtualMachineMapper, }; export const parameters9: OperationParameter = { parameterPath: "parameters", - mapper: VirtualMachineUpdateMapper + mapper: VirtualMachineUpdateMapper, }; export const expand3: OperationQueryParameter = { @@ -507,9 +507,9 @@ export const expand3: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const statusOnly: OperationQueryParameter = { @@ -517,9 +517,9 @@ export const statusOnly: OperationQueryParameter = { mapper: { serializedName: "statusOnly", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const expand4: OperationQueryParameter = { @@ -527,19 +527,19 @@ export const expand4: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters10: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: VirtualMachineReimageParametersMapper + mapper: VirtualMachineReimageParametersMapper, }; export const installPatchesInput: OperationParameter = { parameterPath: "installPatchesInput", - mapper: VirtualMachineInstallPatchesParametersMapper + mapper: VirtualMachineInstallPatchesParametersMapper, }; export const location1: OperationURLParameter = { @@ -548,9 +548,9 @@ export const location1: OperationURLParameter = { serializedName: "location", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const publisherName: OperationURLParameter = { @@ -559,9 +559,9 @@ export const publisherName: OperationURLParameter = { serializedName: "publisherName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const offer: OperationURLParameter = { @@ -570,9 +570,9 @@ export const offer: OperationURLParameter = { serializedName: "offer", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const skus: OperationURLParameter = { @@ -581,9 +581,9 @@ export const skus: OperationURLParameter = { serializedName: "skus", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const version: OperationURLParameter = { @@ -592,9 +592,9 @@ export const version: OperationURLParameter = { serializedName: "version", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const top: OperationQueryParameter = { @@ -602,9 +602,9 @@ export const top: OperationQueryParameter = { mapper: { serializedName: "$top", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const orderby: OperationQueryParameter = { @@ -612,9 +612,9 @@ export const orderby: OperationQueryParameter = { mapper: { serializedName: "$orderby", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const edgeZone: OperationURLParameter = { @@ -623,9 +623,9 @@ export const edgeZone: OperationURLParameter = { serializedName: "edgeZone", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const typeParam: OperationURLParameter = { @@ -634,14 +634,14 @@ export const typeParam: OperationURLParameter = { serializedName: "type", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters11: OperationParameter = { parameterPath: "parameters", - mapper: AvailabilitySetMapper + mapper: AvailabilitySetMapper, }; export const availabilitySetName: OperationURLParameter = { @@ -650,19 +650,19 @@ export const availabilitySetName: OperationURLParameter = { serializedName: "availabilitySetName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters12: OperationParameter = { parameterPath: "parameters", - mapper: AvailabilitySetUpdateMapper + mapper: AvailabilitySetUpdateMapper, }; export const parameters13: OperationParameter = { parameterPath: "parameters", - mapper: ProximityPlacementGroupMapper + mapper: ProximityPlacementGroupMapper, }; export const proximityPlacementGroupName: OperationURLParameter = { @@ -671,14 +671,14 @@ export const proximityPlacementGroupName: OperationURLParameter = { serializedName: "proximityPlacementGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters14: OperationParameter = { parameterPath: "parameters", - mapper: ProximityPlacementGroupUpdateMapper + mapper: ProximityPlacementGroupUpdateMapper, }; export const includeColocationStatus: OperationQueryParameter = { @@ -686,14 +686,14 @@ export const includeColocationStatus: OperationQueryParameter = { mapper: { serializedName: "includeColocationStatus", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters15: OperationParameter = { parameterPath: "parameters", - mapper: DedicatedHostGroupMapper + mapper: DedicatedHostGroupMapper, }; export const hostGroupName: OperationURLParameter = { @@ -702,19 +702,19 @@ export const hostGroupName: OperationURLParameter = { serializedName: "hostGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters16: OperationParameter = { parameterPath: "parameters", - mapper: DedicatedHostGroupUpdateMapper + mapper: DedicatedHostGroupUpdateMapper, }; export const parameters17: OperationParameter = { parameterPath: "parameters", - mapper: DedicatedHostMapper + mapper: DedicatedHostMapper, }; export const hostName: OperationURLParameter = { @@ -723,47 +723,47 @@ export const hostName: OperationURLParameter = { serializedName: "hostName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters18: OperationParameter = { parameterPath: "parameters", - mapper: DedicatedHostUpdateMapper + mapper: DedicatedHostUpdateMapper, }; export const hostGroupName1: OperationURLParameter = { parameterPath: "hostGroupName", mapper: { constraints: { - Pattern: new RegExp("^[-\\w\\._]+$") + Pattern: new RegExp("^[-\\w\\._]+$"), }, serializedName: "hostGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const hostName1: OperationURLParameter = { parameterPath: "hostName", mapper: { constraints: { - Pattern: new RegExp("^[-\\w\\._]+$") + Pattern: new RegExp("^[-\\w\\._]+$"), }, serializedName: "hostName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters19: OperationParameter = { parameterPath: "parameters", - mapper: SshPublicKeyResourceMapper + mapper: SshPublicKeyResourceMapper, }; export const sshPublicKeyName: OperationURLParameter = { @@ -772,24 +772,24 @@ export const sshPublicKeyName: OperationURLParameter = { serializedName: "sshPublicKeyName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters20: OperationParameter = { parameterPath: "parameters", - mapper: SshPublicKeyUpdateResourceMapper + mapper: SshPublicKeyUpdateResourceMapper, }; export const parameters21: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: SshGenerateKeyPairInputParametersMapper + mapper: SshGenerateKeyPairInputParametersMapper, }; export const parameters22: OperationParameter = { parameterPath: "parameters", - mapper: ImageMapper + mapper: ImageMapper, }; export const imageName: OperationURLParameter = { @@ -798,19 +798,19 @@ export const imageName: OperationURLParameter = { serializedName: "imageName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters23: OperationParameter = { parameterPath: "parameters", - mapper: ImageUpdateMapper + mapper: ImageUpdateMapper, }; export const parameters24: OperationParameter = { parameterPath: "parameters", - mapper: RestorePointCollectionMapper + mapper: RestorePointCollectionMapper, }; export const restorePointCollectionName: OperationURLParameter = { @@ -819,14 +819,14 @@ export const restorePointCollectionName: OperationURLParameter = { serializedName: "restorePointCollectionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters25: OperationParameter = { parameterPath: "parameters", - mapper: RestorePointCollectionUpdateMapper + mapper: RestorePointCollectionUpdateMapper, }; export const expand5: OperationQueryParameter = { @@ -834,14 +834,14 @@ export const expand5: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters26: OperationParameter = { parameterPath: "parameters", - mapper: RestorePointMapper + mapper: RestorePointMapper, }; export const restorePointName: OperationURLParameter = { @@ -850,9 +850,9 @@ export const restorePointName: OperationURLParameter = { serializedName: "restorePointName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const expand6: OperationQueryParameter = { @@ -860,14 +860,14 @@ export const expand6: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters27: OperationParameter = { parameterPath: "parameters", - mapper: CapacityReservationGroupMapper + mapper: CapacityReservationGroupMapper, }; export const capacityReservationGroupName: OperationURLParameter = { @@ -876,14 +876,14 @@ export const capacityReservationGroupName: OperationURLParameter = { serializedName: "capacityReservationGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters28: OperationParameter = { parameterPath: "parameters", - mapper: CapacityReservationGroupUpdateMapper + mapper: CapacityReservationGroupUpdateMapper, }; export const expand7: OperationQueryParameter = { @@ -891,9 +891,9 @@ export const expand7: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const expand8: OperationQueryParameter = { @@ -901,14 +901,14 @@ export const expand8: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters29: OperationParameter = { parameterPath: "parameters", - mapper: CapacityReservationMapper + mapper: CapacityReservationMapper, }; export const capacityReservationName: OperationURLParameter = { @@ -917,14 +917,14 @@ export const capacityReservationName: OperationURLParameter = { serializedName: "capacityReservationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters30: OperationParameter = { parameterPath: "parameters", - mapper: CapacityReservationUpdateMapper + mapper: CapacityReservationUpdateMapper, }; export const expand9: OperationQueryParameter = { @@ -932,19 +932,19 @@ export const expand9: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters31: OperationParameter = { parameterPath: "parameters", - mapper: RequestRateByIntervalInputMapper + mapper: RequestRateByIntervalInputMapper, }; export const parameters32: OperationParameter = { parameterPath: "parameters", - mapper: ThrottledRequestsInputMapper + mapper: ThrottledRequestsInputMapper, }; export const commandId: OperationURLParameter = { @@ -953,14 +953,14 @@ export const commandId: OperationURLParameter = { serializedName: "commandId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const runCommand: OperationParameter = { parameterPath: "runCommand", - mapper: VirtualMachineRunCommandMapper + mapper: VirtualMachineRunCommandMapper, }; export const runCommandName: OperationURLParameter = { @@ -969,19 +969,19 @@ export const runCommandName: OperationURLParameter = { serializedName: "runCommandName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const runCommand1: OperationParameter = { parameterPath: "runCommand", - mapper: VirtualMachineRunCommandUpdateMapper + mapper: VirtualMachineRunCommandUpdateMapper, }; export const disk: OperationParameter = { parameterPath: "disk", - mapper: DiskMapper + mapper: DiskMapper, }; export const diskName: OperationURLParameter = { @@ -990,9 +990,9 @@ export const diskName: OperationURLParameter = { serializedName: "diskName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion1: OperationQueryParameter = { @@ -1002,24 +1002,24 @@ export const apiVersion1: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const disk1: OperationParameter = { parameterPath: "disk", - mapper: DiskUpdateMapper + mapper: DiskUpdateMapper, }; export const grantAccessData: OperationParameter = { parameterPath: "grantAccessData", - mapper: GrantAccessDataMapper + mapper: GrantAccessDataMapper, }; export const diskAccess: OperationParameter = { parameterPath: "diskAccess", - mapper: DiskAccessMapper + mapper: DiskAccessMapper, }; export const diskAccessName: OperationURLParameter = { @@ -1028,19 +1028,19 @@ export const diskAccessName: OperationURLParameter = { serializedName: "diskAccessName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const diskAccess1: OperationParameter = { parameterPath: "diskAccess", - mapper: DiskAccessUpdateMapper + mapper: DiskAccessUpdateMapper, }; export const privateEndpointConnection: OperationParameter = { parameterPath: "privateEndpointConnection", - mapper: PrivateEndpointConnectionMapper + mapper: PrivateEndpointConnectionMapper, }; export const privateEndpointConnectionName: OperationURLParameter = { @@ -1049,14 +1049,14 @@ export const privateEndpointConnectionName: OperationURLParameter = { serializedName: "privateEndpointConnectionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const diskEncryptionSet: OperationParameter = { parameterPath: "diskEncryptionSet", - mapper: DiskEncryptionSetMapper + mapper: DiskEncryptionSetMapper, }; export const diskEncryptionSetName: OperationURLParameter = { @@ -1065,14 +1065,14 @@ export const diskEncryptionSetName: OperationURLParameter = { serializedName: "diskEncryptionSetName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const diskEncryptionSet1: OperationParameter = { parameterPath: "diskEncryptionSet", - mapper: DiskEncryptionSetUpdateMapper + mapper: DiskEncryptionSetUpdateMapper, }; export const vmRestorePointName: OperationURLParameter = { @@ -1081,9 +1081,9 @@ export const vmRestorePointName: OperationURLParameter = { serializedName: "vmRestorePointName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const diskRestorePointName: OperationURLParameter = { @@ -1092,14 +1092,14 @@ export const diskRestorePointName: OperationURLParameter = { serializedName: "diskRestorePointName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const snapshot: OperationParameter = { parameterPath: "snapshot", - mapper: SnapshotMapper + mapper: SnapshotMapper, }; export const snapshotName: OperationURLParameter = { @@ -1108,14 +1108,14 @@ export const snapshotName: OperationURLParameter = { serializedName: "snapshotName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const snapshot1: OperationParameter = { parameterPath: "snapshot", - mapper: SnapshotUpdateMapper + mapper: SnapshotUpdateMapper, }; export const apiVersion2: OperationQueryParameter = { @@ -1125,9 +1125,9 @@ export const apiVersion2: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const includeExtendedLocations: OperationQueryParameter = { @@ -1135,14 +1135,14 @@ export const includeExtendedLocations: OperationQueryParameter = { mapper: { serializedName: "includeExtendedLocations", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const gallery: OperationParameter = { parameterPath: "gallery", - mapper: GalleryMapper + mapper: GalleryMapper, }; export const galleryName: OperationURLParameter = { @@ -1151,26 +1151,26 @@ export const galleryName: OperationURLParameter = { serializedName: "galleryName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion3: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-08-03", + defaultValue: "2023-07-03", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const gallery1: OperationParameter = { parameterPath: "gallery", - mapper: GalleryUpdateMapper + mapper: GalleryUpdateMapper, }; export const select1: OperationQueryParameter = { @@ -1178,9 +1178,9 @@ export const select1: OperationQueryParameter = { mapper: { serializedName: "$select", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const expand10: OperationQueryParameter = { @@ -1188,14 +1188,14 @@ export const expand10: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const galleryImage: OperationParameter = { parameterPath: "galleryImage", - mapper: GalleryImageMapper + mapper: GalleryImageMapper, }; export const galleryImageName: OperationURLParameter = { @@ -1204,19 +1204,19 @@ export const galleryImageName: OperationURLParameter = { serializedName: "galleryImageName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const galleryImage1: OperationParameter = { parameterPath: "galleryImage", - mapper: GalleryImageUpdateMapper + mapper: GalleryImageUpdateMapper, }; export const galleryImageVersion: OperationParameter = { parameterPath: "galleryImageVersion", - mapper: GalleryImageVersionMapper + mapper: GalleryImageVersionMapper, }; export const galleryImageVersionName: OperationURLParameter = { @@ -1225,14 +1225,14 @@ export const galleryImageVersionName: OperationURLParameter = { serializedName: "galleryImageVersionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const galleryImageVersion1: OperationParameter = { parameterPath: "galleryImageVersion", - mapper: GalleryImageVersionUpdateMapper + mapper: GalleryImageVersionUpdateMapper, }; export const expand11: OperationQueryParameter = { @@ -1240,14 +1240,14 @@ export const expand11: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const galleryApplication: OperationParameter = { parameterPath: "galleryApplication", - mapper: GalleryApplicationMapper + mapper: GalleryApplicationMapper, }; export const galleryApplicationName: OperationURLParameter = { @@ -1256,19 +1256,19 @@ export const galleryApplicationName: OperationURLParameter = { serializedName: "galleryApplicationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const galleryApplication1: OperationParameter = { parameterPath: "galleryApplication", - mapper: GalleryApplicationUpdateMapper + mapper: GalleryApplicationUpdateMapper, }; export const galleryApplicationVersion: OperationParameter = { parameterPath: "galleryApplicationVersion", - mapper: GalleryApplicationVersionMapper + mapper: GalleryApplicationVersionMapper, }; export const galleryApplicationVersionName: OperationURLParameter = { @@ -1277,19 +1277,19 @@ export const galleryApplicationVersionName: OperationURLParameter = { serializedName: "galleryApplicationVersionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const galleryApplicationVersion1: OperationParameter = { parameterPath: "galleryApplicationVersion", - mapper: GalleryApplicationVersionUpdateMapper + mapper: GalleryApplicationVersionUpdateMapper, }; export const sharingUpdate: OperationParameter = { parameterPath: "sharingUpdate", - mapper: SharingUpdateMapper + mapper: SharingUpdateMapper, }; export const sharedTo: OperationQueryParameter = { @@ -1297,9 +1297,9 @@ export const sharedTo: OperationQueryParameter = { mapper: { serializedName: "sharedTo", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const galleryUniqueName: OperationURLParameter = { @@ -1308,9 +1308,9 @@ export const galleryUniqueName: OperationURLParameter = { serializedName: "galleryUniqueName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const publicGalleryName: OperationURLParameter = { @@ -1319,9 +1319,9 @@ export const publicGalleryName: OperationURLParameter = { serializedName: "publicGalleryName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const roleInstanceName: OperationURLParameter = { @@ -1330,9 +1330,9 @@ export const roleInstanceName: OperationURLParameter = { serializedName: "roleInstanceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const cloudServiceName: OperationURLParameter = { @@ -1341,9 +1341,9 @@ export const cloudServiceName: OperationURLParameter = { serializedName: "cloudServiceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion4: OperationQueryParameter = { @@ -1353,9 +1353,9 @@ export const apiVersion4: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const accept2: OperationParameter = { @@ -1365,9 +1365,9 @@ export const accept2: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const roleName: OperationURLParameter = { @@ -1376,29 +1376,29 @@ export const roleName: OperationURLParameter = { serializedName: "roleName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters33: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: CloudServiceMapper + mapper: CloudServiceMapper, }; export const parameters34: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: CloudServiceUpdateMapper + mapper: CloudServiceUpdateMapper, }; export const parameters35: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: RoleInstancesMapper + mapper: RoleInstancesMapper, }; export const parameters36: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: UpdateDomainMapper + mapper: UpdateDomainMapper, }; export const updateDomain: OperationURLParameter = { @@ -1407,9 +1407,9 @@ export const updateDomain: OperationURLParameter = { serializedName: "updateDomain", required: true, type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const osVersionName: OperationURLParameter = { @@ -1418,9 +1418,9 @@ export const osVersionName: OperationURLParameter = { serializedName: "osVersionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const osFamilyName: OperationURLParameter = { @@ -1429,7 +1429,7 @@ export const osFamilyName: OperationURLParameter = { serializedName: "osFamilyName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; diff --git a/sdk/compute/arm-compute/src/operations/availabilitySets.ts b/sdk/compute/arm-compute/src/operations/availabilitySets.ts index 7560d319dff3..ab0fadd50185 100644 --- a/sdk/compute/arm-compute/src/operations/availabilitySets.ts +++ b/sdk/compute/arm-compute/src/operations/availabilitySets.ts @@ -33,7 +33,7 @@ import { AvailabilitySetsGetOptionalParams, AvailabilitySetsGetResponse, AvailabilitySetsListBySubscriptionNextResponse, - AvailabilitySetsListNextResponse + AvailabilitySetsListNextResponse, } from "../models"; /// @@ -54,7 +54,7 @@ export class AvailabilitySetsImpl implements AvailabilitySets { * @param options The options parameters. */ public listBySubscription( - options?: AvailabilitySetsListBySubscriptionOptionalParams + options?: AvailabilitySetsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -69,13 +69,13 @@ export class AvailabilitySetsImpl implements AvailabilitySets { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: AvailabilitySetsListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AvailabilitySetsListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +96,7 @@ export class AvailabilitySetsImpl implements AvailabilitySets { } private async *listBySubscriptionPagingAll( - options?: AvailabilitySetsListBySubscriptionOptionalParams + options?: AvailabilitySetsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -110,7 +110,7 @@ export class AvailabilitySetsImpl implements AvailabilitySets { */ public list( resourceGroupName: string, - options?: AvailabilitySetsListOptionalParams + options?: AvailabilitySetsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, options); return { @@ -125,14 +125,14 @@ export class AvailabilitySetsImpl implements AvailabilitySets { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(resourceGroupName, options, settings); - } + }, }; } private async *listPagingPage( resourceGroupName: string, options?: AvailabilitySetsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AvailabilitySetsListResponse; let continuationToken = settings?.continuationToken; @@ -147,7 +147,7 @@ export class AvailabilitySetsImpl implements AvailabilitySets { result = await this._listNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -158,7 +158,7 @@ export class AvailabilitySetsImpl implements AvailabilitySets { private async *listPagingAll( resourceGroupName: string, - options?: AvailabilitySetsListOptionalParams + options?: AvailabilitySetsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceGroupName, options)) { yield* page; @@ -175,12 +175,12 @@ export class AvailabilitySetsImpl implements AvailabilitySets { public listAvailableSizes( resourceGroupName: string, availabilitySetName: string, - options?: AvailabilitySetsListAvailableSizesOptionalParams + options?: AvailabilitySetsListAvailableSizesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAvailableSizesPagingAll( resourceGroupName, availabilitySetName, - options + options, ); return { next() { @@ -197,9 +197,9 @@ export class AvailabilitySetsImpl implements AvailabilitySets { resourceGroupName, availabilitySetName, options, - settings + settings, ); - } + }, }; } @@ -207,13 +207,13 @@ export class AvailabilitySetsImpl implements AvailabilitySets { resourceGroupName: string, availabilitySetName: string, options?: AvailabilitySetsListAvailableSizesOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: AvailabilitySetsListAvailableSizesResponse; result = await this._listAvailableSizes( resourceGroupName, availabilitySetName, - options + options, ); yield result.value || []; } @@ -221,12 +221,12 @@ export class AvailabilitySetsImpl implements AvailabilitySets { private async *listAvailableSizesPagingAll( resourceGroupName: string, availabilitySetName: string, - options?: AvailabilitySetsListAvailableSizesOptionalParams + options?: AvailabilitySetsListAvailableSizesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAvailableSizesPagingPage( resourceGroupName, availabilitySetName, - options + options, )) { yield* page; } @@ -243,11 +243,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { resourceGroupName: string, availabilitySetName: string, parameters: AvailabilitySet, - options?: AvailabilitySetsCreateOrUpdateOptionalParams + options?: AvailabilitySetsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, availabilitySetName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -262,11 +262,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { resourceGroupName: string, availabilitySetName: string, parameters: AvailabilitySetUpdate, - options?: AvailabilitySetsUpdateOptionalParams + options?: AvailabilitySetsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, availabilitySetName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -279,11 +279,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { delete( resourceGroupName: string, availabilitySetName: string, - options?: AvailabilitySetsDeleteOptionalParams + options?: AvailabilitySetsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, availabilitySetName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -296,11 +296,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { get( resourceGroupName: string, availabilitySetName: string, - options?: AvailabilitySetsGetOptionalParams + options?: AvailabilitySetsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, availabilitySetName, options }, - getOperationSpec + getOperationSpec, ); } @@ -309,11 +309,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { * @param options The options parameters. */ private _listBySubscription( - options?: AvailabilitySetsListBySubscriptionOptionalParams + options?: AvailabilitySetsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -324,11 +324,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { */ private _list( resourceGroupName: string, - options?: AvailabilitySetsListOptionalParams + options?: AvailabilitySetsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listOperationSpec + listOperationSpec, ); } @@ -342,11 +342,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { private _listAvailableSizes( resourceGroupName: string, availabilitySetName: string, - options?: AvailabilitySetsListAvailableSizesOptionalParams + options?: AvailabilitySetsListAvailableSizesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, availabilitySetName, options }, - listAvailableSizesOperationSpec + listAvailableSizesOperationSpec, ); } @@ -357,11 +357,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { */ private _listBySubscriptionNext( nextLink: string, - options?: AvailabilitySetsListBySubscriptionNextOptionalParams + options?: AvailabilitySetsListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -374,11 +374,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { private _listNext( resourceGroupName: string, nextLink: string, - options?: AvailabilitySetsListNextOptionalParams + options?: AvailabilitySetsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -386,16 +386,15 @@ export class AvailabilitySetsImpl implements AvailabilitySets { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.AvailabilitySet + bodyMapper: Mappers.AvailabilitySet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters11, queryParameters: [Parameters.apiVersion], @@ -403,23 +402,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.availabilitySetName + Parameters.availabilitySetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.AvailabilitySet + bodyMapper: Mappers.AvailabilitySet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], @@ -427,151 +425,146 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.availabilitySetName + Parameters.availabilitySetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.availabilitySetName + Parameters.availabilitySetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilitySet + bodyMapper: Mappers.AvailabilitySet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.availabilitySetName + Parameters.availabilitySetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilitySetListResult + bodyMapper: Mappers.AvailabilitySetListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilitySetListResult + bodyMapper: Mappers.AvailabilitySetListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAvailableSizesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/vmSizes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/vmSizes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineSizeListResult + bodyMapper: Mappers.VirtualMachineSizeListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.availabilitySetName + Parameters.availabilitySetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilitySetListResult + bodyMapper: Mappers.AvailabilitySetListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilitySetListResult + bodyMapper: Mappers.AvailabilitySetListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/capacityReservationGroups.ts b/sdk/compute/arm-compute/src/operations/capacityReservationGroups.ts index acfd90ebf1eb..27f005366b42 100644 --- a/sdk/compute/arm-compute/src/operations/capacityReservationGroups.ts +++ b/sdk/compute/arm-compute/src/operations/capacityReservationGroups.ts @@ -30,13 +30,14 @@ import { CapacityReservationGroupsGetOptionalParams, CapacityReservationGroupsGetResponse, CapacityReservationGroupsListByResourceGroupNextResponse, - CapacityReservationGroupsListBySubscriptionNextResponse + CapacityReservationGroupsListBySubscriptionNextResponse, } from "../models"; /// /** Class containing CapacityReservationGroups operations. */ export class CapacityReservationGroupsImpl - implements CapacityReservationGroups { + implements CapacityReservationGroups +{ private readonly client: ComputeManagementClient; /** @@ -55,7 +56,7 @@ export class CapacityReservationGroupsImpl */ public listByResourceGroup( resourceGroupName: string, - options?: CapacityReservationGroupsListByResourceGroupOptionalParams + options?: CapacityReservationGroupsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -72,16 +73,16 @@ export class CapacityReservationGroupsImpl return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: CapacityReservationGroupsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CapacityReservationGroupsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +97,7 @@ export class CapacityReservationGroupsImpl result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,11 +108,11 @@ export class CapacityReservationGroupsImpl private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: CapacityReservationGroupsListByResourceGroupOptionalParams + options?: CapacityReservationGroupsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -123,7 +124,7 @@ export class CapacityReservationGroupsImpl * @param options The options parameters. */ public listBySubscription( - options?: CapacityReservationGroupsListBySubscriptionOptionalParams + options?: CapacityReservationGroupsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -138,13 +139,13 @@ export class CapacityReservationGroupsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: CapacityReservationGroupsListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CapacityReservationGroupsListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -165,7 +166,7 @@ export class CapacityReservationGroupsImpl } private async *listBySubscriptionPagingAll( - options?: CapacityReservationGroupsListBySubscriptionOptionalParams + options?: CapacityReservationGroupsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -185,11 +186,11 @@ export class CapacityReservationGroupsImpl resourceGroupName: string, capacityReservationGroupName: string, parameters: CapacityReservationGroup, - options?: CapacityReservationGroupsCreateOrUpdateOptionalParams + options?: CapacityReservationGroupsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, capacityReservationGroupName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -205,11 +206,11 @@ export class CapacityReservationGroupsImpl resourceGroupName: string, capacityReservationGroupName: string, parameters: CapacityReservationGroupUpdate, - options?: CapacityReservationGroupsUpdateOptionalParams + options?: CapacityReservationGroupsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, capacityReservationGroupName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -225,11 +226,11 @@ export class CapacityReservationGroupsImpl delete( resourceGroupName: string, capacityReservationGroupName: string, - options?: CapacityReservationGroupsDeleteOptionalParams + options?: CapacityReservationGroupsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, capacityReservationGroupName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -242,11 +243,11 @@ export class CapacityReservationGroupsImpl get( resourceGroupName: string, capacityReservationGroupName: string, - options?: CapacityReservationGroupsGetOptionalParams + options?: CapacityReservationGroupsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, capacityReservationGroupName, options }, - getOperationSpec + getOperationSpec, ); } @@ -258,11 +259,11 @@ export class CapacityReservationGroupsImpl */ private _listByResourceGroup( resourceGroupName: string, - options?: CapacityReservationGroupsListByResourceGroupOptionalParams + options?: CapacityReservationGroupsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -272,11 +273,11 @@ export class CapacityReservationGroupsImpl * @param options The options parameters. */ private _listBySubscription( - options?: CapacityReservationGroupsListBySubscriptionOptionalParams + options?: CapacityReservationGroupsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -289,11 +290,11 @@ export class CapacityReservationGroupsImpl private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: CapacityReservationGroupsListByResourceGroupNextOptionalParams + options?: CapacityReservationGroupsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -304,11 +305,11 @@ export class CapacityReservationGroupsImpl */ private _listBySubscriptionNext( nextLink: string, - options?: CapacityReservationGroupsListBySubscriptionNextOptionalParams + options?: CapacityReservationGroupsListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } } @@ -316,19 +317,18 @@ export class CapacityReservationGroupsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.CapacityReservationGroup + bodyMapper: Mappers.CapacityReservationGroup, }, 201: { - bodyMapper: Mappers.CapacityReservationGroup + bodyMapper: Mappers.CapacityReservationGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters27, queryParameters: [Parameters.apiVersion], @@ -336,23 +336,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.capacityReservationGroupName + Parameters.capacityReservationGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.CapacityReservationGroup + bodyMapper: Mappers.CapacityReservationGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters28, queryParameters: [Parameters.apiVersion], @@ -360,129 +359,125 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.capacityReservationGroupName + Parameters.capacityReservationGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.capacityReservationGroupName + Parameters.capacityReservationGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityReservationGroup + bodyMapper: Mappers.CapacityReservationGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand7], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.capacityReservationGroupName + Parameters.capacityReservationGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityReservationGroupListResult + bodyMapper: Mappers.CapacityReservationGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand8], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/capacityReservationGroups", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/capacityReservationGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityReservationGroupListResult + bodyMapper: Mappers.CapacityReservationGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand8], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityReservationGroupListResult + bodyMapper: Mappers.CapacityReservationGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityReservationGroupListResult + bodyMapper: Mappers.CapacityReservationGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/capacityReservations.ts b/sdk/compute/arm-compute/src/operations/capacityReservations.ts index 559fd7c0e687..32305a6c06b5 100644 --- a/sdk/compute/arm-compute/src/operations/capacityReservations.ts +++ b/sdk/compute/arm-compute/src/operations/capacityReservations.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,7 +32,7 @@ import { CapacityReservationsDeleteOptionalParams, CapacityReservationsGetOptionalParams, CapacityReservationsGetResponse, - CapacityReservationsListByCapacityReservationGroupNextResponse + CapacityReservationsListByCapacityReservationGroupNextResponse, } from "../models"; /// @@ -58,12 +58,12 @@ export class CapacityReservationsImpl implements CapacityReservations { public listByCapacityReservationGroup( resourceGroupName: string, capacityReservationGroupName: string, - options?: CapacityReservationsListByCapacityReservationGroupOptionalParams + options?: CapacityReservationsListByCapacityReservationGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByCapacityReservationGroupPagingAll( resourceGroupName, capacityReservationGroupName, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class CapacityReservationsImpl implements CapacityReservations { resourceGroupName, capacityReservationGroupName, options, - settings + settings, ); - } + }, }; } @@ -90,7 +90,7 @@ export class CapacityReservationsImpl implements CapacityReservations { resourceGroupName: string, capacityReservationGroupName: string, options?: CapacityReservationsListByCapacityReservationGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CapacityReservationsListByCapacityReservationGroupResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class CapacityReservationsImpl implements CapacityReservations { result = await this._listByCapacityReservationGroup( resourceGroupName, capacityReservationGroupName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -110,7 +110,7 @@ export class CapacityReservationsImpl implements CapacityReservations { resourceGroupName, capacityReservationGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -122,12 +122,12 @@ export class CapacityReservationsImpl implements CapacityReservations { private async *listByCapacityReservationGroupPagingAll( resourceGroupName: string, capacityReservationGroupName: string, - options?: CapacityReservationsListByCapacityReservationGroupOptionalParams + options?: CapacityReservationsListByCapacityReservationGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByCapacityReservationGroupPagingPage( resourceGroupName, capacityReservationGroupName, - options + options, )) { yield* page; } @@ -148,7 +148,7 @@ export class CapacityReservationsImpl implements CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservation, - options?: CapacityReservationsCreateOrUpdateOptionalParams + options?: CapacityReservationsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -157,21 +157,20 @@ export class CapacityReservationsImpl implements CapacityReservations { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -180,8 +179,8 @@ export class CapacityReservationsImpl implements CapacityReservations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -189,8 +188,8 @@ export class CapacityReservationsImpl implements CapacityReservations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -201,16 +200,16 @@ export class CapacityReservationsImpl implements CapacityReservations { capacityReservationGroupName, capacityReservationName, parameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< CapacityReservationsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -231,14 +230,14 @@ export class CapacityReservationsImpl implements CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservation, - options?: CapacityReservationsCreateOrUpdateOptionalParams + options?: CapacityReservationsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, capacityReservationGroupName, capacityReservationName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -256,7 +255,7 @@ export class CapacityReservationsImpl implements CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservationUpdate, - options?: CapacityReservationsUpdateOptionalParams + options?: CapacityReservationsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -265,21 +264,20 @@ export class CapacityReservationsImpl implements CapacityReservations { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -288,8 +286,8 @@ export class CapacityReservationsImpl implements CapacityReservations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -297,8 +295,8 @@ export class CapacityReservationsImpl implements CapacityReservations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -309,16 +307,16 @@ export class CapacityReservationsImpl implements CapacityReservations { capacityReservationGroupName, capacityReservationName, parameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< CapacityReservationsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -337,14 +335,14 @@ export class CapacityReservationsImpl implements CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservationUpdate, - options?: CapacityReservationsUpdateOptionalParams + options?: CapacityReservationsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, capacityReservationGroupName, capacityReservationName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -362,25 +360,24 @@ export class CapacityReservationsImpl implements CapacityReservations { resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, - options?: CapacityReservationsDeleteOptionalParams + options?: CapacityReservationsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -389,8 +386,8 @@ export class CapacityReservationsImpl implements CapacityReservations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -398,8 +395,8 @@ export class CapacityReservationsImpl implements CapacityReservations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -409,13 +406,13 @@ export class CapacityReservationsImpl implements CapacityReservations { resourceGroupName, capacityReservationGroupName, capacityReservationName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -434,13 +431,13 @@ export class CapacityReservationsImpl implements CapacityReservations { resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, - options?: CapacityReservationsDeleteOptionalParams + options?: CapacityReservationsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, capacityReservationGroupName, capacityReservationName, - options + options, ); return poller.pollUntilDone(); } @@ -456,16 +453,16 @@ export class CapacityReservationsImpl implements CapacityReservations { resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, - options?: CapacityReservationsGetOptionalParams + options?: CapacityReservationsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, capacityReservationGroupName, capacityReservationName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -479,11 +476,11 @@ export class CapacityReservationsImpl implements CapacityReservations { private _listByCapacityReservationGroup( resourceGroupName: string, capacityReservationGroupName: string, - options?: CapacityReservationsListByCapacityReservationGroupOptionalParams + options?: CapacityReservationsListByCapacityReservationGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, capacityReservationGroupName, options }, - listByCapacityReservationGroupOperationSpec + listByCapacityReservationGroupOperationSpec, ); } @@ -499,11 +496,11 @@ export class CapacityReservationsImpl implements CapacityReservations { resourceGroupName: string, capacityReservationGroupName: string, nextLink: string, - options?: CapacityReservationsListByCapacityReservationGroupNextOptionalParams + options?: CapacityReservationsListByCapacityReservationGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, capacityReservationGroupName, nextLink, options }, - listByCapacityReservationGroupNextOperationSpec + listByCapacityReservationGroupNextOperationSpec, ); } } @@ -511,25 +508,24 @@ export class CapacityReservationsImpl implements CapacityReservations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, 201: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, 202: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, 204: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters29, queryParameters: [Parameters.apiVersion], @@ -538,32 +534,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.capacityReservationGroupName, - Parameters.capacityReservationName + Parameters.capacityReservationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, 201: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, 202: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, 204: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters30, queryParameters: [Parameters.apiVersion], @@ -572,15 +567,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.capacityReservationGroupName, - Parameters.capacityReservationName + Parameters.capacityReservationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", httpMethod: "DELETE", responses: { 200: {}, @@ -588,8 +582,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -597,22 +591,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.capacityReservationGroupName, - Parameters.capacityReservationName + Parameters.capacityReservationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand9], urlParameters: [ @@ -620,51 +613,51 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.capacityReservationGroupName, - Parameters.capacityReservationName + Parameters.capacityReservationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByCapacityReservationGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityReservationListResult + bodyMapper: Mappers.CapacityReservationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.capacityReservationGroupName + Parameters.capacityReservationGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const listByCapacityReservationGroupNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CapacityReservationListResult +const listByCapacityReservationGroupNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CapacityReservationListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.resourceGroupName, - Parameters.capacityReservationGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.capacityReservationGroupName, + ], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts b/sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts index 503d7225c653..88ea11f32119 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts @@ -27,13 +27,14 @@ import { CloudServiceOperatingSystemsGetOSFamilyOptionalParams, CloudServiceOperatingSystemsGetOSFamilyResponse, CloudServiceOperatingSystemsListOSVersionsNextResponse, - CloudServiceOperatingSystemsListOSFamiliesNextResponse + CloudServiceOperatingSystemsListOSFamiliesNextResponse, } from "../models"; /// /** Class containing CloudServiceOperatingSystems operations. */ export class CloudServiceOperatingSystemsImpl - implements CloudServiceOperatingSystems { + implements CloudServiceOperatingSystems +{ private readonly client: ComputeManagementClient; /** @@ -53,7 +54,7 @@ export class CloudServiceOperatingSystemsImpl */ public listOSVersions( location: string, - options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams + options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listOSVersionsPagingAll(location, options); return { @@ -68,14 +69,14 @@ export class CloudServiceOperatingSystemsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listOSVersionsPagingPage(location, options, settings); - } + }, }; } private async *listOSVersionsPagingPage( location: string, options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServiceOperatingSystemsListOSVersionsResponse; let continuationToken = settings?.continuationToken; @@ -90,7 +91,7 @@ export class CloudServiceOperatingSystemsImpl result = await this._listOSVersionsNext( location, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -101,7 +102,7 @@ export class CloudServiceOperatingSystemsImpl private async *listOSVersionsPagingAll( location: string, - options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams + options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listOSVersionsPagingPage(location, options)) { yield* page; @@ -117,7 +118,7 @@ export class CloudServiceOperatingSystemsImpl */ public listOSFamilies( location: string, - options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams + options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listOSFamiliesPagingAll(location, options); return { @@ -132,14 +133,14 @@ export class CloudServiceOperatingSystemsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listOSFamiliesPagingPage(location, options, settings); - } + }, }; } private async *listOSFamiliesPagingPage( location: string, options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServiceOperatingSystemsListOSFamiliesResponse; let continuationToken = settings?.continuationToken; @@ -154,7 +155,7 @@ export class CloudServiceOperatingSystemsImpl result = await this._listOSFamiliesNext( location, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -165,7 +166,7 @@ export class CloudServiceOperatingSystemsImpl private async *listOSFamiliesPagingAll( location: string, - options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams + options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listOSFamiliesPagingPage(location, options)) { yield* page; @@ -182,11 +183,11 @@ export class CloudServiceOperatingSystemsImpl getOSVersion( location: string, osVersionName: string, - options?: CloudServiceOperatingSystemsGetOSVersionOptionalParams + options?: CloudServiceOperatingSystemsGetOSVersionOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, osVersionName, options }, - getOSVersionOperationSpec + getOSVersionOperationSpec, ); } @@ -199,11 +200,11 @@ export class CloudServiceOperatingSystemsImpl */ private _listOSVersions( location: string, - options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams + options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listOSVersionsOperationSpec + listOSVersionsOperationSpec, ); } @@ -217,11 +218,11 @@ export class CloudServiceOperatingSystemsImpl getOSFamily( location: string, osFamilyName: string, - options?: CloudServiceOperatingSystemsGetOSFamilyOptionalParams + options?: CloudServiceOperatingSystemsGetOSFamilyOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, osFamilyName, options }, - getOSFamilyOperationSpec + getOSFamilyOperationSpec, ); } @@ -234,11 +235,11 @@ export class CloudServiceOperatingSystemsImpl */ private _listOSFamilies( location: string, - options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams + options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listOSFamiliesOperationSpec + listOSFamiliesOperationSpec, ); } @@ -251,11 +252,11 @@ export class CloudServiceOperatingSystemsImpl private _listOSVersionsNext( location: string, nextLink: string, - options?: CloudServiceOperatingSystemsListOSVersionsNextOptionalParams + options?: CloudServiceOperatingSystemsListOSVersionsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listOSVersionsNextOperationSpec + listOSVersionsNextOperationSpec, ); } @@ -268,11 +269,11 @@ export class CloudServiceOperatingSystemsImpl private _listOSFamiliesNext( location: string, nextLink: string, - options?: CloudServiceOperatingSystemsListOSFamiliesNextOptionalParams + options?: CloudServiceOperatingSystemsListOSFamiliesNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listOSFamiliesNextOperationSpec + listOSFamiliesNextOperationSpec, ); } } @@ -280,128 +281,124 @@ export class CloudServiceOperatingSystemsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOSVersionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions/{osVersionName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions/{osVersionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OSVersion + bodyMapper: Mappers.OSVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.osVersionName + Parameters.osVersionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOSVersionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OSVersionListResult + bodyMapper: Mappers.OSVersionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOSFamilyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies/{osFamilyName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies/{osFamilyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OSFamily + bodyMapper: Mappers.OSFamily, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.osFamilyName + Parameters.osFamilyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOSFamiliesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OSFamilyListResult + bodyMapper: Mappers.OSFamilyListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOSVersionsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OSVersionListResult + bodyMapper: Mappers.OSVersionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOSFamiliesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OSFamilyListResult + bodyMapper: Mappers.OSFamilyListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts b/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts index 1077b7c26008..97380dea092c 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -34,13 +34,14 @@ import { CloudServiceRoleInstancesRebuildOptionalParams, CloudServiceRoleInstancesGetRemoteDesktopFileOptionalParams, CloudServiceRoleInstancesGetRemoteDesktopFileResponse, - CloudServiceRoleInstancesListNextResponse + CloudServiceRoleInstancesListNextResponse, } from "../models"; /// /** Class containing CloudServiceRoleInstances operations. */ export class CloudServiceRoleInstancesImpl - implements CloudServiceRoleInstances { + implements CloudServiceRoleInstances +{ private readonly client: ComputeManagementClient; /** @@ -61,12 +62,12 @@ export class CloudServiceRoleInstancesImpl public list( resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesListOptionalParams + options?: CloudServiceRoleInstancesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, cloudServiceName, - options + options, ); return { next() { @@ -83,9 +84,9 @@ export class CloudServiceRoleInstancesImpl resourceGroupName, cloudServiceName, options, - settings + settings, ); - } + }, }; } @@ -93,7 +94,7 @@ export class CloudServiceRoleInstancesImpl resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServiceRoleInstancesListResponse; let continuationToken = settings?.continuationToken; @@ -109,7 +110,7 @@ export class CloudServiceRoleInstancesImpl resourceGroupName, cloudServiceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -121,12 +122,12 @@ export class CloudServiceRoleInstancesImpl private async *listPagingAll( resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesListOptionalParams + options?: CloudServiceRoleInstancesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, cloudServiceName, - options + options, )) { yield* page; } @@ -143,25 +144,24 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesDeleteOptionalParams + options?: CloudServiceRoleInstancesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -170,8 +170,8 @@ export class CloudServiceRoleInstancesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -179,19 +179,19 @@ export class CloudServiceRoleInstancesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { roleInstanceName, resourceGroupName, cloudServiceName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -208,13 +208,13 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesDeleteOptionalParams + options?: CloudServiceRoleInstancesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( roleInstanceName, resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -230,11 +230,11 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesGetOptionalParams + options?: CloudServiceRoleInstancesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { roleInstanceName, resourceGroupName, cloudServiceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -249,11 +249,11 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesGetInstanceViewOptionalParams + options?: CloudServiceRoleInstancesGetInstanceViewOptionalParams, ): Promise { return this.client.sendOperationRequest( { roleInstanceName, resourceGroupName, cloudServiceName, options }, - getInstanceViewOperationSpec + getInstanceViewOperationSpec, ); } @@ -267,11 +267,11 @@ export class CloudServiceRoleInstancesImpl private _list( resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesListOptionalParams + options?: CloudServiceRoleInstancesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -287,25 +287,24 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesRestartOptionalParams + options?: CloudServiceRoleInstancesRestartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -314,8 +313,8 @@ export class CloudServiceRoleInstancesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -323,19 +322,19 @@ export class CloudServiceRoleInstancesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { roleInstanceName, resourceGroupName, cloudServiceName, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -353,13 +352,13 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesRestartOptionalParams + options?: CloudServiceRoleInstancesRestartOptionalParams, ): Promise { const poller = await this.beginRestart( roleInstanceName, resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -376,25 +375,24 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesReimageOptionalParams + options?: CloudServiceRoleInstancesReimageOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -403,8 +401,8 @@ export class CloudServiceRoleInstancesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -412,19 +410,19 @@ export class CloudServiceRoleInstancesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { roleInstanceName, resourceGroupName, cloudServiceName, options }, - spec: reimageOperationSpec + spec: reimageOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -442,13 +440,13 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesReimageOptionalParams + options?: CloudServiceRoleInstancesReimageOptionalParams, ): Promise { const poller = await this.beginReimage( roleInstanceName, resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -466,25 +464,24 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesRebuildOptionalParams + options?: CloudServiceRoleInstancesRebuildOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -493,8 +490,8 @@ export class CloudServiceRoleInstancesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -502,19 +499,19 @@ export class CloudServiceRoleInstancesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { roleInstanceName, resourceGroupName, cloudServiceName, options }, - spec: rebuildOperationSpec + spec: rebuildOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -533,13 +530,13 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesRebuildOptionalParams + options?: CloudServiceRoleInstancesRebuildOptionalParams, ): Promise { const poller = await this.beginRebuild( roleInstanceName, resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -555,11 +552,11 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesGetRemoteDesktopFileOptionalParams + options?: CloudServiceRoleInstancesGetRemoteDesktopFileOptionalParams, ): Promise { return this.client.sendOperationRequest( { roleInstanceName, resourceGroupName, cloudServiceName, options }, - getRemoteDesktopFileOperationSpec + getRemoteDesktopFileOperationSpec, ); } @@ -574,11 +571,11 @@ export class CloudServiceRoleInstancesImpl resourceGroupName: string, cloudServiceName: string, nextLink: string, - options?: CloudServiceRoleInstancesListNextOptionalParams + options?: CloudServiceRoleInstancesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -586,8 +583,7 @@ export class CloudServiceRoleInstancesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}", httpMethod: "DELETE", responses: { 200: {}, @@ -595,8 +591,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -604,22 +600,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.roleInstanceName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleInstance + bodyMapper: Mappers.RoleInstance, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.expand2, Parameters.apiVersion4], urlParameters: [ @@ -627,22 +622,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.roleInstanceName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getInstanceViewOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/instanceView", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/instanceView", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleInstanceView + bodyMapper: Mappers.RoleInstanceView, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -650,36 +644,34 @@ const getInstanceViewOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.roleInstanceName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleInstanceListResult + bodyMapper: Mappers.RoleInstanceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.expand2, Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/restart", httpMethod: "POST", responses: { 200: {}, @@ -687,8 +679,8 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -696,14 +688,13 @@ const restartOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.roleInstanceName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const reimageOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/reimage", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/reimage", httpMethod: "POST", responses: { 200: {}, @@ -711,8 +702,8 @@ const reimageOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -720,14 +711,13 @@ const reimageOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.roleInstanceName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const rebuildOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/rebuild", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/rebuild", httpMethod: "POST", responses: { 200: {}, @@ -735,8 +725,8 @@ const rebuildOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -744,20 +734,22 @@ const rebuildOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.roleInstanceName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getRemoteDesktopFileOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/remoteDesktopFile", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/remoteDesktopFile", httpMethod: "GET", responses: { 200: { - bodyMapper: { type: { name: "Stream" }, serializedName: "parsedResponse" } + bodyMapper: { + type: { name: "Stream" }, + serializedName: "parsedResponse", + }, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -765,29 +757,29 @@ const getRemoteDesktopFileOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.roleInstanceName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept2], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleInstanceListResult + bodyMapper: Mappers.RoleInstanceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts b/sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts index b72e85ce8ca7..2e427f06f6f8 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts @@ -20,7 +20,7 @@ import { CloudServiceRolesListResponse, CloudServiceRolesGetOptionalParams, CloudServiceRolesGetResponse, - CloudServiceRolesListNextResponse + CloudServiceRolesListNextResponse, } from "../models"; /// @@ -46,12 +46,12 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { public list( resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRolesListOptionalParams + options?: CloudServiceRolesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, cloudServiceName, - options + options, ); return { next() { @@ -68,9 +68,9 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { resourceGroupName, cloudServiceName, options, - settings + settings, ); - } + }, }; } @@ -78,7 +78,7 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRolesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServiceRolesListResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { resourceGroupName, cloudServiceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -106,12 +106,12 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { private async *listPagingAll( resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRolesListOptionalParams + options?: CloudServiceRolesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, cloudServiceName, - options + options, )) { yield* page; } @@ -128,11 +128,11 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { roleName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRolesGetOptionalParams + options?: CloudServiceRolesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { roleName, resourceGroupName, cloudServiceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -146,11 +146,11 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { private _list( resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRolesListOptionalParams + options?: CloudServiceRolesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -165,11 +165,11 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { resourceGroupName: string, cloudServiceName: string, nextLink: string, - options?: CloudServiceRolesListNextOptionalParams + options?: CloudServiceRolesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -177,16 +177,15 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles/{roleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles/{roleName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServiceRole + bodyMapper: Mappers.CloudServiceRole, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -194,51 +193,50 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.cloudServiceName, - Parameters.roleName + Parameters.roleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServiceRoleListResult + bodyMapper: Mappers.CloudServiceRoleListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServiceRoleListResult + bodyMapper: Mappers.CloudServiceRoleListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/cloudServices.ts b/sdk/compute/arm-compute/src/operations/cloudServices.ts index 75f18c5b18a4..91b17cb59e1c 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServices.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServices.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -43,7 +43,7 @@ import { CloudServicesRebuildOptionalParams, CloudServicesDeleteInstancesOptionalParams, CloudServicesListAllNextResponse, - CloudServicesListNextResponse + CloudServicesListNextResponse, } from "../models"; /// @@ -66,7 +66,7 @@ export class CloudServicesImpl implements CloudServices { * @param options The options parameters. */ public listAll( - options?: CloudServicesListAllOptionalParams + options?: CloudServicesListAllOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAllPagingAll(options); return { @@ -81,13 +81,13 @@ export class CloudServicesImpl implements CloudServices { throw new Error("maxPageSize is not supported by this operation."); } return this.listAllPagingPage(options, settings); - } + }, }; } private async *listAllPagingPage( options?: CloudServicesListAllOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServicesListAllResponse; let continuationToken = settings?.continuationToken; @@ -108,7 +108,7 @@ export class CloudServicesImpl implements CloudServices { } private async *listAllPagingAll( - options?: CloudServicesListAllOptionalParams + options?: CloudServicesListAllOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAllPagingPage(options)) { yield* page; @@ -123,7 +123,7 @@ export class CloudServicesImpl implements CloudServices { */ public list( resourceGroupName: string, - options?: CloudServicesListOptionalParams + options?: CloudServicesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, options); return { @@ -138,14 +138,14 @@ export class CloudServicesImpl implements CloudServices { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(resourceGroupName, options, settings); - } + }, }; } private async *listPagingPage( resourceGroupName: string, options?: CloudServicesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServicesListResponse; let continuationToken = settings?.continuationToken; @@ -160,7 +160,7 @@ export class CloudServicesImpl implements CloudServices { result = await this._listNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -171,7 +171,7 @@ export class CloudServicesImpl implements CloudServices { private async *listPagingAll( resourceGroupName: string, - options?: CloudServicesListOptionalParams + options?: CloudServicesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceGroupName, options)) { yield* page; @@ -188,7 +188,7 @@ export class CloudServicesImpl implements CloudServices { async beginCreateOrUpdate( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesCreateOrUpdateOptionalParams + options?: CloudServicesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -197,21 +197,20 @@ export class CloudServicesImpl implements CloudServices { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -220,8 +219,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -229,22 +228,22 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< CloudServicesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -260,12 +259,12 @@ export class CloudServicesImpl implements CloudServices { async beginCreateOrUpdateAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesCreateOrUpdateOptionalParams + options?: CloudServicesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -279,7 +278,7 @@ export class CloudServicesImpl implements CloudServices { async beginUpdate( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesUpdateOptionalParams + options?: CloudServicesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -288,21 +287,20 @@ export class CloudServicesImpl implements CloudServices { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -311,8 +309,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -320,22 +318,22 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< CloudServicesUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -350,12 +348,12 @@ export class CloudServicesImpl implements CloudServices { async beginUpdateAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesUpdateOptionalParams + options?: CloudServicesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -369,25 +367,24 @@ export class CloudServicesImpl implements CloudServices { async beginDelete( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesDeleteOptionalParams + options?: CloudServicesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -396,8 +393,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -405,19 +402,19 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -432,12 +429,12 @@ export class CloudServicesImpl implements CloudServices { async beginDeleteAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesDeleteOptionalParams + options?: CloudServicesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -451,11 +448,11 @@ export class CloudServicesImpl implements CloudServices { get( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesGetOptionalParams + options?: CloudServicesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -468,11 +465,11 @@ export class CloudServicesImpl implements CloudServices { getInstanceView( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesGetInstanceViewOptionalParams + options?: CloudServicesGetInstanceViewOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, options }, - getInstanceViewOperationSpec + getInstanceViewOperationSpec, ); } @@ -483,7 +480,7 @@ export class CloudServicesImpl implements CloudServices { * @param options The options parameters. */ private _listAll( - options?: CloudServicesListAllOptionalParams + options?: CloudServicesListAllOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listAllOperationSpec); } @@ -496,11 +493,11 @@ export class CloudServicesImpl implements CloudServices { */ private _list( resourceGroupName: string, - options?: CloudServicesListOptionalParams + options?: CloudServicesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listOperationSpec + listOperationSpec, ); } @@ -513,25 +510,24 @@ export class CloudServicesImpl implements CloudServices { async beginStart( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesStartOptionalParams + options?: CloudServicesStartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -540,8 +536,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -549,19 +545,19 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: startOperationSpec + spec: startOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -576,12 +572,12 @@ export class CloudServicesImpl implements CloudServices { async beginStartAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesStartOptionalParams + options?: CloudServicesStartOptionalParams, ): Promise { const poller = await this.beginStart( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -596,25 +592,24 @@ export class CloudServicesImpl implements CloudServices { async beginPowerOff( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesPowerOffOptionalParams + options?: CloudServicesPowerOffOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -623,8 +618,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -632,19 +627,19 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: powerOffOperationSpec + spec: powerOffOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -660,12 +655,12 @@ export class CloudServicesImpl implements CloudServices { async beginPowerOffAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesPowerOffOptionalParams + options?: CloudServicesPowerOffOptionalParams, ): Promise { const poller = await this.beginPowerOff( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -679,25 +674,24 @@ export class CloudServicesImpl implements CloudServices { async beginRestart( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesRestartOptionalParams + options?: CloudServicesRestartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -706,8 +700,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -715,19 +709,19 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -742,12 +736,12 @@ export class CloudServicesImpl implements CloudServices { async beginRestartAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesRestartOptionalParams + options?: CloudServicesRestartOptionalParams, ): Promise { const poller = await this.beginRestart( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -762,25 +756,24 @@ export class CloudServicesImpl implements CloudServices { async beginReimage( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesReimageOptionalParams + options?: CloudServicesReimageOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -789,8 +782,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -798,19 +791,19 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: reimageOperationSpec + spec: reimageOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -826,12 +819,12 @@ export class CloudServicesImpl implements CloudServices { async beginReimageAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesReimageOptionalParams + options?: CloudServicesReimageOptionalParams, ): Promise { const poller = await this.beginReimage( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -847,25 +840,24 @@ export class CloudServicesImpl implements CloudServices { async beginRebuild( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesRebuildOptionalParams + options?: CloudServicesRebuildOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -874,8 +866,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -883,19 +875,19 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: rebuildOperationSpec + spec: rebuildOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -912,12 +904,12 @@ export class CloudServicesImpl implements CloudServices { async beginRebuildAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesRebuildOptionalParams + options?: CloudServicesRebuildOptionalParams, ): Promise { const poller = await this.beginRebuild( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -931,25 +923,24 @@ export class CloudServicesImpl implements CloudServices { async beginDeleteInstances( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesDeleteInstancesOptionalParams + options?: CloudServicesDeleteInstancesOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -958,8 +949,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -967,19 +958,19 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: deleteInstancesOperationSpec + spec: deleteInstancesOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -994,12 +985,12 @@ export class CloudServicesImpl implements CloudServices { async beginDeleteInstancesAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesDeleteInstancesOptionalParams + options?: CloudServicesDeleteInstancesOptionalParams, ): Promise { const poller = await this.beginDeleteInstances( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -1011,11 +1002,11 @@ export class CloudServicesImpl implements CloudServices { */ private _listAllNext( nextLink: string, - options?: CloudServicesListAllNextOptionalParams + options?: CloudServicesListAllNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listAllNextOperationSpec + listAllNextOperationSpec, ); } @@ -1028,11 +1019,11 @@ export class CloudServicesImpl implements CloudServices { private _listNext( resourceGroupName: string, nextLink: string, - options?: CloudServicesListNextOptionalParams + options?: CloudServicesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -1040,25 +1031,24 @@ export class CloudServicesImpl implements CloudServices { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, 201: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, 202: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, 204: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters33, queryParameters: [Parameters.apiVersion4], @@ -1066,32 +1056,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, 201: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, 202: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, 204: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters34, queryParameters: [Parameters.apiVersion4], @@ -1099,15 +1088,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", httpMethod: "DELETE", responses: { 200: {}, @@ -1115,104 +1103,99 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getInstanceViewOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/instanceView", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/instanceView", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServiceInstanceView + bodyMapper: Mappers.CloudServiceInstanceView, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAllOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/cloudServices", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/cloudServices", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServiceListResult + bodyMapper: Mappers.CloudServiceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServiceListResult + bodyMapper: Mappers.CloudServiceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const startOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/start", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/start", httpMethod: "POST", responses: { 200: {}, @@ -1220,22 +1203,21 @@ const startOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const powerOffOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/poweroff", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/poweroff", httpMethod: "POST", responses: { 200: {}, @@ -1243,22 +1225,21 @@ const powerOffOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/restart", httpMethod: "POST", responses: { 200: {}, @@ -1266,8 +1247,8 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion4], @@ -1275,15 +1256,14 @@ const restartOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reimageOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/reimage", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/reimage", httpMethod: "POST", responses: { 200: {}, @@ -1291,8 +1271,8 @@ const reimageOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion4], @@ -1300,15 +1280,14 @@ const reimageOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const rebuildOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/rebuild", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/rebuild", httpMethod: "POST", responses: { 200: {}, @@ -1316,8 +1295,8 @@ const rebuildOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion4], @@ -1325,15 +1304,14 @@ const rebuildOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteInstancesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/delete", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/delete", httpMethod: "POST", responses: { 200: {}, @@ -1341,8 +1319,8 @@ const deleteInstancesOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion4], @@ -1350,48 +1328,48 @@ const deleteInstancesOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listAllNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServiceListResult + bodyMapper: Mappers.CloudServiceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServiceListResult + bodyMapper: Mappers.CloudServiceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts b/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts index 7b8cb805bb4a..adf65cf09355 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -27,13 +27,14 @@ import { CloudServicesUpdateDomainWalkUpdateDomainOptionalParams, CloudServicesUpdateDomainGetUpdateDomainOptionalParams, CloudServicesUpdateDomainGetUpdateDomainResponse, - CloudServicesUpdateDomainListUpdateDomainsNextResponse + CloudServicesUpdateDomainListUpdateDomainsNextResponse, } from "../models"; /// /** Class containing CloudServicesUpdateDomain operations. */ export class CloudServicesUpdateDomainImpl - implements CloudServicesUpdateDomain { + implements CloudServicesUpdateDomain +{ private readonly client: ComputeManagementClient; /** @@ -53,12 +54,12 @@ export class CloudServicesUpdateDomainImpl public listUpdateDomains( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams + options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listUpdateDomainsPagingAll( resourceGroupName, cloudServiceName, - options + options, ); return { next() { @@ -75,9 +76,9 @@ export class CloudServicesUpdateDomainImpl resourceGroupName, cloudServiceName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +86,7 @@ export class CloudServicesUpdateDomainImpl resourceGroupName: string, cloudServiceName: string, options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServicesUpdateDomainListUpdateDomainsResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +94,7 @@ export class CloudServicesUpdateDomainImpl result = await this._listUpdateDomains( resourceGroupName, cloudServiceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -105,7 +106,7 @@ export class CloudServicesUpdateDomainImpl resourceGroupName, cloudServiceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,12 +118,12 @@ export class CloudServicesUpdateDomainImpl private async *listUpdateDomainsPagingAll( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams + options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listUpdateDomainsPagingPage( resourceGroupName, cloudServiceName, - options + options, )) { yield* page; } @@ -141,25 +142,24 @@ export class CloudServicesUpdateDomainImpl resourceGroupName: string, cloudServiceName: string, updateDomain: number, - options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams + options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -168,8 +168,8 @@ export class CloudServicesUpdateDomainImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -177,19 +177,19 @@ export class CloudServicesUpdateDomainImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, updateDomain, options }, - spec: walkUpdateDomainOperationSpec + spec: walkUpdateDomainOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -208,13 +208,13 @@ export class CloudServicesUpdateDomainImpl resourceGroupName: string, cloudServiceName: string, updateDomain: number, - options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams + options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams, ): Promise { const poller = await this.beginWalkUpdateDomain( resourceGroupName, cloudServiceName, updateDomain, - options + options, ); return poller.pollUntilDone(); } @@ -233,11 +233,11 @@ export class CloudServicesUpdateDomainImpl resourceGroupName: string, cloudServiceName: string, updateDomain: number, - options?: CloudServicesUpdateDomainGetUpdateDomainOptionalParams + options?: CloudServicesUpdateDomainGetUpdateDomainOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, updateDomain, options }, - getUpdateDomainOperationSpec + getUpdateDomainOperationSpec, ); } @@ -250,11 +250,11 @@ export class CloudServicesUpdateDomainImpl private _listUpdateDomains( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams + options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, options }, - listUpdateDomainsOperationSpec + listUpdateDomainsOperationSpec, ); } @@ -269,11 +269,11 @@ export class CloudServicesUpdateDomainImpl resourceGroupName: string, cloudServiceName: string, nextLink: string, - options?: CloudServicesUpdateDomainListUpdateDomainsNextOptionalParams + options?: CloudServicesUpdateDomainListUpdateDomainsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, nextLink, options }, - listUpdateDomainsNextOperationSpec + listUpdateDomainsNextOperationSpec, ); } } @@ -281,8 +281,7 @@ export class CloudServicesUpdateDomainImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const walkUpdateDomainOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", httpMethod: "PUT", responses: { 200: {}, @@ -290,8 +289,8 @@ const walkUpdateDomainOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters36, queryParameters: [Parameters.apiVersion4], @@ -300,23 +299,22 @@ const walkUpdateDomainOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.cloudServiceName, - Parameters.updateDomain + Parameters.updateDomain, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getUpdateDomainOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UpdateDomain + bodyMapper: Mappers.UpdateDomain, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -324,51 +322,50 @@ const getUpdateDomainOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.cloudServiceName, - Parameters.updateDomain + Parameters.updateDomain, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listUpdateDomainsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UpdateDomainListResult + bodyMapper: Mappers.UpdateDomainListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listUpdateDomainsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UpdateDomainListResult + bodyMapper: Mappers.UpdateDomainListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/communityGalleries.ts b/sdk/compute/arm-compute/src/operations/communityGalleries.ts index 47d5288fa9d4..ae06f506fec0 100644 --- a/sdk/compute/arm-compute/src/operations/communityGalleries.ts +++ b/sdk/compute/arm-compute/src/operations/communityGalleries.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; import { CommunityGalleriesGetOptionalParams, - CommunityGalleriesGetResponse + CommunityGalleriesGetResponse, } from "../models"; /** Class containing CommunityGalleries operations. */ @@ -37,11 +37,11 @@ export class CommunityGalleriesImpl implements CommunityGalleries { get( location: string, publicGalleryName: string, - options?: CommunityGalleriesGetOptionalParams + options?: CommunityGalleriesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publicGalleryName, options }, - getOperationSpec + getOperationSpec, ); } } @@ -49,24 +49,23 @@ export class CommunityGalleriesImpl implements CommunityGalleries { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CommunityGallery + bodyMapper: Mappers.CommunityGallery, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.publicGalleryName + Parameters.publicGalleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts index cdc9af0968b1..576ed624d94d 100644 --- a/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts @@ -20,13 +20,14 @@ import { CommunityGalleryImageVersionsListResponse, CommunityGalleryImageVersionsGetOptionalParams, CommunityGalleryImageVersionsGetResponse, - CommunityGalleryImageVersionsListNextResponse + CommunityGalleryImageVersionsListNextResponse, } from "../models"; /// /** Class containing CommunityGalleryImageVersions operations. */ export class CommunityGalleryImageVersionsImpl - implements CommunityGalleryImageVersions { + implements CommunityGalleryImageVersions +{ private readonly client: ComputeManagementClient; /** @@ -48,13 +49,13 @@ export class CommunityGalleryImageVersionsImpl location: string, publicGalleryName: string, galleryImageName: string, - options?: CommunityGalleryImageVersionsListOptionalParams + options?: CommunityGalleryImageVersionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( location, publicGalleryName, galleryImageName, - options + options, ); return { next() { @@ -72,9 +73,9 @@ export class CommunityGalleryImageVersionsImpl publicGalleryName, galleryImageName, options, - settings + settings, ); - } + }, }; } @@ -83,7 +84,7 @@ export class CommunityGalleryImageVersionsImpl publicGalleryName: string, galleryImageName: string, options?: CommunityGalleryImageVersionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CommunityGalleryImageVersionsListResponse; let continuationToken = settings?.continuationToken; @@ -92,7 +93,7 @@ export class CommunityGalleryImageVersionsImpl location, publicGalleryName, galleryImageName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -105,7 +106,7 @@ export class CommunityGalleryImageVersionsImpl publicGalleryName, galleryImageName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -118,13 +119,13 @@ export class CommunityGalleryImageVersionsImpl location: string, publicGalleryName: string, galleryImageName: string, - options?: CommunityGalleryImageVersionsListOptionalParams + options?: CommunityGalleryImageVersionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( location, publicGalleryName, galleryImageName, - options + options, )) { yield* page; } @@ -145,7 +146,7 @@ export class CommunityGalleryImageVersionsImpl publicGalleryName: string, galleryImageName: string, galleryImageVersionName: string, - options?: CommunityGalleryImageVersionsGetOptionalParams + options?: CommunityGalleryImageVersionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -153,9 +154,9 @@ export class CommunityGalleryImageVersionsImpl publicGalleryName, galleryImageName, galleryImageVersionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -170,11 +171,11 @@ export class CommunityGalleryImageVersionsImpl location: string, publicGalleryName: string, galleryImageName: string, - options?: CommunityGalleryImageVersionsListOptionalParams + options?: CommunityGalleryImageVersionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publicGalleryName, galleryImageName, options }, - listOperationSpec + listOperationSpec, ); } @@ -191,11 +192,11 @@ export class CommunityGalleryImageVersionsImpl publicGalleryName: string, galleryImageName: string, nextLink: string, - options?: CommunityGalleryImageVersionsListNextOptionalParams + options?: CommunityGalleryImageVersionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publicGalleryName, galleryImageName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -203,16 +204,15 @@ export class CommunityGalleryImageVersionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CommunityGalleryImageVersion + bodyMapper: Mappers.CommunityGalleryImageVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -221,22 +221,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.location1, Parameters.galleryImageName, Parameters.galleryImageVersionName, - Parameters.publicGalleryName + Parameters.publicGalleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CommunityGalleryImageVersionList + bodyMapper: Mappers.CommunityGalleryImageVersionList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -244,21 +243,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.location1, Parameters.galleryImageName, - Parameters.publicGalleryName + Parameters.publicGalleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CommunityGalleryImageVersionList + bodyMapper: Mappers.CommunityGalleryImageVersionList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -266,8 +265,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.nextLink, Parameters.location1, Parameters.galleryImageName, - Parameters.publicGalleryName + Parameters.publicGalleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts b/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts index 71e60e4eea4e..63ec97c63097 100644 --- a/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts @@ -20,7 +20,7 @@ import { CommunityGalleryImagesListResponse, CommunityGalleryImagesGetOptionalParams, CommunityGalleryImagesGetResponse, - CommunityGalleryImagesListNextResponse + CommunityGalleryImagesListNextResponse, } from "../models"; /// @@ -45,7 +45,7 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { public list( location: string, publicGalleryName: string, - options?: CommunityGalleryImagesListOptionalParams + options?: CommunityGalleryImagesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(location, publicGalleryName, options); return { @@ -63,9 +63,9 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { location, publicGalleryName, options, - settings + settings, ); - } + }, }; } @@ -73,7 +73,7 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { location: string, publicGalleryName: string, options?: CommunityGalleryImagesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CommunityGalleryImagesListResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { location, publicGalleryName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -101,12 +101,12 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { private async *listPagingAll( location: string, publicGalleryName: string, - options?: CommunityGalleryImagesListOptionalParams + options?: CommunityGalleryImagesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( location, publicGalleryName, - options + options, )) { yield* page; } @@ -123,11 +123,11 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { location: string, publicGalleryName: string, galleryImageName: string, - options?: CommunityGalleryImagesGetOptionalParams + options?: CommunityGalleryImagesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publicGalleryName, galleryImageName, options }, - getOperationSpec + getOperationSpec, ); } @@ -140,11 +140,11 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { private _list( location: string, publicGalleryName: string, - options?: CommunityGalleryImagesListOptionalParams + options?: CommunityGalleryImagesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publicGalleryName, options }, - listOperationSpec + listOperationSpec, ); } @@ -159,11 +159,11 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { location: string, publicGalleryName: string, nextLink: string, - options?: CommunityGalleryImagesListNextOptionalParams + options?: CommunityGalleryImagesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publicGalleryName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -171,16 +171,15 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CommunityGalleryImage + bodyMapper: Mappers.CommunityGalleryImage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -188,51 +187,50 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.location1, Parameters.galleryImageName, - Parameters.publicGalleryName + Parameters.publicGalleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CommunityGalleryImageList + bodyMapper: Mappers.CommunityGalleryImageList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.publicGalleryName + Parameters.publicGalleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CommunityGalleryImageList + bodyMapper: Mappers.CommunityGalleryImageList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.location1, - Parameters.publicGalleryName + Parameters.publicGalleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts b/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts index c19ce7be2462..ef503dde24e7 100644 --- a/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts +++ b/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts @@ -30,7 +30,7 @@ import { DedicatedHostGroupsGetOptionalParams, DedicatedHostGroupsGetResponse, DedicatedHostGroupsListByResourceGroupNextResponse, - DedicatedHostGroupsListBySubscriptionNextResponse + DedicatedHostGroupsListBySubscriptionNextResponse, } from "../models"; /// @@ -54,7 +54,7 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { */ public listByResourceGroup( resourceGroupName: string, - options?: DedicatedHostGroupsListByResourceGroupOptionalParams + options?: DedicatedHostGroupsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -71,16 +71,16 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: DedicatedHostGroupsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DedicatedHostGroupsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -95,7 +95,7 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -106,11 +106,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: DedicatedHostGroupsListByResourceGroupOptionalParams + options?: DedicatedHostGroupsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -122,7 +122,7 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { * @param options The options parameters. */ public listBySubscription( - options?: DedicatedHostGroupsListBySubscriptionOptionalParams + options?: DedicatedHostGroupsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -137,13 +137,13 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: DedicatedHostGroupsListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DedicatedHostGroupsListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -164,7 +164,7 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { } private async *listBySubscriptionPagingAll( - options?: DedicatedHostGroupsListBySubscriptionOptionalParams + options?: DedicatedHostGroupsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -183,11 +183,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { resourceGroupName: string, hostGroupName: string, parameters: DedicatedHostGroup, - options?: DedicatedHostGroupsCreateOrUpdateOptionalParams + options?: DedicatedHostGroupsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, hostGroupName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -202,11 +202,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { resourceGroupName: string, hostGroupName: string, parameters: DedicatedHostGroupUpdate, - options?: DedicatedHostGroupsUpdateOptionalParams + options?: DedicatedHostGroupsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, hostGroupName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -219,11 +219,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { delete( resourceGroupName: string, hostGroupName: string, - options?: DedicatedHostGroupsDeleteOptionalParams + options?: DedicatedHostGroupsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, hostGroupName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -236,11 +236,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { get( resourceGroupName: string, hostGroupName: string, - options?: DedicatedHostGroupsGetOptionalParams + options?: DedicatedHostGroupsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, hostGroupName, options }, - getOperationSpec + getOperationSpec, ); } @@ -252,11 +252,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { */ private _listByResourceGroup( resourceGroupName: string, - options?: DedicatedHostGroupsListByResourceGroupOptionalParams + options?: DedicatedHostGroupsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -266,11 +266,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { * @param options The options parameters. */ private _listBySubscription( - options?: DedicatedHostGroupsListBySubscriptionOptionalParams + options?: DedicatedHostGroupsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -283,11 +283,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: DedicatedHostGroupsListByResourceGroupNextOptionalParams + options?: DedicatedHostGroupsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -298,11 +298,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { */ private _listBySubscriptionNext( nextLink: string, - options?: DedicatedHostGroupsListBySubscriptionNextOptionalParams + options?: DedicatedHostGroupsListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } } @@ -310,19 +310,18 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DedicatedHostGroup + bodyMapper: Mappers.DedicatedHostGroup, }, 201: { - bodyMapper: Mappers.DedicatedHostGroup + bodyMapper: Mappers.DedicatedHostGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters15, queryParameters: [Parameters.apiVersion], @@ -330,23 +329,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.hostGroupName + Parameters.hostGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.DedicatedHostGroup + bodyMapper: Mappers.DedicatedHostGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters16, queryParameters: [Parameters.apiVersion], @@ -354,129 +352,125 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.hostGroupName + Parameters.hostGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.hostGroupName + Parameters.hostGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostGroup + bodyMapper: Mappers.DedicatedHostGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand2], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.hostGroupName + Parameters.hostGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostGroupListResult + bodyMapper: Mappers.DedicatedHostGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/hostGroups", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/hostGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostGroupListResult + bodyMapper: Mappers.DedicatedHostGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostGroupListResult + bodyMapper: Mappers.DedicatedHostGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostGroupListResult + bodyMapper: Mappers.DedicatedHostGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts b/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts index e2a6377b9fdd..ae17d7aaf55b 100644 --- a/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts +++ b/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -37,7 +37,7 @@ import { DedicatedHostsRestartOptionalParams, DedicatedHostsRedeployOptionalParams, DedicatedHostsRedeployResponse, - DedicatedHostsListByHostGroupNextResponse + DedicatedHostsListByHostGroupNextResponse, } from "../models"; /// @@ -63,12 +63,12 @@ export class DedicatedHostsImpl implements DedicatedHosts { public listByHostGroup( resourceGroupName: string, hostGroupName: string, - options?: DedicatedHostsListByHostGroupOptionalParams + options?: DedicatedHostsListByHostGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByHostGroupPagingAll( resourceGroupName, hostGroupName, - options + options, ); return { next() { @@ -85,9 +85,9 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName, hostGroupName, options, - settings + settings, ); - } + }, }; } @@ -95,7 +95,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, options?: DedicatedHostsListByHostGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DedicatedHostsListByHostGroupResponse; let continuationToken = settings?.continuationToken; @@ -103,7 +103,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { result = await this._listByHostGroup( resourceGroupName, hostGroupName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -115,7 +115,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName, hostGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -127,12 +127,12 @@ export class DedicatedHostsImpl implements DedicatedHosts { private async *listByHostGroupPagingAll( resourceGroupName: string, hostGroupName: string, - options?: DedicatedHostsListByHostGroupOptionalParams + options?: DedicatedHostsListByHostGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByHostGroupPagingPage( resourceGroupName, hostGroupName, - options + options, )) { yield* page; } @@ -150,13 +150,13 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsListAvailableSizesOptionalParams + options?: DedicatedHostsListAvailableSizesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAvailableSizesPagingAll( resourceGroupName, hostGroupName, hostName, - options + options, ); return { next() { @@ -174,9 +174,9 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName, hostName, options, - settings + settings, ); - } + }, }; } @@ -185,14 +185,14 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName: string, hostName: string, options?: DedicatedHostsListAvailableSizesOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: DedicatedHostsListAvailableSizesResponse; result = await this._listAvailableSizes( resourceGroupName, hostGroupName, hostName, - options + options, ); yield result.value || []; } @@ -201,13 +201,13 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsListAvailableSizesOptionalParams + options?: DedicatedHostsListAvailableSizesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAvailableSizesPagingPage( resourceGroupName, hostGroupName, hostName, - options + options, )) { yield* page; } @@ -226,7 +226,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHost, - options?: DedicatedHostsCreateOrUpdateOptionalParams + options?: DedicatedHostsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -235,21 +235,20 @@ export class DedicatedHostsImpl implements DedicatedHosts { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -258,8 +257,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -267,22 +266,22 @@ export class DedicatedHostsImpl implements DedicatedHosts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, hostGroupName, hostName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< DedicatedHostsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -301,14 +300,14 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHost, - options?: DedicatedHostsCreateOrUpdateOptionalParams + options?: DedicatedHostsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, hostGroupName, hostName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -326,7 +325,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHostUpdate, - options?: DedicatedHostsUpdateOptionalParams + options?: DedicatedHostsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -335,21 +334,20 @@ export class DedicatedHostsImpl implements DedicatedHosts { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -358,8 +356,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -367,22 +365,22 @@ export class DedicatedHostsImpl implements DedicatedHosts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, hostGroupName, hostName, parameters, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< DedicatedHostsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -401,14 +399,14 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHostUpdate, - options?: DedicatedHostsUpdateOptionalParams + options?: DedicatedHostsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, hostGroupName, hostName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -424,25 +422,24 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsDeleteOptionalParams + options?: DedicatedHostsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -451,8 +448,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -460,19 +457,19 @@ export class DedicatedHostsImpl implements DedicatedHosts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, hostGroupName, hostName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -489,13 +486,13 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsDeleteOptionalParams + options?: DedicatedHostsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, hostGroupName, hostName, - options + options, ); return poller.pollUntilDone(); } @@ -511,11 +508,11 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsGetOptionalParams + options?: DedicatedHostsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, hostGroupName, hostName, options }, - getOperationSpec + getOperationSpec, ); } @@ -529,11 +526,11 @@ export class DedicatedHostsImpl implements DedicatedHosts { private _listByHostGroup( resourceGroupName: string, hostGroupName: string, - options?: DedicatedHostsListByHostGroupOptionalParams + options?: DedicatedHostsListByHostGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, hostGroupName, options }, - listByHostGroupOperationSpec + listByHostGroupOperationSpec, ); } @@ -551,25 +548,24 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsRestartOptionalParams + options?: DedicatedHostsRestartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -578,8 +574,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -587,19 +583,19 @@ export class DedicatedHostsImpl implements DedicatedHosts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, hostGroupName, hostName, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -619,13 +615,13 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsRestartOptionalParams + options?: DedicatedHostsRestartOptionalParams, ): Promise { const poller = await this.beginRestart( resourceGroupName, hostGroupName, hostName, - options + options, ); return poller.pollUntilDone(); } @@ -644,7 +640,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsRedeployOptionalParams + options?: DedicatedHostsRedeployOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -653,21 +649,20 @@ export class DedicatedHostsImpl implements DedicatedHosts { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -676,8 +671,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -685,22 +680,22 @@ export class DedicatedHostsImpl implements DedicatedHosts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, hostGroupName, hostName, options }, - spec: redeployOperationSpec + spec: redeployOperationSpec, }); const poller = await createHttpPoller< DedicatedHostsRedeployResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -720,13 +715,13 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsRedeployOptionalParams + options?: DedicatedHostsRedeployOptionalParams, ): Promise { const poller = await this.beginRedeploy( resourceGroupName, hostGroupName, hostName, - options + options, ); return poller.pollUntilDone(); } @@ -743,11 +738,11 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsListAvailableSizesOptionalParams + options?: DedicatedHostsListAvailableSizesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, hostGroupName, hostName, options }, - listAvailableSizesOperationSpec + listAvailableSizesOperationSpec, ); } @@ -762,11 +757,11 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, nextLink: string, - options?: DedicatedHostsListByHostGroupNextOptionalParams + options?: DedicatedHostsListByHostGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, hostGroupName, nextLink, options }, - listByHostGroupNextOperationSpec + listByHostGroupNextOperationSpec, ); } } @@ -774,25 +769,24 @@ export class DedicatedHostsImpl implements DedicatedHosts { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, 201: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, 202: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, 204: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters17, queryParameters: [Parameters.apiVersion], @@ -801,32 +795,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.hostGroupName, - Parameters.hostName + Parameters.hostName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, 201: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, 202: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, 204: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters18, queryParameters: [Parameters.apiVersion], @@ -835,15 +828,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.hostGroupName, - Parameters.hostName + Parameters.hostName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", httpMethod: "DELETE", responses: { 200: {}, @@ -851,8 +843,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -860,22 +852,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.hostGroupName, - Parameters.hostName + Parameters.hostName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand2], urlParameters: [ @@ -883,36 +874,34 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.hostGroupName, - Parameters.hostName + Parameters.hostName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByHostGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostListResult + bodyMapper: Mappers.DedicatedHostListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.hostGroupName + Parameters.hostGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/restart", httpMethod: "POST", responses: { 200: {}, @@ -920,8 +909,8 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -929,31 +918,30 @@ const restartOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.hostGroupName, - Parameters.hostName + Parameters.hostName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const redeployOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/redeploy", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/redeploy", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.DedicatedHostsRedeployHeaders + headersMapper: Mappers.DedicatedHostsRedeployHeaders, }, 201: { - headersMapper: Mappers.DedicatedHostsRedeployHeaders + headersMapper: Mappers.DedicatedHostsRedeployHeaders, }, 202: { - headersMapper: Mappers.DedicatedHostsRedeployHeaders + headersMapper: Mappers.DedicatedHostsRedeployHeaders, }, 204: { - headersMapper: Mappers.DedicatedHostsRedeployHeaders + headersMapper: Mappers.DedicatedHostsRedeployHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -961,22 +949,21 @@ const redeployOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.hostGroupName1, - Parameters.hostName1 + Parameters.hostName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAvailableSizesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/hostSizes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/hostSizes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostSizeListResult + bodyMapper: Mappers.DedicatedHostSizeListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -984,29 +971,29 @@ const listAvailableSizesOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.hostGroupName1, - Parameters.hostName1 + Parameters.hostName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByHostGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostListResult + bodyMapper: Mappers.DedicatedHostListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.hostGroupName + Parameters.hostGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/diskAccesses.ts b/sdk/compute/arm-compute/src/operations/diskAccesses.ts index 4054a2fff630..827fe030764f 100644 --- a/sdk/compute/arm-compute/src/operations/diskAccesses.ts +++ b/sdk/compute/arm-compute/src/operations/diskAccesses.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -48,7 +48,7 @@ import { DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams, DiskAccessesListByResourceGroupNextResponse, DiskAccessesListNextResponse, - DiskAccessesListPrivateEndpointConnectionsNextResponse + DiskAccessesListPrivateEndpointConnectionsNextResponse, } from "../models"; /// @@ -71,7 +71,7 @@ export class DiskAccessesImpl implements DiskAccesses { */ public listByResourceGroup( resourceGroupName: string, - options?: DiskAccessesListByResourceGroupOptionalParams + options?: DiskAccessesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -88,16 +88,16 @@ export class DiskAccessesImpl implements DiskAccesses { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: DiskAccessesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DiskAccessesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -112,7 +112,7 @@ export class DiskAccessesImpl implements DiskAccesses { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -123,11 +123,11 @@ export class DiskAccessesImpl implements DiskAccesses { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: DiskAccessesListByResourceGroupOptionalParams + options?: DiskAccessesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -138,7 +138,7 @@ export class DiskAccessesImpl implements DiskAccesses { * @param options The options parameters. */ public list( - options?: DiskAccessesListOptionalParams + options?: DiskAccessesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -153,13 +153,13 @@ export class DiskAccessesImpl implements DiskAccesses { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: DiskAccessesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DiskAccessesListResponse; let continuationToken = settings?.continuationToken; @@ -180,7 +180,7 @@ export class DiskAccessesImpl implements DiskAccesses { } private async *listPagingAll( - options?: DiskAccessesListOptionalParams + options?: DiskAccessesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -198,12 +198,12 @@ export class DiskAccessesImpl implements DiskAccesses { public listPrivateEndpointConnections( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams + options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPrivateEndpointConnectionsPagingAll( resourceGroupName, diskAccessName, - options + options, ); return { next() { @@ -220,9 +220,9 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName, diskAccessName, options, - settings + settings, ); - } + }, }; } @@ -230,7 +230,7 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DiskAccessesListPrivateEndpointConnectionsResponse; let continuationToken = settings?.continuationToken; @@ -238,7 +238,7 @@ export class DiskAccessesImpl implements DiskAccesses { result = await this._listPrivateEndpointConnections( resourceGroupName, diskAccessName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -250,7 +250,7 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName, diskAccessName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -262,12 +262,12 @@ export class DiskAccessesImpl implements DiskAccesses { private async *listPrivateEndpointConnectionsPagingAll( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams + options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPrivateEndpointConnectionsPagingPage( resourceGroupName, diskAccessName, - options + options, )) { yield* page; } @@ -286,7 +286,7 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccess, - options?: DiskAccessesCreateOrUpdateOptionalParams + options?: DiskAccessesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -295,21 +295,20 @@ export class DiskAccessesImpl implements DiskAccesses { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -318,8 +317,8 @@ export class DiskAccessesImpl implements DiskAccesses { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -327,22 +326,22 @@ export class DiskAccessesImpl implements DiskAccesses { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskAccessName, diskAccess, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< DiskAccessesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -361,13 +360,13 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccess, - options?: DiskAccessesCreateOrUpdateOptionalParams + options?: DiskAccessesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, diskAccessName, diskAccess, - options + options, ); return poller.pollUntilDone(); } @@ -385,7 +384,7 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccessUpdate, - options?: DiskAccessesUpdateOptionalParams + options?: DiskAccessesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -394,21 +393,20 @@ export class DiskAccessesImpl implements DiskAccesses { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -417,8 +415,8 @@ export class DiskAccessesImpl implements DiskAccesses { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -426,22 +424,22 @@ export class DiskAccessesImpl implements DiskAccesses { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskAccessName, diskAccess, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< DiskAccessesUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -460,13 +458,13 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccessUpdate, - options?: DiskAccessesUpdateOptionalParams + options?: DiskAccessesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, diskAccessName, diskAccess, - options + options, ); return poller.pollUntilDone(); } @@ -482,11 +480,11 @@ export class DiskAccessesImpl implements DiskAccesses { get( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesGetOptionalParams + options?: DiskAccessesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskAccessName, options }, - getOperationSpec + getOperationSpec, ); } @@ -501,25 +499,24 @@ export class DiskAccessesImpl implements DiskAccesses { async beginDelete( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesDeleteOptionalParams + options?: DiskAccessesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -528,8 +525,8 @@ export class DiskAccessesImpl implements DiskAccesses { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -537,19 +534,19 @@ export class DiskAccessesImpl implements DiskAccesses { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskAccessName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -566,12 +563,12 @@ export class DiskAccessesImpl implements DiskAccesses { async beginDeleteAndWait( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesDeleteOptionalParams + options?: DiskAccessesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, diskAccessName, - options + options, ); return poller.pollUntilDone(); } @@ -583,11 +580,11 @@ export class DiskAccessesImpl implements DiskAccesses { */ private _listByResourceGroup( resourceGroupName: string, - options?: DiskAccessesListByResourceGroupOptionalParams + options?: DiskAccessesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -596,7 +593,7 @@ export class DiskAccessesImpl implements DiskAccesses { * @param options The options parameters. */ private _list( - options?: DiskAccessesListOptionalParams + options?: DiskAccessesListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -612,11 +609,11 @@ export class DiskAccessesImpl implements DiskAccesses { getPrivateLinkResources( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesGetPrivateLinkResourcesOptionalParams + options?: DiskAccessesGetPrivateLinkResourcesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskAccessName, options }, - getPrivateLinkResourcesOperationSpec + getPrivateLinkResourcesOperationSpec, ); } @@ -637,7 +634,7 @@ export class DiskAccessesImpl implements DiskAccesses { diskAccessName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, - options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -646,21 +643,20 @@ export class DiskAccessesImpl implements DiskAccesses { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -669,8 +665,8 @@ export class DiskAccessesImpl implements DiskAccesses { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -678,8 +674,8 @@ export class DiskAccessesImpl implements DiskAccesses { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -690,16 +686,16 @@ export class DiskAccessesImpl implements DiskAccesses { diskAccessName, privateEndpointConnectionName, privateEndpointConnection, - options + options, }, - spec: updateAPrivateEndpointConnectionOperationSpec + spec: updateAPrivateEndpointConnectionOperationSpec, }); const poller = await createHttpPoller< DiskAccessesUpdateAPrivateEndpointConnectionResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -722,14 +718,14 @@ export class DiskAccessesImpl implements DiskAccesses { diskAccessName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, - options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams, ): Promise { const poller = await this.beginUpdateAPrivateEndpointConnection( resourceGroupName, diskAccessName, privateEndpointConnectionName, privateEndpointConnection, - options + options, ); return poller.pollUntilDone(); } @@ -747,16 +743,16 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, - options?: DiskAccessesGetAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesGetAPrivateEndpointConnectionOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskAccessName, privateEndpointConnectionName, - options + options, }, - getAPrivateEndpointConnectionOperationSpec + getAPrivateEndpointConnectionOperationSpec, ); } @@ -773,25 +769,24 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, - options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -800,8 +795,8 @@ export class DiskAccessesImpl implements DiskAccesses { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -809,8 +804,8 @@ export class DiskAccessesImpl implements DiskAccesses { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -820,13 +815,13 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName, diskAccessName, privateEndpointConnectionName, - options + options, }, - spec: deleteAPrivateEndpointConnectionOperationSpec + spec: deleteAPrivateEndpointConnectionOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -845,13 +840,13 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, - options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams, ): Promise { const poller = await this.beginDeleteAPrivateEndpointConnection( resourceGroupName, diskAccessName, privateEndpointConnectionName, - options + options, ); return poller.pollUntilDone(); } @@ -867,11 +862,11 @@ export class DiskAccessesImpl implements DiskAccesses { private _listPrivateEndpointConnections( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams + options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskAccessName, options }, - listPrivateEndpointConnectionsOperationSpec + listPrivateEndpointConnectionsOperationSpec, ); } @@ -884,11 +879,11 @@ export class DiskAccessesImpl implements DiskAccesses { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: DiskAccessesListByResourceGroupNextOptionalParams + options?: DiskAccessesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -899,11 +894,11 @@ export class DiskAccessesImpl implements DiskAccesses { */ private _listNext( nextLink: string, - options?: DiskAccessesListNextOptionalParams + options?: DiskAccessesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -921,11 +916,11 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, nextLink: string, - options?: DiskAccessesListPrivateEndpointConnectionsNextOptionalParams + options?: DiskAccessesListPrivateEndpointConnectionsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskAccessName, nextLink, options }, - listPrivateEndpointConnectionsNextOperationSpec + listPrivateEndpointConnectionsNextOperationSpec, ); } } @@ -933,25 +928,24 @@ export class DiskAccessesImpl implements DiskAccesses { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, 201: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, 202: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, 204: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.diskAccess, queryParameters: [Parameters.apiVersion1], @@ -959,32 +953,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskAccessName + Parameters.diskAccessName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, 201: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, 202: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, 204: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.diskAccess1, queryParameters: [Parameters.apiVersion1], @@ -992,37 +985,35 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskAccessName + Parameters.diskAccessName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskAccessName + Parameters.diskAccessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", httpMethod: "DELETE", responses: { 200: {}, @@ -1030,145 +1021,117 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskAccessName + Parameters.diskAccessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskAccessList + bodyMapper: Mappers.DiskAccessList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskAccesses", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskAccesses", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskAccessList + bodyMapper: Mappers.DiskAccessList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getPrivateLinkResourcesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResourceListResult - } - }, - queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.diskAccessName - ], - headerParameters: [Parameters.accept], - serializer -}; -const updateAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.PrivateEndpointConnection - }, - 201: { - bodyMapper: Mappers.PrivateEndpointConnection - }, - 202: { - bodyMapper: Mappers.PrivateEndpointConnection - }, - 204: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateLinkResourceListResult, }, - default: { - bodyMapper: Mappers.CloudError - } }, - requestBody: Parameters.privateEndpointConnection, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskAccessName, - Parameters.privateEndpointConnectionName ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer + headerParameters: [Parameters.accept], + serializer, }; +const updateAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection, + }, + 201: { + bodyMapper: Mappers.PrivateEndpointConnection, + }, + 202: { + bodyMapper: Mappers.PrivateEndpointConnection, + }, + 204: { + bodyMapper: Mappers.PrivateEndpointConnection, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.privateEndpointConnection, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.diskAccessName, + Parameters.privateEndpointConnectionName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, + }; const getAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.diskAccessName, - Parameters.privateEndpointConnectionName - ], - headerParameters: [Parameters.accept], - serializer -}; -const deleteAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -1176,90 +1139,114 @@ const deleteAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskAccessName, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; +const deleteAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.diskAccessName, + Parameters.privateEndpointConnectionName, + ], + headerParameters: [Parameters.accept], + serializer, + }; const listPrivateEndpointConnectionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult + bodyMapper: Mappers.PrivateEndpointConnectionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskAccessName + Parameters.diskAccessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskAccessList + bodyMapper: Mappers.DiskAccessList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskAccessList + bodyMapper: Mappers.DiskAccessList, }, default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; -const listPrivateEndpointConnectionsNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult + bodyMapper: Mappers.CloudError, }, - default: { - bodyMapper: Mappers.CloudError - } }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName, - Parameters.diskAccessName ], headerParameters: [Parameters.accept], - serializer + serializer, }; +const listPrivateEndpointConnectionsNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.diskAccessName, + ], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts index 2997217ee8aa..5db7156d2f9b 100644 --- a/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts +++ b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -40,7 +40,7 @@ import { DiskEncryptionSetsDeleteOptionalParams, DiskEncryptionSetsListByResourceGroupNextResponse, DiskEncryptionSetsListNextResponse, - DiskEncryptionSetsListAssociatedResourcesNextResponse + DiskEncryptionSetsListAssociatedResourcesNextResponse, } from "../models"; /// @@ -63,7 +63,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { */ public listByResourceGroup( resourceGroupName: string, - options?: DiskEncryptionSetsListByResourceGroupOptionalParams + options?: DiskEncryptionSetsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -80,16 +80,16 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: DiskEncryptionSetsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DiskEncryptionSetsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -104,7 +104,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,11 +115,11 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: DiskEncryptionSetsListByResourceGroupOptionalParams + options?: DiskEncryptionSetsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -130,7 +130,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { * @param options The options parameters. */ public list( - options?: DiskEncryptionSetsListOptionalParams + options?: DiskEncryptionSetsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -145,13 +145,13 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: DiskEncryptionSetsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DiskEncryptionSetsListResponse; let continuationToken = settings?.continuationToken; @@ -172,7 +172,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { } private async *listPagingAll( - options?: DiskEncryptionSetsListOptionalParams + options?: DiskEncryptionSetsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -190,12 +190,12 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { public listAssociatedResources( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams + options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAssociatedResourcesPagingAll( resourceGroupName, diskEncryptionSetName, - options + options, ); return { next() { @@ -212,9 +212,9 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName, diskEncryptionSetName, options, - settings + settings, ); - } + }, }; } @@ -222,7 +222,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DiskEncryptionSetsListAssociatedResourcesResponse; let continuationToken = settings?.continuationToken; @@ -230,7 +230,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { result = await this._listAssociatedResources( resourceGroupName, diskEncryptionSetName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -242,7 +242,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName, diskEncryptionSetName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -254,12 +254,12 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { private async *listAssociatedResourcesPagingAll( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams + options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAssociatedResourcesPagingPage( resourceGroupName, diskEncryptionSetName, - options + options, )) { yield* page; } @@ -279,7 +279,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSet, - options?: DiskEncryptionSetsCreateOrUpdateOptionalParams + options?: DiskEncryptionSetsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -288,21 +288,20 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -311,8 +310,8 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -320,8 +319,8 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -331,16 +330,16 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName, diskEncryptionSetName, diskEncryptionSet, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< DiskEncryptionSetsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -360,13 +359,13 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSet, - options?: DiskEncryptionSetsCreateOrUpdateOptionalParams + options?: DiskEncryptionSetsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, diskEncryptionSetName, diskEncryptionSet, - options + options, ); return poller.pollUntilDone(); } @@ -385,7 +384,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSetUpdate, - options?: DiskEncryptionSetsUpdateOptionalParams + options?: DiskEncryptionSetsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -394,21 +393,20 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -417,8 +415,8 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -426,8 +424,8 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -437,16 +435,16 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName, diskEncryptionSetName, diskEncryptionSet, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< DiskEncryptionSetsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -466,13 +464,13 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSetUpdate, - options?: DiskEncryptionSetsUpdateOptionalParams + options?: DiskEncryptionSetsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, diskEncryptionSetName, diskEncryptionSet, - options + options, ); return poller.pollUntilDone(); } @@ -488,11 +486,11 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { get( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsGetOptionalParams + options?: DiskEncryptionSetsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskEncryptionSetName, options }, - getOperationSpec + getOperationSpec, ); } @@ -507,25 +505,24 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { async beginDelete( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsDeleteOptionalParams + options?: DiskEncryptionSetsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -534,8 +531,8 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -543,19 +540,19 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskEncryptionSetName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -572,12 +569,12 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { async beginDeleteAndWait( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsDeleteOptionalParams + options?: DiskEncryptionSetsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, diskEncryptionSetName, - options + options, ); return poller.pollUntilDone(); } @@ -589,11 +586,11 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { */ private _listByResourceGroup( resourceGroupName: string, - options?: DiskEncryptionSetsListByResourceGroupOptionalParams + options?: DiskEncryptionSetsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -602,7 +599,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { * @param options The options parameters. */ private _list( - options?: DiskEncryptionSetsListOptionalParams + options?: DiskEncryptionSetsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -618,11 +615,11 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { private _listAssociatedResources( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams + options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskEncryptionSetName, options }, - listAssociatedResourcesOperationSpec + listAssociatedResourcesOperationSpec, ); } @@ -635,11 +632,11 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: DiskEncryptionSetsListByResourceGroupNextOptionalParams + options?: DiskEncryptionSetsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -650,11 +647,11 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { */ private _listNext( nextLink: string, - options?: DiskEncryptionSetsListNextOptionalParams + options?: DiskEncryptionSetsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -672,11 +669,11 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, nextLink: string, - options?: DiskEncryptionSetsListAssociatedResourcesNextOptionalParams + options?: DiskEncryptionSetsListAssociatedResourcesNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskEncryptionSetName, nextLink, options }, - listAssociatedResourcesNextOperationSpec + listAssociatedResourcesNextOperationSpec, ); } } @@ -684,25 +681,24 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, 201: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, 202: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, 204: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.diskEncryptionSet, queryParameters: [Parameters.apiVersion1], @@ -710,32 +706,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskEncryptionSetName + Parameters.diskEncryptionSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, 201: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, 202: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, 204: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.diskEncryptionSet1, queryParameters: [Parameters.apiVersion1], @@ -743,37 +738,35 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskEncryptionSetName + Parameters.diskEncryptionSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskEncryptionSetName + Parameters.diskEncryptionSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", httpMethod: "DELETE", responses: { 200: {}, @@ -781,136 +774,133 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskEncryptionSetName + Parameters.diskEncryptionSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskEncryptionSetList + bodyMapper: Mappers.DiskEncryptionSetList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskEncryptionSets", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskEncryptionSets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskEncryptionSetList + bodyMapper: Mappers.DiskEncryptionSetList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAssociatedResourcesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}/associatedResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}/associatedResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceUriList + bodyMapper: Mappers.ResourceUriList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskEncryptionSetName + Parameters.diskEncryptionSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskEncryptionSetList + bodyMapper: Mappers.DiskEncryptionSetList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskEncryptionSetList + bodyMapper: Mappers.DiskEncryptionSetList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAssociatedResourcesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceUriList + bodyMapper: Mappers.ResourceUriList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.diskEncryptionSetName + Parameters.diskEncryptionSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts b/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts index c95df45e6735..0efb7f9cc094 100644 --- a/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts +++ b/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -30,13 +30,14 @@ import { DiskRestorePointGrantAccessOptionalParams, DiskRestorePointGrantAccessResponse, DiskRestorePointRevokeAccessOptionalParams, - DiskRestorePointListByRestorePointNextResponse + DiskRestorePointListByRestorePointNextResponse, } from "../models"; /// /** Class containing DiskRestorePointOperations operations. */ export class DiskRestorePointOperationsImpl - implements DiskRestorePointOperations { + implements DiskRestorePointOperations +{ private readonly client: ComputeManagementClient; /** @@ -59,13 +60,13 @@ export class DiskRestorePointOperationsImpl resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, - options?: DiskRestorePointListByRestorePointOptionalParams + options?: DiskRestorePointListByRestorePointOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByRestorePointPagingAll( resourceGroupName, restorePointCollectionName, vmRestorePointName, - options + options, ); return { next() { @@ -83,9 +84,9 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName, vmRestorePointName, options, - settings + settings, ); - } + }, }; } @@ -94,7 +95,7 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName: string, vmRestorePointName: string, options?: DiskRestorePointListByRestorePointOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DiskRestorePointListByRestorePointResponse; let continuationToken = settings?.continuationToken; @@ -103,7 +104,7 @@ export class DiskRestorePointOperationsImpl resourceGroupName, restorePointCollectionName, vmRestorePointName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -116,7 +117,7 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName, vmRestorePointName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -129,13 +130,13 @@ export class DiskRestorePointOperationsImpl resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, - options?: DiskRestorePointListByRestorePointOptionalParams + options?: DiskRestorePointListByRestorePointOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByRestorePointPagingPage( resourceGroupName, restorePointCollectionName, vmRestorePointName, - options + options, )) { yield* page; } @@ -155,7 +156,7 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, - options?: DiskRestorePointGetOptionalParams + options?: DiskRestorePointGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -163,9 +164,9 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName, vmRestorePointName, diskRestorePointName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -181,16 +182,16 @@ export class DiskRestorePointOperationsImpl resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, - options?: DiskRestorePointListByRestorePointOptionalParams + options?: DiskRestorePointListByRestorePointOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, restorePointCollectionName, vmRestorePointName, - options + options, }, - listByRestorePointOperationSpec + listByRestorePointOperationSpec, ); } @@ -210,7 +211,7 @@ export class DiskRestorePointOperationsImpl vmRestorePointName: string, diskRestorePointName: string, grantAccessData: GrantAccessData, - options?: DiskRestorePointGrantAccessOptionalParams + options?: DiskRestorePointGrantAccessOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -219,21 +220,20 @@ export class DiskRestorePointOperationsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -242,8 +242,8 @@ export class DiskRestorePointOperationsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -251,8 +251,8 @@ export class DiskRestorePointOperationsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -264,9 +264,9 @@ export class DiskRestorePointOperationsImpl vmRestorePointName, diskRestorePointName, grantAccessData, - options + options, }, - spec: grantAccessOperationSpec + spec: grantAccessOperationSpec, }); const poller = await createHttpPoller< DiskRestorePointGrantAccessResponse, @@ -274,7 +274,7 @@ export class DiskRestorePointOperationsImpl >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -296,7 +296,7 @@ export class DiskRestorePointOperationsImpl vmRestorePointName: string, diskRestorePointName: string, grantAccessData: GrantAccessData, - options?: DiskRestorePointGrantAccessOptionalParams + options?: DiskRestorePointGrantAccessOptionalParams, ): Promise { const poller = await this.beginGrantAccess( resourceGroupName, @@ -304,7 +304,7 @@ export class DiskRestorePointOperationsImpl vmRestorePointName, diskRestorePointName, grantAccessData, - options + options, ); return poller.pollUntilDone(); } @@ -323,25 +323,24 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, - options?: DiskRestorePointRevokeAccessOptionalParams + options?: DiskRestorePointRevokeAccessOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -350,8 +349,8 @@ export class DiskRestorePointOperationsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -359,8 +358,8 @@ export class DiskRestorePointOperationsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -371,14 +370,14 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName, vmRestorePointName, diskRestorePointName, - options + options, }, - spec: revokeAccessOperationSpec + spec: revokeAccessOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -398,14 +397,14 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, - options?: DiskRestorePointRevokeAccessOptionalParams + options?: DiskRestorePointRevokeAccessOptionalParams, ): Promise { const poller = await this.beginRevokeAccess( resourceGroupName, restorePointCollectionName, vmRestorePointName, diskRestorePointName, - options + options, ); return poller.pollUntilDone(); } @@ -424,7 +423,7 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName: string, vmRestorePointName: string, nextLink: string, - options?: DiskRestorePointListByRestorePointNextOptionalParams + options?: DiskRestorePointListByRestorePointNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -432,9 +431,9 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName, vmRestorePointName, nextLink, - options + options, }, - listByRestorePointNextOperationSpec + listByRestorePointNextOperationSpec, ); } } @@ -442,16 +441,15 @@ export class DiskRestorePointOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskRestorePoint + bodyMapper: Mappers.DiskRestorePoint, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -460,22 +458,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.restorePointCollectionName, Parameters.vmRestorePointName, - Parameters.diskRestorePointName + Parameters.diskRestorePointName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByRestorePointOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskRestorePointList + bodyMapper: Mappers.DiskRestorePointList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -483,31 +480,30 @@ const listByRestorePointOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.restorePointCollectionName, - Parameters.vmRestorePointName + Parameters.vmRestorePointName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const grantAccessOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/beginGetAccess", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/beginGetAccess", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 201: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 202: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 204: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.grantAccessData, queryParameters: [Parameters.apiVersion1], @@ -517,15 +513,14 @@ const grantAccessOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.restorePointCollectionName, Parameters.vmRestorePointName, - Parameters.diskRestorePointName + Parameters.diskRestorePointName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const revokeAccessOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/endGetAccess", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/endGetAccess", httpMethod: "POST", responses: { 200: {}, @@ -533,8 +528,8 @@ const revokeAccessOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -543,21 +538,21 @@ const revokeAccessOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.restorePointCollectionName, Parameters.vmRestorePointName, - Parameters.diskRestorePointName + Parameters.diskRestorePointName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByRestorePointNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskRestorePointList + bodyMapper: Mappers.DiskRestorePointList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -565,8 +560,8 @@ const listByRestorePointNextOperationSpec: coreClient.OperationSpec = { Parameters.nextLink, Parameters.resourceGroupName, Parameters.restorePointCollectionName, - Parameters.vmRestorePointName + Parameters.vmRestorePointName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/disks.ts b/sdk/compute/arm-compute/src/operations/disks.ts index 0ae26f9967c1..a1011e3c103a 100644 --- a/sdk/compute/arm-compute/src/operations/disks.ts +++ b/sdk/compute/arm-compute/src/operations/disks.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -40,7 +40,7 @@ import { DisksGrantAccessResponse, DisksRevokeAccessOptionalParams, DisksListByResourceGroupNextResponse, - DisksListNextResponse + DisksListNextResponse, } from "../models"; /// @@ -63,7 +63,7 @@ export class DisksImpl implements Disks { */ public listByResourceGroup( resourceGroupName: string, - options?: DisksListByResourceGroupOptionalParams + options?: DisksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -80,16 +80,16 @@ export class DisksImpl implements Disks { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: DisksListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DisksListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -104,7 +104,7 @@ export class DisksImpl implements Disks { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,11 +115,11 @@ export class DisksImpl implements Disks { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: DisksListByResourceGroupOptionalParams + options?: DisksListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -130,7 +130,7 @@ export class DisksImpl implements Disks { * @param options The options parameters. */ public list( - options?: DisksListOptionalParams + options?: DisksListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -145,13 +145,13 @@ export class DisksImpl implements Disks { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: DisksListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DisksListResponse; let continuationToken = settings?.continuationToken; @@ -172,7 +172,7 @@ export class DisksImpl implements Disks { } private async *listPagingAll( - options?: DisksListOptionalParams + options?: DisksListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -192,7 +192,7 @@ export class DisksImpl implements Disks { resourceGroupName: string, diskName: string, disk: Disk, - options?: DisksCreateOrUpdateOptionalParams + options?: DisksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -201,21 +201,20 @@ export class DisksImpl implements Disks { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -224,8 +223,8 @@ export class DisksImpl implements Disks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -233,22 +232,22 @@ export class DisksImpl implements Disks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskName, disk, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< DisksCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -267,13 +266,13 @@ export class DisksImpl implements Disks { resourceGroupName: string, diskName: string, disk: Disk, - options?: DisksCreateOrUpdateOptionalParams + options?: DisksCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, diskName, disk, - options + options, ); return poller.pollUntilDone(); } @@ -291,27 +290,26 @@ export class DisksImpl implements Disks { resourceGroupName: string, diskName: string, disk: DiskUpdate, - options?: DisksUpdateOptionalParams + options?: DisksUpdateOptionalParams, ): Promise< SimplePollerLike, DisksUpdateResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -320,8 +318,8 @@ export class DisksImpl implements Disks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -329,22 +327,22 @@ export class DisksImpl implements Disks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskName, disk, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< DisksUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -363,13 +361,13 @@ export class DisksImpl implements Disks { resourceGroupName: string, diskName: string, disk: DiskUpdate, - options?: DisksUpdateOptionalParams + options?: DisksUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, diskName, disk, - options + options, ); return poller.pollUntilDone(); } @@ -385,11 +383,11 @@ export class DisksImpl implements Disks { get( resourceGroupName: string, diskName: string, - options?: DisksGetOptionalParams + options?: DisksGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskName, options }, - getOperationSpec + getOperationSpec, ); } @@ -404,25 +402,24 @@ export class DisksImpl implements Disks { async beginDelete( resourceGroupName: string, diskName: string, - options?: DisksDeleteOptionalParams + options?: DisksDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -431,8 +428,8 @@ export class DisksImpl implements Disks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -440,19 +437,19 @@ export class DisksImpl implements Disks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -469,7 +466,7 @@ export class DisksImpl implements Disks { async beginDeleteAndWait( resourceGroupName: string, diskName: string, - options?: DisksDeleteOptionalParams + options?: DisksDeleteOptionalParams, ): Promise { const poller = await this.beginDelete(resourceGroupName, diskName, options); return poller.pollUntilDone(); @@ -482,11 +479,11 @@ export class DisksImpl implements Disks { */ private _listByResourceGroup( resourceGroupName: string, - options?: DisksListByResourceGroupOptionalParams + options?: DisksListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -511,7 +508,7 @@ export class DisksImpl implements Disks { resourceGroupName: string, diskName: string, grantAccessData: GrantAccessData, - options?: DisksGrantAccessOptionalParams + options?: DisksGrantAccessOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -520,21 +517,20 @@ export class DisksImpl implements Disks { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -543,8 +539,8 @@ export class DisksImpl implements Disks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -552,15 +548,15 @@ export class DisksImpl implements Disks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskName, grantAccessData, options }, - spec: grantAccessOperationSpec + spec: grantAccessOperationSpec, }); const poller = await createHttpPoller< DisksGrantAccessResponse, @@ -568,7 +564,7 @@ export class DisksImpl implements Disks { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -587,13 +583,13 @@ export class DisksImpl implements Disks { resourceGroupName: string, diskName: string, grantAccessData: GrantAccessData, - options?: DisksGrantAccessOptionalParams + options?: DisksGrantAccessOptionalParams, ): Promise { const poller = await this.beginGrantAccess( resourceGroupName, diskName, grantAccessData, - options + options, ); return poller.pollUntilDone(); } @@ -609,25 +605,24 @@ export class DisksImpl implements Disks { async beginRevokeAccess( resourceGroupName: string, diskName: string, - options?: DisksRevokeAccessOptionalParams + options?: DisksRevokeAccessOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -636,8 +631,8 @@ export class DisksImpl implements Disks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -645,20 +640,20 @@ export class DisksImpl implements Disks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskName, options }, - spec: revokeAccessOperationSpec + spec: revokeAccessOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -675,12 +670,12 @@ export class DisksImpl implements Disks { async beginRevokeAccessAndWait( resourceGroupName: string, diskName: string, - options?: DisksRevokeAccessOptionalParams + options?: DisksRevokeAccessOptionalParams, ): Promise { const poller = await this.beginRevokeAccess( resourceGroupName, diskName, - options + options, ); return poller.pollUntilDone(); } @@ -694,11 +689,11 @@ export class DisksImpl implements Disks { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: DisksListByResourceGroupNextOptionalParams + options?: DisksListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -709,11 +704,11 @@ export class DisksImpl implements Disks { */ private _listNext( nextLink: string, - options?: DisksListNextOptionalParams + options?: DisksListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -721,22 +716,21 @@ export class DisksImpl implements Disks { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Disk + bodyMapper: Mappers.Disk, }, 201: { - bodyMapper: Mappers.Disk + bodyMapper: Mappers.Disk, }, 202: { - bodyMapper: Mappers.Disk + bodyMapper: Mappers.Disk, }, 204: { - bodyMapper: Mappers.Disk - } + bodyMapper: Mappers.Disk, + }, }, requestBody: Parameters.disk, queryParameters: [Parameters.apiVersion1], @@ -744,29 +738,28 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskName + Parameters.diskName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Disk + bodyMapper: Mappers.Disk, }, 201: { - bodyMapper: Mappers.Disk + bodyMapper: Mappers.Disk, }, 202: { - bodyMapper: Mappers.Disk + bodyMapper: Mappers.Disk, }, 204: { - bodyMapper: Mappers.Disk - } + bodyMapper: Mappers.Disk, + }, }, requestBody: Parameters.disk1, queryParameters: [Parameters.apiVersion1], @@ -774,34 +767,32 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskName + Parameters.diskName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Disk - } + bodyMapper: Mappers.Disk, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskName + Parameters.diskName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {} }, queryParameters: [Parameters.apiVersion1], @@ -809,58 +800,56 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskName + Parameters.diskName, ], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskList - } + bodyMapper: Mappers.DiskList, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/disks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskList - } + bodyMapper: Mappers.DiskList, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const grantAccessOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/beginGetAccess", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/beginGetAccess", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 201: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 202: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 204: { - bodyMapper: Mappers.AccessUri - } + bodyMapper: Mappers.AccessUri, + }, }, requestBody: Parameters.grantAccessData, queryParameters: [Parameters.apiVersion1], @@ -868,15 +857,14 @@ const grantAccessOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskName + Parameters.diskName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const revokeAccessOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/endGetAccess", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/endGetAccess", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {} }, queryParameters: [Parameters.apiVersion1], @@ -884,40 +872,40 @@ const revokeAccessOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskName + Parameters.diskName, ], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskList - } + bodyMapper: Mappers.DiskList, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskList - } + bodyMapper: Mappers.DiskList, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/galleries.ts b/sdk/compute/arm-compute/src/operations/galleries.ts index 7271bc6a0d0f..4789b75ff38e 100644 --- a/sdk/compute/arm-compute/src/operations/galleries.ts +++ b/sdk/compute/arm-compute/src/operations/galleries.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -36,7 +36,7 @@ import { GalleriesGetResponse, GalleriesDeleteOptionalParams, GalleriesListByResourceGroupNextResponse, - GalleriesListNextResponse + GalleriesListNextResponse, } from "../models"; /// @@ -59,7 +59,7 @@ export class GalleriesImpl implements Galleries { */ public listByResourceGroup( resourceGroupName: string, - options?: GalleriesListByResourceGroupOptionalParams + options?: GalleriesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -76,16 +76,16 @@ export class GalleriesImpl implements Galleries { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: GalleriesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GalleriesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -100,7 +100,7 @@ export class GalleriesImpl implements Galleries { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -111,11 +111,11 @@ export class GalleriesImpl implements Galleries { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: GalleriesListByResourceGroupOptionalParams + options?: GalleriesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -126,7 +126,7 @@ export class GalleriesImpl implements Galleries { * @param options The options parameters. */ public list( - options?: GalleriesListOptionalParams + options?: GalleriesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -141,13 +141,13 @@ export class GalleriesImpl implements Galleries { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: GalleriesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GalleriesListResponse; let continuationToken = settings?.continuationToken; @@ -168,7 +168,7 @@ export class GalleriesImpl implements Galleries { } private async *listPagingAll( - options?: GalleriesListOptionalParams + options?: GalleriesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -187,7 +187,7 @@ export class GalleriesImpl implements Galleries { resourceGroupName: string, galleryName: string, gallery: Gallery, - options?: GalleriesCreateOrUpdateOptionalParams + options?: GalleriesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -196,21 +196,20 @@ export class GalleriesImpl implements Galleries { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -219,8 +218,8 @@ export class GalleriesImpl implements Galleries { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -228,22 +227,22 @@ export class GalleriesImpl implements Galleries { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, galleryName, gallery, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< GalleriesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -261,13 +260,13 @@ export class GalleriesImpl implements Galleries { resourceGroupName: string, galleryName: string, gallery: Gallery, - options?: GalleriesCreateOrUpdateOptionalParams + options?: GalleriesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, galleryName, gallery, - options + options, ); return poller.pollUntilDone(); } @@ -284,7 +283,7 @@ export class GalleriesImpl implements Galleries { resourceGroupName: string, galleryName: string, gallery: GalleryUpdate, - options?: GalleriesUpdateOptionalParams + options?: GalleriesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -293,21 +292,20 @@ export class GalleriesImpl implements Galleries { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -316,8 +314,8 @@ export class GalleriesImpl implements Galleries { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -325,22 +323,22 @@ export class GalleriesImpl implements Galleries { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, galleryName, gallery, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< GalleriesUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -358,13 +356,13 @@ export class GalleriesImpl implements Galleries { resourceGroupName: string, galleryName: string, gallery: GalleryUpdate, - options?: GalleriesUpdateOptionalParams + options?: GalleriesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, galleryName, gallery, - options + options, ); return poller.pollUntilDone(); } @@ -378,11 +376,11 @@ export class GalleriesImpl implements Galleries { get( resourceGroupName: string, galleryName: string, - options?: GalleriesGetOptionalParams + options?: GalleriesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, options }, - getOperationSpec + getOperationSpec, ); } @@ -395,25 +393,24 @@ export class GalleriesImpl implements Galleries { async beginDelete( resourceGroupName: string, galleryName: string, - options?: GalleriesDeleteOptionalParams + options?: GalleriesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -422,8 +419,8 @@ export class GalleriesImpl implements Galleries { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -431,19 +428,19 @@ export class GalleriesImpl implements Galleries { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, galleryName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -458,12 +455,12 @@ export class GalleriesImpl implements Galleries { async beginDeleteAndWait( resourceGroupName: string, galleryName: string, - options?: GalleriesDeleteOptionalParams + options?: GalleriesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, galleryName, - options + options, ); return poller.pollUntilDone(); } @@ -475,11 +472,11 @@ export class GalleriesImpl implements Galleries { */ private _listByResourceGroup( resourceGroupName: string, - options?: GalleriesListByResourceGroupOptionalParams + options?: GalleriesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -488,7 +485,7 @@ export class GalleriesImpl implements Galleries { * @param options The options parameters. */ private _list( - options?: GalleriesListOptionalParams + options?: GalleriesListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -502,11 +499,11 @@ export class GalleriesImpl implements Galleries { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: GalleriesListByResourceGroupNextOptionalParams + options?: GalleriesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -517,11 +514,11 @@ export class GalleriesImpl implements Galleries { */ private _listNext( nextLink: string, - options?: GalleriesListNextOptionalParams + options?: GalleriesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -529,25 +526,24 @@ export class GalleriesImpl implements Galleries { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, 201: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, 202: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, 204: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.gallery, queryParameters: [Parameters.apiVersion3], @@ -555,32 +551,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, 201: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, 202: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, 204: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.gallery1, queryParameters: [Parameters.apiVersion3], @@ -588,41 +583,39 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion3, Parameters.select1, - Parameters.expand10 + Parameters.expand10, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", httpMethod: "DELETE", responses: { 200: {}, @@ -630,92 +623,91 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryList + bodyMapper: Mappers.GalleryList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/galleries", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryList + bodyMapper: Mappers.GalleryList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryList + bodyMapper: Mappers.GalleryList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryList + bodyMapper: Mappers.GalleryList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts index db2c30c71f9a..6b2204ef640c 100644 --- a/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,13 +32,14 @@ import { GalleryApplicationVersionsGetOptionalParams, GalleryApplicationVersionsGetResponse, GalleryApplicationVersionsDeleteOptionalParams, - GalleryApplicationVersionsListByGalleryApplicationNextResponse + GalleryApplicationVersionsListByGalleryApplicationNextResponse, } from "../models"; /// /** Class containing GalleryApplicationVersions operations. */ export class GalleryApplicationVersionsImpl - implements GalleryApplicationVersions { + implements GalleryApplicationVersions +{ private readonly client: ComputeManagementClient; /** @@ -62,13 +63,13 @@ export class GalleryApplicationVersionsImpl resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams + options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByGalleryApplicationPagingAll( resourceGroupName, galleryName, galleryApplicationName, - options + options, ); return { next() { @@ -86,9 +87,9 @@ export class GalleryApplicationVersionsImpl galleryName, galleryApplicationName, options, - settings + settings, ); - } + }, }; } @@ -97,7 +98,7 @@ export class GalleryApplicationVersionsImpl galleryName: string, galleryApplicationName: string, options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GalleryApplicationVersionsListByGalleryApplicationResponse; let continuationToken = settings?.continuationToken; @@ -106,7 +107,7 @@ export class GalleryApplicationVersionsImpl resourceGroupName, galleryName, galleryApplicationName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -119,7 +120,7 @@ export class GalleryApplicationVersionsImpl galleryName, galleryApplicationName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -132,13 +133,13 @@ export class GalleryApplicationVersionsImpl resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams + options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByGalleryApplicationPagingPage( resourceGroupName, galleryName, galleryApplicationName, - options + options, )) { yield* page; } @@ -164,7 +165,7 @@ export class GalleryApplicationVersionsImpl galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersion, - options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams + options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -173,21 +174,20 @@ export class GalleryApplicationVersionsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -196,8 +196,8 @@ export class GalleryApplicationVersionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -205,8 +205,8 @@ export class GalleryApplicationVersionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -218,16 +218,16 @@ export class GalleryApplicationVersionsImpl galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< GalleryApplicationVersionsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -253,7 +253,7 @@ export class GalleryApplicationVersionsImpl galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersion, - options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams + options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -261,7 +261,7 @@ export class GalleryApplicationVersionsImpl galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, - options + options, ); return poller.pollUntilDone(); } @@ -286,7 +286,7 @@ export class GalleryApplicationVersionsImpl galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersionUpdate, - options?: GalleryApplicationVersionsUpdateOptionalParams + options?: GalleryApplicationVersionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -295,21 +295,20 @@ export class GalleryApplicationVersionsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -318,8 +317,8 @@ export class GalleryApplicationVersionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -327,8 +326,8 @@ export class GalleryApplicationVersionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -340,16 +339,16 @@ export class GalleryApplicationVersionsImpl galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< GalleryApplicationVersionsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -375,7 +374,7 @@ export class GalleryApplicationVersionsImpl galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersionUpdate, - options?: GalleryApplicationVersionsUpdateOptionalParams + options?: GalleryApplicationVersionsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -383,7 +382,7 @@ export class GalleryApplicationVersionsImpl galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, - options + options, ); return poller.pollUntilDone(); } @@ -403,7 +402,7 @@ export class GalleryApplicationVersionsImpl galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, - options?: GalleryApplicationVersionsGetOptionalParams + options?: GalleryApplicationVersionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -411,9 +410,9 @@ export class GalleryApplicationVersionsImpl galleryName, galleryApplicationName, galleryApplicationVersionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -432,25 +431,24 @@ export class GalleryApplicationVersionsImpl galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, - options?: GalleryApplicationVersionsDeleteOptionalParams + options?: GalleryApplicationVersionsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -459,8 +457,8 @@ export class GalleryApplicationVersionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -468,8 +466,8 @@ export class GalleryApplicationVersionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -480,13 +478,13 @@ export class GalleryApplicationVersionsImpl galleryName, galleryApplicationName, galleryApplicationVersionName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -507,14 +505,14 @@ export class GalleryApplicationVersionsImpl galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, - options?: GalleryApplicationVersionsDeleteOptionalParams + options?: GalleryApplicationVersionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, - options + options, ); return poller.pollUntilDone(); } @@ -532,11 +530,11 @@ export class GalleryApplicationVersionsImpl resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams + options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, galleryApplicationName, options }, - listByGalleryApplicationOperationSpec + listByGalleryApplicationOperationSpec, ); } @@ -556,7 +554,7 @@ export class GalleryApplicationVersionsImpl galleryName: string, galleryApplicationName: string, nextLink: string, - options?: GalleryApplicationVersionsListByGalleryApplicationNextOptionalParams + options?: GalleryApplicationVersionsListByGalleryApplicationNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -564,9 +562,9 @@ export class GalleryApplicationVersionsImpl galleryName, galleryApplicationName, nextLink, - options + options, }, - listByGalleryApplicationNextOperationSpec + listByGalleryApplicationNextOperationSpec, ); } } @@ -574,25 +572,24 @@ export class GalleryApplicationVersionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, 201: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, 202: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, 204: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.galleryApplicationVersion, queryParameters: [Parameters.apiVersion3], @@ -602,32 +599,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName, - Parameters.galleryApplicationVersionName + Parameters.galleryApplicationVersionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, 201: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, 202: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, 204: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.galleryApplicationVersion1, queryParameters: [Parameters.apiVersion3], @@ -637,23 +633,22 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName, - Parameters.galleryApplicationVersionName + Parameters.galleryApplicationVersionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3, Parameters.expand11], urlParameters: [ @@ -662,14 +657,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName, - Parameters.galleryApplicationVersionName + Parameters.galleryApplicationVersionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -677,8 +671,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -687,22 +681,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName, - Parameters.galleryApplicationVersionName + Parameters.galleryApplicationVersionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGalleryApplicationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryApplicationVersionList + bodyMapper: Mappers.GalleryApplicationVersionList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -710,21 +703,21 @@ const listByGalleryApplicationOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryApplicationName + Parameters.galleryApplicationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGalleryApplicationNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryApplicationVersionList + bodyMapper: Mappers.GalleryApplicationVersionList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -732,8 +725,8 @@ const listByGalleryApplicationNextOperationSpec: coreClient.OperationSpec = { Parameters.nextLink, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryApplicationName + Parameters.galleryApplicationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/galleryApplications.ts b/sdk/compute/arm-compute/src/operations/galleryApplications.ts index 03fee87c042e..7a1acfa42e73 100644 --- a/sdk/compute/arm-compute/src/operations/galleryApplications.ts +++ b/sdk/compute/arm-compute/src/operations/galleryApplications.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,7 +32,7 @@ import { GalleryApplicationsGetOptionalParams, GalleryApplicationsGetResponse, GalleryApplicationsDeleteOptionalParams, - GalleryApplicationsListByGalleryNextResponse + GalleryApplicationsListByGalleryNextResponse, } from "../models"; /// @@ -58,12 +58,12 @@ export class GalleryApplicationsImpl implements GalleryApplications { public listByGallery( resourceGroupName: string, galleryName: string, - options?: GalleryApplicationsListByGalleryOptionalParams + options?: GalleryApplicationsListByGalleryOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByGalleryPagingAll( resourceGroupName, galleryName, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class GalleryApplicationsImpl implements GalleryApplications { resourceGroupName, galleryName, options, - settings + settings, ); - } + }, }; } @@ -90,7 +90,7 @@ export class GalleryApplicationsImpl implements GalleryApplications { resourceGroupName: string, galleryName: string, options?: GalleryApplicationsListByGalleryOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GalleryApplicationsListByGalleryResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class GalleryApplicationsImpl implements GalleryApplications { result = await this._listByGallery( resourceGroupName, galleryName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -110,7 +110,7 @@ export class GalleryApplicationsImpl implements GalleryApplications { resourceGroupName, galleryName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -122,12 +122,12 @@ export class GalleryApplicationsImpl implements GalleryApplications { private async *listByGalleryPagingAll( resourceGroupName: string, galleryName: string, - options?: GalleryApplicationsListByGalleryOptionalParams + options?: GalleryApplicationsListByGalleryOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByGalleryPagingPage( resourceGroupName, galleryName, - options + options, )) { yield* page; } @@ -149,7 +149,7 @@ export class GalleryApplicationsImpl implements GalleryApplications { galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplication, - options?: GalleryApplicationsCreateOrUpdateOptionalParams + options?: GalleryApplicationsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -158,21 +158,20 @@ export class GalleryApplicationsImpl implements GalleryApplications { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -181,8 +180,8 @@ export class GalleryApplicationsImpl implements GalleryApplications { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -190,8 +189,8 @@ export class GalleryApplicationsImpl implements GalleryApplications { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -202,16 +201,16 @@ export class GalleryApplicationsImpl implements GalleryApplications { galleryName, galleryApplicationName, galleryApplication, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< GalleryApplicationsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -233,14 +232,14 @@ export class GalleryApplicationsImpl implements GalleryApplications { galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplication, - options?: GalleryApplicationsCreateOrUpdateOptionalParams + options?: GalleryApplicationsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, galleryName, galleryApplicationName, galleryApplication, - options + options, ); return poller.pollUntilDone(); } @@ -261,7 +260,7 @@ export class GalleryApplicationsImpl implements GalleryApplications { galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplicationUpdate, - options?: GalleryApplicationsUpdateOptionalParams + options?: GalleryApplicationsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -270,21 +269,20 @@ export class GalleryApplicationsImpl implements GalleryApplications { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -293,8 +291,8 @@ export class GalleryApplicationsImpl implements GalleryApplications { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -302,8 +300,8 @@ export class GalleryApplicationsImpl implements GalleryApplications { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -314,16 +312,16 @@ export class GalleryApplicationsImpl implements GalleryApplications { galleryName, galleryApplicationName, galleryApplication, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< GalleryApplicationsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -345,14 +343,14 @@ export class GalleryApplicationsImpl implements GalleryApplications { galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplicationUpdate, - options?: GalleryApplicationsUpdateOptionalParams + options?: GalleryApplicationsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, galleryName, galleryApplicationName, galleryApplication, - options + options, ); return poller.pollUntilDone(); } @@ -369,11 +367,11 @@ export class GalleryApplicationsImpl implements GalleryApplications { resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationsGetOptionalParams + options?: GalleryApplicationsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, galleryApplicationName, options }, - getOperationSpec + getOperationSpec, ); } @@ -389,25 +387,24 @@ export class GalleryApplicationsImpl implements GalleryApplications { resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationsDeleteOptionalParams + options?: GalleryApplicationsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -416,8 +413,8 @@ export class GalleryApplicationsImpl implements GalleryApplications { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -425,19 +422,19 @@ export class GalleryApplicationsImpl implements GalleryApplications { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, galleryName, galleryApplicationName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -455,13 +452,13 @@ export class GalleryApplicationsImpl implements GalleryApplications { resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationsDeleteOptionalParams + options?: GalleryApplicationsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, galleryName, galleryApplicationName, - options + options, ); return poller.pollUntilDone(); } @@ -476,11 +473,11 @@ export class GalleryApplicationsImpl implements GalleryApplications { private _listByGallery( resourceGroupName: string, galleryName: string, - options?: GalleryApplicationsListByGalleryOptionalParams + options?: GalleryApplicationsListByGalleryOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, options }, - listByGalleryOperationSpec + listByGalleryOperationSpec, ); } @@ -496,11 +493,11 @@ export class GalleryApplicationsImpl implements GalleryApplications { resourceGroupName: string, galleryName: string, nextLink: string, - options?: GalleryApplicationsListByGalleryNextOptionalParams + options?: GalleryApplicationsListByGalleryNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, nextLink, options }, - listByGalleryNextOperationSpec + listByGalleryNextOperationSpec, ); } } @@ -508,25 +505,24 @@ export class GalleryApplicationsImpl implements GalleryApplications { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, 201: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, 202: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, 204: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.galleryApplication, queryParameters: [Parameters.apiVersion3], @@ -535,32 +531,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryApplicationName + Parameters.galleryApplicationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, 201: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, 202: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, 204: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.galleryApplication1, queryParameters: [Parameters.apiVersion3], @@ -569,23 +564,22 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryApplicationName + Parameters.galleryApplicationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -593,14 +587,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryApplicationName + Parameters.galleryApplicationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", httpMethod: "DELETE", responses: { 200: {}, @@ -608,8 +601,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -617,51 +610,50 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryApplicationName + Parameters.galleryApplicationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGalleryOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryApplicationList + bodyMapper: Mappers.GalleryApplicationList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGalleryNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryApplicationList + bodyMapper: Mappers.GalleryApplicationList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts index c271b859db0b..60853007870d 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,7 +32,7 @@ import { GalleryImageVersionsGetOptionalParams, GalleryImageVersionsGetResponse, GalleryImageVersionsDeleteOptionalParams, - GalleryImageVersionsListByGalleryImageNextResponse + GalleryImageVersionsListByGalleryImageNextResponse, } from "../models"; /// @@ -60,13 +60,13 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImageVersionsListByGalleryImageOptionalParams + options?: GalleryImageVersionsListByGalleryImageOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByGalleryImagePagingAll( resourceGroupName, galleryName, galleryImageName, - options + options, ); return { next() { @@ -84,9 +84,9 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName, galleryImageName, options, - settings + settings, ); - } + }, }; } @@ -95,7 +95,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName: string, galleryImageName: string, options?: GalleryImageVersionsListByGalleryImageOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GalleryImageVersionsListByGalleryImageResponse; let continuationToken = settings?.continuationToken; @@ -104,7 +104,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { resourceGroupName, galleryName, galleryImageName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -117,7 +117,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName, galleryImageName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -130,13 +130,13 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImageVersionsListByGalleryImageOptionalParams + options?: GalleryImageVersionsListByGalleryImageOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByGalleryImagePagingPage( resourceGroupName, galleryName, galleryImageName, - options + options, )) { yield* page; } @@ -161,7 +161,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersion, - options?: GalleryImageVersionsCreateOrUpdateOptionalParams + options?: GalleryImageVersionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -170,21 +170,20 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -193,8 +192,8 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -202,8 +201,8 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -215,16 +214,16 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName, galleryImageVersionName, galleryImageVersion, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< GalleryImageVersionsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -249,7 +248,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersion, - options?: GalleryImageVersionsCreateOrUpdateOptionalParams + options?: GalleryImageVersionsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -257,7 +256,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName, galleryImageVersionName, galleryImageVersion, - options + options, ); return poller.pollUntilDone(); } @@ -280,7 +279,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, - options?: GalleryImageVersionsUpdateOptionalParams + options?: GalleryImageVersionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -289,21 +288,20 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -312,8 +310,8 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -321,8 +319,8 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -334,16 +332,16 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName, galleryImageVersionName, galleryImageVersion, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< GalleryImageVersionsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -367,7 +365,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, - options?: GalleryImageVersionsUpdateOptionalParams + options?: GalleryImageVersionsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -375,7 +373,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName, galleryImageVersionName, galleryImageVersion, - options + options, ); return poller.pollUntilDone(); } @@ -393,7 +391,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName: string, galleryImageName: string, galleryImageVersionName: string, - options?: GalleryImageVersionsGetOptionalParams + options?: GalleryImageVersionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -401,9 +399,9 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName, galleryImageName, galleryImageVersionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -420,25 +418,24 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName: string, galleryImageName: string, galleryImageVersionName: string, - options?: GalleryImageVersionsDeleteOptionalParams + options?: GalleryImageVersionsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -447,8 +444,8 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -456,8 +453,8 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -468,13 +465,13 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName, galleryImageName, galleryImageVersionName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -493,14 +490,14 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName: string, galleryImageName: string, galleryImageVersionName: string, - options?: GalleryImageVersionsDeleteOptionalParams + options?: GalleryImageVersionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, galleryName, galleryImageName, galleryImageVersionName, - options + options, ); return poller.pollUntilDone(); } @@ -517,11 +514,11 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImageVersionsListByGalleryImageOptionalParams + options?: GalleryImageVersionsListByGalleryImageOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, galleryImageName, options }, - listByGalleryImageOperationSpec + listByGalleryImageOperationSpec, ); } @@ -539,11 +536,11 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName: string, galleryImageName: string, nextLink: string, - options?: GalleryImageVersionsListByGalleryImageNextOptionalParams + options?: GalleryImageVersionsListByGalleryImageNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, galleryImageName, nextLink, options }, - listByGalleryImageNextOperationSpec + listByGalleryImageNextOperationSpec, ); } } @@ -551,25 +548,24 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, 201: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, 202: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, 204: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.galleryImageVersion, queryParameters: [Parameters.apiVersion3], @@ -579,32 +575,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName, - Parameters.galleryImageVersionName + Parameters.galleryImageVersionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, 201: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, 202: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, 204: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.galleryImageVersion1, queryParameters: [Parameters.apiVersion3], @@ -614,23 +609,22 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName, - Parameters.galleryImageVersionName + Parameters.galleryImageVersionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3, Parameters.expand11], urlParameters: [ @@ -639,14 +633,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName, - Parameters.galleryImageVersionName + Parameters.galleryImageVersionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -654,8 +647,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -664,22 +657,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName, - Parameters.galleryImageVersionName + Parameters.galleryImageVersionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGalleryImageOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryImageVersionList + bodyMapper: Mappers.GalleryImageVersionList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -687,21 +679,21 @@ const listByGalleryImageOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryImageName + Parameters.galleryImageName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGalleryImageNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryImageVersionList + bodyMapper: Mappers.GalleryImageVersionList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -709,8 +701,8 @@ const listByGalleryImageNextOperationSpec: coreClient.OperationSpec = { Parameters.nextLink, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryImageName + Parameters.galleryImageName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/galleryImages.ts b/sdk/compute/arm-compute/src/operations/galleryImages.ts index e46aa4ef9a1d..ceaec3309e10 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImages.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,7 +32,7 @@ import { GalleryImagesGetOptionalParams, GalleryImagesGetResponse, GalleryImagesDeleteOptionalParams, - GalleryImagesListByGalleryNextResponse + GalleryImagesListByGalleryNextResponse, } from "../models"; /// @@ -58,12 +58,12 @@ export class GalleryImagesImpl implements GalleryImages { public listByGallery( resourceGroupName: string, galleryName: string, - options?: GalleryImagesListByGalleryOptionalParams + options?: GalleryImagesListByGalleryOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByGalleryPagingAll( resourceGroupName, galleryName, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class GalleryImagesImpl implements GalleryImages { resourceGroupName, galleryName, options, - settings + settings, ); - } + }, }; } @@ -90,7 +90,7 @@ export class GalleryImagesImpl implements GalleryImages { resourceGroupName: string, galleryName: string, options?: GalleryImagesListByGalleryOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GalleryImagesListByGalleryResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class GalleryImagesImpl implements GalleryImages { result = await this._listByGallery( resourceGroupName, galleryName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -110,7 +110,7 @@ export class GalleryImagesImpl implements GalleryImages { resourceGroupName, galleryName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -122,12 +122,12 @@ export class GalleryImagesImpl implements GalleryImages { private async *listByGalleryPagingAll( resourceGroupName: string, galleryName: string, - options?: GalleryImagesListByGalleryOptionalParams + options?: GalleryImagesListByGalleryOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByGalleryPagingPage( resourceGroupName, galleryName, - options + options, )) { yield* page; } @@ -149,7 +149,7 @@ export class GalleryImagesImpl implements GalleryImages { galleryName: string, galleryImageName: string, galleryImage: GalleryImage, - options?: GalleryImagesCreateOrUpdateOptionalParams + options?: GalleryImagesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -158,21 +158,20 @@ export class GalleryImagesImpl implements GalleryImages { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -181,8 +180,8 @@ export class GalleryImagesImpl implements GalleryImages { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -190,8 +189,8 @@ export class GalleryImagesImpl implements GalleryImages { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -202,16 +201,16 @@ export class GalleryImagesImpl implements GalleryImages { galleryName, galleryImageName, galleryImage, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< GalleryImagesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -233,14 +232,14 @@ export class GalleryImagesImpl implements GalleryImages { galleryName: string, galleryImageName: string, galleryImage: GalleryImage, - options?: GalleryImagesCreateOrUpdateOptionalParams + options?: GalleryImagesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, galleryName, galleryImageName, galleryImage, - options + options, ); return poller.pollUntilDone(); } @@ -261,7 +260,7 @@ export class GalleryImagesImpl implements GalleryImages { galleryName: string, galleryImageName: string, galleryImage: GalleryImageUpdate, - options?: GalleryImagesUpdateOptionalParams + options?: GalleryImagesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -270,21 +269,20 @@ export class GalleryImagesImpl implements GalleryImages { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -293,8 +291,8 @@ export class GalleryImagesImpl implements GalleryImages { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -302,8 +300,8 @@ export class GalleryImagesImpl implements GalleryImages { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -314,16 +312,16 @@ export class GalleryImagesImpl implements GalleryImages { galleryName, galleryImageName, galleryImage, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< GalleryImagesUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -345,14 +343,14 @@ export class GalleryImagesImpl implements GalleryImages { galleryName: string, galleryImageName: string, galleryImage: GalleryImageUpdate, - options?: GalleryImagesUpdateOptionalParams + options?: GalleryImagesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, galleryName, galleryImageName, galleryImage, - options + options, ); return poller.pollUntilDone(); } @@ -369,11 +367,11 @@ export class GalleryImagesImpl implements GalleryImages { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImagesGetOptionalParams + options?: GalleryImagesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, galleryImageName, options }, - getOperationSpec + getOperationSpec, ); } @@ -389,25 +387,24 @@ export class GalleryImagesImpl implements GalleryImages { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImagesDeleteOptionalParams + options?: GalleryImagesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -416,8 +413,8 @@ export class GalleryImagesImpl implements GalleryImages { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -425,19 +422,19 @@ export class GalleryImagesImpl implements GalleryImages { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, galleryName, galleryImageName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -455,13 +452,13 @@ export class GalleryImagesImpl implements GalleryImages { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImagesDeleteOptionalParams + options?: GalleryImagesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, galleryName, galleryImageName, - options + options, ); return poller.pollUntilDone(); } @@ -476,11 +473,11 @@ export class GalleryImagesImpl implements GalleryImages { private _listByGallery( resourceGroupName: string, galleryName: string, - options?: GalleryImagesListByGalleryOptionalParams + options?: GalleryImagesListByGalleryOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, options }, - listByGalleryOperationSpec + listByGalleryOperationSpec, ); } @@ -496,11 +493,11 @@ export class GalleryImagesImpl implements GalleryImages { resourceGroupName: string, galleryName: string, nextLink: string, - options?: GalleryImagesListByGalleryNextOptionalParams + options?: GalleryImagesListByGalleryNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, nextLink, options }, - listByGalleryNextOperationSpec + listByGalleryNextOperationSpec, ); } } @@ -508,25 +505,24 @@ export class GalleryImagesImpl implements GalleryImages { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, 201: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, 202: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, 204: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.galleryImage, queryParameters: [Parameters.apiVersion3], @@ -535,32 +531,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryImageName + Parameters.galleryImageName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, 201: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, 202: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, 204: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.galleryImage1, queryParameters: [Parameters.apiVersion3], @@ -569,23 +564,22 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryImageName + Parameters.galleryImageName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -593,14 +587,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryImageName + Parameters.galleryImageName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", httpMethod: "DELETE", responses: { 200: {}, @@ -608,8 +601,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -617,51 +610,50 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryImageName + Parameters.galleryImageName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGalleryOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryImageList + bodyMapper: Mappers.GalleryImageList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGalleryNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryImageList + bodyMapper: Mappers.GalleryImageList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts b/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts index 717a581ef043..dafbd027979c 100644 --- a/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts +++ b/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts @@ -14,13 +14,13 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { SharingUpdate, GallerySharingProfileUpdateOptionalParams, - GallerySharingProfileUpdateResponse + GallerySharingProfileUpdateResponse, } from "../models"; /** Class containing GallerySharingProfile operations. */ @@ -46,7 +46,7 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { resourceGroupName: string, galleryName: string, sharingUpdate: SharingUpdate, - options?: GallerySharingProfileUpdateOptionalParams + options?: GallerySharingProfileUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -55,21 +55,20 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -78,8 +77,8 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -87,22 +86,22 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, galleryName, sharingUpdate, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< GallerySharingProfileUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -119,13 +118,13 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { resourceGroupName: string, galleryName: string, sharingUpdate: SharingUpdate, - options?: GallerySharingProfileUpdateOptionalParams + options?: GallerySharingProfileUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, galleryName, sharingUpdate, - options + options, ); return poller.pollUntilDone(); } @@ -134,25 +133,24 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/share", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/share", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.SharingUpdate + bodyMapper: Mappers.SharingUpdate, }, 201: { - bodyMapper: Mappers.SharingUpdate + bodyMapper: Mappers.SharingUpdate, }, 202: { - bodyMapper: Mappers.SharingUpdate + bodyMapper: Mappers.SharingUpdate, }, 204: { - bodyMapper: Mappers.SharingUpdate + bodyMapper: Mappers.SharingUpdate, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.sharingUpdate, queryParameters: [Parameters.apiVersion3], @@ -160,9 +158,9 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/images.ts b/sdk/compute/arm-compute/src/operations/images.ts index b2fb10422e3f..ff652c103cae 100644 --- a/sdk/compute/arm-compute/src/operations/images.ts +++ b/sdk/compute/arm-compute/src/operations/images.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -36,7 +36,7 @@ import { ImagesGetOptionalParams, ImagesGetResponse, ImagesListByResourceGroupNextResponse, - ImagesListNextResponse + ImagesListNextResponse, } from "../models"; /// @@ -60,7 +60,7 @@ export class ImagesImpl implements Images { */ public listByResourceGroup( resourceGroupName: string, - options?: ImagesListByResourceGroupOptionalParams + options?: ImagesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -77,16 +77,16 @@ export class ImagesImpl implements Images { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: ImagesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ImagesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -101,7 +101,7 @@ export class ImagesImpl implements Images { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -112,11 +112,11 @@ export class ImagesImpl implements Images { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ImagesListByResourceGroupOptionalParams + options?: ImagesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -128,7 +128,7 @@ export class ImagesImpl implements Images { * @param options The options parameters. */ public list( - options?: ImagesListOptionalParams + options?: ImagesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -143,13 +143,13 @@ export class ImagesImpl implements Images { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: ImagesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ImagesListResponse; let continuationToken = settings?.continuationToken; @@ -170,7 +170,7 @@ export class ImagesImpl implements Images { } private async *listPagingAll( - options?: ImagesListOptionalParams + options?: ImagesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -188,7 +188,7 @@ export class ImagesImpl implements Images { resourceGroupName: string, imageName: string, parameters: Image, - options?: ImagesCreateOrUpdateOptionalParams + options?: ImagesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -197,21 +197,20 @@ export class ImagesImpl implements Images { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -220,8 +219,8 @@ export class ImagesImpl implements Images { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -229,22 +228,22 @@ export class ImagesImpl implements Images { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, imageName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ImagesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -261,13 +260,13 @@ export class ImagesImpl implements Images { resourceGroupName: string, imageName: string, parameters: Image, - options?: ImagesCreateOrUpdateOptionalParams + options?: ImagesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, imageName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -283,27 +282,26 @@ export class ImagesImpl implements Images { resourceGroupName: string, imageName: string, parameters: ImageUpdate, - options?: ImagesUpdateOptionalParams + options?: ImagesUpdateOptionalParams, ): Promise< SimplePollerLike, ImagesUpdateResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -312,8 +310,8 @@ export class ImagesImpl implements Images { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -321,22 +319,22 @@ export class ImagesImpl implements Images { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, imageName, parameters, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< ImagesUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -353,13 +351,13 @@ export class ImagesImpl implements Images { resourceGroupName: string, imageName: string, parameters: ImageUpdate, - options?: ImagesUpdateOptionalParams + options?: ImagesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, imageName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -373,25 +371,24 @@ export class ImagesImpl implements Images { async beginDelete( resourceGroupName: string, imageName: string, - options?: ImagesDeleteOptionalParams + options?: ImagesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -400,8 +397,8 @@ export class ImagesImpl implements Images { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -409,19 +406,19 @@ export class ImagesImpl implements Images { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, imageName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -436,12 +433,12 @@ export class ImagesImpl implements Images { async beginDeleteAndWait( resourceGroupName: string, imageName: string, - options?: ImagesDeleteOptionalParams + options?: ImagesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, imageName, - options + options, ); return poller.pollUntilDone(); } @@ -455,11 +452,11 @@ export class ImagesImpl implements Images { get( resourceGroupName: string, imageName: string, - options?: ImagesGetOptionalParams + options?: ImagesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, imageName, options }, - getOperationSpec + getOperationSpec, ); } @@ -471,11 +468,11 @@ export class ImagesImpl implements Images { */ private _listByResourceGroup( resourceGroupName: string, - options?: ImagesListByResourceGroupOptionalParams + options?: ImagesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -485,7 +482,7 @@ export class ImagesImpl implements Images { * @param options The options parameters. */ private _list( - options?: ImagesListOptionalParams + options?: ImagesListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -499,11 +496,11 @@ export class ImagesImpl implements Images { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ImagesListByResourceGroupNextOptionalParams + options?: ImagesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -514,11 +511,11 @@ export class ImagesImpl implements Images { */ private _listNext( nextLink: string, - options?: ImagesListNextOptionalParams + options?: ImagesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -526,25 +523,24 @@ export class ImagesImpl implements Images { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, 201: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, 202: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, 204: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters22, queryParameters: [Parameters.apiVersion], @@ -552,32 +548,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.imageName + Parameters.imageName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, 201: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, 202: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, 204: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters23, queryParameters: [Parameters.apiVersion], @@ -585,15 +580,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.imageName + Parameters.imageName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", httpMethod: "DELETE", responses: { 200: {}, @@ -601,114 +595,112 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.imageName + Parameters.imageName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.imageName + Parameters.imageName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ImageListResult + bodyMapper: Mappers.ImageListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/images", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ImageListResult + bodyMapper: Mappers.ImageListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ImageListResult + bodyMapper: Mappers.ImageListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ImageListResult + bodyMapper: Mappers.ImageListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/logAnalytics.ts b/sdk/compute/arm-compute/src/operations/logAnalytics.ts index d5466c6b1c66..ae76d32997d3 100644 --- a/sdk/compute/arm-compute/src/operations/logAnalytics.ts +++ b/sdk/compute/arm-compute/src/operations/logAnalytics.ts @@ -14,7 +14,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -23,7 +23,7 @@ import { LogAnalyticsExportRequestRateByIntervalResponse, ThrottledRequestsInput, LogAnalyticsExportThrottledRequestsOptionalParams, - LogAnalyticsExportThrottledRequestsResponse + LogAnalyticsExportThrottledRequestsResponse, } from "../models"; /** Class containing LogAnalytics operations. */ @@ -48,7 +48,7 @@ export class LogAnalyticsImpl implements LogAnalytics { async beginExportRequestRateByInterval( location: string, parameters: RequestRateByIntervalInput, - options?: LogAnalyticsExportRequestRateByIntervalOptionalParams + options?: LogAnalyticsExportRequestRateByIntervalOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -57,21 +57,20 @@ export class LogAnalyticsImpl implements LogAnalytics { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -80,8 +79,8 @@ export class LogAnalyticsImpl implements LogAnalytics { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -89,15 +88,15 @@ export class LogAnalyticsImpl implements LogAnalytics { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { location, parameters, options }, - spec: exportRequestRateByIntervalOperationSpec + spec: exportRequestRateByIntervalOperationSpec, }); const poller = await createHttpPoller< LogAnalyticsExportRequestRateByIntervalResponse, @@ -105,7 +104,7 @@ export class LogAnalyticsImpl implements LogAnalytics { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -121,12 +120,12 @@ export class LogAnalyticsImpl implements LogAnalytics { async beginExportRequestRateByIntervalAndWait( location: string, parameters: RequestRateByIntervalInput, - options?: LogAnalyticsExportRequestRateByIntervalOptionalParams + options?: LogAnalyticsExportRequestRateByIntervalOptionalParams, ): Promise { const poller = await this.beginExportRequestRateByInterval( location, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -140,7 +139,7 @@ export class LogAnalyticsImpl implements LogAnalytics { async beginExportThrottledRequests( location: string, parameters: ThrottledRequestsInput, - options?: LogAnalyticsExportThrottledRequestsOptionalParams + options?: LogAnalyticsExportThrottledRequestsOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -149,21 +148,20 @@ export class LogAnalyticsImpl implements LogAnalytics { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -172,8 +170,8 @@ export class LogAnalyticsImpl implements LogAnalytics { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -181,15 +179,15 @@ export class LogAnalyticsImpl implements LogAnalytics { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { location, parameters, options }, - spec: exportThrottledRequestsOperationSpec + spec: exportThrottledRequestsOperationSpec, }); const poller = await createHttpPoller< LogAnalyticsExportThrottledRequestsResponse, @@ -197,7 +195,7 @@ export class LogAnalyticsImpl implements LogAnalytics { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -212,12 +210,12 @@ export class LogAnalyticsImpl implements LogAnalytics { async beginExportThrottledRequestsAndWait( location: string, parameters: ThrottledRequestsInput, - options?: LogAnalyticsExportThrottledRequestsOptionalParams + options?: LogAnalyticsExportThrottledRequestsOptionalParams, ): Promise { const poller = await this.beginExportThrottledRequests( location, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -226,66 +224,64 @@ export class LogAnalyticsImpl implements LogAnalytics { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const exportRequestRateByIntervalOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getRequestRateByInterval", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getRequestRateByInterval", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.LogAnalyticsOperationResult + bodyMapper: Mappers.LogAnalyticsOperationResult, }, 201: { - bodyMapper: Mappers.LogAnalyticsOperationResult + bodyMapper: Mappers.LogAnalyticsOperationResult, }, 202: { - bodyMapper: Mappers.LogAnalyticsOperationResult + bodyMapper: Mappers.LogAnalyticsOperationResult, }, 204: { - bodyMapper: Mappers.LogAnalyticsOperationResult + bodyMapper: Mappers.LogAnalyticsOperationResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters31, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const exportThrottledRequestsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getThrottledRequests", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getThrottledRequests", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.LogAnalyticsOperationResult + bodyMapper: Mappers.LogAnalyticsOperationResult, }, 201: { - bodyMapper: Mappers.LogAnalyticsOperationResult + bodyMapper: Mappers.LogAnalyticsOperationResult, }, 202: { - bodyMapper: Mappers.LogAnalyticsOperationResult + bodyMapper: Mappers.LogAnalyticsOperationResult, }, 204: { - bodyMapper: Mappers.LogAnalyticsOperationResult + bodyMapper: Mappers.LogAnalyticsOperationResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters32, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/operations.ts b/sdk/compute/arm-compute/src/operations/operations.ts index 179dc78a0e09..6d5f1ab4d7eb 100644 --- a/sdk/compute/arm-compute/src/operations/operations.ts +++ b/sdk/compute/arm-compute/src/operations/operations.ts @@ -15,7 +15,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { ComputeOperationValue, OperationsListOptionalParams, - OperationsListResponse + OperationsListResponse, } from "../models"; /// @@ -36,7 +36,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -51,13 +51,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; result = await this._list(options); @@ -65,7 +65,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -77,7 +77,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -90,14 +90,14 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ComputeOperationListResult + bodyMapper: Mappers.ComputeOperationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts b/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts index 1427c04ff5d3..e158d9f4a25a 100644 --- a/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts +++ b/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts @@ -30,7 +30,7 @@ import { ProximityPlacementGroupsGetOptionalParams, ProximityPlacementGroupsGetResponse, ProximityPlacementGroupsListBySubscriptionNextResponse, - ProximityPlacementGroupsListByResourceGroupNextResponse + ProximityPlacementGroupsListByResourceGroupNextResponse, } from "../models"; /// @@ -51,7 +51,7 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { * @param options The options parameters. */ public listBySubscription( - options?: ProximityPlacementGroupsListBySubscriptionOptionalParams + options?: ProximityPlacementGroupsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -66,13 +66,13 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: ProximityPlacementGroupsListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProximityPlacementGroupsListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +93,7 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { } private async *listBySubscriptionPagingAll( - options?: ProximityPlacementGroupsListBySubscriptionOptionalParams + options?: ProximityPlacementGroupsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -107,7 +107,7 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { */ public listByResourceGroup( resourceGroupName: string, - options?: ProximityPlacementGroupsListByResourceGroupOptionalParams + options?: ProximityPlacementGroupsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -124,16 +124,16 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: ProximityPlacementGroupsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProximityPlacementGroupsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -148,7 +148,7 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -159,11 +159,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ProximityPlacementGroupsListByResourceGroupOptionalParams + options?: ProximityPlacementGroupsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -180,11 +180,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { resourceGroupName: string, proximityPlacementGroupName: string, parameters: ProximityPlacementGroup, - options?: ProximityPlacementGroupsCreateOrUpdateOptionalParams + options?: ProximityPlacementGroupsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, proximityPlacementGroupName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -199,11 +199,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { resourceGroupName: string, proximityPlacementGroupName: string, parameters: ProximityPlacementGroupUpdate, - options?: ProximityPlacementGroupsUpdateOptionalParams + options?: ProximityPlacementGroupsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, proximityPlacementGroupName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -216,11 +216,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { delete( resourceGroupName: string, proximityPlacementGroupName: string, - options?: ProximityPlacementGroupsDeleteOptionalParams + options?: ProximityPlacementGroupsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, proximityPlacementGroupName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -233,11 +233,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { get( resourceGroupName: string, proximityPlacementGroupName: string, - options?: ProximityPlacementGroupsGetOptionalParams + options?: ProximityPlacementGroupsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, proximityPlacementGroupName, options }, - getOperationSpec + getOperationSpec, ); } @@ -246,11 +246,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { * @param options The options parameters. */ private _listBySubscription( - options?: ProximityPlacementGroupsListBySubscriptionOptionalParams + options?: ProximityPlacementGroupsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -261,11 +261,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { */ private _listByResourceGroup( resourceGroupName: string, - options?: ProximityPlacementGroupsListByResourceGroupOptionalParams + options?: ProximityPlacementGroupsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -276,11 +276,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { */ private _listBySubscriptionNext( nextLink: string, - options?: ProximityPlacementGroupsListBySubscriptionNextOptionalParams + options?: ProximityPlacementGroupsListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -293,11 +293,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ProximityPlacementGroupsListByResourceGroupNextOptionalParams + options?: ProximityPlacementGroupsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -305,19 +305,18 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ProximityPlacementGroup + bodyMapper: Mappers.ProximityPlacementGroup, }, 201: { - bodyMapper: Mappers.ProximityPlacementGroup + bodyMapper: Mappers.ProximityPlacementGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters13, queryParameters: [Parameters.apiVersion], @@ -325,23 +324,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.proximityPlacementGroupName + Parameters.proximityPlacementGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ProximityPlacementGroup + bodyMapper: Mappers.ProximityPlacementGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters14, queryParameters: [Parameters.apiVersion], @@ -349,128 +347,124 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.proximityPlacementGroupName + Parameters.proximityPlacementGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", httpMethod: "DELETE", responses: { 200: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.proximityPlacementGroupName + Parameters.proximityPlacementGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProximityPlacementGroup + bodyMapper: Mappers.ProximityPlacementGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.includeColocationStatus], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.proximityPlacementGroupName + Parameters.proximityPlacementGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/proximityPlacementGroups", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/proximityPlacementGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProximityPlacementGroupListResult + bodyMapper: Mappers.ProximityPlacementGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProximityPlacementGroupListResult + bodyMapper: Mappers.ProximityPlacementGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProximityPlacementGroupListResult + bodyMapper: Mappers.ProximityPlacementGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProximityPlacementGroupListResult + bodyMapper: Mappers.ProximityPlacementGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/resourceSkus.ts b/sdk/compute/arm-compute/src/operations/resourceSkus.ts index f500d42fc553..37e0a9de5a5f 100644 --- a/sdk/compute/arm-compute/src/operations/resourceSkus.ts +++ b/sdk/compute/arm-compute/src/operations/resourceSkus.ts @@ -18,7 +18,7 @@ import { ResourceSkusListNextOptionalParams, ResourceSkusListOptionalParams, ResourceSkusListResponse, - ResourceSkusListNextResponse + ResourceSkusListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class ResourceSkusImpl implements ResourceSkus { * @param options The options parameters. */ public list( - options?: ResourceSkusListOptionalParams + options?: ResourceSkusListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class ResourceSkusImpl implements ResourceSkus { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: ResourceSkusListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ResourceSkusListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class ResourceSkusImpl implements ResourceSkus { } private async *listPagingAll( - options?: ResourceSkusListOptionalParams + options?: ResourceSkusListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class ResourceSkusImpl implements ResourceSkus { * @param options The options parameters. */ private _list( - options?: ResourceSkusListOptionalParams + options?: ResourceSkusListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class ResourceSkusImpl implements ResourceSkus { */ private _listNext( nextLink: string, - options?: ResourceSkusListNextOptionalParams + options?: ResourceSkusListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,31 +121,31 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceSkusResult - } + bodyMapper: Mappers.ResourceSkusResult, + }, }, queryParameters: [ Parameters.filter, Parameters.apiVersion2, - Parameters.includeExtendedLocations + Parameters.includeExtendedLocations, ], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceSkusResult - } + bodyMapper: Mappers.ResourceSkusResult, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/restorePointCollections.ts b/sdk/compute/arm-compute/src/operations/restorePointCollections.ts index eba6ad238f07..2b89eb2c14cf 100644 --- a/sdk/compute/arm-compute/src/operations/restorePointCollections.ts +++ b/sdk/compute/arm-compute/src/operations/restorePointCollections.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -36,7 +36,7 @@ import { RestorePointCollectionsGetOptionalParams, RestorePointCollectionsGetResponse, RestorePointCollectionsListNextResponse, - RestorePointCollectionsListAllNextResponse + RestorePointCollectionsListAllNextResponse, } from "../models"; /// @@ -59,7 +59,7 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { */ public list( resourceGroupName: string, - options?: RestorePointCollectionsListOptionalParams + options?: RestorePointCollectionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, options); return { @@ -74,14 +74,14 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(resourceGroupName, options, settings); - } + }, }; } private async *listPagingPage( resourceGroupName: string, options?: RestorePointCollectionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RestorePointCollectionsListResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +96,7 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { result = await this._listNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,7 +107,7 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { private async *listPagingAll( resourceGroupName: string, - options?: RestorePointCollectionsListOptionalParams + options?: RestorePointCollectionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceGroupName, options)) { yield* page; @@ -121,7 +121,7 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { * @param options The options parameters. */ public listAll( - options?: RestorePointCollectionsListAllOptionalParams + options?: RestorePointCollectionsListAllOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAllPagingAll(options); return { @@ -136,13 +136,13 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { throw new Error("maxPageSize is not supported by this operation."); } return this.listAllPagingPage(options, settings); - } + }, }; } private async *listAllPagingPage( options?: RestorePointCollectionsListAllOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RestorePointCollectionsListAllResponse; let continuationToken = settings?.continuationToken; @@ -163,7 +163,7 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { } private async *listAllPagingAll( - options?: RestorePointCollectionsListAllOptionalParams + options?: RestorePointCollectionsListAllOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAllPagingPage(options)) { yield* page; @@ -183,11 +183,11 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { resourceGroupName: string, restorePointCollectionName: string, parameters: RestorePointCollection, - options?: RestorePointCollectionsCreateOrUpdateOptionalParams + options?: RestorePointCollectionsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, restorePointCollectionName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -202,11 +202,11 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { resourceGroupName: string, restorePointCollectionName: string, parameters: RestorePointCollectionUpdate, - options?: RestorePointCollectionsUpdateOptionalParams + options?: RestorePointCollectionsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, restorePointCollectionName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -220,25 +220,24 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { async beginDelete( resourceGroupName: string, restorePointCollectionName: string, - options?: RestorePointCollectionsDeleteOptionalParams + options?: RestorePointCollectionsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -247,8 +246,8 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -256,19 +255,19 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, restorePointCollectionName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -284,12 +283,12 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { async beginDeleteAndWait( resourceGroupName: string, restorePointCollectionName: string, - options?: RestorePointCollectionsDeleteOptionalParams + options?: RestorePointCollectionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, restorePointCollectionName, - options + options, ); return poller.pollUntilDone(); } @@ -303,11 +302,11 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { get( resourceGroupName: string, restorePointCollectionName: string, - options?: RestorePointCollectionsGetOptionalParams + options?: RestorePointCollectionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, restorePointCollectionName, options }, - getOperationSpec + getOperationSpec, ); } @@ -318,11 +317,11 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { */ private _list( resourceGroupName: string, - options?: RestorePointCollectionsListOptionalParams + options?: RestorePointCollectionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listOperationSpec + listOperationSpec, ); } @@ -333,7 +332,7 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { * @param options The options parameters. */ private _listAll( - options?: RestorePointCollectionsListAllOptionalParams + options?: RestorePointCollectionsListAllOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listAllOperationSpec); } @@ -347,11 +346,11 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { private _listNext( resourceGroupName: string, nextLink: string, - options?: RestorePointCollectionsListNextOptionalParams + options?: RestorePointCollectionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -362,11 +361,11 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { */ private _listAllNext( nextLink: string, - options?: RestorePointCollectionsListAllNextOptionalParams + options?: RestorePointCollectionsListAllNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listAllNextOperationSpec + listAllNextOperationSpec, ); } } @@ -374,19 +373,18 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.RestorePointCollection + bodyMapper: Mappers.RestorePointCollection, }, 201: { - bodyMapper: Mappers.RestorePointCollection + bodyMapper: Mappers.RestorePointCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters24, queryParameters: [Parameters.apiVersion], @@ -394,23 +392,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.restorePointCollectionName + Parameters.restorePointCollectionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.RestorePointCollection + bodyMapper: Mappers.RestorePointCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters25, queryParameters: [Parameters.apiVersion], @@ -418,15 +415,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.restorePointCollectionName + Parameters.restorePointCollectionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -434,115 +430,112 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.restorePointCollectionName + Parameters.restorePointCollectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestorePointCollection + bodyMapper: Mappers.RestorePointCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.restorePointCollectionName + Parameters.restorePointCollectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestorePointCollectionListResult + bodyMapper: Mappers.RestorePointCollectionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAllOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/restorePointCollections", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/restorePointCollections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestorePointCollectionListResult + bodyMapper: Mappers.RestorePointCollectionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestorePointCollectionListResult + bodyMapper: Mappers.RestorePointCollectionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAllNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestorePointCollectionListResult + bodyMapper: Mappers.RestorePointCollectionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/restorePoints.ts b/sdk/compute/arm-compute/src/operations/restorePoints.ts index e327f4898ff8..7d2d9a0376d3 100644 --- a/sdk/compute/arm-compute/src/operations/restorePoints.ts +++ b/sdk/compute/arm-compute/src/operations/restorePoints.ts @@ -14,7 +14,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -23,7 +23,7 @@ import { RestorePointsCreateResponse, RestorePointsDeleteOptionalParams, RestorePointsGetOptionalParams, - RestorePointsGetResponse + RestorePointsGetResponse, } from "../models"; /** Class containing RestorePoints operations. */ @@ -52,7 +52,7 @@ export class RestorePointsImpl implements RestorePoints { restorePointCollectionName: string, restorePointName: string, parameters: RestorePoint, - options?: RestorePointsCreateOptionalParams + options?: RestorePointsCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -61,21 +61,20 @@ export class RestorePointsImpl implements RestorePoints { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -84,8 +83,8 @@ export class RestorePointsImpl implements RestorePoints { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -93,8 +92,8 @@ export class RestorePointsImpl implements RestorePoints { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -105,16 +104,16 @@ export class RestorePointsImpl implements RestorePoints { restorePointCollectionName, restorePointName, parameters, - options + options, }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< RestorePointsCreateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -134,14 +133,14 @@ export class RestorePointsImpl implements RestorePoints { restorePointCollectionName: string, restorePointName: string, parameters: RestorePoint, - options?: RestorePointsCreateOptionalParams + options?: RestorePointsCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, restorePointCollectionName, restorePointName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -157,25 +156,24 @@ export class RestorePointsImpl implements RestorePoints { resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, - options?: RestorePointsDeleteOptionalParams + options?: RestorePointsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -184,8 +182,8 @@ export class RestorePointsImpl implements RestorePoints { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -193,8 +191,8 @@ export class RestorePointsImpl implements RestorePoints { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -204,13 +202,13 @@ export class RestorePointsImpl implements RestorePoints { resourceGroupName, restorePointCollectionName, restorePointName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -227,13 +225,13 @@ export class RestorePointsImpl implements RestorePoints { resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, - options?: RestorePointsDeleteOptionalParams + options?: RestorePointsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, restorePointCollectionName, restorePointName, - options + options, ); return poller.pollUntilDone(); } @@ -249,16 +247,16 @@ export class RestorePointsImpl implements RestorePoints { resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, - options?: RestorePointsGetOptionalParams + options?: RestorePointsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, restorePointCollectionName, restorePointName, - options + options, }, - getOperationSpec + getOperationSpec, ); } } @@ -266,25 +264,24 @@ export class RestorePointsImpl implements RestorePoints { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.RestorePoint + bodyMapper: Mappers.RestorePoint, }, 201: { - bodyMapper: Mappers.RestorePoint + bodyMapper: Mappers.RestorePoint, }, 202: { - bodyMapper: Mappers.RestorePoint + bodyMapper: Mappers.RestorePoint, }, 204: { - bodyMapper: Mappers.RestorePoint + bodyMapper: Mappers.RestorePoint, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters26, queryParameters: [Parameters.apiVersion], @@ -293,15 +290,14 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.restorePointCollectionName, - Parameters.restorePointName + Parameters.restorePointName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", httpMethod: "DELETE", responses: { 200: {}, @@ -309,8 +305,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -318,22 +314,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.restorePointCollectionName, - Parameters.restorePointName + Parameters.restorePointName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestorePoint + bodyMapper: Mappers.RestorePoint, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand6], urlParameters: [ @@ -341,8 +336,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.restorePointCollectionName, - Parameters.restorePointName + Parameters.restorePointName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleries.ts b/sdk/compute/arm-compute/src/operations/sharedGalleries.ts index fbfc216914cd..8ba3cab788eb 100644 --- a/sdk/compute/arm-compute/src/operations/sharedGalleries.ts +++ b/sdk/compute/arm-compute/src/operations/sharedGalleries.ts @@ -20,7 +20,7 @@ import { SharedGalleriesListResponse, SharedGalleriesGetOptionalParams, SharedGalleriesGetResponse, - SharedGalleriesListNextResponse + SharedGalleriesListNextResponse, } from "../models"; /// @@ -43,7 +43,7 @@ export class SharedGalleriesImpl implements SharedGalleries { */ public list( location: string, - options?: SharedGalleriesListOptionalParams + options?: SharedGalleriesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(location, options); return { @@ -58,14 +58,14 @@ export class SharedGalleriesImpl implements SharedGalleries { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(location, options, settings); - } + }, }; } private async *listPagingPage( location: string, options?: SharedGalleriesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SharedGalleriesListResponse; let continuationToken = settings?.continuationToken; @@ -87,7 +87,7 @@ export class SharedGalleriesImpl implements SharedGalleries { private async *listPagingAll( location: string, - options?: SharedGalleriesListOptionalParams + options?: SharedGalleriesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(location, options)) { yield* page; @@ -101,11 +101,11 @@ export class SharedGalleriesImpl implements SharedGalleries { */ private _list( location: string, - options?: SharedGalleriesListOptionalParams + options?: SharedGalleriesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listOperationSpec + listOperationSpec, ); } @@ -118,11 +118,11 @@ export class SharedGalleriesImpl implements SharedGalleries { get( location: string, galleryUniqueName: string, - options?: SharedGalleriesGetOptionalParams + options?: SharedGalleriesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, galleryUniqueName, options }, - getOperationSpec + getOperationSpec, ); } @@ -135,11 +135,11 @@ export class SharedGalleriesImpl implements SharedGalleries { private _listNext( location: string, nextLink: string, - options?: SharedGalleriesListNextOptionalParams + options?: SharedGalleriesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -147,65 +147,63 @@ export class SharedGalleriesImpl implements SharedGalleries { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGalleryList + bodyMapper: Mappers.SharedGalleryList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3, Parameters.sharedTo], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGallery + bodyMapper: Mappers.SharedGallery, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.galleryUniqueName + Parameters.galleryUniqueName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGalleryList + bodyMapper: Mappers.SharedGalleryList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts index d079ce61a9b9..9df6b2749c89 100644 --- a/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts @@ -20,13 +20,14 @@ import { SharedGalleryImageVersionsListResponse, SharedGalleryImageVersionsGetOptionalParams, SharedGalleryImageVersionsGetResponse, - SharedGalleryImageVersionsListNextResponse + SharedGalleryImageVersionsListNextResponse, } from "../models"; /// /** Class containing SharedGalleryImageVersions operations. */ export class SharedGalleryImageVersionsImpl - implements SharedGalleryImageVersions { + implements SharedGalleryImageVersions +{ private readonly client: ComputeManagementClient; /** @@ -49,13 +50,13 @@ export class SharedGalleryImageVersionsImpl location: string, galleryUniqueName: string, galleryImageName: string, - options?: SharedGalleryImageVersionsListOptionalParams + options?: SharedGalleryImageVersionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( location, galleryUniqueName, galleryImageName, - options + options, ); return { next() { @@ -73,9 +74,9 @@ export class SharedGalleryImageVersionsImpl galleryUniqueName, galleryImageName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +85,7 @@ export class SharedGalleryImageVersionsImpl galleryUniqueName: string, galleryImageName: string, options?: SharedGalleryImageVersionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SharedGalleryImageVersionsListResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +94,7 @@ export class SharedGalleryImageVersionsImpl location, galleryUniqueName, galleryImageName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -106,7 +107,7 @@ export class SharedGalleryImageVersionsImpl galleryUniqueName, galleryImageName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -119,13 +120,13 @@ export class SharedGalleryImageVersionsImpl location: string, galleryUniqueName: string, galleryImageName: string, - options?: SharedGalleryImageVersionsListOptionalParams + options?: SharedGalleryImageVersionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( location, galleryUniqueName, galleryImageName, - options + options, )) { yield* page; } @@ -143,11 +144,11 @@ export class SharedGalleryImageVersionsImpl location: string, galleryUniqueName: string, galleryImageName: string, - options?: SharedGalleryImageVersionsListOptionalParams + options?: SharedGalleryImageVersionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, galleryUniqueName, galleryImageName, options }, - listOperationSpec + listOperationSpec, ); } @@ -167,7 +168,7 @@ export class SharedGalleryImageVersionsImpl galleryUniqueName: string, galleryImageName: string, galleryImageVersionName: string, - options?: SharedGalleryImageVersionsGetOptionalParams + options?: SharedGalleryImageVersionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -175,9 +176,9 @@ export class SharedGalleryImageVersionsImpl galleryUniqueName, galleryImageName, galleryImageVersionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -195,11 +196,11 @@ export class SharedGalleryImageVersionsImpl galleryUniqueName: string, galleryImageName: string, nextLink: string, - options?: SharedGalleryImageVersionsListNextOptionalParams + options?: SharedGalleryImageVersionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, galleryUniqueName, galleryImageName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -207,16 +208,15 @@ export class SharedGalleryImageVersionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGalleryImageVersionList + bodyMapper: Mappers.SharedGalleryImageVersionList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3, Parameters.sharedTo], urlParameters: [ @@ -224,22 +224,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.location1, Parameters.galleryImageName, - Parameters.galleryUniqueName + Parameters.galleryUniqueName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions/{galleryImageVersionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGalleryImageVersion + bodyMapper: Mappers.SharedGalleryImageVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -248,21 +247,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.location1, Parameters.galleryImageName, Parameters.galleryImageVersionName, - Parameters.galleryUniqueName + Parameters.galleryUniqueName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGalleryImageVersionList + bodyMapper: Mappers.SharedGalleryImageVersionList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -270,8 +269,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.nextLink, Parameters.location1, Parameters.galleryImageName, - Parameters.galleryUniqueName + Parameters.galleryUniqueName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts b/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts index 4f5bc150e926..13688248039c 100644 --- a/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts @@ -20,7 +20,7 @@ import { SharedGalleryImagesListResponse, SharedGalleryImagesGetOptionalParams, SharedGalleryImagesGetResponse, - SharedGalleryImagesListNextResponse + SharedGalleryImagesListNextResponse, } from "../models"; /// @@ -45,7 +45,7 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { public list( location: string, galleryUniqueName: string, - options?: SharedGalleryImagesListOptionalParams + options?: SharedGalleryImagesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(location, galleryUniqueName, options); return { @@ -63,9 +63,9 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { location, galleryUniqueName, options, - settings + settings, ); - } + }, }; } @@ -73,7 +73,7 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { location: string, galleryUniqueName: string, options?: SharedGalleryImagesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SharedGalleryImagesListResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { location, galleryUniqueName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -101,12 +101,12 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { private async *listPagingAll( location: string, galleryUniqueName: string, - options?: SharedGalleryImagesListOptionalParams + options?: SharedGalleryImagesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( location, galleryUniqueName, - options + options, )) { yield* page; } @@ -121,11 +121,11 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { private _list( location: string, galleryUniqueName: string, - options?: SharedGalleryImagesListOptionalParams + options?: SharedGalleryImagesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, galleryUniqueName, options }, - listOperationSpec + listOperationSpec, ); } @@ -141,11 +141,11 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { location: string, galleryUniqueName: string, galleryImageName: string, - options?: SharedGalleryImagesGetOptionalParams + options?: SharedGalleryImagesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, galleryUniqueName, galleryImageName, options }, - getOperationSpec + getOperationSpec, ); } @@ -160,11 +160,11 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { location: string, galleryUniqueName: string, nextLink: string, - options?: SharedGalleryImagesListNextOptionalParams + options?: SharedGalleryImagesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, galleryUniqueName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -172,38 +172,36 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGalleryImageList + bodyMapper: Mappers.SharedGalleryImageList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3, Parameters.sharedTo], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.galleryUniqueName + Parameters.galleryUniqueName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGalleryImage + bodyMapper: Mappers.SharedGalleryImage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -211,29 +209,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.location1, Parameters.galleryImageName, - Parameters.galleryUniqueName + Parameters.galleryUniqueName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGalleryImageList + bodyMapper: Mappers.SharedGalleryImageList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.location1, - Parameters.galleryUniqueName + Parameters.galleryUniqueName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/snapshots.ts b/sdk/compute/arm-compute/src/operations/snapshots.ts index 6257f2de0768..1ea69312bda1 100644 --- a/sdk/compute/arm-compute/src/operations/snapshots.ts +++ b/sdk/compute/arm-compute/src/operations/snapshots.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -40,7 +40,7 @@ import { SnapshotsGrantAccessResponse, SnapshotsRevokeAccessOptionalParams, SnapshotsListByResourceGroupNextResponse, - SnapshotsListNextResponse + SnapshotsListNextResponse, } from "../models"; /// @@ -63,7 +63,7 @@ export class SnapshotsImpl implements Snapshots { */ public listByResourceGroup( resourceGroupName: string, - options?: SnapshotsListByResourceGroupOptionalParams + options?: SnapshotsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -80,16 +80,16 @@ export class SnapshotsImpl implements Snapshots { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: SnapshotsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SnapshotsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -104,7 +104,7 @@ export class SnapshotsImpl implements Snapshots { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,11 +115,11 @@ export class SnapshotsImpl implements Snapshots { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: SnapshotsListByResourceGroupOptionalParams + options?: SnapshotsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -130,7 +130,7 @@ export class SnapshotsImpl implements Snapshots { * @param options The options parameters. */ public list( - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -145,13 +145,13 @@ export class SnapshotsImpl implements Snapshots { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: SnapshotsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SnapshotsListResponse; let continuationToken = settings?.continuationToken; @@ -172,7 +172,7 @@ export class SnapshotsImpl implements Snapshots { } private async *listPagingAll( - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -192,7 +192,7 @@ export class SnapshotsImpl implements Snapshots { resourceGroupName: string, snapshotName: string, snapshot: Snapshot, - options?: SnapshotsCreateOrUpdateOptionalParams + options?: SnapshotsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -201,21 +201,20 @@ export class SnapshotsImpl implements Snapshots { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -224,8 +223,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -233,22 +232,22 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, snapshotName, snapshot, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< SnapshotsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -267,13 +266,13 @@ export class SnapshotsImpl implements Snapshots { resourceGroupName: string, snapshotName: string, snapshot: Snapshot, - options?: SnapshotsCreateOrUpdateOptionalParams + options?: SnapshotsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, snapshotName, snapshot, - options + options, ); return poller.pollUntilDone(); } @@ -291,7 +290,7 @@ export class SnapshotsImpl implements Snapshots { resourceGroupName: string, snapshotName: string, snapshot: SnapshotUpdate, - options?: SnapshotsUpdateOptionalParams + options?: SnapshotsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -300,21 +299,20 @@ export class SnapshotsImpl implements Snapshots { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -323,8 +321,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -332,22 +330,22 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, snapshotName, snapshot, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< SnapshotsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -366,13 +364,13 @@ export class SnapshotsImpl implements Snapshots { resourceGroupName: string, snapshotName: string, snapshot: SnapshotUpdate, - options?: SnapshotsUpdateOptionalParams + options?: SnapshotsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, snapshotName, snapshot, - options + options, ); return poller.pollUntilDone(); } @@ -388,11 +386,11 @@ export class SnapshotsImpl implements Snapshots { get( resourceGroupName: string, snapshotName: string, - options?: SnapshotsGetOptionalParams + options?: SnapshotsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, snapshotName, options }, - getOperationSpec + getOperationSpec, ); } @@ -407,25 +405,24 @@ export class SnapshotsImpl implements Snapshots { async beginDelete( resourceGroupName: string, snapshotName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -434,8 +431,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -443,19 +440,19 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, snapshotName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -472,12 +469,12 @@ export class SnapshotsImpl implements Snapshots { async beginDeleteAndWait( resourceGroupName: string, snapshotName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, snapshotName, - options + options, ); return poller.pollUntilDone(); } @@ -489,11 +486,11 @@ export class SnapshotsImpl implements Snapshots { */ private _listByResourceGroup( resourceGroupName: string, - options?: SnapshotsListByResourceGroupOptionalParams + options?: SnapshotsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -502,7 +499,7 @@ export class SnapshotsImpl implements Snapshots { * @param options The options parameters. */ private _list( - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -520,7 +517,7 @@ export class SnapshotsImpl implements Snapshots { resourceGroupName: string, snapshotName: string, grantAccessData: GrantAccessData, - options?: SnapshotsGrantAccessOptionalParams + options?: SnapshotsGrantAccessOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -529,21 +526,20 @@ export class SnapshotsImpl implements Snapshots { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -552,8 +548,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -561,15 +557,15 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, snapshotName, grantAccessData, options }, - spec: grantAccessOperationSpec + spec: grantAccessOperationSpec, }); const poller = await createHttpPoller< SnapshotsGrantAccessResponse, @@ -577,7 +573,7 @@ export class SnapshotsImpl implements Snapshots { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -596,13 +592,13 @@ export class SnapshotsImpl implements Snapshots { resourceGroupName: string, snapshotName: string, grantAccessData: GrantAccessData, - options?: SnapshotsGrantAccessOptionalParams + options?: SnapshotsGrantAccessOptionalParams, ): Promise { const poller = await this.beginGrantAccess( resourceGroupName, snapshotName, grantAccessData, - options + options, ); return poller.pollUntilDone(); } @@ -618,25 +614,24 @@ export class SnapshotsImpl implements Snapshots { async beginRevokeAccess( resourceGroupName: string, snapshotName: string, - options?: SnapshotsRevokeAccessOptionalParams + options?: SnapshotsRevokeAccessOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -645,8 +640,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -654,20 +649,20 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, snapshotName, options }, - spec: revokeAccessOperationSpec + spec: revokeAccessOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -684,12 +679,12 @@ export class SnapshotsImpl implements Snapshots { async beginRevokeAccessAndWait( resourceGroupName: string, snapshotName: string, - options?: SnapshotsRevokeAccessOptionalParams + options?: SnapshotsRevokeAccessOptionalParams, ): Promise { const poller = await this.beginRevokeAccess( resourceGroupName, snapshotName, - options + options, ); return poller.pollUntilDone(); } @@ -703,11 +698,11 @@ export class SnapshotsImpl implements Snapshots { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: SnapshotsListByResourceGroupNextOptionalParams + options?: SnapshotsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -718,11 +713,11 @@ export class SnapshotsImpl implements Snapshots { */ private _listNext( nextLink: string, - options?: SnapshotsListNextOptionalParams + options?: SnapshotsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -730,22 +725,21 @@ export class SnapshotsImpl implements Snapshots { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 201: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 202: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 204: { - bodyMapper: Mappers.Snapshot - } + bodyMapper: Mappers.Snapshot, + }, }, requestBody: Parameters.snapshot, queryParameters: [Parameters.apiVersion1], @@ -753,29 +747,28 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.snapshotName + Parameters.snapshotName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 201: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 202: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 204: { - bodyMapper: Mappers.Snapshot - } + bodyMapper: Mappers.Snapshot, + }, }, requestBody: Parameters.snapshot1, queryParameters: [Parameters.apiVersion1], @@ -783,34 +776,32 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.snapshotName + Parameters.snapshotName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Snapshot - } + bodyMapper: Mappers.Snapshot, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.snapshotName + Parameters.snapshotName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {} }, queryParameters: [Parameters.apiVersion1], @@ -818,58 +809,56 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.snapshotName + Parameters.snapshotName, ], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotList - } + bodyMapper: Mappers.SnapshotList, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/snapshots", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotList - } + bodyMapper: Mappers.SnapshotList, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const grantAccessOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/beginGetAccess", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/beginGetAccess", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 201: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 202: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 204: { - bodyMapper: Mappers.AccessUri - } + bodyMapper: Mappers.AccessUri, + }, }, requestBody: Parameters.grantAccessData, queryParameters: [Parameters.apiVersion1], @@ -877,15 +866,14 @@ const grantAccessOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.snapshotName + Parameters.snapshotName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const revokeAccessOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/endGetAccess", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/endGetAccess", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {} }, queryParameters: [Parameters.apiVersion1], @@ -893,40 +881,40 @@ const revokeAccessOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.snapshotName + Parameters.snapshotName, ], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotList - } + bodyMapper: Mappers.SnapshotList, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotList - } + bodyMapper: Mappers.SnapshotList, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts b/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts index bb3617823018..3af7d3524614 100644 --- a/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts +++ b/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts @@ -32,7 +32,7 @@ import { SshPublicKeysGenerateKeyPairOptionalParams, SshPublicKeysGenerateKeyPairResponse, SshPublicKeysListBySubscriptionNextResponse, - SshPublicKeysListByResourceGroupNextResponse + SshPublicKeysListByResourceGroupNextResponse, } from "../models"; /// @@ -54,7 +54,7 @@ export class SshPublicKeysImpl implements SshPublicKeys { * @param options The options parameters. */ public listBySubscription( - options?: SshPublicKeysListBySubscriptionOptionalParams + options?: SshPublicKeysListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -69,13 +69,13 @@ export class SshPublicKeysImpl implements SshPublicKeys { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: SshPublicKeysListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SshPublicKeysListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +96,7 @@ export class SshPublicKeysImpl implements SshPublicKeys { } private async *listBySubscriptionPagingAll( - options?: SshPublicKeysListBySubscriptionOptionalParams + options?: SshPublicKeysListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -111,7 +111,7 @@ export class SshPublicKeysImpl implements SshPublicKeys { */ public listByResourceGroup( resourceGroupName: string, - options?: SshPublicKeysListByResourceGroupOptionalParams + options?: SshPublicKeysListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -128,16 +128,16 @@ export class SshPublicKeysImpl implements SshPublicKeys { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: SshPublicKeysListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SshPublicKeysListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -152,7 +152,7 @@ export class SshPublicKeysImpl implements SshPublicKeys { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -163,11 +163,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: SshPublicKeysListByResourceGroupOptionalParams + options?: SshPublicKeysListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -179,11 +179,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { * @param options The options parameters. */ private _listBySubscription( - options?: SshPublicKeysListBySubscriptionOptionalParams + options?: SshPublicKeysListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -195,11 +195,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { */ private _listByResourceGroup( resourceGroupName: string, - options?: SshPublicKeysListByResourceGroupOptionalParams + options?: SshPublicKeysListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -214,11 +214,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { resourceGroupName: string, sshPublicKeyName: string, parameters: SshPublicKeyResource, - options?: SshPublicKeysCreateOptionalParams + options?: SshPublicKeysCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, sshPublicKeyName, parameters, options }, - createOperationSpec + createOperationSpec, ); } @@ -233,11 +233,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { resourceGroupName: string, sshPublicKeyName: string, parameters: SshPublicKeyUpdateResource, - options?: SshPublicKeysUpdateOptionalParams + options?: SshPublicKeysUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, sshPublicKeyName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -250,11 +250,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { delete( resourceGroupName: string, sshPublicKeyName: string, - options?: SshPublicKeysDeleteOptionalParams + options?: SshPublicKeysDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, sshPublicKeyName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -267,11 +267,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { get( resourceGroupName: string, sshPublicKeyName: string, - options?: SshPublicKeysGetOptionalParams + options?: SshPublicKeysGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, sshPublicKeyName, options }, - getOperationSpec + getOperationSpec, ); } @@ -286,11 +286,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { generateKeyPair( resourceGroupName: string, sshPublicKeyName: string, - options?: SshPublicKeysGenerateKeyPairOptionalParams + options?: SshPublicKeysGenerateKeyPairOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, sshPublicKeyName, options }, - generateKeyPairOperationSpec + generateKeyPairOperationSpec, ); } @@ -301,11 +301,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { */ private _listBySubscriptionNext( nextLink: string, - options?: SshPublicKeysListBySubscriptionNextOptionalParams + options?: SshPublicKeysListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -318,11 +318,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: SshPublicKeysListByResourceGroupNextOptionalParams + options?: SshPublicKeysListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -330,57 +330,54 @@ export class SshPublicKeysImpl implements SshPublicKeys { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/sshPublicKeys", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/sshPublicKeys", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SshPublicKeysGroupListResult + bodyMapper: Mappers.SshPublicKeysGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SshPublicKeysGroupListResult + bodyMapper: Mappers.SshPublicKeysGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SshPublicKeyResource + bodyMapper: Mappers.SshPublicKeyResource, }, 201: { - bodyMapper: Mappers.SshPublicKeyResource + bodyMapper: Mappers.SshPublicKeyResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters19, queryParameters: [Parameters.apiVersion], @@ -388,23 +385,22 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.sshPublicKeyName + Parameters.sshPublicKeyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.SshPublicKeyResource + bodyMapper: Mappers.SshPublicKeyResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters20, queryParameters: [Parameters.apiVersion], @@ -412,66 +408,63 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.sshPublicKeyName + Parameters.sshPublicKeyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.sshPublicKeyName + Parameters.sshPublicKeyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SshPublicKeyResource + bodyMapper: Mappers.SshPublicKeyResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.sshPublicKeyName + Parameters.sshPublicKeyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const generateKeyPairOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}/generateKeyPair", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}/generateKeyPair", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.SshPublicKeyGenerateKeyPairResult + bodyMapper: Mappers.SshPublicKeyGenerateKeyPairResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters21, queryParameters: [Parameters.apiVersion], @@ -479,48 +472,48 @@ const generateKeyPairOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.sshPublicKeyName + Parameters.sshPublicKeyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SshPublicKeysGroupListResult + bodyMapper: Mappers.SshPublicKeysGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SshPublicKeysGroupListResult + bodyMapper: Mappers.SshPublicKeysGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/usageOperations.ts b/sdk/compute/arm-compute/src/operations/usageOperations.ts index c554e62731ef..b10c18f706ab 100644 --- a/sdk/compute/arm-compute/src/operations/usageOperations.ts +++ b/sdk/compute/arm-compute/src/operations/usageOperations.ts @@ -18,7 +18,7 @@ import { UsageListNextOptionalParams, UsageListOptionalParams, UsageListResponse, - UsageListNextResponse + UsageListNextResponse, } from "../models"; /// @@ -42,7 +42,7 @@ export class UsageOperationsImpl implements UsageOperations { */ public list( location: string, - options?: UsageListOptionalParams + options?: UsageListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(location, options); return { @@ -57,14 +57,14 @@ export class UsageOperationsImpl implements UsageOperations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(location, options, settings); - } + }, }; } private async *listPagingPage( location: string, options?: UsageListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: UsageListResponse; let continuationToken = settings?.continuationToken; @@ -86,7 +86,7 @@ export class UsageOperationsImpl implements UsageOperations { private async *listPagingAll( location: string, - options?: UsageListOptionalParams + options?: UsageListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(location, options)) { yield* page; @@ -101,11 +101,11 @@ export class UsageOperationsImpl implements UsageOperations { */ private _list( location: string, - options?: UsageListOptionalParams + options?: UsageListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listOperationSpec + listOperationSpec, ); } @@ -118,11 +118,11 @@ export class UsageOperationsImpl implements UsageOperations { private _listNext( location: string, nextLink: string, - options?: UsageListNextOptionalParams + options?: UsageListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -130,43 +130,42 @@ export class UsageOperationsImpl implements UsageOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/usages", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/usages", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListUsagesResult + bodyMapper: Mappers.ListUsagesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListUsagesResult + bodyMapper: Mappers.ListUsagesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.location, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts b/sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts index 8d337c4325b7..64fc1610910d 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts @@ -17,12 +17,13 @@ import { VirtualMachineExtensionImagesListTypesOptionalParams, VirtualMachineExtensionImagesListTypesResponse, VirtualMachineExtensionImagesListVersionsOptionalParams, - VirtualMachineExtensionImagesListVersionsResponse + VirtualMachineExtensionImagesListVersionsResponse, } from "../models"; /** Class containing VirtualMachineExtensionImages operations. */ export class VirtualMachineExtensionImagesImpl - implements VirtualMachineExtensionImages { + implements VirtualMachineExtensionImages +{ private readonly client: ComputeManagementClient; /** @@ -46,11 +47,11 @@ export class VirtualMachineExtensionImagesImpl publisherName: string, typeParam: string, version: string, - options?: VirtualMachineExtensionImagesGetOptionalParams + options?: VirtualMachineExtensionImagesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publisherName, typeParam, version, options }, - getOperationSpec + getOperationSpec, ); } @@ -63,11 +64,11 @@ export class VirtualMachineExtensionImagesImpl listTypes( location: string, publisherName: string, - options?: VirtualMachineExtensionImagesListTypesOptionalParams + options?: VirtualMachineExtensionImagesListTypesOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publisherName, options }, - listTypesOperationSpec + listTypesOperationSpec, ); } @@ -82,11 +83,11 @@ export class VirtualMachineExtensionImagesImpl location: string, publisherName: string, typeParam: string, - options?: VirtualMachineExtensionImagesListVersionsOptionalParams + options?: VirtualMachineExtensionImagesListVersionsOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publisherName, typeParam, options }, - listVersionsOperationSpec + listVersionsOperationSpec, ); } } @@ -94,16 +95,15 @@ export class VirtualMachineExtensionImagesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions/{version}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions/{version}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineExtensionImage + bodyMapper: Mappers.VirtualMachineExtensionImage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -112,14 +112,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.location1, Parameters.publisherName, Parameters.version, - Parameters.typeParam + Parameters.typeParam, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listTypesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types", httpMethod: "GET", responses: { 200: { @@ -129,29 +128,28 @@ const listTypesOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineExtensionImage" - } - } - } - } + className: "VirtualMachineExtensionImage", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.publisherName + Parameters.publisherName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listVersionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions", httpMethod: "GET", responses: { 200: { @@ -161,29 +159,29 @@ const listVersionsOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineExtensionImage" - } - } - } - } + className: "VirtualMachineExtensionImage", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.filter, Parameters.top, - Parameters.orderby + Parameters.orderby, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, Parameters.publisherName, - Parameters.typeParam + Parameters.typeParam, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts index 860d8eca27ab..bdd634d670df 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts @@ -14,7 +14,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -28,7 +28,7 @@ import { VirtualMachineExtensionsGetOptionalParams, VirtualMachineExtensionsGetResponse, VirtualMachineExtensionsListOptionalParams, - VirtualMachineExtensionsListResponse + VirtualMachineExtensionsListResponse, } from "../models"; /** Class containing VirtualMachineExtensions operations. */ @@ -56,7 +56,7 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtension, - options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -65,21 +65,20 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -88,8 +87,8 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -97,8 +96,8 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -109,16 +108,16 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { vmName, vmExtensionName, extensionParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineExtensionsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -137,14 +136,14 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtension, - options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, vmName, vmExtensionName, extensionParameters, - options + options, ); return poller.pollUntilDone(); } @@ -162,7 +161,7 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtensionUpdate, - options?: VirtualMachineExtensionsUpdateOptionalParams + options?: VirtualMachineExtensionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -171,21 +170,20 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -194,8 +192,8 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -203,8 +201,8 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -215,16 +213,16 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { vmName, vmExtensionName, extensionParameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineExtensionsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -243,14 +241,14 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtensionUpdate, - options?: VirtualMachineExtensionsUpdateOptionalParams + options?: VirtualMachineExtensionsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, vmName, vmExtensionName, extensionParameters, - options + options, ); return poller.pollUntilDone(); } @@ -266,25 +264,24 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { resourceGroupName: string, vmName: string, vmExtensionName: string, - options?: VirtualMachineExtensionsDeleteOptionalParams + options?: VirtualMachineExtensionsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -293,8 +290,8 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -302,19 +299,19 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, vmExtensionName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -331,13 +328,13 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { resourceGroupName: string, vmName: string, vmExtensionName: string, - options?: VirtualMachineExtensionsDeleteOptionalParams + options?: VirtualMachineExtensionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, vmName, vmExtensionName, - options + options, ); return poller.pollUntilDone(); } @@ -353,11 +350,11 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { resourceGroupName: string, vmName: string, vmExtensionName: string, - options?: VirtualMachineExtensionsGetOptionalParams + options?: VirtualMachineExtensionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, vmExtensionName, options }, - getOperationSpec + getOperationSpec, ); } @@ -370,11 +367,11 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { list( resourceGroupName: string, vmName: string, - options?: VirtualMachineExtensionsListOptionalParams + options?: VirtualMachineExtensionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - listOperationSpec + listOperationSpec, ); } } @@ -382,25 +379,24 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, 201: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, 202: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, 204: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.extensionParameters4, queryParameters: [Parameters.apiVersion], @@ -409,32 +405,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmExtensionName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, 201: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, 202: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, 204: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.extensionParameters5, queryParameters: [Parameters.apiVersion], @@ -443,15 +438,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmExtensionName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -459,8 +453,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -468,22 +462,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmExtensionName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ @@ -491,30 +484,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmExtensionName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineExtensionsListResult + bodyMapper: Mappers.VirtualMachineExtensionsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts b/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts index b45de23a25ba..ca8cbb85a692 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts @@ -23,7 +23,7 @@ import { VirtualMachineImagesListSkusOptionalParams, VirtualMachineImagesListSkusResponse, VirtualMachineImagesListByEdgeZoneOptionalParams, - VirtualMachineImagesListByEdgeZoneResponse + VirtualMachineImagesListByEdgeZoneResponse, } from "../models"; /** Class containing VirtualMachineImages operations. */ @@ -53,11 +53,11 @@ export class VirtualMachineImagesImpl implements VirtualMachineImages { offer: string, skus: string, version: string, - options?: VirtualMachineImagesGetOptionalParams + options?: VirtualMachineImagesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publisherName, offer, skus, version, options }, - getOperationSpec + getOperationSpec, ); } @@ -75,11 +75,11 @@ export class VirtualMachineImagesImpl implements VirtualMachineImages { publisherName: string, offer: string, skus: string, - options?: VirtualMachineImagesListOptionalParams + options?: VirtualMachineImagesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publisherName, offer, skus, options }, - listOperationSpec + listOperationSpec, ); } @@ -92,11 +92,11 @@ export class VirtualMachineImagesImpl implements VirtualMachineImages { listOffers( location: string, publisherName: string, - options?: VirtualMachineImagesListOffersOptionalParams + options?: VirtualMachineImagesListOffersOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publisherName, options }, - listOffersOperationSpec + listOffersOperationSpec, ); } @@ -107,11 +107,11 @@ export class VirtualMachineImagesImpl implements VirtualMachineImages { */ listPublishers( location: string, - options?: VirtualMachineImagesListPublishersOptionalParams + options?: VirtualMachineImagesListPublishersOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listPublishersOperationSpec + listPublishersOperationSpec, ); } @@ -126,11 +126,11 @@ export class VirtualMachineImagesImpl implements VirtualMachineImages { location: string, publisherName: string, offer: string, - options?: VirtualMachineImagesListSkusOptionalParams + options?: VirtualMachineImagesListSkusOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publisherName, offer, options }, - listSkusOperationSpec + listSkusOperationSpec, ); } @@ -143,11 +143,11 @@ export class VirtualMachineImagesImpl implements VirtualMachineImages { listByEdgeZone( location: string, edgeZone: string, - options?: VirtualMachineImagesListByEdgeZoneOptionalParams + options?: VirtualMachineImagesListByEdgeZoneOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, edgeZone, options }, - listByEdgeZoneOperationSpec + listByEdgeZoneOperationSpec, ); } } @@ -155,16 +155,15 @@ export class VirtualMachineImagesImpl implements VirtualMachineImages { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineImage + bodyMapper: Mappers.VirtualMachineImage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -174,14 +173,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.publisherName, Parameters.offer, Parameters.skus, - Parameters.version + Parameters.version, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions", httpMethod: "GET", responses: { 200: { @@ -191,21 +189,21 @@ const listOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.expand1, Parameters.top, - Parameters.orderby + Parameters.orderby, ], urlParameters: [ Parameters.$host, @@ -213,14 +211,13 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.location1, Parameters.publisherName, Parameters.offer, - Parameters.skus + Parameters.skus, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOffersOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers", httpMethod: "GET", responses: { 200: { @@ -230,29 +227,28 @@ const listOffersOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.publisherName + Parameters.publisherName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listPublishersOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers", httpMethod: "GET", responses: { 200: { @@ -262,28 +258,27 @@ const listPublishersOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSkusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus", httpMethod: "GET", responses: { 200: { @@ -293,15 +288,15 @@ const listSkusOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -309,30 +304,29 @@ const listSkusOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.location1, Parameters.publisherName, - Parameters.offer + Parameters.offer, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByEdgeZoneOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/vmimages", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/vmimages", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VmImagesInEdgeZoneListResult + bodyMapper: Mappers.VmImagesInEdgeZoneListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.edgeZone + Parameters.edgeZone, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts b/sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts index b0e5e0614c4b..173bf75ce5e2 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts @@ -21,12 +21,13 @@ import { VirtualMachineImagesEdgeZoneListPublishersOptionalParams, VirtualMachineImagesEdgeZoneListPublishersResponse, VirtualMachineImagesEdgeZoneListSkusOptionalParams, - VirtualMachineImagesEdgeZoneListSkusResponse + VirtualMachineImagesEdgeZoneListSkusResponse, } from "../models"; /** Class containing VirtualMachineImagesEdgeZone operations. */ export class VirtualMachineImagesEdgeZoneImpl - implements VirtualMachineImagesEdgeZone { + implements VirtualMachineImagesEdgeZone +{ private readonly client: ComputeManagementClient; /** @@ -54,11 +55,11 @@ export class VirtualMachineImagesEdgeZoneImpl offer: string, skus: string, version: string, - options?: VirtualMachineImagesEdgeZoneGetOptionalParams + options?: VirtualMachineImagesEdgeZoneGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, edgeZone, publisherName, offer, skus, version, options }, - getOperationSpec + getOperationSpec, ); } @@ -78,11 +79,11 @@ export class VirtualMachineImagesEdgeZoneImpl publisherName: string, offer: string, skus: string, - options?: VirtualMachineImagesEdgeZoneListOptionalParams + options?: VirtualMachineImagesEdgeZoneListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, edgeZone, publisherName, offer, skus, options }, - listOperationSpec + listOperationSpec, ); } @@ -97,11 +98,11 @@ export class VirtualMachineImagesEdgeZoneImpl location: string, edgeZone: string, publisherName: string, - options?: VirtualMachineImagesEdgeZoneListOffersOptionalParams + options?: VirtualMachineImagesEdgeZoneListOffersOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, edgeZone, publisherName, options }, - listOffersOperationSpec + listOffersOperationSpec, ); } @@ -114,11 +115,11 @@ export class VirtualMachineImagesEdgeZoneImpl listPublishers( location: string, edgeZone: string, - options?: VirtualMachineImagesEdgeZoneListPublishersOptionalParams + options?: VirtualMachineImagesEdgeZoneListPublishersOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, edgeZone, options }, - listPublishersOperationSpec + listPublishersOperationSpec, ); } @@ -136,11 +137,11 @@ export class VirtualMachineImagesEdgeZoneImpl edgeZone: string, publisherName: string, offer: string, - options?: VirtualMachineImagesEdgeZoneListSkusOptionalParams + options?: VirtualMachineImagesEdgeZoneListSkusOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, edgeZone, publisherName, offer, options }, - listSkusOperationSpec + listSkusOperationSpec, ); } } @@ -148,16 +149,15 @@ export class VirtualMachineImagesEdgeZoneImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineImage + bodyMapper: Mappers.VirtualMachineImage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -168,14 +168,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.offer, Parameters.skus, Parameters.version, - Parameters.edgeZone + Parameters.edgeZone, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions", httpMethod: "GET", responses: { 200: { @@ -185,21 +184,21 @@ const listOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.expand1, Parameters.top, - Parameters.orderby + Parameters.orderby, ], urlParameters: [ Parameters.$host, @@ -208,14 +207,13 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.publisherName, Parameters.offer, Parameters.skus, - Parameters.edgeZone + Parameters.edgeZone, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOffersOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers", httpMethod: "GET", responses: { 200: { @@ -225,15 +223,15 @@ const listOffersOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -241,14 +239,13 @@ const listOffersOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.location1, Parameters.publisherName, - Parameters.edgeZone + Parameters.edgeZone, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listPublishersOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers", httpMethod: "GET", responses: { 200: { @@ -258,29 +255,28 @@ const listPublishersOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.edgeZone + Parameters.edgeZone, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSkusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus", httpMethod: "GET", responses: { 200: { @@ -290,15 +286,15 @@ const listSkusOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -307,8 +303,8 @@ const listSkusOperationSpec: coreClient.OperationSpec = { Parameters.location1, Parameters.publisherName, Parameters.offer, - Parameters.edgeZone + Parameters.edgeZone, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts b/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts index 53fc4f8f474e..31951e6780f9 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -39,13 +39,14 @@ import { VirtualMachineRunCommandsGetByVirtualMachineOptionalParams, VirtualMachineRunCommandsGetByVirtualMachineResponse, VirtualMachineRunCommandsListNextResponse, - VirtualMachineRunCommandsListByVirtualMachineNextResponse + VirtualMachineRunCommandsListByVirtualMachineNextResponse, } from "../models"; /// /** Class containing VirtualMachineRunCommands operations. */ export class VirtualMachineRunCommandsImpl - implements VirtualMachineRunCommands { + implements VirtualMachineRunCommands +{ private readonly client: ComputeManagementClient; /** @@ -63,7 +64,7 @@ export class VirtualMachineRunCommandsImpl */ public list( location: string, - options?: VirtualMachineRunCommandsListOptionalParams + options?: VirtualMachineRunCommandsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(location, options); return { @@ -78,14 +79,14 @@ export class VirtualMachineRunCommandsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(location, options, settings); - } + }, }; } private async *listPagingPage( location: string, options?: VirtualMachineRunCommandsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineRunCommandsListResponse; let continuationToken = settings?.continuationToken; @@ -107,7 +108,7 @@ export class VirtualMachineRunCommandsImpl private async *listPagingAll( location: string, - options?: VirtualMachineRunCommandsListOptionalParams + options?: VirtualMachineRunCommandsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(location, options)) { yield* page; @@ -123,12 +124,12 @@ export class VirtualMachineRunCommandsImpl public listByVirtualMachine( resourceGroupName: string, vmName: string, - options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams + options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByVirtualMachinePagingAll( resourceGroupName, vmName, - options + options, ); return { next() { @@ -145,9 +146,9 @@ export class VirtualMachineRunCommandsImpl resourceGroupName, vmName, options, - settings + settings, ); - } + }, }; } @@ -155,7 +156,7 @@ export class VirtualMachineRunCommandsImpl resourceGroupName: string, vmName: string, options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineRunCommandsListByVirtualMachineResponse; let continuationToken = settings?.continuationToken; @@ -163,7 +164,7 @@ export class VirtualMachineRunCommandsImpl result = await this._listByVirtualMachine( resourceGroupName, vmName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -175,7 +176,7 @@ export class VirtualMachineRunCommandsImpl resourceGroupName, vmName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -187,12 +188,12 @@ export class VirtualMachineRunCommandsImpl private async *listByVirtualMachinePagingAll( resourceGroupName: string, vmName: string, - options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams + options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByVirtualMachinePagingPage( resourceGroupName, vmName, - options + options, )) { yield* page; } @@ -205,11 +206,11 @@ export class VirtualMachineRunCommandsImpl */ private _list( location: string, - options?: VirtualMachineRunCommandsListOptionalParams + options?: VirtualMachineRunCommandsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listOperationSpec + listOperationSpec, ); } @@ -222,11 +223,11 @@ export class VirtualMachineRunCommandsImpl get( location: string, commandId: string, - options?: VirtualMachineRunCommandsGetOptionalParams + options?: VirtualMachineRunCommandsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, commandId, options }, - getOperationSpec + getOperationSpec, ); } @@ -243,7 +244,7 @@ export class VirtualMachineRunCommandsImpl vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommand, - options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams + options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -252,21 +253,20 @@ export class VirtualMachineRunCommandsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -275,8 +275,8 @@ export class VirtualMachineRunCommandsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -284,22 +284,22 @@ export class VirtualMachineRunCommandsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, runCommandName, runCommand, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineRunCommandsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -318,14 +318,14 @@ export class VirtualMachineRunCommandsImpl vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommand, - options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams + options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, vmName, runCommandName, runCommand, - options + options, ); return poller.pollUntilDone(); } @@ -343,7 +343,7 @@ export class VirtualMachineRunCommandsImpl vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, - options?: VirtualMachineRunCommandsUpdateOptionalParams + options?: VirtualMachineRunCommandsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -352,21 +352,20 @@ export class VirtualMachineRunCommandsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -375,8 +374,8 @@ export class VirtualMachineRunCommandsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -384,22 +383,22 @@ export class VirtualMachineRunCommandsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, runCommandName, runCommand, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineRunCommandsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -418,14 +417,14 @@ export class VirtualMachineRunCommandsImpl vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, - options?: VirtualMachineRunCommandsUpdateOptionalParams + options?: VirtualMachineRunCommandsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, vmName, runCommandName, runCommand, - options + options, ); return poller.pollUntilDone(); } @@ -441,25 +440,24 @@ export class VirtualMachineRunCommandsImpl resourceGroupName: string, vmName: string, runCommandName: string, - options?: VirtualMachineRunCommandsDeleteOptionalParams + options?: VirtualMachineRunCommandsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -468,8 +466,8 @@ export class VirtualMachineRunCommandsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -477,19 +475,19 @@ export class VirtualMachineRunCommandsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, runCommandName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -506,13 +504,13 @@ export class VirtualMachineRunCommandsImpl resourceGroupName: string, vmName: string, runCommandName: string, - options?: VirtualMachineRunCommandsDeleteOptionalParams + options?: VirtualMachineRunCommandsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, vmName, runCommandName, - options + options, ); return poller.pollUntilDone(); } @@ -528,11 +526,11 @@ export class VirtualMachineRunCommandsImpl resourceGroupName: string, vmName: string, runCommandName: string, - options?: VirtualMachineRunCommandsGetByVirtualMachineOptionalParams + options?: VirtualMachineRunCommandsGetByVirtualMachineOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, runCommandName, options }, - getByVirtualMachineOperationSpec + getByVirtualMachineOperationSpec, ); } @@ -545,11 +543,11 @@ export class VirtualMachineRunCommandsImpl private _listByVirtualMachine( resourceGroupName: string, vmName: string, - options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams + options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - listByVirtualMachineOperationSpec + listByVirtualMachineOperationSpec, ); } @@ -562,11 +560,11 @@ export class VirtualMachineRunCommandsImpl private _listNext( location: string, nextLink: string, - options?: VirtualMachineRunCommandsListNextOptionalParams + options?: VirtualMachineRunCommandsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -581,11 +579,11 @@ export class VirtualMachineRunCommandsImpl resourceGroupName: string, vmName: string, nextLink: string, - options?: VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams + options?: VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, nextLink, options }, - listByVirtualMachineNextOperationSpec + listByVirtualMachineNextOperationSpec, ); } } @@ -593,62 +591,59 @@ export class VirtualMachineRunCommandsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RunCommandListResult - } + bodyMapper: Mappers.RunCommandListResult, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands/{commandId}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands/{commandId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RunCommandDocument - } + bodyMapper: Mappers.RunCommandDocument, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, Parameters.subscriptionId, - Parameters.commandId + Parameters.commandId, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 201: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 202: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 204: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.runCommand, queryParameters: [Parameters.apiVersion], @@ -657,32 +652,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmName, - Parameters.runCommandName + Parameters.runCommandName, ], headerParameters: [Parameters.contentType, Parameters.accept1], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 201: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 202: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 204: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.runCommand1, queryParameters: [Parameters.apiVersion], @@ -691,15 +685,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmName, - Parameters.runCommandName + Parameters.runCommandName, ], headerParameters: [Parameters.contentType, Parameters.accept1], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", httpMethod: "DELETE", responses: { 200: {}, @@ -707,8 +700,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -716,22 +709,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmName, - Parameters.runCommandName + Parameters.runCommandName, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const getByVirtualMachineOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ @@ -739,68 +731,67 @@ const getByVirtualMachineOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmName, - Parameters.runCommandName + Parameters.runCommandName, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const listByVirtualMachineOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommandsListResult + bodyMapper: Mappers.VirtualMachineRunCommandsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RunCommandListResult - } + bodyMapper: Mappers.RunCommandListResult, + }, }, urlParameters: [ Parameters.$host, Parameters.location, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const listByVirtualMachineNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommandsListResult + bodyMapper: Mappers.VirtualMachineRunCommandsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts index 7611976b9b7f..0f8c8b2e6604 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,13 +32,14 @@ import { VirtualMachineScaleSetExtensionsDeleteOptionalParams, VirtualMachineScaleSetExtensionsGetOptionalParams, VirtualMachineScaleSetExtensionsGetResponse, - VirtualMachineScaleSetExtensionsListNextResponse + VirtualMachineScaleSetExtensionsListNextResponse, } from "../models"; /// /** Class containing VirtualMachineScaleSetExtensions operations. */ export class VirtualMachineScaleSetExtensionsImpl - implements VirtualMachineScaleSetExtensions { + implements VirtualMachineScaleSetExtensions +{ private readonly client: ComputeManagementClient; /** @@ -58,7 +59,7 @@ export class VirtualMachineScaleSetExtensionsImpl public list( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetExtensionsListOptionalParams + options?: VirtualMachineScaleSetExtensionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, vmScaleSetName, options); return { @@ -76,9 +77,9 @@ export class VirtualMachineScaleSetExtensionsImpl resourceGroupName, vmScaleSetName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +87,7 @@ export class VirtualMachineScaleSetExtensionsImpl resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetExtensionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetExtensionsListResponse; let continuationToken = settings?.continuationToken; @@ -102,7 +103,7 @@ export class VirtualMachineScaleSetExtensionsImpl resourceGroupName, vmScaleSetName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -114,12 +115,12 @@ export class VirtualMachineScaleSetExtensionsImpl private async *listPagingAll( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetExtensionsListOptionalParams + options?: VirtualMachineScaleSetExtensionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, vmScaleSetName, - options + options, )) { yield* page; } @@ -138,7 +139,7 @@ export class VirtualMachineScaleSetExtensionsImpl vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtension, - options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -147,21 +148,20 @@ export class VirtualMachineScaleSetExtensionsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -170,8 +170,8 @@ export class VirtualMachineScaleSetExtensionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -179,8 +179,8 @@ export class VirtualMachineScaleSetExtensionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -191,16 +191,16 @@ export class VirtualMachineScaleSetExtensionsImpl vmScaleSetName, vmssExtensionName, extensionParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetExtensionsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -219,14 +219,14 @@ export class VirtualMachineScaleSetExtensionsImpl vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtension, - options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters, - options + options, ); return poller.pollUntilDone(); } @@ -244,7 +244,7 @@ export class VirtualMachineScaleSetExtensionsImpl vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtensionUpdate, - options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams + options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -253,21 +253,20 @@ export class VirtualMachineScaleSetExtensionsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -276,8 +275,8 @@ export class VirtualMachineScaleSetExtensionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -285,8 +284,8 @@ export class VirtualMachineScaleSetExtensionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -297,16 +296,16 @@ export class VirtualMachineScaleSetExtensionsImpl vmScaleSetName, vmssExtensionName, extensionParameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetExtensionsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -325,14 +324,14 @@ export class VirtualMachineScaleSetExtensionsImpl vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtensionUpdate, - options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams + options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters, - options + options, ); return poller.pollUntilDone(); } @@ -348,25 +347,24 @@ export class VirtualMachineScaleSetExtensionsImpl resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, - options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams + options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -375,8 +373,8 @@ export class VirtualMachineScaleSetExtensionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -384,19 +382,19 @@ export class VirtualMachineScaleSetExtensionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, vmssExtensionName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -413,13 +411,13 @@ export class VirtualMachineScaleSetExtensionsImpl resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, - options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams + options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, vmScaleSetName, vmssExtensionName, - options + options, ); return poller.pollUntilDone(); } @@ -435,11 +433,11 @@ export class VirtualMachineScaleSetExtensionsImpl resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, - options?: VirtualMachineScaleSetExtensionsGetOptionalParams + options?: VirtualMachineScaleSetExtensionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, vmssExtensionName, options }, - getOperationSpec + getOperationSpec, ); } @@ -452,11 +450,11 @@ export class VirtualMachineScaleSetExtensionsImpl private _list( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetExtensionsListOptionalParams + options?: VirtualMachineScaleSetExtensionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, options }, - listOperationSpec + listOperationSpec, ); } @@ -471,11 +469,11 @@ export class VirtualMachineScaleSetExtensionsImpl resourceGroupName: string, vmScaleSetName: string, nextLink: string, - options?: VirtualMachineScaleSetExtensionsListNextOptionalParams + options?: VirtualMachineScaleSetExtensionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -483,25 +481,24 @@ export class VirtualMachineScaleSetExtensionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, 201: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, 202: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, 204: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.extensionParameters, queryParameters: [Parameters.apiVersion], @@ -510,32 +507,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.vmssExtensionName + Parameters.vmssExtensionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, 201: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, 202: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, 204: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.extensionParameters1, queryParameters: [Parameters.apiVersion], @@ -544,15 +540,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.vmssExtensionName + Parameters.vmssExtensionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -560,8 +555,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -569,22 +564,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.vmssExtensionName + Parameters.vmssExtensionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ @@ -592,51 +586,50 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.vmssExtensionName + Parameters.vmssExtensionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetExtensionListResult + bodyMapper: Mappers.VirtualMachineScaleSetExtensionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetExtensionListResult + bodyMapper: Mappers.VirtualMachineScaleSetExtensionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts index 58b6cc1bf29f..48140f02b3f5 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts @@ -14,7 +14,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -22,12 +22,13 @@ import { VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams, VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams, VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams, - VirtualMachineScaleSetRollingUpgradesGetLatestResponse + VirtualMachineScaleSetRollingUpgradesGetLatestResponse, } from "../models"; /** Class containing VirtualMachineScaleSetRollingUpgrades operations. */ export class VirtualMachineScaleSetRollingUpgradesImpl - implements VirtualMachineScaleSetRollingUpgrades { + implements VirtualMachineScaleSetRollingUpgrades +{ private readonly client: ComputeManagementClient; /** @@ -47,25 +48,24 @@ export class VirtualMachineScaleSetRollingUpgradesImpl async beginCancel( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -74,8 +74,8 @@ export class VirtualMachineScaleSetRollingUpgradesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -83,19 +83,19 @@ export class VirtualMachineScaleSetRollingUpgradesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: cancelOperationSpec + spec: cancelOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -110,12 +110,12 @@ export class VirtualMachineScaleSetRollingUpgradesImpl async beginCancelAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams, ): Promise { const poller = await this.beginCancel( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -131,25 +131,24 @@ export class VirtualMachineScaleSetRollingUpgradesImpl async beginStartOSUpgrade( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -158,8 +157,8 @@ export class VirtualMachineScaleSetRollingUpgradesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -167,19 +166,19 @@ export class VirtualMachineScaleSetRollingUpgradesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: startOSUpgradeOperationSpec + spec: startOSUpgradeOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -196,12 +195,12 @@ export class VirtualMachineScaleSetRollingUpgradesImpl async beginStartOSUpgradeAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams, ): Promise { const poller = await this.beginStartOSUpgrade( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -217,25 +216,24 @@ export class VirtualMachineScaleSetRollingUpgradesImpl async beginStartExtensionUpgrade( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -244,8 +242,8 @@ export class VirtualMachineScaleSetRollingUpgradesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -253,19 +251,19 @@ export class VirtualMachineScaleSetRollingUpgradesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: startExtensionUpgradeOperationSpec + spec: startExtensionUpgradeOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -282,12 +280,12 @@ export class VirtualMachineScaleSetRollingUpgradesImpl async beginStartExtensionUpgradeAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams, ): Promise { const poller = await this.beginStartExtensionUpgrade( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -301,11 +299,11 @@ export class VirtualMachineScaleSetRollingUpgradesImpl getLatest( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, options }, - getLatestOperationSpec + getLatestOperationSpec, ); } } @@ -313,8 +311,7 @@ export class VirtualMachineScaleSetRollingUpgradesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const cancelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel", httpMethod: "POST", responses: { 200: {}, @@ -322,22 +319,21 @@ const cancelOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const startOSUpgradeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade", httpMethod: "POST", responses: { 200: {}, @@ -345,22 +341,21 @@ const startOSUpgradeOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const startExtensionUpgradeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensionRollingUpgrade", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensionRollingUpgrade", httpMethod: "POST", responses: { 200: {}, @@ -368,38 +363,37 @@ const startExtensionUpgradeOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getLatestOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/latest", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/latest", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RollingUpgradeStatusInfo + bodyMapper: Mappers.RollingUpgradeStatusInfo, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts index c58d77d235f9..1881eb65e082 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts @@ -14,7 +14,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -28,12 +28,13 @@ import { VirtualMachineScaleSetVMExtensionsGetOptionalParams, VirtualMachineScaleSetVMExtensionsGetResponse, VirtualMachineScaleSetVMExtensionsListOptionalParams, - VirtualMachineScaleSetVMExtensionsListResponse + VirtualMachineScaleSetVMExtensionsListResponse, } from "../models"; /** Class containing VirtualMachineScaleSetVMExtensions operations. */ export class VirtualMachineScaleSetVMExtensionsImpl - implements VirtualMachineScaleSetVMExtensions { + implements VirtualMachineScaleSetVMExtensions +{ private readonly client: ComputeManagementClient; /** @@ -59,7 +60,7 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtension, - options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -68,21 +69,20 @@ export class VirtualMachineScaleSetVMExtensionsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -91,8 +91,8 @@ export class VirtualMachineScaleSetVMExtensionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -100,8 +100,8 @@ export class VirtualMachineScaleSetVMExtensionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -113,16 +113,16 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId, vmExtensionName, extensionParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -143,7 +143,7 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtension, - options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -151,7 +151,7 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId, vmExtensionName, extensionParameters, - options + options, ); return poller.pollUntilDone(); } @@ -171,7 +171,7 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtensionUpdate, - options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams + options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -180,21 +180,20 @@ export class VirtualMachineScaleSetVMExtensionsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -203,8 +202,8 @@ export class VirtualMachineScaleSetVMExtensionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -212,8 +211,8 @@ export class VirtualMachineScaleSetVMExtensionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -225,16 +224,16 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId, vmExtensionName, extensionParameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMExtensionsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -255,7 +254,7 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtensionUpdate, - options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams + options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -263,7 +262,7 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId, vmExtensionName, extensionParameters, - options + options, ); return poller.pollUntilDone(); } @@ -281,25 +280,24 @@ export class VirtualMachineScaleSetVMExtensionsImpl vmScaleSetName: string, instanceId: string, vmExtensionName: string, - options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams + options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -308,8 +306,8 @@ export class VirtualMachineScaleSetVMExtensionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -317,8 +315,8 @@ export class VirtualMachineScaleSetVMExtensionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -329,13 +327,13 @@ export class VirtualMachineScaleSetVMExtensionsImpl vmScaleSetName, instanceId, vmExtensionName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -354,14 +352,14 @@ export class VirtualMachineScaleSetVMExtensionsImpl vmScaleSetName: string, instanceId: string, vmExtensionName: string, - options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams + options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, vmScaleSetName, instanceId, vmExtensionName, - options + options, ); return poller.pollUntilDone(); } @@ -379,7 +377,7 @@ export class VirtualMachineScaleSetVMExtensionsImpl vmScaleSetName: string, instanceId: string, vmExtensionName: string, - options?: VirtualMachineScaleSetVMExtensionsGetOptionalParams + options?: VirtualMachineScaleSetVMExtensionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -387,9 +385,9 @@ export class VirtualMachineScaleSetVMExtensionsImpl vmScaleSetName, instanceId, vmExtensionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -404,11 +402,11 @@ export class VirtualMachineScaleSetVMExtensionsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMExtensionsListOptionalParams + options?: VirtualMachineScaleSetVMExtensionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, instanceId, options }, - listOperationSpec + listOperationSpec, ); } } @@ -416,25 +414,24 @@ export class VirtualMachineScaleSetVMExtensionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, 201: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, 202: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, 204: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.extensionParameters2, queryParameters: [Parameters.apiVersion], @@ -444,32 +441,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, - Parameters.vmExtensionName + Parameters.vmExtensionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, 201: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, 202: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, 204: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.extensionParameters3, queryParameters: [Parameters.apiVersion], @@ -479,15 +475,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, - Parameters.vmExtensionName + Parameters.vmExtensionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -495,8 +490,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -505,22 +500,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, - Parameters.vmExtensionName + Parameters.vmExtensionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ @@ -529,22 +523,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, - Parameters.vmExtensionName + Parameters.vmExtensionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtensionsListResult + bodyMapper: Mappers.VirtualMachineScaleSetVMExtensionsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ @@ -552,8 +545,8 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts index 763b5aba3561..b251b64a5e62 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,13 +32,14 @@ import { VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams, VirtualMachineScaleSetVMRunCommandsGetOptionalParams, VirtualMachineScaleSetVMRunCommandsGetResponse, - VirtualMachineScaleSetVMRunCommandsListNextResponse + VirtualMachineScaleSetVMRunCommandsListNextResponse, } from "../models"; /// /** Class containing VirtualMachineScaleSetVMRunCommands operations. */ export class VirtualMachineScaleSetVMRunCommandsImpl - implements VirtualMachineScaleSetVMRunCommands { + implements VirtualMachineScaleSetVMRunCommands +{ private readonly client: ComputeManagementClient; /** @@ -60,13 +61,13 @@ export class VirtualMachineScaleSetVMRunCommandsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return { next() { @@ -84,9 +85,9 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName, instanceId, options, - settings + settings, ); - } + }, }; } @@ -95,7 +96,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetVMRunCommandsListResponse; let continuationToken = settings?.continuationToken; @@ -104,7 +105,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl resourceGroupName, vmScaleSetName, instanceId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -117,7 +118,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName, instanceId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -130,13 +131,13 @@ export class VirtualMachineScaleSetVMRunCommandsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, vmScaleSetName, instanceId, - options + options, )) { yield* page; } @@ -157,7 +158,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommand, - options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -166,21 +167,20 @@ export class VirtualMachineScaleSetVMRunCommandsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -189,8 +189,8 @@ export class VirtualMachineScaleSetVMRunCommandsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -198,8 +198,8 @@ export class VirtualMachineScaleSetVMRunCommandsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -211,16 +211,16 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId, runCommandName, runCommand, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -241,7 +241,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommand, - options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -249,7 +249,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId, runCommandName, runCommand, - options + options, ); return poller.pollUntilDone(); } @@ -269,7 +269,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, - options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -278,21 +278,20 @@ export class VirtualMachineScaleSetVMRunCommandsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -301,8 +300,8 @@ export class VirtualMachineScaleSetVMRunCommandsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -310,8 +309,8 @@ export class VirtualMachineScaleSetVMRunCommandsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -323,16 +322,16 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId, runCommandName, runCommand, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMRunCommandsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -353,7 +352,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, - options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -361,7 +360,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId, runCommandName, runCommand, - options + options, ); return poller.pollUntilDone(); } @@ -379,25 +378,24 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName: string, instanceId: string, runCommandName: string, - options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -406,8 +404,8 @@ export class VirtualMachineScaleSetVMRunCommandsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -415,8 +413,8 @@ export class VirtualMachineScaleSetVMRunCommandsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -427,13 +425,13 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName, instanceId, runCommandName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -452,14 +450,14 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName: string, instanceId: string, runCommandName: string, - options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, vmScaleSetName, instanceId, runCommandName, - options + options, ); return poller.pollUntilDone(); } @@ -477,7 +475,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName: string, instanceId: string, runCommandName: string, - options?: VirtualMachineScaleSetVMRunCommandsGetOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -485,9 +483,9 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName, instanceId, runCommandName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -502,11 +500,11 @@ export class VirtualMachineScaleSetVMRunCommandsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, instanceId, options }, - listOperationSpec + listOperationSpec, ); } @@ -523,11 +521,11 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName: string, instanceId: string, nextLink: string, - options?: VirtualMachineScaleSetVMRunCommandsListNextOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, instanceId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -535,25 +533,24 @@ export class VirtualMachineScaleSetVMRunCommandsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 201: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 202: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 204: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.runCommand, queryParameters: [Parameters.apiVersion], @@ -563,32 +560,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, - Parameters.runCommandName + Parameters.runCommandName, ], headerParameters: [Parameters.contentType, Parameters.accept1], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 201: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 202: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 204: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.runCommand1, queryParameters: [Parameters.apiVersion], @@ -598,15 +594,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, - Parameters.runCommandName + Parameters.runCommandName, ], headerParameters: [Parameters.contentType, Parameters.accept1], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", httpMethod: "DELETE", responses: { 200: {}, @@ -614,8 +609,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -624,22 +619,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, - Parameters.runCommandName + Parameters.runCommandName, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ @@ -648,22 +642,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, - Parameters.runCommandName + Parameters.runCommandName, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommandsListResult + bodyMapper: Mappers.VirtualMachineRunCommandsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ @@ -671,21 +664,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommandsListResult + bodyMapper: Mappers.VirtualMachineRunCommandsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -693,8 +686,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.nextLink, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts index eb09a451ec96..8a18e8a731cc 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -50,13 +50,14 @@ import { RunCommandInput, VirtualMachineScaleSetVMsRunCommandOptionalParams, VirtualMachineScaleSetVMsRunCommandResponse, - VirtualMachineScaleSetVMsListNextResponse + VirtualMachineScaleSetVMsListNextResponse, } from "../models"; /// /** Class containing VirtualMachineScaleSetVMs operations. */ export class VirtualMachineScaleSetVMsImpl - implements VirtualMachineScaleSetVMs { + implements VirtualMachineScaleSetVMs +{ private readonly client: ComputeManagementClient; /** @@ -76,12 +77,12 @@ export class VirtualMachineScaleSetVMsImpl public list( resourceGroupName: string, virtualMachineScaleSetName: string, - options?: VirtualMachineScaleSetVMsListOptionalParams + options?: VirtualMachineScaleSetVMsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, virtualMachineScaleSetName, - options + options, ); return { next() { @@ -98,9 +99,9 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName, virtualMachineScaleSetName, options, - settings + settings, ); - } + }, }; } @@ -108,7 +109,7 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, virtualMachineScaleSetName: string, options?: VirtualMachineScaleSetVMsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetVMsListResponse; let continuationToken = settings?.continuationToken; @@ -116,7 +117,7 @@ export class VirtualMachineScaleSetVMsImpl result = await this._list( resourceGroupName, virtualMachineScaleSetName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -128,7 +129,7 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName, virtualMachineScaleSetName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -140,12 +141,12 @@ export class VirtualMachineScaleSetVMsImpl private async *listPagingAll( resourceGroupName: string, virtualMachineScaleSetName: string, - options?: VirtualMachineScaleSetVMsListOptionalParams + options?: VirtualMachineScaleSetVMsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, virtualMachineScaleSetName, - options + options, )) { yield* page; } @@ -162,25 +163,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsReimageOptionalParams + options?: VirtualMachineScaleSetVMsReimageOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -189,8 +189,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -198,19 +198,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: reimageOperationSpec + spec: reimageOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -227,13 +227,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsReimageOptionalParams + options?: VirtualMachineScaleSetVMsReimageOptionalParams, ): Promise { const poller = await this.beginReimage( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -250,25 +250,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsReimageAllOptionalParams + options?: VirtualMachineScaleSetVMsReimageAllOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -277,8 +276,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -286,19 +285,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: reimageAllOperationSpec + spec: reimageAllOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -316,13 +315,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsReimageAllOptionalParams + options?: VirtualMachineScaleSetVMsReimageAllOptionalParams, ): Promise { const poller = await this.beginReimageAll( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -338,7 +337,7 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams + options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -347,21 +346,20 @@ export class VirtualMachineScaleSetVMsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -370,8 +368,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -379,22 +377,22 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: approveRollingUpgradeOperationSpec + spec: approveRollingUpgradeOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMsApproveRollingUpgradeResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -411,13 +409,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams + options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams, ): Promise { const poller = await this.beginApproveRollingUpgrade( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -435,25 +433,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsDeallocateOptionalParams + options?: VirtualMachineScaleSetVMsDeallocateOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -462,8 +459,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -471,19 +468,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: deallocateOperationSpec + spec: deallocateOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -502,13 +499,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsDeallocateOptionalParams + options?: VirtualMachineScaleSetVMsDeallocateOptionalParams, ): Promise { const poller = await this.beginDeallocate( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -526,7 +523,7 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, parameters: VirtualMachineScaleSetVM, - options?: VirtualMachineScaleSetVMsUpdateOptionalParams + options?: VirtualMachineScaleSetVMsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -535,21 +532,20 @@ export class VirtualMachineScaleSetVMsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -558,8 +554,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -567,8 +563,8 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -579,16 +575,16 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName, instanceId, parameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -607,14 +603,14 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, parameters: VirtualMachineScaleSetVM, - options?: VirtualMachineScaleSetVMsUpdateOptionalParams + options?: VirtualMachineScaleSetVMsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, vmScaleSetName, instanceId, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -630,25 +626,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsDeleteOptionalParams + options?: VirtualMachineScaleSetVMsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -657,8 +652,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -666,19 +661,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -695,13 +690,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsDeleteOptionalParams + options?: VirtualMachineScaleSetVMsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -717,11 +712,11 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsGetOptionalParams + options?: VirtualMachineScaleSetVMsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, instanceId, options }, - getOperationSpec + getOperationSpec, ); } @@ -736,11 +731,11 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsGetInstanceViewOptionalParams + options?: VirtualMachineScaleSetVMsGetInstanceViewOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, instanceId, options }, - getInstanceViewOperationSpec + getInstanceViewOperationSpec, ); } @@ -753,11 +748,11 @@ export class VirtualMachineScaleSetVMsImpl private _list( resourceGroupName: string, virtualMachineScaleSetName: string, - options?: VirtualMachineScaleSetVMsListOptionalParams + options?: VirtualMachineScaleSetVMsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, virtualMachineScaleSetName, options }, - listOperationSpec + listOperationSpec, ); } @@ -774,25 +769,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsPowerOffOptionalParams + options?: VirtualMachineScaleSetVMsPowerOffOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -801,8 +795,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -810,19 +804,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: powerOffOperationSpec + spec: powerOffOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -841,13 +835,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsPowerOffOptionalParams + options?: VirtualMachineScaleSetVMsPowerOffOptionalParams, ): Promise { const poller = await this.beginPowerOff( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -863,25 +857,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRestartOptionalParams + options?: VirtualMachineScaleSetVMsRestartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -890,8 +883,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -899,19 +892,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -928,13 +921,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRestartOptionalParams + options?: VirtualMachineScaleSetVMsRestartOptionalParams, ): Promise { const poller = await this.beginRestart( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -950,25 +943,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsStartOptionalParams + options?: VirtualMachineScaleSetVMsStartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -977,8 +969,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -986,19 +978,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: startOperationSpec + spec: startOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1015,13 +1007,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsStartOptionalParams + options?: VirtualMachineScaleSetVMsStartOptionalParams, ): Promise { const poller = await this.beginStart( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -1038,25 +1030,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRedeployOptionalParams + options?: VirtualMachineScaleSetVMsRedeployOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1065,8 +1056,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1074,19 +1065,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: redeployOperationSpec + spec: redeployOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1104,13 +1095,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRedeployOptionalParams + options?: VirtualMachineScaleSetVMsRedeployOptionalParams, ): Promise { const poller = await this.beginRedeploy( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -1126,11 +1117,11 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams + options?: VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, instanceId, options }, - retrieveBootDiagnosticsDataOperationSpec + retrieveBootDiagnosticsDataOperationSpec, ); } @@ -1145,25 +1136,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams + options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1172,8 +1162,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1181,19 +1171,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: performMaintenanceOperationSpec + spec: performMaintenanceOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1210,13 +1200,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams + options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams, ): Promise { const poller = await this.beginPerformMaintenance( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -1232,11 +1222,11 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsSimulateEvictionOptionalParams + options?: VirtualMachineScaleSetVMsSimulateEvictionOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, instanceId, options }, - simulateEvictionOperationSpec + simulateEvictionOperationSpec, ); } @@ -1254,7 +1244,7 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, parameters: AttachDetachDataDisksRequest, - options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams + options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1263,21 +1253,20 @@ export class VirtualMachineScaleSetVMsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1286,8 +1275,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1295,8 +1284,8 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1307,9 +1296,9 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName, instanceId, parameters, - options + options, }, - spec: attachDetachDataDisksOperationSpec + spec: attachDetachDataDisksOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMsAttachDetachDataDisksResponse, @@ -1317,7 +1306,7 @@ export class VirtualMachineScaleSetVMsImpl >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1337,14 +1326,14 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, parameters: AttachDetachDataDisksRequest, - options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams + options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams, ): Promise { const poller = await this.beginAttachDetachDataDisks( resourceGroupName, vmScaleSetName, instanceId, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1362,7 +1351,7 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, parameters: RunCommandInput, - options?: VirtualMachineScaleSetVMsRunCommandOptionalParams + options?: VirtualMachineScaleSetVMsRunCommandOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1371,21 +1360,20 @@ export class VirtualMachineScaleSetVMsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1394,8 +1382,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1403,8 +1391,8 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1415,9 +1403,9 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName, instanceId, parameters, - options + options, }, - spec: runCommandOperationSpec + spec: runCommandOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMsRunCommandResponse, @@ -1425,7 +1413,7 @@ export class VirtualMachineScaleSetVMsImpl >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1444,14 +1432,14 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, parameters: RunCommandInput, - options?: VirtualMachineScaleSetVMsRunCommandOptionalParams + options?: VirtualMachineScaleSetVMsRunCommandOptionalParams, ): Promise { const poller = await this.beginRunCommand( resourceGroupName, vmScaleSetName, instanceId, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1467,11 +1455,11 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, virtualMachineScaleSetName: string, nextLink: string, - options?: VirtualMachineScaleSetVMsListNextOptionalParams + options?: VirtualMachineScaleSetVMsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, virtualMachineScaleSetName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -1479,8 +1467,7 @@ export class VirtualMachineScaleSetVMsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const reimageOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimage", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimage", httpMethod: "POST", responses: { 200: {}, @@ -1488,8 +1475,8 @@ const reimageOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmScaleSetVMReimageInput, queryParameters: [Parameters.apiVersion], @@ -1498,15 +1485,14 @@ const reimageOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reimageAllOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimageall", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimageall", httpMethod: "POST", responses: { 200: {}, @@ -1514,8 +1500,8 @@ const reimageAllOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1523,35 +1509,34 @@ const reimageAllOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const approveRollingUpgradeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/approveRollingUpgrade", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/approveRollingUpgrade", httpMethod: "POST", responses: { 200: { headersMapper: - Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders + Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders, }, 201: { headersMapper: - Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders + Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders, }, 202: { headersMapper: - Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders + Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders, }, 204: { headersMapper: - Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders + Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1559,14 +1544,13 @@ const approveRollingUpgradeOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deallocateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/deallocate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/deallocate", httpMethod: "POST", responses: { 200: {}, @@ -1574,8 +1558,8 @@ const deallocateOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1583,31 +1567,30 @@ const deallocateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVM + bodyMapper: Mappers.VirtualMachineScaleSetVM, }, 201: { - bodyMapper: Mappers.VirtualMachineScaleSetVM + bodyMapper: Mappers.VirtualMachineScaleSetVM, }, 202: { - bodyMapper: Mappers.VirtualMachineScaleSetVM + bodyMapper: Mappers.VirtualMachineScaleSetVM, }, 204: { - bodyMapper: Mappers.VirtualMachineScaleSetVM + bodyMapper: Mappers.VirtualMachineScaleSetVM, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], @@ -1616,20 +1599,19 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [ Parameters.accept, Parameters.contentType, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", httpMethod: "DELETE", responses: { 200: {}, @@ -1637,8 +1619,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.forceDeletion], urlParameters: [ @@ -1646,22 +1628,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVM + bodyMapper: Mappers.VirtualMachineScaleSetVM, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand2], urlParameters: [ @@ -1669,22 +1650,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getInstanceViewOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/instanceView", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/instanceView", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVMInstanceView + bodyMapper: Mappers.VirtualMachineScaleSetVMInstanceView, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1692,41 +1672,39 @@ const getInstanceViewOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVMListResult + bodyMapper: Mappers.VirtualMachineScaleSetVMListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.expand1, Parameters.filter, - Parameters.select + Parameters.select, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.virtualMachineScaleSetName + Parameters.virtualMachineScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const powerOffOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/poweroff", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/poweroff", httpMethod: "POST", responses: { 200: {}, @@ -1734,8 +1712,8 @@ const powerOffOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.skipShutdown], urlParameters: [ @@ -1743,14 +1721,13 @@ const powerOffOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/restart", httpMethod: "POST", responses: { 200: {}, @@ -1758,8 +1735,8 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1767,14 +1744,13 @@ const restartOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const startOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/start", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/start", httpMethod: "POST", responses: { 200: {}, @@ -1782,8 +1758,8 @@ const startOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1791,14 +1767,13 @@ const startOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const redeployOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/redeploy", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/redeploy", httpMethod: "POST", responses: { 200: {}, @@ -1806,8 +1781,8 @@ const redeployOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1815,40 +1790,38 @@ const redeployOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const retrieveBootDiagnosticsDataOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/retrieveBootDiagnosticsData", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/retrieveBootDiagnosticsData", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.RetrieveBootDiagnosticsDataResult + bodyMapper: Mappers.RetrieveBootDiagnosticsDataResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, - Parameters.sasUriExpirationTimeInMinutes + Parameters.sasUriExpirationTimeInMinutes, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const performMaintenanceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/performMaintenance", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/performMaintenance", httpMethod: "POST", responses: { 200: {}, @@ -1856,8 +1829,8 @@ const performMaintenanceOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1865,20 +1838,19 @@ const performMaintenanceOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const simulateEvictionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/simulateEviction", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/simulateEviction", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1886,31 +1858,30 @@ const simulateEvictionOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const attachDetachDataDisksOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/attachDetachDataDisks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/attachDetachDataDisks", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.StorageProfile + bodyMapper: Mappers.StorageProfile, }, 201: { - bodyMapper: Mappers.StorageProfile + bodyMapper: Mappers.StorageProfile, }, 202: { - bodyMapper: Mappers.StorageProfile + bodyMapper: Mappers.StorageProfile, }, 204: { - bodyMapper: Mappers.StorageProfile + bodyMapper: Mappers.StorageProfile, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], @@ -1919,29 +1890,28 @@ const attachDetachDataDisksOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const runCommandOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/runCommand", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/runCommand", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.RunCommandResult, }, 201: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.RunCommandResult, }, 202: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.RunCommandResult, }, 204: { - bodyMapper: Mappers.RunCommandResult - } + bodyMapper: Mappers.RunCommandResult, + }, }, requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], @@ -1950,30 +1920,30 @@ const runCommandOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.contentType, Parameters.accept1], mediaType: "json", - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVMListResult + bodyMapper: Mappers.VirtualMachineScaleSetVMListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.virtualMachineScaleSetName + Parameters.virtualMachineScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts index c305e0a6841e..7e46bf7821f2 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -72,7 +72,7 @@ import { VirtualMachineScaleSetsListNextResponse, VirtualMachineScaleSetsListAllNextResponse, VirtualMachineScaleSetsListSkusNextResponse, - VirtualMachineScaleSetsGetOSUpgradeHistoryNextResponse + VirtualMachineScaleSetsGetOSUpgradeHistoryNextResponse, } from "../models"; /// @@ -95,7 +95,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { */ public listByLocation( location: string, - options?: VirtualMachineScaleSetsListByLocationOptionalParams + options?: VirtualMachineScaleSetsListByLocationOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByLocationPagingAll(location, options); return { @@ -110,14 +110,14 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { throw new Error("maxPageSize is not supported by this operation."); } return this.listByLocationPagingPage(location, options, settings); - } + }, }; } private async *listByLocationPagingPage( location: string, options?: VirtualMachineScaleSetsListByLocationOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetsListByLocationResponse; let continuationToken = settings?.continuationToken; @@ -132,7 +132,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { result = await this._listByLocationNext( location, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -143,7 +143,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { private async *listByLocationPagingAll( location: string, - options?: VirtualMachineScaleSetsListByLocationOptionalParams + options?: VirtualMachineScaleSetsListByLocationOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByLocationPagingPage(location, options)) { yield* page; @@ -157,7 +157,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { */ public list( resourceGroupName: string, - options?: VirtualMachineScaleSetsListOptionalParams + options?: VirtualMachineScaleSetsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, options); return { @@ -172,14 +172,14 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(resourceGroupName, options, settings); - } + }, }; } private async *listPagingPage( resourceGroupName: string, options?: VirtualMachineScaleSetsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetsListResponse; let continuationToken = settings?.continuationToken; @@ -194,7 +194,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { result = await this._listNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -205,7 +205,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { private async *listPagingAll( resourceGroupName: string, - options?: VirtualMachineScaleSetsListOptionalParams + options?: VirtualMachineScaleSetsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceGroupName, options)) { yield* page; @@ -219,7 +219,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { * @param options The options parameters. */ public listAll( - options?: VirtualMachineScaleSetsListAllOptionalParams + options?: VirtualMachineScaleSetsListAllOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAllPagingAll(options); return { @@ -234,13 +234,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { throw new Error("maxPageSize is not supported by this operation."); } return this.listAllPagingPage(options, settings); - } + }, }; } private async *listAllPagingPage( options?: VirtualMachineScaleSetsListAllOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetsListAllResponse; let continuationToken = settings?.continuationToken; @@ -261,7 +261,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { } private async *listAllPagingAll( - options?: VirtualMachineScaleSetsListAllOptionalParams + options?: VirtualMachineScaleSetsListAllOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAllPagingPage(options)) { yield* page; @@ -278,12 +278,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { public listSkus( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsListSkusOptionalParams + options?: VirtualMachineScaleSetsListSkusOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listSkusPagingAll( resourceGroupName, vmScaleSetName, - options + options, ); return { next() { @@ -300,9 +300,9 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName, vmScaleSetName, options, - settings + settings, ); - } + }, }; } @@ -310,7 +310,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsListSkusOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetsListSkusResponse; let continuationToken = settings?.continuationToken; @@ -326,7 +326,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName, vmScaleSetName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -338,12 +338,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { private async *listSkusPagingAll( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsListSkusOptionalParams + options?: VirtualMachineScaleSetsListSkusOptionalParams, ): AsyncIterableIterator { for await (const page of this.listSkusPagingPage( resourceGroupName, vmScaleSetName, - options + options, )) { yield* page; } @@ -358,12 +358,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { public listOSUpgradeHistory( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams + options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams, ): PagedAsyncIterableIterator { const iter = this.getOSUpgradeHistoryPagingAll( resourceGroupName, vmScaleSetName, - options + options, ); return { next() { @@ -380,9 +380,9 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName, vmScaleSetName, options, - settings + settings, ); - } + }, }; } @@ -390,7 +390,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetsGetOSUpgradeHistoryResponse; let continuationToken = settings?.continuationToken; @@ -398,7 +398,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { result = await this._getOSUpgradeHistory( resourceGroupName, vmScaleSetName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -410,7 +410,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName, vmScaleSetName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -422,12 +422,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { private async *getOSUpgradeHistoryPagingAll( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams + options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams, ): AsyncIterableIterator { for await (const page of this.getOSUpgradeHistoryPagingPage( resourceGroupName, vmScaleSetName, - options + options, )) { yield* page; } @@ -440,11 +440,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { */ private _listByLocation( location: string, - options?: VirtualMachineScaleSetsListByLocationOptionalParams + options?: VirtualMachineScaleSetsListByLocationOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listByLocationOperationSpec + listByLocationOperationSpec, ); } @@ -459,7 +459,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSet, - options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -468,21 +468,20 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -491,8 +490,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -500,22 +499,22 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -532,13 +531,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSet, - options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, vmScaleSetName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -554,7 +553,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSetUpdate, - options?: VirtualMachineScaleSetsUpdateOptionalParams + options?: VirtualMachineScaleSetsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -563,21 +562,20 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -586,8 +584,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -595,22 +593,22 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, parameters, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -627,13 +625,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSetUpdate, - options?: VirtualMachineScaleSetsUpdateOptionalParams + options?: VirtualMachineScaleSetsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, vmScaleSetName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -647,25 +645,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginDelete( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeleteOptionalParams + options?: VirtualMachineScaleSetsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -674,8 +671,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -683,19 +680,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -710,12 +707,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginDeleteAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeleteOptionalParams + options?: VirtualMachineScaleSetsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -729,11 +726,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { get( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetOptionalParams + options?: VirtualMachineScaleSetsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, options }, - getOperationSpec + getOperationSpec, ); } @@ -748,25 +745,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginDeallocate( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeallocateOptionalParams + options?: VirtualMachineScaleSetsDeallocateOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -775,8 +771,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -784,19 +780,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: deallocateOperationSpec + spec: deallocateOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -813,12 +809,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginDeallocateAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeallocateOptionalParams + options?: VirtualMachineScaleSetsDeallocateOptionalParams, ): Promise { const poller = await this.beginDeallocate( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -834,25 +830,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams + options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -861,8 +856,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -870,19 +865,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, vmInstanceIDs, options }, - spec: deleteInstancesOperationSpec + spec: deleteInstancesOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -899,13 +894,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams + options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams, ): Promise { const poller = await this.beginDeleteInstances( resourceGroupName, vmScaleSetName, vmInstanceIDs, - options + options, ); return poller.pollUntilDone(); } @@ -919,11 +914,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { getInstanceView( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetInstanceViewOptionalParams + options?: VirtualMachineScaleSetsGetInstanceViewOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, options }, - getInstanceViewOperationSpec + getInstanceViewOperationSpec, ); } @@ -934,11 +929,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { */ private _list( resourceGroupName: string, - options?: VirtualMachineScaleSetsListOptionalParams + options?: VirtualMachineScaleSetsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listOperationSpec + listOperationSpec, ); } @@ -949,7 +944,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { * @param options The options parameters. */ private _listAll( - options?: VirtualMachineScaleSetsListAllOptionalParams + options?: VirtualMachineScaleSetsListAllOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listAllOperationSpec); } @@ -964,11 +959,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { private _listSkus( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsListSkusOptionalParams + options?: VirtualMachineScaleSetsListSkusOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, options }, - listSkusOperationSpec + listSkusOperationSpec, ); } @@ -981,11 +976,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { private _getOSUpgradeHistory( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams + options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, options }, - getOSUpgradeHistoryOperationSpec + getOSUpgradeHistoryOperationSpec, ); } @@ -1000,25 +995,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginPowerOff( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsPowerOffOptionalParams + options?: VirtualMachineScaleSetsPowerOffOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1027,8 +1021,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1036,19 +1030,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: powerOffOperationSpec + spec: powerOffOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1065,12 +1059,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginPowerOffAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsPowerOffOptionalParams + options?: VirtualMachineScaleSetsPowerOffOptionalParams, ): Promise { const poller = await this.beginPowerOff( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1084,25 +1078,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginRestart( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsRestartOptionalParams + options?: VirtualMachineScaleSetsRestartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1111,8 +1104,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1120,19 +1113,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1147,12 +1140,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginRestartAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsRestartOptionalParams + options?: VirtualMachineScaleSetsRestartOptionalParams, ): Promise { const poller = await this.beginRestart( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1166,25 +1159,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginStart( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsStartOptionalParams + options?: VirtualMachineScaleSetsStartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1193,8 +1185,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1202,19 +1194,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: startOperationSpec + spec: startOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1229,12 +1221,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginStartAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsStartOptionalParams + options?: VirtualMachineScaleSetsStartOptionalParams, ): Promise { const poller = await this.beginStart( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1248,25 +1240,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginReapply( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReapplyOptionalParams + options?: VirtualMachineScaleSetsReapplyOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1275,8 +1266,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1284,20 +1275,20 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: reapplyOperationSpec + spec: reapplyOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1312,12 +1303,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginReapplyAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReapplyOptionalParams + options?: VirtualMachineScaleSetsReapplyOptionalParams, ): Promise { const poller = await this.beginReapply( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1332,25 +1323,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginRedeploy( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsRedeployOptionalParams + options?: VirtualMachineScaleSetsRedeployOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1359,8 +1349,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1368,19 +1358,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: redeployOperationSpec + spec: redeployOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1396,12 +1386,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginRedeployAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsRedeployOptionalParams + options?: VirtualMachineScaleSetsRedeployOptionalParams, ): Promise { const poller = await this.beginRedeploy( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1418,25 +1408,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginPerformMaintenance( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams + options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1445,8 +1434,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1454,19 +1443,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: performMaintenanceOperationSpec + spec: performMaintenanceOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1484,12 +1473,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginPerformMaintenanceAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams + options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams, ): Promise { const poller = await this.beginPerformMaintenance( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1505,25 +1494,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams + options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1532,8 +1520,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1541,19 +1529,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, vmInstanceIDs, options }, - spec: updateInstancesOperationSpec + spec: updateInstancesOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1570,13 +1558,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams + options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams, ): Promise { const poller = await this.beginUpdateInstances( resourceGroupName, vmScaleSetName, vmInstanceIDs, - options + options, ); return poller.pollUntilDone(); } @@ -1592,25 +1580,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginReimage( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReimageOptionalParams + options?: VirtualMachineScaleSetsReimageOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1619,8 +1606,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1628,19 +1615,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: reimageOperationSpec + spec: reimageOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1657,12 +1644,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginReimageAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReimageOptionalParams + options?: VirtualMachineScaleSetsReimageOptionalParams, ): Promise { const poller = await this.beginReimage( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1677,25 +1664,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginReimageAll( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReimageAllOptionalParams + options?: VirtualMachineScaleSetsReimageAllOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1704,8 +1690,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1713,19 +1699,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: reimageAllOperationSpec + spec: reimageAllOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1741,12 +1727,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginReimageAllAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReimageAllOptionalParams + options?: VirtualMachineScaleSetsReimageAllOptionalParams, ): Promise { const poller = await this.beginReimageAll( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1760,7 +1746,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginApproveRollingUpgrade( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams + options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1769,21 +1755,20 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1792,8 +1777,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1801,22 +1786,22 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: approveRollingUpgradeOperationSpec + spec: approveRollingUpgradeOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetsApproveRollingUpgradeResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1831,12 +1816,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginApproveRollingUpgradeAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams + options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams, ): Promise { const poller = await this.beginApproveRollingUpgrade( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1853,13 +1838,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, platformUpdateDomain: number, - options?: VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams - ): Promise< - VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse - > { + options?: VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, platformUpdateDomain, options }, - forceRecoveryServiceFabricPlatformUpdateDomainWalkOperationSpec + forceRecoveryServiceFabricPlatformUpdateDomainWalkOperationSpec, ); } @@ -1874,11 +1857,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VMScaleSetConvertToSinglePlacementGroupInput, - options?: VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams + options?: VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, parameters, options }, - convertToSinglePlacementGroupOperationSpec + convertToSinglePlacementGroupOperationSpec, ); } @@ -1893,25 +1876,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: OrchestrationServiceStateInput, - options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams + options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1920,8 +1902,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1929,19 +1911,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, parameters, options }, - spec: setOrchestrationServiceStateOperationSpec + spec: setOrchestrationServiceStateOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1958,13 +1940,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: OrchestrationServiceStateInput, - options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams + options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams, ): Promise { const poller = await this.beginSetOrchestrationServiceState( resourceGroupName, vmScaleSetName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1978,11 +1960,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { private _listByLocationNext( location: string, nextLink: string, - options?: VirtualMachineScaleSetsListByLocationNextOptionalParams + options?: VirtualMachineScaleSetsListByLocationNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listByLocationNextOperationSpec + listByLocationNextOperationSpec, ); } @@ -1995,11 +1977,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { private _listNext( resourceGroupName: string, nextLink: string, - options?: VirtualMachineScaleSetsListNextOptionalParams + options?: VirtualMachineScaleSetsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -2010,11 +1992,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { */ private _listAllNext( nextLink: string, - options?: VirtualMachineScaleSetsListAllNextOptionalParams + options?: VirtualMachineScaleSetsListAllNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listAllNextOperationSpec + listAllNextOperationSpec, ); } @@ -2029,11 +2011,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, nextLink: string, - options?: VirtualMachineScaleSetsListSkusNextOptionalParams + options?: VirtualMachineScaleSetsListSkusNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, nextLink, options }, - listSkusNextOperationSpec + listSkusNextOperationSpec, ); } @@ -2048,11 +2030,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, nextLink: string, - options?: VirtualMachineScaleSetsGetOSUpgradeHistoryNextOptionalParams + options?: VirtualMachineScaleSetsGetOSUpgradeHistoryNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, nextLink, options }, - getOSUpgradeHistoryNextOperationSpec + getOSUpgradeHistoryNextOperationSpec, ); } } @@ -2060,46 +2042,44 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByLocationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachineScaleSets", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachineScaleSets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListResult + bodyMapper: Mappers.VirtualMachineScaleSetListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, 201: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, 202: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, 204: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], @@ -2107,37 +2087,36 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [ Parameters.accept, Parameters.contentType, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, 201: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, 202: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, 204: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], @@ -2145,20 +2124,19 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [ Parameters.accept, Parameters.contentType, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", httpMethod: "DELETE", responses: { 200: {}, @@ -2166,44 +2144,42 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.forceDeletion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deallocateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/deallocate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/deallocate", httpMethod: "POST", responses: { 200: {}, @@ -2211,8 +2187,8 @@ const deallocateOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion, Parameters.hibernate], @@ -2220,15 +2196,14 @@ const deallocateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteInstancesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/delete", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/delete", httpMethod: "POST", responses: { 200: {}, @@ -2236,8 +2211,8 @@ const deleteInstancesOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs1, queryParameters: [Parameters.apiVersion, Parameters.forceDeletion], @@ -2245,119 +2220,113 @@ const deleteInstancesOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getInstanceViewOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/instanceView", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/instanceView", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetInstanceView + bodyMapper: Mappers.VirtualMachineScaleSetInstanceView, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListResult + bodyMapper: Mappers.VirtualMachineScaleSetListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAllOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachineScaleSets", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachineScaleSets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListWithLinkResult + bodyMapper: Mappers.VirtualMachineScaleSetListWithLinkResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSkusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/skus", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/skus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListSkusResult + bodyMapper: Mappers.VirtualMachineScaleSetListSkusResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOSUpgradeHistoryOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osUpgradeHistory", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osUpgradeHistory", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListOSUpgradeHistory + bodyMapper: Mappers.VirtualMachineScaleSetListOSUpgradeHistory, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const powerOffOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/poweroff", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/poweroff", httpMethod: "POST", responses: { 200: {}, @@ -2365,8 +2334,8 @@ const powerOffOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion, Parameters.skipShutdown], @@ -2374,15 +2343,14 @@ const powerOffOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/restart", httpMethod: "POST", responses: { 200: {}, @@ -2390,8 +2358,8 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion], @@ -2399,15 +2367,14 @@ const restartOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const startOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/start", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/start", httpMethod: "POST", responses: { 200: {}, @@ -2415,8 +2382,8 @@ const startOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion], @@ -2424,15 +2391,14 @@ const startOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reapplyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reapply", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reapply", httpMethod: "POST", responses: { 200: {}, @@ -2440,22 +2406,21 @@ const reapplyOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const redeployOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/redeploy", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/redeploy", httpMethod: "POST", responses: { 200: {}, @@ -2463,8 +2428,8 @@ const redeployOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion], @@ -2472,15 +2437,14 @@ const redeployOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const performMaintenanceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/performMaintenance", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/performMaintenance", httpMethod: "POST", responses: { 200: {}, @@ -2488,8 +2452,8 @@ const performMaintenanceOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion], @@ -2497,15 +2461,14 @@ const performMaintenanceOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateInstancesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/manualupgrade", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/manualupgrade", httpMethod: "POST", responses: { 200: {}, @@ -2513,8 +2476,8 @@ const updateInstancesOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs1, queryParameters: [Parameters.apiVersion], @@ -2522,15 +2485,14 @@ const updateInstancesOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reimageOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimage", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimage", httpMethod: "POST", responses: { 200: {}, @@ -2538,8 +2500,8 @@ const reimageOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmScaleSetReimageInput, queryParameters: [Parameters.apiVersion], @@ -2547,15 +2509,14 @@ const reimageOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reimageAllOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimageall", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimageall", httpMethod: "POST", responses: { 200: {}, @@ -2563,8 +2524,8 @@ const reimageAllOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion], @@ -2572,32 +2533,35 @@ const reimageAllOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const approveRollingUpgradeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/approveRollingUpgrade", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/approveRollingUpgrade", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders + headersMapper: + Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders, }, 201: { - headersMapper: Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders + headersMapper: + Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders, }, 202: { - headersMapper: Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders + headersMapper: + Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders, }, 204: { - headersMapper: Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders + headersMapper: + Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion], @@ -2605,48 +2569,47 @@ const approveRollingUpgradeOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; -const forceRecoveryServiceFabricPlatformUpdateDomainWalkOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/forceRecoveryServiceFabricPlatformUpdateDomainWalk", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.RecoveryWalkResponse +const forceRecoveryServiceFabricPlatformUpdateDomainWalkOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/forceRecoveryServiceFabricPlatformUpdateDomainWalk", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.RecoveryWalkResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [ - Parameters.apiVersion, - Parameters.platformUpdateDomain, - Parameters.zone, - Parameters.placementGroupId - ], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.vmScaleSetName - ], - headerParameters: [Parameters.accept], - serializer -}; + queryParameters: [ + Parameters.apiVersion, + Parameters.platformUpdateDomain, + Parameters.zone, + Parameters.placementGroupId, + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + ], + headerParameters: [Parameters.accept], + serializer, + }; const convertToSinglePlacementGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/convertToSinglePlacementGroup", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/convertToSinglePlacementGroup", httpMethod: "POST", responses: { 200: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], @@ -2654,15 +2617,14 @@ const convertToSinglePlacementGroupOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const setOrchestrationServiceStateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState", httpMethod: "POST", responses: { 200: {}, @@ -2670,8 +2632,8 @@ const setOrchestrationServiceStateOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], @@ -2679,110 +2641,110 @@ const setOrchestrationServiceStateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByLocationNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListResult + bodyMapper: Mappers.VirtualMachineScaleSetListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.location, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListResult + bodyMapper: Mappers.VirtualMachineScaleSetListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAllNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListWithLinkResult + bodyMapper: Mappers.VirtualMachineScaleSetListWithLinkResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSkusNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListSkusResult + bodyMapper: Mappers.VirtualMachineScaleSetListSkusResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOSUpgradeHistoryNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListOSUpgradeHistory + bodyMapper: Mappers.VirtualMachineScaleSetListOSUpgradeHistory, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts b/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts index ad6b8563010b..84db03ae75f5 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts @@ -15,7 +15,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { VirtualMachineSize, VirtualMachineSizesListOptionalParams, - VirtualMachineSizesListResponse + VirtualMachineSizesListResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class VirtualMachineSizesImpl implements VirtualMachineSizes { */ public list( location: string, - options?: VirtualMachineSizesListOptionalParams + options?: VirtualMachineSizesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(location, options); return { @@ -54,14 +54,14 @@ export class VirtualMachineSizesImpl implements VirtualMachineSizes { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(location, options, settings); - } + }, }; } private async *listPagingPage( location: string, options?: VirtualMachineSizesListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineSizesListResponse; result = await this._list(location, options); @@ -70,7 +70,7 @@ export class VirtualMachineSizesImpl implements VirtualMachineSizes { private async *listPagingAll( location: string, - options?: VirtualMachineSizesListOptionalParams + options?: VirtualMachineSizesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(location, options)) { yield* page; @@ -85,11 +85,11 @@ export class VirtualMachineSizesImpl implements VirtualMachineSizes { */ private _list( location: string, - options?: VirtualMachineSizesListOptionalParams + options?: VirtualMachineSizesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listOperationSpec + listOperationSpec, ); } } @@ -97,23 +97,22 @@ export class VirtualMachineSizesImpl implements VirtualMachineSizes { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/vmSizes", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/vmSizes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineSizeListResult + bodyMapper: Mappers.VirtualMachineSizeListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachines.ts b/sdk/compute/arm-compute/src/operations/virtualMachines.ts index aae8dde2f61b..030ffa8c6a39 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachines.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachines.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -72,7 +72,7 @@ import { VirtualMachinesRunCommandResponse, VirtualMachinesListByLocationNextResponse, VirtualMachinesListNextResponse, - VirtualMachinesListAllNextResponse + VirtualMachinesListAllNextResponse, } from "../models"; /// @@ -95,7 +95,7 @@ export class VirtualMachinesImpl implements VirtualMachines { */ public listByLocation( location: string, - options?: VirtualMachinesListByLocationOptionalParams + options?: VirtualMachinesListByLocationOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByLocationPagingAll(location, options); return { @@ -110,14 +110,14 @@ export class VirtualMachinesImpl implements VirtualMachines { throw new Error("maxPageSize is not supported by this operation."); } return this.listByLocationPagingPage(location, options, settings); - } + }, }; } private async *listByLocationPagingPage( location: string, options?: VirtualMachinesListByLocationOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachinesListByLocationResponse; let continuationToken = settings?.continuationToken; @@ -132,7 +132,7 @@ export class VirtualMachinesImpl implements VirtualMachines { result = await this._listByLocationNext( location, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -143,7 +143,7 @@ export class VirtualMachinesImpl implements VirtualMachines { private async *listByLocationPagingAll( location: string, - options?: VirtualMachinesListByLocationOptionalParams + options?: VirtualMachinesListByLocationOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByLocationPagingPage(location, options)) { yield* page; @@ -158,7 +158,7 @@ export class VirtualMachinesImpl implements VirtualMachines { */ public list( resourceGroupName: string, - options?: VirtualMachinesListOptionalParams + options?: VirtualMachinesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, options); return { @@ -173,14 +173,14 @@ export class VirtualMachinesImpl implements VirtualMachines { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(resourceGroupName, options, settings); - } + }, }; } private async *listPagingPage( resourceGroupName: string, options?: VirtualMachinesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachinesListResponse; let continuationToken = settings?.continuationToken; @@ -195,7 +195,7 @@ export class VirtualMachinesImpl implements VirtualMachines { result = await this._listNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -206,7 +206,7 @@ export class VirtualMachinesImpl implements VirtualMachines { private async *listPagingAll( resourceGroupName: string, - options?: VirtualMachinesListOptionalParams + options?: VirtualMachinesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceGroupName, options)) { yield* page; @@ -219,7 +219,7 @@ export class VirtualMachinesImpl implements VirtualMachines { * @param options The options parameters. */ public listAll( - options?: VirtualMachinesListAllOptionalParams + options?: VirtualMachinesListAllOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAllPagingAll(options); return { @@ -234,13 +234,13 @@ export class VirtualMachinesImpl implements VirtualMachines { throw new Error("maxPageSize is not supported by this operation."); } return this.listAllPagingPage(options, settings); - } + }, }; } private async *listAllPagingPage( options?: VirtualMachinesListAllOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachinesListAllResponse; let continuationToken = settings?.continuationToken; @@ -261,7 +261,7 @@ export class VirtualMachinesImpl implements VirtualMachines { } private async *listAllPagingAll( - options?: VirtualMachinesListAllOptionalParams + options?: VirtualMachinesListAllOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAllPagingPage(options)) { yield* page; @@ -277,12 +277,12 @@ export class VirtualMachinesImpl implements VirtualMachines { public listAvailableSizes( resourceGroupName: string, vmName: string, - options?: VirtualMachinesListAvailableSizesOptionalParams + options?: VirtualMachinesListAvailableSizesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAvailableSizesPagingAll( resourceGroupName, vmName, - options + options, ); return { next() { @@ -299,9 +299,9 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName, vmName, options, - settings + settings, ); - } + }, }; } @@ -309,7 +309,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, options?: VirtualMachinesListAvailableSizesOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachinesListAvailableSizesResponse; result = await this._listAvailableSizes(resourceGroupName, vmName, options); @@ -319,12 +319,12 @@ export class VirtualMachinesImpl implements VirtualMachines { private async *listAvailableSizesPagingAll( resourceGroupName: string, vmName: string, - options?: VirtualMachinesListAvailableSizesOptionalParams + options?: VirtualMachinesListAvailableSizesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAvailableSizesPagingPage( resourceGroupName, vmName, - options + options, )) { yield* page; } @@ -337,11 +337,11 @@ export class VirtualMachinesImpl implements VirtualMachines { */ private _listByLocation( location: string, - options?: VirtualMachinesListByLocationOptionalParams + options?: VirtualMachinesListByLocationOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listByLocationOperationSpec + listByLocationOperationSpec, ); } @@ -357,7 +357,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineCaptureParameters, - options?: VirtualMachinesCaptureOptionalParams + options?: VirtualMachinesCaptureOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -366,21 +366,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -389,8 +388,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -398,15 +397,15 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, parameters, options }, - spec: captureOperationSpec + spec: captureOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesCaptureResponse, @@ -414,7 +413,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -432,13 +431,13 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineCaptureParameters, - options?: VirtualMachinesCaptureOptionalParams + options?: VirtualMachinesCaptureOptionalParams, ): Promise { const poller = await this.beginCapture( resourceGroupName, vmName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -455,7 +454,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachine, - options?: VirtualMachinesCreateOrUpdateOptionalParams + options?: VirtualMachinesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -464,21 +463,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -487,8 +485,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -496,22 +494,22 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -529,13 +527,13 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachine, - options?: VirtualMachinesCreateOrUpdateOptionalParams + options?: VirtualMachinesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, vmName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -551,7 +549,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineUpdate, - options?: VirtualMachinesUpdateOptionalParams + options?: VirtualMachinesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -560,21 +558,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -583,8 +580,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -592,22 +589,22 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, parameters, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -624,13 +621,13 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineUpdate, - options?: VirtualMachinesUpdateOptionalParams + options?: VirtualMachinesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, vmName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -644,25 +641,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginDelete( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeleteOptionalParams + options?: VirtualMachinesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -671,8 +667,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -680,19 +676,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -707,7 +703,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginDeleteAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeleteOptionalParams + options?: VirtualMachinesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete(resourceGroupName, vmName, options); return poller.pollUntilDone(); @@ -722,11 +718,11 @@ export class VirtualMachinesImpl implements VirtualMachines { get( resourceGroupName: string, vmName: string, - options?: VirtualMachinesGetOptionalParams + options?: VirtualMachinesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - getOperationSpec + getOperationSpec, ); } @@ -739,11 +735,11 @@ export class VirtualMachinesImpl implements VirtualMachines { instanceView( resourceGroupName: string, vmName: string, - options?: VirtualMachinesInstanceViewOptionalParams + options?: VirtualMachinesInstanceViewOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - instanceViewOperationSpec + instanceViewOperationSpec, ); } @@ -757,25 +753,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginConvertToManagedDisks( resourceGroupName: string, vmName: string, - options?: VirtualMachinesConvertToManagedDisksOptionalParams + options?: VirtualMachinesConvertToManagedDisksOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -784,8 +779,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -793,19 +788,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: convertToManagedDisksOperationSpec + spec: convertToManagedDisksOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -821,12 +816,12 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginConvertToManagedDisksAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesConvertToManagedDisksOptionalParams + options?: VirtualMachinesConvertToManagedDisksOptionalParams, ): Promise { const poller = await this.beginConvertToManagedDisks( resourceGroupName, vmName, - options + options, ); return poller.pollUntilDone(); } @@ -841,25 +836,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginDeallocate( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeallocateOptionalParams + options?: VirtualMachinesDeallocateOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -868,8 +862,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -877,19 +871,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: deallocateOperationSpec + spec: deallocateOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -905,12 +899,12 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginDeallocateAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeallocateOptionalParams + options?: VirtualMachinesDeallocateOptionalParams, ): Promise { const poller = await this.beginDeallocate( resourceGroupName, vmName, - options + options, ); return poller.pollUntilDone(); } @@ -929,11 +923,11 @@ export class VirtualMachinesImpl implements VirtualMachines { generalize( resourceGroupName: string, vmName: string, - options?: VirtualMachinesGeneralizeOptionalParams + options?: VirtualMachinesGeneralizeOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - generalizeOperationSpec + generalizeOperationSpec, ); } @@ -945,11 +939,11 @@ export class VirtualMachinesImpl implements VirtualMachines { */ private _list( resourceGroupName: string, - options?: VirtualMachinesListOptionalParams + options?: VirtualMachinesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listOperationSpec + listOperationSpec, ); } @@ -959,7 +953,7 @@ export class VirtualMachinesImpl implements VirtualMachines { * @param options The options parameters. */ private _listAll( - options?: VirtualMachinesListAllOptionalParams + options?: VirtualMachinesListAllOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listAllOperationSpec); } @@ -973,11 +967,11 @@ export class VirtualMachinesImpl implements VirtualMachines { private _listAvailableSizes( resourceGroupName: string, vmName: string, - options?: VirtualMachinesListAvailableSizesOptionalParams + options?: VirtualMachinesListAvailableSizesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - listAvailableSizesOperationSpec + listAvailableSizesOperationSpec, ); } @@ -991,25 +985,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginPowerOff( resourceGroupName: string, vmName: string, - options?: VirtualMachinesPowerOffOptionalParams + options?: VirtualMachinesPowerOffOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1018,8 +1011,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1027,19 +1020,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: powerOffOperationSpec + spec: powerOffOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1055,7 +1048,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginPowerOffAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesPowerOffOptionalParams + options?: VirtualMachinesPowerOffOptionalParams, ): Promise { const poller = await this.beginPowerOff(resourceGroupName, vmName, options); return poller.pollUntilDone(); @@ -1070,25 +1063,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginReapply( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReapplyOptionalParams + options?: VirtualMachinesReapplyOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1097,8 +1089,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1106,19 +1098,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: reapplyOperationSpec + spec: reapplyOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1133,7 +1125,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginReapplyAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReapplyOptionalParams + options?: VirtualMachinesReapplyOptionalParams, ): Promise { const poller = await this.beginReapply(resourceGroupName, vmName, options); return poller.pollUntilDone(); @@ -1148,25 +1140,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginRestart( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRestartOptionalParams + options?: VirtualMachinesRestartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1175,8 +1166,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1184,19 +1175,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1211,7 +1202,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginRestartAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRestartOptionalParams + options?: VirtualMachinesRestartOptionalParams, ): Promise { const poller = await this.beginRestart(resourceGroupName, vmName, options); return poller.pollUntilDone(); @@ -1226,25 +1217,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginStart( resourceGroupName: string, vmName: string, - options?: VirtualMachinesStartOptionalParams + options?: VirtualMachinesStartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1253,8 +1243,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1262,19 +1252,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: startOperationSpec + spec: startOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1289,7 +1279,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginStartAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesStartOptionalParams + options?: VirtualMachinesStartOptionalParams, ): Promise { const poller = await this.beginStart(resourceGroupName, vmName, options); return poller.pollUntilDone(); @@ -1304,25 +1294,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginRedeploy( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRedeployOptionalParams + options?: VirtualMachinesRedeployOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1331,8 +1320,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1340,19 +1329,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: redeployOperationSpec + spec: redeployOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1367,7 +1356,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginRedeployAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRedeployOptionalParams + options?: VirtualMachinesRedeployOptionalParams, ): Promise { const poller = await this.beginRedeploy(resourceGroupName, vmName, options); return poller.pollUntilDone(); @@ -1387,25 +1376,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginReimage( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReimageOptionalParams + options?: VirtualMachinesReimageOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1414,8 +1402,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1423,19 +1411,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: reimageOperationSpec + spec: reimageOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1455,7 +1443,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginReimageAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReimageOptionalParams + options?: VirtualMachinesReimageOptionalParams, ): Promise { const poller = await this.beginReimage(resourceGroupName, vmName, options); return poller.pollUntilDone(); @@ -1470,11 +1458,11 @@ export class VirtualMachinesImpl implements VirtualMachines { retrieveBootDiagnosticsData( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams + options?: VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - retrieveBootDiagnosticsDataOperationSpec + retrieveBootDiagnosticsDataOperationSpec, ); } @@ -1487,25 +1475,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginPerformMaintenance( resourceGroupName: string, vmName: string, - options?: VirtualMachinesPerformMaintenanceOptionalParams + options?: VirtualMachinesPerformMaintenanceOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1514,8 +1501,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1523,19 +1510,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: performMaintenanceOperationSpec + spec: performMaintenanceOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1550,12 +1537,12 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginPerformMaintenanceAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesPerformMaintenanceOptionalParams + options?: VirtualMachinesPerformMaintenanceOptionalParams, ): Promise { const poller = await this.beginPerformMaintenance( resourceGroupName, vmName, - options + options, ); return poller.pollUntilDone(); } @@ -1569,11 +1556,11 @@ export class VirtualMachinesImpl implements VirtualMachines { simulateEviction( resourceGroupName: string, vmName: string, - options?: VirtualMachinesSimulateEvictionOptionalParams + options?: VirtualMachinesSimulateEvictionOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - simulateEvictionOperationSpec + simulateEvictionOperationSpec, ); } @@ -1586,7 +1573,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginAssessPatches( resourceGroupName: string, vmName: string, - options?: VirtualMachinesAssessPatchesOptionalParams + options?: VirtualMachinesAssessPatchesOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1595,21 +1582,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1618,8 +1604,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1627,15 +1613,15 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: assessPatchesOperationSpec + spec: assessPatchesOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesAssessPatchesResponse, @@ -1643,7 +1629,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1658,12 +1644,12 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginAssessPatchesAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesAssessPatchesOptionalParams + options?: VirtualMachinesAssessPatchesOptionalParams, ): Promise { const poller = await this.beginAssessPatches( resourceGroupName, vmName, - options + options, ); return poller.pollUntilDone(); } @@ -1679,7 +1665,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, installPatchesInput: VirtualMachineInstallPatchesParameters, - options?: VirtualMachinesInstallPatchesOptionalParams + options?: VirtualMachinesInstallPatchesOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1688,21 +1674,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1711,8 +1696,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1720,15 +1705,15 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, installPatchesInput, options }, - spec: installPatchesOperationSpec + spec: installPatchesOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesInstallPatchesResponse, @@ -1736,7 +1721,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1753,13 +1738,13 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, installPatchesInput: VirtualMachineInstallPatchesParameters, - options?: VirtualMachinesInstallPatchesOptionalParams + options?: VirtualMachinesInstallPatchesOptionalParams, ): Promise { const poller = await this.beginInstallPatches( resourceGroupName, vmName, installPatchesInput, - options + options, ); return poller.pollUntilDone(); } @@ -1776,7 +1761,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: AttachDetachDataDisksRequest, - options?: VirtualMachinesAttachDetachDataDisksOptionalParams + options?: VirtualMachinesAttachDetachDataDisksOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1785,21 +1770,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1808,8 +1792,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1817,15 +1801,15 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, parameters, options }, - spec: attachDetachDataDisksOperationSpec + spec: attachDetachDataDisksOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesAttachDetachDataDisksResponse, @@ -1833,7 +1817,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1851,13 +1835,13 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: AttachDetachDataDisksRequest, - options?: VirtualMachinesAttachDetachDataDisksOptionalParams + options?: VirtualMachinesAttachDetachDataDisksOptionalParams, ): Promise { const poller = await this.beginAttachDetachDataDisks( resourceGroupName, vmName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1873,7 +1857,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: RunCommandInput, - options?: VirtualMachinesRunCommandOptionalParams + options?: VirtualMachinesRunCommandOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1882,21 +1866,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1905,8 +1888,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1914,15 +1897,15 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, parameters, options }, - spec: runCommandOperationSpec + spec: runCommandOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesRunCommandResponse, @@ -1930,7 +1913,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1947,13 +1930,13 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: RunCommandInput, - options?: VirtualMachinesRunCommandOptionalParams + options?: VirtualMachinesRunCommandOptionalParams, ): Promise { const poller = await this.beginRunCommand( resourceGroupName, vmName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1967,11 +1950,11 @@ export class VirtualMachinesImpl implements VirtualMachines { private _listByLocationNext( location: string, nextLink: string, - options?: VirtualMachinesListByLocationNextOptionalParams + options?: VirtualMachinesListByLocationNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listByLocationNextOperationSpec + listByLocationNextOperationSpec, ); } @@ -1984,11 +1967,11 @@ export class VirtualMachinesImpl implements VirtualMachines { private _listNext( resourceGroupName: string, nextLink: string, - options?: VirtualMachinesListNextOptionalParams + options?: VirtualMachinesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -1999,11 +1982,11 @@ export class VirtualMachinesImpl implements VirtualMachines { */ private _listAllNext( nextLink: string, - options?: VirtualMachinesListAllNextOptionalParams + options?: VirtualMachinesListAllNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listAllNextOperationSpec + listAllNextOperationSpec, ); } } @@ -2011,46 +1994,44 @@ export class VirtualMachinesImpl implements VirtualMachines { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByLocationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachines", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachines", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineListResult + bodyMapper: Mappers.VirtualMachineListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const captureOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/capture", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/capture", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.VirtualMachineCaptureResult + bodyMapper: Mappers.VirtualMachineCaptureResult, }, 201: { - bodyMapper: Mappers.VirtualMachineCaptureResult + bodyMapper: Mappers.VirtualMachineCaptureResult, }, 202: { - bodyMapper: Mappers.VirtualMachineCaptureResult + bodyMapper: Mappers.VirtualMachineCaptureResult, }, 204: { - bodyMapper: Mappers.VirtualMachineCaptureResult + bodyMapper: Mappers.VirtualMachineCaptureResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], @@ -2058,32 +2039,31 @@ const captureOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 201: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 202: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 204: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], @@ -2091,37 +2071,36 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [ Parameters.accept, Parameters.contentType, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 201: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 202: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 204: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], @@ -2129,20 +2108,19 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [ Parameters.accept, Parameters.contentType, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", httpMethod: "DELETE", responses: { 200: {}, @@ -2150,66 +2128,63 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.forceDeletion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand2], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const instanceViewOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineInstanceView + bodyMapper: Mappers.VirtualMachineInstanceView, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const convertToManagedDisksOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/convertToManagedDisks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/convertToManagedDisks", httpMethod: "POST", responses: { 200: {}, @@ -2217,22 +2192,21 @@ const convertToManagedDisksOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deallocateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/deallocate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/deallocate", httpMethod: "POST", responses: { 200: {}, @@ -2240,111 +2214,106 @@ const deallocateOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.hibernate], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const generalizeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/generalize", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/generalize", httpMethod: "POST", responses: { 200: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineListResult + bodyMapper: Mappers.VirtualMachineListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.filter, - Parameters.expand3 + Parameters.expand3, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAllOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachines", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachines", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineListResult + bodyMapper: Mappers.VirtualMachineListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.filter, Parameters.statusOnly, - Parameters.expand4 + Parameters.expand4, ], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAvailableSizesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/vmSizes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/vmSizes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineSizeListResult + bodyMapper: Mappers.VirtualMachineSizeListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const powerOffOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/powerOff", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/powerOff", httpMethod: "POST", responses: { 200: {}, @@ -2352,22 +2321,21 @@ const powerOffOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.skipShutdown], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const reapplyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reapply", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reapply", httpMethod: "POST", responses: { 200: {}, @@ -2375,22 +2343,21 @@ const reapplyOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart", httpMethod: "POST", responses: { 200: {}, @@ -2398,22 +2365,21 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const startOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/start", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/start", httpMethod: "POST", responses: { 200: {}, @@ -2421,22 +2387,21 @@ const startOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const redeployOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/redeploy", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/redeploy", httpMethod: "POST", responses: { 200: {}, @@ -2444,22 +2409,21 @@ const redeployOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const reimageOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reimage", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reimage", httpMethod: "POST", responses: { 200: {}, @@ -2467,8 +2431,8 @@ const reimageOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], @@ -2476,40 +2440,38 @@ const reimageOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const retrieveBootDiagnosticsDataOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/retrieveBootDiagnosticsData", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/retrieveBootDiagnosticsData", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.RetrieveBootDiagnosticsDataResult + bodyMapper: Mappers.RetrieveBootDiagnosticsDataResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, - Parameters.sasUriExpirationTimeInMinutes + Parameters.sasUriExpirationTimeInMinutes, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const performMaintenanceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/performMaintenance", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/performMaintenance", httpMethod: "POST", responses: { 200: {}, @@ -2517,90 +2479,87 @@ const performMaintenanceOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const simulateEvictionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/simulateEviction", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/simulateEviction", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const assessPatchesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/assessPatches", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/assessPatches", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.VirtualMachineAssessPatchesResult + bodyMapper: Mappers.VirtualMachineAssessPatchesResult, }, 201: { - bodyMapper: Mappers.VirtualMachineAssessPatchesResult + bodyMapper: Mappers.VirtualMachineAssessPatchesResult, }, 202: { - bodyMapper: Mappers.VirtualMachineAssessPatchesResult + bodyMapper: Mappers.VirtualMachineAssessPatchesResult, }, 204: { - bodyMapper: Mappers.VirtualMachineAssessPatchesResult + bodyMapper: Mappers.VirtualMachineAssessPatchesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const installPatchesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/installPatches", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/installPatches", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.VirtualMachineInstallPatchesResult + bodyMapper: Mappers.VirtualMachineInstallPatchesResult, }, 201: { - bodyMapper: Mappers.VirtualMachineInstallPatchesResult + bodyMapper: Mappers.VirtualMachineInstallPatchesResult, }, 202: { - bodyMapper: Mappers.VirtualMachineInstallPatchesResult + bodyMapper: Mappers.VirtualMachineInstallPatchesResult, }, 204: { - bodyMapper: Mappers.VirtualMachineInstallPatchesResult + bodyMapper: Mappers.VirtualMachineInstallPatchesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.installPatchesInput, queryParameters: [Parameters.apiVersion], @@ -2608,32 +2567,31 @@ const installPatchesOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const attachDetachDataDisksOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/attachDetachDataDisks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/attachDetachDataDisks", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.StorageProfile + bodyMapper: Mappers.StorageProfile, }, 201: { - bodyMapper: Mappers.StorageProfile + bodyMapper: Mappers.StorageProfile, }, 202: { - bodyMapper: Mappers.StorageProfile + bodyMapper: Mappers.StorageProfile, }, 204: { - bodyMapper: Mappers.StorageProfile + bodyMapper: Mappers.StorageProfile, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], @@ -2641,29 +2599,28 @@ const attachDetachDataDisksOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const runCommandOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.RunCommandResult, }, 201: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.RunCommandResult, }, 202: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.RunCommandResult, }, 204: { - bodyMapper: Mappers.RunCommandResult - } + bodyMapper: Mappers.RunCommandResult, + }, }, requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], @@ -2671,68 +2628,68 @@ const runCommandOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.contentType, Parameters.accept1], mediaType: "json", - serializer + serializer, }; const listByLocationNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineListResult + bodyMapper: Mappers.VirtualMachineListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.location, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineListResult + bodyMapper: Mappers.VirtualMachineListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAllNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineListResult + bodyMapper: Mappers.VirtualMachineListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/availabilitySets.ts b/sdk/compute/arm-compute/src/operationsInterfaces/availabilitySets.ts index 02e18b92c1dc..1a70a4da012f 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/availabilitySets.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/availabilitySets.ts @@ -20,7 +20,7 @@ import { AvailabilitySetsUpdateResponse, AvailabilitySetsDeleteOptionalParams, AvailabilitySetsGetOptionalParams, - AvailabilitySetsGetResponse + AvailabilitySetsGetResponse, } from "../models"; /// @@ -31,7 +31,7 @@ export interface AvailabilitySets { * @param options The options parameters. */ listBySubscription( - options?: AvailabilitySetsListBySubscriptionOptionalParams + options?: AvailabilitySetsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all availability sets in a resource group. @@ -40,7 +40,7 @@ export interface AvailabilitySets { */ list( resourceGroupName: string, - options?: AvailabilitySetsListOptionalParams + options?: AvailabilitySetsListOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all available virtual machine sizes that can be used to create a new virtual machine in an @@ -52,7 +52,7 @@ export interface AvailabilitySets { listAvailableSizes( resourceGroupName: string, availabilitySetName: string, - options?: AvailabilitySetsListAvailableSizesOptionalParams + options?: AvailabilitySetsListAvailableSizesOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update an availability set. @@ -65,7 +65,7 @@ export interface AvailabilitySets { resourceGroupName: string, availabilitySetName: string, parameters: AvailabilitySet, - options?: AvailabilitySetsCreateOrUpdateOptionalParams + options?: AvailabilitySetsCreateOrUpdateOptionalParams, ): Promise; /** * Update an availability set. @@ -78,7 +78,7 @@ export interface AvailabilitySets { resourceGroupName: string, availabilitySetName: string, parameters: AvailabilitySetUpdate, - options?: AvailabilitySetsUpdateOptionalParams + options?: AvailabilitySetsUpdateOptionalParams, ): Promise; /** * Delete an availability set. @@ -89,7 +89,7 @@ export interface AvailabilitySets { delete( resourceGroupName: string, availabilitySetName: string, - options?: AvailabilitySetsDeleteOptionalParams + options?: AvailabilitySetsDeleteOptionalParams, ): Promise; /** * Retrieves information about an availability set. @@ -100,6 +100,6 @@ export interface AvailabilitySets { get( resourceGroupName: string, availabilitySetName: string, - options?: AvailabilitySetsGetOptionalParams + options?: AvailabilitySetsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservationGroups.ts b/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservationGroups.ts index 1dd3210dd776..ecf7b2bfd9c7 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservationGroups.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservationGroups.ts @@ -18,7 +18,7 @@ import { CapacityReservationGroupsUpdateResponse, CapacityReservationGroupsDeleteOptionalParams, CapacityReservationGroupsGetOptionalParams, - CapacityReservationGroupsGetResponse + CapacityReservationGroupsGetResponse, } from "../models"; /// @@ -32,7 +32,7 @@ export interface CapacityReservationGroups { */ listByResourceGroup( resourceGroupName: string, - options?: CapacityReservationGroupsListByResourceGroupOptionalParams + options?: CapacityReservationGroupsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all of the capacity reservation groups in the subscription. Use the nextLink property in the @@ -40,7 +40,7 @@ export interface CapacityReservationGroups { * @param options The options parameters. */ listBySubscription( - options?: CapacityReservationGroupsListBySubscriptionOptionalParams + options?: CapacityReservationGroupsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * The operation to create or update a capacity reservation group. When updating a capacity reservation @@ -55,7 +55,7 @@ export interface CapacityReservationGroups { resourceGroupName: string, capacityReservationGroupName: string, parameters: CapacityReservationGroup, - options?: CapacityReservationGroupsCreateOrUpdateOptionalParams + options?: CapacityReservationGroupsCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update a capacity reservation group. When updating a capacity reservation group, @@ -69,7 +69,7 @@ export interface CapacityReservationGroups { resourceGroupName: string, capacityReservationGroupName: string, parameters: CapacityReservationGroupUpdate, - options?: CapacityReservationGroupsUpdateOptionalParams + options?: CapacityReservationGroupsUpdateOptionalParams, ): Promise; /** * The operation to delete a capacity reservation group. This operation is allowed only if all the @@ -83,7 +83,7 @@ export interface CapacityReservationGroups { delete( resourceGroupName: string, capacityReservationGroupName: string, - options?: CapacityReservationGroupsDeleteOptionalParams + options?: CapacityReservationGroupsDeleteOptionalParams, ): Promise; /** * The operation that retrieves information about a capacity reservation group. @@ -94,6 +94,6 @@ export interface CapacityReservationGroups { get( resourceGroupName: string, capacityReservationGroupName: string, - options?: CapacityReservationGroupsGetOptionalParams + options?: CapacityReservationGroupsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservations.ts b/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservations.ts index 0e7e2b65566f..137659ef17d1 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservations.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservations.ts @@ -18,7 +18,7 @@ import { CapacityReservationsUpdateResponse, CapacityReservationsDeleteOptionalParams, CapacityReservationsGetOptionalParams, - CapacityReservationsGetResponse + CapacityReservationsGetResponse, } from "../models"; /// @@ -34,7 +34,7 @@ export interface CapacityReservations { listByCapacityReservationGroup( resourceGroupName: string, capacityReservationGroupName: string, - options?: CapacityReservationsListByCapacityReservationGroupOptionalParams + options?: CapacityReservationsListByCapacityReservationGroupOptionalParams, ): PagedAsyncIterableIterator; /** * The operation to create or update a capacity reservation. Please note some properties can be set @@ -51,7 +51,7 @@ export interface CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservation, - options?: CapacityReservationsCreateOrUpdateOptionalParams + options?: CapacityReservationsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -73,7 +73,7 @@ export interface CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservation, - options?: CapacityReservationsCreateOrUpdateOptionalParams + options?: CapacityReservationsCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update a capacity reservation. @@ -88,7 +88,7 @@ export interface CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservationUpdate, - options?: CapacityReservationsUpdateOptionalParams + options?: CapacityReservationsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -108,7 +108,7 @@ export interface CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservationUpdate, - options?: CapacityReservationsUpdateOptionalParams + options?: CapacityReservationsUpdateOptionalParams, ): Promise; /** * The operation to delete a capacity reservation. This operation is allowed only when all the @@ -123,7 +123,7 @@ export interface CapacityReservations { resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, - options?: CapacityReservationsDeleteOptionalParams + options?: CapacityReservationsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete a capacity reservation. This operation is allowed only when all the @@ -138,7 +138,7 @@ export interface CapacityReservations { resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, - options?: CapacityReservationsDeleteOptionalParams + options?: CapacityReservationsDeleteOptionalParams, ): Promise; /** * The operation that retrieves information about the capacity reservation. @@ -151,6 +151,6 @@ export interface CapacityReservations { resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, - options?: CapacityReservationsGetOptionalParams + options?: CapacityReservationsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceOperatingSystems.ts b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceOperatingSystems.ts index 43a831b17f7b..ecf78653ab6b 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceOperatingSystems.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceOperatingSystems.ts @@ -15,7 +15,7 @@ import { CloudServiceOperatingSystemsGetOSVersionOptionalParams, CloudServiceOperatingSystemsGetOSVersionResponse, CloudServiceOperatingSystemsGetOSFamilyOptionalParams, - CloudServiceOperatingSystemsGetOSFamilyResponse + CloudServiceOperatingSystemsGetOSFamilyResponse, } from "../models"; /// @@ -30,7 +30,7 @@ export interface CloudServiceOperatingSystems { */ listOSVersions( location: string, - options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams + options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a list of all guest operating system families available to be specified in the XML service @@ -41,7 +41,7 @@ export interface CloudServiceOperatingSystems { */ listOSFamilies( location: string, - options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams + options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams, ): PagedAsyncIterableIterator; /** * Gets properties of a guest operating system version that can be specified in the XML service @@ -53,7 +53,7 @@ export interface CloudServiceOperatingSystems { getOSVersion( location: string, osVersionName: string, - options?: CloudServiceOperatingSystemsGetOSVersionOptionalParams + options?: CloudServiceOperatingSystemsGetOSVersionOptionalParams, ): Promise; /** * Gets properties of a guest operating system family that can be specified in the XML service @@ -65,6 +65,6 @@ export interface CloudServiceOperatingSystems { getOSFamily( location: string, osFamilyName: string, - options?: CloudServiceOperatingSystemsGetOSFamilyOptionalParams + options?: CloudServiceOperatingSystemsGetOSFamilyOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoleInstances.ts b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoleInstances.ts index b34256942c98..201c29097073 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoleInstances.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoleInstances.ts @@ -20,7 +20,7 @@ import { CloudServiceRoleInstancesReimageOptionalParams, CloudServiceRoleInstancesRebuildOptionalParams, CloudServiceRoleInstancesGetRemoteDesktopFileOptionalParams, - CloudServiceRoleInstancesGetRemoteDesktopFileResponse + CloudServiceRoleInstancesGetRemoteDesktopFileResponse, } from "../models"; /// @@ -36,7 +36,7 @@ export interface CloudServiceRoleInstances { list( resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesListOptionalParams + options?: CloudServiceRoleInstancesListOptionalParams, ): PagedAsyncIterableIterator; /** * Deletes a role instance from a cloud service. @@ -49,7 +49,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesDeleteOptionalParams + options?: CloudServiceRoleInstancesDeleteOptionalParams, ): Promise, void>>; /** * Deletes a role instance from a cloud service. @@ -62,7 +62,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesDeleteOptionalParams + options?: CloudServiceRoleInstancesDeleteOptionalParams, ): Promise; /** * Gets a role instance from a cloud service. @@ -75,7 +75,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesGetOptionalParams + options?: CloudServiceRoleInstancesGetOptionalParams, ): Promise; /** * Retrieves information about the run-time state of a role instance in a cloud service. @@ -88,7 +88,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesGetInstanceViewOptionalParams + options?: CloudServiceRoleInstancesGetInstanceViewOptionalParams, ): Promise; /** * The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud @@ -102,7 +102,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesRestartOptionalParams + options?: CloudServiceRoleInstancesRestartOptionalParams, ): Promise, void>>; /** * The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud @@ -116,7 +116,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesRestartOptionalParams + options?: CloudServiceRoleInstancesRestartOptionalParams, ): Promise; /** * The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web @@ -130,7 +130,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesReimageOptionalParams + options?: CloudServiceRoleInstancesReimageOptionalParams, ): Promise, void>>; /** * The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web @@ -144,7 +144,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesReimageOptionalParams + options?: CloudServiceRoleInstancesReimageOptionalParams, ): Promise; /** * The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web @@ -159,7 +159,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesRebuildOptionalParams + options?: CloudServiceRoleInstancesRebuildOptionalParams, ): Promise, void>>; /** * The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web @@ -174,7 +174,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesRebuildOptionalParams + options?: CloudServiceRoleInstancesRebuildOptionalParams, ): Promise; /** * Gets a remote desktop file for a role instance in a cloud service. @@ -187,6 +187,6 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesGetRemoteDesktopFileOptionalParams + options?: CloudServiceRoleInstancesGetRemoteDesktopFileOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoles.ts b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoles.ts index f35bf8b2f3ba..21b27b7bc465 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoles.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoles.ts @@ -11,7 +11,7 @@ import { CloudServiceRole, CloudServiceRolesListOptionalParams, CloudServiceRolesGetOptionalParams, - CloudServiceRolesGetResponse + CloudServiceRolesGetResponse, } from "../models"; /// @@ -27,7 +27,7 @@ export interface CloudServiceRoles { list( resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRolesListOptionalParams + options?: CloudServiceRolesListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a role from a cloud service. @@ -40,6 +40,6 @@ export interface CloudServiceRoles { roleName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRolesGetOptionalParams + options?: CloudServiceRolesGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServices.ts b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServices.ts index 3e7f88d72e7a..4c84e470b47e 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServices.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServices.ts @@ -26,7 +26,7 @@ import { CloudServicesRestartOptionalParams, CloudServicesReimageOptionalParams, CloudServicesRebuildOptionalParams, - CloudServicesDeleteInstancesOptionalParams + CloudServicesDeleteInstancesOptionalParams, } from "../models"; /// @@ -39,7 +39,7 @@ export interface CloudServices { * @param options The options parameters. */ listAll( - options?: CloudServicesListAllOptionalParams + options?: CloudServicesListAllOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a list of all cloud services under a resource group. Use nextLink property in the response to @@ -49,7 +49,7 @@ export interface CloudServices { */ list( resourceGroupName: string, - options?: CloudServicesListOptionalParams + options?: CloudServicesListOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a cloud service. Please note some properties can be set only during cloud service @@ -61,7 +61,7 @@ export interface CloudServices { beginCreateOrUpdate( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesCreateOrUpdateOptionalParams + options?: CloudServicesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -78,7 +78,7 @@ export interface CloudServices { beginCreateOrUpdateAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesCreateOrUpdateOptionalParams + options?: CloudServicesCreateOrUpdateOptionalParams, ): Promise; /** * Update a cloud service. @@ -89,7 +89,7 @@ export interface CloudServices { beginUpdate( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesUpdateOptionalParams + options?: CloudServicesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -105,7 +105,7 @@ export interface CloudServices { beginUpdateAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesUpdateOptionalParams + options?: CloudServicesUpdateOptionalParams, ): Promise; /** * Deletes a cloud service. @@ -116,7 +116,7 @@ export interface CloudServices { beginDelete( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesDeleteOptionalParams + options?: CloudServicesDeleteOptionalParams, ): Promise, void>>; /** * Deletes a cloud service. @@ -127,7 +127,7 @@ export interface CloudServices { beginDeleteAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesDeleteOptionalParams + options?: CloudServicesDeleteOptionalParams, ): Promise; /** * Display information about a cloud service. @@ -138,7 +138,7 @@ export interface CloudServices { get( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesGetOptionalParams + options?: CloudServicesGetOptionalParams, ): Promise; /** * Gets the status of a cloud service. @@ -149,7 +149,7 @@ export interface CloudServices { getInstanceView( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesGetInstanceViewOptionalParams + options?: CloudServicesGetInstanceViewOptionalParams, ): Promise; /** * Starts the cloud service. @@ -160,7 +160,7 @@ export interface CloudServices { beginStart( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesStartOptionalParams + options?: CloudServicesStartOptionalParams, ): Promise, void>>; /** * Starts the cloud service. @@ -171,7 +171,7 @@ export interface CloudServices { beginStartAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesStartOptionalParams + options?: CloudServicesStartOptionalParams, ): Promise; /** * Power off the cloud service. Note that resources are still attached and you are getting charged for @@ -183,7 +183,7 @@ export interface CloudServices { beginPowerOff( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesPowerOffOptionalParams + options?: CloudServicesPowerOffOptionalParams, ): Promise, void>>; /** * Power off the cloud service. Note that resources are still attached and you are getting charged for @@ -195,7 +195,7 @@ export interface CloudServices { beginPowerOffAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesPowerOffOptionalParams + options?: CloudServicesPowerOffOptionalParams, ): Promise; /** * Restarts one or more role instances in a cloud service. @@ -206,7 +206,7 @@ export interface CloudServices { beginRestart( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesRestartOptionalParams + options?: CloudServicesRestartOptionalParams, ): Promise, void>>; /** * Restarts one or more role instances in a cloud service. @@ -217,7 +217,7 @@ export interface CloudServices { beginRestartAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesRestartOptionalParams + options?: CloudServicesRestartOptionalParams, ): Promise; /** * Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker @@ -229,7 +229,7 @@ export interface CloudServices { beginReimage( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesReimageOptionalParams + options?: CloudServicesReimageOptionalParams, ): Promise, void>>; /** * Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker @@ -241,7 +241,7 @@ export interface CloudServices { beginReimageAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesReimageOptionalParams + options?: CloudServicesReimageOptionalParams, ): Promise; /** * Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and @@ -254,7 +254,7 @@ export interface CloudServices { beginRebuild( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesRebuildOptionalParams + options?: CloudServicesRebuildOptionalParams, ): Promise, void>>; /** * Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and @@ -267,7 +267,7 @@ export interface CloudServices { beginRebuildAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesRebuildOptionalParams + options?: CloudServicesRebuildOptionalParams, ): Promise; /** * Deletes role instances in a cloud service. @@ -278,7 +278,7 @@ export interface CloudServices { beginDeleteInstances( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesDeleteInstancesOptionalParams + options?: CloudServicesDeleteInstancesOptionalParams, ): Promise, void>>; /** * Deletes role instances in a cloud service. @@ -289,6 +289,6 @@ export interface CloudServices { beginDeleteInstancesAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesDeleteInstancesOptionalParams + options?: CloudServicesDeleteInstancesOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServicesUpdateDomain.ts b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServicesUpdateDomain.ts index 88848d085687..c51e440b011b 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServicesUpdateDomain.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServicesUpdateDomain.ts @@ -13,7 +13,7 @@ import { CloudServicesUpdateDomainListUpdateDomainsOptionalParams, CloudServicesUpdateDomainWalkUpdateDomainOptionalParams, CloudServicesUpdateDomainGetUpdateDomainOptionalParams, - CloudServicesUpdateDomainGetUpdateDomainResponse + CloudServicesUpdateDomainGetUpdateDomainResponse, } from "../models"; /// @@ -28,7 +28,7 @@ export interface CloudServicesUpdateDomain { listUpdateDomains( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams + options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams, ): PagedAsyncIterableIterator; /** * Updates the role instances in the specified update domain. @@ -43,7 +43,7 @@ export interface CloudServicesUpdateDomain { resourceGroupName: string, cloudServiceName: string, updateDomain: number, - options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams + options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams, ): Promise, void>>; /** * Updates the role instances in the specified update domain. @@ -58,7 +58,7 @@ export interface CloudServicesUpdateDomain { resourceGroupName: string, cloudServiceName: string, updateDomain: number, - options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams + options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams, ): Promise; /** * Gets the specified update domain of a cloud service. Use nextLink property in the response to get @@ -74,6 +74,6 @@ export interface CloudServicesUpdateDomain { resourceGroupName: string, cloudServiceName: string, updateDomain: number, - options?: CloudServicesUpdateDomainGetUpdateDomainOptionalParams + options?: CloudServicesUpdateDomainGetUpdateDomainOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleries.ts b/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleries.ts index b39f7dd72a77..b028f5fa3667 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleries.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleries.ts @@ -8,7 +8,7 @@ import { CommunityGalleriesGetOptionalParams, - CommunityGalleriesGetResponse + CommunityGalleriesGetResponse, } from "../models"; /** Interface representing a CommunityGalleries. */ @@ -22,6 +22,6 @@ export interface CommunityGalleries { get( location: string, publicGalleryName: string, - options?: CommunityGalleriesGetOptionalParams + options?: CommunityGalleriesGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImageVersions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImageVersions.ts index 53851504708c..47e34114dec7 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImageVersions.ts @@ -11,7 +11,7 @@ import { CommunityGalleryImageVersion, CommunityGalleryImageVersionsListOptionalParams, CommunityGalleryImageVersionsGetOptionalParams, - CommunityGalleryImageVersionsGetResponse + CommunityGalleryImageVersionsGetResponse, } from "../models"; /// @@ -28,7 +28,7 @@ export interface CommunityGalleryImageVersions { location: string, publicGalleryName: string, galleryImageName: string, - options?: CommunityGalleryImageVersionsListOptionalParams + options?: CommunityGalleryImageVersionsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a community gallery image version. @@ -45,6 +45,6 @@ export interface CommunityGalleryImageVersions { publicGalleryName: string, galleryImageName: string, galleryImageVersionName: string, - options?: CommunityGalleryImageVersionsGetOptionalParams + options?: CommunityGalleryImageVersionsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImages.ts b/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImages.ts index 7d3f7811531e..ccfade2f5258 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImages.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImages.ts @@ -11,7 +11,7 @@ import { CommunityGalleryImage, CommunityGalleryImagesListOptionalParams, CommunityGalleryImagesGetOptionalParams, - CommunityGalleryImagesGetResponse + CommunityGalleryImagesGetResponse, } from "../models"; /// @@ -26,7 +26,7 @@ export interface CommunityGalleryImages { list( location: string, publicGalleryName: string, - options?: CommunityGalleryImagesListOptionalParams + options?: CommunityGalleryImagesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a community gallery image. @@ -39,6 +39,6 @@ export interface CommunityGalleryImages { location: string, publicGalleryName: string, galleryImageName: string, - options?: CommunityGalleryImagesGetOptionalParams + options?: CommunityGalleryImagesGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHostGroups.ts b/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHostGroups.ts index 8b50c847095a..d55fa7f4ab5b 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHostGroups.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHostGroups.ts @@ -18,7 +18,7 @@ import { DedicatedHostGroupsUpdateResponse, DedicatedHostGroupsDeleteOptionalParams, DedicatedHostGroupsGetOptionalParams, - DedicatedHostGroupsGetResponse + DedicatedHostGroupsGetResponse, } from "../models"; /// @@ -32,7 +32,7 @@ export interface DedicatedHostGroups { */ listByResourceGroup( resourceGroupName: string, - options?: DedicatedHostGroupsListByResourceGroupOptionalParams + options?: DedicatedHostGroupsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all of the dedicated host groups in the subscription. Use the nextLink property in the @@ -40,7 +40,7 @@ export interface DedicatedHostGroups { * @param options The options parameters. */ listBySubscription( - options?: DedicatedHostGroupsListBySubscriptionOptionalParams + options?: DedicatedHostGroupsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups @@ -54,7 +54,7 @@ export interface DedicatedHostGroups { resourceGroupName: string, hostGroupName: string, parameters: DedicatedHostGroup, - options?: DedicatedHostGroupsCreateOrUpdateOptionalParams + options?: DedicatedHostGroupsCreateOrUpdateOptionalParams, ): Promise; /** * Update an dedicated host group. @@ -67,7 +67,7 @@ export interface DedicatedHostGroups { resourceGroupName: string, hostGroupName: string, parameters: DedicatedHostGroupUpdate, - options?: DedicatedHostGroupsUpdateOptionalParams + options?: DedicatedHostGroupsUpdateOptionalParams, ): Promise; /** * Delete a dedicated host group. @@ -78,7 +78,7 @@ export interface DedicatedHostGroups { delete( resourceGroupName: string, hostGroupName: string, - options?: DedicatedHostGroupsDeleteOptionalParams + options?: DedicatedHostGroupsDeleteOptionalParams, ): Promise; /** * Retrieves information about a dedicated host group. @@ -89,6 +89,6 @@ export interface DedicatedHostGroups { get( resourceGroupName: string, hostGroupName: string, - options?: DedicatedHostGroupsGetOptionalParams + options?: DedicatedHostGroupsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHosts.ts b/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHosts.ts index 35cc345ee081..5d21aed8dcee 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHosts.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHosts.ts @@ -22,7 +22,7 @@ import { DedicatedHostsGetResponse, DedicatedHostsRestartOptionalParams, DedicatedHostsRedeployOptionalParams, - DedicatedHostsRedeployResponse + DedicatedHostsRedeployResponse, } from "../models"; /// @@ -38,7 +38,7 @@ export interface DedicatedHosts { listByHostGroup( resourceGroupName: string, hostGroupName: string, - options?: DedicatedHostsListByHostGroupOptionalParams + options?: DedicatedHostsListByHostGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: @@ -52,7 +52,7 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsListAvailableSizesOptionalParams + options?: DedicatedHostsListAvailableSizesOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a dedicated host . @@ -67,7 +67,7 @@ export interface DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHost, - options?: DedicatedHostsCreateOrUpdateOptionalParams + options?: DedicatedHostsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -87,7 +87,7 @@ export interface DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHost, - options?: DedicatedHostsCreateOrUpdateOptionalParams + options?: DedicatedHostsCreateOrUpdateOptionalParams, ): Promise; /** * Update a dedicated host . @@ -102,7 +102,7 @@ export interface DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHostUpdate, - options?: DedicatedHostsUpdateOptionalParams + options?: DedicatedHostsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -122,7 +122,7 @@ export interface DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHostUpdate, - options?: DedicatedHostsUpdateOptionalParams + options?: DedicatedHostsUpdateOptionalParams, ): Promise; /** * Delete a dedicated host. @@ -135,7 +135,7 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsDeleteOptionalParams + options?: DedicatedHostsDeleteOptionalParams, ): Promise, void>>; /** * Delete a dedicated host. @@ -148,7 +148,7 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsDeleteOptionalParams + options?: DedicatedHostsDeleteOptionalParams, ): Promise; /** * Retrieves information about a dedicated host. @@ -161,7 +161,7 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsGetOptionalParams + options?: DedicatedHostsGetOptionalParams, ): Promise; /** * Restart the dedicated host. The operation will complete successfully once the dedicated host has @@ -177,7 +177,7 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsRestartOptionalParams + options?: DedicatedHostsRestartOptionalParams, ): Promise, void>>; /** * Restart the dedicated host. The operation will complete successfully once the dedicated host has @@ -193,7 +193,7 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsRestartOptionalParams + options?: DedicatedHostsRestartOptionalParams, ): Promise; /** * Redeploy the dedicated host. The operation will complete successfully once the dedicated host has @@ -209,7 +209,7 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsRedeployOptionalParams + options?: DedicatedHostsRedeployOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -230,6 +230,6 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsRedeployOptionalParams + options?: DedicatedHostsRedeployOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/diskAccesses.ts b/sdk/compute/arm-compute/src/operationsInterfaces/diskAccesses.ts index b3f40067e821..2cc048115255 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/diskAccesses.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/diskAccesses.ts @@ -28,7 +28,7 @@ import { DiskAccessesUpdateAPrivateEndpointConnectionResponse, DiskAccessesGetAPrivateEndpointConnectionOptionalParams, DiskAccessesGetAPrivateEndpointConnectionResponse, - DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams + DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams, } from "../models"; /// @@ -41,14 +41,14 @@ export interface DiskAccesses { */ listByResourceGroup( resourceGroupName: string, - options?: DiskAccessesListByResourceGroupOptionalParams + options?: DiskAccessesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all the disk access resources under a subscription. * @param options The options parameters. */ list( - options?: DiskAccessesListOptionalParams + options?: DiskAccessesListOptionalParams, ): PagedAsyncIterableIterator; /** * List information about private endpoint connections under a disk access resource @@ -61,7 +61,7 @@ export interface DiskAccesses { listPrivateEndpointConnections( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams + options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a disk access resource @@ -76,7 +76,7 @@ export interface DiskAccesses { resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccess, - options?: DiskAccessesCreateOrUpdateOptionalParams + options?: DiskAccessesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -96,7 +96,7 @@ export interface DiskAccesses { resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccess, - options?: DiskAccessesCreateOrUpdateOptionalParams + options?: DiskAccessesCreateOrUpdateOptionalParams, ): Promise; /** * Updates (patches) a disk access resource. @@ -111,7 +111,7 @@ export interface DiskAccesses { resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccessUpdate, - options?: DiskAccessesUpdateOptionalParams + options?: DiskAccessesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -131,7 +131,7 @@ export interface DiskAccesses { resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccessUpdate, - options?: DiskAccessesUpdateOptionalParams + options?: DiskAccessesUpdateOptionalParams, ): Promise; /** * Gets information about a disk access resource. @@ -144,7 +144,7 @@ export interface DiskAccesses { get( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesGetOptionalParams + options?: DiskAccessesGetOptionalParams, ): Promise; /** * Deletes a disk access resource. @@ -157,7 +157,7 @@ export interface DiskAccesses { beginDelete( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesDeleteOptionalParams + options?: DiskAccessesDeleteOptionalParams, ): Promise, void>>; /** * Deletes a disk access resource. @@ -170,7 +170,7 @@ export interface DiskAccesses { beginDeleteAndWait( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesDeleteOptionalParams + options?: DiskAccessesDeleteOptionalParams, ): Promise; /** * Gets the private link resources possible under disk access resource @@ -183,7 +183,7 @@ export interface DiskAccesses { getPrivateLinkResources( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesGetPrivateLinkResourcesOptionalParams + options?: DiskAccessesGetPrivateLinkResourcesOptionalParams, ): Promise; /** * Approve or reject a private endpoint connection under disk access resource, this can't be used to @@ -202,7 +202,7 @@ export interface DiskAccesses { diskAccessName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, - options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -226,7 +226,7 @@ export interface DiskAccesses { diskAccessName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, - options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams, ): Promise; /** * Gets information about a private endpoint connection under a disk access resource. @@ -241,7 +241,7 @@ export interface DiskAccesses { resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, - options?: DiskAccessesGetAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesGetAPrivateEndpointConnectionOptionalParams, ): Promise; /** * Deletes a private endpoint connection under a disk access resource. @@ -256,7 +256,7 @@ export interface DiskAccesses { resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, - options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams, ): Promise, void>>; /** * Deletes a private endpoint connection under a disk access resource. @@ -271,6 +271,6 @@ export interface DiskAccesses { resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, - options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/diskEncryptionSets.ts b/sdk/compute/arm-compute/src/operationsInterfaces/diskEncryptionSets.ts index 081a6b26d905..c5989a93d0a4 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/diskEncryptionSets.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/diskEncryptionSets.ts @@ -20,7 +20,7 @@ import { DiskEncryptionSetsUpdateResponse, DiskEncryptionSetsGetOptionalParams, DiskEncryptionSetsGetResponse, - DiskEncryptionSetsDeleteOptionalParams + DiskEncryptionSetsDeleteOptionalParams, } from "../models"; /// @@ -33,14 +33,14 @@ export interface DiskEncryptionSets { */ listByResourceGroup( resourceGroupName: string, - options?: DiskEncryptionSetsListByResourceGroupOptionalParams + options?: DiskEncryptionSetsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all the disk encryption sets under a subscription. * @param options The options parameters. */ list( - options?: DiskEncryptionSetsListOptionalParams + options?: DiskEncryptionSetsListOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all resources that are encrypted with this disk encryption set. @@ -53,7 +53,7 @@ export interface DiskEncryptionSets { listAssociatedResources( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams + options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a disk encryption set @@ -69,7 +69,7 @@ export interface DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSet, - options?: DiskEncryptionSetsCreateOrUpdateOptionalParams + options?: DiskEncryptionSetsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -90,7 +90,7 @@ export interface DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSet, - options?: DiskEncryptionSetsCreateOrUpdateOptionalParams + options?: DiskEncryptionSetsCreateOrUpdateOptionalParams, ): Promise; /** * Updates (patches) a disk encryption set. @@ -106,7 +106,7 @@ export interface DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSetUpdate, - options?: DiskEncryptionSetsUpdateOptionalParams + options?: DiskEncryptionSetsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -127,7 +127,7 @@ export interface DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSetUpdate, - options?: DiskEncryptionSetsUpdateOptionalParams + options?: DiskEncryptionSetsUpdateOptionalParams, ): Promise; /** * Gets information about a disk encryption set. @@ -140,7 +140,7 @@ export interface DiskEncryptionSets { get( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsGetOptionalParams + options?: DiskEncryptionSetsGetOptionalParams, ): Promise; /** * Deletes a disk encryption set. @@ -153,7 +153,7 @@ export interface DiskEncryptionSets { beginDelete( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsDeleteOptionalParams + options?: DiskEncryptionSetsDeleteOptionalParams, ): Promise, void>>; /** * Deletes a disk encryption set. @@ -166,6 +166,6 @@ export interface DiskEncryptionSets { beginDeleteAndWait( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsDeleteOptionalParams + options?: DiskEncryptionSetsDeleteOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/diskRestorePointOperations.ts b/sdk/compute/arm-compute/src/operationsInterfaces/diskRestorePointOperations.ts index 2701737e062b..b83fbfa25bf3 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/diskRestorePointOperations.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/diskRestorePointOperations.ts @@ -16,7 +16,7 @@ import { GrantAccessData, DiskRestorePointGrantAccessOptionalParams, DiskRestorePointGrantAccessResponse, - DiskRestorePointRevokeAccessOptionalParams + DiskRestorePointRevokeAccessOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface DiskRestorePointOperations { resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, - options?: DiskRestorePointListByRestorePointOptionalParams + options?: DiskRestorePointListByRestorePointOptionalParams, ): PagedAsyncIterableIterator; /** * Get disk restorePoint resource @@ -50,7 +50,7 @@ export interface DiskRestorePointOperations { restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, - options?: DiskRestorePointGetOptionalParams + options?: DiskRestorePointGetOptionalParams, ): Promise; /** * Grants access to a diskRestorePoint. @@ -68,7 +68,7 @@ export interface DiskRestorePointOperations { vmRestorePointName: string, diskRestorePointName: string, grantAccessData: GrantAccessData, - options?: DiskRestorePointGrantAccessOptionalParams + options?: DiskRestorePointGrantAccessOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -91,7 +91,7 @@ export interface DiskRestorePointOperations { vmRestorePointName: string, diskRestorePointName: string, grantAccessData: GrantAccessData, - options?: DiskRestorePointGrantAccessOptionalParams + options?: DiskRestorePointGrantAccessOptionalParams, ): Promise; /** * Revokes access to a diskRestorePoint. @@ -107,7 +107,7 @@ export interface DiskRestorePointOperations { restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, - options?: DiskRestorePointRevokeAccessOptionalParams + options?: DiskRestorePointRevokeAccessOptionalParams, ): Promise, void>>; /** * Revokes access to a diskRestorePoint. @@ -123,6 +123,6 @@ export interface DiskRestorePointOperations { restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, - options?: DiskRestorePointRevokeAccessOptionalParams + options?: DiskRestorePointRevokeAccessOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/disks.ts b/sdk/compute/arm-compute/src/operationsInterfaces/disks.ts index 0dc932c7eb90..1f3a7cede6cd 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/disks.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/disks.ts @@ -23,7 +23,7 @@ import { GrantAccessData, DisksGrantAccessOptionalParams, DisksGrantAccessResponse, - DisksRevokeAccessOptionalParams + DisksRevokeAccessOptionalParams, } from "../models"; /// @@ -36,7 +36,7 @@ export interface Disks { */ listByResourceGroup( resourceGroupName: string, - options?: DisksListByResourceGroupOptionalParams + options?: DisksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all the disks under a subscription. @@ -56,7 +56,7 @@ export interface Disks { resourceGroupName: string, diskName: string, disk: Disk, - options?: DisksCreateOrUpdateOptionalParams + options?: DisksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -76,7 +76,7 @@ export interface Disks { resourceGroupName: string, diskName: string, disk: Disk, - options?: DisksCreateOrUpdateOptionalParams + options?: DisksCreateOrUpdateOptionalParams, ): Promise; /** * Updates (patches) a disk. @@ -91,7 +91,7 @@ export interface Disks { resourceGroupName: string, diskName: string, disk: DiskUpdate, - options?: DisksUpdateOptionalParams + options?: DisksUpdateOptionalParams, ): Promise< SimplePollerLike, DisksUpdateResponse> >; @@ -108,7 +108,7 @@ export interface Disks { resourceGroupName: string, diskName: string, disk: DiskUpdate, - options?: DisksUpdateOptionalParams + options?: DisksUpdateOptionalParams, ): Promise; /** * Gets information about a disk. @@ -121,7 +121,7 @@ export interface Disks { get( resourceGroupName: string, diskName: string, - options?: DisksGetOptionalParams + options?: DisksGetOptionalParams, ): Promise; /** * Deletes a disk. @@ -134,7 +134,7 @@ export interface Disks { beginDelete( resourceGroupName: string, diskName: string, - options?: DisksDeleteOptionalParams + options?: DisksDeleteOptionalParams, ): Promise, void>>; /** * Deletes a disk. @@ -147,7 +147,7 @@ export interface Disks { beginDeleteAndWait( resourceGroupName: string, diskName: string, - options?: DisksDeleteOptionalParams + options?: DisksDeleteOptionalParams, ): Promise; /** * Grants access to a disk. @@ -162,7 +162,7 @@ export interface Disks { resourceGroupName: string, diskName: string, grantAccessData: GrantAccessData, - options?: DisksGrantAccessOptionalParams + options?: DisksGrantAccessOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -182,7 +182,7 @@ export interface Disks { resourceGroupName: string, diskName: string, grantAccessData: GrantAccessData, - options?: DisksGrantAccessOptionalParams + options?: DisksGrantAccessOptionalParams, ): Promise; /** * Revokes access to a disk. @@ -195,7 +195,7 @@ export interface Disks { beginRevokeAccess( resourceGroupName: string, diskName: string, - options?: DisksRevokeAccessOptionalParams + options?: DisksRevokeAccessOptionalParams, ): Promise, void>>; /** * Revokes access to a disk. @@ -208,6 +208,6 @@ export interface Disks { beginRevokeAccessAndWait( resourceGroupName: string, diskName: string, - options?: DisksRevokeAccessOptionalParams + options?: DisksRevokeAccessOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleries.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleries.ts index b650db80e3d4..79aaabfd818b 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleries.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleries.ts @@ -19,7 +19,7 @@ import { GalleriesUpdateResponse, GalleriesGetOptionalParams, GalleriesGetResponse, - GalleriesDeleteOptionalParams + GalleriesDeleteOptionalParams, } from "../models"; /// @@ -32,14 +32,14 @@ export interface Galleries { */ listByResourceGroup( resourceGroupName: string, - options?: GalleriesListByResourceGroupOptionalParams + options?: GalleriesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * List galleries under a subscription. * @param options The options parameters. */ list( - options?: GalleriesListOptionalParams + options?: GalleriesListOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a Shared Image Gallery. @@ -53,7 +53,7 @@ export interface Galleries { resourceGroupName: string, galleryName: string, gallery: Gallery, - options?: GalleriesCreateOrUpdateOptionalParams + options?: GalleriesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -72,7 +72,7 @@ export interface Galleries { resourceGroupName: string, galleryName: string, gallery: Gallery, - options?: GalleriesCreateOrUpdateOptionalParams + options?: GalleriesCreateOrUpdateOptionalParams, ): Promise; /** * Update a Shared Image Gallery. @@ -86,7 +86,7 @@ export interface Galleries { resourceGroupName: string, galleryName: string, gallery: GalleryUpdate, - options?: GalleriesUpdateOptionalParams + options?: GalleriesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -105,7 +105,7 @@ export interface Galleries { resourceGroupName: string, galleryName: string, gallery: GalleryUpdate, - options?: GalleriesUpdateOptionalParams + options?: GalleriesUpdateOptionalParams, ): Promise; /** * Retrieves information about a Shared Image Gallery. @@ -116,7 +116,7 @@ export interface Galleries { get( resourceGroupName: string, galleryName: string, - options?: GalleriesGetOptionalParams + options?: GalleriesGetOptionalParams, ): Promise; /** * Delete a Shared Image Gallery. @@ -127,7 +127,7 @@ export interface Galleries { beginDelete( resourceGroupName: string, galleryName: string, - options?: GalleriesDeleteOptionalParams + options?: GalleriesDeleteOptionalParams, ): Promise, void>>; /** * Delete a Shared Image Gallery. @@ -138,6 +138,6 @@ export interface Galleries { beginDeleteAndWait( resourceGroupName: string, galleryName: string, - options?: GalleriesDeleteOptionalParams + options?: GalleriesDeleteOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplicationVersions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplicationVersions.ts index bf5b50c76d33..36bbca514f39 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplicationVersions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplicationVersions.ts @@ -18,7 +18,7 @@ import { GalleryApplicationVersionsUpdateResponse, GalleryApplicationVersionsGetOptionalParams, GalleryApplicationVersionsGetResponse, - GalleryApplicationVersionsDeleteOptionalParams + GalleryApplicationVersionsDeleteOptionalParams, } from "../models"; /// @@ -37,7 +37,7 @@ export interface GalleryApplicationVersions { resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams + options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a gallery Application Version. @@ -59,7 +59,7 @@ export interface GalleryApplicationVersions { galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersion, - options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams + options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -86,7 +86,7 @@ export interface GalleryApplicationVersions { galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersion, - options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams + options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams, ): Promise; /** * Update a gallery Application Version. @@ -108,7 +108,7 @@ export interface GalleryApplicationVersions { galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersionUpdate, - options?: GalleryApplicationVersionsUpdateOptionalParams + options?: GalleryApplicationVersionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -135,7 +135,7 @@ export interface GalleryApplicationVersions { galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersionUpdate, - options?: GalleryApplicationVersionsUpdateOptionalParams + options?: GalleryApplicationVersionsUpdateOptionalParams, ): Promise; /** * Retrieves information about a gallery Application Version. @@ -152,7 +152,7 @@ export interface GalleryApplicationVersions { galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, - options?: GalleryApplicationVersionsGetOptionalParams + options?: GalleryApplicationVersionsGetOptionalParams, ): Promise; /** * Delete a gallery Application Version. @@ -169,7 +169,7 @@ export interface GalleryApplicationVersions { galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, - options?: GalleryApplicationVersionsDeleteOptionalParams + options?: GalleryApplicationVersionsDeleteOptionalParams, ): Promise, void>>; /** * Delete a gallery Application Version. @@ -186,6 +186,6 @@ export interface GalleryApplicationVersions { galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, - options?: GalleryApplicationVersionsDeleteOptionalParams + options?: GalleryApplicationVersionsDeleteOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplications.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplications.ts index 14c4d53d8e90..8b8194c091b5 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplications.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplications.ts @@ -18,7 +18,7 @@ import { GalleryApplicationsUpdateResponse, GalleryApplicationsGetOptionalParams, GalleryApplicationsGetResponse, - GalleryApplicationsDeleteOptionalParams + GalleryApplicationsDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface GalleryApplications { listByGallery( resourceGroupName: string, galleryName: string, - options?: GalleryApplicationsListByGalleryOptionalParams + options?: GalleryApplicationsListByGalleryOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a gallery Application Definition. @@ -52,7 +52,7 @@ export interface GalleryApplications { galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplication, - options?: GalleryApplicationsCreateOrUpdateOptionalParams + options?: GalleryApplicationsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -75,7 +75,7 @@ export interface GalleryApplications { galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplication, - options?: GalleryApplicationsCreateOrUpdateOptionalParams + options?: GalleryApplicationsCreateOrUpdateOptionalParams, ): Promise; /** * Update a gallery Application Definition. @@ -93,7 +93,7 @@ export interface GalleryApplications { galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplicationUpdate, - options?: GalleryApplicationsUpdateOptionalParams + options?: GalleryApplicationsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -116,7 +116,7 @@ export interface GalleryApplications { galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplicationUpdate, - options?: GalleryApplicationsUpdateOptionalParams + options?: GalleryApplicationsUpdateOptionalParams, ): Promise; /** * Retrieves information about a gallery Application Definition. @@ -130,7 +130,7 @@ export interface GalleryApplications { resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationsGetOptionalParams + options?: GalleryApplicationsGetOptionalParams, ): Promise; /** * Delete a gallery Application. @@ -144,7 +144,7 @@ export interface GalleryApplications { resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationsDeleteOptionalParams + options?: GalleryApplicationsDeleteOptionalParams, ): Promise, void>>; /** * Delete a gallery Application. @@ -158,6 +158,6 @@ export interface GalleryApplications { resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationsDeleteOptionalParams + options?: GalleryApplicationsDeleteOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryImageVersions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryImageVersions.ts index 4b0460bc2156..725506b7f428 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleryImageVersions.ts @@ -18,7 +18,7 @@ import { GalleryImageVersionsUpdateResponse, GalleryImageVersionsGetOptionalParams, GalleryImageVersionsGetResponse, - GalleryImageVersionsDeleteOptionalParams + GalleryImageVersionsDeleteOptionalParams, } from "../models"; /// @@ -36,7 +36,7 @@ export interface GalleryImageVersions { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImageVersionsListByGalleryImageOptionalParams + options?: GalleryImageVersionsListByGalleryImageOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a gallery image version. @@ -57,7 +57,7 @@ export interface GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersion, - options?: GalleryImageVersionsCreateOrUpdateOptionalParams + options?: GalleryImageVersionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -83,7 +83,7 @@ export interface GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersion, - options?: GalleryImageVersionsCreateOrUpdateOptionalParams + options?: GalleryImageVersionsCreateOrUpdateOptionalParams, ): Promise; /** * Update a gallery image version. @@ -103,7 +103,7 @@ export interface GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, - options?: GalleryImageVersionsUpdateOptionalParams + options?: GalleryImageVersionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -128,7 +128,7 @@ export interface GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, - options?: GalleryImageVersionsUpdateOptionalParams + options?: GalleryImageVersionsUpdateOptionalParams, ): Promise; /** * Retrieves information about a gallery image version. @@ -143,7 +143,7 @@ export interface GalleryImageVersions { galleryName: string, galleryImageName: string, galleryImageVersionName: string, - options?: GalleryImageVersionsGetOptionalParams + options?: GalleryImageVersionsGetOptionalParams, ): Promise; /** * Delete a gallery image version. @@ -158,7 +158,7 @@ export interface GalleryImageVersions { galleryName: string, galleryImageName: string, galleryImageVersionName: string, - options?: GalleryImageVersionsDeleteOptionalParams + options?: GalleryImageVersionsDeleteOptionalParams, ): Promise, void>>; /** * Delete a gallery image version. @@ -173,6 +173,6 @@ export interface GalleryImageVersions { galleryName: string, galleryImageName: string, galleryImageVersionName: string, - options?: GalleryImageVersionsDeleteOptionalParams + options?: GalleryImageVersionsDeleteOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryImages.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryImages.ts index 1e602f987fee..17c5e4094458 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleryImages.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleryImages.ts @@ -18,7 +18,7 @@ import { GalleryImagesUpdateResponse, GalleryImagesGetOptionalParams, GalleryImagesGetResponse, - GalleryImagesDeleteOptionalParams + GalleryImagesDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface GalleryImages { listByGallery( resourceGroupName: string, galleryName: string, - options?: GalleryImagesListByGalleryOptionalParams + options?: GalleryImagesListByGalleryOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a gallery image definition. @@ -52,7 +52,7 @@ export interface GalleryImages { galleryName: string, galleryImageName: string, galleryImage: GalleryImage, - options?: GalleryImagesCreateOrUpdateOptionalParams + options?: GalleryImagesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -75,7 +75,7 @@ export interface GalleryImages { galleryName: string, galleryImageName: string, galleryImage: GalleryImage, - options?: GalleryImagesCreateOrUpdateOptionalParams + options?: GalleryImagesCreateOrUpdateOptionalParams, ): Promise; /** * Update a gallery image definition. @@ -93,7 +93,7 @@ export interface GalleryImages { galleryName: string, galleryImageName: string, galleryImage: GalleryImageUpdate, - options?: GalleryImagesUpdateOptionalParams + options?: GalleryImagesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -116,7 +116,7 @@ export interface GalleryImages { galleryName: string, galleryImageName: string, galleryImage: GalleryImageUpdate, - options?: GalleryImagesUpdateOptionalParams + options?: GalleryImagesUpdateOptionalParams, ): Promise; /** * Retrieves information about a gallery image definition. @@ -130,7 +130,7 @@ export interface GalleryImages { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImagesGetOptionalParams + options?: GalleryImagesGetOptionalParams, ): Promise; /** * Delete a gallery image. @@ -144,7 +144,7 @@ export interface GalleryImages { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImagesDeleteOptionalParams + options?: GalleryImagesDeleteOptionalParams, ): Promise, void>>; /** * Delete a gallery image. @@ -158,6 +158,6 @@ export interface GalleryImages { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImagesDeleteOptionalParams + options?: GalleryImagesDeleteOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/gallerySharingProfile.ts b/sdk/compute/arm-compute/src/operationsInterfaces/gallerySharingProfile.ts index d3de32b681fc..892c31fc918c 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/gallerySharingProfile.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/gallerySharingProfile.ts @@ -10,7 +10,7 @@ import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { SharingUpdate, GallerySharingProfileUpdateOptionalParams, - GallerySharingProfileUpdateResponse + GallerySharingProfileUpdateResponse, } from "../models"; /** Interface representing a GallerySharingProfile. */ @@ -26,7 +26,7 @@ export interface GallerySharingProfile { resourceGroupName: string, galleryName: string, sharingUpdate: SharingUpdate, - options?: GallerySharingProfileUpdateOptionalParams + options?: GallerySharingProfileUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -44,6 +44,6 @@ export interface GallerySharingProfile { resourceGroupName: string, galleryName: string, sharingUpdate: SharingUpdate, - options?: GallerySharingProfileUpdateOptionalParams + options?: GallerySharingProfileUpdateOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/images.ts b/sdk/compute/arm-compute/src/operationsInterfaces/images.ts index 97bb85acd4ee..31a3e84783db 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/images.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/images.ts @@ -19,7 +19,7 @@ import { ImagesUpdateResponse, ImagesDeleteOptionalParams, ImagesGetOptionalParams, - ImagesGetResponse + ImagesGetResponse, } from "../models"; /// @@ -33,7 +33,7 @@ export interface Images { */ listByResourceGroup( resourceGroupName: string, - options?: ImagesListByResourceGroupOptionalParams + options?: ImagesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the list of Images in the subscription. Use nextLink property in the response to get the next @@ -52,7 +52,7 @@ export interface Images { resourceGroupName: string, imageName: string, parameters: Image, - options?: ImagesCreateOrUpdateOptionalParams + options?: ImagesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -70,7 +70,7 @@ export interface Images { resourceGroupName: string, imageName: string, parameters: Image, - options?: ImagesCreateOrUpdateOptionalParams + options?: ImagesCreateOrUpdateOptionalParams, ): Promise; /** * Update an image. @@ -83,7 +83,7 @@ export interface Images { resourceGroupName: string, imageName: string, parameters: ImageUpdate, - options?: ImagesUpdateOptionalParams + options?: ImagesUpdateOptionalParams, ): Promise< SimplePollerLike, ImagesUpdateResponse> >; @@ -98,7 +98,7 @@ export interface Images { resourceGroupName: string, imageName: string, parameters: ImageUpdate, - options?: ImagesUpdateOptionalParams + options?: ImagesUpdateOptionalParams, ): Promise; /** * Deletes an Image. @@ -109,7 +109,7 @@ export interface Images { beginDelete( resourceGroupName: string, imageName: string, - options?: ImagesDeleteOptionalParams + options?: ImagesDeleteOptionalParams, ): Promise, void>>; /** * Deletes an Image. @@ -120,7 +120,7 @@ export interface Images { beginDeleteAndWait( resourceGroupName: string, imageName: string, - options?: ImagesDeleteOptionalParams + options?: ImagesDeleteOptionalParams, ): Promise; /** * Gets an image. @@ -131,6 +131,6 @@ export interface Images { get( resourceGroupName: string, imageName: string, - options?: ImagesGetOptionalParams + options?: ImagesGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/logAnalytics.ts b/sdk/compute/arm-compute/src/operationsInterfaces/logAnalytics.ts index d6ffc9ae5ba0..12cb2b27c95d 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/logAnalytics.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/logAnalytics.ts @@ -13,7 +13,7 @@ import { LogAnalyticsExportRequestRateByIntervalResponse, ThrottledRequestsInput, LogAnalyticsExportThrottledRequestsOptionalParams, - LogAnalyticsExportThrottledRequestsResponse + LogAnalyticsExportThrottledRequestsResponse, } from "../models"; /** Interface representing a LogAnalytics. */ @@ -28,7 +28,7 @@ export interface LogAnalytics { beginExportRequestRateByInterval( location: string, parameters: RequestRateByIntervalInput, - options?: LogAnalyticsExportRequestRateByIntervalOptionalParams + options?: LogAnalyticsExportRequestRateByIntervalOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -45,7 +45,7 @@ export interface LogAnalytics { beginExportRequestRateByIntervalAndWait( location: string, parameters: RequestRateByIntervalInput, - options?: LogAnalyticsExportRequestRateByIntervalOptionalParams + options?: LogAnalyticsExportRequestRateByIntervalOptionalParams, ): Promise; /** * Export logs that show total throttled Api requests for this subscription in the given time window. @@ -56,7 +56,7 @@ export interface LogAnalytics { beginExportThrottledRequests( location: string, parameters: ThrottledRequestsInput, - options?: LogAnalyticsExportThrottledRequestsOptionalParams + options?: LogAnalyticsExportThrottledRequestsOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -72,6 +72,6 @@ export interface LogAnalytics { beginExportThrottledRequestsAndWait( location: string, parameters: ThrottledRequestsInput, - options?: LogAnalyticsExportThrottledRequestsOptionalParams + options?: LogAnalyticsExportThrottledRequestsOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/operations.ts b/sdk/compute/arm-compute/src/operationsInterfaces/operations.ts index 5addfa05a750..37e75c5f9c39 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/operations.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/operations.ts @@ -17,6 +17,6 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/proximityPlacementGroups.ts b/sdk/compute/arm-compute/src/operationsInterfaces/proximityPlacementGroups.ts index dfdc7ed4bcda..1dde51a70235 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/proximityPlacementGroups.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/proximityPlacementGroups.ts @@ -18,7 +18,7 @@ import { ProximityPlacementGroupsUpdateResponse, ProximityPlacementGroupsDeleteOptionalParams, ProximityPlacementGroupsGetOptionalParams, - ProximityPlacementGroupsGetResponse + ProximityPlacementGroupsGetResponse, } from "../models"; /// @@ -29,7 +29,7 @@ export interface ProximityPlacementGroups { * @param options The options parameters. */ listBySubscription( - options?: ProximityPlacementGroupsListBySubscriptionOptionalParams + options?: ProximityPlacementGroupsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all proximity placement groups in a resource group. @@ -38,7 +38,7 @@ export interface ProximityPlacementGroups { */ listByResourceGroup( resourceGroupName: string, - options?: ProximityPlacementGroupsListByResourceGroupOptionalParams + options?: ProximityPlacementGroupsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a proximity placement group. @@ -51,7 +51,7 @@ export interface ProximityPlacementGroups { resourceGroupName: string, proximityPlacementGroupName: string, parameters: ProximityPlacementGroup, - options?: ProximityPlacementGroupsCreateOrUpdateOptionalParams + options?: ProximityPlacementGroupsCreateOrUpdateOptionalParams, ): Promise; /** * Update a proximity placement group. @@ -64,7 +64,7 @@ export interface ProximityPlacementGroups { resourceGroupName: string, proximityPlacementGroupName: string, parameters: ProximityPlacementGroupUpdate, - options?: ProximityPlacementGroupsUpdateOptionalParams + options?: ProximityPlacementGroupsUpdateOptionalParams, ): Promise; /** * Delete a proximity placement group. @@ -75,7 +75,7 @@ export interface ProximityPlacementGroups { delete( resourceGroupName: string, proximityPlacementGroupName: string, - options?: ProximityPlacementGroupsDeleteOptionalParams + options?: ProximityPlacementGroupsDeleteOptionalParams, ): Promise; /** * Retrieves information about a proximity placement group . @@ -86,6 +86,6 @@ export interface ProximityPlacementGroups { get( resourceGroupName: string, proximityPlacementGroupName: string, - options?: ProximityPlacementGroupsGetOptionalParams + options?: ProximityPlacementGroupsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/resourceSkus.ts b/sdk/compute/arm-compute/src/operationsInterfaces/resourceSkus.ts index 3fa959f26775..2dbeae45dede 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/resourceSkus.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/resourceSkus.ts @@ -17,6 +17,6 @@ export interface ResourceSkus { * @param options The options parameters. */ list( - options?: ResourceSkusListOptionalParams + options?: ResourceSkusListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/restorePointCollections.ts b/sdk/compute/arm-compute/src/operationsInterfaces/restorePointCollections.ts index 86bc3d4aa55a..d51d8e973300 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/restorePointCollections.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/restorePointCollections.ts @@ -19,7 +19,7 @@ import { RestorePointCollectionsUpdateResponse, RestorePointCollectionsDeleteOptionalParams, RestorePointCollectionsGetOptionalParams, - RestorePointCollectionsGetResponse + RestorePointCollectionsGetResponse, } from "../models"; /// @@ -32,7 +32,7 @@ export interface RestorePointCollections { */ list( resourceGroupName: string, - options?: RestorePointCollectionsListOptionalParams + options?: RestorePointCollectionsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the list of restore point collections in the subscription. Use nextLink property in the @@ -41,7 +41,7 @@ export interface RestorePointCollections { * @param options The options parameters. */ listAll( - options?: RestorePointCollectionsListAllOptionalParams + options?: RestorePointCollectionsListAllOptionalParams, ): PagedAsyncIterableIterator; /** * The operation to create or update the restore point collection. Please refer to @@ -56,7 +56,7 @@ export interface RestorePointCollections { resourceGroupName: string, restorePointCollectionName: string, parameters: RestorePointCollection, - options?: RestorePointCollectionsCreateOrUpdateOptionalParams + options?: RestorePointCollectionsCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update the restore point collection. @@ -69,7 +69,7 @@ export interface RestorePointCollections { resourceGroupName: string, restorePointCollectionName: string, parameters: RestorePointCollectionUpdate, - options?: RestorePointCollectionsUpdateOptionalParams + options?: RestorePointCollectionsUpdateOptionalParams, ): Promise; /** * The operation to delete the restore point collection. This operation will also delete all the @@ -81,7 +81,7 @@ export interface RestorePointCollections { beginDelete( resourceGroupName: string, restorePointCollectionName: string, - options?: RestorePointCollectionsDeleteOptionalParams + options?: RestorePointCollectionsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete the restore point collection. This operation will also delete all the @@ -93,7 +93,7 @@ export interface RestorePointCollections { beginDeleteAndWait( resourceGroupName: string, restorePointCollectionName: string, - options?: RestorePointCollectionsDeleteOptionalParams + options?: RestorePointCollectionsDeleteOptionalParams, ): Promise; /** * The operation to get the restore point collection. @@ -104,6 +104,6 @@ export interface RestorePointCollections { get( resourceGroupName: string, restorePointCollectionName: string, - options?: RestorePointCollectionsGetOptionalParams + options?: RestorePointCollectionsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/restorePoints.ts b/sdk/compute/arm-compute/src/operationsInterfaces/restorePoints.ts index 4c46e1a8a161..dfe5a207b245 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/restorePoints.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/restorePoints.ts @@ -13,7 +13,7 @@ import { RestorePointsCreateResponse, RestorePointsDeleteOptionalParams, RestorePointsGetOptionalParams, - RestorePointsGetResponse + RestorePointsGetResponse, } from "../models"; /** Interface representing a RestorePoints. */ @@ -32,7 +32,7 @@ export interface RestorePoints { restorePointCollectionName: string, restorePointName: string, parameters: RestorePoint, - options?: RestorePointsCreateOptionalParams + options?: RestorePointsCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -53,7 +53,7 @@ export interface RestorePoints { restorePointCollectionName: string, restorePointName: string, parameters: RestorePoint, - options?: RestorePointsCreateOptionalParams + options?: RestorePointsCreateOptionalParams, ): Promise; /** * The operation to delete the restore point. @@ -66,7 +66,7 @@ export interface RestorePoints { resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, - options?: RestorePointsDeleteOptionalParams + options?: RestorePointsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete the restore point. @@ -79,7 +79,7 @@ export interface RestorePoints { resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, - options?: RestorePointsDeleteOptionalParams + options?: RestorePointsDeleteOptionalParams, ): Promise; /** * The operation to get the restore point. @@ -92,6 +92,6 @@ export interface RestorePoints { resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, - options?: RestorePointsGetOptionalParams + options?: RestorePointsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleries.ts b/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleries.ts index 1499cf9dab8b..f8030198e3bf 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleries.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleries.ts @@ -11,7 +11,7 @@ import { SharedGallery, SharedGalleriesListOptionalParams, SharedGalleriesGetOptionalParams, - SharedGalleriesGetResponse + SharedGalleriesGetResponse, } from "../models"; /// @@ -24,7 +24,7 @@ export interface SharedGalleries { */ list( location: string, - options?: SharedGalleriesListOptionalParams + options?: SharedGalleriesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a shared gallery by subscription id or tenant id. @@ -35,6 +35,6 @@ export interface SharedGalleries { get( location: string, galleryUniqueName: string, - options?: SharedGalleriesGetOptionalParams + options?: SharedGalleriesGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleryImageVersions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleryImageVersions.ts index 3b6cde331c6f..89b4730605ae 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleryImageVersions.ts @@ -11,7 +11,7 @@ import { SharedGalleryImageVersion, SharedGalleryImageVersionsListOptionalParams, SharedGalleryImageVersionsGetOptionalParams, - SharedGalleryImageVersionsGetResponse + SharedGalleryImageVersionsGetResponse, } from "../models"; /// @@ -29,7 +29,7 @@ export interface SharedGalleryImageVersions { location: string, galleryUniqueName: string, galleryImageName: string, - options?: SharedGalleryImageVersionsListOptionalParams + options?: SharedGalleryImageVersionsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a shared gallery image version by subscription id or tenant id. @@ -47,6 +47,6 @@ export interface SharedGalleryImageVersions { galleryUniqueName: string, galleryImageName: string, galleryImageVersionName: string, - options?: SharedGalleryImageVersionsGetOptionalParams + options?: SharedGalleryImageVersionsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleryImages.ts b/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleryImages.ts index db7ccb652d1b..6d9069498a71 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleryImages.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleryImages.ts @@ -11,7 +11,7 @@ import { SharedGalleryImage, SharedGalleryImagesListOptionalParams, SharedGalleryImagesGetOptionalParams, - SharedGalleryImagesGetResponse + SharedGalleryImagesGetResponse, } from "../models"; /// @@ -26,7 +26,7 @@ export interface SharedGalleryImages { list( location: string, galleryUniqueName: string, - options?: SharedGalleryImagesListOptionalParams + options?: SharedGalleryImagesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a shared gallery image by subscription id or tenant id. @@ -40,6 +40,6 @@ export interface SharedGalleryImages { location: string, galleryUniqueName: string, galleryImageName: string, - options?: SharedGalleryImagesGetOptionalParams + options?: SharedGalleryImagesGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/snapshots.ts b/sdk/compute/arm-compute/src/operationsInterfaces/snapshots.ts index bcc82b28779e..62dfae4221d3 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/snapshots.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/snapshots.ts @@ -23,7 +23,7 @@ import { GrantAccessData, SnapshotsGrantAccessOptionalParams, SnapshotsGrantAccessResponse, - SnapshotsRevokeAccessOptionalParams + SnapshotsRevokeAccessOptionalParams, } from "../models"; /// @@ -36,14 +36,14 @@ export interface Snapshots { */ listByResourceGroup( resourceGroupName: string, - options?: SnapshotsListByResourceGroupOptionalParams + options?: SnapshotsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists snapshots under a subscription. * @param options The options parameters. */ list( - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a snapshot. @@ -58,7 +58,7 @@ export interface Snapshots { resourceGroupName: string, snapshotName: string, snapshot: Snapshot, - options?: SnapshotsCreateOrUpdateOptionalParams + options?: SnapshotsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -78,7 +78,7 @@ export interface Snapshots { resourceGroupName: string, snapshotName: string, snapshot: Snapshot, - options?: SnapshotsCreateOrUpdateOptionalParams + options?: SnapshotsCreateOrUpdateOptionalParams, ): Promise; /** * Updates (patches) a snapshot. @@ -93,7 +93,7 @@ export interface Snapshots { resourceGroupName: string, snapshotName: string, snapshot: SnapshotUpdate, - options?: SnapshotsUpdateOptionalParams + options?: SnapshotsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -113,7 +113,7 @@ export interface Snapshots { resourceGroupName: string, snapshotName: string, snapshot: SnapshotUpdate, - options?: SnapshotsUpdateOptionalParams + options?: SnapshotsUpdateOptionalParams, ): Promise; /** * Gets information about a snapshot. @@ -126,7 +126,7 @@ export interface Snapshots { get( resourceGroupName: string, snapshotName: string, - options?: SnapshotsGetOptionalParams + options?: SnapshotsGetOptionalParams, ): Promise; /** * Deletes a snapshot. @@ -139,7 +139,7 @@ export interface Snapshots { beginDelete( resourceGroupName: string, snapshotName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise, void>>; /** * Deletes a snapshot. @@ -152,7 +152,7 @@ export interface Snapshots { beginDeleteAndWait( resourceGroupName: string, snapshotName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise; /** * Grants access to a snapshot. @@ -167,7 +167,7 @@ export interface Snapshots { resourceGroupName: string, snapshotName: string, grantAccessData: GrantAccessData, - options?: SnapshotsGrantAccessOptionalParams + options?: SnapshotsGrantAccessOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -187,7 +187,7 @@ export interface Snapshots { resourceGroupName: string, snapshotName: string, grantAccessData: GrantAccessData, - options?: SnapshotsGrantAccessOptionalParams + options?: SnapshotsGrantAccessOptionalParams, ): Promise; /** * Revokes access to a snapshot. @@ -200,7 +200,7 @@ export interface Snapshots { beginRevokeAccess( resourceGroupName: string, snapshotName: string, - options?: SnapshotsRevokeAccessOptionalParams + options?: SnapshotsRevokeAccessOptionalParams, ): Promise, void>>; /** * Revokes access to a snapshot. @@ -213,6 +213,6 @@ export interface Snapshots { beginRevokeAccessAndWait( resourceGroupName: string, snapshotName: string, - options?: SnapshotsRevokeAccessOptionalParams + options?: SnapshotsRevokeAccessOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/sshPublicKeys.ts b/sdk/compute/arm-compute/src/operationsInterfaces/sshPublicKeys.ts index 323d9b4277f2..f874a4c95435 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/sshPublicKeys.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/sshPublicKeys.ts @@ -20,7 +20,7 @@ import { SshPublicKeysGetOptionalParams, SshPublicKeysGetResponse, SshPublicKeysGenerateKeyPairOptionalParams, - SshPublicKeysGenerateKeyPairResponse + SshPublicKeysGenerateKeyPairResponse, } from "../models"; /// @@ -32,7 +32,7 @@ export interface SshPublicKeys { * @param options The options parameters. */ listBySubscription( - options?: SshPublicKeysListBySubscriptionOptionalParams + options?: SshPublicKeysListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the @@ -42,7 +42,7 @@ export interface SshPublicKeys { */ listByResourceGroup( resourceGroupName: string, - options?: SshPublicKeysListByResourceGroupOptionalParams + options?: SshPublicKeysListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Creates a new SSH public key resource. @@ -55,7 +55,7 @@ export interface SshPublicKeys { resourceGroupName: string, sshPublicKeyName: string, parameters: SshPublicKeyResource, - options?: SshPublicKeysCreateOptionalParams + options?: SshPublicKeysCreateOptionalParams, ): Promise; /** * Updates a new SSH public key resource. @@ -68,7 +68,7 @@ export interface SshPublicKeys { resourceGroupName: string, sshPublicKeyName: string, parameters: SshPublicKeyUpdateResource, - options?: SshPublicKeysUpdateOptionalParams + options?: SshPublicKeysUpdateOptionalParams, ): Promise; /** * Delete an SSH public key. @@ -79,7 +79,7 @@ export interface SshPublicKeys { delete( resourceGroupName: string, sshPublicKeyName: string, - options?: SshPublicKeysDeleteOptionalParams + options?: SshPublicKeysDeleteOptionalParams, ): Promise; /** * Retrieves information about an SSH public key. @@ -90,7 +90,7 @@ export interface SshPublicKeys { get( resourceGroupName: string, sshPublicKeyName: string, - options?: SshPublicKeysGetOptionalParams + options?: SshPublicKeysGetOptionalParams, ): Promise; /** * Generates and returns a public/private key pair and populates the SSH public key resource with the @@ -103,6 +103,6 @@ export interface SshPublicKeys { generateKeyPair( resourceGroupName: string, sshPublicKeyName: string, - options?: SshPublicKeysGenerateKeyPairOptionalParams + options?: SshPublicKeysGenerateKeyPairOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/usageOperations.ts b/sdk/compute/arm-compute/src/operationsInterfaces/usageOperations.ts index f6a753fdfba7..67a176bfae37 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/usageOperations.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/usageOperations.ts @@ -20,6 +20,6 @@ export interface UsageOperations { */ list( location: string, - options?: UsageListOptionalParams + options?: UsageListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensionImages.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensionImages.ts index 34eeb14c3eeb..2e293a3bf08f 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensionImages.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensionImages.ts @@ -12,7 +12,7 @@ import { VirtualMachineExtensionImagesListTypesOptionalParams, VirtualMachineExtensionImagesListTypesResponse, VirtualMachineExtensionImagesListVersionsOptionalParams, - VirtualMachineExtensionImagesListVersionsResponse + VirtualMachineExtensionImagesListVersionsResponse, } from "../models"; /** Interface representing a VirtualMachineExtensionImages. */ @@ -30,7 +30,7 @@ export interface VirtualMachineExtensionImages { publisherName: string, typeParam: string, version: string, - options?: VirtualMachineExtensionImagesGetOptionalParams + options?: VirtualMachineExtensionImagesGetOptionalParams, ): Promise; /** * Gets a list of virtual machine extension image types. @@ -41,7 +41,7 @@ export interface VirtualMachineExtensionImages { listTypes( location: string, publisherName: string, - options?: VirtualMachineExtensionImagesListTypesOptionalParams + options?: VirtualMachineExtensionImagesListTypesOptionalParams, ): Promise; /** * Gets a list of virtual machine extension image versions. @@ -54,6 +54,6 @@ export interface VirtualMachineExtensionImages { location: string, publisherName: string, typeParam: string, - options?: VirtualMachineExtensionImagesListVersionsOptionalParams + options?: VirtualMachineExtensionImagesListVersionsOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensions.ts index 95731c5b27da..f646e6f09861 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensions.ts @@ -18,7 +18,7 @@ import { VirtualMachineExtensionsGetOptionalParams, VirtualMachineExtensionsGetResponse, VirtualMachineExtensionsListOptionalParams, - VirtualMachineExtensionsListResponse + VirtualMachineExtensionsListResponse, } from "../models"; /** Interface representing a VirtualMachineExtensions. */ @@ -36,7 +36,7 @@ export interface VirtualMachineExtensions { vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtension, - options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -56,7 +56,7 @@ export interface VirtualMachineExtensions { vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtension, - options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update the extension. @@ -71,7 +71,7 @@ export interface VirtualMachineExtensions { vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtensionUpdate, - options?: VirtualMachineExtensionsUpdateOptionalParams + options?: VirtualMachineExtensionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -91,7 +91,7 @@ export interface VirtualMachineExtensions { vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtensionUpdate, - options?: VirtualMachineExtensionsUpdateOptionalParams + options?: VirtualMachineExtensionsUpdateOptionalParams, ): Promise; /** * The operation to delete the extension. @@ -104,7 +104,7 @@ export interface VirtualMachineExtensions { resourceGroupName: string, vmName: string, vmExtensionName: string, - options?: VirtualMachineExtensionsDeleteOptionalParams + options?: VirtualMachineExtensionsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete the extension. @@ -117,7 +117,7 @@ export interface VirtualMachineExtensions { resourceGroupName: string, vmName: string, vmExtensionName: string, - options?: VirtualMachineExtensionsDeleteOptionalParams + options?: VirtualMachineExtensionsDeleteOptionalParams, ): Promise; /** * The operation to get the extension. @@ -130,7 +130,7 @@ export interface VirtualMachineExtensions { resourceGroupName: string, vmName: string, vmExtensionName: string, - options?: VirtualMachineExtensionsGetOptionalParams + options?: VirtualMachineExtensionsGetOptionalParams, ): Promise; /** * The operation to get all extensions of a Virtual Machine. @@ -141,6 +141,6 @@ export interface VirtualMachineExtensions { list( resourceGroupName: string, vmName: string, - options?: VirtualMachineExtensionsListOptionalParams + options?: VirtualMachineExtensionsListOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImages.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImages.ts index 698ca4c0b9a5..7a2de728e770 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImages.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImages.ts @@ -18,7 +18,7 @@ import { VirtualMachineImagesListSkusOptionalParams, VirtualMachineImagesListSkusResponse, VirtualMachineImagesListByEdgeZoneOptionalParams, - VirtualMachineImagesListByEdgeZoneResponse + VirtualMachineImagesListByEdgeZoneResponse, } from "../models"; /** Interface representing a VirtualMachineImages. */ @@ -38,7 +38,7 @@ export interface VirtualMachineImages { offer: string, skus: string, version: string, - options?: VirtualMachineImagesGetOptionalParams + options?: VirtualMachineImagesGetOptionalParams, ): Promise; /** * Gets a list of all virtual machine image versions for the specified location, publisher, offer, and @@ -54,7 +54,7 @@ export interface VirtualMachineImages { publisherName: string, offer: string, skus: string, - options?: VirtualMachineImagesListOptionalParams + options?: VirtualMachineImagesListOptionalParams, ): Promise; /** * Gets a list of virtual machine image offers for the specified location and publisher. @@ -65,7 +65,7 @@ export interface VirtualMachineImages { listOffers( location: string, publisherName: string, - options?: VirtualMachineImagesListOffersOptionalParams + options?: VirtualMachineImagesListOffersOptionalParams, ): Promise; /** * Gets a list of virtual machine image publishers for the specified Azure location. @@ -74,7 +74,7 @@ export interface VirtualMachineImages { */ listPublishers( location: string, - options?: VirtualMachineImagesListPublishersOptionalParams + options?: VirtualMachineImagesListPublishersOptionalParams, ): Promise; /** * Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. @@ -87,7 +87,7 @@ export interface VirtualMachineImages { location: string, publisherName: string, offer: string, - options?: VirtualMachineImagesListSkusOptionalParams + options?: VirtualMachineImagesListSkusOptionalParams, ): Promise; /** * Gets a list of all virtual machine image versions for the specified edge zone @@ -98,6 +98,6 @@ export interface VirtualMachineImages { listByEdgeZone( location: string, edgeZone: string, - options?: VirtualMachineImagesListByEdgeZoneOptionalParams + options?: VirtualMachineImagesListByEdgeZoneOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImagesEdgeZone.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImagesEdgeZone.ts index a2b851308443..0c0e5cf1d20c 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImagesEdgeZone.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImagesEdgeZone.ts @@ -16,7 +16,7 @@ import { VirtualMachineImagesEdgeZoneListPublishersOptionalParams, VirtualMachineImagesEdgeZoneListPublishersResponse, VirtualMachineImagesEdgeZoneListSkusOptionalParams, - VirtualMachineImagesEdgeZoneListSkusResponse + VirtualMachineImagesEdgeZoneListSkusResponse, } from "../models"; /** Interface representing a VirtualMachineImagesEdgeZone. */ @@ -38,7 +38,7 @@ export interface VirtualMachineImagesEdgeZone { offer: string, skus: string, version: string, - options?: VirtualMachineImagesEdgeZoneGetOptionalParams + options?: VirtualMachineImagesEdgeZoneGetOptionalParams, ): Promise; /** * Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, @@ -56,7 +56,7 @@ export interface VirtualMachineImagesEdgeZone { publisherName: string, offer: string, skus: string, - options?: VirtualMachineImagesEdgeZoneListOptionalParams + options?: VirtualMachineImagesEdgeZoneListOptionalParams, ): Promise; /** * Gets a list of virtual machine image offers for the specified location, edge zone and publisher. @@ -69,7 +69,7 @@ export interface VirtualMachineImagesEdgeZone { location: string, edgeZone: string, publisherName: string, - options?: VirtualMachineImagesEdgeZoneListOffersOptionalParams + options?: VirtualMachineImagesEdgeZoneListOffersOptionalParams, ): Promise; /** * Gets a list of virtual machine image publishers for the specified Azure location and edge zone. @@ -80,7 +80,7 @@ export interface VirtualMachineImagesEdgeZone { listPublishers( location: string, edgeZone: string, - options?: VirtualMachineImagesEdgeZoneListPublishersOptionalParams + options?: VirtualMachineImagesEdgeZoneListPublishersOptionalParams, ): Promise; /** * Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and @@ -96,6 +96,6 @@ export interface VirtualMachineImagesEdgeZone { edgeZone: string, publisherName: string, offer: string, - options?: VirtualMachineImagesEdgeZoneListSkusOptionalParams + options?: VirtualMachineImagesEdgeZoneListSkusOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineRunCommands.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineRunCommands.ts index 8a16255431b6..7805fd6e588e 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineRunCommands.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineRunCommands.ts @@ -22,7 +22,7 @@ import { VirtualMachineRunCommandsUpdateResponse, VirtualMachineRunCommandsDeleteOptionalParams, VirtualMachineRunCommandsGetByVirtualMachineOptionalParams, - VirtualMachineRunCommandsGetByVirtualMachineResponse + VirtualMachineRunCommandsGetByVirtualMachineResponse, } from "../models"; /// @@ -35,7 +35,7 @@ export interface VirtualMachineRunCommands { */ list( location: string, - options?: VirtualMachineRunCommandsListOptionalParams + options?: VirtualMachineRunCommandsListOptionalParams, ): PagedAsyncIterableIterator; /** * The operation to get all run commands of a Virtual Machine. @@ -46,7 +46,7 @@ export interface VirtualMachineRunCommands { listByVirtualMachine( resourceGroupName: string, vmName: string, - options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams + options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams, ): PagedAsyncIterableIterator; /** * Gets specific run command for a subscription in a location. @@ -57,7 +57,7 @@ export interface VirtualMachineRunCommands { get( location: string, commandId: string, - options?: VirtualMachineRunCommandsGetOptionalParams + options?: VirtualMachineRunCommandsGetOptionalParams, ): Promise; /** * The operation to create or update the run command. @@ -72,7 +72,7 @@ export interface VirtualMachineRunCommands { vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommand, - options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams + options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -92,7 +92,7 @@ export interface VirtualMachineRunCommands { vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommand, - options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams + options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update the run command. @@ -107,7 +107,7 @@ export interface VirtualMachineRunCommands { vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, - options?: VirtualMachineRunCommandsUpdateOptionalParams + options?: VirtualMachineRunCommandsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -127,7 +127,7 @@ export interface VirtualMachineRunCommands { vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, - options?: VirtualMachineRunCommandsUpdateOptionalParams + options?: VirtualMachineRunCommandsUpdateOptionalParams, ): Promise; /** * The operation to delete the run command. @@ -140,7 +140,7 @@ export interface VirtualMachineRunCommands { resourceGroupName: string, vmName: string, runCommandName: string, - options?: VirtualMachineRunCommandsDeleteOptionalParams + options?: VirtualMachineRunCommandsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete the run command. @@ -153,7 +153,7 @@ export interface VirtualMachineRunCommands { resourceGroupName: string, vmName: string, runCommandName: string, - options?: VirtualMachineRunCommandsDeleteOptionalParams + options?: VirtualMachineRunCommandsDeleteOptionalParams, ): Promise; /** * The operation to get the run command. @@ -166,6 +166,6 @@ export interface VirtualMachineRunCommands { resourceGroupName: string, vmName: string, runCommandName: string, - options?: VirtualMachineRunCommandsGetByVirtualMachineOptionalParams + options?: VirtualMachineRunCommandsGetByVirtualMachineOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetExtensions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetExtensions.ts index d286677fa2eb..9a923fb4bd41 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetExtensions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetExtensions.ts @@ -18,7 +18,7 @@ import { VirtualMachineScaleSetExtensionsUpdateResponse, VirtualMachineScaleSetExtensionsDeleteOptionalParams, VirtualMachineScaleSetExtensionsGetOptionalParams, - VirtualMachineScaleSetExtensionsGetResponse + VirtualMachineScaleSetExtensionsGetResponse, } from "../models"; /// @@ -33,7 +33,7 @@ export interface VirtualMachineScaleSetExtensions { list( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetExtensionsListOptionalParams + options?: VirtualMachineScaleSetExtensionsListOptionalParams, ): PagedAsyncIterableIterator; /** * The operation to create or update an extension. @@ -48,7 +48,7 @@ export interface VirtualMachineScaleSetExtensions { vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtension, - options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -68,7 +68,7 @@ export interface VirtualMachineScaleSetExtensions { vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtension, - options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update an extension. @@ -83,7 +83,7 @@ export interface VirtualMachineScaleSetExtensions { vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtensionUpdate, - options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams + options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -103,7 +103,7 @@ export interface VirtualMachineScaleSetExtensions { vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtensionUpdate, - options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams + options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams, ): Promise; /** * The operation to delete the extension. @@ -116,7 +116,7 @@ export interface VirtualMachineScaleSetExtensions { resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, - options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams + options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete the extension. @@ -129,7 +129,7 @@ export interface VirtualMachineScaleSetExtensions { resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, - options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams + options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams, ): Promise; /** * The operation to get the extension. @@ -142,6 +142,6 @@ export interface VirtualMachineScaleSetExtensions { resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, - options?: VirtualMachineScaleSetExtensionsGetOptionalParams + options?: VirtualMachineScaleSetExtensionsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetRollingUpgrades.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetRollingUpgrades.ts index a1326e13e258..07c809171637 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetRollingUpgrades.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetRollingUpgrades.ts @@ -12,7 +12,7 @@ import { VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams, VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams, VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams, - VirtualMachineScaleSetRollingUpgradesGetLatestResponse + VirtualMachineScaleSetRollingUpgradesGetLatestResponse, } from "../models"; /** Interface representing a VirtualMachineScaleSetRollingUpgrades. */ @@ -26,7 +26,7 @@ export interface VirtualMachineScaleSetRollingUpgrades { beginCancel( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams, ): Promise, void>>; /** * Cancels the current virtual machine scale set rolling upgrade. @@ -37,7 +37,7 @@ export interface VirtualMachineScaleSetRollingUpgrades { beginCancelAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams, ): Promise; /** * Starts a rolling upgrade to move all virtual machine scale set instances to the latest available @@ -50,7 +50,7 @@ export interface VirtualMachineScaleSetRollingUpgrades { beginStartOSUpgrade( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams, ): Promise, void>>; /** * Starts a rolling upgrade to move all virtual machine scale set instances to the latest available @@ -63,7 +63,7 @@ export interface VirtualMachineScaleSetRollingUpgrades { beginStartOSUpgradeAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams, ): Promise; /** * Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the @@ -76,7 +76,7 @@ export interface VirtualMachineScaleSetRollingUpgrades { beginStartExtensionUpgrade( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams, ): Promise, void>>; /** * Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the @@ -89,7 +89,7 @@ export interface VirtualMachineScaleSetRollingUpgrades { beginStartExtensionUpgradeAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams, ): Promise; /** * Gets the status of the latest virtual machine scale set rolling upgrade. @@ -100,6 +100,6 @@ export interface VirtualMachineScaleSetRollingUpgrades { getLatest( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMExtensions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMExtensions.ts index ecd3190015b1..c76f6232239d 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMExtensions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMExtensions.ts @@ -18,7 +18,7 @@ import { VirtualMachineScaleSetVMExtensionsGetOptionalParams, VirtualMachineScaleSetVMExtensionsGetResponse, VirtualMachineScaleSetVMExtensionsListOptionalParams, - VirtualMachineScaleSetVMExtensionsListResponse + VirtualMachineScaleSetVMExtensionsListResponse, } from "../models"; /** Interface representing a VirtualMachineScaleSetVMExtensions. */ @@ -38,7 +38,7 @@ export interface VirtualMachineScaleSetVMExtensions { instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtension, - options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -60,7 +60,7 @@ export interface VirtualMachineScaleSetVMExtensions { instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtension, - options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update the VMSS VM extension. @@ -77,7 +77,7 @@ export interface VirtualMachineScaleSetVMExtensions { instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtensionUpdate, - options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams + options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -99,7 +99,7 @@ export interface VirtualMachineScaleSetVMExtensions { instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtensionUpdate, - options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams + options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams, ): Promise; /** * The operation to delete the VMSS VM extension. @@ -114,7 +114,7 @@ export interface VirtualMachineScaleSetVMExtensions { vmScaleSetName: string, instanceId: string, vmExtensionName: string, - options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams + options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete the VMSS VM extension. @@ -129,7 +129,7 @@ export interface VirtualMachineScaleSetVMExtensions { vmScaleSetName: string, instanceId: string, vmExtensionName: string, - options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams + options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams, ): Promise; /** * The operation to get the VMSS VM extension. @@ -144,7 +144,7 @@ export interface VirtualMachineScaleSetVMExtensions { vmScaleSetName: string, instanceId: string, vmExtensionName: string, - options?: VirtualMachineScaleSetVMExtensionsGetOptionalParams + options?: VirtualMachineScaleSetVMExtensionsGetOptionalParams, ): Promise; /** * The operation to get all extensions of an instance in Virtual Machine Scaleset. @@ -157,6 +157,6 @@ export interface VirtualMachineScaleSetVMExtensions { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMExtensionsListOptionalParams + options?: VirtualMachineScaleSetVMExtensionsListOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMRunCommands.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMRunCommands.ts index 12f69421b9ce..044b950fa7e1 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMRunCommands.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMRunCommands.ts @@ -18,7 +18,7 @@ import { VirtualMachineScaleSetVMRunCommandsUpdateResponse, VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams, VirtualMachineScaleSetVMRunCommandsGetOptionalParams, - VirtualMachineScaleSetVMRunCommandsGetResponse + VirtualMachineScaleSetVMRunCommandsGetResponse, } from "../models"; /// @@ -35,7 +35,7 @@ export interface VirtualMachineScaleSetVMRunCommands { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams, ): PagedAsyncIterableIterator; /** * The operation to create or update the VMSS VM run command. @@ -52,7 +52,7 @@ export interface VirtualMachineScaleSetVMRunCommands { instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommand, - options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -74,7 +74,7 @@ export interface VirtualMachineScaleSetVMRunCommands { instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommand, - options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update the VMSS VM run command. @@ -91,7 +91,7 @@ export interface VirtualMachineScaleSetVMRunCommands { instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, - options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -113,7 +113,7 @@ export interface VirtualMachineScaleSetVMRunCommands { instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, - options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams, ): Promise; /** * The operation to delete the VMSS VM run command. @@ -128,7 +128,7 @@ export interface VirtualMachineScaleSetVMRunCommands { vmScaleSetName: string, instanceId: string, runCommandName: string, - options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete the VMSS VM run command. @@ -143,7 +143,7 @@ export interface VirtualMachineScaleSetVMRunCommands { vmScaleSetName: string, instanceId: string, runCommandName: string, - options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams, ): Promise; /** * The operation to get the VMSS VM run command. @@ -158,6 +158,6 @@ export interface VirtualMachineScaleSetVMRunCommands { vmScaleSetName: string, instanceId: string, runCommandName: string, - options?: VirtualMachineScaleSetVMRunCommandsGetOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts index 72505ad04bab..faba210cac60 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts @@ -36,7 +36,7 @@ import { VirtualMachineScaleSetVMsAttachDetachDataDisksResponse, RunCommandInput, VirtualMachineScaleSetVMsRunCommandOptionalParams, - VirtualMachineScaleSetVMsRunCommandResponse + VirtualMachineScaleSetVMsRunCommandResponse, } from "../models"; /// @@ -51,7 +51,7 @@ export interface VirtualMachineScaleSetVMs { list( resourceGroupName: string, virtualMachineScaleSetName: string, - options?: VirtualMachineScaleSetVMsListOptionalParams + options?: VirtualMachineScaleSetVMsListOptionalParams, ): PagedAsyncIterableIterator; /** * Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. @@ -64,7 +64,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsReimageOptionalParams + options?: VirtualMachineScaleSetVMsReimageOptionalParams, ): Promise, void>>; /** * Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. @@ -77,7 +77,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsReimageOptionalParams + options?: VirtualMachineScaleSetVMsReimageOptionalParams, ): Promise; /** * Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This @@ -91,7 +91,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsReimageAllOptionalParams + options?: VirtualMachineScaleSetVMsReimageAllOptionalParams, ): Promise, void>>; /** * Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This @@ -105,7 +105,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsReimageAllOptionalParams + options?: VirtualMachineScaleSetVMsReimageAllOptionalParams, ): Promise; /** * Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance. @@ -118,7 +118,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams + options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -136,7 +136,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams + options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams, ): Promise; /** * Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and @@ -151,7 +151,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsDeallocateOptionalParams + options?: VirtualMachineScaleSetVMsDeallocateOptionalParams, ): Promise, void>>; /** * Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and @@ -166,7 +166,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsDeallocateOptionalParams + options?: VirtualMachineScaleSetVMsDeallocateOptionalParams, ): Promise; /** * Updates a virtual machine of a VM scale set. @@ -181,7 +181,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, parameters: VirtualMachineScaleSetVM, - options?: VirtualMachineScaleSetVMsUpdateOptionalParams + options?: VirtualMachineScaleSetVMsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -201,7 +201,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, parameters: VirtualMachineScaleSetVM, - options?: VirtualMachineScaleSetVMsUpdateOptionalParams + options?: VirtualMachineScaleSetVMsUpdateOptionalParams, ): Promise; /** * Deletes a virtual machine from a VM scale set. @@ -214,7 +214,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsDeleteOptionalParams + options?: VirtualMachineScaleSetVMsDeleteOptionalParams, ): Promise, void>>; /** * Deletes a virtual machine from a VM scale set. @@ -227,7 +227,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsDeleteOptionalParams + options?: VirtualMachineScaleSetVMsDeleteOptionalParams, ): Promise; /** * Gets a virtual machine from a VM scale set. @@ -240,7 +240,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsGetOptionalParams + options?: VirtualMachineScaleSetVMsGetOptionalParams, ): Promise; /** * Gets the status of a virtual machine from a VM scale set. @@ -253,7 +253,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsGetInstanceViewOptionalParams + options?: VirtualMachineScaleSetVMsGetInstanceViewOptionalParams, ): Promise; /** * Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you @@ -268,7 +268,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsPowerOffOptionalParams + options?: VirtualMachineScaleSetVMsPowerOffOptionalParams, ): Promise, void>>; /** * Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you @@ -283,7 +283,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsPowerOffOptionalParams + options?: VirtualMachineScaleSetVMsPowerOffOptionalParams, ): Promise; /** * Restarts a virtual machine in a VM scale set. @@ -296,7 +296,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRestartOptionalParams + options?: VirtualMachineScaleSetVMsRestartOptionalParams, ): Promise, void>>; /** * Restarts a virtual machine in a VM scale set. @@ -309,7 +309,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRestartOptionalParams + options?: VirtualMachineScaleSetVMsRestartOptionalParams, ): Promise; /** * Starts a virtual machine in a VM scale set. @@ -322,7 +322,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsStartOptionalParams + options?: VirtualMachineScaleSetVMsStartOptionalParams, ): Promise, void>>; /** * Starts a virtual machine in a VM scale set. @@ -335,7 +335,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsStartOptionalParams + options?: VirtualMachineScaleSetVMsStartOptionalParams, ): Promise; /** * Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers @@ -349,7 +349,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRedeployOptionalParams + options?: VirtualMachineScaleSetVMsRedeployOptionalParams, ): Promise, void>>; /** * Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers @@ -363,7 +363,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRedeployOptionalParams + options?: VirtualMachineScaleSetVMsRedeployOptionalParams, ): Promise; /** * The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set. @@ -376,7 +376,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams + options?: VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams, ): Promise; /** * Performs maintenance on a virtual machine in a VM scale set. @@ -389,7 +389,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams + options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams, ): Promise, void>>; /** * Performs maintenance on a virtual machine in a VM scale set. @@ -402,7 +402,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams + options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams, ): Promise; /** * The operation to simulate the eviction of spot virtual machine in a VM scale set. @@ -415,7 +415,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsSimulateEvictionOptionalParams + options?: VirtualMachineScaleSetVMsSimulateEvictionOptionalParams, ): Promise; /** * Attach and detach data disks to/from a virtual machine in a VM scale set. @@ -431,7 +431,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, parameters: AttachDetachDataDisksRequest, - options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams + options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -452,7 +452,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, parameters: AttachDetachDataDisksRequest, - options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams + options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams, ): Promise; /** * Run command on a virtual machine in a VM scale set. @@ -467,7 +467,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, parameters: RunCommandInput, - options?: VirtualMachineScaleSetVMsRunCommandOptionalParams + options?: VirtualMachineScaleSetVMsRunCommandOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -487,6 +487,6 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, parameters: RunCommandInput, - options?: VirtualMachineScaleSetVMsRunCommandOptionalParams + options?: VirtualMachineScaleSetVMsRunCommandOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts index 6b7366c5365b..719d183aa34b 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts @@ -46,7 +46,7 @@ import { VMScaleSetConvertToSinglePlacementGroupInput, VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams, OrchestrationServiceStateInput, - VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams + VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams, } from "../models"; /// @@ -59,7 +59,7 @@ export interface VirtualMachineScaleSets { */ listByLocation( location: string, - options?: VirtualMachineScaleSetsListByLocationOptionalParams + options?: VirtualMachineScaleSetsListByLocationOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a list of all VM scale sets under a resource group. @@ -68,7 +68,7 @@ export interface VirtualMachineScaleSets { */ list( resourceGroupName: string, - options?: VirtualMachineScaleSetsListOptionalParams + options?: VirtualMachineScaleSetsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. @@ -77,7 +77,7 @@ export interface VirtualMachineScaleSets { * @param options The options parameters. */ listAll( - options?: VirtualMachineScaleSetsListAllOptionalParams + options?: VirtualMachineScaleSetsListAllOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances @@ -89,7 +89,7 @@ export interface VirtualMachineScaleSets { listSkus( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsListSkusOptionalParams + options?: VirtualMachineScaleSetsListSkusOptionalParams, ): PagedAsyncIterableIterator; /** * Gets list of OS upgrades on a VM scale set instance. @@ -100,7 +100,7 @@ export interface VirtualMachineScaleSets { listOSUpgradeHistory( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams + options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a VM scale set. @@ -113,7 +113,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSet, - options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -131,7 +131,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSet, - options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams, ): Promise; /** * Update a VM scale set. @@ -144,7 +144,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSetUpdate, - options?: VirtualMachineScaleSetsUpdateOptionalParams + options?: VirtualMachineScaleSetsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -162,7 +162,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSetUpdate, - options?: VirtualMachineScaleSetsUpdateOptionalParams + options?: VirtualMachineScaleSetsUpdateOptionalParams, ): Promise; /** * Deletes a VM scale set. @@ -173,7 +173,7 @@ export interface VirtualMachineScaleSets { beginDelete( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeleteOptionalParams + options?: VirtualMachineScaleSetsDeleteOptionalParams, ): Promise, void>>; /** * Deletes a VM scale set. @@ -184,7 +184,7 @@ export interface VirtualMachineScaleSets { beginDeleteAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeleteOptionalParams + options?: VirtualMachineScaleSetsDeleteOptionalParams, ): Promise; /** * Display information about a virtual machine scale set. @@ -195,7 +195,7 @@ export interface VirtualMachineScaleSets { get( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetOptionalParams + options?: VirtualMachineScaleSetsGetOptionalParams, ): Promise; /** * Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and @@ -208,7 +208,7 @@ export interface VirtualMachineScaleSets { beginDeallocate( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeallocateOptionalParams + options?: VirtualMachineScaleSetsDeallocateOptionalParams, ): Promise, void>>; /** * Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and @@ -221,7 +221,7 @@ export interface VirtualMachineScaleSets { beginDeallocateAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeallocateOptionalParams + options?: VirtualMachineScaleSetsDeallocateOptionalParams, ): Promise; /** * Deletes virtual machines in a VM scale set. @@ -234,7 +234,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams + options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams, ): Promise, void>>; /** * Deletes virtual machines in a VM scale set. @@ -247,7 +247,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams + options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams, ): Promise; /** * Gets the status of a VM scale set instance. @@ -258,7 +258,7 @@ export interface VirtualMachineScaleSets { getInstanceView( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetInstanceViewOptionalParams + options?: VirtualMachineScaleSetsGetInstanceViewOptionalParams, ): Promise; /** * Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still @@ -271,7 +271,7 @@ export interface VirtualMachineScaleSets { beginPowerOff( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsPowerOffOptionalParams + options?: VirtualMachineScaleSetsPowerOffOptionalParams, ): Promise, void>>; /** * Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still @@ -284,7 +284,7 @@ export interface VirtualMachineScaleSets { beginPowerOffAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsPowerOffOptionalParams + options?: VirtualMachineScaleSetsPowerOffOptionalParams, ): Promise; /** * Restarts one or more virtual machines in a VM scale set. @@ -295,7 +295,7 @@ export interface VirtualMachineScaleSets { beginRestart( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsRestartOptionalParams + options?: VirtualMachineScaleSetsRestartOptionalParams, ): Promise, void>>; /** * Restarts one or more virtual machines in a VM scale set. @@ -306,7 +306,7 @@ export interface VirtualMachineScaleSets { beginRestartAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsRestartOptionalParams + options?: VirtualMachineScaleSetsRestartOptionalParams, ): Promise; /** * Starts one or more virtual machines in a VM scale set. @@ -317,7 +317,7 @@ export interface VirtualMachineScaleSets { beginStart( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsStartOptionalParams + options?: VirtualMachineScaleSetsStartOptionalParams, ): Promise, void>>; /** * Starts one or more virtual machines in a VM scale set. @@ -328,7 +328,7 @@ export interface VirtualMachineScaleSets { beginStartAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsStartOptionalParams + options?: VirtualMachineScaleSetsStartOptionalParams, ): Promise; /** * Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances @@ -339,7 +339,7 @@ export interface VirtualMachineScaleSets { beginReapply( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReapplyOptionalParams + options?: VirtualMachineScaleSetsReapplyOptionalParams, ): Promise, void>>; /** * Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances @@ -350,7 +350,7 @@ export interface VirtualMachineScaleSets { beginReapplyAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReapplyOptionalParams + options?: VirtualMachineScaleSetsReapplyOptionalParams, ): Promise; /** * Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and @@ -362,7 +362,7 @@ export interface VirtualMachineScaleSets { beginRedeploy( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsRedeployOptionalParams + options?: VirtualMachineScaleSetsRedeployOptionalParams, ): Promise, void>>; /** * Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and @@ -374,7 +374,7 @@ export interface VirtualMachineScaleSets { beginRedeployAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsRedeployOptionalParams + options?: VirtualMachineScaleSetsRedeployOptionalParams, ): Promise; /** * Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which @@ -388,7 +388,7 @@ export interface VirtualMachineScaleSets { beginPerformMaintenance( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams + options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams, ): Promise, void>>; /** * Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which @@ -402,7 +402,7 @@ export interface VirtualMachineScaleSets { beginPerformMaintenanceAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams + options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams, ): Promise; /** * Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. @@ -415,7 +415,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams + options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams, ): Promise, void>>; /** * Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. @@ -428,7 +428,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams + options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams, ): Promise; /** * Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't @@ -441,7 +441,7 @@ export interface VirtualMachineScaleSets { beginReimage( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReimageOptionalParams + options?: VirtualMachineScaleSetsReimageOptionalParams, ): Promise, void>>; /** * Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't @@ -454,7 +454,7 @@ export interface VirtualMachineScaleSets { beginReimageAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReimageOptionalParams + options?: VirtualMachineScaleSetsReimageOptionalParams, ): Promise; /** * Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This @@ -466,7 +466,7 @@ export interface VirtualMachineScaleSets { beginReimageAll( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReimageAllOptionalParams + options?: VirtualMachineScaleSetsReimageAllOptionalParams, ): Promise, void>>; /** * Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This @@ -478,7 +478,7 @@ export interface VirtualMachineScaleSets { beginReimageAllAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReimageAllOptionalParams + options?: VirtualMachineScaleSetsReimageAllOptionalParams, ): Promise; /** * Approve upgrade on deferred rolling upgrades for OS disks in the virtual machines in a VM scale set. @@ -489,7 +489,7 @@ export interface VirtualMachineScaleSets { beginApproveRollingUpgrade( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams + options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -505,7 +505,7 @@ export interface VirtualMachineScaleSets { beginApproveRollingUpgradeAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams + options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams, ): Promise; /** * Manual platform update domain walk to update virtual machines in a service fabric virtual machine @@ -519,10 +519,8 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, platformUpdateDomain: number, - options?: VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams - ): Promise< - VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse - >; + options?: VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams, + ): Promise; /** * Converts SinglePlacementGroup property to false for a existing virtual machine scale set. * @param resourceGroupName The name of the resource group. @@ -534,7 +532,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VMScaleSetConvertToSinglePlacementGroupInput, - options?: VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams + options?: VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams, ): Promise; /** * Changes ServiceState property for a given service @@ -547,7 +545,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: OrchestrationServiceStateInput, - options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams + options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams, ): Promise, void>>; /** * Changes ServiceState property for a given service @@ -560,6 +558,6 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: OrchestrationServiceStateInput, - options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams + options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineSizes.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineSizes.ts index ef1e113bee1b..9672fb9b903c 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineSizes.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineSizes.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VirtualMachineSize, - VirtualMachineSizesListOptionalParams + VirtualMachineSizesListOptionalParams, } from "../models"; /// @@ -23,6 +23,6 @@ export interface VirtualMachineSizes { */ list( location: string, - options?: VirtualMachineSizesListOptionalParams + options?: VirtualMachineSizesListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts index 7bade4667082..8d62cf5b7cee 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts @@ -51,7 +51,7 @@ import { VirtualMachinesAttachDetachDataDisksResponse, RunCommandInput, VirtualMachinesRunCommandOptionalParams, - VirtualMachinesRunCommandResponse + VirtualMachinesRunCommandResponse, } from "../models"; /// @@ -64,7 +64,7 @@ export interface VirtualMachines { */ listByLocation( location: string, - options?: VirtualMachinesListByLocationOptionalParams + options?: VirtualMachinesListByLocationOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all of the virtual machines in the specified resource group. Use the nextLink property in the @@ -74,7 +74,7 @@ export interface VirtualMachines { */ list( resourceGroupName: string, - options?: VirtualMachinesListOptionalParams + options?: VirtualMachinesListOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all of the virtual machines in the specified subscription. Use the nextLink property in the @@ -82,7 +82,7 @@ export interface VirtualMachines { * @param options The options parameters. */ listAll( - options?: VirtualMachinesListAllOptionalParams + options?: VirtualMachinesListAllOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all available virtual machine sizes to which the specified virtual machine can be resized. @@ -93,7 +93,7 @@ export interface VirtualMachines { listAvailableSizes( resourceGroupName: string, vmName: string, - options?: VirtualMachinesListAvailableSizesOptionalParams + options?: VirtualMachinesListAvailableSizesOptionalParams, ): PagedAsyncIterableIterator; /** * Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to @@ -107,7 +107,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineCaptureParameters, - options?: VirtualMachinesCaptureOptionalParams + options?: VirtualMachinesCaptureOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -126,7 +126,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineCaptureParameters, - options?: VirtualMachinesCaptureOptionalParams + options?: VirtualMachinesCaptureOptionalParams, ): Promise; /** * The operation to create or update a virtual machine. Please note some properties can be set only @@ -140,7 +140,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachine, - options?: VirtualMachinesCreateOrUpdateOptionalParams + options?: VirtualMachinesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -159,7 +159,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachine, - options?: VirtualMachinesCreateOrUpdateOptionalParams + options?: VirtualMachinesCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update a virtual machine. @@ -172,7 +172,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineUpdate, - options?: VirtualMachinesUpdateOptionalParams + options?: VirtualMachinesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -190,7 +190,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineUpdate, - options?: VirtualMachinesUpdateOptionalParams + options?: VirtualMachinesUpdateOptionalParams, ): Promise; /** * The operation to delete a virtual machine. @@ -201,7 +201,7 @@ export interface VirtualMachines { beginDelete( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeleteOptionalParams + options?: VirtualMachinesDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete a virtual machine. @@ -212,7 +212,7 @@ export interface VirtualMachines { beginDeleteAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeleteOptionalParams + options?: VirtualMachinesDeleteOptionalParams, ): Promise; /** * Retrieves information about the model view or the instance view of a virtual machine. @@ -223,7 +223,7 @@ export interface VirtualMachines { get( resourceGroupName: string, vmName: string, - options?: VirtualMachinesGetOptionalParams + options?: VirtualMachinesGetOptionalParams, ): Promise; /** * Retrieves information about the run-time state of a virtual machine. @@ -234,7 +234,7 @@ export interface VirtualMachines { instanceView( resourceGroupName: string, vmName: string, - options?: VirtualMachinesInstanceViewOptionalParams + options?: VirtualMachinesInstanceViewOptionalParams, ): Promise; /** * Converts virtual machine disks from blob-based to managed disks. Virtual machine must be @@ -246,7 +246,7 @@ export interface VirtualMachines { beginConvertToManagedDisks( resourceGroupName: string, vmName: string, - options?: VirtualMachinesConvertToManagedDisksOptionalParams + options?: VirtualMachinesConvertToManagedDisksOptionalParams, ): Promise, void>>; /** * Converts virtual machine disks from blob-based to managed disks. Virtual machine must be @@ -258,7 +258,7 @@ export interface VirtualMachines { beginConvertToManagedDisksAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesConvertToManagedDisksOptionalParams + options?: VirtualMachinesConvertToManagedDisksOptionalParams, ): Promise; /** * Shuts down the virtual machine and releases the compute resources. You are not billed for the @@ -270,7 +270,7 @@ export interface VirtualMachines { beginDeallocate( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeallocateOptionalParams + options?: VirtualMachinesDeallocateOptionalParams, ): Promise, void>>; /** * Shuts down the virtual machine and releases the compute resources. You are not billed for the @@ -282,7 +282,7 @@ export interface VirtualMachines { beginDeallocateAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeallocateOptionalParams + options?: VirtualMachinesDeallocateOptionalParams, ): Promise; /** * Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual @@ -298,7 +298,7 @@ export interface VirtualMachines { generalize( resourceGroupName: string, vmName: string, - options?: VirtualMachinesGeneralizeOptionalParams + options?: VirtualMachinesGeneralizeOptionalParams, ): Promise; /** * The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the @@ -310,7 +310,7 @@ export interface VirtualMachines { beginPowerOff( resourceGroupName: string, vmName: string, - options?: VirtualMachinesPowerOffOptionalParams + options?: VirtualMachinesPowerOffOptionalParams, ): Promise, void>>; /** * The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the @@ -322,7 +322,7 @@ export interface VirtualMachines { beginPowerOffAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesPowerOffOptionalParams + options?: VirtualMachinesPowerOffOptionalParams, ): Promise; /** * The operation to reapply a virtual machine's state. @@ -333,7 +333,7 @@ export interface VirtualMachines { beginReapply( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReapplyOptionalParams + options?: VirtualMachinesReapplyOptionalParams, ): Promise, void>>; /** * The operation to reapply a virtual machine's state. @@ -344,7 +344,7 @@ export interface VirtualMachines { beginReapplyAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReapplyOptionalParams + options?: VirtualMachinesReapplyOptionalParams, ): Promise; /** * The operation to restart a virtual machine. @@ -355,7 +355,7 @@ export interface VirtualMachines { beginRestart( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRestartOptionalParams + options?: VirtualMachinesRestartOptionalParams, ): Promise, void>>; /** * The operation to restart a virtual machine. @@ -366,7 +366,7 @@ export interface VirtualMachines { beginRestartAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRestartOptionalParams + options?: VirtualMachinesRestartOptionalParams, ): Promise; /** * The operation to start a virtual machine. @@ -377,7 +377,7 @@ export interface VirtualMachines { beginStart( resourceGroupName: string, vmName: string, - options?: VirtualMachinesStartOptionalParams + options?: VirtualMachinesStartOptionalParams, ): Promise, void>>; /** * The operation to start a virtual machine. @@ -388,7 +388,7 @@ export interface VirtualMachines { beginStartAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesStartOptionalParams + options?: VirtualMachinesStartOptionalParams, ): Promise; /** * Shuts down the virtual machine, moves it to a new node, and powers it back on. @@ -399,7 +399,7 @@ export interface VirtualMachines { beginRedeploy( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRedeployOptionalParams + options?: VirtualMachinesRedeployOptionalParams, ): Promise, void>>; /** * Shuts down the virtual machine, moves it to a new node, and powers it back on. @@ -410,7 +410,7 @@ export interface VirtualMachines { beginRedeployAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRedeployOptionalParams + options?: VirtualMachinesRedeployOptionalParams, ): Promise; /** * Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for @@ -426,7 +426,7 @@ export interface VirtualMachines { beginReimage( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReimageOptionalParams + options?: VirtualMachinesReimageOptionalParams, ): Promise, void>>; /** * Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for @@ -442,7 +442,7 @@ export interface VirtualMachines { beginReimageAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReimageOptionalParams + options?: VirtualMachinesReimageOptionalParams, ): Promise; /** * The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs. @@ -453,7 +453,7 @@ export interface VirtualMachines { retrieveBootDiagnosticsData( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams + options?: VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams, ): Promise; /** * The operation to perform maintenance on a virtual machine. @@ -464,7 +464,7 @@ export interface VirtualMachines { beginPerformMaintenance( resourceGroupName: string, vmName: string, - options?: VirtualMachinesPerformMaintenanceOptionalParams + options?: VirtualMachinesPerformMaintenanceOptionalParams, ): Promise, void>>; /** * The operation to perform maintenance on a virtual machine. @@ -475,7 +475,7 @@ export interface VirtualMachines { beginPerformMaintenanceAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesPerformMaintenanceOptionalParams + options?: VirtualMachinesPerformMaintenanceOptionalParams, ): Promise; /** * The operation to simulate the eviction of spot virtual machine. @@ -486,7 +486,7 @@ export interface VirtualMachines { simulateEviction( resourceGroupName: string, vmName: string, - options?: VirtualMachinesSimulateEvictionOptionalParams + options?: VirtualMachinesSimulateEvictionOptionalParams, ): Promise; /** * Assess patches on the VM. @@ -497,7 +497,7 @@ export interface VirtualMachines { beginAssessPatches( resourceGroupName: string, vmName: string, - options?: VirtualMachinesAssessPatchesOptionalParams + options?: VirtualMachinesAssessPatchesOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -513,7 +513,7 @@ export interface VirtualMachines { beginAssessPatchesAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesAssessPatchesOptionalParams + options?: VirtualMachinesAssessPatchesOptionalParams, ): Promise; /** * Installs patches on the VM. @@ -526,7 +526,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, installPatchesInput: VirtualMachineInstallPatchesParameters, - options?: VirtualMachinesInstallPatchesOptionalParams + options?: VirtualMachinesInstallPatchesOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -544,7 +544,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, installPatchesInput: VirtualMachineInstallPatchesParameters, - options?: VirtualMachinesInstallPatchesOptionalParams + options?: VirtualMachinesInstallPatchesOptionalParams, ): Promise; /** * Attach and detach data disks to/from the virtual machine. @@ -558,7 +558,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: AttachDetachDataDisksRequest, - options?: VirtualMachinesAttachDetachDataDisksOptionalParams + options?: VirtualMachinesAttachDetachDataDisksOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -577,7 +577,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: AttachDetachDataDisksRequest, - options?: VirtualMachinesAttachDetachDataDisksOptionalParams + options?: VirtualMachinesAttachDetachDataDisksOptionalParams, ): Promise; /** * Run command on the VM. @@ -590,7 +590,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: RunCommandInput, - options?: VirtualMachinesRunCommandOptionalParams + options?: VirtualMachinesRunCommandOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -608,6 +608,6 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: RunCommandInput, - options?: VirtualMachinesRunCommandOptionalParams + options?: VirtualMachinesRunCommandOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/pagingHelper.ts b/sdk/compute/arm-compute/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/compute/arm-compute/src/pagingHelper.ts +++ b/sdk/compute/arm-compute/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/confidentialledger/tests.yml b/sdk/confidentialledger/tests.yml index 77f505a39564..96c61391493b 100644 --- a/sdk/confidentialledger/tests.yml +++ b/sdk/confidentialledger/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-rest/confidential-ledger" ServiceDirectory: confidentialledger diff --git a/sdk/confluent/arm-confluent/CHANGELOG.md b/sdk/confluent/arm-confluent/CHANGELOG.md index 08a59c41ade1..e7f14741f419 100644 --- a/sdk/confluent/arm-confluent/CHANGELOG.md +++ b/sdk/confluent/arm-confluent/CHANGELOG.md @@ -1,15 +1,78 @@ # Release History + +## 3.1.0 (2024-03-13) + +**Features** -## 3.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added operation Access.createRoleBinding + - Added operation Access.deleteRoleBinding + - Added operation Access.listRoleBindingNameList + - Added operation Organization.createAPIKey + - Added operation Organization.deleteClusterAPIKey + - Added operation Organization.getClusterAPIKey + - Added operation Organization.getClusterById + - Added operation Organization.getEnvironmentById + - Added operation Organization.getSchemaRegistryClusterById + - Added operation Organization.listClusters + - Added operation Organization.listEnvironments + - Added operation Organization.listRegions + - Added operation Organization.listSchemaRegistryClusters + - Added Interface AccessCreateRoleBindingOptionalParams + - Added Interface AccessCreateRoleBindingRequestModel + - Added Interface AccessDeleteRoleBindingOptionalParams + - Added Interface AccessListRoleBindingNameListOptionalParams + - Added Interface AccessRoleBindingNameListSuccessResponse + - Added Interface APIKeyOwnerEntity + - Added Interface APIKeyRecord + - Added Interface APIKeyResourceEntity + - Added Interface APIKeySpecEntity + - Added Interface CreateAPIKeyModel + - Added Interface GetEnvironmentsResponse + - Added Interface ListClustersSuccessResponse + - Added Interface ListRegionsSuccessResponse + - Added Interface ListSchemaRegistryClustersResponse + - Added Interface OrganizationCreateAPIKeyOptionalParams + - Added Interface OrganizationDeleteClusterAPIKeyOptionalParams + - Added Interface OrganizationGetClusterAPIKeyOptionalParams + - Added Interface OrganizationGetClusterByIdOptionalParams + - Added Interface OrganizationGetEnvironmentByIdOptionalParams + - Added Interface OrganizationGetSchemaRegistryClusterByIdOptionalParams + - Added Interface OrganizationListClustersNextOptionalParams + - Added Interface OrganizationListClustersOptionalParams + - Added Interface OrganizationListEnvironmentsNextOptionalParams + - Added Interface OrganizationListEnvironmentsOptionalParams + - Added Interface OrganizationListRegionsOptionalParams + - Added Interface OrganizationListSchemaRegistryClustersNextOptionalParams + - Added Interface OrganizationListSchemaRegistryClustersOptionalParams + - Added Interface RegionRecord + - Added Interface RegionSpecEntity + - Added Interface SCClusterByokEntity + - Added Interface SCClusterNetworkEnvironmentEntity + - Added Interface SCClusterRecord + - Added Interface SCClusterSpecEntity + - Added Interface SCConfluentListMetadata + - Added Interface SCEnvironmentRecord + - Added Interface SchemaRegistryClusterEnvironmentRegionEntity + - Added Interface SchemaRegistryClusterRecord + - Added Interface SchemaRegistryClusterSpecEntity + - Added Interface SchemaRegistryClusterStatusEntity + - Added Interface SCMetadataEntity + - Added Type Alias AccessCreateRoleBindingResponse + - Added Type Alias AccessListRoleBindingNameListResponse + - Added Type Alias OrganizationCreateAPIKeyResponse + - Added Type Alias OrganizationGetClusterAPIKeyResponse + - Added Type Alias OrganizationGetClusterByIdResponse + - Added Type Alias OrganizationGetEnvironmentByIdResponse + - Added Type Alias OrganizationGetSchemaRegistryClusterByIdResponse + - Added Type Alias OrganizationListClustersNextResponse + - Added Type Alias OrganizationListClustersResponse + - Added Type Alias OrganizationListEnvironmentsNextResponse + - Added Type Alias OrganizationListEnvironmentsResponse + - Added Type Alias OrganizationListRegionsResponse + - Added Type Alias OrganizationListSchemaRegistryClustersNextResponse + - Added Type Alias OrganizationListSchemaRegistryClustersResponse + + ## 3.0.0 (2023-11-07) The package of @azure/arm-confluent is using our next generation design principles since version 3.0.0, which contains breaking changes. diff --git a/sdk/confluent/arm-confluent/LICENSE b/sdk/confluent/arm-confluent/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/confluent/arm-confluent/LICENSE +++ b/sdk/confluent/arm-confluent/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/confluent/arm-confluent/_meta.json b/sdk/confluent/arm-confluent/_meta.json index 416b5ba51ffb..00c51770a19f 100644 --- a/sdk/confluent/arm-confluent/_meta.json +++ b/sdk/confluent/arm-confluent/_meta.json @@ -1,8 +1,8 @@ { - "commit": "b13bd252f5a0ae3e870dcd5fb4dc5c1389a7a734", + "commit": "3004d02873a4b583ba6a3966a370f1ba19b5da1d", "readme": "specification/confluent/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\confluent\\resource-manager\\readme.md --use=@autorest/typescript@6.0.12 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\confluent\\resource-manager\\readme.md --use=@autorest/typescript@6.0.17 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", - "use": "@autorest/typescript@6.0.12" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", + "use": "@autorest/typescript@6.0.17" } \ No newline at end of file diff --git a/sdk/confluent/arm-confluent/assets.json b/sdk/confluent/arm-confluent/assets.json index ceafd70f98a4..032536a6af62 100644 --- a/sdk/confluent/arm-confluent/assets.json +++ b/sdk/confluent/arm-confluent/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/confluent/arm-confluent", - "Tag": "js/confluent/arm-confluent_d726dea7d2" + "Tag": "js/confluent/arm-confluent_4fa200895a" } diff --git a/sdk/confluent/arm-confluent/package.json b/sdk/confluent/arm-confluent/package.json index d3134cf13f86..cc9bdd79fbb3 100644 --- a/sdk/confluent/arm-confluent/package.json +++ b/sdk/confluent/arm-confluent/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ConfluentManagementClient.", - "version": "3.0.1", + "version": "3.1.0", "engines": { "node": ">=18.0.0" }, @@ -12,8 +12,8 @@ "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.12.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -78,7 +78,6 @@ "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -116,4 +115,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-confluent?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/confluent/arm-confluent/review/arm-confluent.api.md b/sdk/confluent/arm-confluent/review/arm-confluent.api.md index c4b91738bab6..8b836c04a139 100644 --- a/sdk/confluent/arm-confluent/review/arm-confluent.api.md +++ b/sdk/confluent/arm-confluent/review/arm-confluent.api.md @@ -12,15 +12,36 @@ import { SimplePollerLike } from '@azure/core-lro'; // @public export interface Access { + createRoleBinding(resourceGroupName: string, organizationName: string, body: AccessCreateRoleBindingRequestModel, options?: AccessCreateRoleBindingOptionalParams): Promise; + deleteRoleBinding(resourceGroupName: string, organizationName: string, roleBindingId: string, options?: AccessDeleteRoleBindingOptionalParams): Promise; inviteUser(resourceGroupName: string, organizationName: string, body: AccessInviteUserAccountModel, options?: AccessInviteUserOptionalParams): Promise; listClusters(resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, options?: AccessListClustersOptionalParams): Promise; listEnvironments(resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, options?: AccessListEnvironmentsOptionalParams): Promise; listInvitations(resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, options?: AccessListInvitationsOptionalParams): Promise; + listRoleBindingNameList(resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, options?: AccessListRoleBindingNameListOptionalParams): Promise; listRoleBindings(resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, options?: AccessListRoleBindingsOptionalParams): Promise; listServiceAccounts(resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, options?: AccessListServiceAccountsOptionalParams): Promise; listUsers(resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, options?: AccessListUsersOptionalParams): Promise; } +// @public +export interface AccessCreateRoleBindingOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface AccessCreateRoleBindingRequestModel { + crnPattern?: string; + principal?: string; + roleName?: string; +} + +// @public +export type AccessCreateRoleBindingResponse = RoleBindingRecord; + +// @public +export interface AccessDeleteRoleBindingOptionalParams extends coreClient.OperationOptions { +} + // @public export interface AccessInvitedUserDetails { authType?: string; @@ -84,6 +105,13 @@ export interface AccessListInvitationsSuccessResponse { metadata?: ConfluentListMetadata; } +// @public +export interface AccessListRoleBindingNameListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AccessListRoleBindingNameListResponse = AccessRoleBindingNameListSuccessResponse; + // @public export interface AccessListRoleBindingsOptionalParams extends coreClient.OperationOptions { } @@ -126,6 +154,47 @@ export interface AccessListUsersSuccessResponse { metadata?: ConfluentListMetadata; } +// @public +export interface AccessRoleBindingNameListSuccessResponse { + data?: string[]; + kind?: string; + metadata?: ConfluentListMetadata; +} + +// @public +export interface APIKeyOwnerEntity { + id?: string; + kind?: string; + related?: string; + resourceName?: string; +} + +// @public +export interface APIKeyRecord { + id?: string; + kind?: string; + metadata?: SCMetadataEntity; + spec?: APIKeySpecEntity; +} + +// @public +export interface APIKeyResourceEntity { + environment?: string; + id?: string; + kind?: string; + related?: string; + resourceName?: string; +} + +// @public +export interface APIKeySpecEntity { + description?: string; + name?: string; + owner?: APIKeyOwnerEntity; + resource?: APIKeyResourceEntity; + secret?: string; +} + // @public export interface ClusterByokEntity { id?: string; @@ -246,6 +315,12 @@ export interface ConfluentManagementClientOptionalParams extends coreClient.Serv endpoint?: string; } +// @public +export interface CreateAPIKeyModel { + description?: string; + name?: string; +} + // @public export type CreatedByType = string; @@ -268,6 +343,12 @@ export interface ErrorResponseBody { // @public export function getContinuationToken(page: unknown): string | undefined; +// @public +export interface GetEnvironmentsResponse { + nextLink?: string; + value?: SCEnvironmentRecord[]; +} + // @public export interface InvitationRecord { acceptedAt?: string; @@ -327,6 +408,23 @@ export interface ListAccessRequestModel { }; } +// @public +export interface ListClustersSuccessResponse { + nextLink?: string; + value?: SCClusterRecord[]; +} + +// @public +export interface ListRegionsSuccessResponse { + data?: RegionRecord[]; +} + +// @public +export interface ListSchemaRegistryClustersResponse { + nextLink?: string; + value?: SchemaRegistryClusterRecord[]; +} + // @public export interface MarketplaceAgreements { create(options?: MarketplaceAgreementsCreateOptionalParams): Promise; @@ -404,12 +502,29 @@ export interface Organization { beginCreateAndWait(resourceGroupName: string, organizationName: string, options?: OrganizationCreateOptionalParams): Promise; beginDelete(resourceGroupName: string, organizationName: string, options?: OrganizationDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, organizationName: string, options?: OrganizationDeleteOptionalParams): Promise; + createAPIKey(resourceGroupName: string, organizationName: string, environmentId: string, clusterId: string, body: CreateAPIKeyModel, options?: OrganizationCreateAPIKeyOptionalParams): Promise; + deleteClusterAPIKey(resourceGroupName: string, organizationName: string, apiKeyId: string, options?: OrganizationDeleteClusterAPIKeyOptionalParams): Promise; get(resourceGroupName: string, organizationName: string, options?: OrganizationGetOptionalParams): Promise; + getClusterAPIKey(resourceGroupName: string, organizationName: string, apiKeyId: string, options?: OrganizationGetClusterAPIKeyOptionalParams): Promise; + getClusterById(resourceGroupName: string, organizationName: string, environmentId: string, clusterId: string, options?: OrganizationGetClusterByIdOptionalParams): Promise; + getEnvironmentById(resourceGroupName: string, organizationName: string, environmentId: string, options?: OrganizationGetEnvironmentByIdOptionalParams): Promise; + getSchemaRegistryClusterById(resourceGroupName: string, organizationName: string, environmentId: string, clusterId: string, options?: OrganizationGetSchemaRegistryClusterByIdOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: OrganizationListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: OrganizationListBySubscriptionOptionalParams): PagedAsyncIterableIterator; + listClusters(resourceGroupName: string, organizationName: string, environmentId: string, options?: OrganizationListClustersOptionalParams): PagedAsyncIterableIterator; + listEnvironments(resourceGroupName: string, organizationName: string, options?: OrganizationListEnvironmentsOptionalParams): PagedAsyncIterableIterator; + listRegions(resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, options?: OrganizationListRegionsOptionalParams): Promise; + listSchemaRegistryClusters(resourceGroupName: string, organizationName: string, environmentId: string, options?: OrganizationListSchemaRegistryClustersOptionalParams): PagedAsyncIterableIterator; update(resourceGroupName: string, organizationName: string, options?: OrganizationUpdateOptionalParams): Promise; } +// @public +export interface OrganizationCreateAPIKeyOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationCreateAPIKeyResponse = APIKeyRecord; + // @public export interface OrganizationCreateOptionalParams extends coreClient.OperationOptions { body?: OrganizationResource; @@ -420,12 +535,37 @@ export interface OrganizationCreateOptionalParams extends coreClient.OperationOp // @public export type OrganizationCreateResponse = OrganizationResource; +// @public +export interface OrganizationDeleteClusterAPIKeyOptionalParams extends coreClient.OperationOptions { +} + // @public export interface OrganizationDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } +// @public +export interface OrganizationGetClusterAPIKeyOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationGetClusterAPIKeyResponse = APIKeyRecord; + +// @public +export interface OrganizationGetClusterByIdOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationGetClusterByIdResponse = SCClusterRecord; + +// @public +export interface OrganizationGetEnvironmentByIdOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationGetEnvironmentByIdResponse = SCEnvironmentRecord; + // @public export interface OrganizationGetOptionalParams extends coreClient.OperationOptions { } @@ -433,6 +573,13 @@ export interface OrganizationGetOptionalParams extends coreClient.OperationOptio // @public export type OrganizationGetResponse = OrganizationResource; +// @public +export interface OrganizationGetSchemaRegistryClusterByIdOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationGetSchemaRegistryClusterByIdResponse = SchemaRegistryClusterRecord; + // @public export interface OrganizationListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { } @@ -461,6 +608,61 @@ export interface OrganizationListBySubscriptionOptionalParams extends coreClient // @public export type OrganizationListBySubscriptionResponse = OrganizationResourceListResult; +// @public +export interface OrganizationListClustersNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationListClustersNextResponse = ListClustersSuccessResponse; + +// @public +export interface OrganizationListClustersOptionalParams extends coreClient.OperationOptions { + pageSize?: number; + pageToken?: string; +} + +// @public +export type OrganizationListClustersResponse = ListClustersSuccessResponse; + +// @public +export interface OrganizationListEnvironmentsNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationListEnvironmentsNextResponse = GetEnvironmentsResponse; + +// @public +export interface OrganizationListEnvironmentsOptionalParams extends coreClient.OperationOptions { + pageSize?: number; + pageToken?: string; +} + +// @public +export type OrganizationListEnvironmentsResponse = GetEnvironmentsResponse; + +// @public +export interface OrganizationListRegionsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationListRegionsResponse = ListRegionsSuccessResponse; + +// @public +export interface OrganizationListSchemaRegistryClustersNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationListSchemaRegistryClustersNextResponse = ListSchemaRegistryClustersResponse; + +// @public +export interface OrganizationListSchemaRegistryClustersOptionalParams extends coreClient.OperationOptions { + pageSize?: number; + pageToken?: string; +} + +// @public +export type OrganizationListSchemaRegistryClustersResponse = ListSchemaRegistryClustersResponse; + // @public export interface OrganizationOperations { list(options?: OrganizationOperationsListOptionalParams): PagedAsyncIterableIterator; @@ -523,6 +725,23 @@ export type OrganizationUpdateResponse = OrganizationResource; // @public export type ProvisionState = string; +// @public +export interface RegionRecord { + id?: string; + kind?: string; + metadata?: SCMetadataEntity; + spec?: RegionSpecEntity; +} + +// @public +export interface RegionSpecEntity { + cloud?: string; + name?: string; + // (undocumented) + packages?: string[]; + regionName?: string; +} + // @public export interface ResourceProviderDefaultErrorResponse { readonly error?: ErrorResponseBody; @@ -541,6 +760,104 @@ export interface RoleBindingRecord { // @public export type SaaSOfferStatus = string; +// @public +export interface SCClusterByokEntity { + id?: string; + related?: string; + resourceName?: string; +} + +// @public +export interface SCClusterNetworkEnvironmentEntity { + environment?: string; + id?: string; + related?: string; + resourceName?: string; +} + +// @public +export interface SCClusterRecord { + id?: string; + kind?: string; + metadata?: SCMetadataEntity; + name?: string; + spec?: SCClusterSpecEntity; + status?: ClusterStatusEntity; +} + +// @public +export interface SCClusterSpecEntity { + apiEndpoint?: string; + availability?: string; + byok?: SCClusterByokEntity; + cloud?: string; + config?: ClusterConfigEntity; + environment?: SCClusterNetworkEnvironmentEntity; + httpEndpoint?: string; + kafkaBootstrapEndpoint?: string; + name?: string; + network?: SCClusterNetworkEnvironmentEntity; + region?: string; + zone?: string; +} + +// @public +export interface SCConfluentListMetadata { + first?: string; + last?: string; + next?: string; + prev?: string; + totalSize?: number; +} + +// @public +export interface SCEnvironmentRecord { + id?: string; + kind?: string; + metadata?: SCMetadataEntity; + name?: string; +} + +// @public +export interface SchemaRegistryClusterEnvironmentRegionEntity { + id?: string; + related?: string; + resourceName?: string; +} + +// @public +export interface SchemaRegistryClusterRecord { + id?: string; + kind?: string; + metadata?: SCMetadataEntity; + spec?: SchemaRegistryClusterSpecEntity; + status?: SchemaRegistryClusterStatusEntity; +} + +// @public +export interface SchemaRegistryClusterSpecEntity { + cloud?: string; + environment?: SchemaRegistryClusterEnvironmentRegionEntity; + httpEndpoint?: string; + name?: string; + package?: string; + region?: SchemaRegistryClusterEnvironmentRegionEntity; +} + +// @public +export interface SchemaRegistryClusterStatusEntity { + phase?: string; +} + +// @public +export interface SCMetadataEntity { + createdTimestamp?: string; + deletedTimestamp?: string; + resourceName?: string; + self?: string; + updatedTimestamp?: string; +} + // @public export interface ServiceAccountRecord { description?: string; diff --git a/sdk/confluent/arm-confluent/samples-dev/accessCreateRoleBindingSample.ts b/sdk/confluent/arm-confluent/samples-dev/accessCreateRoleBindingSample.ts new file mode 100644 index 000000000000..197475b1f20c --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/accessCreateRoleBindingSample.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + AccessCreateRoleBindingRequestModel, + ConfluentManagementClient, +} from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Organization role bindings + * + * @summary Organization role bindings + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_CreateRoleBinding.json + */ +async function accessCreateRoleBinding() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const body: AccessCreateRoleBindingRequestModel = { + crnPattern: + "crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa/environment=env-aaa1111/cloud-cluster=lkc-1111aaa", + principal: "User:u-111aaa", + roleName: "CloudClusterAdmin", + }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.access.createRoleBinding( + resourceGroupName, + organizationName, + body, + ); + console.log(result); +} + +async function main() { + accessCreateRoleBinding(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/accessDeleteRoleBindingSample.ts b/sdk/confluent/arm-confluent/samples-dev/accessDeleteRoleBindingSample.ts new file mode 100644 index 000000000000..da5970a6c279 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/accessDeleteRoleBindingSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Organization role bindings + * + * @summary Organization role bindings + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_DeleteRoleBinding.json + */ +async function accessDeleteRoleBinding() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const roleBindingId = "dlz-f3a90de"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.access.deleteRoleBinding( + resourceGroupName, + organizationName, + roleBindingId, + ); + console.log(result); +} + +async function main() { + accessDeleteRoleBinding(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/accessInviteUserSample.ts b/sdk/confluent/arm-confluent/samples-dev/accessInviteUserSample.ts index 5634690a3ae1..c917ce28a1f1 100644 --- a/sdk/confluent/arm-confluent/samples-dev/accessInviteUserSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/accessInviteUserSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { AccessInviteUserAccountModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Invite user to the organization * * @summary Invite user to the organization - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_InviteUser.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_InviteUser.json */ async function accessInviteUser() { const subscriptionId = @@ -33,15 +33,15 @@ async function accessInviteUser() { const body: AccessInviteUserAccountModel = { invitedUserDetails: { authType: "AUTH_TYPE_SSO", - invitedEmail: "user2@onmicrosoft.com" - } + invitedEmail: "user2@onmicrosoft.com", + }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.inviteUser( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples-dev/accessListClustersSample.ts b/sdk/confluent/arm-confluent/samples-dev/accessListClustersSample.ts index 900e9a46d0e6..1b24afebc699 100644 --- a/sdk/confluent/arm-confluent/samples-dev/accessListClustersSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/accessListClustersSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ListAccessRequestModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Cluster details * * @summary Cluster details - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_ClusterList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_ClusterList.json */ async function accessClusterList() { const subscriptionId = @@ -31,14 +31,14 @@ async function accessClusterList() { process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; const organizationName = "myOrganization"; const body: ListAccessRequestModel = { - searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" } + searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.listClusters( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples-dev/accessListEnvironmentsSample.ts b/sdk/confluent/arm-confluent/samples-dev/accessListEnvironmentsSample.ts index 8b2a89bd89a3..897b1c50cf67 100644 --- a/sdk/confluent/arm-confluent/samples-dev/accessListEnvironmentsSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/accessListEnvironmentsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ListAccessRequestModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Environment list of an organization * * @summary Environment list of an organization - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_EnvironmentList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_EnvironmentList.json */ async function accessEnvironmentList() { const subscriptionId = @@ -31,14 +31,14 @@ async function accessEnvironmentList() { process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; const organizationName = "myOrganization"; const body: ListAccessRequestModel = { - searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" } + searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.listEnvironments( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples-dev/accessListInvitationsSample.ts b/sdk/confluent/arm-confluent/samples-dev/accessListInvitationsSample.ts index b3a8ad0b4364..348bbc4315b7 100644 --- a/sdk/confluent/arm-confluent/samples-dev/accessListInvitationsSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/accessListInvitationsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ListAccessRequestModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Organization accounts invitation details * * @summary Organization accounts invitation details - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_InvitationsList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_InvitationsList.json */ async function accessInvitationsList() { const subscriptionId = @@ -34,15 +34,15 @@ async function accessInvitationsList() { searchFilters: { pageSize: "10", pageToken: "asc4fts4ft", - status: "INVITE_STATUS_SENT" - } + status: "INVITE_STATUS_SENT", + }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.listInvitations( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples-dev/accessListRoleBindingNameListSample.ts b/sdk/confluent/arm-confluent/samples-dev/accessListRoleBindingNameListSample.ts new file mode 100644 index 000000000000..5a5f945a2ca3 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/accessListRoleBindingNameListSample.ts @@ -0,0 +1,55 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ListAccessRequestModel, + ConfluentManagementClient, +} from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Organization role bindings + * + * @summary Organization role bindings + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_RoleBindingNameList.json + */ +async function accessRoleBindingNameList() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const body: ListAccessRequestModel = { + searchFilters: { + crnPattern: + "crn://confluent.cloud/organization=1aa7de07-298e-479c-8f2f-16ac91fd8e76", + namespace: + "public,dataplane,networking,identity,datagovernance,connect,streamcatalog,pipelines,ksql", + }, + }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.access.listRoleBindingNameList( + resourceGroupName, + organizationName, + body, + ); + console.log(result); +} + +async function main() { + accessRoleBindingNameList(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/accessListRoleBindingsSample.ts b/sdk/confluent/arm-confluent/samples-dev/accessListRoleBindingsSample.ts index 4cd5da44d1a5..ca28e87e9a1f 100644 --- a/sdk/confluent/arm-confluent/samples-dev/accessListRoleBindingsSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/accessListRoleBindingsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ListAccessRequestModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Organization role bindings * * @summary Organization role bindings - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_RoleBindingList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_RoleBindingList.json */ async function accessRoleBindingList() { const subscriptionId = @@ -31,14 +31,14 @@ async function accessRoleBindingList() { process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; const organizationName = "myOrganization"; const body: ListAccessRequestModel = { - searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" } + searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.listRoleBindings( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples-dev/accessListServiceAccountsSample.ts b/sdk/confluent/arm-confluent/samples-dev/accessListServiceAccountsSample.ts index 4b5ffb8ea3d6..29d86e806bb4 100644 --- a/sdk/confluent/arm-confluent/samples-dev/accessListServiceAccountsSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/accessListServiceAccountsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ListAccessRequestModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Organization service accounts details * * @summary Organization service accounts details - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_ServiceAccountsList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_ServiceAccountsList.json */ async function accessServiceAccountsList() { const subscriptionId = @@ -31,14 +31,14 @@ async function accessServiceAccountsList() { process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; const organizationName = "myOrganization"; const body: ListAccessRequestModel = { - searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" } + searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.listServiceAccounts( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples-dev/accessListUsersSample.ts b/sdk/confluent/arm-confluent/samples-dev/accessListUsersSample.ts index cf037a2c1b51..43d6badc7966 100644 --- a/sdk/confluent/arm-confluent/samples-dev/accessListUsersSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/accessListUsersSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ListAccessRequestModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Organization users details * * @summary Organization users details - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_UsersList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_UsersList.json */ async function accessUsersList() { const subscriptionId = @@ -31,14 +31,14 @@ async function accessUsersList() { process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; const organizationName = "myOrganization"; const body: ListAccessRequestModel = { - searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" } + searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.listUsers( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples-dev/marketplaceAgreementsCreateSample.ts b/sdk/confluent/arm-confluent/samples-dev/marketplaceAgreementsCreateSample.ts index 134427e70114..abc5964bfb3f 100644 --- a/sdk/confluent/arm-confluent/samples-dev/marketplaceAgreementsCreateSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/marketplaceAgreementsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create Confluent Marketplace agreement in the subscription. * * @summary Create Confluent Marketplace agreement in the subscription. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/MarketplaceAgreements_Create.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/MarketplaceAgreements_Create.json */ async function marketplaceAgreementsCreate() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples-dev/marketplaceAgreementsListSample.ts b/sdk/confluent/arm-confluent/samples-dev/marketplaceAgreementsListSample.ts index 0e601dd4df6a..fadf5d5fc293 100644 --- a/sdk/confluent/arm-confluent/samples-dev/marketplaceAgreementsListSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/marketplaceAgreementsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List Confluent marketplace agreements in the subscription. * * @summary List Confluent marketplace agreements in the subscription. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/MarketplaceAgreements_List.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/MarketplaceAgreements_List.json */ async function marketplaceAgreementsList() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationCreateApiKeySample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationCreateApiKeySample.ts new file mode 100644 index 000000000000..23904416bdf3 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/organizationCreateApiKeySample.ts @@ -0,0 +1,55 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + CreateAPIKeyModel, + ConfluentManagementClient, +} from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment + * + * @summary Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_CreateClusterAPIKey.json + */ +async function organizationCreateApiKey() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-12132"; + const clusterId = "clusterId-123"; + const body: CreateAPIKeyModel = { + name: "CI kafka access key", + description: "This API key provides kafka access to cluster x", + }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.createAPIKey( + resourceGroupName, + organizationName, + environmentId, + clusterId, + body, + ); + console.log(result); +} + +async function main() { + organizationCreateApiKey(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationCreateSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationCreateSample.ts index 08fbb77de91f..5c9487ffed2b 100644 --- a/sdk/confluent/arm-confluent/samples-dev/organizationCreateSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/organizationCreateSample.ts @@ -11,7 +11,7 @@ import { OrganizationResource, OrganizationCreateOptionalParams, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Create Organization resource * * @summary Create Organization resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Create.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Create.json */ async function organizationCreate() { const subscriptionId = @@ -41,7 +41,7 @@ async function organizationCreate() { privateOfferId: "string", privateOfferIds: ["string"], publisherId: "string", - termUnit: "string" + termUnit: "string", }, tags: { environment: "Dev" }, userDetail: { @@ -49,8 +49,8 @@ async function organizationCreate() { emailAddress: "contoso@microsoft.com", firstName: "string", lastName: "string", - userPrincipalName: "contoso@microsoft.com" - } + userPrincipalName: "contoso@microsoft.com", + }, }; const options: OrganizationCreateOptionalParams = { body }; const credential = new DefaultAzureCredential(); @@ -58,7 +58,7 @@ async function organizationCreate() { const result = await client.organization.beginCreateAndWait( resourceGroupName, organizationName, - options + options, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationDeleteClusterApiKeySample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationDeleteClusterApiKeySample.ts new file mode 100644 index 000000000000..0bdd114a48cd --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/organizationDeleteClusterApiKeySample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes API key of a kafka or schema registry cluster + * + * @summary Deletes API key of a kafka or schema registry cluster + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_DeleteClusterAPIKey.json + */ +async function organizationDeleteClusterApiKey() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const apiKeyId = "ZFZ6SZZZWGYBEIFB"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.deleteClusterAPIKey( + resourceGroupName, + organizationName, + apiKeyId, + ); + console.log(result); +} + +async function main() { + organizationDeleteClusterApiKey(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationDeleteSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationDeleteSample.ts index 7c4a5edbdd6b..df129918b09f 100644 --- a/sdk/confluent/arm-confluent/samples-dev/organizationDeleteSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/organizationDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete Organization resource * * @summary Delete Organization resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Delete.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Delete.json */ async function confluentDelete() { const subscriptionId = @@ -31,7 +31,7 @@ async function confluentDelete() { const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.organization.beginDeleteAndWait( resourceGroupName, - organizationName + organizationName, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationGetClusterApiKeySample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationGetClusterApiKeySample.ts new file mode 100644 index 000000000000..a3ce47be0ad6 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/organizationGetClusterApiKeySample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get API key details of a kafka or schema registry cluster + * + * @summary Get API key details of a kafka or schema registry cluster + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetClusterAPIKey.json + */ +async function organizationGetClusterApiKey() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const apiKeyId = "apiKeyId-123"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.getClusterAPIKey( + resourceGroupName, + organizationName, + apiKeyId, + ); + console.log(result); +} + +async function main() { + organizationGetClusterApiKey(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationGetClusterByIdSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationGetClusterByIdSample.ts new file mode 100644 index 000000000000..0a9a7d91fc71 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/organizationGetClusterByIdSample.ts @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get cluster by Id + * + * @summary Get cluster by Id + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetClusterById.json + */ +async function organizationGetClusterById() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-12132"; + const clusterId = "dlz-f3a90de"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.getClusterById( + resourceGroupName, + organizationName, + environmentId, + clusterId, + ); + console.log(result); +} + +async function main() { + organizationGetClusterById(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationGetEnvironmentByIdSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationGetEnvironmentByIdSample.ts new file mode 100644 index 000000000000..459f2b029aed --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/organizationGetEnvironmentByIdSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get Environment details by environment Id + * + * @summary Get Environment details by environment Id + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetEnvironmentById.json + */ +async function organizationGetEnvironmentById() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "dlz-f3a90de"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.getEnvironmentById( + resourceGroupName, + organizationName, + environmentId, + ); + console.log(result); +} + +async function main() { + organizationGetEnvironmentById(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationGetSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationGetSample.ts index 94b488337c74..9ba4cb107618 100644 --- a/sdk/confluent/arm-confluent/samples-dev/organizationGetSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/organizationGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the properties of a specific Organization resource. * * @summary Get the properties of a specific Organization resource. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Get.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Get.json */ async function organizationGet() { const subscriptionId = @@ -31,7 +31,7 @@ async function organizationGet() { const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.organization.get( resourceGroupName, - organizationName + organizationName, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationGetSchemaRegistryClusterByIdSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationGetSchemaRegistryClusterByIdSample.ts new file mode 100644 index 000000000000..1bcdb5a65be4 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/organizationGetSchemaRegistryClusterByIdSample.ts @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get schema registry cluster by Id + * + * @summary Get schema registry cluster by Id + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetSchemaRegistryClusterById.json + */ +async function organizationGetSchemaRegistryClusterById() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-stgcczjp2j3"; + const clusterId = "lsrc-stgczkq22z"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.getSchemaRegistryClusterById( + resourceGroupName, + organizationName, + environmentId, + clusterId, + ); + console.log(result); +} + +async function main() { + organizationGetSchemaRegistryClusterById(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationListByResourceGroupSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationListByResourceGroupSample.ts index dd3152967243..2b6518a9d3af 100644 --- a/sdk/confluent/arm-confluent/samples-dev/organizationListByResourceGroupSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/organizationListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all Organizations under the specified resource group. * * @summary List all Organizations under the specified resource group. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_ListByResourceGroup.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListByResourceGroup.json */ async function organizationListByResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function organizationListByResourceGroup() { const client = new ConfluentManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.organization.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationListBySubscriptionSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationListBySubscriptionSample.ts index d74e0b6fd824..3b3bcf8cdc53 100644 --- a/sdk/confluent/arm-confluent/samples-dev/organizationListBySubscriptionSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/organizationListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all organizations under the specified subscription. * * @summary List all organizations under the specified subscription. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_ListBySubscription.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListBySubscription.json */ async function organizationListBySubscription() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationListClustersSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationListClustersSample.ts new file mode 100644 index 000000000000..1ce1b5ff4c96 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/organizationListClustersSample.ts @@ -0,0 +1,54 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + OrganizationListClustersOptionalParams, + ConfluentManagementClient, +} from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists of all the clusters in a environment + * + * @summary Lists of all the clusters in a environment + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ClusterList.json + */ +async function organizationListClusters() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-12132"; + const pageSize = 10; + const options: OrganizationListClustersOptionalParams = { pageSize }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.organization.listClusters( + resourceGroupName, + organizationName, + environmentId, + options, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + organizationListClusters(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationListEnvironmentsSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationListEnvironmentsSample.ts new file mode 100644 index 000000000000..1c7712413e91 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/organizationListEnvironmentsSample.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + OrganizationListEnvironmentsOptionalParams, + ConfluentManagementClient, +} from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists of all the environments in a organization + * + * @summary Lists of all the environments in a organization + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_EnvironmentList.json + */ +async function organizationListEnvironments() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const pageSize = 10; + const options: OrganizationListEnvironmentsOptionalParams = { pageSize }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.organization.listEnvironments( + resourceGroupName, + organizationName, + options, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + organizationListEnvironments(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationListRegionsSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationListRegionsSample.ts new file mode 100644 index 000000000000..60011490dd32 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/organizationListRegionsSample.ts @@ -0,0 +1,54 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ListAccessRequestModel, + ConfluentManagementClient, +} from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to cloud provider regions available for creating Schema Registry clusters. + * + * @summary cloud provider regions available for creating Schema Registry clusters. + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListRegions.json + */ +async function organizationListRegions() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const body: ListAccessRequestModel = { + searchFilters: { + cloud: "azure", + packages: "ADVANCED,ESSENTIALS", + region: "eastus", + }, + }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.listRegions( + resourceGroupName, + organizationName, + body, + ); + console.log(result); +} + +async function main() { + organizationListRegions(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationListSchemaRegistryClustersSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationListSchemaRegistryClustersSample.ts new file mode 100644 index 000000000000..41085249e5d6 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/organizationListSchemaRegistryClustersSample.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get schema registry clusters + * + * @summary Get schema registry clusters + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListSchemaRegistryClusters.json + */ +async function organizationListSchemaRegistryClusters() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-stgcczjp2j3"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.organization.listSchemaRegistryClusters( + resourceGroupName, + organizationName, + environmentId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + organizationListSchemaRegistryClusters(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationOperationsListSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationOperationsListSample.ts index 19a195322d40..2f956546ac1d 100644 --- a/sdk/confluent/arm-confluent/samples-dev/organizationOperationsListSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/organizationOperationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all operations provided by Microsoft.Confluent. * * @summary List all operations provided by Microsoft.Confluent. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/OrganizationOperations_List.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/OrganizationOperations_List.json */ async function organizationOperationsList() { const credential = new DefaultAzureCredential(); diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationUpdateSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationUpdateSample.ts index eb9f194ed417..c9aef3ca73cb 100644 --- a/sdk/confluent/arm-confluent/samples-dev/organizationUpdateSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/organizationUpdateSample.ts @@ -11,7 +11,7 @@ import { OrganizationResourceUpdate, OrganizationUpdateOptionalParams, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Update Organization resource * * @summary Update Organization resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Update.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Update.json */ async function confluentUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function confluentUpdate() { process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; const organizationName = "myOrganization"; const body: OrganizationResourceUpdate = { - tags: { client: "dev-client", env: "dev" } + tags: { client: "dev-client", env: "dev" }, }; const options: OrganizationUpdateOptionalParams = { body }; const credential = new DefaultAzureCredential(); @@ -40,7 +40,7 @@ async function confluentUpdate() { const result = await client.organization.update( resourceGroupName, organizationName, - options + options, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples-dev/validationsValidateOrganizationSample.ts b/sdk/confluent/arm-confluent/samples-dev/validationsValidateOrganizationSample.ts index 589cf820839a..a0e676cae85d 100644 --- a/sdk/confluent/arm-confluent/samples-dev/validationsValidateOrganizationSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/validationsValidateOrganizationSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { OrganizationResource, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Organization Validate proxy resource * * @summary Organization Validate proxy resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Validations_ValidateOrganizations.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Validations_ValidateOrganizations.json */ async function validationsValidateOrganizations() { const subscriptionId = @@ -39,7 +39,7 @@ async function validationsValidateOrganizations() { privateOfferId: "string", privateOfferIds: ["string"], publisherId: "string", - termUnit: "string" + termUnit: "string", }, tags: { environment: "Dev" }, userDetail: { @@ -47,15 +47,15 @@ async function validationsValidateOrganizations() { emailAddress: "abc@microsoft.com", firstName: "string", lastName: "string", - userPrincipalName: "abc@microsoft.com" - } + userPrincipalName: "abc@microsoft.com", + }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.validations.validateOrganization( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples-dev/validationsValidateOrganizationV2Sample.ts b/sdk/confluent/arm-confluent/samples-dev/validationsValidateOrganizationV2Sample.ts index a9d6c32e6bda..017ceb059578 100644 --- a/sdk/confluent/arm-confluent/samples-dev/validationsValidateOrganizationV2Sample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/validationsValidateOrganizationV2Sample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { OrganizationResource, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Organization Validate proxy resource * * @summary Organization Validate proxy resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Validations_ValidateOrganizationsV2.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Validations_ValidateOrganizationsV2.json */ async function validationsValidateOrganizations() { const subscriptionId = @@ -39,7 +39,7 @@ async function validationsValidateOrganizations() { privateOfferId: "string", privateOfferIds: ["string"], publisherId: "string", - termUnit: "string" + termUnit: "string", }, tags: { environment: "Dev" }, userDetail: { @@ -47,15 +47,15 @@ async function validationsValidateOrganizations() { emailAddress: "abc@microsoft.com", firstName: "string", lastName: "string", - userPrincipalName: "abc@microsoft.com" - } + userPrincipalName: "abc@microsoft.com", + }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.validations.validateOrganizationV2( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/README.md b/sdk/confluent/arm-confluent/samples/v3/javascript/README.md index 01a17713c540..ce4ccccdc2c9 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/README.md +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/README.md @@ -2,26 +2,39 @@ These sample programs show how to use the JavaScript client libraries for in some common scenarios. -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [accessInviteUserSample.js][accessinviteusersample] | Invite user to the organization x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_InviteUser.json | -| [accessListClustersSample.js][accesslistclusterssample] | Cluster details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_ClusterList.json | -| [accessListEnvironmentsSample.js][accesslistenvironmentssample] | Environment list of an organization x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_EnvironmentList.json | -| [accessListInvitationsSample.js][accesslistinvitationssample] | Organization accounts invitation details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_InvitationsList.json | -| [accessListRoleBindingsSample.js][accesslistrolebindingssample] | Organization role bindings x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_RoleBindingList.json | -| [accessListServiceAccountsSample.js][accesslistserviceaccountssample] | Organization service accounts details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_ServiceAccountsList.json | -| [accessListUsersSample.js][accesslistuserssample] | Organization users details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_UsersList.json | -| [marketplaceAgreementsCreateSample.js][marketplaceagreementscreatesample] | Create Confluent Marketplace agreement in the subscription. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/MarketplaceAgreements_Create.json | -| [marketplaceAgreementsListSample.js][marketplaceagreementslistsample] | List Confluent marketplace agreements in the subscription. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/MarketplaceAgreements_List.json | -| [organizationCreateSample.js][organizationcreatesample] | Create Organization resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Create.json | -| [organizationDeleteSample.js][organizationdeletesample] | Delete Organization resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Delete.json | -| [organizationGetSample.js][organizationgetsample] | Get the properties of a specific Organization resource. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Get.json | -| [organizationListByResourceGroupSample.js][organizationlistbyresourcegroupsample] | List all Organizations under the specified resource group. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_ListByResourceGroup.json | -| [organizationListBySubscriptionSample.js][organizationlistbysubscriptionsample] | List all organizations under the specified subscription. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_ListBySubscription.json | -| [organizationOperationsListSample.js][organizationoperationslistsample] | List all operations provided by Microsoft.Confluent. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/OrganizationOperations_List.json | -| [organizationUpdateSample.js][organizationupdatesample] | Update Organization resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Update.json | -| [validationsValidateOrganizationSample.js][validationsvalidateorganizationsample] | Organization Validate proxy resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Validations_ValidateOrganizations.json | -| [validationsValidateOrganizationV2Sample.js][validationsvalidateorganizationv2sample] | Organization Validate proxy resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Validations_ValidateOrganizationsV2.json | +| **File Name** | **Description** | +| --------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| [accessCreateRoleBindingSample.js][accesscreaterolebindingsample] | Organization role bindings x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_CreateRoleBinding.json | +| [accessDeleteRoleBindingSample.js][accessdeleterolebindingsample] | Organization role bindings x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_DeleteRoleBinding.json | +| [accessInviteUserSample.js][accessinviteusersample] | Invite user to the organization x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_InviteUser.json | +| [accessListClustersSample.js][accesslistclusterssample] | Cluster details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_ClusterList.json | +| [accessListEnvironmentsSample.js][accesslistenvironmentssample] | Environment list of an organization x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_EnvironmentList.json | +| [accessListInvitationsSample.js][accesslistinvitationssample] | Organization accounts invitation details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_InvitationsList.json | +| [accessListRoleBindingNameListSample.js][accesslistrolebindingnamelistsample] | Organization role bindings x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_RoleBindingNameList.json | +| [accessListRoleBindingsSample.js][accesslistrolebindingssample] | Organization role bindings x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_RoleBindingList.json | +| [accessListServiceAccountsSample.js][accesslistserviceaccountssample] | Organization service accounts details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_ServiceAccountsList.json | +| [accessListUsersSample.js][accesslistuserssample] | Organization users details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_UsersList.json | +| [marketplaceAgreementsCreateSample.js][marketplaceagreementscreatesample] | Create Confluent Marketplace agreement in the subscription. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/MarketplaceAgreements_Create.json | +| [marketplaceAgreementsListSample.js][marketplaceagreementslistsample] | List Confluent marketplace agreements in the subscription. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/MarketplaceAgreements_List.json | +| [organizationCreateApiKeySample.js][organizationcreateapikeysample] | Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_CreateClusterAPIKey.json | +| [organizationCreateSample.js][organizationcreatesample] | Create Organization resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Create.json | +| [organizationDeleteClusterApiKeySample.js][organizationdeleteclusterapikeysample] | Deletes API key of a kafka or schema registry cluster x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_DeleteClusterAPIKey.json | +| [organizationDeleteSample.js][organizationdeletesample] | Delete Organization resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Delete.json | +| [organizationGetClusterApiKeySample.js][organizationgetclusterapikeysample] | Get API key details of a kafka or schema registry cluster x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetClusterAPIKey.json | +| [organizationGetClusterByIdSample.js][organizationgetclusterbyidsample] | Get cluster by Id x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetClusterById.json | +| [organizationGetEnvironmentByIdSample.js][organizationgetenvironmentbyidsample] | Get Environment details by environment Id x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetEnvironmentById.json | +| [organizationGetSample.js][organizationgetsample] | Get the properties of a specific Organization resource. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Get.json | +| [organizationGetSchemaRegistryClusterByIdSample.js][organizationgetschemaregistryclusterbyidsample] | Get schema registry cluster by Id x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetSchemaRegistryClusterById.json | +| [organizationListByResourceGroupSample.js][organizationlistbyresourcegroupsample] | List all Organizations under the specified resource group. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListByResourceGroup.json | +| [organizationListBySubscriptionSample.js][organizationlistbysubscriptionsample] | List all organizations under the specified subscription. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListBySubscription.json | +| [organizationListClustersSample.js][organizationlistclusterssample] | Lists of all the clusters in a environment x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ClusterList.json | +| [organizationListEnvironmentsSample.js][organizationlistenvironmentssample] | Lists of all the environments in a organization x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_EnvironmentList.json | +| [organizationListRegionsSample.js][organizationlistregionssample] | cloud provider regions available for creating Schema Registry clusters. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListRegions.json | +| [organizationListSchemaRegistryClustersSample.js][organizationlistschemaregistryclusterssample] | Get schema registry clusters x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListSchemaRegistryClusters.json | +| [organizationOperationsListSample.js][organizationoperationslistsample] | List all operations provided by Microsoft.Confluent. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/OrganizationOperations_List.json | +| [organizationUpdateSample.js][organizationupdatesample] | Update Organization resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Update.json | +| [validationsValidateOrganizationSample.js][validationsvalidateorganizationsample] | Organization Validate proxy resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Validations_ValidateOrganizations.json | +| [validationsValidateOrganizationV2Sample.js][validationsvalidateorganizationv2sample] | Organization Validate proxy resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Validations_ValidateOrganizationsV2.json | ## Prerequisites @@ -48,33 +61,46 @@ npm install 3. Run whichever samples you like (note that some samples may require additional setup, see the table above): ```bash -node accessInviteUserSample.js +node accessCreateRoleBindingSample.js ``` Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): ```bash -npx cross-env CONFLUENT_SUBSCRIPTION_ID="" CONFLUENT_RESOURCE_GROUP="" node accessInviteUserSample.js +npx cross-env CONFLUENT_SUBSCRIPTION_ID="" CONFLUENT_RESOURCE_GROUP="" node accessCreateRoleBindingSample.js ``` ## Next Steps Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. +[accesscreaterolebindingsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/accessCreateRoleBindingSample.js +[accessdeleterolebindingsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/accessDeleteRoleBindingSample.js [accessinviteusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/accessInviteUserSample.js [accesslistclusterssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/accessListClustersSample.js [accesslistenvironmentssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/accessListEnvironmentsSample.js [accesslistinvitationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/accessListInvitationsSample.js +[accesslistrolebindingnamelistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/accessListRoleBindingNameListSample.js [accesslistrolebindingssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/accessListRoleBindingsSample.js [accesslistserviceaccountssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/accessListServiceAccountsSample.js [accesslistuserssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/accessListUsersSample.js [marketplaceagreementscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/marketplaceAgreementsCreateSample.js [marketplaceagreementslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/marketplaceAgreementsListSample.js +[organizationcreateapikeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationCreateApiKeySample.js [organizationcreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationCreateSample.js +[organizationdeleteclusterapikeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationDeleteClusterApiKeySample.js [organizationdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationDeleteSample.js +[organizationgetclusterapikeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetClusterApiKeySample.js +[organizationgetclusterbyidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetClusterByIdSample.js +[organizationgetenvironmentbyidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetEnvironmentByIdSample.js [organizationgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetSample.js +[organizationgetschemaregistryclusterbyidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetSchemaRegistryClusterByIdSample.js [organizationlistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListByResourceGroupSample.js [organizationlistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListBySubscriptionSample.js +[organizationlistclusterssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListClustersSample.js +[organizationlistenvironmentssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListEnvironmentsSample.js +[organizationlistregionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListRegionsSample.js +[organizationlistschemaregistryclusterssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListSchemaRegistryClustersSample.js [organizationoperationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationOperationsListSample.js [organizationupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationUpdateSample.js [validationsvalidateorganizationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/validationsValidateOrganizationSample.js diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/accessCreateRoleBindingSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/accessCreateRoleBindingSample.js new file mode 100644 index 000000000000..6865af825658 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/accessCreateRoleBindingSample.js @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Organization role bindings + * + * @summary Organization role bindings + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_CreateRoleBinding.json + */ +async function accessCreateRoleBinding() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const body = { + crnPattern: + "crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa/environment=env-aaa1111/cloud-cluster=lkc-1111aaa", + principal: "User:u-111aaa", + roleName: "CloudClusterAdmin", + }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.access.createRoleBinding(resourceGroupName, organizationName, body); + console.log(result); +} + +async function main() { + accessCreateRoleBinding(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/accessDeleteRoleBindingSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/accessDeleteRoleBindingSample.js new file mode 100644 index 000000000000..d1f1c3400d06 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/accessDeleteRoleBindingSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Organization role bindings + * + * @summary Organization role bindings + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_DeleteRoleBinding.json + */ +async function accessDeleteRoleBinding() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const roleBindingId = "dlz-f3a90de"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.access.deleteRoleBinding( + resourceGroupName, + organizationName, + roleBindingId, + ); + console.log(result); +} + +async function main() { + accessDeleteRoleBinding(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/accessInviteUserSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/accessInviteUserSample.js index 816278118d62..05f6c4010681 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/accessInviteUserSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/accessInviteUserSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Invite user to the organization * * @summary Invite user to the organization - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_InviteUser.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_InviteUser.json */ async function accessInviteUser() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListClustersSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListClustersSample.js index 6d79b21ffcc1..2a3453d9ce8c 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListClustersSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListClustersSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Cluster details * * @summary Cluster details - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_ClusterList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_ClusterList.json */ async function accessClusterList() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListEnvironmentsSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListEnvironmentsSample.js index 2bbe9854d808..d44de546d2ae 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListEnvironmentsSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListEnvironmentsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Environment list of an organization * * @summary Environment list of an organization - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_EnvironmentList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_EnvironmentList.json */ async function accessEnvironmentList() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListInvitationsSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListInvitationsSample.js index ae3caf2d893e..9d70512508ff 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListInvitationsSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListInvitationsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Organization accounts invitation details * * @summary Organization accounts invitation details - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_InvitationsList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_InvitationsList.json */ async function accessInvitationsList() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListRoleBindingNameListSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListRoleBindingNameListSample.js new file mode 100644 index 000000000000..ccc904a51cde --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListRoleBindingNameListSample.js @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Organization role bindings + * + * @summary Organization role bindings + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_RoleBindingNameList.json + */ +async function accessRoleBindingNameList() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const body = { + searchFilters: { + crnPattern: "crn://confluent.cloud/organization=1aa7de07-298e-479c-8f2f-16ac91fd8e76", + namespace: + "public,dataplane,networking,identity,datagovernance,connect,streamcatalog,pipelines,ksql", + }, + }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.access.listRoleBindingNameList( + resourceGroupName, + organizationName, + body, + ); + console.log(result); +} + +async function main() { + accessRoleBindingNameList(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListRoleBindingsSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListRoleBindingsSample.js index a6a7f221199c..0f766145dbd2 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListRoleBindingsSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListRoleBindingsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Organization role bindings * * @summary Organization role bindings - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_RoleBindingList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_RoleBindingList.json */ async function accessRoleBindingList() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListServiceAccountsSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListServiceAccountsSample.js index a115760c015a..9e357162ed8f 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListServiceAccountsSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListServiceAccountsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Organization service accounts details * * @summary Organization service accounts details - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_ServiceAccountsList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_ServiceAccountsList.json */ async function accessServiceAccountsList() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListUsersSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListUsersSample.js index be183d01c6db..168cfbd73167 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListUsersSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListUsersSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Organization users details * * @summary Organization users details - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_UsersList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_UsersList.json */ async function accessUsersList() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/marketplaceAgreementsCreateSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/marketplaceAgreementsCreateSample.js index ddad98f9befb..fe40c0fc0a32 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/marketplaceAgreementsCreateSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/marketplaceAgreementsCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create Confluent Marketplace agreement in the subscription. * * @summary Create Confluent Marketplace agreement in the subscription. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/MarketplaceAgreements_Create.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/MarketplaceAgreements_Create.json */ async function marketplaceAgreementsCreate() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/marketplaceAgreementsListSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/marketplaceAgreementsListSample.js index f70367afd4e2..16d9f475bc72 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/marketplaceAgreementsListSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/marketplaceAgreementsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List Confluent marketplace agreements in the subscription. * * @summary List Confluent marketplace agreements in the subscription. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/MarketplaceAgreements_List.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/MarketplaceAgreements_List.json */ async function marketplaceAgreementsList() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationCreateApiKeySample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationCreateApiKeySample.js new file mode 100644 index 000000000000..e63102d2f479 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationCreateApiKeySample.js @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment + * + * @summary Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_CreateClusterAPIKey.json + */ +async function organizationCreateApiKey() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-12132"; + const clusterId = "clusterId-123"; + const body = { + name: "CI kafka access key", + description: "This API key provides kafka access to cluster x", + }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.createAPIKey( + resourceGroupName, + organizationName, + environmentId, + clusterId, + body, + ); + console.log(result); +} + +async function main() { + organizationCreateApiKey(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationCreateSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationCreateSample.js index 72a00d2b36f1..6af0cdd2d9b6 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationCreateSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create Organization resource * * @summary Create Organization resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Create.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Create.json */ async function organizationCreate() { const subscriptionId = @@ -50,7 +50,7 @@ async function organizationCreate() { const result = await client.organization.beginCreateAndWait( resourceGroupName, organizationName, - options + options, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationDeleteClusterApiKeySample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationDeleteClusterApiKeySample.js new file mode 100644 index 000000000000..5423d74d8b0c --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationDeleteClusterApiKeySample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes API key of a kafka or schema registry cluster + * + * @summary Deletes API key of a kafka or schema registry cluster + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_DeleteClusterAPIKey.json + */ +async function organizationDeleteClusterApiKey() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const apiKeyId = "ZFZ6SZZZWGYBEIFB"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.deleteClusterAPIKey( + resourceGroupName, + organizationName, + apiKeyId, + ); + console.log(result); +} + +async function main() { + organizationDeleteClusterApiKey(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationDeleteSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationDeleteSample.js index 1dac7d493432..de052be0de3c 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationDeleteSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete Organization resource * * @summary Delete Organization resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Delete.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Delete.json */ async function confluentDelete() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetClusterApiKeySample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetClusterApiKeySample.js new file mode 100644 index 000000000000..c9fea7053a95 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetClusterApiKeySample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get API key details of a kafka or schema registry cluster + * + * @summary Get API key details of a kafka or schema registry cluster + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetClusterAPIKey.json + */ +async function organizationGetClusterApiKey() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const apiKeyId = "apiKeyId-123"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.getClusterAPIKey( + resourceGroupName, + organizationName, + apiKeyId, + ); + console.log(result); +} + +async function main() { + organizationGetClusterApiKey(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetClusterByIdSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetClusterByIdSample.js new file mode 100644 index 000000000000..85091d644473 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetClusterByIdSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get cluster by Id + * + * @summary Get cluster by Id + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetClusterById.json + */ +async function organizationGetClusterById() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-12132"; + const clusterId = "dlz-f3a90de"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.getClusterById( + resourceGroupName, + organizationName, + environmentId, + clusterId, + ); + console.log(result); +} + +async function main() { + organizationGetClusterById(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetEnvironmentByIdSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetEnvironmentByIdSample.js new file mode 100644 index 000000000000..1fda60b7ae62 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetEnvironmentByIdSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get Environment details by environment Id + * + * @summary Get Environment details by environment Id + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetEnvironmentById.json + */ +async function organizationGetEnvironmentById() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "dlz-f3a90de"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.getEnvironmentById( + resourceGroupName, + organizationName, + environmentId, + ); + console.log(result); +} + +async function main() { + organizationGetEnvironmentById(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetSample.js index fa468ed7cf44..ba02ecff2722 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the properties of a specific Organization resource. * * @summary Get the properties of a specific Organization resource. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Get.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Get.json */ async function organizationGet() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetSchemaRegistryClusterByIdSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetSchemaRegistryClusterByIdSample.js new file mode 100644 index 000000000000..e456cdf84f03 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetSchemaRegistryClusterByIdSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get schema registry cluster by Id + * + * @summary Get schema registry cluster by Id + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetSchemaRegistryClusterById.json + */ +async function organizationGetSchemaRegistryClusterById() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-stgcczjp2j3"; + const clusterId = "lsrc-stgczkq22z"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.getSchemaRegistryClusterById( + resourceGroupName, + organizationName, + environmentId, + clusterId, + ); + console.log(result); +} + +async function main() { + organizationGetSchemaRegistryClusterById(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListByResourceGroupSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListByResourceGroupSample.js index b768c92d6f6e..0fbc944fe690 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListByResourceGroupSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all Organizations under the specified resource group. * * @summary List all Organizations under the specified resource group. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_ListByResourceGroup.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListByResourceGroup.json */ async function organizationListByResourceGroup() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListBySubscriptionSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListBySubscriptionSample.js index 927f7f80c473..a53e7b621745 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListBySubscriptionSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all organizations under the specified subscription. * * @summary List all organizations under the specified subscription. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_ListBySubscription.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListBySubscription.json */ async function organizationListBySubscription() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListClustersSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListClustersSample.js new file mode 100644 index 000000000000..be0e54e01d4e --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListClustersSample.js @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists of all the clusters in a environment + * + * @summary Lists of all the clusters in a environment + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ClusterList.json + */ +async function organizationListClusters() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-12132"; + const pageSize = 10; + const options = { pageSize }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.organization.listClusters( + resourceGroupName, + organizationName, + environmentId, + options, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + organizationListClusters(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListEnvironmentsSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListEnvironmentsSample.js new file mode 100644 index 000000000000..c3a28683620e --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListEnvironmentsSample.js @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists of all the environments in a organization + * + * @summary Lists of all the environments in a organization + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_EnvironmentList.json + */ +async function organizationListEnvironments() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const pageSize = 10; + const options = { pageSize }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.organization.listEnvironments( + resourceGroupName, + organizationName, + options, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + organizationListEnvironments(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListRegionsSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListRegionsSample.js new file mode 100644 index 000000000000..0ce92a19678c --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListRegionsSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to cloud provider regions available for creating Schema Registry clusters. + * + * @summary cloud provider regions available for creating Schema Registry clusters. + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListRegions.json + */ +async function organizationListRegions() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const body = { + searchFilters: { + cloud: "azure", + packages: "ADVANCED,ESSENTIALS", + region: "eastus", + }, + }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.listRegions(resourceGroupName, organizationName, body); + console.log(result); +} + +async function main() { + organizationListRegions(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListSchemaRegistryClustersSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListSchemaRegistryClustersSample.js new file mode 100644 index 000000000000..8aa0e0de8fde --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListSchemaRegistryClustersSample.js @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get schema registry clusters + * + * @summary Get schema registry clusters + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListSchemaRegistryClusters.json + */ +async function organizationListSchemaRegistryClusters() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-stgcczjp2j3"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.organization.listSchemaRegistryClusters( + resourceGroupName, + organizationName, + environmentId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + organizationListSchemaRegistryClusters(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationOperationsListSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationOperationsListSample.js index 3e60bab13ae6..fe91fdf851de 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationOperationsListSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationOperationsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all operations provided by Microsoft.Confluent. * * @summary List all operations provided by Microsoft.Confluent. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/OrganizationOperations_List.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/OrganizationOperations_List.json */ async function organizationOperationsList() { const credential = new DefaultAzureCredential(); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationUpdateSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationUpdateSample.js index 1e773143b577..676d0890dcbc 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationUpdateSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update Organization resource * * @summary Update Organization resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Update.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Update.json */ async function confluentUpdate() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/validationsValidateOrganizationSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/validationsValidateOrganizationSample.js index defa945b22bf..f24fdc2182ac 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/validationsValidateOrganizationSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/validationsValidateOrganizationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Organization Validate proxy resource * * @summary Organization Validate proxy resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Validations_ValidateOrganizations.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Validations_ValidateOrganizations.json */ async function validationsValidateOrganizations() { const subscriptionId = @@ -48,7 +48,7 @@ async function validationsValidateOrganizations() { const result = await client.validations.validateOrganization( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/validationsValidateOrganizationV2Sample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/validationsValidateOrganizationV2Sample.js index 31f47eae4587..59c1b45b09e7 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/validationsValidateOrganizationV2Sample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/validationsValidateOrganizationV2Sample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Organization Validate proxy resource * * @summary Organization Validate proxy resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Validations_ValidateOrganizationsV2.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Validations_ValidateOrganizationsV2.json */ async function validationsValidateOrganizations() { const subscriptionId = @@ -48,7 +48,7 @@ async function validationsValidateOrganizations() { const result = await client.validations.validateOrganizationV2( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/README.md b/sdk/confluent/arm-confluent/samples/v3/typescript/README.md index 7cf7358dc4f9..f6f383e85ec1 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/README.md +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/README.md @@ -2,26 +2,39 @@ These sample programs show how to use the TypeScript client libraries for in some common scenarios. -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [accessInviteUserSample.ts][accessinviteusersample] | Invite user to the organization x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_InviteUser.json | -| [accessListClustersSample.ts][accesslistclusterssample] | Cluster details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_ClusterList.json | -| [accessListEnvironmentsSample.ts][accesslistenvironmentssample] | Environment list of an organization x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_EnvironmentList.json | -| [accessListInvitationsSample.ts][accesslistinvitationssample] | Organization accounts invitation details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_InvitationsList.json | -| [accessListRoleBindingsSample.ts][accesslistrolebindingssample] | Organization role bindings x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_RoleBindingList.json | -| [accessListServiceAccountsSample.ts][accesslistserviceaccountssample] | Organization service accounts details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_ServiceAccountsList.json | -| [accessListUsersSample.ts][accesslistuserssample] | Organization users details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_UsersList.json | -| [marketplaceAgreementsCreateSample.ts][marketplaceagreementscreatesample] | Create Confluent Marketplace agreement in the subscription. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/MarketplaceAgreements_Create.json | -| [marketplaceAgreementsListSample.ts][marketplaceagreementslistsample] | List Confluent marketplace agreements in the subscription. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/MarketplaceAgreements_List.json | -| [organizationCreateSample.ts][organizationcreatesample] | Create Organization resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Create.json | -| [organizationDeleteSample.ts][organizationdeletesample] | Delete Organization resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Delete.json | -| [organizationGetSample.ts][organizationgetsample] | Get the properties of a specific Organization resource. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Get.json | -| [organizationListByResourceGroupSample.ts][organizationlistbyresourcegroupsample] | List all Organizations under the specified resource group. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_ListByResourceGroup.json | -| [organizationListBySubscriptionSample.ts][organizationlistbysubscriptionsample] | List all organizations under the specified subscription. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_ListBySubscription.json | -| [organizationOperationsListSample.ts][organizationoperationslistsample] | List all operations provided by Microsoft.Confluent. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/OrganizationOperations_List.json | -| [organizationUpdateSample.ts][organizationupdatesample] | Update Organization resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Update.json | -| [validationsValidateOrganizationSample.ts][validationsvalidateorganizationsample] | Organization Validate proxy resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Validations_ValidateOrganizations.json | -| [validationsValidateOrganizationV2Sample.ts][validationsvalidateorganizationv2sample] | Organization Validate proxy resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Validations_ValidateOrganizationsV2.json | +| **File Name** | **Description** | +| --------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| [accessCreateRoleBindingSample.ts][accesscreaterolebindingsample] | Organization role bindings x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_CreateRoleBinding.json | +| [accessDeleteRoleBindingSample.ts][accessdeleterolebindingsample] | Organization role bindings x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_DeleteRoleBinding.json | +| [accessInviteUserSample.ts][accessinviteusersample] | Invite user to the organization x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_InviteUser.json | +| [accessListClustersSample.ts][accesslistclusterssample] | Cluster details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_ClusterList.json | +| [accessListEnvironmentsSample.ts][accesslistenvironmentssample] | Environment list of an organization x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_EnvironmentList.json | +| [accessListInvitationsSample.ts][accesslistinvitationssample] | Organization accounts invitation details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_InvitationsList.json | +| [accessListRoleBindingNameListSample.ts][accesslistrolebindingnamelistsample] | Organization role bindings x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_RoleBindingNameList.json | +| [accessListRoleBindingsSample.ts][accesslistrolebindingssample] | Organization role bindings x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_RoleBindingList.json | +| [accessListServiceAccountsSample.ts][accesslistserviceaccountssample] | Organization service accounts details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_ServiceAccountsList.json | +| [accessListUsersSample.ts][accesslistuserssample] | Organization users details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_UsersList.json | +| [marketplaceAgreementsCreateSample.ts][marketplaceagreementscreatesample] | Create Confluent Marketplace agreement in the subscription. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/MarketplaceAgreements_Create.json | +| [marketplaceAgreementsListSample.ts][marketplaceagreementslistsample] | List Confluent marketplace agreements in the subscription. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/MarketplaceAgreements_List.json | +| [organizationCreateApiKeySample.ts][organizationcreateapikeysample] | Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_CreateClusterAPIKey.json | +| [organizationCreateSample.ts][organizationcreatesample] | Create Organization resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Create.json | +| [organizationDeleteClusterApiKeySample.ts][organizationdeleteclusterapikeysample] | Deletes API key of a kafka or schema registry cluster x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_DeleteClusterAPIKey.json | +| [organizationDeleteSample.ts][organizationdeletesample] | Delete Organization resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Delete.json | +| [organizationGetClusterApiKeySample.ts][organizationgetclusterapikeysample] | Get API key details of a kafka or schema registry cluster x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetClusterAPIKey.json | +| [organizationGetClusterByIdSample.ts][organizationgetclusterbyidsample] | Get cluster by Id x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetClusterById.json | +| [organizationGetEnvironmentByIdSample.ts][organizationgetenvironmentbyidsample] | Get Environment details by environment Id x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetEnvironmentById.json | +| [organizationGetSample.ts][organizationgetsample] | Get the properties of a specific Organization resource. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Get.json | +| [organizationGetSchemaRegistryClusterByIdSample.ts][organizationgetschemaregistryclusterbyidsample] | Get schema registry cluster by Id x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetSchemaRegistryClusterById.json | +| [organizationListByResourceGroupSample.ts][organizationlistbyresourcegroupsample] | List all Organizations under the specified resource group. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListByResourceGroup.json | +| [organizationListBySubscriptionSample.ts][organizationlistbysubscriptionsample] | List all organizations under the specified subscription. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListBySubscription.json | +| [organizationListClustersSample.ts][organizationlistclusterssample] | Lists of all the clusters in a environment x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ClusterList.json | +| [organizationListEnvironmentsSample.ts][organizationlistenvironmentssample] | Lists of all the environments in a organization x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_EnvironmentList.json | +| [organizationListRegionsSample.ts][organizationlistregionssample] | cloud provider regions available for creating Schema Registry clusters. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListRegions.json | +| [organizationListSchemaRegistryClustersSample.ts][organizationlistschemaregistryclusterssample] | Get schema registry clusters x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListSchemaRegistryClusters.json | +| [organizationOperationsListSample.ts][organizationoperationslistsample] | List all operations provided by Microsoft.Confluent. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/OrganizationOperations_List.json | +| [organizationUpdateSample.ts][organizationupdatesample] | Update Organization resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Update.json | +| [validationsValidateOrganizationSample.ts][validationsvalidateorganizationsample] | Organization Validate proxy resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Validations_ValidateOrganizations.json | +| [validationsValidateOrganizationV2Sample.ts][validationsvalidateorganizationv2sample] | Organization Validate proxy resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Validations_ValidateOrganizationsV2.json | ## Prerequisites @@ -60,33 +73,46 @@ npm run build 4. Run whichever samples you like (note that some samples may require additional setup, see the table above): ```bash -node dist/accessInviteUserSample.js +node dist/accessCreateRoleBindingSample.js ``` Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): ```bash -npx cross-env CONFLUENT_SUBSCRIPTION_ID="" CONFLUENT_RESOURCE_GROUP="" node dist/accessInviteUserSample.js +npx cross-env CONFLUENT_SUBSCRIPTION_ID="" CONFLUENT_RESOURCE_GROUP="" node dist/accessCreateRoleBindingSample.js ``` ## Next Steps Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. +[accesscreaterolebindingsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessCreateRoleBindingSample.ts +[accessdeleterolebindingsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessDeleteRoleBindingSample.ts [accessinviteusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessInviteUserSample.ts [accesslistclusterssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListClustersSample.ts [accesslistenvironmentssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListEnvironmentsSample.ts [accesslistinvitationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListInvitationsSample.ts +[accesslistrolebindingnamelistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListRoleBindingNameListSample.ts [accesslistrolebindingssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListRoleBindingsSample.ts [accesslistserviceaccountssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListServiceAccountsSample.ts [accesslistuserssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListUsersSample.ts [marketplaceagreementscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/marketplaceAgreementsCreateSample.ts [marketplaceagreementslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/marketplaceAgreementsListSample.ts +[organizationcreateapikeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationCreateApiKeySample.ts [organizationcreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationCreateSample.ts +[organizationdeleteclusterapikeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationDeleteClusterApiKeySample.ts [organizationdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationDeleteSample.ts +[organizationgetclusterapikeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetClusterApiKeySample.ts +[organizationgetclusterbyidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetClusterByIdSample.ts +[organizationgetenvironmentbyidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetEnvironmentByIdSample.ts [organizationgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetSample.ts +[organizationgetschemaregistryclusterbyidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetSchemaRegistryClusterByIdSample.ts [organizationlistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListByResourceGroupSample.ts [organizationlistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListBySubscriptionSample.ts +[organizationlistclusterssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListClustersSample.ts +[organizationlistenvironmentssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListEnvironmentsSample.ts +[organizationlistregionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListRegionsSample.ts +[organizationlistschemaregistryclusterssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListSchemaRegistryClustersSample.ts [organizationoperationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationOperationsListSample.ts [organizationupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationUpdateSample.ts [validationsvalidateorganizationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/validationsValidateOrganizationSample.ts diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessCreateRoleBindingSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessCreateRoleBindingSample.ts new file mode 100644 index 000000000000..197475b1f20c --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessCreateRoleBindingSample.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + AccessCreateRoleBindingRequestModel, + ConfluentManagementClient, +} from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Organization role bindings + * + * @summary Organization role bindings + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_CreateRoleBinding.json + */ +async function accessCreateRoleBinding() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const body: AccessCreateRoleBindingRequestModel = { + crnPattern: + "crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa/environment=env-aaa1111/cloud-cluster=lkc-1111aaa", + principal: "User:u-111aaa", + roleName: "CloudClusterAdmin", + }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.access.createRoleBinding( + resourceGroupName, + organizationName, + body, + ); + console.log(result); +} + +async function main() { + accessCreateRoleBinding(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessDeleteRoleBindingSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessDeleteRoleBindingSample.ts new file mode 100644 index 000000000000..da5970a6c279 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessDeleteRoleBindingSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Organization role bindings + * + * @summary Organization role bindings + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_DeleteRoleBinding.json + */ +async function accessDeleteRoleBinding() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const roleBindingId = "dlz-f3a90de"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.access.deleteRoleBinding( + resourceGroupName, + organizationName, + roleBindingId, + ); + console.log(result); +} + +async function main() { + accessDeleteRoleBinding(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessInviteUserSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessInviteUserSample.ts index 5634690a3ae1..c917ce28a1f1 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessInviteUserSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessInviteUserSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { AccessInviteUserAccountModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Invite user to the organization * * @summary Invite user to the organization - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_InviteUser.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_InviteUser.json */ async function accessInviteUser() { const subscriptionId = @@ -33,15 +33,15 @@ async function accessInviteUser() { const body: AccessInviteUserAccountModel = { invitedUserDetails: { authType: "AUTH_TYPE_SSO", - invitedEmail: "user2@onmicrosoft.com" - } + invitedEmail: "user2@onmicrosoft.com", + }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.inviteUser( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListClustersSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListClustersSample.ts index 900e9a46d0e6..1b24afebc699 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListClustersSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListClustersSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ListAccessRequestModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Cluster details * * @summary Cluster details - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_ClusterList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_ClusterList.json */ async function accessClusterList() { const subscriptionId = @@ -31,14 +31,14 @@ async function accessClusterList() { process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; const organizationName = "myOrganization"; const body: ListAccessRequestModel = { - searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" } + searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.listClusters( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListEnvironmentsSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListEnvironmentsSample.ts index 8b2a89bd89a3..897b1c50cf67 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListEnvironmentsSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListEnvironmentsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ListAccessRequestModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Environment list of an organization * * @summary Environment list of an organization - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_EnvironmentList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_EnvironmentList.json */ async function accessEnvironmentList() { const subscriptionId = @@ -31,14 +31,14 @@ async function accessEnvironmentList() { process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; const organizationName = "myOrganization"; const body: ListAccessRequestModel = { - searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" } + searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.listEnvironments( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListInvitationsSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListInvitationsSample.ts index b3a8ad0b4364..348bbc4315b7 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListInvitationsSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListInvitationsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ListAccessRequestModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Organization accounts invitation details * * @summary Organization accounts invitation details - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_InvitationsList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_InvitationsList.json */ async function accessInvitationsList() { const subscriptionId = @@ -34,15 +34,15 @@ async function accessInvitationsList() { searchFilters: { pageSize: "10", pageToken: "asc4fts4ft", - status: "INVITE_STATUS_SENT" - } + status: "INVITE_STATUS_SENT", + }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.listInvitations( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListRoleBindingNameListSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListRoleBindingNameListSample.ts new file mode 100644 index 000000000000..5a5f945a2ca3 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListRoleBindingNameListSample.ts @@ -0,0 +1,55 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ListAccessRequestModel, + ConfluentManagementClient, +} from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Organization role bindings + * + * @summary Organization role bindings + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_RoleBindingNameList.json + */ +async function accessRoleBindingNameList() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const body: ListAccessRequestModel = { + searchFilters: { + crnPattern: + "crn://confluent.cloud/organization=1aa7de07-298e-479c-8f2f-16ac91fd8e76", + namespace: + "public,dataplane,networking,identity,datagovernance,connect,streamcatalog,pipelines,ksql", + }, + }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.access.listRoleBindingNameList( + resourceGroupName, + organizationName, + body, + ); + console.log(result); +} + +async function main() { + accessRoleBindingNameList(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListRoleBindingsSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListRoleBindingsSample.ts index 4cd5da44d1a5..ca28e87e9a1f 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListRoleBindingsSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListRoleBindingsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ListAccessRequestModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Organization role bindings * * @summary Organization role bindings - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_RoleBindingList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_RoleBindingList.json */ async function accessRoleBindingList() { const subscriptionId = @@ -31,14 +31,14 @@ async function accessRoleBindingList() { process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; const organizationName = "myOrganization"; const body: ListAccessRequestModel = { - searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" } + searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.listRoleBindings( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListServiceAccountsSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListServiceAccountsSample.ts index 4b5ffb8ea3d6..29d86e806bb4 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListServiceAccountsSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListServiceAccountsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ListAccessRequestModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Organization service accounts details * * @summary Organization service accounts details - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_ServiceAccountsList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_ServiceAccountsList.json */ async function accessServiceAccountsList() { const subscriptionId = @@ -31,14 +31,14 @@ async function accessServiceAccountsList() { process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; const organizationName = "myOrganization"; const body: ListAccessRequestModel = { - searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" } + searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.listServiceAccounts( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListUsersSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListUsersSample.ts index cf037a2c1b51..43d6badc7966 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListUsersSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListUsersSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ListAccessRequestModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Organization users details * * @summary Organization users details - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_UsersList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_UsersList.json */ async function accessUsersList() { const subscriptionId = @@ -31,14 +31,14 @@ async function accessUsersList() { process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; const organizationName = "myOrganization"; const body: ListAccessRequestModel = { - searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" } + searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.listUsers( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/marketplaceAgreementsCreateSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/marketplaceAgreementsCreateSample.ts index 134427e70114..abc5964bfb3f 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/marketplaceAgreementsCreateSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/marketplaceAgreementsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create Confluent Marketplace agreement in the subscription. * * @summary Create Confluent Marketplace agreement in the subscription. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/MarketplaceAgreements_Create.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/MarketplaceAgreements_Create.json */ async function marketplaceAgreementsCreate() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/marketplaceAgreementsListSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/marketplaceAgreementsListSample.ts index 0e601dd4df6a..fadf5d5fc293 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/marketplaceAgreementsListSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/marketplaceAgreementsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List Confluent marketplace agreements in the subscription. * * @summary List Confluent marketplace agreements in the subscription. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/MarketplaceAgreements_List.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/MarketplaceAgreements_List.json */ async function marketplaceAgreementsList() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationCreateApiKeySample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationCreateApiKeySample.ts new file mode 100644 index 000000000000..23904416bdf3 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationCreateApiKeySample.ts @@ -0,0 +1,55 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + CreateAPIKeyModel, + ConfluentManagementClient, +} from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment + * + * @summary Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_CreateClusterAPIKey.json + */ +async function organizationCreateApiKey() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-12132"; + const clusterId = "clusterId-123"; + const body: CreateAPIKeyModel = { + name: "CI kafka access key", + description: "This API key provides kafka access to cluster x", + }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.createAPIKey( + resourceGroupName, + organizationName, + environmentId, + clusterId, + body, + ); + console.log(result); +} + +async function main() { + organizationCreateApiKey(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationCreateSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationCreateSample.ts index 08fbb77de91f..5c9487ffed2b 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationCreateSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationCreateSample.ts @@ -11,7 +11,7 @@ import { OrganizationResource, OrganizationCreateOptionalParams, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Create Organization resource * * @summary Create Organization resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Create.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Create.json */ async function organizationCreate() { const subscriptionId = @@ -41,7 +41,7 @@ async function organizationCreate() { privateOfferId: "string", privateOfferIds: ["string"], publisherId: "string", - termUnit: "string" + termUnit: "string", }, tags: { environment: "Dev" }, userDetail: { @@ -49,8 +49,8 @@ async function organizationCreate() { emailAddress: "contoso@microsoft.com", firstName: "string", lastName: "string", - userPrincipalName: "contoso@microsoft.com" - } + userPrincipalName: "contoso@microsoft.com", + }, }; const options: OrganizationCreateOptionalParams = { body }; const credential = new DefaultAzureCredential(); @@ -58,7 +58,7 @@ async function organizationCreate() { const result = await client.organization.beginCreateAndWait( resourceGroupName, organizationName, - options + options, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationDeleteClusterApiKeySample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationDeleteClusterApiKeySample.ts new file mode 100644 index 000000000000..0bdd114a48cd --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationDeleteClusterApiKeySample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes API key of a kafka or schema registry cluster + * + * @summary Deletes API key of a kafka or schema registry cluster + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_DeleteClusterAPIKey.json + */ +async function organizationDeleteClusterApiKey() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const apiKeyId = "ZFZ6SZZZWGYBEIFB"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.deleteClusterAPIKey( + resourceGroupName, + organizationName, + apiKeyId, + ); + console.log(result); +} + +async function main() { + organizationDeleteClusterApiKey(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationDeleteSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationDeleteSample.ts index 7c4a5edbdd6b..df129918b09f 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationDeleteSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete Organization resource * * @summary Delete Organization resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Delete.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Delete.json */ async function confluentDelete() { const subscriptionId = @@ -31,7 +31,7 @@ async function confluentDelete() { const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.organization.beginDeleteAndWait( resourceGroupName, - organizationName + organizationName, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetClusterApiKeySample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetClusterApiKeySample.ts new file mode 100644 index 000000000000..a3ce47be0ad6 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetClusterApiKeySample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get API key details of a kafka or schema registry cluster + * + * @summary Get API key details of a kafka or schema registry cluster + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetClusterAPIKey.json + */ +async function organizationGetClusterApiKey() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const apiKeyId = "apiKeyId-123"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.getClusterAPIKey( + resourceGroupName, + organizationName, + apiKeyId, + ); + console.log(result); +} + +async function main() { + organizationGetClusterApiKey(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetClusterByIdSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetClusterByIdSample.ts new file mode 100644 index 000000000000..0a9a7d91fc71 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetClusterByIdSample.ts @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get cluster by Id + * + * @summary Get cluster by Id + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetClusterById.json + */ +async function organizationGetClusterById() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-12132"; + const clusterId = "dlz-f3a90de"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.getClusterById( + resourceGroupName, + organizationName, + environmentId, + clusterId, + ); + console.log(result); +} + +async function main() { + organizationGetClusterById(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetEnvironmentByIdSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetEnvironmentByIdSample.ts new file mode 100644 index 000000000000..459f2b029aed --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetEnvironmentByIdSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get Environment details by environment Id + * + * @summary Get Environment details by environment Id + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetEnvironmentById.json + */ +async function organizationGetEnvironmentById() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "dlz-f3a90de"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.getEnvironmentById( + resourceGroupName, + organizationName, + environmentId, + ); + console.log(result); +} + +async function main() { + organizationGetEnvironmentById(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetSample.ts index 94b488337c74..9ba4cb107618 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the properties of a specific Organization resource. * * @summary Get the properties of a specific Organization resource. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Get.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Get.json */ async function organizationGet() { const subscriptionId = @@ -31,7 +31,7 @@ async function organizationGet() { const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.organization.get( resourceGroupName, - organizationName + organizationName, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetSchemaRegistryClusterByIdSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetSchemaRegistryClusterByIdSample.ts new file mode 100644 index 000000000000..1bcdb5a65be4 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetSchemaRegistryClusterByIdSample.ts @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get schema registry cluster by Id + * + * @summary Get schema registry cluster by Id + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetSchemaRegistryClusterById.json + */ +async function organizationGetSchemaRegistryClusterById() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-stgcczjp2j3"; + const clusterId = "lsrc-stgczkq22z"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.getSchemaRegistryClusterById( + resourceGroupName, + organizationName, + environmentId, + clusterId, + ); + console.log(result); +} + +async function main() { + organizationGetSchemaRegistryClusterById(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListByResourceGroupSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListByResourceGroupSample.ts index dd3152967243..2b6518a9d3af 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListByResourceGroupSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all Organizations under the specified resource group. * * @summary List all Organizations under the specified resource group. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_ListByResourceGroup.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListByResourceGroup.json */ async function organizationListByResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function organizationListByResourceGroup() { const client = new ConfluentManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.organization.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListBySubscriptionSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListBySubscriptionSample.ts index d74e0b6fd824..3b3bcf8cdc53 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListBySubscriptionSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all organizations under the specified subscription. * * @summary List all organizations under the specified subscription. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_ListBySubscription.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListBySubscription.json */ async function organizationListBySubscription() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListClustersSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListClustersSample.ts new file mode 100644 index 000000000000..1ce1b5ff4c96 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListClustersSample.ts @@ -0,0 +1,54 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + OrganizationListClustersOptionalParams, + ConfluentManagementClient, +} from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists of all the clusters in a environment + * + * @summary Lists of all the clusters in a environment + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ClusterList.json + */ +async function organizationListClusters() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-12132"; + const pageSize = 10; + const options: OrganizationListClustersOptionalParams = { pageSize }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.organization.listClusters( + resourceGroupName, + organizationName, + environmentId, + options, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + organizationListClusters(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListEnvironmentsSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListEnvironmentsSample.ts new file mode 100644 index 000000000000..1c7712413e91 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListEnvironmentsSample.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + OrganizationListEnvironmentsOptionalParams, + ConfluentManagementClient, +} from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists of all the environments in a organization + * + * @summary Lists of all the environments in a organization + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_EnvironmentList.json + */ +async function organizationListEnvironments() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const pageSize = 10; + const options: OrganizationListEnvironmentsOptionalParams = { pageSize }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.organization.listEnvironments( + resourceGroupName, + organizationName, + options, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + organizationListEnvironments(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListRegionsSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListRegionsSample.ts new file mode 100644 index 000000000000..60011490dd32 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListRegionsSample.ts @@ -0,0 +1,54 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ListAccessRequestModel, + ConfluentManagementClient, +} from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to cloud provider regions available for creating Schema Registry clusters. + * + * @summary cloud provider regions available for creating Schema Registry clusters. + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListRegions.json + */ +async function organizationListRegions() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const body: ListAccessRequestModel = { + searchFilters: { + cloud: "azure", + packages: "ADVANCED,ESSENTIALS", + region: "eastus", + }, + }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.listRegions( + resourceGroupName, + organizationName, + body, + ); + console.log(result); +} + +async function main() { + organizationListRegions(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListSchemaRegistryClustersSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListSchemaRegistryClustersSample.ts new file mode 100644 index 000000000000..41085249e5d6 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListSchemaRegistryClustersSample.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get schema registry clusters + * + * @summary Get schema registry clusters + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListSchemaRegistryClusters.json + */ +async function organizationListSchemaRegistryClusters() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-stgcczjp2j3"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.organization.listSchemaRegistryClusters( + resourceGroupName, + organizationName, + environmentId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + organizationListSchemaRegistryClusters(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationOperationsListSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationOperationsListSample.ts index 19a195322d40..2f956546ac1d 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationOperationsListSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationOperationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all operations provided by Microsoft.Confluent. * * @summary List all operations provided by Microsoft.Confluent. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/OrganizationOperations_List.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/OrganizationOperations_List.json */ async function organizationOperationsList() { const credential = new DefaultAzureCredential(); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationUpdateSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationUpdateSample.ts index eb9f194ed417..c9aef3ca73cb 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationUpdateSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationUpdateSample.ts @@ -11,7 +11,7 @@ import { OrganizationResourceUpdate, OrganizationUpdateOptionalParams, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Update Organization resource * * @summary Update Organization resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Update.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Update.json */ async function confluentUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function confluentUpdate() { process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; const organizationName = "myOrganization"; const body: OrganizationResourceUpdate = { - tags: { client: "dev-client", env: "dev" } + tags: { client: "dev-client", env: "dev" }, }; const options: OrganizationUpdateOptionalParams = { body }; const credential = new DefaultAzureCredential(); @@ -40,7 +40,7 @@ async function confluentUpdate() { const result = await client.organization.update( resourceGroupName, organizationName, - options + options, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/validationsValidateOrganizationSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/validationsValidateOrganizationSample.ts index 589cf820839a..a0e676cae85d 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/validationsValidateOrganizationSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/validationsValidateOrganizationSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { OrganizationResource, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Organization Validate proxy resource * * @summary Organization Validate proxy resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Validations_ValidateOrganizations.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Validations_ValidateOrganizations.json */ async function validationsValidateOrganizations() { const subscriptionId = @@ -39,7 +39,7 @@ async function validationsValidateOrganizations() { privateOfferId: "string", privateOfferIds: ["string"], publisherId: "string", - termUnit: "string" + termUnit: "string", }, tags: { environment: "Dev" }, userDetail: { @@ -47,15 +47,15 @@ async function validationsValidateOrganizations() { emailAddress: "abc@microsoft.com", firstName: "string", lastName: "string", - userPrincipalName: "abc@microsoft.com" - } + userPrincipalName: "abc@microsoft.com", + }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.validations.validateOrganization( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/validationsValidateOrganizationV2Sample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/validationsValidateOrganizationV2Sample.ts index a9d6c32e6bda..017ceb059578 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/validationsValidateOrganizationV2Sample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/validationsValidateOrganizationV2Sample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { OrganizationResource, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Organization Validate proxy resource * * @summary Organization Validate proxy resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Validations_ValidateOrganizationsV2.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Validations_ValidateOrganizationsV2.json */ async function validationsValidateOrganizations() { const subscriptionId = @@ -39,7 +39,7 @@ async function validationsValidateOrganizations() { privateOfferId: "string", privateOfferIds: ["string"], publisherId: "string", - termUnit: "string" + termUnit: "string", }, tags: { environment: "Dev" }, userDetail: { @@ -47,15 +47,15 @@ async function validationsValidateOrganizations() { emailAddress: "abc@microsoft.com", firstName: "string", lastName: "string", - userPrincipalName: "abc@microsoft.com" - } + userPrincipalName: "abc@microsoft.com", + }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.validations.validateOrganizationV2( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/src/confluentManagementClient.ts b/sdk/confluent/arm-confluent/src/confluentManagementClient.ts index 32ac598b7030..09d848fa33ef 100644 --- a/sdk/confluent/arm-confluent/src/confluentManagementClient.ts +++ b/sdk/confluent/arm-confluent/src/confluentManagementClient.ts @@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { @@ -19,14 +19,14 @@ import { OrganizationOperationsImpl, OrganizationImpl, ValidationsImpl, - AccessImpl + AccessImpl, } from "./operations"; import { MarketplaceAgreements, OrganizationOperations, Organization, Validations, - Access + Access, } from "./operationsInterfaces"; import { ConfluentManagementClientOptionalParams } from "./models"; @@ -38,22 +38,22 @@ export class ConfluentManagementClient extends coreClient.ServiceClient { /** * Initializes a new instance of the ConfluentManagementClient class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The ID of the target subscription. The value must be an UUID. + * @param subscriptionId Microsoft Azure subscription id * @param options The parameter options */ constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: ConfluentManagementClientOptionalParams + options?: ConfluentManagementClientOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, - options?: ConfluentManagementClientOptionalParams + options?: ConfluentManagementClientOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, subscriptionIdOrOptions?: ConfluentManagementClientOptionalParams | string, - options?: ConfluentManagementClientOptionalParams + options?: ConfluentManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -73,10 +73,10 @@ export class ConfluentManagementClient extends coreClient.ServiceClient { } const defaults: ConfluentManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-confluent/3.0.1`; + const packageDetails = `azsdk-js-arm-confluent/3.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -86,20 +86,21 @@ export class ConfluentManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -109,7 +110,7 @@ export class ConfluentManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -119,9 +120,9 @@ export class ConfluentManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -129,7 +130,7 @@ export class ConfluentManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-08-22"; + this.apiVersion = options.apiVersion || "2024-02-13"; this.marketplaceAgreements = new MarketplaceAgreementsImpl(this); this.organizationOperations = new OrganizationOperationsImpl(this); this.organization = new OrganizationImpl(this); @@ -147,7 +148,7 @@ export class ConfluentManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -161,7 +162,7 @@ export class ConfluentManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } diff --git a/sdk/confluent/arm-confluent/src/lroImpl.ts b/sdk/confluent/arm-confluent/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/confluent/arm-confluent/src/lroImpl.ts +++ b/sdk/confluent/arm-confluent/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/confluent/arm-confluent/src/models/index.ts b/sdk/confluent/arm-confluent/src/models/index.ts index fd7750cf9700..0e669c7d40af 100644 --- a/sdk/confluent/arm-confluent/src/models/index.ts +++ b/sdk/confluent/arm-confluent/src/models/index.ts @@ -385,17 +385,17 @@ export interface AccessInvitedUserDetails { authType?: string; } -/** List environments success response */ +/** Details of the environments returned on successful response */ export interface AccessListEnvironmentsSuccessResponse { /** Type of response */ kind?: string; - /** Metadata of the list */ + /** Metadata of the environment list */ metadata?: ConfluentListMetadata; - /** Data of the environments list */ + /** Environment list data */ data?: EnvironmentRecord[]; } -/** Record of the environment */ +/** Details about environment name, metadata and environment id of an environment */ export interface EnvironmentRecord { /** Type of environment */ kind?: string; @@ -407,25 +407,25 @@ export interface EnvironmentRecord { displayName?: string; } -/** List cluster success response */ +/** Details of the clusters returned on successful response */ export interface AccessListClusterSuccessResponse { /** Type of response */ kind?: string; /** Metadata of the list */ metadata?: ConfluentListMetadata; - /** Data of the environments list */ + /** List of clusters */ data?: ClusterRecord[]; } -/** Record of the environment */ +/** Details of cluster record */ export interface ClusterRecord { - /** Type of environment */ + /** Type of cluster */ kind?: string; - /** Id of the environment */ + /** Id of the cluster */ id?: string; /** Metadata of the record */ metadata?: MetadataEntity; - /** Display name of the user */ + /** Display name of the cluster */ displayName?: string; /** Specification of the cluster */ spec?: ClusterSpecEntity; @@ -509,21 +509,21 @@ export interface ClusterStatusEntity { cku?: number; } -/** List cluster success response */ +/** Details of the role bindings returned on successful response */ export interface AccessListRoleBindingsSuccessResponse { /** Type of response */ kind?: string; /** Metadata of the list */ metadata?: ConfluentListMetadata; - /** Data of the environments list */ + /** List of role binding */ data?: RoleBindingRecord[]; } -/** Record of the environment */ +/** Details on principal, role name and crn pattern of a role binding */ export interface RoleBindingRecord { /** The type of the resource. */ kind?: string; - /** Id of the role */ + /** Id of the role binding */ id?: string; /** Metadata of the record */ metadata?: MetadataEntity; @@ -535,6 +535,291 @@ export interface RoleBindingRecord { crnPattern?: string; } +/** Create role binding request model */ +export interface AccessCreateRoleBindingRequestModel { + /** The principal User or Group to bind the role to */ + principal?: string; + /** The name of the role to bind to the principal */ + roleName?: string; + /** A CRN that specifies the scope and resource patterns necessary for the role to bind */ + crnPattern?: string; +} + +/** Details of the role binding names returned on successful response */ +export interface AccessRoleBindingNameListSuccessResponse { + /** Type of response */ + kind?: string; + /** Metadata of the list */ + metadata?: ConfluentListMetadata; + /** List of role binding names */ + data?: string[]; +} + +/** Result of GET request to list Confluent operations. */ +export interface GetEnvironmentsResponse { + /** List of environments in a confluent organization */ + value?: SCEnvironmentRecord[]; + /** URL to get the next set of environment records if there are any. */ + nextLink?: string; +} + +/** Details about environment name, metadata and environment id of an environment */ +export interface SCEnvironmentRecord { + /** Type of environment */ + kind?: string; + /** Id of the environment */ + id?: string; + /** Display name of the environment */ + name?: string; + /** Metadata of the record */ + metadata?: SCMetadataEntity; +} + +/** Metadata of the data record */ +export interface SCMetadataEntity { + /** Self lookup url */ + self?: string; + /** Resource name of the record */ + resourceName?: string; + /** Created Date Time */ + createdTimestamp?: string; + /** Updated Date time */ + updatedTimestamp?: string; + /** Deleted Date time */ + deletedTimestamp?: string; +} + +/** Result of GET request to list clusters in the environment of a confluent organization */ +export interface ListClustersSuccessResponse { + /** List of clusters in an environment of a confluent organization */ + value?: SCClusterRecord[]; + /** URL to get the next set of cluster records if there are any. */ + nextLink?: string; +} + +/** Details of cluster record */ +export interface SCClusterRecord { + /** Type of cluster */ + kind?: string; + /** Id of the cluster */ + id?: string; + /** Display name of the cluster */ + name?: string; + /** Metadata of the record */ + metadata?: SCMetadataEntity; + /** Specification of the cluster */ + spec?: SCClusterSpecEntity; + /** Specification of the cluster status */ + status?: ClusterStatusEntity; +} + +/** Spec of the cluster record */ +export interface SCClusterSpecEntity { + /** The name of the cluster */ + name?: string; + /** The availability zone configuration of the cluster */ + availability?: string; + /** The cloud service provider */ + cloud?: string; + /** type of zone availability */ + zone?: string; + /** The cloud service provider region */ + region?: string; + /** The bootstrap endpoint used by Kafka clients to connect to the cluster */ + kafkaBootstrapEndpoint?: string; + /** The cluster HTTP request URL. */ + httpEndpoint?: string; + /** The Kafka API cluster endpoint */ + apiEndpoint?: string; + /** Specification of the cluster configuration */ + config?: ClusterConfigEntity; + /** Specification of the cluster environment */ + environment?: SCClusterNetworkEnvironmentEntity; + /** Specification of the cluster network */ + network?: SCClusterNetworkEnvironmentEntity; + /** Specification of the cluster byok */ + byok?: SCClusterByokEntity; +} + +/** The environment or the network to which cluster belongs */ +export interface SCClusterNetworkEnvironmentEntity { + /** ID of the referred resource */ + id?: string; + /** Environment of the referred resource */ + environment?: string; + /** API URL for accessing or modifying the referred object */ + related?: string; + /** CRN reference to the referred resource */ + resourceName?: string; +} + +/** The network associated with this object */ +export interface SCClusterByokEntity { + /** ID of the referred resource */ + id?: string; + /** API URL for accessing or modifying the referred object */ + related?: string; + /** CRN reference to the referred resource */ + resourceName?: string; +} + +/** Result of GET request to list schema registry clusters in the environment of a confluent organization */ +export interface ListSchemaRegistryClustersResponse { + /** List of schema registry clusters in an environment of a confluent organization */ + value?: SchemaRegistryClusterRecord[]; + /** URL to get the next set of schema registry cluster records if there are any. */ + nextLink?: string; +} + +/** Details of schema registry cluster record */ +export interface SchemaRegistryClusterRecord { + /** Kind of the cluster */ + kind?: string; + /** Id of the cluster */ + id?: string; + /** Metadata of the record */ + metadata?: SCMetadataEntity; + /** Specification of the schema registry cluster */ + spec?: SchemaRegistryClusterSpecEntity; + /** Specification of the cluster status */ + status?: SchemaRegistryClusterStatusEntity; +} + +/** Details of schema registry cluster spec */ +export interface SchemaRegistryClusterSpecEntity { + /** Name of the schema registry cluster */ + name?: string; + /** Http endpoint of the cluster */ + httpEndpoint?: string; + /** Type of the cluster package Advanced, essentials */ + package?: string; + /** Region details of the schema registry cluster */ + region?: SchemaRegistryClusterEnvironmentRegionEntity; + /** Environment details of the schema registry cluster */ + environment?: SchemaRegistryClusterEnvironmentRegionEntity; + /** The cloud service provider */ + cloud?: string; +} + +/** The environment associated with this object */ +export interface SchemaRegistryClusterEnvironmentRegionEntity { + /** ID of the referred resource */ + id?: string; + /** API URL for accessing or modifying the referred object */ + related?: string; + /** CRN reference to the referred resource */ + resourceName?: string; +} + +/** Status of the schema registry cluster record */ +export interface SchemaRegistryClusterStatusEntity { + /** The lifecycle phase of the cluster */ + phase?: string; +} + +/** Result of POST request to list regions supported by confluent */ +export interface ListRegionsSuccessResponse { + /** List of regions supported by confluent */ + data?: RegionRecord[]; +} + +/** Details of region record */ +export interface RegionRecord { + /** Kind of the cluster */ + kind?: string; + /** Id of the cluster */ + id?: string; + /** Metadata of the record */ + metadata?: SCMetadataEntity; + /** Specification of the region */ + spec?: RegionSpecEntity; +} + +/** Region spec details */ +export interface RegionSpecEntity { + /** Display Name of the region */ + name?: string; + /** Cloud provider name */ + cloud?: string; + /** Region name */ + regionName?: string; + packages?: string[]; +} + +/** Create API Key model */ +export interface CreateAPIKeyModel { + /** Name of the API Key */ + name?: string; + /** Description of the API Key */ + description?: string; +} + +/** Details API key */ +export interface APIKeyRecord { + /** Type of api key */ + kind?: string; + /** Id of the api key */ + id?: string; + /** Metadata of the record */ + metadata?: SCMetadataEntity; + /** Specification of the API Key */ + spec?: APIKeySpecEntity; +} + +/** Spec of the API Key record */ +export interface APIKeySpecEntity { + /** The description of the API Key */ + description?: string; + /** The name of the API Key */ + name?: string; + /** API Key Secret */ + secret?: string; + /** Specification of the cluster */ + resource?: APIKeyResourceEntity; + /** Specification of the cluster */ + owner?: APIKeyOwnerEntity; +} + +/** API Key Resource details which can be kafka cluster or schema registry cluster */ +export interface APIKeyResourceEntity { + /** Id of the resource */ + id?: string; + /** The environment of the api key */ + environment?: string; + /** API URL for accessing or modifying the api key resource object */ + related?: string; + /** CRN reference to the referred resource */ + resourceName?: string; + /** Type of the owner which can be service or user account */ + kind?: string; +} + +/** API Key Owner details which can be a user or service account */ +export interface APIKeyOwnerEntity { + /** API Key owner id */ + id?: string; + /** API URL for accessing or modifying the referred object */ + related?: string; + /** CRN reference to the referred resource */ + resourceName?: string; + /** Type of the owner service or user account */ + kind?: string; +} + +/** Metadata of the list */ +export interface SCConfluentListMetadata { + /** First page of the list */ + first?: string; + /** Last page of the list */ + last?: string; + /** Previous page of the list */ + prev?: string; + /** Next page of the list */ + next?: string; + /** Total size of the list */ + totalSize?: number; +} + /** Known values of {@link CreatedByType} that the service accepts. */ export enum KnownCreatedByType { /** User */ @@ -544,7 +829,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -578,7 +863,7 @@ export enum KnownProvisionState { /** Deleted */ Deleted = "Deleted", /** NotSpecified */ - NotSpecified = "NotSpecified" + NotSpecified = "NotSpecified", } /** @@ -619,7 +904,7 @@ export enum KnownSaaSOfferStatus { /** Unsubscribed */ Unsubscribed = "Unsubscribed", /** Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -645,7 +930,8 @@ export interface MarketplaceAgreementsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type MarketplaceAgreementsListResponse = ConfluentAgreementResourceListResponse; +export type MarketplaceAgreementsListResponse = + ConfluentAgreementResourceListResponse; /** Optional parameters. */ export interface MarketplaceAgreementsCreateOptionalParams @@ -662,7 +948,8 @@ export interface MarketplaceAgreementsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type MarketplaceAgreementsListNextResponse = ConfluentAgreementResourceListResponse; +export type MarketplaceAgreementsListNextResponse = + ConfluentAgreementResourceListResponse; /** Optional parameters. */ export interface OrganizationOperationsListOptionalParams @@ -683,14 +970,16 @@ export interface OrganizationListBySubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ -export type OrganizationListBySubscriptionResponse = OrganizationResourceListResult; +export type OrganizationListBySubscriptionResponse = + OrganizationResourceListResult; /** Optional parameters. */ export interface OrganizationListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type OrganizationListByResourceGroupResponse = OrganizationResourceListResult; +export type OrganizationListByResourceGroupResponse = + OrganizationResourceListResult; /** Optional parameters. */ export interface OrganizationGetOptionalParams @@ -732,19 +1021,127 @@ export interface OrganizationDeleteOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface OrganizationListEnvironmentsOptionalParams + extends coreClient.OperationOptions { + /** Pagination size */ + pageSize?: number; + /** An opaque pagination token to fetch the next set of records */ + pageToken?: string; +} + +/** Contains response data for the listEnvironments operation. */ +export type OrganizationListEnvironmentsResponse = GetEnvironmentsResponse; + +/** Optional parameters. */ +export interface OrganizationGetEnvironmentByIdOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEnvironmentById operation. */ +export type OrganizationGetEnvironmentByIdResponse = SCEnvironmentRecord; + +/** Optional parameters. */ +export interface OrganizationListClustersOptionalParams + extends coreClient.OperationOptions { + /** Pagination size */ + pageSize?: number; + /** An opaque pagination token to fetch the next set of records */ + pageToken?: string; +} + +/** Contains response data for the listClusters operation. */ +export type OrganizationListClustersResponse = ListClustersSuccessResponse; + +/** Optional parameters. */ +export interface OrganizationListSchemaRegistryClustersOptionalParams + extends coreClient.OperationOptions { + /** Pagination size */ + pageSize?: number; + /** An opaque pagination token to fetch the next set of records */ + pageToken?: string; +} + +/** Contains response data for the listSchemaRegistryClusters operation. */ +export type OrganizationListSchemaRegistryClustersResponse = + ListSchemaRegistryClustersResponse; + +/** Optional parameters. */ +export interface OrganizationListRegionsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listRegions operation. */ +export type OrganizationListRegionsResponse = ListRegionsSuccessResponse; + +/** Optional parameters. */ +export interface OrganizationCreateAPIKeyOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createAPIKey operation. */ +export type OrganizationCreateAPIKeyResponse = APIKeyRecord; + +/** Optional parameters. */ +export interface OrganizationDeleteClusterAPIKeyOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface OrganizationGetClusterAPIKeyOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getClusterAPIKey operation. */ +export type OrganizationGetClusterAPIKeyResponse = APIKeyRecord; + +/** Optional parameters. */ +export interface OrganizationGetSchemaRegistryClusterByIdOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getSchemaRegistryClusterById operation. */ +export type OrganizationGetSchemaRegistryClusterByIdResponse = + SchemaRegistryClusterRecord; + +/** Optional parameters. */ +export interface OrganizationGetClusterByIdOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getClusterById operation. */ +export type OrganizationGetClusterByIdResponse = SCClusterRecord; + /** Optional parameters. */ export interface OrganizationListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type OrganizationListBySubscriptionNextResponse = OrganizationResourceListResult; +export type OrganizationListBySubscriptionNextResponse = + OrganizationResourceListResult; /** Optional parameters. */ export interface OrganizationListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type OrganizationListByResourceGroupNextResponse = OrganizationResourceListResult; +export type OrganizationListByResourceGroupNextResponse = + OrganizationResourceListResult; + +/** Optional parameters. */ +export interface OrganizationListEnvironmentsNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listEnvironmentsNext operation. */ +export type OrganizationListEnvironmentsNextResponse = GetEnvironmentsResponse; + +/** Optional parameters. */ +export interface OrganizationListClustersNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listClustersNext operation. */ +export type OrganizationListClustersNextResponse = ListClustersSuccessResponse; + +/** Optional parameters. */ +export interface OrganizationListSchemaRegistryClustersNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSchemaRegistryClustersNext operation. */ +export type OrganizationListSchemaRegistryClustersNextResponse = + ListSchemaRegistryClustersResponse; /** Optional parameters. */ export interface ValidationsValidateOrganizationOptionalParams @@ -772,14 +1169,16 @@ export interface AccessListServiceAccountsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listServiceAccounts operation. */ -export type AccessListServiceAccountsResponse = AccessListServiceAccountsSuccessResponse; +export type AccessListServiceAccountsResponse = + AccessListServiceAccountsSuccessResponse; /** Optional parameters. */ export interface AccessListInvitationsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listInvitations operation. */ -export type AccessListInvitationsResponse = AccessListInvitationsSuccessResponse; +export type AccessListInvitationsResponse = + AccessListInvitationsSuccessResponse; /** Optional parameters. */ export interface AccessInviteUserOptionalParams @@ -793,7 +1192,8 @@ export interface AccessListEnvironmentsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listEnvironments operation. */ -export type AccessListEnvironmentsResponse = AccessListEnvironmentsSuccessResponse; +export type AccessListEnvironmentsResponse = + AccessListEnvironmentsSuccessResponse; /** Optional parameters. */ export interface AccessListClustersOptionalParams @@ -807,7 +1207,27 @@ export interface AccessListRoleBindingsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listRoleBindings operation. */ -export type AccessListRoleBindingsResponse = AccessListRoleBindingsSuccessResponse; +export type AccessListRoleBindingsResponse = + AccessListRoleBindingsSuccessResponse; + +/** Optional parameters. */ +export interface AccessCreateRoleBindingOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createRoleBinding operation. */ +export type AccessCreateRoleBindingResponse = RoleBindingRecord; + +/** Optional parameters. */ +export interface AccessDeleteRoleBindingOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AccessListRoleBindingNameListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listRoleBindingNameList operation. */ +export type AccessListRoleBindingNameListResponse = + AccessRoleBindingNameListSuccessResponse; /** Optional parameters. */ export interface ConfluentManagementClientOptionalParams diff --git a/sdk/confluent/arm-confluent/src/models/mappers.ts b/sdk/confluent/arm-confluent/src/models/mappers.ts index 4991f3974b05..b2a950b00d89 100644 --- a/sdk/confluent/arm-confluent/src/models/mappers.ts +++ b/sdk/confluent/arm-confluent/src/models/mappers.ts @@ -8,32 +8,33 @@ import * as coreClient from "@azure/core-client"; -export const ConfluentAgreementResourceListResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConfluentAgreementResourceListResponse", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConfluentAgreementResource" - } - } - } +export const ConfluentAgreementResourceListResponse: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ConfluentAgreementResourceListResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConfluentAgreementResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const ConfluentAgreementResource: coreClient.CompositeMapper = { type: { @@ -44,80 +45,80 @@ export const ConfluentAgreementResource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, publisher: { serializedName: "properties.publisher", type: { - name: "String" - } + name: "String", + }, }, product: { serializedName: "properties.product", type: { - name: "String" - } + name: "String", + }, }, plan: { serializedName: "properties.plan", type: { - name: "String" - } + name: "String", + }, }, licenseTextLink: { serializedName: "properties.licenseTextLink", type: { - name: "String" - } + name: "String", + }, }, privacyPolicyLink: { serializedName: "properties.privacyPolicyLink", type: { - name: "String" - } + name: "String", + }, }, retrieveDatetime: { serializedName: "properties.retrieveDatetime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, signature: { serializedName: "properties.signature", type: { - name: "String" - } + name: "String", + }, }, accepted: { serializedName: "properties.accepted", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -128,58 +129,59 @@ export const SystemData: coreClient.CompositeMapper = { createdBy: { serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, createdByType: { serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, lastModifiedByType: { serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; -export const ResourceProviderDefaultErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceProviderDefaultErrorResponse", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorResponseBody" - } - } - } - } -}; +export const ResourceProviderDefaultErrorResponse: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ResourceProviderDefaultErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorResponseBody", + }, + }, + }, + }, + }; export const ErrorResponseBody: coreClient.CompositeMapper = { type: { @@ -190,22 +192,22 @@ export const ErrorResponseBody: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -215,13 +217,13 @@ export const ErrorResponseBody: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorResponseBody" - } - } - } - } - } - } + className: "ErrorResponseBody", + }, + }, + }, + }, + }, + }, }; export const OperationListResult: coreClient.CompositeMapper = { @@ -236,19 +238,19 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OperationResult" - } - } - } + className: "OperationResult", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationResult: coreClient.CompositeMapper = { @@ -259,24 +261,24 @@ export const OperationResult: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } + className: "OperationDisplay", + }, }, isDataAction: { serializedName: "isDataAction", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -287,29 +289,29 @@ export const OperationDisplay: coreClient.CompositeMapper = { provider: { serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OrganizationResourceListResult: coreClient.CompositeMapper = { @@ -324,19 +326,19 @@ export const OrganizationResourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OrganizationResource" - } - } - } + className: "OrganizationResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OrganizationResource: coreClient.CompositeMapper = { @@ -348,94 +350,94 @@ export const OrganizationResource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, createdTime: { serializedName: "properties.createdTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, organizationId: { serializedName: "properties.organizationId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, ssoUrl: { serializedName: "properties.ssoUrl", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, offerDetail: { serializedName: "properties.offerDetail", type: { name: "Composite", - className: "OfferDetail" - } + className: "OfferDetail", + }, }, userDetail: { serializedName: "properties.userDetail", type: { name: "Composite", - className: "UserDetail" - } + className: "UserDetail", + }, }, linkOrganization: { serializedName: "properties.linkOrganization", type: { name: "Composite", - className: "LinkOrganization" - } - } - } - } + className: "LinkOrganization", + }, + }, + }, + }, }; export const OfferDetail: coreClient.CompositeMapper = { @@ -445,71 +447,71 @@ export const OfferDetail: coreClient.CompositeMapper = { modelProperties: { publisherId: { constraints: { - MaxLength: 50 + MaxLength: 50, }, serializedName: "publisherId", required: true, type: { - name: "String" - } + name: "String", + }, }, id: { constraints: { - MaxLength: 50 + MaxLength: 50, }, serializedName: "id", required: true, type: { - name: "String" - } + name: "String", + }, }, planId: { constraints: { - MaxLength: 200 + MaxLength: 200, }, serializedName: "planId", required: true, type: { - name: "String" - } + name: "String", + }, }, planName: { constraints: { - MaxLength: 200 + MaxLength: 200, }, serializedName: "planName", required: true, type: { - name: "String" - } + name: "String", + }, }, termUnit: { constraints: { - MaxLength: 25 + MaxLength: 25, }, serializedName: "termUnit", required: true, type: { - name: "String" - } + name: "String", + }, }, termId: { constraints: { - MaxLength: 50 + MaxLength: 50, }, serializedName: "termId", type: { - name: "String" - } + name: "String", + }, }, privateOfferId: { constraints: { - MaxLength: 255 + MaxLength: 255, }, serializedName: "privateOfferId", type: { - name: "String" - } + name: "String", + }, }, privateOfferIds: { serializedName: "privateOfferIds", @@ -517,19 +519,19 @@ export const OfferDetail: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, status: { serializedName: "status", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserDetail: coreClient.CompositeMapper = { @@ -539,46 +541,46 @@ export const UserDetail: coreClient.CompositeMapper = { modelProperties: { firstName: { constraints: { - MaxLength: 50 + MaxLength: 50, }, serializedName: "firstName", type: { - name: "String" - } + name: "String", + }, }, lastName: { constraints: { - MaxLength: 50 + MaxLength: 50, }, serializedName: "lastName", type: { - name: "String" - } + name: "String", + }, }, emailAddress: { constraints: { - Pattern: new RegExp("^\\S+@\\S+\\.\\S+$") + Pattern: new RegExp("^\\S+@\\S+\\.\\S+$"), }, serializedName: "emailAddress", required: true, type: { - name: "String" - } + name: "String", + }, }, userPrincipalName: { serializedName: "userPrincipalName", type: { - name: "String" - } + name: "String", + }, }, aadEmail: { serializedName: "aadEmail", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LinkOrganization: coreClient.CompositeMapper = { @@ -590,11 +592,11 @@ export const LinkOrganization: coreClient.CompositeMapper = { serializedName: "token", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OrganizationResourceUpdate: coreClient.CompositeMapper = { @@ -606,11 +608,11 @@ export const OrganizationResourceUpdate: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const ValidationResponse: coreClient.CompositeMapper = { @@ -622,11 +624,11 @@ export const ValidationResponse: coreClient.CompositeMapper = { serializedName: "info", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const ListAccessRequestModel: coreClient.CompositeMapper = { @@ -638,11 +640,11 @@ export const ListAccessRequestModel: coreClient.CompositeMapper = { serializedName: "searchFilters", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const AccessListUsersSuccessResponse: coreClient.CompositeMapper = { @@ -653,15 +655,15 @@ export const AccessListUsersSuccessResponse: coreClient.CompositeMapper = { kind: { serializedName: "kind", type: { - name: "String" - } + name: "String", + }, }, metadata: { serializedName: "metadata", type: { name: "Composite", - className: "ConfluentListMetadata" - } + className: "ConfluentListMetadata", + }, }, data: { serializedName: "data", @@ -670,13 +672,13 @@ export const AccessListUsersSuccessResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UserRecord" - } - } - } - } - } - } + className: "UserRecord", + }, + }, + }, + }, + }, + }, }; export const ConfluentListMetadata: coreClient.CompositeMapper = { @@ -687,35 +689,35 @@ export const ConfluentListMetadata: coreClient.CompositeMapper = { first: { serializedName: "first", type: { - name: "String" - } + name: "String", + }, }, last: { serializedName: "last", type: { - name: "String" - } + name: "String", + }, }, prev: { serializedName: "prev", type: { - name: "String" - } + name: "String", + }, }, next: { serializedName: "next", type: { - name: "String" - } + name: "String", + }, }, totalSize: { serializedName: "total_size", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const UserRecord: coreClient.CompositeMapper = { @@ -726,42 +728,42 @@ export const UserRecord: coreClient.CompositeMapper = { kind: { serializedName: "kind", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, metadata: { serializedName: "metadata", type: { name: "Composite", - className: "MetadataEntity" - } + className: "MetadataEntity", + }, }, email: { serializedName: "email", type: { - name: "String" - } + name: "String", + }, }, fullName: { serializedName: "full_name", type: { - name: "String" - } + name: "String", + }, }, authType: { serializedName: "auth_type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MetadataEntity: coreClient.CompositeMapper = { @@ -772,70 +774,71 @@ export const MetadataEntity: coreClient.CompositeMapper = { self: { serializedName: "self", type: { - name: "String" - } + name: "String", + }, }, resourceName: { serializedName: "resource_name", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "created_at", type: { - name: "String" - } + name: "String", + }, }, updatedAt: { serializedName: "updated_at", type: { - name: "String" - } + name: "String", + }, }, deletedAt: { serializedName: "deleted_at", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AccessListServiceAccountsSuccessResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccessListServiceAccountsSuccessResponse", - modelProperties: { - kind: { - serializedName: "kind", - type: { - name: "String" - } - }, - metadata: { - serializedName: "metadata", - type: { - name: "Composite", - className: "ConfluentListMetadata" - } +export const AccessListServiceAccountsSuccessResponse: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AccessListServiceAccountsSuccessResponse", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + metadata: { + serializedName: "metadata", + type: { + name: "Composite", + className: "ConfluentListMetadata", + }, + }, + data: { + serializedName: "data", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceAccountRecord", + }, + }, + }, + }, }, - data: { - serializedName: "data", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServiceAccountRecord" - } - } - } - } - } - } -}; + }, + }; export const ServiceAccountRecord: coreClient.CompositeMapper = { type: { @@ -845,71 +848,72 @@ export const ServiceAccountRecord: coreClient.CompositeMapper = { kind: { serializedName: "kind", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, metadata: { serializedName: "metadata", type: { name: "Composite", - className: "MetadataEntity" - } + className: "MetadataEntity", + }, }, displayName: { serializedName: "display_name", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AccessListInvitationsSuccessResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccessListInvitationsSuccessResponse", - modelProperties: { - kind: { - serializedName: "kind", - type: { - name: "String" - } - }, - metadata: { - serializedName: "metadata", - type: { - name: "Composite", - className: "ConfluentListMetadata" - } +export const AccessListInvitationsSuccessResponse: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AccessListInvitationsSuccessResponse", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + metadata: { + serializedName: "metadata", + type: { + name: "Composite", + className: "ConfluentListMetadata", + }, + }, + data: { + serializedName: "data", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InvitationRecord", + }, + }, + }, + }, }, - data: { - serializedName: "data", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InvitationRecord" - } - } - } - } - } - } -}; + }, + }; export const InvitationRecord: coreClient.CompositeMapper = { type: { @@ -919,54 +923,54 @@ export const InvitationRecord: coreClient.CompositeMapper = { kind: { serializedName: "kind", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, metadata: { serializedName: "metadata", type: { name: "Composite", - className: "MetadataEntity" - } + className: "MetadataEntity", + }, }, email: { serializedName: "email", type: { - name: "String" - } + name: "String", + }, }, authType: { serializedName: "auth_type", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", type: { - name: "String" - } + name: "String", + }, }, acceptedAt: { serializedName: "accepted_at", type: { - name: "String" - } + name: "String", + }, }, expiresAt: { serializedName: "expires_at", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AccessInviteUserAccountModel: coreClient.CompositeMapper = { @@ -977,30 +981,30 @@ export const AccessInviteUserAccountModel: coreClient.CompositeMapper = { organizationId: { serializedName: "organizationId", type: { - name: "String" - } + name: "String", + }, }, email: { serializedName: "email", type: { - name: "String" - } + name: "String", + }, }, upn: { serializedName: "upn", type: { - name: "String" - } + name: "String", + }, }, invitedUserDetails: { serializedName: "invitedUserDetails", type: { name: "Composite", - className: "AccessInvitedUserDetails" - } - } - } - } + className: "AccessInvitedUserDetails", + }, + }, + }, + }, }; export const AccessInvitedUserDetails: coreClient.CompositeMapper = { @@ -1011,52 +1015,53 @@ export const AccessInvitedUserDetails: coreClient.CompositeMapper = { invitedEmail: { serializedName: "invitedEmail", type: { - name: "String" - } + name: "String", + }, }, authType: { serializedName: "auth_type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AccessListEnvironmentsSuccessResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccessListEnvironmentsSuccessResponse", - modelProperties: { - kind: { - serializedName: "kind", - type: { - name: "String" - } - }, - metadata: { - serializedName: "metadata", - type: { - name: "Composite", - className: "ConfluentListMetadata" - } +export const AccessListEnvironmentsSuccessResponse: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AccessListEnvironmentsSuccessResponse", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + metadata: { + serializedName: "metadata", + type: { + name: "Composite", + className: "ConfluentListMetadata", + }, + }, + data: { + serializedName: "data", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentRecord", + }, + }, + }, + }, }, - data: { - serializedName: "data", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EnvironmentRecord" - } - } - } - } - } - } -}; + }, + }; export const EnvironmentRecord: coreClient.CompositeMapper = { type: { @@ -1066,30 +1071,30 @@ export const EnvironmentRecord: coreClient.CompositeMapper = { kind: { serializedName: "kind", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, metadata: { serializedName: "metadata", type: { name: "Composite", - className: "MetadataEntity" - } + className: "MetadataEntity", + }, }, displayName: { serializedName: "display_name", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AccessListClusterSuccessResponse: coreClient.CompositeMapper = { @@ -1100,15 +1105,15 @@ export const AccessListClusterSuccessResponse: coreClient.CompositeMapper = { kind: { serializedName: "kind", type: { - name: "String" - } + name: "String", + }, }, metadata: { serializedName: "metadata", type: { name: "Composite", - className: "ConfluentListMetadata" - } + className: "ConfluentListMetadata", + }, }, data: { serializedName: "data", @@ -1117,13 +1122,13 @@ export const AccessListClusterSuccessResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ClusterRecord" - } - } - } - } - } - } + className: "ClusterRecord", + }, + }, + }, + }, + }, + }, }; export const ClusterRecord: coreClient.CompositeMapper = { @@ -1134,44 +1139,44 @@ export const ClusterRecord: coreClient.CompositeMapper = { kind: { serializedName: "kind", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, metadata: { serializedName: "metadata", type: { name: "Composite", - className: "MetadataEntity" - } + className: "MetadataEntity", + }, }, displayName: { serializedName: "display_name", type: { - name: "String" - } + name: "String", + }, }, spec: { serializedName: "spec", type: { name: "Composite", - className: "ClusterSpecEntity" - } + className: "ClusterSpecEntity", + }, }, status: { serializedName: "status", type: { name: "Composite", - className: "ClusterStatusEntity" - } - } - } - } + className: "ClusterStatusEntity", + }, + }, + }, + }, }; export const ClusterSpecEntity: coreClient.CompositeMapper = { @@ -1182,81 +1187,81 @@ export const ClusterSpecEntity: coreClient.CompositeMapper = { displayName: { serializedName: "display_name", type: { - name: "String" - } + name: "String", + }, }, availability: { serializedName: "availability", type: { - name: "String" - } + name: "String", + }, }, cloud: { serializedName: "cloud", type: { - name: "String" - } + name: "String", + }, }, zone: { serializedName: "zone", type: { - name: "String" - } + name: "String", + }, }, region: { serializedName: "region", type: { - name: "String" - } + name: "String", + }, }, kafkaBootstrapEndpoint: { serializedName: "kafka_bootstrap_endpoint", type: { - name: "String" - } + name: "String", + }, }, httpEndpoint: { serializedName: "http_endpoint", type: { - name: "String" - } + name: "String", + }, }, apiEndpoint: { serializedName: "api_endpoint", type: { - name: "String" - } + name: "String", + }, }, config: { serializedName: "config", type: { name: "Composite", - className: "ClusterConfigEntity" - } + className: "ClusterConfigEntity", + }, }, environment: { serializedName: "environment", type: { name: "Composite", - className: "ClusterEnvironmentEntity" - } + className: "ClusterEnvironmentEntity", + }, }, network: { serializedName: "network", type: { name: "Composite", - className: "ClusterNetworkEntity" - } + className: "ClusterNetworkEntity", + }, }, byok: { serializedName: "byok", type: { name: "Composite", - className: "ClusterByokEntity" - } - } - } - } + className: "ClusterByokEntity", + }, + }, + }, + }, }; export const ClusterConfigEntity: coreClient.CompositeMapper = { @@ -1267,11 +1272,11 @@ export const ClusterConfigEntity: coreClient.CompositeMapper = { kind: { serializedName: "kind", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClusterEnvironmentEntity: coreClient.CompositeMapper = { @@ -1282,29 +1287,29 @@ export const ClusterEnvironmentEntity: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, environment: { serializedName: "environment", type: { - name: "String" - } + name: "String", + }, }, related: { serializedName: "related", type: { - name: "String" - } + name: "String", + }, }, resourceName: { serializedName: "resource_name", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClusterNetworkEntity: coreClient.CompositeMapper = { @@ -1315,29 +1320,29 @@ export const ClusterNetworkEntity: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, environment: { serializedName: "environment", type: { - name: "String" - } + name: "String", + }, }, related: { serializedName: "related", type: { - name: "String" - } + name: "String", + }, }, resourceName: { serializedName: "resource_name", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClusterByokEntity: coreClient.CompositeMapper = { @@ -1348,23 +1353,23 @@ export const ClusterByokEntity: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, related: { serializedName: "related", type: { - name: "String" - } + name: "String", + }, }, resourceName: { serializedName: "resource_name", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClusterStatusEntity: coreClient.CompositeMapper = { @@ -1375,95 +1380,938 @@ export const ClusterStatusEntity: coreClient.CompositeMapper = { phase: { serializedName: "phase", type: { - name: "String" - } + name: "String", + }, }, cku: { serializedName: "cku", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; -export const AccessListRoleBindingsSuccessResponse: coreClient.CompositeMapper = { +export const AccessListRoleBindingsSuccessResponse: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AccessListRoleBindingsSuccessResponse", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + metadata: { + serializedName: "metadata", + type: { + name: "Composite", + className: "ConfluentListMetadata", + }, + }, + data: { + serializedName: "data", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RoleBindingRecord", + }, + }, + }, + }, + }, + }, + }; + +export const RoleBindingRecord: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccessListRoleBindingsSuccessResponse", + className: "RoleBindingRecord", modelProperties: { kind: { serializedName: "kind", type: { - name: "String" - } + name: "String", + }, + }, + id: { + serializedName: "id", + type: { + name: "String", + }, }, metadata: { serializedName: "metadata", type: { name: "Composite", - className: "ConfluentListMetadata" - } + className: "MetadataEntity", + }, }, - data: { - serializedName: "data", + principal: { + serializedName: "principal", + type: { + name: "String", + }, + }, + roleName: { + serializedName: "role_name", + type: { + name: "String", + }, + }, + crnPattern: { + serializedName: "crn_pattern", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const AccessCreateRoleBindingRequestModel: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AccessCreateRoleBindingRequestModel", + modelProperties: { + principal: { + serializedName: "principal", + type: { + name: "String", + }, + }, + roleName: { + serializedName: "role_name", + type: { + name: "String", + }, + }, + crnPattern: { + serializedName: "crn_pattern", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const AccessRoleBindingNameListSuccessResponse: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AccessRoleBindingNameListSuccessResponse", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + metadata: { + serializedName: "metadata", + type: { + name: "Composite", + className: "ConfluentListMetadata", + }, + }, + data: { + serializedName: "data", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, + }; + +export const GetEnvironmentsResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GetEnvironmentsResponse", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RoleBindingRecord" - } - } - } - } - } - } + className: "SCEnvironmentRecord", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, }; -export const RoleBindingRecord: coreClient.CompositeMapper = { +export const SCEnvironmentRecord: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoleBindingRecord", + className: "SCEnvironmentRecord", modelProperties: { kind: { serializedName: "kind", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, + }, + name: { + serializedName: "name", + type: { + name: "String", + }, }, metadata: { - serializedName: "metadata", + serializedName: "properties.metadata", type: { name: "Composite", - className: "MetadataEntity" - } + className: "SCMetadataEntity", + }, }, - principal: { - serializedName: "principal", + }, + }, +}; + +export const SCMetadataEntity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SCMetadataEntity", + modelProperties: { + self: { + serializedName: "self", type: { - name: "String" - } + name: "String", + }, }, - roleName: { - serializedName: "role_name", + resourceName: { + serializedName: "resourceName", type: { - name: "String" - } + name: "String", + }, }, - crnPattern: { - serializedName: "crn_pattern", + createdTimestamp: { + serializedName: "createdTimestamp", + type: { + name: "String", + }, + }, + updatedTimestamp: { + serializedName: "updatedTimestamp", + type: { + name: "String", + }, + }, + deletedTimestamp: { + serializedName: "deletedTimestamp", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ListClustersSuccessResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListClustersSuccessResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SCClusterRecord", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const SCClusterRecord: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SCClusterRecord", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + metadata: { + serializedName: "properties.metadata", + type: { + name: "Composite", + className: "SCMetadataEntity", + }, + }, + spec: { + serializedName: "properties.spec", + type: { + name: "Composite", + className: "SCClusterSpecEntity", + }, + }, + status: { + serializedName: "properties.status", + type: { + name: "Composite", + className: "ClusterStatusEntity", + }, + }, + }, + }, +}; + +export const SCClusterSpecEntity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SCClusterSpecEntity", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + availability: { + serializedName: "availability", + type: { + name: "String", + }, + }, + cloud: { + serializedName: "cloud", + type: { + name: "String", + }, + }, + zone: { + serializedName: "zone", + type: { + name: "String", + }, + }, + region: { + serializedName: "region", + type: { + name: "String", + }, + }, + kafkaBootstrapEndpoint: { + serializedName: "kafkaBootstrapEndpoint", + type: { + name: "String", + }, + }, + httpEndpoint: { + serializedName: "httpEndpoint", + type: { + name: "String", + }, + }, + apiEndpoint: { + serializedName: "apiEndpoint", + type: { + name: "String", + }, + }, + config: { + serializedName: "config", + type: { + name: "Composite", + className: "ClusterConfigEntity", + }, + }, + environment: { + serializedName: "environment", + type: { + name: "Composite", + className: "SCClusterNetworkEnvironmentEntity", + }, + }, + network: { + serializedName: "network", + type: { + name: "Composite", + className: "SCClusterNetworkEnvironmentEntity", + }, + }, + byok: { + serializedName: "byok", + type: { + name: "Composite", + className: "SCClusterByokEntity", + }, + }, + }, + }, +}; + +export const SCClusterNetworkEnvironmentEntity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SCClusterNetworkEnvironmentEntity", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + environment: { + serializedName: "environment", + type: { + name: "String", + }, + }, + related: { + serializedName: "related", + type: { + name: "String", + }, + }, + resourceName: { + serializedName: "resourceName", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const SCClusterByokEntity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SCClusterByokEntity", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + related: { + serializedName: "related", + type: { + name: "String", + }, + }, + resourceName: { + serializedName: "resourceName", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ListSchemaRegistryClustersResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListSchemaRegistryClustersResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SchemaRegistryClusterRecord", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const SchemaRegistryClusterRecord: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SchemaRegistryClusterRecord", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + metadata: { + serializedName: "properties.metadata", + type: { + name: "Composite", + className: "SCMetadataEntity", + }, + }, + spec: { + serializedName: "properties.spec", + type: { + name: "Composite", + className: "SchemaRegistryClusterSpecEntity", + }, + }, + status: { + serializedName: "properties.status", + type: { + name: "Composite", + className: "SchemaRegistryClusterStatusEntity", + }, + }, + }, + }, +}; + +export const SchemaRegistryClusterSpecEntity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SchemaRegistryClusterSpecEntity", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + httpEndpoint: { + serializedName: "httpEndpoint", + type: { + name: "String", + }, + }, + package: { + serializedName: "package", + type: { + name: "String", + }, + }, + region: { + serializedName: "region", + type: { + name: "Composite", + className: "SchemaRegistryClusterEnvironmentRegionEntity", + }, + }, + environment: { + serializedName: "environment", + type: { + name: "Composite", + className: "SchemaRegistryClusterEnvironmentRegionEntity", + }, + }, + cloud: { + serializedName: "cloud", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const SchemaRegistryClusterEnvironmentRegionEntity: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SchemaRegistryClusterEnvironmentRegionEntity", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + related: { + serializedName: "related", + type: { + name: "String", + }, + }, + resourceName: { + serializedName: "resourceName", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const SchemaRegistryClusterStatusEntity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SchemaRegistryClusterStatusEntity", + modelProperties: { + phase: { + serializedName: "phase", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ListRegionsSuccessResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListRegionsSuccessResponse", + modelProperties: { + data: { + serializedName: "data", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RegionRecord", + }, + }, + }, + }, + }, + }, +}; + +export const RegionRecord: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegionRecord", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + metadata: { + serializedName: "properties.metadata", + type: { + name: "Composite", + className: "SCMetadataEntity", + }, + }, + spec: { + serializedName: "properties.spec", + type: { + name: "Composite", + className: "RegionSpecEntity", + }, + }, + }, + }, +}; + +export const RegionSpecEntity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegionSpecEntity", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + cloud: { + serializedName: "cloud", + type: { + name: "String", + }, + }, + regionName: { + serializedName: "regionName", + type: { + name: "String", + }, + }, + packages: { + serializedName: "packages", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const CreateAPIKeyModel: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CreateAPIKeyModel", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const APIKeyRecord: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "APIKeyRecord", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + metadata: { + serializedName: "properties.metadata", + type: { + name: "Composite", + className: "SCMetadataEntity", + }, + }, + spec: { + serializedName: "properties.spec", + type: { + name: "Composite", + className: "APIKeySpecEntity", + }, + }, + }, + }, +}; + +export const APIKeySpecEntity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "APIKeySpecEntity", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + secret: { + serializedName: "secret", + type: { + name: "String", + }, + }, + resource: { + serializedName: "resource", + type: { + name: "Composite", + className: "APIKeyResourceEntity", + }, + }, + owner: { + serializedName: "owner", + type: { + name: "Composite", + className: "APIKeyOwnerEntity", + }, + }, + }, + }, +}; + +export const APIKeyResourceEntity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "APIKeyResourceEntity", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + environment: { + serializedName: "environment", + type: { + name: "String", + }, + }, + related: { + serializedName: "related", + type: { + name: "String", + }, + }, + resourceName: { + serializedName: "resourceName", + type: { + name: "String", + }, + }, + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const APIKeyOwnerEntity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "APIKeyOwnerEntity", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + related: { + serializedName: "related", + type: { + name: "String", + }, + }, + resourceName: { + serializedName: "resourceName", + type: { + name: "String", + }, + }, + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const SCConfluentListMetadata: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SCConfluentListMetadata", + modelProperties: { + first: { + serializedName: "first", + type: { + name: "String", + }, + }, + last: { + serializedName: "last", + type: { + name: "String", + }, + }, + prev: { + serializedName: "prev", + type: { + name: "String", + }, + }, + next: { + serializedName: "next", + type: { + name: "String", + }, + }, + totalSize: { + serializedName: "totalSize", + type: { + name: "Number", + }, + }, + }, + }, }; diff --git a/sdk/confluent/arm-confluent/src/models/parameters.ts b/sdk/confluent/arm-confluent/src/models/parameters.ts index 38231f6ffded..9593b186b4b5 100644 --- a/sdk/confluent/arm-confluent/src/models/parameters.ts +++ b/sdk/confluent/arm-confluent/src/models/parameters.ts @@ -9,14 +9,16 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { ConfluentAgreementResource as ConfluentAgreementResourceMapper, OrganizationResource as OrganizationResourceMapper, OrganizationResourceUpdate as OrganizationResourceUpdateMapper, ListAccessRequestModel as ListAccessRequestModelMapper, - AccessInviteUserAccountModel as AccessInviteUserAccountModelMapper + CreateAPIKeyModel as CreateAPIKeyModelMapper, + AccessInviteUserAccountModel as AccessInviteUserAccountModelMapper, + AccessCreateRoleBindingRequestModel as AccessCreateRoleBindingRequestModelMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -26,9 +28,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -37,22 +39,22 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-08-22", + defaultValue: "2024-02-13", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const subscriptionId: OperationURLParameter = { @@ -61,9 +63,9 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "Uuid" - } - } + name: "String", + }, + }, }; export const contentType: OperationParameter = { @@ -73,14 +75,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const body: OperationParameter = { parameterPath: ["options", "body"], - mapper: ConfluentAgreementResourceMapper + mapper: ConfluentAgreementResourceMapper, }; export const nextLink: OperationURLParameter = { @@ -89,25 +91,21 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const resourceGroupName: OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { - constraints: { - MaxLength: 90, - MinLength: 1 - }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const organizationName: OperationURLParameter = { @@ -116,32 +114,121 @@ export const organizationName: OperationURLParameter = { serializedName: "organizationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const body1: OperationParameter = { parameterPath: ["options", "body"], - mapper: OrganizationResourceMapper + mapper: OrganizationResourceMapper, }; export const body2: OperationParameter = { parameterPath: ["options", "body"], - mapper: OrganizationResourceUpdateMapper + mapper: OrganizationResourceUpdateMapper, +}; + +export const resourceGroupName1: OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + constraints: { + MaxLength: 90, + MinLength: 1, + }, + serializedName: "resourceGroupName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const pageSize: OperationQueryParameter = { + parameterPath: ["options", "pageSize"], + mapper: { + serializedName: "pageSize", + type: { + name: "Number", + }, + }, +}; + +export const pageToken: OperationQueryParameter = { + parameterPath: ["options", "pageToken"], + mapper: { + serializedName: "pageToken", + type: { + name: "String", + }, + }, +}; + +export const environmentId: OperationURLParameter = { + parameterPath: "environmentId", + mapper: { + serializedName: "environmentId", + required: true, + type: { + name: "String", + }, + }, }; export const body3: OperationParameter = { parameterPath: "body", - mapper: OrganizationResourceMapper + mapper: ListAccessRequestModelMapper, }; export const body4: OperationParameter = { parameterPath: "body", - mapper: ListAccessRequestModelMapper + mapper: CreateAPIKeyModelMapper, +}; + +export const clusterId: OperationURLParameter = { + parameterPath: "clusterId", + mapper: { + serializedName: "clusterId", + required: true, + type: { + name: "String", + }, + }, +}; + +export const apiKeyId: OperationURLParameter = { + parameterPath: "apiKeyId", + mapper: { + serializedName: "apiKeyId", + required: true, + type: { + name: "String", + }, + }, }; export const body5: OperationParameter = { parameterPath: "body", - mapper: AccessInviteUserAccountModelMapper + mapper: OrganizationResourceMapper, +}; + +export const body6: OperationParameter = { + parameterPath: "body", + mapper: AccessInviteUserAccountModelMapper, +}; + +export const body7: OperationParameter = { + parameterPath: "body", + mapper: AccessCreateRoleBindingRequestModelMapper, +}; + +export const roleBindingId: OperationURLParameter = { + parameterPath: "roleBindingId", + mapper: { + serializedName: "roleBindingId", + required: true, + type: { + name: "String", + }, + }, }; diff --git a/sdk/confluent/arm-confluent/src/operations/access.ts b/sdk/confluent/arm-confluent/src/operations/access.ts index b2b4e6febdd9..05d2d0ea6e6c 100644 --- a/sdk/confluent/arm-confluent/src/operations/access.ts +++ b/sdk/confluent/arm-confluent/src/operations/access.ts @@ -27,7 +27,13 @@ import { AccessListClustersOptionalParams, AccessListClustersResponse, AccessListRoleBindingsOptionalParams, - AccessListRoleBindingsResponse + AccessListRoleBindingsResponse, + AccessCreateRoleBindingRequestModel, + AccessCreateRoleBindingOptionalParams, + AccessCreateRoleBindingResponse, + AccessDeleteRoleBindingOptionalParams, + AccessListRoleBindingNameListOptionalParams, + AccessListRoleBindingNameListResponse, } from "../models"; /** Class containing Access operations. */ @@ -44,7 +50,7 @@ export class AccessImpl implements Access { /** * Organization users details - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body List Access Request Model * @param options The options parameters. @@ -53,17 +59,17 @@ export class AccessImpl implements Access { resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, - options?: AccessListUsersOptionalParams + options?: AccessListUsersOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, organizationName, body, options }, - listUsersOperationSpec + listUsersOperationSpec, ); } /** * Organization service accounts details - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body List Access Request Model * @param options The options parameters. @@ -72,17 +78,17 @@ export class AccessImpl implements Access { resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, - options?: AccessListServiceAccountsOptionalParams + options?: AccessListServiceAccountsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, organizationName, body, options }, - listServiceAccountsOperationSpec + listServiceAccountsOperationSpec, ); } /** * Organization accounts invitation details - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body List Access Request Model * @param options The options parameters. @@ -91,17 +97,17 @@ export class AccessImpl implements Access { resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, - options?: AccessListInvitationsOptionalParams + options?: AccessListInvitationsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, organizationName, body, options }, - listInvitationsOperationSpec + listInvitationsOperationSpec, ); } /** * Invite user to the organization - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body Invite user account model * @param options The options parameters. @@ -110,11 +116,11 @@ export class AccessImpl implements Access { resourceGroupName: string, organizationName: string, body: AccessInviteUserAccountModel, - options?: AccessInviteUserOptionalParams + options?: AccessInviteUserOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, organizationName, body, options }, - inviteUserOperationSpec + inviteUserOperationSpec, ); } @@ -129,11 +135,11 @@ export class AccessImpl implements Access { resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, - options?: AccessListEnvironmentsOptionalParams + options?: AccessListEnvironmentsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, organizationName, body, options }, - listEnvironmentsOperationSpec + listEnvironmentsOperationSpec, ); } @@ -148,11 +154,11 @@ export class AccessImpl implements Access { resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, - options?: AccessListClustersOptionalParams + options?: AccessListClustersOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, organizationName, body, options }, - listClustersOperationSpec + listClustersOperationSpec, ); } @@ -167,11 +173,68 @@ export class AccessImpl implements Access { resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, - options?: AccessListRoleBindingsOptionalParams + options?: AccessListRoleBindingsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, organizationName, body, options }, - listRoleBindingsOperationSpec + listRoleBindingsOperationSpec, + ); + } + + /** + * Organization role bindings + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param body Create role binding Request Model + * @param options The options parameters. + */ + createRoleBinding( + resourceGroupName: string, + organizationName: string, + body: AccessCreateRoleBindingRequestModel, + options?: AccessCreateRoleBindingOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, organizationName, body, options }, + createRoleBindingOperationSpec, + ); + } + + /** + * Organization role bindings + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param roleBindingId Confluent Role binding id + * @param options The options parameters. + */ + deleteRoleBinding( + resourceGroupName: string, + organizationName: string, + roleBindingId: string, + options?: AccessDeleteRoleBindingOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, organizationName, roleBindingId, options }, + deleteRoleBindingOperationSpec, + ); + } + + /** + * Organization role bindings + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param body List Access Request Model + * @param options The options parameters. + */ + listRoleBindingNameList( + resourceGroupName: string, + organizationName: string, + body: ListAccessRequestModel, + options?: AccessListRoleBindingNameListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, organizationName, body, options }, + listRoleBindingNameListOperationSpec, ); } } @@ -179,170 +242,230 @@ export class AccessImpl implements Access { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listUsersOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listUsers", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listUsers", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessListUsersSuccessResponse + bodyMapper: Mappers.AccessListUsersSuccessResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, - requestBody: Parameters.body4, + requestBody: Parameters.body3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listServiceAccountsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listServiceAccounts", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listServiceAccounts", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessListServiceAccountsSuccessResponse + bodyMapper: Mappers.AccessListServiceAccountsSuccessResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, - requestBody: Parameters.body4, + requestBody: Parameters.body3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listInvitationsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listInvitations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listInvitations", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessListInvitationsSuccessResponse + bodyMapper: Mappers.AccessListInvitationsSuccessResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, - requestBody: Parameters.body4, + requestBody: Parameters.body3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const inviteUserOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/createInvitation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/createInvitation", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.InvitationRecord + bodyMapper: Mappers.InvitationRecord, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, - requestBody: Parameters.body5, + requestBody: Parameters.body6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listEnvironmentsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listEnvironments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listEnvironments", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessListEnvironmentsSuccessResponse + bodyMapper: Mappers.AccessListEnvironmentsSuccessResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, - requestBody: Parameters.body4, + requestBody: Parameters.body3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, + Parameters.resourceGroupName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listClustersOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listClusters", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listClusters", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessListClusterSuccessResponse + bodyMapper: Mappers.AccessListClusterSuccessResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, - requestBody: Parameters.body4, + requestBody: Parameters.body3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, + Parameters.resourceGroupName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listRoleBindingsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listRoleBindings", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listRoleBindings", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessListRoleBindingsSuccessResponse + bodyMapper: Mappers.AccessListRoleBindingsSuccessResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, - requestBody: Parameters.body4, + requestBody: Parameters.body3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, + Parameters.resourceGroupName1, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const createRoleBindingOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/createRoleBinding", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.RoleBindingRecord, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + requestBody: Parameters.body7, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteRoleBindingOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/deleteRoleBinding/{roleBindingId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, + Parameters.roleBindingId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listRoleBindingNameListOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listRoleBindingNameList", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.AccessRoleBindingNameListSuccessResponse, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + requestBody: Parameters.body3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/confluent/arm-confluent/src/operations/marketplaceAgreements.ts b/sdk/confluent/arm-confluent/src/operations/marketplaceAgreements.ts index 46c19792efda..16a2a9f9f2f4 100644 --- a/sdk/confluent/arm-confluent/src/operations/marketplaceAgreements.ts +++ b/sdk/confluent/arm-confluent/src/operations/marketplaceAgreements.ts @@ -20,7 +20,7 @@ import { MarketplaceAgreementsListResponse, MarketplaceAgreementsCreateOptionalParams, MarketplaceAgreementsCreateResponse, - MarketplaceAgreementsListNextResponse + MarketplaceAgreementsListNextResponse, } from "../models"; /// @@ -41,7 +41,7 @@ export class MarketplaceAgreementsImpl implements MarketplaceAgreements { * @param options The options parameters. */ public list( - options?: MarketplaceAgreementsListOptionalParams + options?: MarketplaceAgreementsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -56,13 +56,13 @@ export class MarketplaceAgreementsImpl implements MarketplaceAgreements { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: MarketplaceAgreementsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: MarketplaceAgreementsListResponse; let continuationToken = settings?.continuationToken; @@ -83,7 +83,7 @@ export class MarketplaceAgreementsImpl implements MarketplaceAgreements { } private async *listPagingAll( - options?: MarketplaceAgreementsListOptionalParams + options?: MarketplaceAgreementsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -95,7 +95,7 @@ export class MarketplaceAgreementsImpl implements MarketplaceAgreements { * @param options The options parameters. */ private _list( - options?: MarketplaceAgreementsListOptionalParams + options?: MarketplaceAgreementsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,7 +105,7 @@ export class MarketplaceAgreementsImpl implements MarketplaceAgreements { * @param options The options parameters. */ create( - options?: MarketplaceAgreementsCreateOptionalParams + options?: MarketplaceAgreementsCreateOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, createOperationSpec); } @@ -117,11 +117,11 @@ export class MarketplaceAgreementsImpl implements MarketplaceAgreements { */ private _listNext( nextLink: string, - options?: MarketplaceAgreementsListNextOptionalParams + options?: MarketplaceAgreementsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -129,57 +129,55 @@ export class MarketplaceAgreementsImpl implements MarketplaceAgreements { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Confluent/agreements", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Confluent/agreements", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfluentAgreementResourceListResponse + bodyMapper: Mappers.ConfluentAgreementResourceListResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Confluent/agreements/default", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Confluent/agreements/default", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ConfluentAgreementResource + bodyMapper: Mappers.ConfluentAgreementResource, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, requestBody: Parameters.body, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfluentAgreementResourceListResponse + bodyMapper: Mappers.ConfluentAgreementResourceListResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/confluent/arm-confluent/src/operations/organization.ts b/sdk/confluent/arm-confluent/src/operations/organization.ts index 6b33d189256a..6516a46b7943 100644 --- a/sdk/confluent/arm-confluent/src/operations/organization.ts +++ b/sdk/confluent/arm-confluent/src/operations/organization.ts @@ -16,7 +16,7 @@ import { ConfluentManagementClient } from "../confluentManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -27,6 +27,18 @@ import { OrganizationListByResourceGroupNextOptionalParams, OrganizationListByResourceGroupOptionalParams, OrganizationListByResourceGroupResponse, + SCEnvironmentRecord, + OrganizationListEnvironmentsNextOptionalParams, + OrganizationListEnvironmentsOptionalParams, + OrganizationListEnvironmentsResponse, + SCClusterRecord, + OrganizationListClustersNextOptionalParams, + OrganizationListClustersOptionalParams, + OrganizationListClustersResponse, + SchemaRegistryClusterRecord, + OrganizationListSchemaRegistryClustersNextOptionalParams, + OrganizationListSchemaRegistryClustersOptionalParams, + OrganizationListSchemaRegistryClustersResponse, OrganizationGetOptionalParams, OrganizationGetResponse, OrganizationCreateOptionalParams, @@ -34,8 +46,26 @@ import { OrganizationUpdateOptionalParams, OrganizationUpdateResponse, OrganizationDeleteOptionalParams, + OrganizationGetEnvironmentByIdOptionalParams, + OrganizationGetEnvironmentByIdResponse, + ListAccessRequestModel, + OrganizationListRegionsOptionalParams, + OrganizationListRegionsResponse, + CreateAPIKeyModel, + OrganizationCreateAPIKeyOptionalParams, + OrganizationCreateAPIKeyResponse, + OrganizationDeleteClusterAPIKeyOptionalParams, + OrganizationGetClusterAPIKeyOptionalParams, + OrganizationGetClusterAPIKeyResponse, + OrganizationGetSchemaRegistryClusterByIdOptionalParams, + OrganizationGetSchemaRegistryClusterByIdResponse, + OrganizationGetClusterByIdOptionalParams, + OrganizationGetClusterByIdResponse, OrganizationListBySubscriptionNextResponse, - OrganizationListByResourceGroupNextResponse + OrganizationListByResourceGroupNextResponse, + OrganizationListEnvironmentsNextResponse, + OrganizationListClustersNextResponse, + OrganizationListSchemaRegistryClustersNextResponse, } from "../models"; /// @@ -56,7 +86,7 @@ export class OrganizationImpl implements Organization { * @param options The options parameters. */ public listBySubscription( - options?: OrganizationListBySubscriptionOptionalParams + options?: OrganizationListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -71,13 +101,13 @@ export class OrganizationImpl implements Organization { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: OrganizationListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OrganizationListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +128,7 @@ export class OrganizationImpl implements Organization { } private async *listBySubscriptionPagingAll( - options?: OrganizationListBySubscriptionOptionalParams + options?: OrganizationListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -107,12 +137,12 @@ export class OrganizationImpl implements Organization { /** * List all Organizations under the specified resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param options The options parameters. */ public listByResourceGroup( resourceGroupName: string, - options?: OrganizationListByResourceGroupOptionalParams + options?: OrganizationListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -129,16 +159,16 @@ export class OrganizationImpl implements Organization { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: OrganizationListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OrganizationListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -153,7 +183,7 @@ export class OrganizationImpl implements Organization { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -164,11 +194,281 @@ export class OrganizationImpl implements Organization { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: OrganizationListByResourceGroupOptionalParams + options?: OrganizationListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, + )) { + yield* page; + } + } + + /** + * Lists of all the environments in a organization + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param options The options parameters. + */ + public listEnvironments( + resourceGroupName: string, + organizationName: string, + options?: OrganizationListEnvironmentsOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listEnvironmentsPagingAll( + resourceGroupName, + organizationName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listEnvironmentsPagingPage( + resourceGroupName, + organizationName, + options, + settings, + ); + }, + }; + } + + private async *listEnvironmentsPagingPage( + resourceGroupName: string, + organizationName: string, + options?: OrganizationListEnvironmentsOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: OrganizationListEnvironmentsResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listEnvironments( + resourceGroupName, + organizationName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listEnvironmentsNext( + resourceGroupName, + organizationName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listEnvironmentsPagingAll( + resourceGroupName: string, + organizationName: string, + options?: OrganizationListEnvironmentsOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listEnvironmentsPagingPage( + resourceGroupName, + organizationName, + options, + )) { + yield* page; + } + } + + /** + * Lists of all the clusters in a environment + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param options The options parameters. + */ + public listClusters( + resourceGroupName: string, + organizationName: string, + environmentId: string, + options?: OrganizationListClustersOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listClustersPagingAll( + resourceGroupName, + organizationName, + environmentId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listClustersPagingPage( + resourceGroupName, + organizationName, + environmentId, + options, + settings, + ); + }, + }; + } + + private async *listClustersPagingPage( + resourceGroupName: string, + organizationName: string, + environmentId: string, + options?: OrganizationListClustersOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: OrganizationListClustersResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listClusters( + resourceGroupName, + organizationName, + environmentId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listClustersNext( + resourceGroupName, + organizationName, + environmentId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listClustersPagingAll( + resourceGroupName: string, + organizationName: string, + environmentId: string, + options?: OrganizationListClustersOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listClustersPagingPage( + resourceGroupName, + organizationName, + environmentId, + options, + )) { + yield* page; + } + } + + /** + * Get schema registry clusters + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param options The options parameters. + */ + public listSchemaRegistryClusters( + resourceGroupName: string, + organizationName: string, + environmentId: string, + options?: OrganizationListSchemaRegistryClustersOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listSchemaRegistryClustersPagingAll( + resourceGroupName, + organizationName, + environmentId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listSchemaRegistryClustersPagingPage( + resourceGroupName, + organizationName, + environmentId, + options, + settings, + ); + }, + }; + } + + private async *listSchemaRegistryClustersPagingPage( + resourceGroupName: string, + organizationName: string, + environmentId: string, + options?: OrganizationListSchemaRegistryClustersOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: OrganizationListSchemaRegistryClustersResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listSchemaRegistryClusters( + resourceGroupName, + organizationName, + environmentId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listSchemaRegistryClustersNext( + resourceGroupName, + organizationName, + environmentId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listSchemaRegistryClustersPagingAll( + resourceGroupName: string, + organizationName: string, + environmentId: string, + options?: OrganizationListSchemaRegistryClustersOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listSchemaRegistryClustersPagingPage( + resourceGroupName, + organizationName, + environmentId, + options, )) { yield* page; } @@ -179,56 +479,56 @@ export class OrganizationImpl implements Organization { * @param options The options parameters. */ private _listBySubscription( - options?: OrganizationListBySubscriptionOptionalParams + options?: OrganizationListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } /** * List all Organizations under the specified resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param options The options parameters. */ private _listByResourceGroup( resourceGroupName: string, - options?: OrganizationListByResourceGroupOptionalParams + options?: OrganizationListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } /** * Get the properties of a specific Organization resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param options The options parameters. */ get( resourceGroupName: string, organizationName: string, - options?: OrganizationGetOptionalParams + options?: OrganizationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, organizationName, options }, - getOperationSpec + getOperationSpec, ); } /** * Create Organization resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param options The options parameters. */ async beginCreate( resourceGroupName: string, organizationName: string, - options?: OrganizationCreateOptionalParams + options?: OrganizationCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -237,21 +537,20 @@ export class OrganizationImpl implements Organization { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -260,8 +559,8 @@ export class OrganizationImpl implements Organization { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -269,15 +568,15 @@ export class OrganizationImpl implements Organization { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, organizationName, options }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< OrganizationCreateResponse, @@ -285,7 +584,7 @@ export class OrganizationImpl implements Organization { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -293,68 +592,67 @@ export class OrganizationImpl implements Organization { /** * Create Organization resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param options The options parameters. */ async beginCreateAndWait( resourceGroupName: string, organizationName: string, - options?: OrganizationCreateOptionalParams + options?: OrganizationCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, organizationName, - options + options, ); return poller.pollUntilDone(); } /** * Update Organization resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param options The options parameters. */ update( resourceGroupName: string, organizationName: string, - options?: OrganizationUpdateOptionalParams + options?: OrganizationUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, organizationName, options }, - updateOperationSpec + updateOperationSpec, ); } /** * Delete Organization resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param options The options parameters. */ async beginDelete( resourceGroupName: string, organizationName: string, - options?: OrganizationDeleteOptionalParams + options?: OrganizationDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -363,8 +661,8 @@ export class OrganizationImpl implements Organization { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -372,20 +670,20 @@ export class OrganizationImpl implements Organization { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, organizationName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -393,138 +691,412 @@ export class OrganizationImpl implements Organization { /** * Delete Organization resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param options The options parameters. */ async beginDeleteAndWait( resourceGroupName: string, organizationName: string, - options?: OrganizationDeleteOptionalParams + options?: OrganizationDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, organizationName, - options + options, ); return poller.pollUntilDone(); } /** - * ListBySubscriptionNext - * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * Lists of all the environments in a organization + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name * @param options The options parameters. */ - private _listBySubscriptionNext( - nextLink: string, - options?: OrganizationListBySubscriptionNextOptionalParams - ): Promise { + private _listEnvironments( + resourceGroupName: string, + organizationName: string, + options?: OrganizationListEnvironmentsOptionalParams, + ): Promise { return this.client.sendOperationRequest( - { nextLink, options }, - listBySubscriptionNextOperationSpec + { resourceGroupName, organizationName, options }, + listEnvironmentsOperationSpec, ); } /** - * ListByResourceGroupNext + * Get Environment details by environment Id * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id * @param options The options parameters. */ - private _listByResourceGroupNext( + getEnvironmentById( resourceGroupName: string, - nextLink: string, - options?: OrganizationListByResourceGroupNextOptionalParams - ): Promise { + organizationName: string, + environmentId: string, + options?: OrganizationGetEnvironmentByIdOptionalParams, + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + { resourceGroupName, organizationName, environmentId, options }, + getEnvironmentByIdOperationSpec, ); } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Confluent/organizations", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OrganizationResourceListResult - }, - default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer -}; -const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OrganizationResourceListResult - }, - default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OrganizationResource - }, - default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ + /** + * Lists of all the clusters in a environment + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param options The options parameters. + */ + private _listClusters( + resourceGroupName: string, + organizationName: string, + environmentId: string, + options?: OrganizationListClustersOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, organizationName, environmentId, options }, + listClustersOperationSpec, + ); + } + + /** + * Get schema registry clusters + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param options The options parameters. + */ + private _listSchemaRegistryClusters( + resourceGroupName: string, + organizationName: string, + environmentId: string, + options?: OrganizationListSchemaRegistryClustersOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, organizationName, environmentId, options }, + listSchemaRegistryClustersOperationSpec, + ); + } + + /** + * cloud provider regions available for creating Schema Registry clusters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param body List Access Request Model + * @param options The options parameters. + */ + listRegions( + resourceGroupName: string, + organizationName: string, + body: ListAccessRequestModel, + options?: OrganizationListRegionsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, organizationName, body, options }, + listRegionsOperationSpec, + ); + } + + /** + * Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param clusterId Confluent kafka or schema registry cluster id + * @param body Request payload for get creating API Key for schema registry Cluster ID or Kafka Cluster + * ID under a environment + * @param options The options parameters. + */ + createAPIKey( + resourceGroupName: string, + organizationName: string, + environmentId: string, + clusterId: string, + body: CreateAPIKeyModel, + options?: OrganizationCreateAPIKeyOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + organizationName, + environmentId, + clusterId, + body, + options, + }, + createAPIKeyOperationSpec, + ); + } + + /** + * Deletes API key of a kafka or schema registry cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param apiKeyId Confluent API Key id + * @param options The options parameters. + */ + deleteClusterAPIKey( + resourceGroupName: string, + organizationName: string, + apiKeyId: string, + options?: OrganizationDeleteClusterAPIKeyOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, organizationName, apiKeyId, options }, + deleteClusterAPIKeyOperationSpec, + ); + } + + /** + * Get API key details of a kafka or schema registry cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param apiKeyId Confluent API Key id + * @param options The options parameters. + */ + getClusterAPIKey( + resourceGroupName: string, + organizationName: string, + apiKeyId: string, + options?: OrganizationGetClusterAPIKeyOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, organizationName, apiKeyId, options }, + getClusterAPIKeyOperationSpec, + ); + } + + /** + * Get schema registry cluster by Id + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param clusterId Confluent kafka or schema registry cluster id + * @param options The options parameters. + */ + getSchemaRegistryClusterById( + resourceGroupName: string, + organizationName: string, + environmentId: string, + clusterId: string, + options?: OrganizationGetSchemaRegistryClusterByIdOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + organizationName, + environmentId, + clusterId, + options, + }, + getSchemaRegistryClusterByIdOperationSpec, + ); + } + + /** + * Get cluster by Id + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param clusterId Confluent kafka or schema registry cluster id + * @param options The options parameters. + */ + getClusterById( + resourceGroupName: string, + organizationName: string, + environmentId: string, + clusterId: string, + options?: OrganizationGetClusterByIdOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + organizationName, + environmentId, + clusterId, + options, + }, + getClusterByIdOperationSpec, + ); + } + + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: OrganizationListBySubscriptionNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBySubscriptionNextOperationSpec, + ); + } + + /** + * ListByResourceGroupNext + * @param resourceGroupName Resource group name + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. + */ + private _listByResourceGroupNext( + resourceGroupName: string, + nextLink: string, + options?: OrganizationListByResourceGroupNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listByResourceGroupNextOperationSpec, + ); + } + + /** + * ListEnvironmentsNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param nextLink The nextLink from the previous successful call to the ListEnvironments method. + * @param options The options parameters. + */ + private _listEnvironmentsNext( + resourceGroupName: string, + organizationName: string, + nextLink: string, + options?: OrganizationListEnvironmentsNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, organizationName, nextLink, options }, + listEnvironmentsNextOperationSpec, + ); + } + + /** + * ListClustersNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param nextLink The nextLink from the previous successful call to the ListClusters method. + * @param options The options parameters. + */ + private _listClustersNext( + resourceGroupName: string, + organizationName: string, + environmentId: string, + nextLink: string, + options?: OrganizationListClustersNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, organizationName, environmentId, nextLink, options }, + listClustersNextOperationSpec, + ); + } + + /** + * ListSchemaRegistryClustersNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param nextLink The nextLink from the previous successful call to the ListSchemaRegistryClusters + * method. + * @param options The options parameters. + */ + private _listSchemaRegistryClustersNext( + resourceGroupName: string, + organizationName: string, + environmentId: string, + nextLink: string, + options?: OrganizationListSchemaRegistryClustersNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, organizationName, environmentId, nextLink, options }, + listSchemaRegistryClustersNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Confluent/organizations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OrganizationResourceListResult, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer, +}; +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OrganizationResourceListResult, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OrganizationResource, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.OrganizationResource + bodyMapper: Mappers.OrganizationResource, }, 201: { - bodyMapper: Mappers.OrganizationResource + bodyMapper: Mappers.OrganizationResource, }, 202: { - bodyMapper: Mappers.OrganizationResource + bodyMapper: Mappers.OrganizationResource, }, 204: { - bodyMapper: Mappers.OrganizationResource + bodyMapper: Mappers.OrganizationResource, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, requestBody: Parameters.body1, queryParameters: [Parameters.apiVersion], @@ -532,23 +1104,22 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.OrganizationResource + bodyMapper: Mappers.OrganizationResource, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, requestBody: Parameters.body2, queryParameters: [Parameters.apiVersion], @@ -556,15 +1127,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}", httpMethod: "DELETE", responses: { 200: {}, @@ -572,55 +1142,356 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listEnvironmentsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GetEnvironmentsResponse, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.pageToken, + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEnvironmentByIdOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SCEnvironmentRecord, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, + Parameters.environmentId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listClustersOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ListClustersSuccessResponse, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.pageToken, + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, + Parameters.environmentId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listSchemaRegistryClustersOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/schemaRegistryClusters", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ListSchemaRegistryClustersResponse, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.pageToken, + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, + Parameters.environmentId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listRegionsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/listRegions", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ListRegionsSuccessResponse, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + requestBody: Parameters.body3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const createAPIKeyOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}/createAPIKey", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.APIKeyRecord, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + requestBody: Parameters.body4, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, + Parameters.environmentId, + Parameters.clusterId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteClusterAPIKeyOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/apiKeys/{apiKeyId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, + Parameters.apiKeyId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getClusterAPIKeyOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/apiKeys/{apiKeyId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.APIKeyRecord, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, + Parameters.apiKeyId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getSchemaRegistryClusterByIdOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/schemaRegistryClusters/{clusterId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SchemaRegistryClusterRecord, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, + Parameters.environmentId, + Parameters.clusterId, ], headerParameters: [Parameters.accept], - serializer + serializer, +}; +const getClusterByIdOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SCClusterRecord, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, + Parameters.environmentId, + Parameters.clusterId, + ], + headerParameters: [Parameters.accept], + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OrganizationResourceListResult + bodyMapper: Mappers.OrganizationResourceListResult, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OrganizationResourceListResult + bodyMapper: Mappers.OrganizationResourceListResult, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listEnvironmentsNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GetEnvironmentsResponse, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.organizationName, + Parameters.resourceGroupName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listClustersNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ListClustersSuccessResponse, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.organizationName, + Parameters.resourceGroupName1, + Parameters.environmentId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listSchemaRegistryClustersNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ListSchemaRegistryClustersResponse, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.organizationName, + Parameters.resourceGroupName1, + Parameters.environmentId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/confluent/arm-confluent/src/operations/organizationOperations.ts b/sdk/confluent/arm-confluent/src/operations/organizationOperations.ts index c08118fd9537..31d44497c459 100644 --- a/sdk/confluent/arm-confluent/src/operations/organizationOperations.ts +++ b/sdk/confluent/arm-confluent/src/operations/organizationOperations.ts @@ -18,7 +18,7 @@ import { OrganizationOperationsListNextOptionalParams, OrganizationOperationsListOptionalParams, OrganizationOperationsListResponse, - OrganizationOperationsListNextResponse + OrganizationOperationsListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class OrganizationOperationsImpl implements OrganizationOperations { * @param options The options parameters. */ public list( - options?: OrganizationOperationsListOptionalParams + options?: OrganizationOperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class OrganizationOperationsImpl implements OrganizationOperations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OrganizationOperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OrganizationOperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class OrganizationOperationsImpl implements OrganizationOperations { } private async *listPagingAll( - options?: OrganizationOperationsListOptionalParams + options?: OrganizationOperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class OrganizationOperationsImpl implements OrganizationOperations { * @param options The options parameters. */ private _list( - options?: OrganizationOperationsListOptionalParams + options?: OrganizationOperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class OrganizationOperationsImpl implements OrganizationOperations { */ private _listNext( nextLink: string, - options?: OrganizationOperationsListNextOptionalParams + options?: OrganizationOperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/confluent/arm-confluent/src/operations/validations.ts b/sdk/confluent/arm-confluent/src/operations/validations.ts index 981bbeecc9eb..d8fcf37f73f1 100644 --- a/sdk/confluent/arm-confluent/src/operations/validations.ts +++ b/sdk/confluent/arm-confluent/src/operations/validations.ts @@ -16,7 +16,7 @@ import { ValidationsValidateOrganizationOptionalParams, ValidationsValidateOrganizationResponse, ValidationsValidateOrganizationV2OptionalParams, - ValidationsValidateOrganizationV2Response + ValidationsValidateOrganizationV2Response, } from "../models"; /** Class containing Validations operations. */ @@ -33,7 +33,7 @@ export class ValidationsImpl implements Validations { /** * Organization Validate proxy resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body Organization resource model * @param options The options parameters. @@ -42,17 +42,17 @@ export class ValidationsImpl implements Validations { resourceGroupName: string, organizationName: string, body: OrganizationResource, - options?: ValidationsValidateOrganizationOptionalParams + options?: ValidationsValidateOrganizationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, organizationName, body, options }, - validateOrganizationOperationSpec + validateOrganizationOperationSpec, ); } /** * Organization Validate proxy resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body Organization resource model * @param options The options parameters. @@ -61,11 +61,11 @@ export class ValidationsImpl implements Validations { resourceGroupName: string, organizationName: string, body: OrganizationResource, - options?: ValidationsValidateOrganizationV2OptionalParams + options?: ValidationsValidateOrganizationV2OptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, organizationName, body, options }, - validateOrganizationV2OperationSpec + validateOrganizationV2OperationSpec, ); } } @@ -73,50 +73,48 @@ export class ValidationsImpl implements Validations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const validateOrganizationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/validations/{organizationName}/orgvalidate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/validations/{organizationName}/orgvalidate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OrganizationResource + bodyMapper: Mappers.OrganizationResource, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, - requestBody: Parameters.body3, + requestBody: Parameters.body5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const validateOrganizationV2OperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/validations/{organizationName}/orgvalidateV2", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/validations/{organizationName}/orgvalidateV2", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ValidationResponse + bodyMapper: Mappers.ValidationResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, - requestBody: Parameters.body3, + requestBody: Parameters.body5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/confluent/arm-confluent/src/operationsInterfaces/access.ts b/sdk/confluent/arm-confluent/src/operationsInterfaces/access.ts index f1f8c4dd11cb..fc73c7691c87 100644 --- a/sdk/confluent/arm-confluent/src/operationsInterfaces/access.ts +++ b/sdk/confluent/arm-confluent/src/operationsInterfaces/access.ts @@ -22,14 +22,20 @@ import { AccessListClustersOptionalParams, AccessListClustersResponse, AccessListRoleBindingsOptionalParams, - AccessListRoleBindingsResponse + AccessListRoleBindingsResponse, + AccessCreateRoleBindingRequestModel, + AccessCreateRoleBindingOptionalParams, + AccessCreateRoleBindingResponse, + AccessDeleteRoleBindingOptionalParams, + AccessListRoleBindingNameListOptionalParams, + AccessListRoleBindingNameListResponse, } from "../models"; /** Interface representing a Access. */ export interface Access { /** * Organization users details - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body List Access Request Model * @param options The options parameters. @@ -38,11 +44,11 @@ export interface Access { resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, - options?: AccessListUsersOptionalParams + options?: AccessListUsersOptionalParams, ): Promise; /** * Organization service accounts details - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body List Access Request Model * @param options The options parameters. @@ -51,11 +57,11 @@ export interface Access { resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, - options?: AccessListServiceAccountsOptionalParams + options?: AccessListServiceAccountsOptionalParams, ): Promise; /** * Organization accounts invitation details - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body List Access Request Model * @param options The options parameters. @@ -64,11 +70,11 @@ export interface Access { resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, - options?: AccessListInvitationsOptionalParams + options?: AccessListInvitationsOptionalParams, ): Promise; /** * Invite user to the organization - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body Invite user account model * @param options The options parameters. @@ -77,7 +83,7 @@ export interface Access { resourceGroupName: string, organizationName: string, body: AccessInviteUserAccountModel, - options?: AccessInviteUserOptionalParams + options?: AccessInviteUserOptionalParams, ): Promise; /** * Environment list of an organization @@ -90,7 +96,7 @@ export interface Access { resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, - options?: AccessListEnvironmentsOptionalParams + options?: AccessListEnvironmentsOptionalParams, ): Promise; /** * Cluster details @@ -103,7 +109,7 @@ export interface Access { resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, - options?: AccessListClustersOptionalParams + options?: AccessListClustersOptionalParams, ): Promise; /** * Organization role bindings @@ -116,6 +122,45 @@ export interface Access { resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, - options?: AccessListRoleBindingsOptionalParams + options?: AccessListRoleBindingsOptionalParams, ): Promise; + /** + * Organization role bindings + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param body Create role binding Request Model + * @param options The options parameters. + */ + createRoleBinding( + resourceGroupName: string, + organizationName: string, + body: AccessCreateRoleBindingRequestModel, + options?: AccessCreateRoleBindingOptionalParams, + ): Promise; + /** + * Organization role bindings + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param roleBindingId Confluent Role binding id + * @param options The options parameters. + */ + deleteRoleBinding( + resourceGroupName: string, + organizationName: string, + roleBindingId: string, + options?: AccessDeleteRoleBindingOptionalParams, + ): Promise; + /** + * Organization role bindings + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param body List Access Request Model + * @param options The options parameters. + */ + listRoleBindingNameList( + resourceGroupName: string, + organizationName: string, + body: ListAccessRequestModel, + options?: AccessListRoleBindingNameListOptionalParams, + ): Promise; } diff --git a/sdk/confluent/arm-confluent/src/operationsInterfaces/marketplaceAgreements.ts b/sdk/confluent/arm-confluent/src/operationsInterfaces/marketplaceAgreements.ts index 8a1c45da778c..18f64ec69431 100644 --- a/sdk/confluent/arm-confluent/src/operationsInterfaces/marketplaceAgreements.ts +++ b/sdk/confluent/arm-confluent/src/operationsInterfaces/marketplaceAgreements.ts @@ -11,7 +11,7 @@ import { ConfluentAgreementResource, MarketplaceAgreementsListOptionalParams, MarketplaceAgreementsCreateOptionalParams, - MarketplaceAgreementsCreateResponse + MarketplaceAgreementsCreateResponse, } from "../models"; /// @@ -22,13 +22,13 @@ export interface MarketplaceAgreements { * @param options The options parameters. */ list( - options?: MarketplaceAgreementsListOptionalParams + options?: MarketplaceAgreementsListOptionalParams, ): PagedAsyncIterableIterator; /** * Create Confluent Marketplace agreement in the subscription. * @param options The options parameters. */ create( - options?: MarketplaceAgreementsCreateOptionalParams + options?: MarketplaceAgreementsCreateOptionalParams, ): Promise; } diff --git a/sdk/confluent/arm-confluent/src/operationsInterfaces/organization.ts b/sdk/confluent/arm-confluent/src/operationsInterfaces/organization.ts index c7dca9180a76..3ad80109bea1 100644 --- a/sdk/confluent/arm-confluent/src/operationsInterfaces/organization.ts +++ b/sdk/confluent/arm-confluent/src/operationsInterfaces/organization.ts @@ -12,13 +12,34 @@ import { OrganizationResource, OrganizationListBySubscriptionOptionalParams, OrganizationListByResourceGroupOptionalParams, + SCEnvironmentRecord, + OrganizationListEnvironmentsOptionalParams, + SCClusterRecord, + OrganizationListClustersOptionalParams, + SchemaRegistryClusterRecord, + OrganizationListSchemaRegistryClustersOptionalParams, OrganizationGetOptionalParams, OrganizationGetResponse, OrganizationCreateOptionalParams, OrganizationCreateResponse, OrganizationUpdateOptionalParams, OrganizationUpdateResponse, - OrganizationDeleteOptionalParams + OrganizationDeleteOptionalParams, + OrganizationGetEnvironmentByIdOptionalParams, + OrganizationGetEnvironmentByIdResponse, + ListAccessRequestModel, + OrganizationListRegionsOptionalParams, + OrganizationListRegionsResponse, + CreateAPIKeyModel, + OrganizationCreateAPIKeyOptionalParams, + OrganizationCreateAPIKeyResponse, + OrganizationDeleteClusterAPIKeyOptionalParams, + OrganizationGetClusterAPIKeyOptionalParams, + OrganizationGetClusterAPIKeyResponse, + OrganizationGetSchemaRegistryClusterByIdOptionalParams, + OrganizationGetSchemaRegistryClusterByIdResponse, + OrganizationGetClusterByIdOptionalParams, + OrganizationGetClusterByIdResponse, } from "../models"; /// @@ -29,38 +50,75 @@ export interface Organization { * @param options The options parameters. */ listBySubscription( - options?: OrganizationListBySubscriptionOptionalParams + options?: OrganizationListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * List all Organizations under the specified resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param options The options parameters. */ listByResourceGroup( resourceGroupName: string, - options?: OrganizationListByResourceGroupOptionalParams + options?: OrganizationListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** - * Get the properties of a specific Organization resource. + * Lists of all the environments in a organization + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param options The options parameters. + */ + listEnvironments( + resourceGroupName: string, + organizationName: string, + options?: OrganizationListEnvironmentsOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Lists of all the clusters in a environment + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param options The options parameters. + */ + listClusters( + resourceGroupName: string, + organizationName: string, + environmentId: string, + options?: OrganizationListClustersOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Get schema registry clusters * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param options The options parameters. + */ + listSchemaRegistryClusters( + resourceGroupName: string, + organizationName: string, + environmentId: string, + options?: OrganizationListSchemaRegistryClustersOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Get the properties of a specific Organization resource. + * @param resourceGroupName Resource group name + * @param organizationName Organization resource name * @param options The options parameters. */ get( resourceGroupName: string, organizationName: string, - options?: OrganizationGetOptionalParams + options?: OrganizationGetOptionalParams, ): Promise; /** * Create Organization resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param options The options parameters. */ beginCreate( resourceGroupName: string, organizationName: string, - options?: OrganizationCreateOptionalParams + options?: OrganizationCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -69,46 +127,146 @@ export interface Organization { >; /** * Create Organization resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param options The options parameters. */ beginCreateAndWait( resourceGroupName: string, organizationName: string, - options?: OrganizationCreateOptionalParams + options?: OrganizationCreateOptionalParams, ): Promise; /** * Update Organization resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param options The options parameters. */ update( resourceGroupName: string, organizationName: string, - options?: OrganizationUpdateOptionalParams + options?: OrganizationUpdateOptionalParams, ): Promise; /** * Delete Organization resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param options The options parameters. */ beginDelete( resourceGroupName: string, organizationName: string, - options?: OrganizationDeleteOptionalParams + options?: OrganizationDeleteOptionalParams, ): Promise, void>>; /** * Delete Organization resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param options The options parameters. */ beginDeleteAndWait( resourceGroupName: string, organizationName: string, - options?: OrganizationDeleteOptionalParams + options?: OrganizationDeleteOptionalParams, + ): Promise; + /** + * Get Environment details by environment Id + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param options The options parameters. + */ + getEnvironmentById( + resourceGroupName: string, + organizationName: string, + environmentId: string, + options?: OrganizationGetEnvironmentByIdOptionalParams, + ): Promise; + /** + * cloud provider regions available for creating Schema Registry clusters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param body List Access Request Model + * @param options The options parameters. + */ + listRegions( + resourceGroupName: string, + organizationName: string, + body: ListAccessRequestModel, + options?: OrganizationListRegionsOptionalParams, + ): Promise; + /** + * Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param clusterId Confluent kafka or schema registry cluster id + * @param body Request payload for get creating API Key for schema registry Cluster ID or Kafka Cluster + * ID under a environment + * @param options The options parameters. + */ + createAPIKey( + resourceGroupName: string, + organizationName: string, + environmentId: string, + clusterId: string, + body: CreateAPIKeyModel, + options?: OrganizationCreateAPIKeyOptionalParams, + ): Promise; + /** + * Deletes API key of a kafka or schema registry cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param apiKeyId Confluent API Key id + * @param options The options parameters. + */ + deleteClusterAPIKey( + resourceGroupName: string, + organizationName: string, + apiKeyId: string, + options?: OrganizationDeleteClusterAPIKeyOptionalParams, ): Promise; + /** + * Get API key details of a kafka or schema registry cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param apiKeyId Confluent API Key id + * @param options The options parameters. + */ + getClusterAPIKey( + resourceGroupName: string, + organizationName: string, + apiKeyId: string, + options?: OrganizationGetClusterAPIKeyOptionalParams, + ): Promise; + /** + * Get schema registry cluster by Id + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param clusterId Confluent kafka or schema registry cluster id + * @param options The options parameters. + */ + getSchemaRegistryClusterById( + resourceGroupName: string, + organizationName: string, + environmentId: string, + clusterId: string, + options?: OrganizationGetSchemaRegistryClusterByIdOptionalParams, + ): Promise; + /** + * Get cluster by Id + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param clusterId Confluent kafka or schema registry cluster id + * @param options The options parameters. + */ + getClusterById( + resourceGroupName: string, + organizationName: string, + environmentId: string, + clusterId: string, + options?: OrganizationGetClusterByIdOptionalParams, + ): Promise; } diff --git a/sdk/confluent/arm-confluent/src/operationsInterfaces/organizationOperations.ts b/sdk/confluent/arm-confluent/src/operationsInterfaces/organizationOperations.ts index 40d4e1173bfc..0e09c8177326 100644 --- a/sdk/confluent/arm-confluent/src/operationsInterfaces/organizationOperations.ts +++ b/sdk/confluent/arm-confluent/src/operationsInterfaces/organizationOperations.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { OperationResult, - OrganizationOperationsListOptionalParams + OrganizationOperationsListOptionalParams, } from "../models"; /// @@ -20,6 +20,6 @@ export interface OrganizationOperations { * @param options The options parameters. */ list( - options?: OrganizationOperationsListOptionalParams + options?: OrganizationOperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/confluent/arm-confluent/src/operationsInterfaces/validations.ts b/sdk/confluent/arm-confluent/src/operationsInterfaces/validations.ts index 1ec5eb5dac91..5a6a5f548bd2 100644 --- a/sdk/confluent/arm-confluent/src/operationsInterfaces/validations.ts +++ b/sdk/confluent/arm-confluent/src/operationsInterfaces/validations.ts @@ -11,14 +11,14 @@ import { ValidationsValidateOrganizationOptionalParams, ValidationsValidateOrganizationResponse, ValidationsValidateOrganizationV2OptionalParams, - ValidationsValidateOrganizationV2Response + ValidationsValidateOrganizationV2Response, } from "../models"; /** Interface representing a Validations. */ export interface Validations { /** * Organization Validate proxy resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body Organization resource model * @param options The options parameters. @@ -27,11 +27,11 @@ export interface Validations { resourceGroupName: string, organizationName: string, body: OrganizationResource, - options?: ValidationsValidateOrganizationOptionalParams + options?: ValidationsValidateOrganizationOptionalParams, ): Promise; /** * Organization Validate proxy resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body Organization resource model * @param options The options parameters. @@ -40,6 +40,6 @@ export interface Validations { resourceGroupName: string, organizationName: string, body: OrganizationResource, - options?: ValidationsValidateOrganizationV2OptionalParams + options?: ValidationsValidateOrganizationV2OptionalParams, ): Promise; } diff --git a/sdk/confluent/arm-confluent/src/pagingHelper.ts b/sdk/confluent/arm-confluent/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/confluent/arm-confluent/src/pagingHelper.ts +++ b/sdk/confluent/arm-confluent/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/containerregistry/container-registry/tests.yml b/sdk/containerregistry/container-registry/tests.yml index f5a9c8dac61d..7d11931889d0 100644 --- a/sdk/containerregistry/container-registry/tests.yml +++ b/sdk/containerregistry/container-registry/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/container-registry" ServiceDirectory: containerregistry diff --git a/sdk/core/abort-controller/CHANGELOG.md b/sdk/core/abort-controller/CHANGELOG.md index 274e1bfba833..24f02323bd99 100644 --- a/sdk/core/abort-controller/CHANGELOG.md +++ b/sdk/core/abort-controller/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 2.0.1 (Unreleased) +## 2.1.1 (Unreleased) ### Features Added @@ -10,6 +10,13 @@ ### Other Changes +## 2.1.0 (2024-03-12) + +### Other Changes + +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. + ## 2.0.0 (2024-01-05) ### Breaking Changes diff --git a/sdk/core/abort-controller/package.json b/sdk/core/abort-controller/package.json index d194b1645806..cff6efd46dd0 100644 --- a/sdk/core/abort-controller/package.json +++ b/sdk/core/abort-controller/package.json @@ -1,7 +1,7 @@ { "name": "@azure/abort-controller", "sdk-type": "client", - "version": "2.0.1", + "version": "2.1.1", "description": "Microsoft Azure SDK for JavaScript - Aborter", "author": "Microsoft Corporation", "license": "MIT", diff --git a/sdk/core/core-auth/CHANGELOG.md b/sdk/core/core-auth/CHANGELOG.md index bef94d9bf651..db776f7ab51f 100644 --- a/sdk/core/core-auth/CHANGELOG.md +++ b/sdk/core/core-auth/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.6.1 (Unreleased) +## 1.7.1 (Unreleased) ### Features Added @@ -10,6 +10,13 @@ ### Other Changes +## 1.7.0 (2024-03-12) + +### Other Changes + +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. + ## 1.6.0 (2024-02-01) ### Features Added diff --git a/sdk/core/core-auth/package.json b/sdk/core/core-auth/package.json index bcd65de80c50..1bc722cb78ad 100644 --- a/sdk/core/core-auth/package.json +++ b/sdk/core/core-auth/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-auth", - "version": "1.6.1", + "version": "1.7.1", "description": "Provides low-level interfaces and helper methods for authentication in Azure SDK", "sdk-type": "client", "type": "module", diff --git a/sdk/core/core-client-rest/CHANGELOG.md b/sdk/core/core-client-rest/CHANGELOG.md index 1aaa50f27e76..403f5087e2b4 100644 --- a/sdk/core/core-client-rest/CHANGELOG.md +++ b/sdk/core/core-client-rest/CHANGELOG.md @@ -1,19 +1,30 @@ # Release History -## 1.2.1 (Unreleased) +## 1.3.1 (Unreleased) ### Features Added -- Allow customers to set request content type by `option.contentType` or `content-type` request headers. - ### Breaking Changes ### Bugs Fixed +### Other Changes + +## 1.3.0 (2024-03-12) + +### Features Added + +- Allow customers to set request content type by `option.contentType` or `content-type` request headers. + +### Bugs Fixed + - Set the content-type as `undefined` if it's a non-json string in the body and we are unknown of the content-type, but remain to be `application/json` if it's json string. ### Other Changes +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. + ## 1.2.0 (2024-02-01) ### Features Added diff --git a/sdk/core/core-client-rest/package.json b/sdk/core/core-client-rest/package.json index 43dc2367576e..57946d793ee3 100644 --- a/sdk/core/core-client-rest/package.json +++ b/sdk/core/core-client-rest/package.json @@ -1,6 +1,6 @@ { "name": "@azure-rest/core-client", - "version": "1.2.1", + "version": "1.3.1", "description": "Core library for interfacing with Azure Rest Clients", "sdk-type": "client", "type": "module", diff --git a/sdk/core/core-client/.tshy/browser.json b/sdk/core/core-client/.tshy/browser.json index 32e74e04ec62..58163fb8398e 100644 --- a/sdk/core/core-client/.tshy/browser.json +++ b/sdk/core/core-client/.tshy/browser.json @@ -5,7 +5,9 @@ "../src/**/*.mts", "../src/**/*.tsx" ], - "exclude": [], + "exclude": [ + ".././src/state-cjs.cts" + ], "compilerOptions": { "outDir": "../.tshy-build/browser" } diff --git a/sdk/core/core-client/.tshy/commonjs.json b/sdk/core/core-client/.tshy/commonjs.json index c0f38bdd7176..5bf9d5b42975 100644 --- a/sdk/core/core-client/.tshy/commonjs.json +++ b/sdk/core/core-client/.tshy/commonjs.json @@ -7,7 +7,8 @@ ], "exclude": [ "../src/**/*.mts", - "../src/base64-browser.mts" + "../src/base64-browser.mts", + "../src/state-browser.mts" ], "compilerOptions": { "outDir": "../.tshy-build/commonjs" diff --git a/sdk/core/core-client/.tshy/esm.json b/sdk/core/core-client/.tshy/esm.json index 0c45c26618b2..26e2bdfa8211 100644 --- a/sdk/core/core-client/.tshy/esm.json +++ b/sdk/core/core-client/.tshy/esm.json @@ -6,7 +6,9 @@ "../src/**/*.tsx" ], "exclude": [ - ".././src/base64-browser.mts" + ".././src/state-cjs.cts", + ".././src/base64-browser.mts", + ".././src/state-browser.mts" ], "compilerOptions": { "outDir": "../.tshy-build/esm" diff --git a/sdk/core/core-client/.tshy/react-native.json b/sdk/core/core-client/.tshy/react-native.json index 2b28336a2d5f..8f1fbed22998 100644 --- a/sdk/core/core-client/.tshy/react-native.json +++ b/sdk/core/core-client/.tshy/react-native.json @@ -6,7 +6,9 @@ "../src/**/*.tsx" ], "exclude": [ - ".././src/base64-browser.mts" + ".././src/state-cjs.cts", + ".././src/base64-browser.mts", + ".././src/state-browser.mts" ], "compilerOptions": { "outDir": "../.tshy-build/react-native" diff --git a/sdk/core/core-client/CHANGELOG.md b/sdk/core/core-client/CHANGELOG.md index 5d73fe62da34..2c9d18a043f2 100644 --- a/sdk/core/core-client/CHANGELOG.md +++ b/sdk/core/core-client/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.8.1 (Unreleased) +## 1.9.1 (Unreleased) ### Features Added @@ -10,6 +10,13 @@ ### Other Changes +## 1.9.0 (2024-03-12) + +### Other Changes + +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. + ## 1.8.0 (2024-02-01) ### Bugs Fixed diff --git a/sdk/core/core-client/package.json b/sdk/core/core-client/package.json index f718bd9ef99e..714f45a0d542 100644 --- a/sdk/core/core-client/package.json +++ b/sdk/core/core-client/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-client", - "version": "1.8.1", + "version": "1.9.1", "description": "Core library for interfacing with AutoRest generated code", "sdk-type": "client", "type": "module", @@ -65,7 +65,7 @@ "pack": "npm pack 2>&1", "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser", "test:node": "npm run clean && tshy && npm run unit-test:node && npm run integration-test:node", - "test": "npm run clean && tshy && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test", + "test": "npm run clean && tshy && npm run unit-test:node && npm run unit-test:browser && npm run integration-test", "unit-test:browser": "npm run build:test && dev-tool run test:vitest --no-test-proxy --browser", "unit-test:node": "dev-tool run test:vitest --no-test-proxy", "unit-test": "npm run unit-test:node && npm run unit-test:browser" diff --git a/sdk/core/core-client/src/operationHelpers.ts b/sdk/core/core-client/src/operationHelpers.ts index c385d2e93aaf..387cfb324787 100644 --- a/sdk/core/core-client/src/operationHelpers.ts +++ b/sdk/core/core-client/src/operationHelpers.ts @@ -11,6 +11,8 @@ import { ParameterPath, } from "./interfaces.js"; +import { state } from "./state.js"; + /** * @internal * Retrieves the value to use for a given operation argument @@ -106,7 +108,6 @@ function getPropertyFromParameterPath( return result; } -const operationRequestMap = new WeakMap(); const originalRequestSymbol = Symbol.for("@azure/core-client original request"); function hasOriginalRequest( @@ -119,11 +120,11 @@ export function getOperationRequestInfo(request: OperationRequest): OperationReq if (hasOriginalRequest(request)) { return getOperationRequestInfo(request[originalRequestSymbol]); } - let info = operationRequestMap.get(request); + let info = state.operationRequestMap.get(request); if (!info) { info = {}; - operationRequestMap.set(request, info); + state.operationRequestMap.set(request, info); } return info; } diff --git a/sdk/core/core-client/src/state-browser.mts b/sdk/core/core-client/src/state-browser.mts new file mode 100644 index 000000000000..81b4d3890408 --- /dev/null +++ b/sdk/core/core-client/src/state-browser.mts @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { OperationRequest, OperationRequestInfo } from "./interfaces.js"; + +/** + * Browser-only implementation of the module's state. The browser esm variant will not load the commonjs state, so we do not need to share state between the two. + */ +export const state = { + operationRequestMap: new WeakMap(), +}; diff --git a/sdk/core/core-client/src/state-cjs.cts b/sdk/core/core-client/src/state-cjs.cts new file mode 100644 index 000000000000..aefce55d4899 --- /dev/null +++ b/sdk/core/core-client/src/state-cjs.cts @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +/** + * Holds the singleton operationRequestMap, to be shared across CJS and ESM imports. + */ +export const state = { + operationRequestMap: new WeakMap(), +}; diff --git a/sdk/core/core-client/src/state.ts b/sdk/core/core-client/src/state.ts new file mode 100644 index 000000000000..ff129017f26b --- /dev/null +++ b/sdk/core/core-client/src/state.ts @@ -0,0 +1,15 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { OperationRequest, OperationRequestInfo } from "./interfaces.js"; + +// @ts-expect-error The recommended approach to sharing module state between ESM and CJS. +// See https://github.com/isaacs/tshy/blob/main/README.md#module-local-state for additional information. +import { state as cjsState } from "../commonjs/state.js"; + +/** + * Defines the shared state between CJS and ESM by re-exporting the CJS state. + */ +export const state = cjsState as { + operationRequestMap: WeakMap; +}; diff --git a/sdk/core/core-client/vitest.config.ts b/sdk/core/core-client/vitest.config.ts index e94c7dd91c76..1e30814aad1c 100644 --- a/sdk/core/core-client/vitest.config.ts +++ b/sdk/core/core-client/vitest.config.ts @@ -2,6 +2,7 @@ // Licensed under the MIT license. import { defineConfig } from "vitest/config"; +import { resolve } from "node:path"; export default defineConfig({ test: { @@ -13,6 +14,9 @@ export default defineConfig({ toFake: ["setTimeout", "Date"], }, watch: false, + alias: { + "../commonjs/state.js": resolve("./src/state-cjs.cts"), + }, include: ["test/**/*.spec.ts"], exclude: ["test/**/browser/*.spec.ts"], coverage: { diff --git a/sdk/core/core-http-compat/CHANGELOG.md b/sdk/core/core-http-compat/CHANGELOG.md index 3f6cc20b6a19..91b8a62d3ee5 100644 --- a/sdk/core/core-http-compat/CHANGELOG.md +++ b/sdk/core/core-http-compat/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 2.0.2 (Unreleased) +## 2.1.1 (Unreleased) ### Features Added @@ -10,6 +10,13 @@ ### Other Changes +## 2.1.0 (2024-03-12) + +### Other Changes + +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. + ## 2.0.1 (2023-04-06) ### Bugs Fixed diff --git a/sdk/core/core-http-compat/package.json b/sdk/core/core-http-compat/package.json index cf8a37a8d5c4..a50fe272c60b 100644 --- a/sdk/core/core-http-compat/package.json +++ b/sdk/core/core-http-compat/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-http-compat", - "version": "2.0.2", + "version": "2.1.1", "description": "Core HTTP Compatibility Library to bridge the gap between Core V1 & V2 packages.", "sdk-type": "client", "type": "module", diff --git a/sdk/core/core-lro/CHANGELOG.md b/sdk/core/core-lro/CHANGELOG.md index c2fcfecce9a5..9be834352b56 100644 --- a/sdk/core/core-lro/CHANGELOG.md +++ b/sdk/core/core-lro/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 2.6.1 (Unreleased) +## 2.7.1 (Unreleased) ### Features Added @@ -10,6 +10,13 @@ ### Other Changes +## 2.7.0 (2024-03-12) + +### Other Changes + +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. + ## 2.6.0 (2024-02-01) ### Other Changes diff --git a/sdk/core/core-lro/package.json b/sdk/core/core-lro/package.json index 719b6f72501d..5d90e88a4735 100644 --- a/sdk/core/core-lro/package.json +++ b/sdk/core/core-lro/package.json @@ -3,7 +3,7 @@ "author": "Microsoft Corporation", "sdk-type": "client", "type": "module", - "version": "2.6.1", + "version": "2.7.1", "description": "Isomorphic client library for supporting long-running operations in node.js and browser.", "exports": { "./package.json": "./package.json", @@ -26,6 +26,11 @@ } } }, + "files": [ + "dist/", + "LICENSE", + "README.md" + ], "main": "./dist/commonjs/index.js", "types": "./dist/commonjs/index.d.ts", "tags": [ diff --git a/sdk/core/core-paging/CHANGELOG.md b/sdk/core/core-paging/CHANGELOG.md index 1fd3eafb8c77..38c98106b608 100644 --- a/sdk/core/core-paging/CHANGELOG.md +++ b/sdk/core/core-paging/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.5.1 (Unreleased) +## 1.6.1 (Unreleased) ### Features Added @@ -10,6 +10,13 @@ ### Other Changes +## 1.6.0 (2024-03-12) + +### Other Changes + +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. + ## 1.5.0 (2023-02-02) ### Features Added diff --git a/sdk/core/core-paging/package.json b/sdk/core/core-paging/package.json index b6ad22f732b8..be471e0b05e2 100644 --- a/sdk/core/core-paging/package.json +++ b/sdk/core/core-paging/package.json @@ -2,7 +2,7 @@ "name": "@azure/core-paging", "author": "Microsoft Corporation", "sdk-type": "client", - "version": "1.5.1", + "version": "1.6.1", "description": "Core types for paging async iterable iterators", "type": "module", "main": "./dist/commonjs/index.js", diff --git a/sdk/core/core-rest-pipeline/CHANGELOG.md b/sdk/core/core-rest-pipeline/CHANGELOG.md index dd966237d560..bda03acd7caf 100644 --- a/sdk/core/core-rest-pipeline/CHANGELOG.md +++ b/sdk/core/core-rest-pipeline/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.14.1 (Unreleased) +## 1.15.1 (Unreleased) ### Features Added @@ -8,11 +8,19 @@ ### Bugs Fixed +### Other Changes + +## 1.15.0 (2024-03-12) + +### Bugs Fixed + - Fix issue where files created using `createFileFromStream` were not properly supported in the browser. ### Other Changes - In the browser, `formDataPolicy` once again uses `multipartPolicy` when content type is `multipart/form-data`. This functionality was removed in 1.14.0, but has now been re-enabled. +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. ## 1.14.0 (2024-02-01) diff --git a/sdk/core/core-rest-pipeline/package.json b/sdk/core/core-rest-pipeline/package.json index 9548be998c46..bb5ced282040 100644 --- a/sdk/core/core-rest-pipeline/package.json +++ b/sdk/core/core-rest-pipeline/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-rest-pipeline", - "version": "1.14.1", + "version": "1.15.1", "description": "Isomorphic client library for making HTTP requests in node.js and browser.", "sdk-type": "client", "type": "module", diff --git a/sdk/core/core-rest-pipeline/src/constants.ts b/sdk/core/core-rest-pipeline/src/constants.ts index 54250c836e2b..26ff5a829a76 100644 --- a/sdk/core/core-rest-pipeline/src/constants.ts +++ b/sdk/core/core-rest-pipeline/src/constants.ts @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -export const SDK_VERSION: string = "1.14.1"; +export const SDK_VERSION: string = "1.15.1"; export const DEFAULT_RETRY_POLICY_COUNT = 3; diff --git a/sdk/core/core-sse/CHANGELOG.md b/sdk/core/core-sse/CHANGELOG.md index 96ce115e15f5..e0d7b32e5088 100644 --- a/sdk/core/core-sse/CHANGELOG.md +++ b/sdk/core/core-sse/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 2.0.1 (Unreleased) +## 2.1.1 (Unreleased) ### Features Added @@ -10,6 +10,13 @@ ### Other Changes +## 2.1.0 (2024-03-12) + +### Other Changes + +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. + ## 2.0.0 (2024-01-02) ### Features Added diff --git a/sdk/core/core-sse/package.json b/sdk/core/core-sse/package.json index ac671056dcfc..4e65a7d7b4d8 100644 --- a/sdk/core/core-sse/package.json +++ b/sdk/core/core-sse/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-sse", - "version": "2.0.1", + "version": "2.1.1", "description": "Implementation of the Server-sent events protocol for Node.js and browsers.", "sdk-type": "client", "type": "module", diff --git a/sdk/core/core-tracing/CHANGELOG.md b/sdk/core/core-tracing/CHANGELOG.md index 0019056bf643..63ac9d907cf8 100644 --- a/sdk/core/core-tracing/CHANGELOG.md +++ b/sdk/core/core-tracing/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.0.2 (Unreleased) +## 1.1.1 (Unreleased) ### Features Added @@ -10,6 +10,13 @@ ### Other Changes +## 1.1.0 (2024-03-12) + +### Other Changes + +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. + ## 1.0.1 (2022-05-05) ### Other Changes diff --git a/sdk/core/core-tracing/package.json b/sdk/core/core-tracing/package.json index 7210f2b64a43..5b72d9373350 100644 --- a/sdk/core/core-tracing/package.json +++ b/sdk/core/core-tracing/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-tracing", - "version": "1.0.2", + "version": "1.1.1", "description": "Provides low-level interfaces and helper methods for tracing in Azure SDK", "sdk-type": "client", "type": "module", diff --git a/sdk/core/core-util/CHANGELOG.md b/sdk/core/core-util/CHANGELOG.md index 19eedf1f53ad..45b651f77743 100644 --- a/sdk/core/core-util/CHANGELOG.md +++ b/sdk/core/core-util/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.7.1 (Unreleased) +## 1.8.1 (Unreleased) ### Features Added @@ -10,6 +10,13 @@ ### Other Changes +## 1.8.0 (2024-03-12) + +### Other Changes + +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. + ## 1.7.0 (2024-02-01) ### Other Changes diff --git a/sdk/core/core-util/package.json b/sdk/core/core-util/package.json index b3344bc4e774..9cdbfc2d32d5 100644 --- a/sdk/core/core-util/package.json +++ b/sdk/core/core-util/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-util", - "version": "1.7.1", + "version": "1.8.1", "description": "Core library for shared utility methods", "sdk-type": "client", "type": "module", diff --git a/sdk/core/core-xml/CHANGELOG.md b/sdk/core/core-xml/CHANGELOG.md index 7569ff78ab37..c94a03d6f006 100644 --- a/sdk/core/core-xml/CHANGELOG.md +++ b/sdk/core/core-xml/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.3.5 (Unreleased) +## 1.4.1 (Unreleased) ### Features Added @@ -10,6 +10,13 @@ ### Other Changes +## 1.4.0 (2024-03-12) + +### Other Changes + +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. + ## 1.3.4 (2023-06-20) ### Other Changes diff --git a/sdk/core/core-xml/package.json b/sdk/core/core-xml/package.json index 88f7ccd87c22..a2915da0dafa 100644 --- a/sdk/core/core-xml/package.json +++ b/sdk/core/core-xml/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-xml", - "version": "1.3.5", + "version": "1.4.1", "description": "Core library for interacting with XML payloads", "sdk-type": "client", "type": "module", diff --git a/sdk/core/logger/CHANGELOG.md b/sdk/core/logger/CHANGELOG.md index 64cd41c60e6e..303115c4589d 100644 --- a/sdk/core/logger/CHANGELOG.md +++ b/sdk/core/logger/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.0.5 (Unreleased) +## 1.1.1 (Unreleased) ### Features Added @@ -10,6 +10,13 @@ ### Other Changes +## 1.1.0 (2024-03-12) + +### Other Changes + +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. + ## 1.0.4 (2023-03-02) ### Other Changes diff --git a/sdk/core/logger/package.json b/sdk/core/logger/package.json index 47753d5a86f1..54237befda17 100644 --- a/sdk/core/logger/package.json +++ b/sdk/core/logger/package.json @@ -1,7 +1,7 @@ { "name": "@azure/logger", "sdk-type": "client", - "version": "1.0.5", + "version": "1.1.1", "description": "Microsoft Azure SDK for JavaScript - Logger", "type": "module", "main": "./dist/commonjs/index.js", diff --git a/sdk/core/ts-http-runtime/review/ts-http-runtime.api.md b/sdk/core/ts-http-runtime/review/ts-http-runtime.api.md index 10c7710313f6..37ca69ae2bb0 100644 --- a/sdk/core/ts-http-runtime/review/ts-http-runtime.api.md +++ b/sdk/core/ts-http-runtime/review/ts-http-runtime.api.md @@ -36,7 +36,7 @@ export interface AccessToken { } // @public -export function addCredentialPipelinePolicy(pipeline: Pipeline, baseUrl: string, options?: AddCredentialPipelinePolicyOptions): void; +export function addCredentialPipelinePolicy(pipeline: Pipeline, endpoint: string, options?: AddCredentialPipelinePolicyOptions): void; // @public export interface AddCredentialPipelinePolicyOptions { @@ -129,6 +129,7 @@ export type ClientOptions = PipelineOptions & { apiKeyHeaderName?: string; }; baseUrl?: string; + endpoint?: string; apiVersion?: string; allowInsecureConnection?: boolean; additionalPolicies?: AdditionalPolicyConfig[]; @@ -262,10 +263,10 @@ export interface FullOperationResponse extends PipelineResponse { } // @public -export function getClient(baseUrl: string, options?: ClientOptions): Client; +export function getClient(endpoint: string, options?: ClientOptions): Client; // @public -export function getClient(baseUrl: string, credentials?: TokenCredential | KeyCredential, options?: ClientOptions): Client; +export function getClient(endpoint: string, credentials?: TokenCredential | KeyCredential, options?: ClientOptions): Client; // @public export function getDefaultProxySettings(proxyUrl?: string): ProxySettings | undefined; diff --git a/sdk/core/ts-http-runtime/src/client/clientHelpers.ts b/sdk/core/ts-http-runtime/src/client/clientHelpers.ts index 1dc927985468..19a61ee79b34 100644 --- a/sdk/core/ts-http-runtime/src/client/clientHelpers.ts +++ b/sdk/core/ts-http-runtime/src/client/clientHelpers.ts @@ -33,7 +33,7 @@ export interface AddCredentialPipelinePolicyOptions { */ export function addCredentialPipelinePolicy( pipeline: Pipeline, - baseUrl: string, + endpoint: string, options: AddCredentialPipelinePolicyOptions = {}, ): void { const { credential, clientOptions } = options; @@ -44,7 +44,7 @@ export function addCredentialPipelinePolicy( if (isTokenCredential(credential)) { const tokenPolicy = bearerTokenAuthenticationPolicy({ credential, - scopes: clientOptions?.credentials?.scopes ?? `${baseUrl}/.default`, + scopes: clientOptions?.credentials?.scopes ?? `${endpoint}/.default`, }); pipeline.addPolicy(tokenPolicy); } else if (isKeyCredential(credential)) { @@ -63,7 +63,7 @@ export function addCredentialPipelinePolicy( * Creates a default rest pipeline to re-use accross Rest Level Clients */ export function createDefaultPipeline( - baseUrl: string, + endpoint: string, credential?: TokenCredential | KeyCredential, options: ClientOptions = {}, ): Pipeline { @@ -71,7 +71,7 @@ export function createDefaultPipeline( pipeline.addPolicy(apiVersionPolicy(options)); - addCredentialPipelinePolicy(pipeline, baseUrl, { credential, clientOptions: options }); + addCredentialPipelinePolicy(pipeline, endpoint, { credential, clientOptions: options }); return pipeline; } diff --git a/sdk/core/ts-http-runtime/src/client/common.ts b/sdk/core/ts-http-runtime/src/client/common.ts index bbd4af675d56..0f3a2e64322a 100644 --- a/sdk/core/ts-http-runtime/src/client/common.ts +++ b/sdk/core/ts-http-runtime/src/client/common.ts @@ -317,8 +317,13 @@ export type ClientOptions = PipelineOptions & { }; /** * Base url for the client + * @deprecated This property is deprecated and will be removed soon, please use endpoint instead */ baseUrl?: string; + /** + * Endpoint for the client + */ + endpoint?: string; /** * Options for setting a custom apiVersion. */ diff --git a/sdk/core/ts-http-runtime/src/client/getClient.ts b/sdk/core/ts-http-runtime/src/client/getClient.ts index d1f5c29d8ea8..1fa1f44aa38d 100644 --- a/sdk/core/ts-http-runtime/src/client/getClient.ts +++ b/sdk/core/ts-http-runtime/src/client/getClient.ts @@ -20,23 +20,23 @@ import { PipelineOptions } from "../createPipelineFromOptions.js"; /** * Creates a client with a default pipeline - * @param baseUrl - Base endpoint for the client + * @param endpoint - Base endpoint for the client * @param options - Client options */ -export function getClient(baseUrl: string, options?: ClientOptions): Client; +export function getClient(endpoint: string, options?: ClientOptions): Client; /** * Creates a client with a default pipeline - * @param baseUrl - Base endpoint for the client + * @param endpoint - Base endpoint for the client * @param credentials - Credentials to authenticate the requests * @param options - Client options */ export function getClient( - baseUrl: string, + endpoint: string, credentials?: TokenCredential | KeyCredential, options?: ClientOptions, ): Client; export function getClient( - baseUrl: string, + endpoint: string, credentialsOrPipelineOptions?: (TokenCredential | KeyCredential) | ClientOptions, clientOptions: ClientOptions = {}, ): Client { @@ -49,7 +49,7 @@ export function getClient( } } - const pipeline = createDefaultPipeline(baseUrl, credentials, clientOptions); + const pipeline = createDefaultPipeline(endpoint, credentials, clientOptions); if (clientOptions.additionalPolicies?.length) { for (const { policy, position } of clientOptions.additionalPolicies) { // Sign happens after Retry and is commonly needed to occur @@ -64,7 +64,7 @@ export function getClient( const { allowInsecureConnection, httpClient } = clientOptions; const client = (path: string, ...args: Array) => { const getUrl = (requestOptions: RequestParameters): string => - buildRequestUrl(baseUrl, path, args, { allowInsecureConnection, ...requestOptions }); + buildRequestUrl(endpoint, path, args, { allowInsecureConnection, ...requestOptions }); return { get: (requestOptions: RequestParameters = {}): StreamableMethod => { diff --git a/sdk/core/ts-http-runtime/src/client/urlHelpers.ts b/sdk/core/ts-http-runtime/src/client/urlHelpers.ts index c36dc09b11ce..7e77d312d649 100644 --- a/sdk/core/ts-http-runtime/src/client/urlHelpers.ts +++ b/sdk/core/ts-http-runtime/src/client/urlHelpers.ts @@ -5,14 +5,14 @@ import { RequestParameters } from "./common.js"; /** * Builds the request url, filling in query and path parameters - * @param baseUrl - base url which can be a template url - * @param routePath - path to append to the baseUrl + * @param endpoint - base url which can be a template url + * @param routePath - path to append to the endpoint * @param pathParameters - values of the path parameters * @param options - request parameters including query parameters * @returns a full url with path and query parameters */ export function buildRequestUrl( - baseUrl: string, + endpoint: string, routePath: string, pathParameters: string[], options: RequestParameters = {}, @@ -20,9 +20,9 @@ export function buildRequestUrl( if (routePath.startsWith("https://") || routePath.startsWith("http://")) { return routePath; } - baseUrl = buildBaseUrl(baseUrl, options); + endpoint = buildBaseUrl(endpoint, options); routePath = buildRoutePath(routePath, pathParameters, options); - const requestUrl = appendQueryParams(`${baseUrl}/${routePath}`, options); + const requestUrl = appendQueryParams(`${endpoint}/${routePath}`, options); const url = new URL(requestUrl); return ( @@ -71,9 +71,9 @@ function skipQueryParameterEncoding(url: URL): URL { return url; } -export function buildBaseUrl(baseUrl: string, options: RequestParameters): string { +export function buildBaseUrl(endpoint: string, options: RequestParameters): string { if (!options.pathParameters) { - return baseUrl; + return endpoint; } const pathParams = options.pathParameters; for (const [key, param] of Object.entries(pathParams)) { @@ -87,9 +87,9 @@ export function buildBaseUrl(baseUrl: string, options: RequestParameters): strin if (!options.skipUrlEncoding) { value = encodeURIComponent(param); } - baseUrl = replaceAll(baseUrl, `{${key}}`, value) ?? ""; + endpoint = replaceAll(endpoint, `{${key}}`, value) ?? ""; } - return baseUrl; + return endpoint; } function buildRoutePath( diff --git a/sdk/datafactory/arm-datafactory/CHANGELOG.md b/sdk/datafactory/arm-datafactory/CHANGELOG.md index d1ecc689ca1a..48cea9b4c303 100644 --- a/sdk/datafactory/arm-datafactory/CHANGELOG.md +++ b/sdk/datafactory/arm-datafactory/CHANGELOG.md @@ -1,5 +1,31 @@ # Release History +## 14.1.0 (2024-03-11) + +**Features** + + - Added Interface ExpressionV2 + - Added Interface GoogleBigQueryV2LinkedService + - Added Interface GoogleBigQueryV2ObjectDataset + - Added Interface GoogleBigQueryV2Source + - Added Interface PostgreSqlV2LinkedService + - Added Interface PostgreSqlV2Source + - Added Interface PostgreSqlV2TableDataset + - Added Interface ServiceNowV2LinkedService + - Added Interface ServiceNowV2ObjectDataset + - Added Interface ServiceNowV2Source + - Added Type Alias ExpressionV2Type + - Added Type Alias GoogleBigQueryV2AuthenticationType + - Added Type Alias ServiceNowV2AuthenticationType + - Type of parameter type of interface CopySource has four new values "PostgreSqlV2Source" | "GoogleBigQueryV2Source" | "GreenplumSource" | "ServiceNowV2Source" + - Type of parameter type of interface Dataset has four new values "PostgreSqlV2Source" | "GoogleBigQueryV2Source" | "GreenplumSource" | "ServiceNowV2Source" + - Type of parameter type of interface LinkedService has three new values "PostgreSqlV2" | "GoogleBigQueryV2" | "ServiceNowV2" + - Type of parameter type of interface TabularSource has four new values "PostgreSqlV2Source" | "GoogleBigQueryV2Source" | "GreenplumSource" | "ServiceNowV2Source" + - Added Enum KnownExpressionV2Type + - Added Enum KnownGoogleBigQueryV2AuthenticationType + - Added Enum KnownServiceNowV2AuthenticationType + + ## 14.0.0 (2024-02-04) **Features** diff --git a/sdk/datafactory/arm-datafactory/_meta.json b/sdk/datafactory/arm-datafactory/_meta.json index 8591824d420a..809fce1f741b 100644 --- a/sdk/datafactory/arm-datafactory/_meta.json +++ b/sdk/datafactory/arm-datafactory/_meta.json @@ -1,8 +1,8 @@ { - "commit": "45f5b5a166c75a878d0f5404e74bd1855ff48894", + "commit": "1a011ff0d72315ef3c530fe545c4fe82d0450201", "readme": "specification/datafactory/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\datafactory\\resource-manager\\readme.md --use=@autorest/typescript@6.0.14 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\datafactory\\resource-manager\\readme.md --use=@autorest/typescript@6.0.17 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", - "use": "@autorest/typescript@6.0.14" + "use": "@autorest/typescript@6.0.17" } \ No newline at end of file diff --git a/sdk/datafactory/arm-datafactory/assets.json b/sdk/datafactory/arm-datafactory/assets.json index fca6a18e28b5..e2dc118333a2 100644 --- a/sdk/datafactory/arm-datafactory/assets.json +++ b/sdk/datafactory/arm-datafactory/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/datafactory/arm-datafactory", - "Tag": "js/datafactory/arm-datafactory_826c384657" + "Tag": "js/datafactory/arm-datafactory_b0ae60ee53" } diff --git a/sdk/datafactory/arm-datafactory/package.json b/sdk/datafactory/arm-datafactory/package.json index b20037560d25..af00697bb53f 100644 --- a/sdk/datafactory/arm-datafactory/package.json +++ b/sdk/datafactory/arm-datafactory/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for DataFactoryManagementClient.", - "version": "14.0.0", + "version": "14.1.0", "engines": { "node": ">=18.0.0" }, @@ -12,8 +12,8 @@ "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.12.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -115,4 +115,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-datafactory?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/datafactory/arm-datafactory/review/arm-datafactory.api.md b/sdk/datafactory/arm-datafactory/review/arm-datafactory.api.md index 8fe10d3119f9..3c9d2af959f0 100644 --- a/sdk/datafactory/arm-datafactory/review/arm-datafactory.api.md +++ b/sdk/datafactory/arm-datafactory/review/arm-datafactory.api.md @@ -1475,7 +1475,7 @@ export interface CopySource { maxConcurrentConnections?: any; sourceRetryCount?: any; sourceRetryWait?: any; - type: "AvroSource" | "ExcelSource" | "ParquetSource" | "DelimitedTextSource" | "JsonSource" | "XmlSource" | "OrcSource" | "BinarySource" | "TabularSource" | "AzureTableSource" | "BlobSource" | "DocumentDbCollectionSource" | "CosmosDbSqlApiSource" | "DynamicsSource" | "DynamicsCrmSource" | "CommonDataServiceForAppsSource" | "RelationalSource" | "InformixSource" | "MicrosoftAccessSource" | "Db2Source" | "OdbcSource" | "MySqlSource" | "PostgreSqlSource" | "SybaseSource" | "SapBwSource" | "ODataSource" | "SalesforceSource" | "SalesforceServiceCloudSource" | "SapCloudForCustomerSource" | "SapEccSource" | "SapHanaSource" | "SapOpenHubSource" | "SapOdpSource" | "SapTableSource" | "RestSource" | "SqlSource" | "SqlServerSource" | "AmazonRdsForSqlServerSource" | "AzureSqlSource" | "SqlMISource" | "SqlDWSource" | "FileSystemSource" | "HdfsSource" | "AzureMySqlSource" | "AzureDataExplorerSource" | "OracleSource" | "AmazonRdsForOracleSource" | "TeradataSource" | "WebSource" | "CassandraSource" | "MongoDbSource" | "MongoDbAtlasSource" | "MongoDbV2Source" | "CosmosDbMongoDbApiSource" | "Office365Source" | "AzureDataLakeStoreSource" | "AzureBlobFSSource" | "HttpSource" | "AmazonMWSSource" | "AzurePostgreSqlSource" | "ConcurSource" | "CouchbaseSource" | "DrillSource" | "EloquaSource" | "GoogleBigQuerySource" | "GreenplumSource" | "HBaseSource" | "HiveSource" | "HubspotSource" | "ImpalaSource" | "JiraSource" | "MagentoSource" | "MariaDBSource" | "AzureMariaDBSource" | "MarketoSource" | "PaypalSource" | "PhoenixSource" | "PrestoSource" | "QuickBooksSource" | "ServiceNowSource" | "ShopifySource" | "SparkSource" | "SquareSource" | "XeroSource" | "ZohoSource" | "NetezzaSource" | "VerticaSource" | "SalesforceMarketingCloudSource" | "ResponsysSource" | "DynamicsAXSource" | "OracleServiceCloudSource" | "GoogleAdWordsSource" | "AmazonRedshiftSource" | "LakeHouseTableSource" | "SnowflakeSource" | "SnowflakeV2Source" | "AzureDatabricksDeltaLakeSource" | "WarehouseSource" | "SharePointOnlineListSource" | "SalesforceV2Source" | "SalesforceServiceCloudV2Source"; + type: "AvroSource" | "ExcelSource" | "ParquetSource" | "DelimitedTextSource" | "JsonSource" | "XmlSource" | "OrcSource" | "BinarySource" | "TabularSource" | "AzureTableSource" | "BlobSource" | "DocumentDbCollectionSource" | "CosmosDbSqlApiSource" | "DynamicsSource" | "DynamicsCrmSource" | "CommonDataServiceForAppsSource" | "RelationalSource" | "InformixSource" | "MicrosoftAccessSource" | "Db2Source" | "OdbcSource" | "MySqlSource" | "PostgreSqlSource" | "PostgreSqlV2Source" | "SybaseSource" | "SapBwSource" | "ODataSource" | "SalesforceSource" | "SalesforceServiceCloudSource" | "SapCloudForCustomerSource" | "SapEccSource" | "SapHanaSource" | "SapOpenHubSource" | "SapOdpSource" | "SapTableSource" | "RestSource" | "SqlSource" | "SqlServerSource" | "AmazonRdsForSqlServerSource" | "AzureSqlSource" | "SqlMISource" | "SqlDWSource" | "FileSystemSource" | "HdfsSource" | "AzureMySqlSource" | "AzureDataExplorerSource" | "OracleSource" | "AmazonRdsForOracleSource" | "TeradataSource" | "WebSource" | "CassandraSource" | "MongoDbSource" | "MongoDbAtlasSource" | "MongoDbV2Source" | "CosmosDbMongoDbApiSource" | "Office365Source" | "AzureDataLakeStoreSource" | "AzureBlobFSSource" | "HttpSource" | "AmazonMWSSource" | "AzurePostgreSqlSource" | "ConcurSource" | "CouchbaseSource" | "DrillSource" | "EloquaSource" | "GoogleBigQuerySource" | "GoogleBigQueryV2Source" | "GreenplumSource" | "HBaseSource" | "HiveSource" | "HubspotSource" | "ImpalaSource" | "JiraSource" | "MagentoSource" | "MariaDBSource" | "AzureMariaDBSource" | "MarketoSource" | "PaypalSource" | "PhoenixSource" | "PrestoSource" | "QuickBooksSource" | "ServiceNowSource" | "ShopifySource" | "SparkSource" | "SquareSource" | "XeroSource" | "ZohoSource" | "NetezzaSource" | "VerticaSource" | "SalesforceMarketingCloudSource" | "ResponsysSource" | "DynamicsAXSource" | "OracleServiceCloudSource" | "GoogleAdWordsSource" | "AmazonRedshiftSource" | "LakeHouseTableSource" | "SnowflakeSource" | "SnowflakeV2Source" | "AzureDatabricksDeltaLakeSource" | "WarehouseSource" | "SharePointOnlineListSource" | "SalesforceV2Source" | "SalesforceServiceCloudV2Source" | "ServiceNowV2Source"; } // @public (undocumented) @@ -2102,7 +2102,7 @@ export interface Dataset { }; schema?: any; structure?: any; - type: "AmazonS3Object" | "Avro" | "Excel" | "Parquet" | "DelimitedText" | "Json" | "Xml" | "Orc" | "Binary" | "AzureBlob" | "AzureTable" | "AzureSqlTable" | "AzureSqlMITable" | "AzureSqlDWTable" | "CassandraTable" | "CustomDataset" | "CosmosDbSqlApiCollection" | "DocumentDbCollection" | "DynamicsEntity" | "DynamicsCrmEntity" | "CommonDataServiceForAppsEntity" | "AzureDataLakeStoreFile" | "AzureBlobFSFile" | "Office365Table" | "FileShare" | "MongoDbCollection" | "MongoDbAtlasCollection" | "MongoDbV2Collection" | "CosmosDbMongoDbApiCollection" | "ODataResource" | "OracleTable" | "AmazonRdsForOracleTable" | "TeradataTable" | "AzureMySqlTable" | "AmazonRedshiftTable" | "Db2Table" | "RelationalTable" | "InformixTable" | "OdbcTable" | "MySqlTable" | "PostgreSqlTable" | "MicrosoftAccessTable" | "SalesforceObject" | "SalesforceServiceCloudObject" | "SybaseTable" | "SapBwCube" | "SapCloudForCustomerResource" | "SapEccResource" | "SapHanaTable" | "SapOpenHubTable" | "SqlServerTable" | "AmazonRdsForSqlServerTable" | "RestResource" | "SapTableResource" | "SapOdpResource" | "WebTable" | "AzureSearchIndex" | "HttpFile" | "AmazonMWSObject" | "AzurePostgreSqlTable" | "ConcurObject" | "CouchbaseTable" | "DrillTable" | "EloquaObject" | "GoogleBigQueryObject" | "GreenplumTable" | "HBaseObject" | "HiveObject" | "HubspotObject" | "ImpalaObject" | "JiraObject" | "MagentoObject" | "MariaDBTable" | "AzureMariaDBTable" | "MarketoObject" | "PaypalObject" | "PhoenixObject" | "PrestoObject" | "QuickBooksObject" | "ServiceNowObject" | "ShopifyObject" | "SparkObject" | "SquareObject" | "XeroObject" | "ZohoObject" | "NetezzaTable" | "VerticaTable" | "SalesforceMarketingCloudObject" | "ResponsysObject" | "DynamicsAXResource" | "OracleServiceCloudObject" | "AzureDataExplorerTable" | "GoogleAdWordsObject" | "SnowflakeTable" | "SnowflakeV2Table" | "SharePointOnlineListResource" | "AzureDatabricksDeltaLakeDataset" | "LakeHouseTable" | "SalesforceV2Object" | "SalesforceServiceCloudV2Object" | "WarehouseTable"; + type: "AmazonS3Object" | "Avro" | "Excel" | "Parquet" | "DelimitedText" | "Json" | "Xml" | "Orc" | "Binary" | "AzureBlob" | "AzureTable" | "AzureSqlTable" | "AzureSqlMITable" | "AzureSqlDWTable" | "CassandraTable" | "CustomDataset" | "CosmosDbSqlApiCollection" | "DocumentDbCollection" | "DynamicsEntity" | "DynamicsCrmEntity" | "CommonDataServiceForAppsEntity" | "AzureDataLakeStoreFile" | "AzureBlobFSFile" | "Office365Table" | "FileShare" | "MongoDbCollection" | "MongoDbAtlasCollection" | "MongoDbV2Collection" | "CosmosDbMongoDbApiCollection" | "ODataResource" | "OracleTable" | "AmazonRdsForOracleTable" | "TeradataTable" | "AzureMySqlTable" | "AmazonRedshiftTable" | "Db2Table" | "RelationalTable" | "InformixTable" | "OdbcTable" | "MySqlTable" | "PostgreSqlTable" | "PostgreSqlV2Table" | "MicrosoftAccessTable" | "SalesforceObject" | "SalesforceServiceCloudObject" | "SybaseTable" | "SapBwCube" | "SapCloudForCustomerResource" | "SapEccResource" | "SapHanaTable" | "SapOpenHubTable" | "SqlServerTable" | "AmazonRdsForSqlServerTable" | "RestResource" | "SapTableResource" | "SapOdpResource" | "WebTable" | "AzureSearchIndex" | "HttpFile" | "AmazonMWSObject" | "AzurePostgreSqlTable" | "ConcurObject" | "CouchbaseTable" | "DrillTable" | "EloquaObject" | "GoogleBigQueryObject" | "GoogleBigQueryV2Object" | "GreenplumTable" | "HBaseObject" | "HiveObject" | "HubspotObject" | "ImpalaObject" | "JiraObject" | "MagentoObject" | "MariaDBTable" | "AzureMariaDBTable" | "MarketoObject" | "PaypalObject" | "PhoenixObject" | "PrestoObject" | "QuickBooksObject" | "ServiceNowObject" | "ShopifyObject" | "SparkObject" | "SquareObject" | "XeroObject" | "ZohoObject" | "NetezzaTable" | "VerticaTable" | "SalesforceMarketingCloudObject" | "ResponsysObject" | "DynamicsAXResource" | "OracleServiceCloudObject" | "AzureDataExplorerTable" | "GoogleAdWordsObject" | "SnowflakeTable" | "SnowflakeV2Table" | "SharePointOnlineListResource" | "AzureDatabricksDeltaLakeDataset" | "LakeHouseTable" | "SalesforceV2Object" | "SalesforceServiceCloudV2Object" | "WarehouseTable" | "ServiceNowV2Object"; } // @public @@ -2223,7 +2223,7 @@ export interface DatasetStorageFormat { export type DatasetStorageFormatUnion = DatasetStorageFormat | TextFormat | JsonFormat | AvroFormat | OrcFormat | ParquetFormat; // @public (undocumented) -export type DatasetUnion = Dataset | AmazonS3Dataset | AvroDataset | ExcelDataset | ParquetDataset | DelimitedTextDataset | JsonDataset | XmlDataset | OrcDataset | BinaryDataset | AzureBlobDataset | AzureTableDataset | AzureSqlTableDataset | AzureSqlMITableDataset | AzureSqlDWTableDataset | CassandraTableDataset | CustomDataset | CosmosDbSqlApiCollectionDataset | DocumentDbCollectionDataset | DynamicsEntityDataset | DynamicsCrmEntityDataset | CommonDataServiceForAppsEntityDataset | AzureDataLakeStoreDataset | AzureBlobFSDataset | Office365Dataset | FileShareDataset | MongoDbCollectionDataset | MongoDbAtlasCollectionDataset | MongoDbV2CollectionDataset | CosmosDbMongoDbApiCollectionDataset | ODataResourceDataset | OracleTableDataset | AmazonRdsForOracleTableDataset | TeradataTableDataset | AzureMySqlTableDataset | AmazonRedshiftTableDataset | Db2TableDataset | RelationalTableDataset | InformixTableDataset | OdbcTableDataset | MySqlTableDataset | PostgreSqlTableDataset | MicrosoftAccessTableDataset | SalesforceObjectDataset | SalesforceServiceCloudObjectDataset | SybaseTableDataset | SapBwCubeDataset | SapCloudForCustomerResourceDataset | SapEccResourceDataset | SapHanaTableDataset | SapOpenHubTableDataset | SqlServerTableDataset | AmazonRdsForSqlServerTableDataset | RestResourceDataset | SapTableResourceDataset | SapOdpResourceDataset | WebTableDataset | AzureSearchIndexDataset | HttpDataset | AmazonMWSObjectDataset | AzurePostgreSqlTableDataset | ConcurObjectDataset | CouchbaseTableDataset | DrillTableDataset | EloquaObjectDataset | GoogleBigQueryObjectDataset | GreenplumTableDataset | HBaseObjectDataset | HiveObjectDataset | HubspotObjectDataset | ImpalaObjectDataset | JiraObjectDataset | MagentoObjectDataset | MariaDBTableDataset | AzureMariaDBTableDataset | MarketoObjectDataset | PaypalObjectDataset | PhoenixObjectDataset | PrestoObjectDataset | QuickBooksObjectDataset | ServiceNowObjectDataset | ShopifyObjectDataset | SparkObjectDataset | SquareObjectDataset | XeroObjectDataset | ZohoObjectDataset | NetezzaTableDataset | VerticaTableDataset | SalesforceMarketingCloudObjectDataset | ResponsysObjectDataset | DynamicsAXResourceDataset | OracleServiceCloudObjectDataset | AzureDataExplorerTableDataset | GoogleAdWordsObjectDataset | SnowflakeDataset | SnowflakeV2Dataset | SharePointOnlineListResourceDataset | AzureDatabricksDeltaLakeDataset | LakeHouseTableDataset | SalesforceV2ObjectDataset | SalesforceServiceCloudV2ObjectDataset | WarehouseTableDataset; +export type DatasetUnion = Dataset | AmazonS3Dataset | AvroDataset | ExcelDataset | ParquetDataset | DelimitedTextDataset | JsonDataset | XmlDataset | OrcDataset | BinaryDataset | AzureBlobDataset | AzureTableDataset | AzureSqlTableDataset | AzureSqlMITableDataset | AzureSqlDWTableDataset | CassandraTableDataset | CustomDataset | CosmosDbSqlApiCollectionDataset | DocumentDbCollectionDataset | DynamicsEntityDataset | DynamicsCrmEntityDataset | CommonDataServiceForAppsEntityDataset | AzureDataLakeStoreDataset | AzureBlobFSDataset | Office365Dataset | FileShareDataset | MongoDbCollectionDataset | MongoDbAtlasCollectionDataset | MongoDbV2CollectionDataset | CosmosDbMongoDbApiCollectionDataset | ODataResourceDataset | OracleTableDataset | AmazonRdsForOracleTableDataset | TeradataTableDataset | AzureMySqlTableDataset | AmazonRedshiftTableDataset | Db2TableDataset | RelationalTableDataset | InformixTableDataset | OdbcTableDataset | MySqlTableDataset | PostgreSqlTableDataset | PostgreSqlV2TableDataset | MicrosoftAccessTableDataset | SalesforceObjectDataset | SalesforceServiceCloudObjectDataset | SybaseTableDataset | SapBwCubeDataset | SapCloudForCustomerResourceDataset | SapEccResourceDataset | SapHanaTableDataset | SapOpenHubTableDataset | SqlServerTableDataset | AmazonRdsForSqlServerTableDataset | RestResourceDataset | SapTableResourceDataset | SapOdpResourceDataset | WebTableDataset | AzureSearchIndexDataset | HttpDataset | AmazonMWSObjectDataset | AzurePostgreSqlTableDataset | ConcurObjectDataset | CouchbaseTableDataset | DrillTableDataset | EloquaObjectDataset | GoogleBigQueryObjectDataset | GoogleBigQueryV2ObjectDataset | GreenplumTableDataset | HBaseObjectDataset | HiveObjectDataset | HubspotObjectDataset | ImpalaObjectDataset | JiraObjectDataset | MagentoObjectDataset | MariaDBTableDataset | AzureMariaDBTableDataset | MarketoObjectDataset | PaypalObjectDataset | PhoenixObjectDataset | PrestoObjectDataset | QuickBooksObjectDataset | ServiceNowObjectDataset | ShopifyObjectDataset | SparkObjectDataset | SquareObjectDataset | XeroObjectDataset | ZohoObjectDataset | NetezzaTableDataset | VerticaTableDataset | SalesforceMarketingCloudObjectDataset | ResponsysObjectDataset | DynamicsAXResourceDataset | OracleServiceCloudObjectDataset | AzureDataExplorerTableDataset | GoogleAdWordsObjectDataset | SnowflakeDataset | SnowflakeV2Dataset | SharePointOnlineListResourceDataset | AzureDatabricksDeltaLakeDataset | LakeHouseTableDataset | SalesforceV2ObjectDataset | SalesforceServiceCloudV2ObjectDataset | WarehouseTableDataset | ServiceNowV2ObjectDataset; // @public export interface DataworldLinkedService extends LinkedService { @@ -2764,6 +2764,17 @@ export interface Expression { value: string; } +// @public +export interface ExpressionV2 { + operands?: ExpressionV2[]; + operator?: string; + type?: ExpressionV2Type; + value?: string; +} + +// @public +export type ExpressionV2Type = string; + // @public export interface Factories { configureFactoryRepo(locationId: string, factoryRepoUpdate: FactoryRepoUpdate, options?: FactoriesConfigureFactoryRepoOptionalParams): Promise; @@ -3254,6 +3265,34 @@ export interface GoogleBigQuerySource extends TabularSource { type: "GoogleBigQuerySource"; } +// @public +export type GoogleBigQueryV2AuthenticationType = string; + +// @public +export interface GoogleBigQueryV2LinkedService extends LinkedService { + authenticationType: GoogleBigQueryV2AuthenticationType; + clientId?: any; + clientSecret?: SecretBaseUnion; + encryptedCredential?: string; + keyFileContent?: SecretBaseUnion; + projectId: any; + refreshToken?: SecretBaseUnion; + type: "GoogleBigQueryV2"; +} + +// @public +export interface GoogleBigQueryV2ObjectDataset extends Dataset { + dataset?: any; + table?: any; + type: "GoogleBigQueryV2Object"; +} + +// @public +export interface GoogleBigQueryV2Source extends TabularSource { + query?: any; + type: "GoogleBigQueryV2Source"; +} + // @public export interface GoogleCloudStorageLinkedService extends LinkedService { accessKeyId?: any; @@ -4415,6 +4454,14 @@ export enum KnownEventSubscriptionStatus { Unknown = "Unknown" } +// @public +export enum KnownExpressionV2Type { + Binary = "Binary", + Constant = "Constant", + Field = "Field", + Unary = "Unary" +} + // @public export enum KnownFactoryIdentityType { SystemAssigned = "SystemAssigned", @@ -4457,6 +4504,12 @@ export enum KnownGoogleBigQueryAuthenticationType { UserAuthentication = "UserAuthentication" } +// @public +export enum KnownGoogleBigQueryV2AuthenticationType { + ServiceAuthentication = "ServiceAuthentication", + UserAuthentication = "UserAuthentication" +} + // @public export enum KnownHBaseAuthenticationType { Anonymous = "Anonymous", @@ -4873,6 +4926,12 @@ export enum KnownServiceNowAuthenticationType { OAuth2 = "OAuth2" } +// @public +export enum KnownServiceNowV2AuthenticationType { + Basic = "Basic", + OAuth2 = "OAuth2" +} + // @public export enum KnownServicePrincipalCredentialType { ServicePrincipalCert = "ServicePrincipalCert", @@ -5176,7 +5235,7 @@ export interface LinkedService { parameters?: { [propertyName: string]: ParameterSpecification; }; - type: "AzureStorage" | "AzureBlobStorage" | "AzureTableStorage" | "AzureSqlDW" | "SqlServer" | "AmazonRdsForSqlServer" | "AzureSqlDatabase" | "AzureSqlMI" | "AzureBatch" | "AzureKeyVault" | "CosmosDb" | "Dynamics" | "DynamicsCrm" | "CommonDataServiceForApps" | "HDInsight" | "FileServer" | "AzureFileStorage" | "AmazonS3Compatible" | "OracleCloudStorage" | "GoogleCloudStorage" | "Oracle" | "AmazonRdsForOracle" | "AzureMySql" | "MySql" | "PostgreSql" | "Sybase" | "Db2" | "Teradata" | "AzureML" | "AzureMLService" | "Odbc" | "Informix" | "MicrosoftAccess" | "Hdfs" | "OData" | "Web" | "Cassandra" | "MongoDb" | "MongoDbAtlas" | "MongoDbV2" | "CosmosDbMongoDbApi" | "AzureDataLakeStore" | "AzureBlobFS" | "Office365" | "Salesforce" | "SalesforceServiceCloud" | "SapCloudForCustomer" | "SapEcc" | "SapOpenHub" | "SapOdp" | "RestService" | "TeamDesk" | "Quickbase" | "Smartsheet" | "Zendesk" | "Dataworld" | "AppFigures" | "Asana" | "Twilio" | "GoogleSheets" | "AmazonS3" | "AmazonRedshift" | "CustomDataSource" | "AzureSearch" | "HttpServer" | "FtpServer" | "Sftp" | "SapBW" | "SapHana" | "AmazonMWS" | "AzurePostgreSql" | "Concur" | "Couchbase" | "Drill" | "Eloqua" | "GoogleBigQuery" | "Greenplum" | "HBase" | "Hive" | "Hubspot" | "Impala" | "Jira" | "Magento" | "MariaDB" | "AzureMariaDB" | "Marketo" | "Paypal" | "Phoenix" | "Presto" | "QuickBooks" | "ServiceNow" | "Shopify" | "Spark" | "Square" | "Xero" | "Zoho" | "Vertica" | "Netezza" | "SalesforceMarketingCloud" | "HDInsightOnDemand" | "AzureDataLakeAnalytics" | "AzureDatabricks" | "AzureDatabricksDeltaLake" | "Responsys" | "DynamicsAX" | "OracleServiceCloud" | "GoogleAdWords" | "SapTable" | "AzureDataExplorer" | "AzureFunction" | "Snowflake" | "SnowflakeV2" | "SharePointOnlineList" | "AzureSynapseArtifacts" | "LakeHouse" | "SalesforceV2" | "SalesforceServiceCloudV2" | "Warehouse"; + type: "AzureStorage" | "AzureBlobStorage" | "AzureTableStorage" | "AzureSqlDW" | "SqlServer" | "AmazonRdsForSqlServer" | "AzureSqlDatabase" | "AzureSqlMI" | "AzureBatch" | "AzureKeyVault" | "CosmosDb" | "Dynamics" | "DynamicsCrm" | "CommonDataServiceForApps" | "HDInsight" | "FileServer" | "AzureFileStorage" | "AmazonS3Compatible" | "OracleCloudStorage" | "GoogleCloudStorage" | "Oracle" | "AmazonRdsForOracle" | "AzureMySql" | "MySql" | "PostgreSql" | "PostgreSqlV2" | "Sybase" | "Db2" | "Teradata" | "AzureML" | "AzureMLService" | "Odbc" | "Informix" | "MicrosoftAccess" | "Hdfs" | "OData" | "Web" | "Cassandra" | "MongoDb" | "MongoDbAtlas" | "MongoDbV2" | "CosmosDbMongoDbApi" | "AzureDataLakeStore" | "AzureBlobFS" | "Office365" | "Salesforce" | "SalesforceServiceCloud" | "SapCloudForCustomer" | "SapEcc" | "SapOpenHub" | "SapOdp" | "RestService" | "TeamDesk" | "Quickbase" | "Smartsheet" | "Zendesk" | "Dataworld" | "AppFigures" | "Asana" | "Twilio" | "GoogleSheets" | "AmazonS3" | "AmazonRedshift" | "CustomDataSource" | "AzureSearch" | "HttpServer" | "FtpServer" | "Sftp" | "SapBW" | "SapHana" | "AmazonMWS" | "AzurePostgreSql" | "Concur" | "Couchbase" | "Drill" | "Eloqua" | "GoogleBigQuery" | "GoogleBigQueryV2" | "Greenplum" | "HBase" | "Hive" | "Hubspot" | "Impala" | "Jira" | "Magento" | "MariaDB" | "AzureMariaDB" | "Marketo" | "Paypal" | "Phoenix" | "Presto" | "QuickBooks" | "ServiceNow" | "Shopify" | "Spark" | "Square" | "Xero" | "Zoho" | "Vertica" | "Netezza" | "SalesforceMarketingCloud" | "HDInsightOnDemand" | "AzureDataLakeAnalytics" | "AzureDatabricks" | "AzureDatabricksDeltaLake" | "Responsys" | "DynamicsAX" | "OracleServiceCloud" | "GoogleAdWords" | "SapTable" | "AzureDataExplorer" | "AzureFunction" | "Snowflake" | "SnowflakeV2" | "SharePointOnlineList" | "AzureSynapseArtifacts" | "LakeHouse" | "SalesforceV2" | "SalesforceServiceCloudV2" | "Warehouse" | "ServiceNowV2"; } // @public @@ -5247,7 +5306,7 @@ export interface LinkedServicesListByFactoryOptionalParams extends coreClient.Op export type LinkedServicesListByFactoryResponse = LinkedServiceListResponse; // @public (undocumented) -export type LinkedServiceUnion = LinkedService | AzureStorageLinkedService | AzureBlobStorageLinkedService | AzureTableStorageLinkedService | AzureSqlDWLinkedService | SqlServerLinkedService | AmazonRdsForSqlServerLinkedService | AzureSqlDatabaseLinkedService | AzureSqlMILinkedService | AzureBatchLinkedService | AzureKeyVaultLinkedService | CosmosDbLinkedService | DynamicsLinkedService | DynamicsCrmLinkedService | CommonDataServiceForAppsLinkedService | HDInsightLinkedService | FileServerLinkedService | AzureFileStorageLinkedService | AmazonS3CompatibleLinkedService | OracleCloudStorageLinkedService | GoogleCloudStorageLinkedService | OracleLinkedService | AmazonRdsForOracleLinkedService | AzureMySqlLinkedService | MySqlLinkedService | PostgreSqlLinkedService | SybaseLinkedService | Db2LinkedService | TeradataLinkedService | AzureMLLinkedService | AzureMLServiceLinkedService | OdbcLinkedService | InformixLinkedService | MicrosoftAccessLinkedService | HdfsLinkedService | ODataLinkedService | WebLinkedService | CassandraLinkedService | MongoDbLinkedService | MongoDbAtlasLinkedService | MongoDbV2LinkedService | CosmosDbMongoDbApiLinkedService | AzureDataLakeStoreLinkedService | AzureBlobFSLinkedService | Office365LinkedService | SalesforceLinkedService | SalesforceServiceCloudLinkedService | SapCloudForCustomerLinkedService | SapEccLinkedService | SapOpenHubLinkedService | SapOdpLinkedService | RestServiceLinkedService | TeamDeskLinkedService | QuickbaseLinkedService | SmartsheetLinkedService | ZendeskLinkedService | DataworldLinkedService | AppFiguresLinkedService | AsanaLinkedService | TwilioLinkedService | GoogleSheetsLinkedService | AmazonS3LinkedService | AmazonRedshiftLinkedService | CustomDataSourceLinkedService | AzureSearchLinkedService | HttpLinkedService | FtpServerLinkedService | SftpServerLinkedService | SapBWLinkedService | SapHanaLinkedService | AmazonMWSLinkedService | AzurePostgreSqlLinkedService | ConcurLinkedService | CouchbaseLinkedService | DrillLinkedService | EloquaLinkedService | GoogleBigQueryLinkedService | GreenplumLinkedService | HBaseLinkedService | HiveLinkedService | HubspotLinkedService | ImpalaLinkedService | JiraLinkedService | MagentoLinkedService | MariaDBLinkedService | AzureMariaDBLinkedService | MarketoLinkedService | PaypalLinkedService | PhoenixLinkedService | PrestoLinkedService | QuickBooksLinkedService | ServiceNowLinkedService | ShopifyLinkedService | SparkLinkedService | SquareLinkedService | XeroLinkedService | ZohoLinkedService | VerticaLinkedService | NetezzaLinkedService | SalesforceMarketingCloudLinkedService | HDInsightOnDemandLinkedService | AzureDataLakeAnalyticsLinkedService | AzureDatabricksLinkedService | AzureDatabricksDeltaLakeLinkedService | ResponsysLinkedService | DynamicsAXLinkedService | OracleServiceCloudLinkedService | GoogleAdWordsLinkedService | SapTableLinkedService | AzureDataExplorerLinkedService | AzureFunctionLinkedService | SnowflakeLinkedService | SnowflakeV2LinkedService | SharePointOnlineListLinkedService | AzureSynapseArtifactsLinkedService | LakeHouseLinkedService | SalesforceV2LinkedService | SalesforceServiceCloudV2LinkedService | WarehouseLinkedService; +export type LinkedServiceUnion = LinkedService | AzureStorageLinkedService | AzureBlobStorageLinkedService | AzureTableStorageLinkedService | AzureSqlDWLinkedService | SqlServerLinkedService | AmazonRdsForSqlServerLinkedService | AzureSqlDatabaseLinkedService | AzureSqlMILinkedService | AzureBatchLinkedService | AzureKeyVaultLinkedService | CosmosDbLinkedService | DynamicsLinkedService | DynamicsCrmLinkedService | CommonDataServiceForAppsLinkedService | HDInsightLinkedService | FileServerLinkedService | AzureFileStorageLinkedService | AmazonS3CompatibleLinkedService | OracleCloudStorageLinkedService | GoogleCloudStorageLinkedService | OracleLinkedService | AmazonRdsForOracleLinkedService | AzureMySqlLinkedService | MySqlLinkedService | PostgreSqlLinkedService | PostgreSqlV2LinkedService | SybaseLinkedService | Db2LinkedService | TeradataLinkedService | AzureMLLinkedService | AzureMLServiceLinkedService | OdbcLinkedService | InformixLinkedService | MicrosoftAccessLinkedService | HdfsLinkedService | ODataLinkedService | WebLinkedService | CassandraLinkedService | MongoDbLinkedService | MongoDbAtlasLinkedService | MongoDbV2LinkedService | CosmosDbMongoDbApiLinkedService | AzureDataLakeStoreLinkedService | AzureBlobFSLinkedService | Office365LinkedService | SalesforceLinkedService | SalesforceServiceCloudLinkedService | SapCloudForCustomerLinkedService | SapEccLinkedService | SapOpenHubLinkedService | SapOdpLinkedService | RestServiceLinkedService | TeamDeskLinkedService | QuickbaseLinkedService | SmartsheetLinkedService | ZendeskLinkedService | DataworldLinkedService | AppFiguresLinkedService | AsanaLinkedService | TwilioLinkedService | GoogleSheetsLinkedService | AmazonS3LinkedService | AmazonRedshiftLinkedService | CustomDataSourceLinkedService | AzureSearchLinkedService | HttpLinkedService | FtpServerLinkedService | SftpServerLinkedService | SapBWLinkedService | SapHanaLinkedService | AmazonMWSLinkedService | AzurePostgreSqlLinkedService | ConcurLinkedService | CouchbaseLinkedService | DrillLinkedService | EloquaLinkedService | GoogleBigQueryLinkedService | GoogleBigQueryV2LinkedService | GreenplumLinkedService | HBaseLinkedService | HiveLinkedService | HubspotLinkedService | ImpalaLinkedService | JiraLinkedService | MagentoLinkedService | MariaDBLinkedService | AzureMariaDBLinkedService | MarketoLinkedService | PaypalLinkedService | PhoenixLinkedService | PrestoLinkedService | QuickBooksLinkedService | ServiceNowLinkedService | ShopifyLinkedService | SparkLinkedService | SquareLinkedService | XeroLinkedService | ZohoLinkedService | VerticaLinkedService | NetezzaLinkedService | SalesforceMarketingCloudLinkedService | HDInsightOnDemandLinkedService | AzureDataLakeAnalyticsLinkedService | AzureDatabricksLinkedService | AzureDatabricksDeltaLakeLinkedService | ResponsysLinkedService | DynamicsAXLinkedService | OracleServiceCloudLinkedService | GoogleAdWordsLinkedService | SapTableLinkedService | AzureDataExplorerLinkedService | AzureFunctionLinkedService | SnowflakeLinkedService | SnowflakeV2LinkedService | SharePointOnlineListLinkedService | AzureSynapseArtifactsLinkedService | LakeHouseLinkedService | SalesforceV2LinkedService | SalesforceServiceCloudV2LinkedService | WarehouseLinkedService | ServiceNowV2LinkedService; // @public export interface LogLocationSettings { @@ -6491,6 +6550,43 @@ export interface PostgreSqlTableDataset extends Dataset { type: "PostgreSqlTable"; } +// @public +export interface PostgreSqlV2LinkedService extends LinkedService { + commandTimeout?: any; + connectionTimeout?: any; + database: any; + encoding?: any; + encryptedCredential?: string; + logParameters?: any; + password?: AzureKeyVaultSecretReference; + pooling?: any; + port?: any; + readBufferSize?: any; + schema?: any; + server: any; + sslCertificate?: any; + sslKey?: any; + sslMode: any; + sslPassword?: any; + timezone?: any; + trustServerCertificate?: any; + type: "PostgreSqlV2"; + username: any; +} + +// @public +export interface PostgreSqlV2Source extends TabularSource { + query?: any; + type: "PostgreSqlV2Source"; +} + +// @public +export interface PostgreSqlV2TableDataset extends Dataset { + schemaTypePropertiesSchema?: any; + table?: any; + type: "PostgreSqlV2Table"; +} + // @public export interface PowerQuerySink extends DataFlowSink { script?: string; @@ -7488,6 +7584,34 @@ export interface ServiceNowSource extends TabularSource { type: "ServiceNowSource"; } +// @public +export type ServiceNowV2AuthenticationType = string; + +// @public +export interface ServiceNowV2LinkedService extends LinkedService { + authenticationType: ServiceNowV2AuthenticationType; + clientId?: any; + clientSecret?: SecretBaseUnion; + encryptedCredential?: string; + endpoint: any; + grantType?: any; + password?: SecretBaseUnion; + type: "ServiceNowV2"; + username?: any; +} + +// @public +export interface ServiceNowV2ObjectDataset extends Dataset { + tableName?: any; + type: "ServiceNowV2Object"; +} + +// @public +export interface ServiceNowV2Source extends TabularSource { + expression?: ExpressionV2; + type: "ServiceNowV2Source"; +} + // @public export interface ServicePrincipalCredential extends Credential_2 { servicePrincipalId?: any; @@ -8260,11 +8384,11 @@ export interface SynapseSparkJobReference { export interface TabularSource extends CopySource { additionalColumns?: any; queryTimeout?: any; - type: "TabularSource" | "AzureTableSource" | "InformixSource" | "Db2Source" | "OdbcSource" | "MySqlSource" | "PostgreSqlSource" | "SybaseSource" | "SapBwSource" | "SalesforceSource" | "SapCloudForCustomerSource" | "SapEccSource" | "SapHanaSource" | "SapOpenHubSource" | "SapOdpSource" | "SapTableSource" | "SqlSource" | "SqlServerSource" | "AmazonRdsForSqlServerSource" | "AzureSqlSource" | "SqlMISource" | "SqlDWSource" | "AzureMySqlSource" | "TeradataSource" | "CassandraSource" | "AmazonMWSSource" | "AzurePostgreSqlSource" | "ConcurSource" | "CouchbaseSource" | "DrillSource" | "EloquaSource" | "GoogleBigQuerySource" | "GreenplumSource" | "HBaseSource" | "HiveSource" | "HubspotSource" | "ImpalaSource" | "JiraSource" | "MagentoSource" | "MariaDBSource" | "AzureMariaDBSource" | "MarketoSource" | "PaypalSource" | "PhoenixSource" | "PrestoSource" | "QuickBooksSource" | "ServiceNowSource" | "ShopifySource" | "SparkSource" | "SquareSource" | "XeroSource" | "ZohoSource" | "NetezzaSource" | "VerticaSource" | "SalesforceMarketingCloudSource" | "ResponsysSource" | "DynamicsAXSource" | "OracleServiceCloudSource" | "GoogleAdWordsSource" | "AmazonRedshiftSource" | "WarehouseSource" | "SalesforceV2Source"; + type: "TabularSource" | "AzureTableSource" | "InformixSource" | "Db2Source" | "OdbcSource" | "MySqlSource" | "PostgreSqlSource" | "PostgreSqlV2Source" | "SybaseSource" | "SapBwSource" | "SalesforceSource" | "SapCloudForCustomerSource" | "SapEccSource" | "SapHanaSource" | "SapOpenHubSource" | "SapOdpSource" | "SapTableSource" | "SqlSource" | "SqlServerSource" | "AmazonRdsForSqlServerSource" | "AzureSqlSource" | "SqlMISource" | "SqlDWSource" | "AzureMySqlSource" | "TeradataSource" | "CassandraSource" | "AmazonMWSSource" | "AzurePostgreSqlSource" | "ConcurSource" | "CouchbaseSource" | "DrillSource" | "EloquaSource" | "GoogleBigQuerySource" | "GoogleBigQueryV2Source" | "GreenplumSource" | "HBaseSource" | "HiveSource" | "HubspotSource" | "ImpalaSource" | "JiraSource" | "MagentoSource" | "MariaDBSource" | "AzureMariaDBSource" | "MarketoSource" | "PaypalSource" | "PhoenixSource" | "PrestoSource" | "QuickBooksSource" | "ServiceNowSource" | "ShopifySource" | "SparkSource" | "SquareSource" | "XeroSource" | "ZohoSource" | "NetezzaSource" | "VerticaSource" | "SalesforceMarketingCloudSource" | "ResponsysSource" | "DynamicsAXSource" | "OracleServiceCloudSource" | "GoogleAdWordsSource" | "AmazonRedshiftSource" | "WarehouseSource" | "SalesforceV2Source" | "ServiceNowV2Source"; } // @public (undocumented) -export type TabularSourceUnion = TabularSource | AzureTableSource | InformixSource | Db2Source | OdbcSource | MySqlSource | PostgreSqlSource | SybaseSource | SapBwSource | SalesforceSource | SapCloudForCustomerSource | SapEccSource | SapHanaSource | SapOpenHubSource | SapOdpSource | SapTableSource | SqlSource | SqlServerSource | AmazonRdsForSqlServerSource | AzureSqlSource | SqlMISource | SqlDWSource | AzureMySqlSource | TeradataSource | CassandraSource | AmazonMWSSource | AzurePostgreSqlSource | ConcurSource | CouchbaseSource | DrillSource | EloquaSource | GoogleBigQuerySource | GreenplumSource | HBaseSource | HiveSource | HubspotSource | ImpalaSource | JiraSource | MagentoSource | MariaDBSource | AzureMariaDBSource | MarketoSource | PaypalSource | PhoenixSource | PrestoSource | QuickBooksSource | ServiceNowSource | ShopifySource | SparkSource | SquareSource | XeroSource | ZohoSource | NetezzaSource | VerticaSource | SalesforceMarketingCloudSource | ResponsysSource | DynamicsAXSource | OracleServiceCloudSource | GoogleAdWordsSource | AmazonRedshiftSource | WarehouseSource | SalesforceV2Source; +export type TabularSourceUnion = TabularSource | AzureTableSource | InformixSource | Db2Source | OdbcSource | MySqlSource | PostgreSqlSource | PostgreSqlV2Source | SybaseSource | SapBwSource | SalesforceSource | SapCloudForCustomerSource | SapEccSource | SapHanaSource | SapOpenHubSource | SapOdpSource | SapTableSource | SqlSource | SqlServerSource | AmazonRdsForSqlServerSource | AzureSqlSource | SqlMISource | SqlDWSource | AzureMySqlSource | TeradataSource | CassandraSource | AmazonMWSSource | AzurePostgreSqlSource | ConcurSource | CouchbaseSource | DrillSource | EloquaSource | GoogleBigQuerySource | GoogleBigQueryV2Source | GreenplumSource | HBaseSource | HiveSource | HubspotSource | ImpalaSource | JiraSource | MagentoSource | MariaDBSource | AzureMariaDBSource | MarketoSource | PaypalSource | PhoenixSource | PrestoSource | QuickBooksSource | ServiceNowSource | ShopifySource | SparkSource | SquareSource | XeroSource | ZohoSource | NetezzaSource | VerticaSource | SalesforceMarketingCloudSource | ResponsysSource | DynamicsAXSource | OracleServiceCloudSource | GoogleAdWordsSource | AmazonRedshiftSource | WarehouseSource | SalesforceV2Source | ServiceNowV2Source; // @public export interface TabularTranslator extends CopyTranslator { diff --git a/sdk/datafactory/arm-datafactory/src/dataFactoryManagementClient.ts b/sdk/datafactory/arm-datafactory/src/dataFactoryManagementClient.ts index 00fa0f05ab85..6090b25d42f4 100644 --- a/sdk/datafactory/arm-datafactory/src/dataFactoryManagementClient.ts +++ b/sdk/datafactory/arm-datafactory/src/dataFactoryManagementClient.ts @@ -98,7 +98,7 @@ export class DataFactoryManagementClient extends coreClient.ServiceClient { credential: credentials, }; - const packageDetails = `azsdk-js-arm-datafactory/14.0.0`; + const packageDetails = `azsdk-js-arm-datafactory/14.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/datafactory/arm-datafactory/src/models/index.ts b/sdk/datafactory/arm-datafactory/src/models/index.ts index 6b70fe600c73..fbc00f5dafbf 100644 --- a/sdk/datafactory/arm-datafactory/src/models/index.ts +++ b/sdk/datafactory/arm-datafactory/src/models/index.ts @@ -53,6 +53,7 @@ export type LinkedServiceUnion = | AzureMySqlLinkedService | MySqlLinkedService | PostgreSqlLinkedService + | PostgreSqlV2LinkedService | SybaseLinkedService | Db2LinkedService | TeradataLinkedService @@ -104,6 +105,7 @@ export type LinkedServiceUnion = | DrillLinkedService | EloquaLinkedService | GoogleBigQueryLinkedService + | GoogleBigQueryV2LinkedService | GreenplumLinkedService | HBaseLinkedService | HiveLinkedService @@ -145,7 +147,8 @@ export type LinkedServiceUnion = | LakeHouseLinkedService | SalesforceV2LinkedService | SalesforceServiceCloudV2LinkedService - | WarehouseLinkedService; + | WarehouseLinkedService + | ServiceNowV2LinkedService; export type DatasetUnion = | Dataset | AmazonS3Dataset @@ -189,6 +192,7 @@ export type DatasetUnion = | OdbcTableDataset | MySqlTableDataset | PostgreSqlTableDataset + | PostgreSqlV2TableDataset | MicrosoftAccessTableDataset | SalesforceObjectDataset | SalesforceServiceCloudObjectDataset @@ -213,6 +217,7 @@ export type DatasetUnion = | DrillTableDataset | EloquaObjectDataset | GoogleBigQueryObjectDataset + | GoogleBigQueryV2ObjectDataset | GreenplumTableDataset | HBaseObjectDataset | HiveObjectDataset @@ -248,7 +253,8 @@ export type DatasetUnion = | LakeHouseTableDataset | SalesforceV2ObjectDataset | SalesforceServiceCloudV2ObjectDataset - | WarehouseTableDataset; + | WarehouseTableDataset + | ServiceNowV2ObjectDataset; export type ActivityUnion = | Activity | ControlActivityUnion @@ -512,6 +518,7 @@ export type TabularSourceUnion = | OdbcSource | MySqlSource | PostgreSqlSource + | PostgreSqlV2Source | SybaseSource | SapBwSource | SalesforceSource @@ -537,6 +544,7 @@ export type TabularSourceUnion = | DrillSource | EloquaSource | GoogleBigQuerySource + | GoogleBigQueryV2Source | GreenplumSource | HBaseSource | HiveSource @@ -566,7 +574,8 @@ export type TabularSourceUnion = | GoogleAdWordsSource | AmazonRedshiftSource | WarehouseSource - | SalesforceV2Source; + | SalesforceV2Source + | ServiceNowV2Source; export type TriggerDependencyReferenceUnion = | TriggerDependencyReference | TumblingWindowTriggerDependencyReference; @@ -1296,6 +1305,7 @@ export interface LinkedService { | "AzureMySql" | "MySql" | "PostgreSql" + | "PostgreSqlV2" | "Sybase" | "Db2" | "Teradata" @@ -1347,6 +1357,7 @@ export interface LinkedService { | "Drill" | "Eloqua" | "GoogleBigQuery" + | "GoogleBigQueryV2" | "Greenplum" | "HBase" | "Hive" @@ -1388,7 +1399,8 @@ export interface LinkedService { | "LakeHouse" | "SalesforceV2" | "SalesforceServiceCloudV2" - | "Warehouse"; + | "Warehouse" + | "ServiceNowV2"; /** Describes unknown properties. The value of an unknown property can be of "any" type. */ [property: string]: any; /** The integration runtime reference. */ @@ -1472,6 +1484,7 @@ export interface Dataset { | "OdbcTable" | "MySqlTable" | "PostgreSqlTable" + | "PostgreSqlV2Table" | "MicrosoftAccessTable" | "SalesforceObject" | "SalesforceServiceCloudObject" @@ -1496,6 +1509,7 @@ export interface Dataset { | "DrillTable" | "EloquaObject" | "GoogleBigQueryObject" + | "GoogleBigQueryV2Object" | "GreenplumTable" | "HBaseObject" | "HiveObject" @@ -1531,7 +1545,8 @@ export interface Dataset { | "LakeHouseTable" | "SalesforceV2Object" | "SalesforceServiceCloudV2Object" - | "WarehouseTable"; + | "WarehouseTable" + | "ServiceNowV2Object"; /** Describes unknown properties. The value of an unknown property can be of "any" type. */ [property: string]: any; /** Dataset description. */ @@ -3217,6 +3232,7 @@ export interface CopySource { | "OdbcSource" | "MySqlSource" | "PostgreSqlSource" + | "PostgreSqlV2Source" | "SybaseSource" | "SapBwSource" | "ODataSource" @@ -3259,6 +3275,7 @@ export interface CopySource { | "DrillSource" | "EloquaSource" | "GoogleBigQuerySource" + | "GoogleBigQueryV2Source" | "GreenplumSource" | "HBaseSource" | "HiveSource" @@ -3294,7 +3311,8 @@ export interface CopySource { | "WarehouseSource" | "SharePointOnlineListSource" | "SalesforceV2Source" - | "SalesforceServiceCloudV2Source"; + | "SalesforceServiceCloudV2Source" + | "ServiceNowV2Source"; /** Describes unknown properties. The value of an unknown property can be of "any" type. */ [property: string]: any; /** Source retry count. Type: integer (or Expression with resultType integer). */ @@ -3893,6 +3911,18 @@ export interface SynapseSparkJobReference { referenceName: any; } +/** Nested representation of a complex expression. */ +export interface ExpressionV2 { + /** Type of expressions supported by the system. Type: string. */ + type?: ExpressionV2Type; + /** Value for Constant/Field Type: string. */ + value?: string; + /** Expression operator value Type: string. */ + operator?: string; + /** List of nested expressions. */ + operands?: ExpressionV2[]; +} + /** The workflow trigger recurrence. */ export interface ScheduleTriggerRecurrence { /** Describes unknown properties. The value of an unknown property can be of "any" type. */ @@ -4826,6 +4856,50 @@ export interface PostgreSqlLinkedService extends LinkedService { encryptedCredential?: string; } +/** Linked service for PostgreSQLV2 data source. */ +export interface PostgreSqlV2LinkedService extends LinkedService { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "PostgreSqlV2"; + /** Server name for connection. Type: string. */ + server: any; + /** The port for the connection. Type: integer. */ + port?: any; + /** Username for authentication. Type: string. */ + username: any; + /** Database name for connection. Type: string. */ + database: any; + /** SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4: verify-ca, 5: verify-full. Type: integer. */ + sslMode: any; + /** Sets the schema search path. Type: string. */ + schema?: any; + /** Whether connection pooling should be used. Type: boolean. */ + pooling?: any; + /** The time to wait (in seconds) while trying to establish a connection before terminating the attempt and generating an error. Type: integer. */ + connectionTimeout?: any; + /** The time to wait (in seconds) while trying to execute a command before terminating the attempt and generating an error. Set to zero for infinity. Type: integer. */ + commandTimeout?: any; + /** Whether to trust the server certificate without validating it. Type: boolean. */ + trustServerCertificate?: any; + /** Location of a client certificate to be sent to the server. Type: string. */ + sslCertificate?: any; + /** Location of a client key for a client certificate to be sent to the server. Type: string. */ + sslKey?: any; + /** Password for a key for a client certificate. Type: string. */ + sslPassword?: any; + /** Determines the size of the internal buffer uses when reading. Increasing may improve performance if transferring large values from the database. Type: integer. */ + readBufferSize?: any; + /** When enabled, parameter values are logged when commands are executed. Type: boolean. */ + logParameters?: any; + /** Gets or sets the session timezone. Type: string. */ + timezone?: any; + /** Gets or sets the .NET encoding that will be used to encode/decode PostgreSQL string data. Type: string */ + encoding?: any; + /** The Azure key vault secret reference of password in connection string. Type: string. */ + password?: AzureKeyVaultSecretReference; + /** The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. */ + encryptedCredential?: string; +} + /** Linked service for Sybase data source. */ export interface SybaseLinkedService extends LinkedService { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -5782,6 +5856,26 @@ export interface GoogleBigQueryLinkedService extends LinkedService { encryptedCredential?: string; } +/** Google BigQuery service linked service. */ +export interface GoogleBigQueryV2LinkedService extends LinkedService { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "GoogleBigQueryV2"; + /** The default BigQuery project id to query against. Type: string (or Expression with resultType string). */ + projectId: any; + /** The OAuth 2.0 authentication mechanism used for authentication. */ + authenticationType: GoogleBigQueryV2AuthenticationType; + /** The client id of the google application used to acquire the refresh token. Type: string (or Expression with resultType string). */ + clientId?: any; + /** The client secret of the google application used to acquire the refresh token. */ + clientSecret?: SecretBaseUnion; + /** The refresh token obtained from Google for authorizing access to BigQuery for UserAuthentication. */ + refreshToken?: SecretBaseUnion; + /** The content of the .json key file that is used to authenticate the service account. Type: string (or Expression with resultType string). */ + keyFileContent?: SecretBaseUnion; + /** The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. */ + encryptedCredential?: string; +} + /** Greenplum Database linked service. */ export interface GreenplumLinkedService extends LinkedService { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -6787,6 +6881,28 @@ export interface WarehouseLinkedService extends LinkedService { servicePrincipalCredential?: SecretBaseUnion; } +/** ServiceNowV2 server linked service. */ +export interface ServiceNowV2LinkedService extends LinkedService { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "ServiceNowV2"; + /** The endpoint of the ServiceNowV2 server. (i.e. .service-now.com) */ + endpoint: any; + /** The authentication type to use. */ + authenticationType: ServiceNowV2AuthenticationType; + /** The user name used to connect to the ServiceNowV2 server for Basic and OAuth2 authentication. */ + username?: any; + /** The password corresponding to the user name for Basic and OAuth2 authentication. */ + password?: SecretBaseUnion; + /** The client id for OAuth2 authentication. */ + clientId?: any; + /** The client secret for OAuth2 authentication. */ + clientSecret?: SecretBaseUnion; + /** GrantType for OAuth2 authentication. Default value is password. */ + grantType?: any; + /** The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. */ + encryptedCredential?: string; +} + /** A single Amazon Simple Storage Service (S3) object or a set of S3 objects. */ export interface AmazonS3Dataset extends Dataset { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -7252,6 +7368,16 @@ export interface PostgreSqlTableDataset extends Dataset { schemaTypePropertiesSchema?: any; } +/** The PostgreSQLV2 table dataset. */ +export interface PostgreSqlV2TableDataset extends Dataset { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "PostgreSqlV2Table"; + /** The PostgreSQL table name. Type: string (or Expression with resultType string). */ + table?: any; + /** The PostgreSQL schema name. Type: string (or Expression with resultType string). */ + schemaTypePropertiesSchema?: any; +} + /** The Microsoft Access table dataset. */ export interface MicrosoftAccessTableDataset extends Dataset { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -7492,6 +7618,16 @@ export interface GoogleBigQueryObjectDataset extends Dataset { dataset?: any; } +/** Google BigQuery service dataset. */ +export interface GoogleBigQueryV2ObjectDataset extends Dataset { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "GoogleBigQueryV2Object"; + /** The table name of the Google BigQuery. Type: string (or Expression with resultType string). */ + table?: any; + /** The database name of the Google BigQuery. Type: string (or Expression with resultType string). */ + dataset?: any; +} + /** Greenplum Database dataset. */ export interface GreenplumTableDataset extends Dataset { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -7824,6 +7960,14 @@ export interface WarehouseTableDataset extends Dataset { table?: any; } +/** ServiceNowV2 server dataset. */ +export interface ServiceNowV2ObjectDataset extends Dataset { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "ServiceNowV2Object"; + /** The table name. Type: string (or Expression with resultType string). */ + tableName?: any; +} + /** Base class for all control activities like IfCondition, ForEach , Until. */ export interface ControlActivity extends Activity { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -8977,6 +9121,7 @@ export interface TabularSource extends CopySource { | "OdbcSource" | "MySqlSource" | "PostgreSqlSource" + | "PostgreSqlV2Source" | "SybaseSource" | "SapBwSource" | "SalesforceSource" @@ -9002,6 +9147,7 @@ export interface TabularSource extends CopySource { | "DrillSource" | "EloquaSource" | "GoogleBigQuerySource" + | "GoogleBigQueryV2Source" | "GreenplumSource" | "HBaseSource" | "HiveSource" @@ -9031,7 +9177,8 @@ export interface TabularSource extends CopySource { | "GoogleAdWordsSource" | "AmazonRedshiftSource" | "WarehouseSource" - | "SalesforceV2Source"; + | "SalesforceV2Source" + | "ServiceNowV2Source"; /** Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). */ queryTimeout?: any; /** Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects). */ @@ -10806,6 +10953,14 @@ export interface PostgreSqlSource extends TabularSource { query?: any; } +/** A copy activity source for PostgreSQL databases. */ +export interface PostgreSqlV2Source extends TabularSource { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "PostgreSqlV2Source"; + /** Database query. Type: string (or Expression with resultType string). */ + query?: any; +} + /** A copy activity source for Sybase databases. */ export interface SybaseSource extends TabularSource { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -11120,6 +11275,14 @@ export interface GoogleBigQuerySource extends TabularSource { query?: any; } +/** A copy activity Google BigQuery service source. */ +export interface GoogleBigQueryV2Source extends TabularSource { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "GoogleBigQueryV2Source"; + /** A query to retrieve data from source. Type: string (or Expression with resultType string). */ + query?: any; +} + /** A copy activity Greenplum Database source. */ export interface GreenplumSource extends TabularSource { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -11380,6 +11543,14 @@ export interface SalesforceV2Source extends TabularSource { includeDeletedObjects?: any; } +/** A copy activity ServiceNowV2 server source. */ +export interface ServiceNowV2Source extends TabularSource { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "ServiceNowV2Source"; + /** Expression to filter data from source. */ + expression?: ExpressionV2; +} + /** Referenced tumbling window trigger dependency. */ export interface TumblingWindowTriggerDependencyReference extends TriggerDependencyReference { @@ -12609,6 +12780,24 @@ export enum KnownGoogleBigQueryAuthenticationType { */ export type GoogleBigQueryAuthenticationType = string; +/** Known values of {@link GoogleBigQueryV2AuthenticationType} that the service accepts. */ +export enum KnownGoogleBigQueryV2AuthenticationType { + /** ServiceAuthentication */ + ServiceAuthentication = "ServiceAuthentication", + /** UserAuthentication */ + UserAuthentication = "UserAuthentication", +} + +/** + * Defines values for GoogleBigQueryV2AuthenticationType. \ + * {@link KnownGoogleBigQueryV2AuthenticationType} can be used interchangeably with GoogleBigQueryV2AuthenticationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ServiceAuthentication** \ + * **UserAuthentication** + */ +export type GoogleBigQueryV2AuthenticationType = string; + /** Known values of {@link HBaseAuthenticationType} that the service accepts. */ export enum KnownHBaseAuthenticationType { /** Anonymous */ @@ -12876,6 +13065,24 @@ export enum KnownSnowflakeAuthenticationType { */ export type SnowflakeAuthenticationType = string; +/** Known values of {@link ServiceNowV2AuthenticationType} that the service accepts. */ +export enum KnownServiceNowV2AuthenticationType { + /** Basic */ + Basic = "Basic", + /** OAuth2 */ + OAuth2 = "OAuth2", +} + +/** + * Defines values for ServiceNowV2AuthenticationType. \ + * {@link KnownServiceNowV2AuthenticationType} can be used interchangeably with ServiceNowV2AuthenticationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Basic** \ + * **OAuth2** + */ +export type ServiceNowV2AuthenticationType = string; + /** Known values of {@link CassandraSourceReadConsistencyLevels} that the service accepts. */ export enum KnownCassandraSourceReadConsistencyLevels { /** ALL */ @@ -13398,6 +13605,30 @@ export enum KnownSalesforceV2SinkWriteBehavior { */ export type SalesforceV2SinkWriteBehavior = string; +/** Known values of {@link ExpressionV2Type} that the service accepts. */ +export enum KnownExpressionV2Type { + /** Constant */ + Constant = "Constant", + /** Field */ + Field = "Field", + /** Unary */ + Unary = "Unary", + /** Binary */ + Binary = "Binary", +} + +/** + * Defines values for ExpressionV2Type. \ + * {@link KnownExpressionV2Type} can be used interchangeably with ExpressionV2Type, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Constant** \ + * **Field** \ + * **Unary** \ + * **Binary** + */ +export type ExpressionV2Type = string; + /** Known values of {@link RecurrenceFrequency} that the service accepts. */ export enum KnownRecurrenceFrequency { /** NotSpecified */ diff --git a/sdk/datafactory/arm-datafactory/src/models/mappers.ts b/sdk/datafactory/arm-datafactory/src/models/mappers.ts index ca0b419d5e4c..26dec7d9c1ce 100644 --- a/sdk/datafactory/arm-datafactory/src/models/mappers.ts +++ b/sdk/datafactory/arm-datafactory/src/models/mappers.ts @@ -7542,6 +7542,45 @@ export const SynapseSparkJobReference: coreClient.CompositeMapper = { }, }; +export const ExpressionV2: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExpressionV2", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + type: { + name: "String", + }, + }, + operator: { + serializedName: "operator", + type: { + name: "String", + }, + }, + operands: { + serializedName: "operands", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressionV2", + }, + }, + }, + }, + }, + }, +}; + export const ScheduleTriggerRecurrence: coreClient.CompositeMapper = { type: { name: "Composite", @@ -10180,6 +10219,139 @@ export const PostgreSqlLinkedService: coreClient.CompositeMapper = { }, }; +export const PostgreSqlV2LinkedService: coreClient.CompositeMapper = { + serializedName: "PostgreSqlV2", + type: { + name: "Composite", + className: "PostgreSqlV2LinkedService", + uberParent: "LinkedService", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: LinkedService.type.polymorphicDiscriminator, + modelProperties: { + ...LinkedService.type.modelProperties, + server: { + serializedName: "typeProperties.server", + required: true, + type: { + name: "any", + }, + }, + port: { + serializedName: "typeProperties.port", + type: { + name: "any", + }, + }, + username: { + serializedName: "typeProperties.username", + required: true, + type: { + name: "any", + }, + }, + database: { + serializedName: "typeProperties.database", + required: true, + type: { + name: "any", + }, + }, + sslMode: { + serializedName: "typeProperties.sslMode", + required: true, + type: { + name: "any", + }, + }, + schema: { + serializedName: "typeProperties.schema", + type: { + name: "any", + }, + }, + pooling: { + serializedName: "typeProperties.pooling", + type: { + name: "any", + }, + }, + connectionTimeout: { + serializedName: "typeProperties.connectionTimeout", + type: { + name: "any", + }, + }, + commandTimeout: { + serializedName: "typeProperties.commandTimeout", + type: { + name: "any", + }, + }, + trustServerCertificate: { + serializedName: "typeProperties.trustServerCertificate", + type: { + name: "any", + }, + }, + sslCertificate: { + serializedName: "typeProperties.sslCertificate", + type: { + name: "any", + }, + }, + sslKey: { + serializedName: "typeProperties.sslKey", + type: { + name: "any", + }, + }, + sslPassword: { + serializedName: "typeProperties.sslPassword", + type: { + name: "any", + }, + }, + readBufferSize: { + serializedName: "typeProperties.readBufferSize", + type: { + name: "any", + }, + }, + logParameters: { + serializedName: "typeProperties.logParameters", + type: { + name: "any", + }, + }, + timezone: { + serializedName: "typeProperties.timezone", + type: { + name: "any", + }, + }, + encoding: { + serializedName: "typeProperties.encoding", + type: { + name: "any", + }, + }, + password: { + serializedName: "typeProperties.password", + type: { + name: "Composite", + className: "AzureKeyVaultSecretReference", + }, + }, + encryptedCredential: { + serializedName: "typeProperties.encryptedCredential", + type: { + name: "String", + }, + }, + }, + }, +}; + export const SybaseLinkedService: coreClient.CompositeMapper = { serializedName: "Sybase", type: { @@ -12970,6 +13142,67 @@ export const GoogleBigQueryLinkedService: coreClient.CompositeMapper = { }, }; +export const GoogleBigQueryV2LinkedService: coreClient.CompositeMapper = { + serializedName: "GoogleBigQueryV2", + type: { + name: "Composite", + className: "GoogleBigQueryV2LinkedService", + uberParent: "LinkedService", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: LinkedService.type.polymorphicDiscriminator, + modelProperties: { + ...LinkedService.type.modelProperties, + projectId: { + serializedName: "typeProperties.projectId", + required: true, + type: { + name: "any", + }, + }, + authenticationType: { + serializedName: "typeProperties.authenticationType", + required: true, + type: { + name: "String", + }, + }, + clientId: { + serializedName: "typeProperties.clientId", + type: { + name: "any", + }, + }, + clientSecret: { + serializedName: "typeProperties.clientSecret", + type: { + name: "Composite", + className: "SecretBase", + }, + }, + refreshToken: { + serializedName: "typeProperties.refreshToken", + type: { + name: "Composite", + className: "SecretBase", + }, + }, + keyFileContent: { + serializedName: "typeProperties.keyFileContent", + type: { + name: "Composite", + className: "SecretBase", + }, + }, + encryptedCredential: { + serializedName: "typeProperties.encryptedCredential", + type: { + name: "String", + }, + }, + }, + }, +}; + export const GreenplumLinkedService: coreClient.CompositeMapper = { serializedName: "Greenplum", type: { @@ -15948,6 +16181,72 @@ export const WarehouseLinkedService: coreClient.CompositeMapper = { }, }; +export const ServiceNowV2LinkedService: coreClient.CompositeMapper = { + serializedName: "ServiceNowV2", + type: { + name: "Composite", + className: "ServiceNowV2LinkedService", + uberParent: "LinkedService", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: LinkedService.type.polymorphicDiscriminator, + modelProperties: { + ...LinkedService.type.modelProperties, + endpoint: { + serializedName: "typeProperties.endpoint", + required: true, + type: { + name: "any", + }, + }, + authenticationType: { + serializedName: "typeProperties.authenticationType", + required: true, + type: { + name: "String", + }, + }, + username: { + serializedName: "typeProperties.username", + type: { + name: "any", + }, + }, + password: { + serializedName: "typeProperties.password", + type: { + name: "Composite", + className: "SecretBase", + }, + }, + clientId: { + serializedName: "typeProperties.clientId", + type: { + name: "any", + }, + }, + clientSecret: { + serializedName: "typeProperties.clientSecret", + type: { + name: "Composite", + className: "SecretBase", + }, + }, + grantType: { + serializedName: "typeProperties.grantType", + type: { + name: "any", + }, + }, + encryptedCredential: { + serializedName: "typeProperties.encryptedCredential", + type: { + name: "String", + }, + }, + }, + }, +}; + export const AmazonS3Dataset: coreClient.CompositeMapper = { serializedName: "AmazonS3Object", type: { @@ -17218,6 +17517,32 @@ export const PostgreSqlTableDataset: coreClient.CompositeMapper = { }, }; +export const PostgreSqlV2TableDataset: coreClient.CompositeMapper = { + serializedName: "PostgreSqlV2Table", + type: { + name: "Composite", + className: "PostgreSqlV2TableDataset", + uberParent: "Dataset", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: Dataset.type.polymorphicDiscriminator, + modelProperties: { + ...Dataset.type.modelProperties, + table: { + serializedName: "typeProperties.table", + type: { + name: "any", + }, + }, + schemaTypePropertiesSchema: { + serializedName: "typeProperties.schema", + type: { + name: "any", + }, + }, + }, + }, +}; + export const MicrosoftAccessTableDataset: coreClient.CompositeMapper = { serializedName: "MicrosoftAccessTable", type: { @@ -17842,6 +18167,32 @@ export const GoogleBigQueryObjectDataset: coreClient.CompositeMapper = { }, }; +export const GoogleBigQueryV2ObjectDataset: coreClient.CompositeMapper = { + serializedName: "GoogleBigQueryV2Object", + type: { + name: "Composite", + className: "GoogleBigQueryV2ObjectDataset", + uberParent: "Dataset", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: Dataset.type.polymorphicDiscriminator, + modelProperties: { + ...Dataset.type.modelProperties, + table: { + serializedName: "typeProperties.table", + type: { + name: "any", + }, + }, + dataset: { + serializedName: "typeProperties.dataset", + type: { + name: "any", + }, + }, + }, + }, +}; + export const GreenplumTableDataset: coreClient.CompositeMapper = { serializedName: "GreenplumTable", type: { @@ -18697,6 +19048,26 @@ export const WarehouseTableDataset: coreClient.CompositeMapper = { }, }; +export const ServiceNowV2ObjectDataset: coreClient.CompositeMapper = { + serializedName: "ServiceNowV2Object", + type: { + name: "Composite", + className: "ServiceNowV2ObjectDataset", + uberParent: "Dataset", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: Dataset.type.polymorphicDiscriminator, + modelProperties: { + ...Dataset.type.modelProperties, + tableName: { + serializedName: "typeProperties.tableName", + type: { + name: "any", + }, + }, + }, + }, +}; + export const ControlActivity: coreClient.CompositeMapper = { serializedName: "Container", type: { @@ -27004,6 +27375,26 @@ export const PostgreSqlSource: coreClient.CompositeMapper = { }, }; +export const PostgreSqlV2Source: coreClient.CompositeMapper = { + serializedName: "PostgreSqlV2Source", + type: { + name: "Composite", + className: "PostgreSqlV2Source", + uberParent: "TabularSource", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: TabularSource.type.polymorphicDiscriminator, + modelProperties: { + ...TabularSource.type.modelProperties, + query: { + serializedName: "query", + type: { + name: "any", + }, + }, + }, + }, +}; + export const SybaseSource: coreClient.CompositeMapper = { serializedName: "SybaseSource", type: { @@ -27855,6 +28246,26 @@ export const GoogleBigQuerySource: coreClient.CompositeMapper = { }, }; +export const GoogleBigQueryV2Source: coreClient.CompositeMapper = { + serializedName: "GoogleBigQueryV2Source", + type: { + name: "Composite", + className: "GoogleBigQueryV2Source", + uberParent: "TabularSource", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: TabularSource.type.polymorphicDiscriminator, + modelProperties: { + ...TabularSource.type.modelProperties, + query: { + serializedName: "query", + type: { + name: "any", + }, + }, + }, + }, +}; + export const GreenplumSource: coreClient.CompositeMapper = { serializedName: "GreenplumSource", type: { @@ -28518,6 +28929,27 @@ export const SalesforceV2Source: coreClient.CompositeMapper = { }, }; +export const ServiceNowV2Source: coreClient.CompositeMapper = { + serializedName: "ServiceNowV2Source", + type: { + name: "Composite", + className: "ServiceNowV2Source", + uberParent: "TabularSource", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: TabularSource.type.polymorphicDiscriminator, + modelProperties: { + ...TabularSource.type.modelProperties, + expression: { + serializedName: "expression", + type: { + name: "Composite", + className: "ExpressionV2", + }, + }, + }, + }, +}; + export const TumblingWindowTriggerDependencyReference: coreClient.CompositeMapper = { serializedName: "TumblingWindowTriggerDependencyReference", @@ -28655,6 +29087,7 @@ export let discriminators = { "LinkedService.AzureMySql": AzureMySqlLinkedService, "LinkedService.MySql": MySqlLinkedService, "LinkedService.PostgreSql": PostgreSqlLinkedService, + "LinkedService.PostgreSqlV2": PostgreSqlV2LinkedService, "LinkedService.Sybase": SybaseLinkedService, "LinkedService.Db2": Db2LinkedService, "LinkedService.Teradata": TeradataLinkedService, @@ -28706,6 +29139,7 @@ export let discriminators = { "LinkedService.Drill": DrillLinkedService, "LinkedService.Eloqua": EloquaLinkedService, "LinkedService.GoogleBigQuery": GoogleBigQueryLinkedService, + "LinkedService.GoogleBigQueryV2": GoogleBigQueryV2LinkedService, "LinkedService.Greenplum": GreenplumLinkedService, "LinkedService.HBase": HBaseLinkedService, "LinkedService.Hive": HiveLinkedService, @@ -28751,6 +29185,7 @@ export let discriminators = { "LinkedService.SalesforceServiceCloudV2": SalesforceServiceCloudV2LinkedService, "LinkedService.Warehouse": WarehouseLinkedService, + "LinkedService.ServiceNowV2": ServiceNowV2LinkedService, "Dataset.AmazonS3Object": AmazonS3Dataset, "Dataset.Avro": AvroDataset, "Dataset.Excel": ExcelDataset, @@ -28793,6 +29228,7 @@ export let discriminators = { "Dataset.OdbcTable": OdbcTableDataset, "Dataset.MySqlTable": MySqlTableDataset, "Dataset.PostgreSqlTable": PostgreSqlTableDataset, + "Dataset.PostgreSqlV2Table": PostgreSqlV2TableDataset, "Dataset.MicrosoftAccessTable": MicrosoftAccessTableDataset, "Dataset.SalesforceObject": SalesforceObjectDataset, "Dataset.SalesforceServiceCloudObject": SalesforceServiceCloudObjectDataset, @@ -28817,6 +29253,7 @@ export let discriminators = { "Dataset.DrillTable": DrillTableDataset, "Dataset.EloquaObject": EloquaObjectDataset, "Dataset.GoogleBigQueryObject": GoogleBigQueryObjectDataset, + "Dataset.GoogleBigQueryV2Object": GoogleBigQueryV2ObjectDataset, "Dataset.GreenplumTable": GreenplumTableDataset, "Dataset.HBaseObject": HBaseObjectDataset, "Dataset.HiveObject": HiveObjectDataset, @@ -28855,6 +29292,7 @@ export let discriminators = { "Dataset.SalesforceServiceCloudV2Object": SalesforceServiceCloudV2ObjectDataset, "Dataset.WarehouseTable": WarehouseTableDataset, + "Dataset.ServiceNowV2Object": ServiceNowV2ObjectDataset, "Activity.Container": ControlActivity, "Activity.Execution": ExecutionActivity, "Activity.ExecuteWranglingDataflow": ExecuteWranglingDataflowActivity, @@ -29086,6 +29524,7 @@ export let discriminators = { "TabularSource.OdbcSource": OdbcSource, "TabularSource.MySqlSource": MySqlSource, "TabularSource.PostgreSqlSource": PostgreSqlSource, + "TabularSource.PostgreSqlV2Source": PostgreSqlV2Source, "TabularSource.SybaseSource": SybaseSource, "TabularSource.SapBwSource": SapBwSource, "TabularSource.SalesforceSource": SalesforceSource, @@ -29111,6 +29550,7 @@ export let discriminators = { "TabularSource.DrillSource": DrillSource, "TabularSource.EloquaSource": EloquaSource, "TabularSource.GoogleBigQuerySource": GoogleBigQuerySource, + "TabularSource.GoogleBigQueryV2Source": GoogleBigQueryV2Source, "TabularSource.GreenplumSource": GreenplumSource, "TabularSource.HBaseSource": HBaseSource, "TabularSource.HiveSource": HiveSource, @@ -29142,6 +29582,7 @@ export let discriminators = { "TabularSource.AmazonRedshiftSource": AmazonRedshiftSource, "TabularSource.WarehouseSource": WarehouseSource, "TabularSource.SalesforceV2Source": SalesforceV2Source, + "TabularSource.ServiceNowV2Source": ServiceNowV2Source, "TriggerDependencyReference.TumblingWindowTriggerDependencyReference": TumblingWindowTriggerDependencyReference, }; diff --git a/sdk/digitaltwins/digital-twins-core/tests.yml b/sdk/digitaltwins/digital-twins-core/tests.yml index 0cfbed6ee781..ef643c5f75b8 100644 --- a/sdk/digitaltwins/digital-twins-core/tests.yml +++ b/sdk/digitaltwins/digital-twins-core/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/digital-twins-core" ServiceDirectory: digitaltwins diff --git a/sdk/documentintelligence/ai-document-intelligence-rest/tests.yml b/sdk/documentintelligence/ai-document-intelligence-rest/tests.yml index 805cdac774ee..edc529d018e1 100644 --- a/sdk/documentintelligence/ai-document-intelligence-rest/tests.yml +++ b/sdk/documentintelligence/ai-document-intelligence-rest/tests.yml @@ -10,8 +10,8 @@ parameters: trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-rest/ai-document-intelligence" ServiceDirectory: documentintelligence diff --git a/sdk/eventgrid/eventgrid/CHANGELOG.md b/sdk/eventgrid/eventgrid/CHANGELOG.md index 8aabd391daf5..4cc8427e2544 100644 --- a/sdk/eventgrid/eventgrid/CHANGELOG.md +++ b/sdk/eventgrid/eventgrid/CHANGELOG.md @@ -1,14 +1,13 @@ # Release History -## 5.2.1 (Unreleased) +## 5.3.0 (2024-03-13) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Added new System Events: -### Other Changes + - `Microsoft.ApiCenter.ApiDefinitionAdded` + - `Microsoft.ApiCenter.ApiDefinitionUpdated` ## 5.2.0 (2024-02-08) diff --git a/sdk/eventgrid/eventgrid/package.json b/sdk/eventgrid/eventgrid/package.json index d56fc80c4fe1..73a804aee41e 100644 --- a/sdk/eventgrid/eventgrid/package.json +++ b/sdk/eventgrid/eventgrid/package.json @@ -3,7 +3,7 @@ "sdk-type": "client", "author": "Microsoft Corporation", "description": "An isomorphic client library for the Azure Event Grid service.", - "version": "5.2.1", + "version": "5.3.0", "keywords": [ "node", "azure", @@ -76,7 +76,7 @@ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md && node ./scripts/setPathToEmpty.js", "integration-test:browser": "dev-tool run test:browser", - "integration-test:node": "dev-tool run test:node-tsx-js -- --timeout 5000000 \"dist-esm/test/**/*.spec.js\"", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 \"dist-esm/test/**/*.spec.js\"", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js", diff --git a/sdk/eventgrid/eventgrid/review/eventgrid.api.md b/sdk/eventgrid/eventgrid/review/eventgrid.api.md index a41672a4bf71..645f3f1dea25 100644 --- a/sdk/eventgrid/eventgrid/review/eventgrid.api.md +++ b/sdk/eventgrid/eventgrid/review/eventgrid.api.md @@ -514,6 +514,26 @@ export interface AcsUserDisconnectedEventData { // @public export type AcsUserEngagement = string; +// @public +export interface ApiCenterApiDefinitionAddedEventData { + description: string; + specification: ApiCenterApiSpecification; + title: string; +} + +// @public +export interface ApiCenterApiDefinitionUpdatedEventData { + description: string; + specification: ApiCenterApiSpecification; + title: string; +} + +// @public +export interface ApiCenterApiSpecification { + name: string; + version: string; +} + // @public export interface ApiManagementApiCreatedEventData { resourceUri: string; @@ -2448,6 +2468,8 @@ export interface SubscriptionValidationEventData { // @public export interface SystemEventNameToEventData { + "Microsoft.ApiCenter.ApiDefinitionAdded": ApiCenterApiDefinitionAddedEventData; + "Microsoft.ApiCenter.ApiDefinitionUpdated": ApiCenterApiDefinitionUpdatedEventData; "Microsoft.ApiManagement.APICreated": ApiManagementApiCreatedEventData; "Microsoft.ApiManagement.APIDeleted": ApiManagementApiDeletedEventData; "Microsoft.ApiManagement.APIReleaseCreated": ApiManagementApiReleaseCreatedEventData; diff --git a/sdk/eventgrid/eventgrid/src/generated/generatedClientContext.ts b/sdk/eventgrid/eventgrid/src/generated/generatedClientContext.ts index c34451a0752b..09353b40d951 100644 --- a/sdk/eventgrid/eventgrid/src/generated/generatedClientContext.ts +++ b/sdk/eventgrid/eventgrid/src/generated/generatedClientContext.ts @@ -26,7 +26,7 @@ export class GeneratedClientContext extends coreClient.ServiceClient { requestContentType: "application/json; charset=utf-8" }; - const packageDetails = `azsdk-js-eventgrid/5.2.1`; + const packageDetails = `azsdk-js-eventgrid/5.3.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/eventgrid/eventgrid/src/generated/models/index.ts b/sdk/eventgrid/eventgrid/src/generated/models/index.ts index cde66beadd7e..b08c38ec9a20 100644 --- a/sdk/eventgrid/eventgrid/src/generated/models/index.ts +++ b/sdk/eventgrid/eventgrid/src/generated/models/index.ts @@ -2721,6 +2721,34 @@ export interface AvsScriptExecutionEventData { output: string[]; } +/** Schema of the data property of an EventGridEvent for a Microsoft.ApiCenter.ApiDefinitionAdded event. */ +export interface ApiCenterApiDefinitionAddedEventData { + /** API definition title. */ + title: string; + /** API definition description. */ + description: string; + /** API specification details. */ + specification: ApiCenterApiSpecification; +} + +/** API specification details. */ +export interface ApiCenterApiSpecification { + /** Specification name. */ + name: string; + /** Specification version. */ + version: string; +} + +/** Schema of the data property of an EventGridEvent for a Microsoft.ApiCenter.ApiDefinitionUpdated event. */ +export interface ApiCenterApiDefinitionUpdatedEventData { + /** API definition title. */ + title: string; + /** API definition description. */ + description: string; + /** API specification details. */ + specification: ApiCenterApiSpecification; +} + /** Event data for Microsoft.EventGrid.MQTTClientCreatedOrUpdated event. */ export type EventGridMqttClientCreatedOrUpdatedEventData = EventGridMqttClientEventData & { /** Configured state of the client. The value could be Enabled or Disabled */ diff --git a/sdk/eventgrid/eventgrid/src/generated/models/mappers.ts b/sdk/eventgrid/eventgrid/src/generated/models/mappers.ts index 173c9f2d0dd3..7ce605986d47 100644 --- a/sdk/eventgrid/eventgrid/src/generated/models/mappers.ts +++ b/sdk/eventgrid/eventgrid/src/generated/models/mappers.ts @@ -7946,6 +7946,89 @@ export const AvsScriptExecutionEventData: coreClient.CompositeMapper = { } }; +export const ApiCenterApiDefinitionAddedEventData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiCenterApiDefinitionAddedEventData", + modelProperties: { + title: { + serializedName: "title", + required: true, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + required: true, + type: { + name: "String" + } + }, + specification: { + serializedName: "specification", + type: { + name: "Composite", + className: "ApiCenterApiSpecification" + } + } + } + } +}; + +export const ApiCenterApiSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiCenterApiSpecification", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + version: { + serializedName: "version", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApiCenterApiDefinitionUpdatedEventData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiCenterApiDefinitionUpdatedEventData", + modelProperties: { + title: { + serializedName: "title", + required: true, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + required: true, + type: { + name: "String" + } + }, + specification: { + serializedName: "specification", + type: { + name: "Composite", + className: "ApiCenterApiSpecification" + } + } + } + } +}; + export const EventGridMqttClientCreatedOrUpdatedEventData: coreClient.CompositeMapper = { type: { name: "Composite", diff --git a/sdk/eventgrid/eventgrid/src/index.ts b/sdk/eventgrid/eventgrid/src/index.ts index 304372580c14..514b263396d0 100644 --- a/sdk/eventgrid/eventgrid/src/index.ts +++ b/sdk/eventgrid/eventgrid/src/index.ts @@ -334,4 +334,7 @@ export { KnownAcsEmailDeliveryReportStatus, KnownAcsUserEngagement, KnownHealthcareFhirResourceType, + ApiCenterApiDefinitionAddedEventData, + ApiCenterApiDefinitionUpdatedEventData, + ApiCenterApiSpecification, } from "./generated/models"; diff --git a/sdk/eventgrid/eventgrid/src/predicates.ts b/sdk/eventgrid/eventgrid/src/predicates.ts index 5bc4167933db..aefbb8993040 100644 --- a/sdk/eventgrid/eventgrid/src/predicates.ts +++ b/sdk/eventgrid/eventgrid/src/predicates.ts @@ -204,6 +204,8 @@ import { StorageTaskAssignmentCompletedEventData, AvsClusterUpdatedEventData, AvsClusterFailedEventData, + ApiCenterApiDefinitionAddedEventData, + ApiCenterApiDefinitionUpdatedEventData, } from "./generated/models"; import { CloudEvent, EventGridEvent } from "./models"; @@ -622,6 +624,10 @@ export interface SystemEventNameToEventData { "Microsoft.AVS.ClusterUpdated": AvsClusterUpdatedEventData; /** An interface for the event data of a "Microsoft.AVS.ClusterFailed" event. */ "Microsoft.AVS.ClusterFailed": AvsClusterFailedEventData; + /** An interface for the event data of a "Microsoft.ApiCenter.ApiDefinitionAdded" event. */ + "Microsoft.ApiCenter.ApiDefinitionAdded": ApiCenterApiDefinitionAddedEventData; + /** An interface for the event data of a "Microsoft.ApiCenter.ApiDefinitionUpdated" event. */ + "Microsoft.ApiCenter.ApiDefinitionUpdated": ApiCenterApiDefinitionUpdatedEventData; } /** diff --git a/sdk/eventgrid/eventgrid/src/tracing.ts b/sdk/eventgrid/eventgrid/src/tracing.ts index 3f2d35906375..baa82fc90103 100644 --- a/sdk/eventgrid/eventgrid/src/tracing.ts +++ b/sdk/eventgrid/eventgrid/src/tracing.ts @@ -10,5 +10,5 @@ import { createTracingClient } from "@azure/core-tracing"; export const tracingClient = createTracingClient({ namespace: "Microsoft.Messaging.EventGrid", packageName: "@azure/event-grid", - packageVersion: "5.2.1", + packageVersion: "5.3.0", }); diff --git a/sdk/eventgrid/eventgrid/swagger/README.md b/sdk/eventgrid/eventgrid/swagger/README.md index 20eb28f027a3..f46bfdea7709 100644 --- a/sdk/eventgrid/eventgrid/swagger/README.md +++ b/sdk/eventgrid/eventgrid/swagger/README.md @@ -5,9 +5,9 @@ ## Configuration ```yaml -require: "https://github.com/Azure/azure-rest-api-specs/blob/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/readme.md" +require: "https://github.com/Azure/azure-rest-api-specs/blob/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/readme.md" package-name: "@azure/eventgrid" -package-version: "5.2.1" +package-version: "5.3.0" title: GeneratedClient description: EventGrid Client generate-metadata: false diff --git a/sdk/eventgrid/eventgrid/tests.yml b/sdk/eventgrid/eventgrid/tests.yml index 5c802ace4c1c..92a319dbb68a 100644 --- a/sdk/eventgrid/eventgrid/tests.yml +++ b/sdk/eventgrid/eventgrid/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/eventgrid" ServiceDirectory: eventgrid diff --git a/sdk/eventhub/event-hubs/package.json b/sdk/eventhub/event-hubs/package.json index 9def17528196..d45f75cd7acf 100644 --- a/sdk/eventhub/event-hubs/package.json +++ b/sdk/eventhub/event-hubs/package.json @@ -52,7 +52,7 @@ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate-certs": "node ./scripts/generateCerts.js", "integration-test:browser": "cross-env TEST_TARGET=live DISABLE_MULTI_VERSION_TESTING=true karma start --single-run", - "integration-test:node": "cross-env TEST_TARGET=live DISABLE_MULTI_VERSION_TESTING=true dev-tool run test:node-js-input --no-test-proxy=true --use-esm-workaround=true -- --timeout 600000 \"dist-esm/test/internal/*.spec.js\" \"dist-esm/test/public/*.spec.js\" \"dist-esm/test/public/**/*.spec.js\" \"dist-esm/test/internal/**/*.spec.js\"", + "integration-test:node": "cross-env TEST_TARGET=live DISABLE_MULTI_VERSION_TESTING=true dev-tool run test:node-js-input --no-test-proxy=true -- --timeout 600000 \"dist-esm/test/internal/*.spec.js\" \"dist-esm/test/public/*.spec.js\" \"dist-esm/test/public/**/*.spec.js\" \"dist-esm/test/internal/**/*.spec.js\"", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js", diff --git a/sdk/eventhub/event-hubs/tests.yml b/sdk/eventhub/event-hubs/tests.yml index 0c6e35938d19..80a237ff4728 100644 --- a/sdk/eventhub/event-hubs/tests.yml +++ b/sdk/eventhub/event-hubs/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/event-hubs" ServiceDirectory: eventhub diff --git a/sdk/eventhub/eventhubs-checkpointstore-blob/tests.yml b/sdk/eventhub/eventhubs-checkpointstore-blob/tests.yml index 3bf7161497d4..7da912e12354 100644 --- a/sdk/eventhub/eventhubs-checkpointstore-blob/tests.yml +++ b/sdk/eventhub/eventhubs-checkpointstore-blob/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/eventhubs-checkpointstore-blob" ServiceDirectory: eventhub diff --git a/sdk/eventhub/eventhubs-checkpointstore-table/tests.yml b/sdk/eventhub/eventhubs-checkpointstore-table/tests.yml index a12b37fddfc0..07f8c698970d 100644 --- a/sdk/eventhub/eventhubs-checkpointstore-table/tests.yml +++ b/sdk/eventhub/eventhubs-checkpointstore-table/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/eventhubs-checkpointstore-table" ServiceDirectory: eventhub diff --git a/sdk/formrecognizer/ai-form-recognizer/tests.yml b/sdk/formrecognizer/ai-form-recognizer/tests.yml index d8238dc886b1..6b7d993e8824 100644 --- a/sdk/formrecognizer/ai-form-recognizer/tests.yml +++ b/sdk/formrecognizer/ai-form-recognizer/tests.yml @@ -10,8 +10,8 @@ parameters: trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/ai-form-recognizer" ServiceDirectory: formrecognizer diff --git a/sdk/identity/identity/.gitignore b/sdk/identity/identity/.gitignore index 3d6981104f4d..ba21a232df7d 100644 --- a/sdk/identity/identity/.gitignore +++ b/sdk/identity/identity/.gitignore @@ -1,3 +1,5 @@ src/**/*.js +integration/AzureFunctions/app.zip +integration/AzureWebApps/.azure/ !assets/fake-cert.pem !assets/fake-cert-password.pem diff --git a/sdk/identity/identity/integration/AzureFunctions/RunTest/function.json b/sdk/identity/identity/integration/AzureFunctions/RunTest/function.json new file mode 100644 index 000000000000..f79d5fe8bf33 --- /dev/null +++ b/sdk/identity/identity/integration/AzureFunctions/RunTest/function.json @@ -0,0 +1,17 @@ +{ + "bindings": [ + { + "type": "httpTrigger", + "direction": "in", + "authLevel": "anonymous", + "methods": ["get"], + "name": "req" + }, + { + "type": "http", + "direction": "out", + "name": "res" + } + ], + "scriptFile": "./dist/authenticateToStorageFunction.js" +} diff --git a/sdk/identity/identity/integration/AzureFunctions/RunTest/host.json b/sdk/identity/identity/integration/AzureFunctions/RunTest/host.json new file mode 100644 index 000000000000..9abc15037e03 --- /dev/null +++ b/sdk/identity/identity/integration/AzureFunctions/RunTest/host.json @@ -0,0 +1,15 @@ +{ + "version": "2.0", + "logging": { + "applicationInsights": { + "samplingSettings": { + "isEnabled": true, + "excludedTypes": "Request" + } + } + }, + "extensionBundle": { + "id": "Microsoft.Azure.Functions.ExtensionBundle", + "version": "[4.0.0, 5.0.0)" + } + } \ No newline at end of file diff --git a/sdk/identity/identity/integration/AzureFunctions/RunTest/local.settings.json b/sdk/identity/identity/integration/AzureFunctions/RunTest/local.settings.json new file mode 100644 index 000000000000..8cba42ef2749 --- /dev/null +++ b/sdk/identity/identity/integration/AzureFunctions/RunTest/local.settings.json @@ -0,0 +1,7 @@ +{ + "IsEncrypted": false, + "Values": { + "FUNCTIONS_WORKER_RUNTIME": "node" + }, + "ConnectionStrings": {} + } \ No newline at end of file diff --git a/sdk/identity/identity/integration/AzureFunctions/RunTest/package.json b/sdk/identity/identity/integration/AzureFunctions/RunTest/package.json new file mode 100644 index 000000000000..0242646db4ff --- /dev/null +++ b/sdk/identity/identity/integration/AzureFunctions/RunTest/package.json @@ -0,0 +1,29 @@ +{ + "name": "@azure-samples/azure-function-test", + "version": "1.0.0", + "description": "", + "main": "dist/authenticateToStorageFunction.js", + "scripts": { + "build": "tsc", + "build:production": "npm run prestart && npm prune --production", + "clean": "rimraf --glob dist dist-*", + "prestart": "npm run build:production && func extensions install", + "start:host": "func start --typescript", + "start": "npm-run-all --parallel start:host watch", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC", + "dependencies": { + "@azure/identity": "^4.0.0", + "@azure/storage-blob": "^12.17.0", + "@azure/functions": "^4.1.0", + "applicationinsights": "^2.9.2", + "tslib": "^1.10.0" + }, + "devDependencies": { + "npm-run-all": "^4.1.5", + "typescript": "^5.3.3", + "rimraf": "^5.0.5" + } +} diff --git a/sdk/identity/identity/integration/AzureFunctions/RunTest/src/functions/authenticateToStorageFunction.ts b/sdk/identity/identity/integration/AzureFunctions/RunTest/src/functions/authenticateToStorageFunction.ts new file mode 100644 index 000000000000..de747a680dac --- /dev/null +++ b/sdk/identity/identity/integration/AzureFunctions/RunTest/src/functions/authenticateToStorageFunction.ts @@ -0,0 +1,61 @@ + +import { BlobServiceClient } from "@azure/storage-blob"; +import { ManagedIdentityCredential } from "@azure/identity"; +import { app, HttpRequest, HttpResponseInit, InvocationContext } from "@azure/functions"; + +export async function authenticateStorage(request: HttpRequest, context: InvocationContext): Promise { + try { + context.log('Http function was triggered.'); + //parse the request body + await authToStorageHelper(context); + + return { + // status: 200, /* Defaults to 200 */ + body: "Successfully authenticated with storage", + }; + } catch (error: any) { + context.log(error); + return { + status: 400, + body: error, + }; + } +}; + +app.http('authenticateStorage', { + methods: ['GET', 'POST'], + authLevel: "anonymous", + handler: authenticateStorage +}); + +async function authToStorageHelper(context: InvocationContext): Promise { + // This will use the system managed identity + const credential1 = new ManagedIdentityCredential(); + + const clientId = process.env.IDENTITY_USER_DEFINED_IDENTITY_CLIENT_ID!; + const account1 = process.env.IDENTITY_STORAGE_NAME_1; + const account2 = process.env.IDENTITY_STORAGE_NAME_2; + + const credential2 = new ManagedIdentityCredential({ "clientId": clientId }); + const client1 = new BlobServiceClient(`https://${account1}.blob.core.windows.net`, credential1); + const client2 = new BlobServiceClient(`https://${account2}.blob.core.windows.net`, credential2); + context.log("Getting containers for storage account client: system managed identity") + let iter = client1.listContainers(); + let i = 1; + context.log("Client with system assigned identity"); + let containerItem = await iter.next(); + while (!containerItem.done) { + context.log(`Container ${i++}: ${containerItem.value.name}`); + containerItem = await iter.next(); + } + + context.log("Getting properties for storage account client: user assigned managed identity") + iter = client2.listContainers(); + context.log("Client with user assigned identity"); + containerItem = await iter.next(); + while (!containerItem.done) { + context.log(`Container ${i++}: ${containerItem.value.name}`); + containerItem = await iter.next(); + } + +} diff --git a/sdk/identity/identity/integration/AzureFunctions/RunTest/tsconfig.json b/sdk/identity/identity/integration/AzureFunctions/RunTest/tsconfig.json new file mode 100644 index 000000000000..62ac3de554d7 --- /dev/null +++ b/sdk/identity/identity/integration/AzureFunctions/RunTest/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "commonjs", + "moduleResolution": "node", + "resolveJsonModule": true, + "esModuleInterop": true, + "strict": true, + "alwaysStrict": true, + "outDir": "dist", + }, + "include": ["src"] + } + \ No newline at end of file diff --git a/sdk/identity/identity/integration/AzureKubernetes/Dockerfile b/sdk/identity/identity/integration/AzureKubernetes/Dockerfile new file mode 100644 index 000000000000..143b832a5485 --- /dev/null +++ b/sdk/identity/identity/integration/AzureKubernetes/Dockerfile @@ -0,0 +1,20 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +ARG NODE_VERSION=20 + +# docker can't tell when the repo has changed and will therefore cache this layer +# internal users should provide MCR registry to build via 'docker build . --build-arg REGISTRY="mcr.microsoft.com/mirror/docker/library/"' +# public OSS users should simply leave this argument blank or ignore its presence entirely +ARG REGISTRY="" + +FROM ${REGISTRY}node:${NODE_VERSION}-alpine as repo +RUN apk --no-cache add git +RUN git clone https://github.com/azure/azure-sdk-for-js --single-branch --branch main --depth 1 /azure-sdk-for-js + +WORKDIR /azure-sdk-for-js/sdk/identity/identity/test/integration/AzureKubernetes +RUN npm install +RUN npm install -g typescript +RUN tsc -p . +CMD ["node", "index"] diff --git a/sdk/identity/identity/integration/AzureKubernetes/package.json b/sdk/identity/identity/integration/AzureKubernetes/package.json new file mode 100644 index 000000000000..ba94e773afbe --- /dev/null +++ b/sdk/identity/identity/integration/AzureKubernetes/package.json @@ -0,0 +1,22 @@ +{ + "name": "@azure-samples/azure-kubernetes-test", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "build": "tsc", + "start": "ts-node src/index.ts", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC", + "dependencies": { + "@azure/identity": "^4.0.0", + "@azure/storage-blob": "^12.17.0", + "tslib": "^1.10.0", + "ts-node": "10.9.2" + }, + "devDependencies": { + "typescript": "^5.3.3" + } + } diff --git a/sdk/identity/identity/integration/AzureKubernetes/src/index.ts b/sdk/identity/identity/integration/AzureKubernetes/src/index.ts new file mode 100644 index 000000000000..a35f0bb35d86 --- /dev/null +++ b/sdk/identity/identity/integration/AzureKubernetes/src/index.ts @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { ManagedIdentityCredential } from "@azure/identity"; +import { BlobServiceClient } from "@azure/storage-blob"; +import * as dotenv from "dotenv"; +// Initialize the environment +dotenv.config(); + +async function main(): Promise { + let systemSuccessMessage = ""; + try{ + const account1 = process.env.IDENTITY_STORAGE_NAME_1; + const account2 = process.env.IDENTITY_STORAGE_NAME_2; + const credentialSystemAssigned = new ManagedIdentityCredential(); + const credentialUserAssigned = new ManagedIdentityCredential({clientId: process.env.IDENTITY_USER_DEFINED_IDENTITY_CLIENT_ID}) + const client1 = new BlobServiceClient(`https://${account1}.blob.core.windows.net`, credentialSystemAssigned); + const client2 = new BlobServiceClient(`https://${account2}.blob.core.windows.net`, credentialUserAssigned); + let iter = client1.listContainers(); + + let i = 1; + console.log("Client with system assigned identity"); + let containerItem = await iter.next(); + while (!containerItem.done) { + console.log(`Container ${i++}: ${containerItem.value.name}`); + containerItem = await iter.next(); + } + systemSuccessMessage = "Successfully acquired token with system-assigned ManagedIdentityCredential" + console.log("Client with user assigned identity") + iter = client2.listContainers(); + i = 1; + containerItem = await iter.next(); + while (!containerItem.done) { + console.log(`Container ${i++}: ${containerItem.value.name}`); + containerItem = await iter.next(); + } + console.log("Successfully acquired tokens with async ManagedIdentityCredential") + } + catch(e){ + console.error(`${e} \n ${systemSuccessMessage}`); + } + } + + main().catch((err) => { + console.log("error code: ", err.code); + console.log("error message: ", err.message); + console.log("error stack: ", err.stack); + }); diff --git a/sdk/identity/identity/integration/AzureKubernetes/tsconfig.json b/sdk/identity/identity/integration/AzureKubernetes/tsconfig.json new file mode 100644 index 000000000000..48d7948cbd24 --- /dev/null +++ b/sdk/identity/identity/integration/AzureKubernetes/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "commonjs", + "moduleResolution": "node", + "resolveJsonModule": true, + "esModuleInterop": true, + "strict": true, + "alwaysStrict": true, + "outDir": "dist", + "rootDir": "." + } + } \ No newline at end of file diff --git a/sdk/identity/identity/integration/AzureWebApps/package.json b/sdk/identity/identity/integration/AzureWebApps/package.json new file mode 100644 index 000000000000..8cce2f60ae33 --- /dev/null +++ b/sdk/identity/identity/integration/AzureWebApps/package.json @@ -0,0 +1,27 @@ +{ + "name": "@azure-samples/azure-web-apps-test", + "version": "1.0.0", + "description": "", + "main": "dist/index.js", + "scripts": { + "build": "tsc", + "start": "node dist/index.js", + "clean": "rimraf --glob dist dist-*", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC", + "dependencies": { + "@azure/identity": "^4.0.0", + "@azure/storage-blob": "^12.17.0", + "express": "^4.18.2", + "tslib": "^1.10.0" + }, + "devDependencies": { + "npm-run-all": "^4.1.5", + "typescript": "^5.3.3", + "@types/express": "^4.17.21", + "dotenv": "16.4.4", + "rimraf": "^5.0.5" + } +} diff --git a/sdk/identity/identity/integration/AzureWebApps/src/index.ts b/sdk/identity/identity/integration/AzureWebApps/src/index.ts new file mode 100644 index 000000000000..235c7b4e6345 --- /dev/null +++ b/sdk/identity/identity/integration/AzureWebApps/src/index.ts @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import express from "express"; +import { ManagedIdentityCredential } from "@azure/identity"; +import { BlobServiceClient } from "@azure/storage-blob"; +import dotenv from "dotenv"; +// Initialize the environment +dotenv.config(); +const app = express(); + +app.get("/", (req: express.Request, res: express.Response) => { + res.send("Ok") +}) + +app.get("/sync", async (req: express.Request, res: express.Response) => { + let systemSuccessMessage = ""; + try { + const account1 = process.env.IDENTITY_STORAGE_NAME_1; + const credentialSystemAssigned = new ManagedIdentityCredential(); + const client1 = new BlobServiceClient(`https://${account1}.blob.core.windows.net`, credentialSystemAssigned); + let iter = client1.listContainers(); + let i = 0; + console.log("Client with system assigned identity"); + let containerItem = await iter.next(); + while (!containerItem.done) { + console.log(`Container ${i++}: ${containerItem.value.name}`); + containerItem = await iter.next(); + } + console.log("Client with system assigned identity"); + console.log("Properties of the 1st client =", iter); + systemSuccessMessage = "Successfully acquired token with system-assigned ManagedIdentityCredential" + console.log(systemSuccessMessage); + } + catch (e) { + console.error(e); + } + try { + const account2 = process.env.IDENTITY_STORAGE_NAME_2; + const credentialUserAssigned = new ManagedIdentityCredential({ clientId: process.env.IDENTITY_USER_DEFINED_IDENTITY_CLIENT_ID }) + const client2 = new BlobServiceClient(`https://${account2}.blob.core.windows.net`, credentialUserAssigned); + let iter = client2.listContainers(); + let i = 0; + console.log("Client with user assigned identity") + let containerItem = await iter.next(); + while (!containerItem.done) { + console.log(`Container ${i++}: ${containerItem.value.name}`); + containerItem = await iter.next(); + } + res.status(200).send("Successfully acquired tokens with async ManagedIdentityCredential") + } + catch (e) { + console.error(e); + res.status(500).send(`${e} \n ${systemSuccessMessage}`); + } +}) + +app.listen(8080, () => { + console.log(`Authorization code redirect server listening on port 8080`); +}); diff --git a/sdk/identity/identity/integration/AzureWebApps/tsconfig.json b/sdk/identity/identity/integration/AzureWebApps/tsconfig.json new file mode 100644 index 000000000000..d6dc70359561 --- /dev/null +++ b/sdk/identity/identity/integration/AzureWebApps/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "commonjs", + "moduleResolution": "node", + "resolveJsonModule": true, + "esModuleInterop": true, + "strict": true, + "alwaysStrict": true, + "outDir": "dist", + }, + "include": ["src"] + } \ No newline at end of file diff --git a/sdk/identity/identity/package.json b/sdk/identity/identity/package.json index de3eac1d4112..e244d7c21828 100644 --- a/sdk/identity/identity/package.json +++ b/sdk/identity/identity/package.json @@ -55,7 +55,7 @@ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", - "integration-test:node": "dev-tool run test:node-js-input -- --timeout 180000 'dist-esm/test/public/node/*.spec.js' 'dist-esm/test/internal/node/*.spec.js'", + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 180000 'test/public/node/*.spec.ts' 'test/internal/node/*.spec.ts' 'test/integration/*.spec.ts'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json src test --ext .ts", diff --git a/sdk/identity/identity/src/msal/nodeFlows/msalClient.ts b/sdk/identity/identity/src/msal/nodeFlows/msalClient.ts index 20b394e697cf..2fdb72fed08e 100644 --- a/sdk/identity/identity/src/msal/nodeFlows/msalClient.ts +++ b/sdk/identity/identity/src/msal/nodeFlows/msalClient.ts @@ -4,7 +4,7 @@ import * as msal from "@azure/msal-node"; import { AccessToken, GetTokenOptions } from "@azure/core-auth"; -import { PluginConfiguration, generatePluginConfiguration } from "./msalPlugins"; +import { PluginConfiguration, msalPlugins } from "./msalPlugins"; import { credentialLogger, formatSuccess } from "../../util/logging"; import { defaultLoggerCallback, @@ -141,7 +141,7 @@ export function createMsalClient( cachedAccount: createMsalClientOptions.authenticationRecord ? publicToMsal(createMsalClientOptions.authenticationRecord) : null, - pluginConfiguration: generatePluginConfiguration(createMsalClientOptions), + pluginConfiguration: msalPlugins.generatePluginConfiguration(createMsalClientOptions), }; const confidentialApps: Map = new Map(); diff --git a/sdk/identity/identity/src/msal/nodeFlows/msalPlugins.ts b/sdk/identity/identity/src/msal/nodeFlows/msalPlugins.ts index c5d2145afb42..099f7d732058 100644 --- a/sdk/identity/identity/src/msal/nodeFlows/msalPlugins.ts +++ b/sdk/identity/identity/src/msal/nodeFlows/msalPlugins.ts @@ -82,7 +82,7 @@ export const msalNodeFlowNativeBrokerControl: NativeBrokerPluginControl = { * @param options - options for creating the MSAL client * @returns plugin configuration */ -export function generatePluginConfiguration(options: MsalClientOptions): PluginConfiguration { +function generatePluginConfiguration(options: MsalClientOptions): PluginConfiguration { const config: PluginConfiguration = { cache: {}, broker: { @@ -130,3 +130,10 @@ export function generatePluginConfiguration(options: MsalClientOptions): PluginC return config; } + +/** + * Wraps generatePluginConfiguration as a writeable property for test stubbing purposes. + */ +export const msalPlugins = { + generatePluginConfiguration, +}; diff --git a/sdk/identity/identity/test-resources.bicep b/sdk/identity/identity/test-resources.bicep deleted file mode 100644 index b3490d3b50af..000000000000 --- a/sdk/identity/identity/test-resources.bicep +++ /dev/null @@ -1 +0,0 @@ -param baseName string diff --git a/sdk/identity/identity/test/integration/azureFunctionsTest.spec.ts b/sdk/identity/identity/test/integration/azureFunctionsTest.spec.ts new file mode 100644 index 000000000000..a989f0a973d6 --- /dev/null +++ b/sdk/identity/identity/test/integration/azureFunctionsTest.spec.ts @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { ServiceClient } from "@azure/core-client"; +import { createPipelineRequest } from "@azure/core-rest-pipeline"; +import { assert } from "chai"; +import { Context } from "mocha"; +import { isLiveMode } from "@azure-tools/test-recorder"; + +describe("AzureFunctions Integration test", function () { + it("test the Azure Functions endpoint where the sync MI credential is used.", async function (this: Context) { + if (!isLiveMode()) { + this.skip(); + } + const baseUri = baseUrl(); + const client = new ServiceClient({ baseUri: baseUri }); + const pipelineRequest = createPipelineRequest({ + url: baseUri, + method: "GET", + }); + const response = await client.sendRequest(pipelineRequest); + console.log(response.bodyAsText); + assert.equal(response.status, 200, `Expected status 200. Received ${response.status}`); + assert.equal( + response.bodyAsText, + "Successfully authenticated with storage", + `Expected message: "Successfully authenticated with storage". Received message: ${response.bodyAsText}`, + ); + }); +}); + +function baseUrl(): string { + const functionName = process.env.IDENTITY_FUNCTION_NAME; + if (!functionName) { + console.log("IDENTITY_FUNCTION_NAME is not set"); + throw new Error("IDENTITY_FUNCTION_NAME is not set"); + } + return `https://${functionName}.azurewebsites.net/api/authenticateStorage`; +} diff --git a/sdk/identity/identity/test/integration/azureWebAppsTest.spec.ts b/sdk/identity/identity/test/integration/azureWebAppsTest.spec.ts new file mode 100644 index 000000000000..ce77e9ddd09f --- /dev/null +++ b/sdk/identity/identity/test/integration/azureWebAppsTest.spec.ts @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { ServiceClient } from "@azure/core-client"; +import { createPipelineRequest } from "@azure/core-rest-pipeline"; +import { assert } from "chai"; +import { Context } from "mocha"; +import { isLiveMode } from "@azure-tools/test-recorder"; + +describe("AzureWebApps Integration test", function () { + it("test the Azure Web Apps endpoint where the MI credential is used.", async function (this: Context) { + if (!isLiveMode()) { + this.skip(); + } + const baseUri = baseUrl(); + const client = new ServiceClient({ baseUri: baseUri }); + const pipelineRequest = createPipelineRequest({ + url: baseUri, + method: "GET", + }); + const response = await client.sendRequest(pipelineRequest); + console.log(response.bodyAsText); + assert.equal(response.status, 200, `Expected status 200. Received ${response.status}`); + }); +}); + +function baseUrl(): string { + const webAppName = process.env.IDENTITY_WEBAPP_NAME; + if (!webAppName) { + console.log("IDENTITY_WEBAPP_NAME is not set"); + throw new Error("IDENTITY_WEBAPP_NAME is not set"); + } + return `https://${webAppName}.azurewebsites.net/sync`; +} diff --git a/sdk/identity/identity/test/internal/node/msalClient.spec.ts b/sdk/identity/identity/test/internal/node/msalClient.spec.ts index ba03e6aad1e0..c4ad622eac28 100644 --- a/sdk/identity/identity/test/internal/node/msalClient.spec.ts +++ b/sdk/identity/identity/test/internal/node/msalClient.spec.ts @@ -2,7 +2,6 @@ // Licensed under the MIT license. import * as msalClient from "../../../src/msal/nodeFlows/msalClient"; -import * as msalPlugins from "../../../src/msal/nodeFlows/msalPlugins"; import { AuthenticationResult, ConfidentialClientApplication } from "@azure/msal-node"; import { MsalTestCleanup, msalNodeTestSetup } from "../../node/msalNodeTestSetup"; @@ -13,6 +12,7 @@ import { AuthenticationRequiredError } from "../../../src/errors"; import { IdentityClient } from "../../../src/client/identityClient"; import { assert } from "@azure/test-utils"; import { credentialLogger } from "../../../src/util/logging"; +import { msalPlugins } from "../../../src/msal/nodeFlows/msalPlugins"; import sinon from "sinon"; describe("MsalClient", function () { diff --git a/sdk/identity/identity/test/internal/node/msalPlugins.spec.ts b/sdk/identity/identity/test/internal/node/msalPlugins.spec.ts index edeb73fcb2d1..cf1de97d8da3 100644 --- a/sdk/identity/identity/test/internal/node/msalPlugins.spec.ts +++ b/sdk/identity/identity/test/internal/node/msalPlugins.spec.ts @@ -4,9 +4,9 @@ import { ICachePlugin, INativeBrokerPlugin } from "@azure/msal-node"; import { PluginConfiguration, - generatePluginConfiguration, msalNodeFlowCacheControl, msalNodeFlowNativeBrokerControl, + msalPlugins, } from "../../../src/msal/nodeFlows/msalPlugins"; import { MsalClientOptions } from "../../../src/msal/nodeFlows/msalClient"; @@ -21,7 +21,7 @@ describe("#generatePluginConfiguration", function () { }); it("returns a PluginConfiguration with default values", function () { - const result = generatePluginConfiguration(options); + const result = msalPlugins.generatePluginConfiguration(options); const expected: PluginConfiguration = { cache: {}, broker: { @@ -40,7 +40,7 @@ describe("#generatePluginConfiguration", function () { it("should throw an error if persistence provider is not configured", () => { options.tokenCachePersistenceOptions = { enabled: true }; assert.throws( - () => generatePluginConfiguration(options), + () => msalPlugins.generatePluginConfiguration(options), /Persistent token caching was requested/, ); }); @@ -54,7 +54,7 @@ describe("#generatePluginConfiguration", function () { }; const pluginProvider: () => Promise = () => Promise.resolve(cachePlugin); msalNodeFlowCacheControl.setPersistence(pluginProvider); - const result = generatePluginConfiguration(options); + const result = msalPlugins.generatePluginConfiguration(options); assert.exists(result.cache.cachePlugin); const plugin = await result.cache.cachePlugin; assert.strictEqual(plugin, cachePlugin); @@ -69,7 +69,7 @@ describe("#generatePluginConfiguration", function () { }; const pluginProvider: () => Promise = () => Promise.resolve(cachePluginCae); msalNodeFlowCacheControl.setPersistence(pluginProvider); - const result = generatePluginConfiguration(options); + const result = msalPlugins.generatePluginConfiguration(options); assert.exists(result.cache.cachePluginCae); const plugin = await result.cache.cachePluginCae; assert.strictEqual(plugin, cachePluginCae); @@ -86,7 +86,7 @@ describe("#generatePluginConfiguration", function () { it("throws an error if native broker is not configured", () => { options.brokerOptions = { enabled: true, parentWindowHandle }; assert.throws( - () => generatePluginConfiguration(options), + () => msalPlugins.generatePluginConfiguration(options), /Broker for WAM was requested to be enabled/, ); }); @@ -100,7 +100,7 @@ describe("#generatePluginConfiguration", function () { const nativeBrokerPlugin: INativeBrokerPlugin = {} as INativeBrokerPlugin; msalNodeFlowNativeBrokerControl.setNativeBroker(nativeBrokerPlugin); - const result = generatePluginConfiguration(options); + const result = msalPlugins.generatePluginConfiguration(options); assert.strictEqual(result.broker.nativeBrokerPlugin, nativeBrokerPlugin); assert.strictEqual(result.broker.enableMsaPassthrough, true); assert.strictEqual(result.broker.parentWindowHandle, parentWindowHandle); diff --git a/sdk/identity/identity/tests.yml b/sdk/identity/identity/tests.yml index 6f729796cd1e..e9f7a3176445 100644 --- a/sdk/identity/identity/tests.yml +++ b/sdk/identity/identity/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/identity" ServiceDirectory: identity diff --git a/sdk/identity/identity/tsconfig.json b/sdk/identity/identity/tsconfig.json index dc4de9e400d1..ff9ab311ff4e 100644 --- a/sdk/identity/identity/tsconfig.json +++ b/sdk/identity/identity/tsconfig.json @@ -10,5 +10,5 @@ } }, "include": ["src/**/*", "test/**/*", "samples-dev/**/*.ts"], - "exclude": ["test/manual*/**/*", "node_modules"] + "exclude": ["test/manual*/**/*", "integration/**", "node_modules"] } diff --git a/sdk/identity/test-resources-post.ps1 b/sdk/identity/test-resources-post.ps1 new file mode 100644 index 000000000000..f0108f4fc09d --- /dev/null +++ b/sdk/identity/test-resources-post.ps1 @@ -0,0 +1,139 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. + +# IMPORTANT: Do not invoke this file directly. Please instead run eng/New-TestResources.ps1 from the repository root. + +param ( + [Parameter(ValueFromRemainingArguments = $true)] + $RemainingArguments, + + [Parameter()] + [hashtable] $DeploymentOutputs +) + +# If not Linux, skip this script. +# if ($isLinux -ne "Linux") { +# Write-Host "Skipping post-deployment because not running on Linux." +# return +# } + +$ErrorActionPreference = 'Continue' +$PSNativeCommandUseErrorActionPreference = $true + +$webappRoot = "$PSScriptRoot/identity/integration" | Resolve-Path +$workingFolder = $webappRoot; + +Write-Host "Working directory: $workingFolder" + +az login --service-principal -u $DeploymentOutputs['IDENTITY_CLIENT_ID'] -p $DeploymentOutputs['IDENTITY_CLIENT_SECRET'] --tenant $DeploymentOutputs['IDENTITY_TENANT_ID'] +az account set --subscription $DeploymentOutputs['IDENTITY_SUBSCRIPTION_ID'] + +# Azure Functions app deployment +Write-Host "Building the code for functions app" +Push-Location "$webappRoot/AzureFunctions/RunTest" +npm install +npm run build +Pop-Location +Write-Host "starting azure functions deployment" +Compress-Archive -Path "$workingFolder/AzureFunctions/RunTest/*" -DestinationPath "$workingFolder/AzureFunctions/app.zip" -Force +az functionapp deployment source config-zip -g $DeploymentOutputs['IDENTITY_RESOURCE_GROUP'] -n $DeploymentOutputs['IDENTITY_FUNCTION_NAME'] --src "$workingFolder/AzureFunctions/app.zip" +Remove-Item -Force "$workingFolder/AzureFunctions/app.zip" + +Write-Host "Deployed function app" +# $image = "$loginServer/identity-functions-test-image" +# docker build --no-cache -t $image "$workingFolder/AzureFunctions" +# docker push $image + +# az functionapp config container set -g $DeploymentOutputs['IDENTITY_RESOURCE_GROUP'] -n $DeploymentOutputs['IDENTITY_FUNCTION_NAME'] -i $image -r $loginServer -p $(az acr credential show -n $DeploymentOutputs['IDENTITY_ACR_NAME'] --query "passwords[0].value" -o tsv) -u $(az acr credential show -n $DeploymentOutputs['IDENTITY_ACR_NAME'] --query username -o tsv) + +# Azure Web Apps app deployment +# Push-Location "$webappRoot/AzureWebApps" +# npm install +# npm run build +# Compress-Archive -Path "$workingFolder/AzureWebApps/*" -DestinationPath "$workingFolder/AzureWebApps/app.zip" -Force +# az webapp deploy --resource-group $DeploymentOutputs['IDENTITY_RESOURCE_GROUP'] --name $DeploymentOutputs['IDENTITY_WEBAPP_NAME'] --src-path "$workingFolder/AzureWebApps/app.zip" --async true +# Remove-Item -Force "$workingFolder/AzureWebApps/app.zip" +# Pop-Location + +Push-Location "$webappRoot/AzureWebApps" +npm install +npm run build +az webapp up --resource-group $DeploymentOutputs['IDENTITY_RESOURCE_GROUP'] --name $DeploymentOutputs['IDENTITY_WEBAPP_NAME'] --plan $DeploymentOutputs['IDENTITY_WEBAPP_PLAN'] --runtime NODE:18-lts +Pop-Location + +Write-Host "Deployed webapp" +Write-Host "Sleeping for a bit to ensure logs is ready." +Start-Sleep -Seconds 300 + +# Write-Host "Sleeping for a bit to ensure container registry is ready." +# Start-Sleep -Seconds 20 +# Write-Host "trying to login to acr" +# az acr login -n $DeploymentOutputs['IDENTITY_ACR_NAME'] +# $loginServer = az acr show -n $DeploymentOutputs['IDENTITY_ACR_NAME'] --query loginServer -o tsv + +# # Azure Kubernetes Service deployment +# $image = "$loginServer/identity-aks-test-image" +# docker build --no-cache -t $image "$workingFolder/AzureKubernetes" +# docker push $image + +# Attach the ACR to the AKS cluster +# Write-Host "Attaching ACR to AKS cluster" +# az aks update -n $DeploymentOutputs['IDENTITY_AKS_CLUSTER_NAME'] -g $DeploymentOutputs['IDENTITY_RESOURCE_GROUP'] --attach-acr $DeploymentOutputs['IDENTITY_ACR_NAME'] + +# $MIClientId = $DeploymentOutputs['IDENTITY_USER_DEFINED_IDENTITY_CLIENT_ID'] +# $MIName = $DeploymentOutputs['IDENTITY_USER_DEFINED_IDENTITY_NAME'] +# $SaAccountName = 'workload-identity-sa' +# $PodName = $DeploymentOutputs['IDENTITY_AKS_POD_NAME'] +# $storageName = $DeploymentOutputs['IDENTITY_STORAGE_NAME_2'] + +# # Get the aks cluster credentials +# Write-Host "Getting AKS credentials" +# az aks get-credentials --resource-group $DeploymentOutputs['IDENTITY_RESOURCE_GROUP'] --name $DeploymentOutputs['IDENTITY_AKS_CLUSTER_NAME'] + +# #Get the aks cluster OIDC issuer +# Write-Host "Getting AKS OIDC issuer" +# $AKS_OIDC_ISSUER = az aks show -n $DeploymentOutputs['IDENTITY_AKS_CLUSTER_NAME'] -g $DeploymentOutputs['IDENTITY_RESOURCE_GROUP'] --query "oidcIssuerProfile.issuerUrl" -otsv + +# # Create the federated identity +# Write-Host "Creating federated identity" +# az identity federated-credential create --name $MIName --identity-name $MIName --resource-group $DeploymentOutputs['IDENTITY_RESOURCE_GROUP'] --issuer $AKS_OIDC_ISSUER --subject system:serviceaccount:default:workload-identity-sa + +# # Build the kubernetes deployment yaml +# $kubeConfig = @" +# apiVersion: v1 +# kind: ServiceAccount +# metadata: +# annotations: +# azure.workload.identity/client-id: $MIClientId +# name: $SaAccountName +# namespace: default +# --- +# apiVersion: v1 +# kind: Pod +# metadata: +# name: $PodName +# namespace: default +# labels: +# azure.workload.identity/use: "true" +# spec: +# serviceAccountName: $SaAccountName +# containers: +# - name: $PodName +# image: $image +# env: +# - name: IDENTITY_STORAGE_NAME +# value: "$StorageName" +# ports: +# - containerPort: 80 +# nodeSelector: +# kubernetes.io/os: linux +# "@ + +# Set-Content -Path "$workingFolder/kubeconfig.yaml" -Value $kubeConfig +# Write-Host "Created kubeconfig.yaml with contents:" +# Write-Host $kubeConfig + +# # Apply the config +# kubectl apply -f "$workingFolder/kubeconfig.yaml" --overwrite=true +# Write-Host "Applied kubeconfig.yaml" +# az logout diff --git a/sdk/identity/test-resources-pre.ps1 b/sdk/identity/test-resources-pre.ps1 new file mode 100644 index 000000000000..cb1f6dc12761 --- /dev/null +++ b/sdk/identity/test-resources-pre.ps1 @@ -0,0 +1,59 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. + +# IMPORTANT: Do not invoke this file directly. Please instead run eng/New-TestResources.ps1 from the repository root. +[CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'Medium')] +param ( + # Captures any arguments from eng/New-TestResources.ps1 not declared here (no parameter errors). + [Parameter(ValueFromRemainingArguments = $true)] + $RemainingArguments, + + [Parameter()] + [string] $Location = '', + + [Parameter()] + [ValidatePattern('^[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$')] + [string] $TestApplicationId, + + [Parameter()] + [string] $TestApplicationSecret, + + [Parameter()] + [ValidatePattern('^[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$')] + [string] $SubscriptionId, + + [Parameter(ParameterSetName = 'Provisioner', Mandatory = $true)] + [ValidateNotNullOrEmpty()] + [string] $TenantId, + + [Parameter()] + [switch] $CI = ($null -ne $env:SYSTEM_TEAMPROJECTID) + +) + +Import-Module -Name $PSScriptRoot/../../eng/common/scripts/X509Certificate2 -Verbose + +ssh-keygen -t rsa -b 4096 -f $PSScriptRoot/sshKey -N '' -C '' +$sshKey = Get-Content $PSScriptRoot/sshKey.pub + +$templateFileParameters['sshPubKey'] = $sshKey + +Write-Host "Sleeping for a bit to ensure service principal is ready." +Start-Sleep -s 45 + +if ($CI) { + # Install this specific version of the Azure CLI to avoid https://github.com/Azure/azure-cli/issues/28358. + pip install azure-cli=="2.56.0" +} +$az_version = az version +Write-Host "Azure CLI version: $az_version" + +az login --service-principal -u $TestApplicationId -p $TestApplicationSecret --tenant $TenantId +az account set --subscription $SubscriptionId +$versions = az aks get-versions -l westus -o json | ConvertFrom-Json +Write-Host "AKS versions: $($versions | ConvertTo-Json -Depth 100)" +$patchVersions = $versions.values | Where-Object { $_.isPreview -eq $null } | Select-Object -ExpandProperty patchVersions +Write-Host "AKS patch versions: $($patchVersions | ConvertTo-Json -Depth 100)" +$latestAksVersion = $patchVersions | Get-Member -MemberType NoteProperty | Select-Object -ExpandProperty Name | Sort-Object -Descending | Select-Object -First 1 +Write-Host "Latest AKS version: $latestAksVersion" +$templateFileParameters['latestAksVersion'] = $latestAksVersion diff --git a/sdk/identity/test-resources.bicep b/sdk/identity/test-resources.bicep new file mode 100644 index 000000000000..881450bd0c83 --- /dev/null +++ b/sdk/identity/test-resources.bicep @@ -0,0 +1,332 @@ +@minLength(6) +@maxLength(23) +@description('The base resource name.') +param baseName string = resourceGroup().name + +@description('The location of the resource. By default, this is the same as the resource group.') +param location string = resourceGroup().location + +@description('The client OID to grant access to test resources.') +param testApplicationOid string + +@minLength(5) +@maxLength(50) +@description('Provide a globally unique name of the Azure Container Registry') +param acrName string = 'acr${uniqueString(resourceGroup().id)}' + +@description('The latest AKS version available in the region.') +param latestAksVersion string + +@description('The SSH public key to use for the Linux VMs.') +param sshPubKey string + +@description('The admin user name for the Linux VMs.') +param adminUserName string = 'azureuser' + +// https://learn.microsoft.com/azure/role-based-access-control/built-in-roles +// var blobContributor = subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'ba92f5b4-2d11-453d-a403-e96b0029c9fe') // Storage Blob Data Contributor +var blobOwner = subscriptionResourceId('Microsoft.Authorization/roleDefinitions','b7e6dc6d-f1e8-4753-8033-0f276bb0955b') // Storage Blob Data Owner +var websiteContributor = subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'de139f84-1756-47ae-9be6-808fbbe84772') // Website Contributor + +// Cluster parameters +var kubernetesVersion = latestAksVersion + +resource userAssignedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2018-11-30' = { + name: baseName + location: location +} + +resource blobRoleWeb 'Microsoft.Authorization/roleAssignments@2022-04-01' = { + scope: storageAccount + name: guid(resourceGroup().id, blobOwner) + properties: { + principalId: web.identity.principalId + roleDefinitionId: blobOwner + principalType: 'ServicePrincipal' + } +} + +resource blobRoleFunc 'Microsoft.Authorization/roleAssignments@2022-04-01' = { + scope: storageAccount + name: guid(resourceGroup().id, blobOwner, 'azureFunction') + properties: { + principalId: azureFunction.identity.principalId + roleDefinitionId: blobOwner + principalType: 'ServicePrincipal' + } +} + +resource blobRoleCluster 'Microsoft.Authorization/roleAssignments@2022-04-01' = { + scope: storageAccount + name: guid(resourceGroup().id, blobOwner, 'kubernetes') + properties: { + principalId: kubernetesCluster.identity.principalId + roleDefinitionId: blobOwner + principalType: 'ServicePrincipal' + } +} + +resource blobRole2 'Microsoft.Authorization/roleAssignments@2022-04-01' = { + scope: storageAccount2 + name: guid(resourceGroup().id, blobOwner, userAssignedIdentity.id) + properties: { + principalId: userAssignedIdentity.properties.principalId + roleDefinitionId: blobOwner + principalType: 'ServicePrincipal' + } +} + +resource webRole 'Microsoft.Authorization/roleAssignments@2022-04-01' = { + scope: web + name: guid(resourceGroup().id, websiteContributor, 'web') + properties: { + principalId: testApplicationOid + roleDefinitionId: websiteContributor + principalType: 'ServicePrincipal' + } +} + +resource webRole2 'Microsoft.Authorization/roleAssignments@2022-04-01' = { + scope: azureFunction + name: guid(resourceGroup().id, websiteContributor, 'azureFunction') + properties: { + principalId: testApplicationOid + roleDefinitionId: websiteContributor + principalType: 'ServicePrincipal' + } +} + +resource storageAccount 'Microsoft.Storage/storageAccounts@2021-08-01' = { + name: baseName + location: location + sku: { + name: 'Standard_LRS' + } + kind: 'StorageV2' + properties: { + accessTier: 'Hot' + } +} + +resource storageAccount2 'Microsoft.Storage/storageAccounts@2021-08-01' = { + name: '${baseName}2' + location: location + sku: { + name: 'Standard_LRS' + } + kind: 'StorageV2' + properties: { + accessTier: 'Hot' + } +} + +resource farm 'Microsoft.Web/serverfarms@2021-03-01' = { + name: '${baseName}_farm' + location: location + sku: { + name: 'B1' + tier: 'Basic' + size: 'B1' + family: 'B' + capacity: 1 + } + properties: { + reserved: true + } + kind: 'app,linux' +} + +resource web 'Microsoft.Web/sites@2022-09-01' = { + name: '${baseName}webapp' + location: location + kind: 'app' + identity: { + type: 'SystemAssigned, UserAssigned' + userAssignedIdentities: { + '${userAssignedIdentity.id}' : { } + } + } + properties: { + enabled: true + serverFarmId: farm.id + httpsOnly: true + keyVaultReferenceIdentity: 'SystemAssigned' + siteConfig: { + linuxFxVersion: 'NODE|18-lts' + http20Enabled: true + minTlsVersion: '1.2' + appSettings: [ + { + name: 'AZURE_REGIONAL_AUTHORITY_NAME' + value: 'eastus' + } + { + name: 'IDENTITY_STORAGE_NAME_1' + value: storageAccount.name + } + { + name: 'IDENTITY_STORAGE_NAME_2' + value: storageAccount2.name + } + { + name: 'IDENTITY_USER_DEFINED_IDENTITY_CLIENT_ID' + value: userAssignedIdentity.properties.clientId + } + { + name: 'SCM_DO_BUILD_DURING_DEPLOYMENT' + value: 'true' + } + ] + } + } +} + +resource azureFunction 'Microsoft.Web/sites@2022-09-01' = { + name: '${baseName}func' + location: location + kind: 'functionapp' + identity: { + type: 'SystemAssigned, UserAssigned' + userAssignedIdentities: { + '${userAssignedIdentity.id}' : { } + } + } + properties: { + enabled: true + serverFarmId: farm.id + httpsOnly: true + keyVaultReferenceIdentity: 'SystemAssigned' + siteConfig: { + alwaysOn: true + http20Enabled: true + minTlsVersion: '1.2' + appSettings: [ + { + name: 'IDENTITY_STORAGE_NAME_1' + value: storageAccount.name + } + { + name: 'IDENTITY_STORAGE_NAME_2' + value: storageAccount2.name + } + { + name: 'IDENTITY_USER_DEFINED_IDENTITY_CLIENT_ID' + value: userAssignedIdentity.properties.clientId + } + { + name: 'AzureWebJobsStorage' + value: 'DefaultEndpointsProtocol=https;AccountName=${storageAccount.name};EndpointSuffix=${environment().suffixes.storage};AccountKey=${storageAccount.listKeys().keys[0].value}' + } + { + name: 'WEBSITE_CONTENTAZUREFILECONNECTIONSTRING' + value: 'DefaultEndpointsProtocol=https;AccountName=${storageAccount.name};EndpointSuffix=${environment().suffixes.storage};AccountKey=${storageAccount.listKeys().keys[0].value}' + } + { + name: 'WEBSITE_CONTENTSHARE' + value: toLower('${baseName}-func') + } + { + name: 'FUNCTIONS_EXTENSION_VERSION' + value: '~4' + } + { + name: 'FUNCTIONS_WORKER_RUNTIME' + value: 'node' + } + { + name: 'DOCKER_CUSTOM_IMAGE_NAME' + value: 'mcr.microsoft.com/azure-functions/node:4-node18-appservice-stage3' + } + ] + } + } +} + +resource publishPolicyWeb 'Microsoft.Web/sites/basicPublishingCredentialsPolicies@2022-09-01' = { + kind: 'app' + parent: web + name: 'scm' + properties: { + allow: true + } +} + +resource publishPolicyFunction 'Microsoft.Web/sites/basicPublishingCredentialsPolicies@2022-09-01' = { + kind: 'functionapp' + parent: azureFunction + name: 'scm' + properties: { + allow: true + } +} + +resource acrResource 'Microsoft.ContainerRegistry/registries@2023-01-01-preview' = { + name: acrName + location: location + sku: { + name: 'Basic' + } + properties: { + adminUserEnabled: true + } +} + +resource kubernetesCluster 'Microsoft.ContainerService/managedClusters@2023-06-01' = { + name: baseName + location: location + identity: { + type: 'SystemAssigned' + } + properties: { + kubernetesVersion: kubernetesVersion + enableRBAC: true + dnsPrefix: 'identitytest' + agentPoolProfiles: [ + { + name: 'agentpool' + count: 1 + vmSize: 'Standard_D2s_v3' + osDiskSizeGB: 128 + osDiskType: 'Managed' + kubeletDiskType: 'OS' + type: 'VirtualMachineScaleSets' + enableAutoScaling: false + orchestratorVersion: kubernetesVersion + mode: 'System' + osType: 'Linux' + osSKU: 'Ubuntu' + } + ] + linuxProfile: { + adminUsername: adminUserName + ssh: { + publicKeys: [ + { + keyData: sshPubKey + } + ] + } + } + oidcIssuerProfile: { + enabled: true + } + securityProfile: { + workloadIdentity: { + enabled: true + } + } + } +} + +output IDENTITY_WEBAPP_NAME string = web.name +output IDENTITY_WEBAPP_PLAN string = farm.name +output IDENTITY_USER_DEFINED_IDENTITY string = userAssignedIdentity.id +output IDENTITY_USER_DEFINED_IDENTITY_CLIENT_ID string = userAssignedIdentity.properties.clientId +output IDENTITY_USER_DEFINED_IDENTITY_NAME string = userAssignedIdentity.name +output IDENTITY_STORAGE_NAME_1 string = storageAccount.name +output IDENTITY_STORAGE_NAME_2 string = storageAccount2.name +output IDENTITY_FUNCTION_NAME string = azureFunction.name +output IDENTITY_AKS_CLUSTER_NAME string = kubernetesCluster.name +output IDENTITY_AKS_POD_NAME string = 'javascript-test-app' +output IDENTITY_ACR_NAME string = acrResource.name +output IDENTITY_ACR_LOGIN_SERVER string = acrResource.properties.loginServer diff --git a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/package.json b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/package.json index 6a3f1c0fd67d..10cc151168dc 100644 --- a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/package.json +++ b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/package.json @@ -39,7 +39,7 @@ "test:node": "npm run clean && tsc -p . && npm run unit-test:node && npm run integration-test:node", "test": "npm run clean && tsc -p . && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test", "unit-test:browser": "karma start --single-run", - "unit-test:node": "dev-tool run test:node-ts-input --no-test-proxy=true", + "unit-test:node": "dev-tool run test:node-tsx-ts --no-test-proxy=true", "unit-test": "npm run unit-test:node && npm run unit-test:browser" }, "files": [ @@ -70,9 +70,9 @@ "dependencies": { "@azure/core-tracing": "^1.0.0", "@azure/logger": "^1.0.0", - "@opentelemetry/api": "^1.7.0", - "@opentelemetry/core": "^1.21.0", - "@opentelemetry/instrumentation": "^0.48.0", + "@opentelemetry/api": "^1.8.0", + "@opentelemetry/core": "^1.22.0", + "@opentelemetry/instrumentation": "^0.49.1", "tslib": "^2.2.0" }, "devDependencies": { @@ -80,8 +80,8 @@ "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@microsoft/api-extractor": "^7.31.1", - "@opentelemetry/sdk-trace-base": "^1.21.0", - "@opentelemetry/sdk-trace-node": "^1.21.0", + "@opentelemetry/sdk-trace-base": "^1.22.0", + "@opentelemetry/sdk-trace-node": "^1.22.0", "@types/chai": "^4.1.6", "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", @@ -90,7 +90,6 @@ "cross-env": "^7.0.2", "dotenv": "^16.0.0", "eslint": "^8.0.0", - "esm": "^3.2.18", "inherits": "^2.0.3", "karma": "^6.2.0", "karma-chrome-launcher": "^3.0.0", @@ -105,9 +104,9 @@ "rimraf": "^5.0.5", "sinon": "^17.0.0", "source-map-support": "^0.5.9", + "tsx": "^4.7.1", "typescript": "~5.3.3", - "util": "^0.12.1", - "ts-node": "^10.0.0" + "util": "^0.12.1" }, "//sampleConfiguration": { "skipFolder": true, diff --git a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/test/public/instrumenter.spec.ts b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/test/public/instrumenter.spec.ts index 8b75af3193ac..b8d31f2f6624 100644 --- a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/test/public/instrumenter.spec.ts +++ b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/test/public/instrumenter.spec.ts @@ -264,29 +264,6 @@ describe("OpenTelemetryInstrumenter", () => { assert.isTrue(contextSpy.calledWith(activeContext, callback, undefined, callbackArg)); }); - it("works when caller binds `this`", function (this: Context) { - // a bit of a silly test but demonstrates how to bind `this` correctly - // and ensures the behavior does not regress - - // Function syntax - instrumenter.withContext(context.active(), function (this: any) { - assert.notExists(this); - }); - instrumenter.withContext( - context.active(), - function (this: any) { - assert.equal(this, 42); - }.bind(42), - ); - - // Arrow syntax - // eslint-disable-next-line @typescript-eslint/no-this-alias - const that = this; - instrumenter.withContext(context.active(), () => { - assert.equal(this, that); - }); - }); - it("Returns the value of the callback", () => { const result = instrumenter.withContext(context.active(), () => 42); assert.equal(result, 42); diff --git a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/tests.yml b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/tests.yml index bdde61d49358..756cb38e7e3a 100644 --- a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/tests.yml +++ b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/opentelemetry-instrumentation-azure-sdk" ServiceDirectory: instrumentation diff --git a/sdk/keyvault/keyvault-admin/package.json b/sdk/keyvault/keyvault-admin/package.json index 2fb79ac408a3..8661f0004ab5 100644 --- a/sdk/keyvault/keyvault-admin/package.json +++ b/sdk/keyvault/keyvault-admin/package.json @@ -50,14 +50,14 @@ "build": "npm run clean && tsc -p . && npm run build:nodebrowser && api-extractor run --local", "bundle": "dev-tool run bundle --browser-test=false", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", - "clean": "rimraf --glob dist dist-* types *.tgz *.log statistics.html coverage && rimraf src/**/*.js && rimraf test/**/*.js", + "clean": "rimraf --glob dist dist-* types *.tgz *.log statistics.html coverage && rimraf --glob src/**/*.js && rimraf --glob test/**/*.js", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md", "integration-test:browser": "echo skipped", - "integration-test:node": "dev-tool run test:node-js-input --use-esm-workaround=true -- --timeout 180000 --exclude \"dist-esm/**/*.browser.spec.js\" \"dist-esm/**/*.spec.js\"", - "integration-test:node:no-timeout": "dev-tool run test:node-js-input --use-esm-workaround=true -- --no-timeouts --full-trace --exclude \"dist-esm/**/*.browser.spec.js\" \"dist-esm/**/*.spec.js\"", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 180000 --exclude \"dist-esm/**/*.browser.spec.js\" \"dist-esm/**/*.spec.js\"", + "integration-test:node:no-timeout": "dev-tool run test:node-js-input -- --no-timeouts --full-trace --exclude \"dist-esm/**/*.browser.spec.js\" \"dist-esm/**/*.spec.js\"", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json src --ext .ts --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json src --ext .ts", diff --git a/sdk/keyvault/keyvault-admin/platform-matrix.json b/sdk/keyvault/keyvault-admin/platform-matrix.json index 444880dffe54..edd8ed1e999f 100644 --- a/sdk/keyvault/keyvault-admin/platform-matrix.json +++ b/sdk/keyvault/keyvault-admin/platform-matrix.json @@ -3,8 +3,8 @@ { "Agent": { "ubuntu-20.04_ManagedHSM": { - "OSVmImage": "MMSUbuntu20.04", - "Pool": "azsdk-pool-mms-ubuntu-2004-general", + "OSVmImage": "env:LINUXVMIMAGE", + "Pool": "env:LINUXPOOL", "ArmTemplateParameters": "@{ enableHsm = $true }" } }, diff --git a/sdk/keyvault/keyvault-admin/tests.yml b/sdk/keyvault/keyvault-admin/tests.yml index 40d752f767a8..7a01a487dcc5 100644 --- a/sdk/keyvault/keyvault-admin/tests.yml +++ b/sdk/keyvault/keyvault-admin/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/keyvault-admin" ServiceDirectory: keyvault diff --git a/sdk/keyvault/keyvault-certificates/package.json b/sdk/keyvault/keyvault-certificates/package.json index 8e36b53c5345..a0da17e87549 100644 --- a/sdk/keyvault/keyvault-certificates/package.json +++ b/sdk/keyvault/keyvault-certificates/package.json @@ -51,8 +51,8 @@ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"samples-dev/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md", "integration-test:browser": "dev-tool run test:browser", - "integration-test:node": "dev-tool run test:node-js-input --use-esm-workaround=true -- --timeout 350000 'dist-esm/**/*.spec.js'", - "integration-test:node:no-timeout": "dev-tool run test:node-js-input --use-esm-workaround=true -- --no-timeouts 'dist-esm/**/*.spec.js'", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 350000 'dist-esm/**/*.spec.js'", + "integration-test:node:no-timeout": "dev-tool run test:node-js-input -- --no-timeouts 'dist-esm/**/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json src test --ext .ts", diff --git a/sdk/keyvault/keyvault-certificates/platform-matrix.json b/sdk/keyvault/keyvault-certificates/platform-matrix.json index 6065fc16ea27..f9a69be168d6 100644 --- a/sdk/keyvault/keyvault-certificates/platform-matrix.json +++ b/sdk/keyvault/keyvault-certificates/platform-matrix.json @@ -3,8 +3,8 @@ { "Agent": { "ubuntu-20.04": { - "OSVmImage": "MMSUbuntu20.04", - "Pool": "azsdk-pool-mms-ubuntu-2004-general" + "OSVmImage": "env:LINUXVMIMAGE", + "Pool": "env:LINUXPOOL" } }, "TestType": "node", diff --git a/sdk/keyvault/keyvault-certificates/tests.yml b/sdk/keyvault/keyvault-certificates/tests.yml index 537b8c5f6b4e..e23e65669440 100644 --- a/sdk/keyvault/keyvault-certificates/tests.yml +++ b/sdk/keyvault/keyvault-certificates/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/keyvault-certificates" ServiceDirectory: keyvault diff --git a/sdk/keyvault/keyvault-keys/api-extractor.json b/sdk/keyvault/keyvault-keys/api-extractor.json index 3afc3e69a5ea..24dc512f9c4c 100644 --- a/sdk/keyvault/keyvault-keys/api-extractor.json +++ b/sdk/keyvault/keyvault-keys/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "types/keyvault-keys/src/index.d.ts", + "mainEntryPointFilePath": "types/src/index.d.ts", "docModel": { "enabled": true }, diff --git a/sdk/keyvault/keyvault-keys/package.json b/sdk/keyvault/keyvault-keys/package.json index 5a338747b89e..134ef4c925c0 100644 --- a/sdk/keyvault/keyvault-keys/package.json +++ b/sdk/keyvault/keyvault-keys/package.json @@ -20,7 +20,7 @@ "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "main": "./dist/index.js", - "module": "dist-esm/keyvault-keys/src/index.js", + "module": "dist-esm/src/index.js", "types": "./types/keyvault-keys.d.ts", "engines": { "node": ">=18.0.0" @@ -28,18 +28,17 @@ "files": [ "types/keyvault-keys.d.ts", "dist/", - "dist-esm/keyvault-keys/src", - "dist-esm/keyvault-common/src", + "dist-esm/src", "README.md", "LICENSE" ], "browser": { "os": false, "process": false, - "./dist-esm/keyvault-keys/src/cryptography/crypto.js": "./dist-esm/keyvault-keys/src/cryptography/crypto.browser.js", - "./dist-esm/keyvault-keys/src/cryptography/rsaCryptographyProvider.js": "./dist-esm/keyvault-keys/src/cryptography/rsaCryptographyProvider.browser.js", - "./dist-esm/keyvault-keys/src/cryptography/aesCryptographyProvider.js": "./dist-esm/keyvault-keys/src/cryptography/aesCryptographyProvider.browser.js", - "./dist-esm/keyvault-keys/test/utils/base64url.js": "./dist-esm/keyvault-keys/test/utils/base64url.browser.js" + "./dist-esm/src/cryptography/crypto.js": "./dist-esm/src/cryptography/crypto.browser.js", + "./dist-esm/src/cryptography/rsaCryptographyProvider.js": "./dist-esm/src/cryptography/rsaCryptographyProvider.browser.js", + "./dist-esm/src/cryptography/aesCryptographyProvider.js": "./dist-esm/src/cryptography/aesCryptographyProvider.browser.js", + "./dist-esm/test/utils/base64url.js": "./dist-esm/test/utils/base64url.browser.js" }, "scripts": { "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit", @@ -51,14 +50,14 @@ "build": "npm run clean && tsc -p . && npm run build:nodebrowser && api-extractor run --local", "bundle": "dev-tool run bundle", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", - "clean": "rimraf --glob dist dist-* types *.tgz *.log dist-browser statistics.html coverage && rimraf src/**/*.js && rimraf test/**/*.js", + "clean": "rimraf --glob dist dist-* types *.tgz *.log dist-browser statistics.html coverage && rimraf --glob src/**/*.js && rimraf --glob test/**/*.js", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md", "integration-test:browser": "dev-tool run test:browser", - "integration-test:node": "dev-tool run test:node-js-input --use-esm-workaround=true -- --timeout 5000000 'dist-esm/**/*.spec.js'", - "integration-test:node:no-timeout": "dev-tool run test:node-js-input --use-esm-workaround=true -- --timeout 9999999 'dist-esm/**/*.spec.js'", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/**/*.spec.js'", + "integration-test:node:no-timeout": "dev-tool run test:node-js-input -- --timeout 9999999 'dist-esm/**/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json src test --ext .ts", @@ -111,6 +110,7 @@ "@azure/core-lro": "^2.2.0", "@azure/core-paging": "^1.1.1", "@azure/core-tracing": "^1.0.0", + "@azure/keyvault-common": "^1.0.0", "@azure/logger": "^1.0.0", "tslib": "^2.2.0" }, diff --git a/sdk/keyvault/keyvault-keys/platform-matrix.json b/sdk/keyvault/keyvault-keys/platform-matrix.json index c24868cafd88..25173042d16d 100644 --- a/sdk/keyvault/keyvault-keys/platform-matrix.json +++ b/sdk/keyvault/keyvault-keys/platform-matrix.json @@ -3,8 +3,8 @@ { "Agent": { "ubuntu-20.04_ManagedHSM": { - "OSVmImage": "MMSUbuntu20.04", - "Pool": "azsdk-pool-mms-ubuntu-2004-general", + "OSVmImage": "env:LINUXVMIMAGE", + "Pool": "env:LINUXPOOL", "ArmTemplateParameters": "@{ enableHsm = $true }" } }, @@ -14,8 +14,8 @@ { "Agent": { "ubuntu-20.04": { - "OSVmImage": "MMSUbuntu20.04", - "Pool": "azsdk-pool-mms-ubuntu-2004-general" + "OSVmImage": "env:LINUXVMIMAGE", + "Pool": "env:LINUXPOOL" } }, "TestType": "node", diff --git a/sdk/keyvault/keyvault-keys/src/cryptography/remoteCryptographyProvider.ts b/sdk/keyvault/keyvault-keys/src/cryptography/remoteCryptographyProvider.ts index b2f38d12fe3e..3bc0e8ef9c67 100644 --- a/sdk/keyvault/keyvault-keys/src/cryptography/remoteCryptographyProvider.ts +++ b/sdk/keyvault/keyvault-keys/src/cryptography/remoteCryptographyProvider.ts @@ -34,7 +34,7 @@ import { getKeyFromKeyBundle } from "../transformations"; import { createHash } from "./crypto"; import { CryptographyProvider, CryptographyProviderOperation } from "./models"; import { logger } from "../log"; -import { createKeyVaultChallengeCallbacks } from "../../../keyvault-common/src"; +import { createKeyVaultChallengeCallbacks } from "@azure/keyvault-common"; import { tracingClient } from "../tracing"; /** diff --git a/sdk/keyvault/keyvault-keys/src/identifier.ts b/sdk/keyvault/keyvault-keys/src/identifier.ts index 0c4866c9d006..ebd180cc0c96 100644 --- a/sdk/keyvault/keyvault-keys/src/identifier.ts +++ b/sdk/keyvault/keyvault-keys/src/identifier.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { parseKeyVaultIdentifier } from "../../keyvault-common/src"; +import { parseKeyVaultIdentifier } from "@azure/keyvault-common"; /** * Represents the segments that compose a Key Vault Key Id. diff --git a/sdk/keyvault/keyvault-keys/src/index.ts b/sdk/keyvault/keyvault-keys/src/index.ts index 79b08b40c33e..ee4aa8cf82c5 100644 --- a/sdk/keyvault/keyvault-keys/src/index.ts +++ b/sdk/keyvault/keyvault-keys/src/index.ts @@ -19,7 +19,7 @@ import { } from "./generated/models"; import { KeyVaultClient } from "./generated/keyVaultClient"; import { SDK_VERSION } from "./constants"; -import { createKeyVaultChallengeCallbacks } from "../../keyvault-common/src"; +import { createKeyVaultChallengeCallbacks } from "@azure/keyvault-common"; import { DeleteKeyPoller } from "./lro/delete/poller"; import { RecoverDeletedKeyPoller } from "./lro/recover/poller"; diff --git a/sdk/keyvault/keyvault-keys/test/internal/userAgent.spec.ts b/sdk/keyvault/keyvault-keys/test/internal/userAgent.spec.ts index 3d84c95fa7e3..73f04e84b645 100644 --- a/sdk/keyvault/keyvault-keys/test/internal/userAgent.spec.ts +++ b/sdk/keyvault/keyvault-keys/test/internal/userAgent.spec.ts @@ -45,9 +45,9 @@ describe("Keys client's user agent", () => { version = fileContents.version; } catch { // The integration-test script has this test file in a considerably different place, - // Along the lines of: dist-esm/keyvault-keys/test/internal/userAgent.spec.ts + // Along the lines of: dist-esm/test/internal/userAgent.spec.ts const fileContents = JSON.parse( - fs.readFileSync(path.join(__dirname, "../../../../package.json"), { encoding: "utf-8" }), + fs.readFileSync(path.join(__dirname, "../../../package.json"), { encoding: "utf-8" }), ); version = fileContents.version; } diff --git a/sdk/keyvault/keyvault-keys/tests.yml b/sdk/keyvault/keyvault-keys/tests.yml index 14b9dd458ea7..5e0cb21dfe89 100644 --- a/sdk/keyvault/keyvault-keys/tests.yml +++ b/sdk/keyvault/keyvault-keys/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/keyvault-keys" ServiceDirectory: keyvault diff --git a/sdk/keyvault/keyvault-keys/tsconfig.json b/sdk/keyvault/keyvault-keys/tsconfig.json index 593cf16cd84d..d1b1b2b6d52e 100644 --- a/sdk/keyvault/keyvault-keys/tsconfig.json +++ b/sdk/keyvault/keyvault-keys/tsconfig.json @@ -9,10 +9,5 @@ "@azure/keyvault-keys": ["./src/index"] } }, - "include": [ - "./src/**/*.ts", - "./test/**/*.ts", - "../keyvault-common/src/**/*.ts", - "samples-dev/**/*.ts" - ] + "include": ["./src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"] } diff --git a/sdk/keyvault/keyvault-secrets/api-extractor.json b/sdk/keyvault/keyvault-secrets/api-extractor.json index 3ae6cbeedc67..7a4d1e7f8cfb 100644 --- a/sdk/keyvault/keyvault-secrets/api-extractor.json +++ b/sdk/keyvault/keyvault-secrets/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "types/keyvault-secrets/src/index.d.ts", + "mainEntryPointFilePath": "types/src/index.d.ts", "docModel": { "enabled": true }, diff --git a/sdk/keyvault/keyvault-secrets/package.json b/sdk/keyvault/keyvault-secrets/package.json index 487b7f34a487..b447b05b1def 100644 --- a/sdk/keyvault/keyvault-secrets/package.json +++ b/sdk/keyvault/keyvault-secrets/package.json @@ -20,7 +20,7 @@ "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "main": "./dist/index.js", - "module": "dist-esm/keyvault-secrets/src/index.js", + "module": "dist-esm/src/index.js", "types": "./types/keyvault-secrets.d.ts", "engines": { "node": ">=18.0.0" @@ -28,8 +28,7 @@ "files": [ "types/keyvault-secrets.d.ts", "dist/", - "dist-esm/keyvault-secrets/src", - "dist-esm/keyvault-common/src", + "dist-esm/src", "README.md", "LICENSE" ], @@ -46,14 +45,14 @@ "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && npm run build:nodebrowser && api-extractor run --local", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", - "clean": "rimraf --glob dist dist-* types *.tgz *.log dist-browser statistics.html coverage && rimraf src/**/*.js && rimraf test/**/*.js", + "clean": "rimraf --glob dist dist-* types *.tgz *.log dist-browser statistics.html coverage && rimraf --glob src/**/*.js && rimraf --glob test/**/*.js", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md", "integration-test:browser": "dev-tool run test:browser", - "integration-test:node": "dev-tool run test:node-js-input --use-esm-workaround=true -- --timeout 350000 'dist-esm/**/*.spec.js'", - "integration-test:node:no-timeout": "dev-tool run test:node-js-input --use-esm-workaround=true -- --no-timeout 'dist-esm/**/*.spec.js'", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 350000 'dist-esm/**/*.spec.js'", + "integration-test:node:no-timeout": "dev-tool run test:node-js-input -- --no-timeout 'dist-esm/**/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json src test --ext .ts", @@ -109,6 +108,7 @@ "@azure/core-lro": "^2.2.0", "@azure/core-paging": "^1.1.1", "@azure/core-tracing": "^1.0.0", + "@azure/keyvault-common": "^1.0.0", "@azure/logger": "^1.0.0", "tslib": "^2.2.0" }, diff --git a/sdk/keyvault/keyvault-secrets/platform-matrix.json b/sdk/keyvault/keyvault-secrets/platform-matrix.json index 6065fc16ea27..f9a69be168d6 100644 --- a/sdk/keyvault/keyvault-secrets/platform-matrix.json +++ b/sdk/keyvault/keyvault-secrets/platform-matrix.json @@ -3,8 +3,8 @@ { "Agent": { "ubuntu-20.04": { - "OSVmImage": "MMSUbuntu20.04", - "Pool": "azsdk-pool-mms-ubuntu-2004-general" + "OSVmImage": "env:LINUXVMIMAGE", + "Pool": "env:LINUXPOOL" } }, "TestType": "node", diff --git a/sdk/keyvault/keyvault-secrets/src/identifier.ts b/sdk/keyvault/keyvault-secrets/src/identifier.ts index 61a14a20f68b..38bd3e1a32fa 100644 --- a/sdk/keyvault/keyvault-secrets/src/identifier.ts +++ b/sdk/keyvault/keyvault-secrets/src/identifier.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { parseKeyVaultIdentifier } from "../../keyvault-common/src"; +import { parseKeyVaultIdentifier } from "@azure/keyvault-common"; /** * Represents the segments that compose a Key Vault Secret Id. diff --git a/sdk/keyvault/keyvault-secrets/src/index.ts b/sdk/keyvault/keyvault-secrets/src/index.ts index 93b807bfabcd..6970cb19a64c 100644 --- a/sdk/keyvault/keyvault-secrets/src/index.ts +++ b/sdk/keyvault/keyvault-secrets/src/index.ts @@ -18,7 +18,7 @@ import { SecretBundle, } from "./generated/models"; import { KeyVaultClient } from "./generated/keyVaultClient"; -import { createKeyVaultChallengeCallbacks } from "../../keyvault-common/src"; +import { createKeyVaultChallengeCallbacks } from "@azure/keyvault-common"; import { DeleteSecretPoller } from "./lro/delete/poller"; import { RecoverDeletedSecretPoller } from "./lro/recover/poller"; diff --git a/sdk/keyvault/keyvault-secrets/test/internal/userAgent.spec.ts b/sdk/keyvault/keyvault-secrets/test/internal/userAgent.spec.ts index 1d6d850e87ea..650276e6aafe 100644 --- a/sdk/keyvault/keyvault-secrets/test/internal/userAgent.spec.ts +++ b/sdk/keyvault/keyvault-secrets/test/internal/userAgent.spec.ts @@ -44,9 +44,9 @@ describe("Secrets client's user agent (only in Node, because of fs)", () => { version = fileContents.version; } catch { // The integration-test script has this test file in a considerably different place, - // Along the lines of: dist-esm/keyvault-keys/test/internal/userAgent.spec.ts + // Along the lines of: dist-esm/test/internal/userAgent.spec.ts const fileContents = JSON.parse( - fs.readFileSync(path.join(__dirname, "../../../../package.json"), { encoding: "utf-8" }), + fs.readFileSync(path.join(__dirname, "../../../package.json"), { encoding: "utf-8" }), ); version = fileContents.version; } diff --git a/sdk/keyvault/keyvault-secrets/tests.yml b/sdk/keyvault/keyvault-secrets/tests.yml index f8574b1aad07..a473f435ad0e 100644 --- a/sdk/keyvault/keyvault-secrets/tests.yml +++ b/sdk/keyvault/keyvault-secrets/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/keyvault-secrets" ServiceDirectory: keyvault diff --git a/sdk/keyvault/keyvault-secrets/tsconfig.json b/sdk/keyvault/keyvault-secrets/tsconfig.json index a377b7b11846..4cbb26181ea3 100644 --- a/sdk/keyvault/keyvault-secrets/tsconfig.json +++ b/sdk/keyvault/keyvault-secrets/tsconfig.json @@ -9,10 +9,5 @@ "@azure/keyvault-secrets": ["./src/index"] } }, - "include": [ - "./src/**/*.ts", - "./test/**/*.ts", - "../keyvault-common/src/**/*.ts", - "samples-dev/**/*.ts" - ] + "include": ["./src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"] } diff --git a/sdk/maps/maps-geolocation-rest/tests.yml b/sdk/maps/maps-geolocation-rest/tests.yml index 524ddf0fe3ba..44e686cda694 100644 --- a/sdk/maps/maps-geolocation-rest/tests.yml +++ b/sdk/maps/maps-geolocation-rest/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-rest/maps-geolocation" ServiceDirectory: maps diff --git a/sdk/maps/maps-render-rest/tests.yml b/sdk/maps/maps-render-rest/tests.yml index 79a754c65281..0bf2b59e43ca 100644 --- a/sdk/maps/maps-render-rest/tests.yml +++ b/sdk/maps/maps-render-rest/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-rest/maps-render" ServiceDirectory: maps diff --git a/sdk/maps/maps-route-rest/tests.yml b/sdk/maps/maps-route-rest/tests.yml index 84beb6a22fb4..7677f75f89b6 100644 --- a/sdk/maps/maps-route-rest/tests.yml +++ b/sdk/maps/maps-route-rest/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-rest/maps-route" ServiceDirectory: maps diff --git a/sdk/maps/maps-search-rest/tests.yml b/sdk/maps/maps-search-rest/tests.yml index 499fba2a84bc..35a3139beeec 100644 --- a/sdk/maps/maps-search-rest/tests.yml +++ b/sdk/maps/maps-search-rest/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-rest/maps-search" ServiceDirectory: maps diff --git a/sdk/metricsadvisor/ai-metrics-advisor/tests.yml b/sdk/metricsadvisor/ai-metrics-advisor/tests.yml index c879b531ca28..b0dabb49f2c3 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/tests.yml +++ b/sdk/metricsadvisor/ai-metrics-advisor/tests.yml @@ -6,8 +6,8 @@ parameters: trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/ai-metrics-advisor" Location: "${{ parameters.Location }}" diff --git a/sdk/mixedreality/mixed-reality-authentication/tests.yml b/sdk/mixedreality/mixed-reality-authentication/tests.yml index d11bcfa759dd..8d1d44d5daba 100644 --- a/sdk/mixedreality/mixed-reality-authentication/tests.yml +++ b/sdk/mixedreality/mixed-reality-authentication/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/mixed-reality-authentication" ServiceDirectory: mixedreality diff --git a/sdk/monitor/monitor-ingestion/tests.yml b/sdk/monitor/monitor-ingestion/tests.yml index a2b6c82b0640..be24a349daa7 100644 --- a/sdk/monitor/monitor-ingestion/tests.yml +++ b/sdk/monitor/monitor-ingestion/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/monitor-ingestion" ServiceDirectory: monitor diff --git a/sdk/monitor/monitor-opentelemetry-exporter/CHANGELOG.md b/sdk/monitor/monitor-opentelemetry-exporter/CHANGELOG.md index 9af3ae0ec388..f9b6465e916b 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/CHANGELOG.md +++ b/sdk/monitor/monitor-opentelemetry-exporter/CHANGELOG.md @@ -1,5 +1,11 @@ # Release History +## 1.0.0-beta.21 (2024-03-08) + +### Bugs Fixed + +- Fix issue with duration calculation for Spans. + ## 1.0.0-beta.20 (2024-02-13) ### Bugs Fixed diff --git a/sdk/monitor/monitor-opentelemetry-exporter/package.json b/sdk/monitor/monitor-opentelemetry-exporter/package.json index 22d4adbe930f..0460a4c456a9 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/package.json +++ b/sdk/monitor/monitor-opentelemetry-exporter/package.json @@ -2,7 +2,7 @@ "name": "@azure/monitor-opentelemetry-exporter", "author": "Microsoft Corporation", "sdk-type": "client", - "version": "1.0.0-beta.20", + "version": "1.0.0-beta.21", "description": "Application Insights exporter for the OpenTelemetry JavaScript (Node.js) SDK", "main": "dist/index.js", "module": "dist-esm/src/index.js", @@ -25,9 +25,8 @@ "test:node": "npm run clean && npm run build:test && npm run unit-test:node", "test:browser": "npm run unit-test:browser", "unit-test:browser": "echo skipped", - "unit-test:node": "dev-tool run test:node-ts-input --no-test-proxy=true -- --timeout 1200000 \"test/internal/**/*.test.ts\"", - "unit-test:node:debug": "dev-tool run test:node-ts-input --no-test-proxy=true -- --inspect-brk \"test/internal/**/*.test.ts\"", - "unit-test:node:no-timeout": "echo skipped", + "unit-test:node": "dev-tool run test:node-tsx-ts -- --timeout 1200000 \"test/internal/**/*.test.ts\"", + "unit-test:node:debug": "dev-tool run test:node-tsx-ts -- --timeout 1200000 \"test/internal/**/*.test.ts\"", "unit-test": "npm run unit-test:node && npm run unit-test:browser", "integration-test:browser": "echo skipped", "integration-test:node": "dev-tool run test:node-ts-input --no-test-proxy=true -- --timeout 1200000 \"test/internal/functional/**/*.test.ts\"", @@ -84,37 +83,36 @@ "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@microsoft/api-extractor": "^7.31.1", - "@opentelemetry/instrumentation": "^0.48.0", - "@opentelemetry/instrumentation-http": "^0.48.0", - "@opentelemetry/sdk-trace-node": "^1.21.0", + "@opentelemetry/instrumentation": "^0.49.1", + "@opentelemetry/instrumentation-http": "^0.49.1", + "@opentelemetry/sdk-trace-node": "^1.22.0", "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", + "c8": "^8.0.0", + "cross-env": "^7.0.2", "dotenv": "^16.0.0", "eslint": "^8.0.0", "eslint-plugin-node": "^11.1.0", - "esm": "^3.2.18", "mocha": "^10.0.0", "nock": "^12.0.3", - "c8": "^8.0.0", "rimraf": "^5.0.5", "sinon": "^17.0.0", - "ts-node": "^10.0.0", - "typescript": "~5.3.3", - "cross-env": "^7.0.2" + "tsx": "^4.7.1", + "typescript": "~5.3.3" }, "dependencies": { "@azure/core-client": "^1.0.0", "@azure/core-auth": "^1.3.0", "@azure/core-rest-pipeline": "^1.1.0", - "@opentelemetry/api": "^1.7.0", - "@opentelemetry/api-logs": "^0.48.0", - "@opentelemetry/core": "^1.21.0", - "@opentelemetry/resources": "^1.21.0", - "@opentelemetry/sdk-metrics": "^1.21.0", - "@opentelemetry/sdk-trace-base": "^1.21.0", - "@opentelemetry/semantic-conventions": "^1.21.0", - "@opentelemetry/sdk-logs": "^0.48.0", - "tslib": "^2.2.0" + "@opentelemetry/api": "^1.8.0", + "@opentelemetry/api-logs": "^0.49.1", + "@opentelemetry/core": "^1.22.0", + "@opentelemetry/resources": "^1.22.0", + "@opentelemetry/sdk-metrics": "^1.22.0", + "@opentelemetry/sdk-trace-base": "^1.22.0", + "@opentelemetry/semantic-conventions": "^1.22.0", + "@opentelemetry/sdk-logs": "^0.49.1", + "tslib": "^2.6.2" }, "sideEffects": false, "keywords": [ diff --git a/sdk/monitor/monitor-opentelemetry-exporter/src/generated/applicationInsightsClient.ts b/sdk/monitor/monitor-opentelemetry-exporter/src/generated/applicationInsightsClient.ts index b15758c28ad1..2f4daae782f5 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/src/generated/applicationInsightsClient.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/src/generated/applicationInsightsClient.ts @@ -32,7 +32,7 @@ export class ApplicationInsightsClient extends coreClient.ServiceClient { requestContentType: "application/json; charset=utf-8", }; - const packageDetails = `azsdk-js-monitor-opentelemetry-exporter/1.0.0-beta.20`; + const packageDetails = `azsdk-js-monitor-opentelemetry-exporter/1.0.0-beta.21`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/monitor/monitor-opentelemetry-exporter/src/utils/constants/applicationinsights.ts b/sdk/monitor/monitor-opentelemetry-exporter/src/utils/constants/applicationinsights.ts index 92fce431630f..3c9293d5678f 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/src/utils/constants/applicationinsights.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/src/utils/constants/applicationinsights.ts @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +// Licensed under the MIT license /** * AI MS Links. @@ -20,7 +20,7 @@ export const TIME_SINCE_ENQUEUED = "timeSinceEnqueued"; * AzureMonitorTraceExporter version. * @internal */ -export const packageVersion = "1.0.0-beta.20"; +export const packageVersion = "1.0.0-beta.21"; export enum DependencyTypes { InProc = "InProc", diff --git a/sdk/monitor/monitor-opentelemetry-exporter/src/utils/spanUtils.ts b/sdk/monitor/monitor-opentelemetry-exporter/src/utils/spanUtils.ts index d1a0d0389b70..9af5bb7ebf04 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/src/utils/spanUtils.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/src/utils/spanUtils.ts @@ -127,7 +127,7 @@ function createDependencyData(span: ReadableSpan): RemoteDependencyData { const remoteDependencyData: RemoteDependencyData = { name: span.name, // Default id: `${span.spanContext().spanId}`, - success: span.status.code !== SpanStatusCode.ERROR, + success: span.status?.code !== SpanStatusCode.ERROR, resultCode: "0", type: "Dependency", duration: msToTimeSpan(hrTimeToMilliseconds(span.duration)), diff --git a/sdk/monitor/monitor-opentelemetry-exporter/swagger/README.md b/sdk/monitor/monitor-opentelemetry-exporter/swagger/README.md index 2df979fb93b1..37d228fabb40 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/swagger/README.md +++ b/sdk/monitor/monitor-opentelemetry-exporter/swagger/README.md @@ -25,7 +25,7 @@ input-file: https://github.com/Azure/azure-rest-api-specs/blob/main/specificatio add-credentials: false use-extension: "@autorest/typescript": "latest" -package-version: 1.0.0-beta.20 +package-version: 1.0.0-beta.21 typescript: true v3: true ``` diff --git a/sdk/monitor/monitor-opentelemetry-exporter/tests.yml b/sdk/monitor/monitor-opentelemetry-exporter/tests.yml index c0c421af4930..5cf47c25d18d 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/tests.yml +++ b/sdk/monitor/monitor-opentelemetry-exporter/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/monitor-opentelemetry-exporter" ServiceDirectory: monitor diff --git a/sdk/monitor/monitor-opentelemetry/CHANGELOG.md b/sdk/monitor/monitor-opentelemetry/CHANGELOG.md index 5cef905b6e5d..ec99ba41490a 100644 --- a/sdk/monitor/monitor-opentelemetry/CHANGELOG.md +++ b/sdk/monitor/monitor-opentelemetry/CHANGELOG.md @@ -1,5 +1,7 @@ # Release History +## Unreleased () + ## 1.3.0 (2024-02-13) ### Features Added @@ -8,15 +10,23 @@ ### Bugs Fixed -- Detecting Azure Functions and Azure App Service RPs incorrectly in the browser SDK loader. +- Fix detecting Azure Functions and Azure App Service RPs incorrectly in the browser SDK loader. - Fix OpenTelemetry Resource type being used when resource is set on the AzureMonitorOpenTelemetryOptions by resource detector. - Fix Resource typing on the Azure Monitor config. +- Fix document duration, dependency duration metric, and default quickpulse endpoint. +- Fix issue with miscalculation of Live Metrics request/depdendency duration. ### Other Changes - Updated Quickpulse transmission time. - Update OpenTelemetry depdendencies. - Add SDK prefix including attach type in both manual and auto-attach scenarios. +- Updated the @microsoft/applicationinsights-web-snippet to version 1.1.2. +- Update swagger definition file for Quickpulse. +- Updated to use exporter version 1.0.0-beta.21. +- Update standard metric names. +- Update to use dev-tool to run tests. +- Add properties in Live Metrics Documents. ## 1.2.0 (2024-01-23) @@ -42,6 +52,7 @@ - Handle issue of custom MeterReaders not being able to collect metrics for instrumentations. ### Other Changes + - Update OpenTelemetry dependencies. - Change JSON config values precedence. - Fix broken link in README. @@ -49,11 +60,13 @@ ## 1.1.0 (2023-10-09) ### Bugs Fixed + - Fix precedence of JSON config value changes over defaults. - Fix custom MeterReaders not being able to collect metrics for instrumentations. - Fix values for Statsbeat Features and Instrumentations. ### Other Changes + - Fix lint issues. ## 1.0.0 (2023-09-20) @@ -63,17 +76,18 @@ - Add support for Azure Functions programming model v4. ### Bugs Fixed + - Avoid dependency telemetry for ingestion endpoint calls. - Add custom AI Sampler to maintain data reliability in Standard Metrics. - Fix issues with SDK version not propagating correctly. ### Other Changes + - Update to latest OpenTelemetry dependencies. - Rename azureMonitorExporterConfig. - Remove singleton in handlers. - Adding Functional Tests. - ## 1.0.0-beta.3 (2023-08-30) ### Features Added diff --git a/sdk/monitor/monitor-opentelemetry/README.md b/sdk/monitor/monitor-opentelemetry/README.md index 8ccffd80b0e8..5e14a6482d37 100644 --- a/sdk/monitor/monitor-opentelemetry/README.md +++ b/sdk/monitor/monitor-opentelemetry/README.md @@ -29,7 +29,7 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP ```typescript -const { useAzureMonitor, AzureMonitorOpenTelemetryOptions } = require("@azure/monitor-opentelemetry"); +import { useAzureMonitor, AzureMonitorOpenTelemetryOptions } from "@azure/monitor-opentelemetry"; const options: AzureMonitorOpenTelemetryOptions = { azureMonitorExporterOptions: { @@ -46,8 +46,8 @@ useAzureMonitor(options); ```typescript -const { AzureMonitorOpenTelemetryClient, AzureMonitorOpenTelemetryOptions } = require("@azure/monitor-opentelemetry"); -const { Resource } = require("@opentelemetry/resources"); +import { AzureMonitorOpenTelemetryOptions, useAzureMonitor } from "@azure/monitor-opentelemetry"; +import { Resource } from "@opentelemetry/resources"; const resource = new Resource({ "testAttribute": "testValue" }); const options: AzureMonitorOpenTelemetryOptions = { @@ -57,11 +57,12 @@ const options: AzureMonitorOpenTelemetryOptions = { // Automatic retries disableOfflineStorage: false, // Application Insights Connection String - connectionString: process.env["APPLICATIONINSIGHTS_CONNECTION_STRING"] || "", + connectionString: + process.env["APPLICATIONINSIGHTS_CONNECTION_STRING"] || "", }, samplingRatio: 1, instrumentationOptions: { - // Instrumentations generating traces + // Instrumentations generating traces azureSdk: { enabled: true }, http: { enabled: true }, mongoDb: { enabled: true }, @@ -79,23 +80,26 @@ const options: AzureMonitorOpenTelemetryOptions = { connectionString: "", }, resource: resource + logRecordProcessors: [], + spanProcessors: [] }; useAzureMonitor(options); - ``` |Property|Description|Default| | ------------------------------- |------------------------------------------------------------------------------------------------------------|-------| -| azureMonitorExporterOptions | Azure Monitor OpenTelemetry Exporter Configuration. [More info here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/monitor/monitor-opentelemetry-exporter) | | | | -| samplingRatio | Sampling ratio must take a value in the range [0,1], 1 meaning all data will sampled and 0 all Tracing data will be sampled out. | 1| +| azureMonitorExporterOptions | Azure Monitor OpenTelemetry Exporter Configuration. [More info here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/monitor/monitor-opentelemetry-exporter) | | | | +| samplingRatio | Sampling ratio must take a value in the range [0,1], 1 meaning all data will sampled and 0 all Tracing data will be sampled out. | 1| | instrumentationOptions| Allow configuration of OpenTelemetry Instrumentations. | {"http": { enabled: true },"azureSdk": { enabled: false },"mongoDb": { enabled: false },"mySql": { enabled: false },"postgreSql": { enabled: false },"redis": { enabled: false },"bunyan": { enabled: false }}| -| browserSdkLoaderOptions| Allow configuration of Web Instrumentations. | { enabled: false, connectionString: "" } -| resource | Opentelemetry Resource. [More info here](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-resources) || -| samplingRatio | Sampling ratio must take a value in the range [0,1], 1 meaning all data will sampled and 0 all Tracing data will be sampled out. -| enableLiveMetrics | Enable/Disable Live Metrics. -| enableStandardMetrics | Enable/Disable Standard Metrics. +| browserSdkLoaderOptions| Allow configuration of Web Instrumentations. | { enabled: false, connectionString: "" } | +| resource | Opentelemetry Resource. [More info here](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-resources) || +| samplingRatio | Sampling ratio must take a value in the range [0,1], 1 meaning all data will sampled and 0 all Tracing data will be sampled out. | +| enableLiveMetrics | Enable/Disable Live Metrics. | +| enableStandardMetrics | Enable/Disable Standard Metrics. | +| logRecordProcessors | Array of log record processors to register to the global logger provider. | +| spanProcessors | Array of span processors to register to the global tracer provider. | Options could be set using configuration file `applicationinsights.json` located under root folder of @azure/monitor-opentelemetry package installation folder, Ex: `node_modules/@azure/monitor-opentelemetry`. These configuration values will be applied to all AzureMonitorOpenTelemetryClient instances. @@ -112,7 +116,6 @@ Options could be set using configuration file `applicationinsights.json` located }, ... } - ``` Custom JSON file could be provided using `APPLICATIONINSIGHTS_CONFIGURATION_FILE` environment variable. @@ -149,21 +152,20 @@ The following OpenTelemetry Instrumentation libraries are included as part of Az Other OpenTelemetry Instrumentations are available [here](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node) and could be added using TracerProvider in AzureMonitorOpenTelemetryClient. ```typescript - const { useAzureMonitor } = require("@azure/monitor-opentelemetry"); - const { metrics, trace } = require("@opentelemetry/api"); - const { registerInstrumentations } = require("@opentelemetry/instrumentation"); - const { ExpressInstrumentation } = require('@opentelemetry/instrumentation-express'); - - useAzureMonitor(); - const instrumentations = [ - new ExpressInstrumentation(), - ]; - registerInstrumentations({ - tracerProvider: trace.getTracerProvider(), - meterProvider: metrics.getMeterProvider(), - instrumentations: instrumentations, - }); - +import { useAzureMonitor } from "@azure/monitor-opentelemetry"; +import { metrics, trace } from "@opentelemetry/api"; +import { registerInstrumentations } from "@opentelemetry/instrumentation"; +import { ExpressInstrumentation } from "@opentelemetry/instrumentation-express"; + +useAzureMonitor(); +const instrumentations = [ + new ExpressInstrumentation(), +]; +registerInstrumentations({ + tracerProvider: trace.getTracerProvider(), + meterProvider: metrics.getMeterProvider(), + instrumentations: instrumentations, +}); ``` ### Application Insights Browser SDK Loader @@ -183,9 +185,9 @@ You might set the Cloud Role Name and the Cloud Role Instance via [OpenTelemetry ```typescript -const { useAzureMonitor, AzureMonitorOpenTelemetryOptions } = require("@azure/monitor-opentelemetry"); -const { Resource } = require("@opentelemetry/resources"); -const { SemanticResourceAttributes } = require("@opentelemetry/semantic-conventions"); +import { useAzureMonitor, AzureMonitorOpenTelemetryOptions } from "@azure/monitor-opentelemetry"; +import { Resource } from "@opentelemetry/resources"; +import { SemanticResourceAttributes } from "@opentelemetry/semantic-conventions"; // ---------------------------------------- // Setting role name and role instance @@ -224,11 +226,11 @@ Any [attributes](#add-span-attributes) you add to spans are exported as custom p Use a custom processor: ```typescript -const { useAzureMonitor } = require("@azure/monitor-opentelemetry"); -const { trace } = require("@opentelemetry/api"); -const { ReadableSpan, Span, SpanProcessor } = require("@opentelemetry/sdk-trace-base"); -const { NodeTracerProvider } = require("@opentelemetry/sdk-trace-node"); -const { SemanticAttributes } = require("@opentelemetry/semantic-conventions"); +import { useAzureMonitor } from "@azure/monitor-opentelemetry"; +import { ProxyTracerProvider, trace } from "@opentelemetry/api"; +import { ReadableSpan, Span, SpanProcessor } from "@opentelemetry/sdk-trace-base"; +import { NodeTracerProvider } from "@opentelemetry/sdk-trace-node"; +import { SemanticAttributes } from "@opentelemetry/semantic-conventions"; useAzureMonitor(); @@ -247,7 +249,7 @@ class SpanEnrichingProcessor implements SpanProcessor{ } } -const tracerProvider = trace.getTracerProvider().getDelegate(); +const tracerProvider = (trace.getTracerProvider() as ProxyTracerProvider).getDelegate() as NodeTracerProvider; tracerProvider.addSpanProcessor(new SpanEnrichingProcessor()); ``` @@ -260,10 +262,10 @@ You might use the following ways to filter out telemetry before it leaves your a The following example shows how to exclude a certain URL from being tracked by using the [HTTP/HTTPS instrumentation library](https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-instrumentation-http): ```typescript - const { useAzureMonitor, AzureMonitorOpenTelemetryOptions } = require("@azure/monitor-opentelemetry"); - const { IncomingMessage } = require("http"); - const { RequestOptions } = require("https"); - const { HttpInstrumentationConfig }= require("@opentelemetry/instrumentation-http"); + import { useAzureMonitor, AzureMonitorOpenTelemetryOptions } from "@azure/monitor-opentelemetry"; + import { IncomingMessage } from "http"; + import { RequestOptions } from "https"; + import { HttpInstrumentationConfig } from "@opentelemetry/instrumentation-http"; const httpInstrumentationConfig: HttpInstrumentationConfig = { enabled: true, @@ -284,11 +286,10 @@ You might use the following ways to filter out telemetry before it leaves your a }; const options : AzureMonitorOpenTelemetryOptions = { instrumentationOptions: { - http: httpInstrumentationConfig, + http: httpInstrumentationConfig, } }; useAzureMonitor(options); - ``` 1. Use a custom processor. You can use a custom span processor to exclude certain spans from being exported. To mark spans to not be exported, set `TraceFlag` to `DEFAULT`. @@ -297,10 +298,11 @@ Use the add [custom property example](#add-a-custom-property-to-a-trace), but re ```typescript ... import { SpanKind, TraceFlags } from "@opentelemetry/api"; - - class SpanEnrichingProcessor implements SpanProcessor{ + import { ReadableSpan, SpanProcessor } from "@opentelemetry/sdk-trace-base"; + + class SpanEnrichingProcessor implements SpanProcessor { ... - + onEnd(span: ReadableSpan) { if(span.kind == SpanKind.INTERNAL){ span.spanContext().traceFlags = TraceFlags.NONE; @@ -337,27 +339,27 @@ The [OpenTelemetry Specification](https://github.com/open-telemetry/opentelemetr describes the instruments and provides examples of when you might use each one. ```typescript - const { useAzureMonitor } = require("@azure/monitor-opentelemetry"); - const { metrics } = require("@opentelemetry/api"); - - useAzureMonitor(); - const meter = metrics.getMeter("testMeter"); - - let histogram = meter.createHistogram("histogram"); - let counter = meter.createCounter("counter"); - let gauge = meter.createObservableGauge("gauge"); - gauge.addCallback((observableResult: ObservableResult) => { - let randomNumber = Math.floor(Math.random() * 100); - observableResult.observe(randomNumber, {"testKey": "testValue"}); - }); - - histogram.record(1, { "testKey": "testValue" }); - histogram.record(30, { "testKey": "testValue2" }); - histogram.record(100, { "testKey2": "testValue" }); - - counter.add(1, { "testKey": "testValue" }); - counter.add(5, { "testKey2": "testValue" }); - counter.add(3, { "testKey": "testValue2" }); +import { useAzureMonitor } from "@azure/monitor-opentelemetry"; +import { ObservableResult, metrics } from "@opentelemetry/api"; + +useAzureMonitor(); +const meter = metrics.getMeter("testMeter"); + +let histogram = meter.createHistogram("histogram"); +let counter = meter.createCounter("counter"); +let gauge = meter.createObservableGauge("gauge"); +gauge.addCallback((observableResult: ObservableResult) => { + let randomNumber = Math.floor(Math.random() * 100); + observableResult.observe(randomNumber, {"testKey": "testValue"}); +}); + +histogram.record(1, { "testKey": "testValue" }); +histogram.record(30, { "testKey": "testValue2" }); +histogram.record(100, { "testKey2": "testValue" }); + +counter.add(1, { "testKey": "testValue" }); +counter.add(5, { "testKey2": "testValue" }); +counter.add(3, { "testKey": "testValue2" }); ``` @@ -369,8 +371,8 @@ For instance, exceptions caught by your code are *not* ordinarily not reported, and thus draw attention to them in relevant experiences including the failures blade and end-to-end transaction view. ```typescript -const { useAzureMonitor } = require("@azure/monitor-opentelemetry"); -const { trace } = require("@opentelemetry/api"); +import { useAzureMonitor } from "@azure/monitor-opentelemetry"; +import { trace } from "@opentelemetry/api"; useAzureMonitor(); const tracer = trace.getTracer("testMeter"); @@ -391,8 +393,8 @@ catch(error){ Azure Monitor OpenTelemetry uses the OpenTelemetry API Logger for internal logs. To enable it, use the following code: ```typescript -const { useAzureMonitor } = require("@azure/monitor-opentelemetry"); -const { DiagLogLevel } = require("@opentelemetry/api"); +import { useAzureMonitor } from "@azure/monitor-opentelemetry"; +import { DiagLogLevel } from "@opentelemetry/api"; process.env.APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_LEVEL = "VERBOSE"; process.env.APPLICATIONINSIGHTS_LOG_DESTINATION = "file"; diff --git a/sdk/monitor/monitor-opentelemetry/package.json b/sdk/monitor/monitor-opentelemetry/package.json index 379de06da1e9..d692745c04f9 100644 --- a/sdk/monitor/monitor-opentelemetry/package.json +++ b/sdk/monitor/monitor-opentelemetry/package.json @@ -13,8 +13,8 @@ "build:node": "tsc -p . && dev-tool run bundle --browser-test=false", "build:test": "tsc -p . && dev-tool run bundle --browser-test=false", "build": "npm run build:node && npm run build:browser && api-extractor run --local", + "clean": "rimraf --glob dist dist-* temp types *.tgz *.log", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", - "clean": "rimraf --glob dist-esm types dist", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", @@ -25,13 +25,12 @@ "test": "npm run clean && npm run build:test && npm run unit-test", "test:browser": "npm run unit-test:browser", "unit-test:browser": "echo skipped", - "unit-test:node": "dev-tool run test:node-ts-input --no-test-proxy=true -- \"test/internal/unit/**/*.test.ts\"", - "unit-test:node:debug": "dev-tool run test:node-ts-input --no-test-proxy=true -- --inspect-brk \"test/internal/unit/**/*.test.ts\"", + "unit-test:node": "dev-tool run test:node-tsx-ts --no-test-proxy=true -- --timeout 1200000 \"test/internal/unit/**/*.test.ts\"", + "unit-test:node:debug": "dev-tool run test:node-js-input --no-test-proxy=true -- --inspect-brk --timeout 1200000 \"test/internal/unit/**/*.test.ts\"", "unit-test": "npm run unit-test:node && npm run unit-test:browser", "integration-test:browser": "echo skipped", "integration-test:node": "dev-tool run test:node-ts-input --no-test-proxy=true -- \"test/internal/functional/**/*.test.ts\"", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "report": "nyc report --reporter=json", "test-opentelemetry-versions": "node test-opentelemetry-versions.js 2>&1", "pack": "npm pack 2>&1" }, @@ -71,18 +70,17 @@ "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", "@types/sinon": "^17.0.0", + "c8": "^8.0.0", + "cross-env": "^7.0.2", "dotenv": "^16.0.0", "eslint": "^8.0.0", "eslint-plugin-node": "^11.1.0", "mocha": "^10.0.0", "nock": "^12.0.3", - "c8": "^8.0.0", - "cross-env": "^7.0.3", "rimraf": "^5.0.5", "sinon": "^17.0.0", - "ts-node": "^10.0.0", - "typescript": "~5.3.3", - "esm": "^3.2.18" + "tsx": "^4.7.1", + "typescript": "~5.3.3" }, "dependencies": { "@azure/core-client": "^1.0.0", @@ -90,29 +88,29 @@ "@azure/core-rest-pipeline": "^1.1.0", "@azure/functions": "^3.2.0", "@azure/logger": "^1.0.0", - "@azure/monitor-opentelemetry-exporter": "1.0.0-beta.20", + "@azure/monitor-opentelemetry-exporter": "1.0.0-beta.21", "@azure/opentelemetry-instrumentation-azure-sdk": "^1.0.0-beta.5", - "@opentelemetry/api": "^1.7.0", - "@opentelemetry/api-logs": "^0.48.0", - "@opentelemetry/core": "^1.21.0", - "@opentelemetry/instrumentation": "^0.48.0", - "@opentelemetry/instrumentation-bunyan": "^0.35.0", - "@opentelemetry/instrumentation-http": "^0.48.0", - "@opentelemetry/instrumentation-mongodb": "^0.39.0", - "@opentelemetry/instrumentation-mysql": "^0.35.0", - "@opentelemetry/instrumentation-pg": "^0.38.0", - "@opentelemetry/instrumentation-redis": "^0.36.0", - "@opentelemetry/instrumentation-redis-4": "^0.36.0", - "@opentelemetry/resources": "^1.21.0", - "@opentelemetry/sdk-logs": "^0.48.0", - "@opentelemetry/sdk-metrics": "^1.21.0", - "@opentelemetry/sdk-node": "^0.48.0", - "@opentelemetry/sdk-trace-base": "^1.21.0", - "@opentelemetry/sdk-trace-node": "^1.21.0", - "@opentelemetry/semantic-conventions": "^1.21.0", - "tslib": "^2.2.0", - "@microsoft/applicationinsights-web-snippet": "1.0.1", - "@opentelemetry/resource-detector-azure": "^0.2.4" + "@microsoft/applicationinsights-web-snippet": "^1.1.2", + "@opentelemetry/api": "^1.8.0", + "@opentelemetry/api-logs": "^0.49.1", + "@opentelemetry/core": "^1.22.0", + "@opentelemetry/instrumentation": "^0.49.1", + "@opentelemetry/instrumentation-bunyan": "^0.36.0", + "@opentelemetry/instrumentation-http": "^0.49.1", + "@opentelemetry/instrumentation-mongodb": "^0.40.0", + "@opentelemetry/instrumentation-mysql": "^0.36.0", + "@opentelemetry/instrumentation-pg": "^0.39.0", + "@opentelemetry/instrumentation-redis": "^0.37.0", + "@opentelemetry/instrumentation-redis-4": "^0.37.0", + "@opentelemetry/resource-detector-azure": "^0.2.4", + "@opentelemetry/resources": "^1.22.0", + "@opentelemetry/sdk-logs": "^0.49.1", + "@opentelemetry/sdk-metrics": "^1.22.0", + "@opentelemetry/sdk-node": "^0.49.1", + "@opentelemetry/sdk-trace-base": "^1.22.0", + "@opentelemetry/sdk-trace-node": "^1.22.0", + "@opentelemetry/semantic-conventions": "^1.22.0", + "tslib": "^2.6.2" }, "sideEffects": false, "keywords": [ diff --git a/sdk/monitor/monitor-opentelemetry/src/generated/models/index.ts b/sdk/monitor/monitor-opentelemetry/src/generated/models/index.ts index 88544509cecb..a4ec632df6b4 100644 --- a/sdk/monitor/monitor-opentelemetry/src/generated/models/index.ts +++ b/sdk/monitor/monitor-opentelemetry/src/generated/models/index.ts @@ -10,62 +10,62 @@ import * as coreClient from "@azure/core-client"; export type DocumentIngressUnion = | DocumentIngress - | Request - | RemoteDependency - | Exception | Event + | Exception + | RemoteDependency + | Request | Trace; -/** Monitoring data point coming from SDK, which includes metrics, documents and other metadata info. */ +/** Monitoring data point coming from the client, which includes metrics, documents and other metadata info. */ export interface MonitoringDataPoint { - /** AI SDK version. */ - version?: string; - /** Version/generation of the data contract (MonitoringDataPoint) between SDK and QuickPulse. */ - invariantVersion?: number; - /** Service instance name where AI SDK lives. */ - instance?: string; + /** Application Insights SDK version. */ + version: string; + /** Version/generation of the data contract (MonitoringDataPoint) between SDK and Live Metrics. */ + invariantVersion: number; + /** Service instance name where Application Insights SDK lives. */ + instance: string; /** Service role name. */ - roleName?: string; - /** Computer name where AI SDK lives. */ - machineName?: string; - /** Identifies an AI SDK as a trusted agent to report metrics and documents. */ - streamId?: string; + roleName: string; + /** Computer name where Application Insights SDK lives. */ + machineName: string; + /** Identifies an Application Insights SDK as a trusted agent to report metrics and documents. */ + streamId: string; /** Data point generation timestamp. */ timestamp?: Date; - /** Timestamp when SDK transmits the metrics and documents to QuickPulse. A 8-byte long type of ticks. */ + /** Timestamp when the client transmits the metrics and documents to Live Metrics. */ transmissionTime?: Date; /** True if the current application is an Azure Web App. */ - isWebApp?: boolean; + isWebApp: boolean; /** True if performance counters collection is supported. */ - performanceCollectionSupported?: boolean; - /** An array of meric data points. */ + performanceCollectionSupported: boolean; + /** An array of metric data points. */ metrics?: MetricPoint[]; /** An array of documents of a specific type {Request}, {RemoteDependency}, {Exception}, {Event}, or {Trace} */ documents?: DocumentIngressUnion[]; /** An array of top cpu consumption data point. */ topCpuProcesses?: ProcessCpuData[]; - /** An array of error while parsing and applying . */ + /** An array of error while SDK parses and applies the {CollectionConfigurationInfo} provided by Live Metrics. */ collectionConfigurationErrors?: CollectionConfigurationError[]; } /** Metric data point. */ export interface MetricPoint { /** Metric name. */ - name?: string; + name: string; /** Metric value. */ - value?: number; + value: number; /** Metric weight. */ - weight?: number; + weight: number; } /** Base class of the specific document types. */ export interface DocumentIngress { /** Polymorphic discriminator, which specifies the different types this object can be */ documentType: - | "Request" - | "RemoteDependency" - | "Exception" | "Event" + | "Exception" + | "RemoteDependency" + | "Request" | "Trace"; /** An array of document streaming ids. Each id identifies a flow of documents customized by UX customers. */ documentStreamIds?: string[]; @@ -73,88 +73,95 @@ export interface DocumentIngress { properties?: KeyValuePairString[]; } +/** Key-value pair of string and string. */ export interface KeyValuePairString { - key?: string; - value?: string; + /** Key of the key-value pair. */ + key: string; + /** Value of the key-value pair. */ + value: string; } /** CPU consumption datapoint. */ export interface ProcessCpuData { /** Process name. */ - processName?: string; + processName: string; /** CPU consumption percentage. */ - cpuPercentage?: number; + cpuPercentage: number; } -/** Represents an error while SDK parsing and applying an instance of CollectionConfigurationInfo. */ +/** Represents an error while SDK parses and applies an instance of CollectionConfigurationInfo. */ export interface CollectionConfigurationError { - /** Collection configuration error type reported by SDK. */ - collectionConfigurationErrorType?: CollectionConfigurationErrorType; + /** Error type. */ + collectionConfigurationErrorType: CollectionConfigurationErrorType; /** Error message. */ - message?: string; - /** Exception that leads to the creation of the configuration error. */ - fullException?: string; + message: string; + /** Exception that led to the creation of the configuration error. */ + fullException: string; /** Custom properties to add more information to the error. */ - data?: KeyValuePairString[]; + data: KeyValuePairString[]; } -/** Represents the collection configuration - a customizable description of performance counters, metrics, and full telemetry documents to be collected by the SDK. */ +/** Represents the collection configuration - a customizable description of performance counters, metrics, and full telemetry documents to be collected by the client SDK. */ export interface CollectionConfigurationInfo { /** An encoded string that indicates whether the collection configuration is changed. */ - etag?: string; + eTag: string; /** An array of metric configuration info. */ - metrics?: DerivedMetricInfo[]; + metrics: DerivedMetricInfo[]; /** An array of document stream configuration info. */ - documentStreams?: DocumentStreamInfo[]; - /** Control document quotas for QuickPulse */ + documentStreams: DocumentStreamInfo[]; + /** Controls document quotas to be sent to Live Metrics. */ quotaInfo?: QuotaConfigurationInfo; } /** A metric configuration set by UX to scope the metrics it's interested in. */ export interface DerivedMetricInfo { /** metric configuration identifier. */ - id?: string; + id: string; /** Telemetry type. */ - telemetryType?: string; + telemetryType: string; /** A collection of filters to scope metrics that UX needs. */ - filterGroups?: FilterConjunctionGroupInfo[]; + filterGroups: FilterConjunctionGroupInfo[]; /** Telemetry's metric dimension whose value is to be aggregated. Example values: Duration, Count(),... */ - projection?: string; - /** Aggregation type. */ - aggregation?: DerivedMetricInfoAggregation; + projection: string; + /** Aggregation type. This is the aggregation done from everything within a single server. */ + aggregation: AggregationType; + /** Aggregation type. This Aggregation is done across the values for all the servers taken together. */ + backEndAggregation: AggregationType; } /** An AND-connected group of FilterInfo objects. */ export interface FilterConjunctionGroupInfo { - filters?: FilterInfo[]; + /** An array of filters. */ + filters: FilterInfo[]; } /** A filter set on UX */ export interface FilterInfo { /** dimension name of the filter */ - fieldName?: string; + fieldName: string; /** Operator of the filter */ - predicate?: FilterInfoPredicate; - comparand?: string; + predicate: PredicateType; + /** Comparand of the filter */ + comparand: string; } /** Configurations/filters set by UX to scope the document/telemetry it's interested in. */ export interface DocumentStreamInfo { /** Identifier of the document stream initiated by a UX. */ - id?: string; + id: string; /** Gets or sets an OR-connected collection of filter groups. */ - documentFilterGroups?: DocumentFilterConjunctionGroupInfo[]; + documentFilterGroups: DocumentFilterConjunctionGroupInfo[]; } -/** A collection of filters for a specificy telemetry type. */ +/** A collection of filters for a specific telemetry type. */ export interface DocumentFilterConjunctionGroupInfo { /** Telemetry type. */ - telemetryType?: DocumentFilterConjunctionGroupInfoTelemetryType; - /** An AND-connected group of FilterInfo objects. */ - filters?: FilterConjunctionGroupInfo; + telemetryType: TelemetryType; + /** An array of filter groups. */ + filters: FilterConjunctionGroupInfo; } -/** Control document quotas for QuickPulse */ +/** Controls document quotas to be sent to Live Metrics. */ export interface QuotaConfigurationInfo { /** Initial quota */ initialQuota?: number; @@ -164,41 +171,45 @@ export interface QuotaConfigurationInfo { quotaAccrualRatePerSec: number; } -/** Optional http response body, whose existance carries additional error descriptions. */ +/** Optional http response body, whose existence carries additional error descriptions. */ export interface ServiceError { - /** A guid of the request that triggers the service error. */ - requestId?: string; + /** A globally unique identifier to identify the diagnostic context. It defaults to the empty GUID. */ + requestId: string; /** Service error response date time. */ - responseDateTime?: Date; + responseDateTime: string; /** Error code. */ - code?: string; + code: string; /** Error message. */ - message?: string; + message: string; /** Message of the exception that triggers the error response. */ - exception?: string; + exception: string; } -/** Request type document */ -export interface Request extends DocumentIngress { +/** Event document type. */ +export interface Event extends DocumentIngress { /** Polymorphic discriminator, which specifies the different types this object can be */ - documentType: "Request"; - /** Name of the request, e.g., 'GET /values/{id}'. */ + documentType: "Event"; + /** Event name. */ name?: string; - /** Request URL with all query string parameters. */ - url?: string; - /** Result of a request execution. For http requestss, it could be some HTTP status code. */ - responseCode?: string; - /** Request duration in ISO 8601 duration format, i.e., P[n]Y[n]M[n]DT[n]H[n]M[n]S or P[n]W. */ - duration?: string; } -/** Dependency type document */ +/** Exception document type. */ +export interface Exception extends DocumentIngress { + /** Polymorphic discriminator, which specifies the different types this object can be */ + documentType: "Exception"; + /** Exception type name. */ + exceptionType?: string; + /** Exception message. */ + exceptionMessage?: string; +} + +/** RemoteDependency document type. */ export interface RemoteDependency extends DocumentIngress { /** Polymorphic discriminator, which specifies the different types this object can be */ documentType: "RemoteDependency"; - /** Name of the command initiated with this dependency call, e.g., GET /username */ + /** Name of the command initiated with this dependency call, e.g., GET /username. */ name?: string; - /** URL of the dependency call to the target, with all query string parameters */ + /** URL of the dependency call to the target, with all query string parameters. */ commandName?: string; /** Result code of a dependency call. Examples are SQL error code and HTTP status code. */ resultCode?: string; @@ -206,112 +217,105 @@ export interface RemoteDependency extends DocumentIngress { duration?: string; } -/** Exception type document */ -export interface Exception extends DocumentIngress { - /** Polymorphic discriminator, which specifies the different types this object can be */ - documentType: "Exception"; - /** Exception type name. */ - exceptionType?: string; - /** Exception message. */ - exceptionMessage?: string; -} - -/** Event type document. */ -export interface Event extends DocumentIngress { +/** Request document type. */ +export interface Request extends DocumentIngress { /** Polymorphic discriminator, which specifies the different types this object can be */ - documentType: "Event"; - /** Event name. */ + documentType: "Request"; + /** Name of the request, e.g., 'GET /values/{id}'. */ name?: string; + /** Request URL with all query string parameters. */ + url?: string; + /** Result of a request execution. For http requests, it could be some HTTP status code. */ + responseCode?: string; + /** Request duration in ISO 8601 duration format, i.e., P[n]Y[n]M[n]DT[n]H[n]M[n]S or P[n]W. */ + duration?: string; } -/** Trace type name. */ +/** Trace document type. */ export interface Trace extends DocumentIngress { /** Polymorphic discriminator, which specifies the different types this object can be */ documentType: "Trace"; - /** Trace message */ + /** Trace message. */ message?: string; } -/** Defines headers for QuickpulseClient_ping operation. */ -export interface QuickpulseClientPingHeaders { - /** A boolean flag indicating whether there are active user sessions 'watching' the SDK's ikey. If true, SDK must start collecting data and post'ing it to QuickPulse. Otherwise, SDK must keep ping'ing. */ +/** Defines headers for QuickpulseClient_isSubscribed operation. */ +export interface QuickpulseClientIsSubscribedHeaders { + /** A boolean flag indicating whether there are active user sessions 'watching' the instrumentation key. If true, the client must start collecting data and posting it to Live Metrics. Otherwise, the client must keep pinging. */ xMsQpsSubscribed?: string; /** An encoded string that indicates whether the collection configuration is changed. */ xMsQpsConfigurationEtag?: string; - /** Recommended time (in milliseconds) before an SDK should ping the service again. This header exists only when ikey is not watched by UX. */ - xMsQpsServicePollingIntervalHint?: number; - /** Contains a URI of the service endpoint that an SDK must permanently use for the particular resource. This header exists only when SDK is talking to QuickPulse's global endpoint. */ + /** Recommended time (in milliseconds) before the client should ping the service again. This header exists only when the instrumentation key is not subscribed to. */ + xMsQpsServicePollingIntervalHint?: string; + /** Contains a URI of the service endpoint that the client must permanently use for the particular resource. This header exists only when the client is talking to Live Metrics global endpoint. */ xMsQpsServiceEndpointRedirectV2?: string; } -/** Defines headers for QuickpulseClient_post operation. */ -export interface QuickpulseClientPostHeaders { - /** Tells SDK whether the input ikey is subscribed to by UX. */ +/** Defines headers for QuickpulseClient_publish operation. */ +export interface QuickpulseClientPublishHeaders { + /** Tells the client whether the input instrumentation key is subscribed to. */ xMsQpsSubscribed?: string; /** An encoded string that indicates whether the collection configuration is changed. */ xMsQpsConfigurationEtag?: string; - /** A 8-byte long type of milliseconds QuickPulse suggests SDK polling period. */ - xMsQpsServicePollingIntervalHint?: number; - /** All official SDKs now uses v2 header. Use v2 instead. */ - xMsQpsServiceEndpointRedirect?: string; - /** URI of the service endpoint that an SDK must permanently use for the particular resource. */ - xMsQpsServiceEndpointRedirectV2?: string; } -/** Known values of {@link DocumentIngressDocumentType} that the service accepts. */ -export enum KnownDocumentIngressDocumentType { - /** Request */ +/** Known values of {@link DocumentType} that the service accepts. */ +export enum KnownDocumentType { + /** Represents a request telemetry type. */ Request = "Request", - /** RemoteDependency */ + /** Represents a remote dependency telemetry type. */ RemoteDependency = "RemoteDependency", - /** Exception */ + /** Represents an exception telemetry type. */ Exception = "Exception", - /** Event */ + /** Represents an event telemetry type. */ Event = "Event", - /** Trace */ + /** Represents a trace telemetry type. */ Trace = "Trace", + /** Represents an unknown telemetry type. */ + Unknown = "Unknown", } /** - * Defines values for DocumentIngressDocumentType. \ - * {@link KnownDocumentIngressDocumentType} can be used interchangeably with DocumentIngressDocumentType, + * Defines values for DocumentType. \ + * {@link KnownDocumentType} can be used interchangeably with DocumentType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Request** \ - * **RemoteDependency** \ - * **Exception** \ - * **Event** \ - * **Trace** + * **Request**: Represents a request telemetry type. \ + * **RemoteDependency**: Represents a remote dependency telemetry type. \ + * **Exception**: Represents an exception telemetry type. \ + * **Event**: Represents an event telemetry type. \ + * **Trace**: Represents a trace telemetry type. \ + * **Unknown**: Represents an unknown telemetry type. */ -export type DocumentIngressDocumentType = string; +export type DocumentType = string; /** Known values of {@link CollectionConfigurationErrorType} that the service accepts. */ export enum KnownCollectionConfigurationErrorType { - /** Unknown */ + /** Unknown error type. */ Unknown = "Unknown", - /** PerformanceCounterParsing */ + /** Performance counter parsing error. */ PerformanceCounterParsing = "PerformanceCounterParsing", - /** PerformanceCounterUnexpected */ + /** Performance counter unexpected error. */ PerformanceCounterUnexpected = "PerformanceCounterUnexpected", - /** PerformanceCounterDuplicateIds */ + /** Performance counter duplicate ids. */ PerformanceCounterDuplicateIds = "PerformanceCounterDuplicateIds", - /** DocumentStreamDuplicateIds */ + /** Document stream duplication ids. */ DocumentStreamDuplicateIds = "DocumentStreamDuplicateIds", - /** DocumentStreamFailureToCreate */ + /** Document stream failed to create. */ DocumentStreamFailureToCreate = "DocumentStreamFailureToCreate", - /** DocumentStreamFailureToCreateFilterUnexpected */ + /** Document stream failed to create filter unexpectedly. */ DocumentStreamFailureToCreateFilterUnexpected = "DocumentStreamFailureToCreateFilterUnexpected", - /** MetricDuplicateIds */ + /** Metric duplicate ids. */ MetricDuplicateIds = "MetricDuplicateIds", - /** MetricTelemetryTypeUnsupported */ + /** Metric telemetry type unsupported. */ MetricTelemetryTypeUnsupported = "MetricTelemetryTypeUnsupported", - /** MetricFailureToCreate */ + /** Metric failed to create. */ MetricFailureToCreate = "MetricFailureToCreate", - /** MetricFailureToCreateFilterUnexpected */ + /** Metric failed to create filter unexpectedly. */ MetricFailureToCreateFilterUnexpected = "MetricFailureToCreateFilterUnexpected", - /** FilterFailureToCreateUnexpected */ + /** Filter failed to create unexpectedly. */ FilterFailureToCreateUnexpected = "FilterFailureToCreateUnexpected", - /** CollectionConfigurationFailureToCreateUnexpected */ + /** Collection configuration failed to create unexpectedly. */ CollectionConfigurationFailureToCreateUnexpected = "CollectionConfigurationFailureToCreateUnexpected", } @@ -320,162 +324,159 @@ export enum KnownCollectionConfigurationErrorType { * {@link KnownCollectionConfigurationErrorType} can be used interchangeably with CollectionConfigurationErrorType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Unknown** \ - * **PerformanceCounterParsing** \ - * **PerformanceCounterUnexpected** \ - * **PerformanceCounterDuplicateIds** \ - * **DocumentStreamDuplicateIds** \ - * **DocumentStreamFailureToCreate** \ - * **DocumentStreamFailureToCreateFilterUnexpected** \ - * **MetricDuplicateIds** \ - * **MetricTelemetryTypeUnsupported** \ - * **MetricFailureToCreate** \ - * **MetricFailureToCreateFilterUnexpected** \ - * **FilterFailureToCreateUnexpected** \ - * **CollectionConfigurationFailureToCreateUnexpected** + * **Unknown**: Unknown error type. \ + * **PerformanceCounterParsing**: Performance counter parsing error. \ + * **PerformanceCounterUnexpected**: Performance counter unexpected error. \ + * **PerformanceCounterDuplicateIds**: Performance counter duplicate ids. \ + * **DocumentStreamDuplicateIds**: Document stream duplication ids. \ + * **DocumentStreamFailureToCreate**: Document stream failed to create. \ + * **DocumentStreamFailureToCreateFilterUnexpected**: Document stream failed to create filter unexpectedly. \ + * **MetricDuplicateIds**: Metric duplicate ids. \ + * **MetricTelemetryTypeUnsupported**: Metric telemetry type unsupported. \ + * **MetricFailureToCreate**: Metric failed to create. \ + * **MetricFailureToCreateFilterUnexpected**: Metric failed to create filter unexpectedly. \ + * **FilterFailureToCreateUnexpected**: Filter failed to create unexpectedly. \ + * **CollectionConfigurationFailureToCreateUnexpected**: Collection configuration failed to create unexpectedly. */ export type CollectionConfigurationErrorType = string; -/** Known values of {@link FilterInfoPredicate} that the service accepts. */ -export enum KnownFilterInfoPredicate { - /** Equal */ +/** Known values of {@link PredicateType} that the service accepts. */ +export enum KnownPredicateType { + /** Represents an equality predicate. */ Equal = "Equal", - /** NotEqual */ + /** Represents a not-equal predicate. */ NotEqual = "NotEqual", - /** LessThan */ + /** Represents a less-than predicate. */ LessThan = "LessThan", - /** GreaterThan */ + /** Represents a greater-than predicate. */ GreaterThan = "GreaterThan", - /** LessThanOrEqual */ + /** Represents a less-than-or-equal predicate. */ LessThanOrEqual = "LessThanOrEqual", - /** GreaterThanOrEqual */ + /** Represents a greater-than-or-equal predicate. */ GreaterThanOrEqual = "GreaterThanOrEqual", - /** Contains */ + /** Represents a contains predicate. */ Contains = "Contains", - /** DoesNotContain */ + /** Represents a does-not-contain predicate. */ DoesNotContain = "DoesNotContain", } /** - * Defines values for FilterInfoPredicate. \ - * {@link KnownFilterInfoPredicate} can be used interchangeably with FilterInfoPredicate, + * Defines values for PredicateType. \ + * {@link KnownPredicateType} can be used interchangeably with PredicateType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Equal** \ - * **NotEqual** \ - * **LessThan** \ - * **GreaterThan** \ - * **LessThanOrEqual** \ - * **GreaterThanOrEqual** \ - * **Contains** \ - * **DoesNotContain** + * **Equal**: Represents an equality predicate. \ + * **NotEqual**: Represents a not-equal predicate. \ + * **LessThan**: Represents a less-than predicate. \ + * **GreaterThan**: Represents a greater-than predicate. \ + * **LessThanOrEqual**: Represents a less-than-or-equal predicate. \ + * **GreaterThanOrEqual**: Represents a greater-than-or-equal predicate. \ + * **Contains**: Represents a contains predicate. \ + * **DoesNotContain**: Represents a does-not-contain predicate. */ -export type FilterInfoPredicate = string; +export type PredicateType = string; -/** Known values of {@link DerivedMetricInfoAggregation} that the service accepts. */ -export enum KnownDerivedMetricInfoAggregation { - /** Avg */ +/** Known values of {@link AggregationType} that the service accepts. */ +export enum KnownAggregationType { + /** Average */ Avg = "Avg", /** Sum */ Sum = "Sum", - /** Min */ + /** Minimum */ Min = "Min", - /** Max */ + /** Maximum */ Max = "Max", } /** - * Defines values for DerivedMetricInfoAggregation. \ - * {@link KnownDerivedMetricInfoAggregation} can be used interchangeably with DerivedMetricInfoAggregation, + * Defines values for AggregationType. \ + * {@link KnownAggregationType} can be used interchangeably with AggregationType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Avg** \ - * **Sum** \ - * **Min** \ - * **Max** + * **Avg**: Average \ + * **Sum**: Sum \ + * **Min**: Minimum \ + * **Max**: Maximum */ -export type DerivedMetricInfoAggregation = string; +export type AggregationType = string; -/** Known values of {@link DocumentFilterConjunctionGroupInfoTelemetryType} that the service accepts. */ -export enum KnownDocumentFilterConjunctionGroupInfoTelemetryType { - /** Request */ +/** Known values of {@link TelemetryType} that the service accepts. */ +export enum KnownTelemetryType { + /** Represents a request telemetry type. */ Request = "Request", - /** Dependency */ + /** Represents a dependency telemetry type. */ Dependency = "Dependency", - /** Exception */ + /** Represents an exception telemetry type. */ Exception = "Exception", - /** Event */ + /** Represents an event telemetry type. */ Event = "Event", - /** Metric */ + /** Represents a metric telemetry type. */ Metric = "Metric", - /** PerformanceCounter */ + /** Represents a performance counter telemetry type. */ PerformanceCounter = "PerformanceCounter", - /** Trace */ + /** Represents a trace telemetry type. */ Trace = "Trace", } /** - * Defines values for DocumentFilterConjunctionGroupInfoTelemetryType. \ - * {@link KnownDocumentFilterConjunctionGroupInfoTelemetryType} can be used interchangeably with DocumentFilterConjunctionGroupInfoTelemetryType, + * Defines values for TelemetryType. \ + * {@link KnownTelemetryType} can be used interchangeably with TelemetryType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Request** \ - * **Dependency** \ - * **Exception** \ - * **Event** \ - * **Metric** \ - * **PerformanceCounter** \ - * **Trace** + * **Request**: Represents a request telemetry type. \ + * **Dependency**: Represents a dependency telemetry type. \ + * **Exception**: Represents an exception telemetry type. \ + * **Event**: Represents an event telemetry type. \ + * **Metric**: Represents a metric telemetry type. \ + * **PerformanceCounter**: Represents a performance counter telemetry type. \ + * **Trace**: Represents a trace telemetry type. */ -export type DocumentFilterConjunctionGroupInfoTelemetryType = string; +export type TelemetryType = string; /** Optional parameters. */ -export interface PingOptionalParams extends coreClient.OperationOptions { - /** Data contract between SDK and QuickPulse. /QuickPulseService.svc/ping uses this as a backup source of machine name, instance name and invariant version. */ +export interface IsSubscribedOptionalParams + extends coreClient.OperationOptions { + /** Data contract between Application Insights client SDK and Live Metrics. /QuickPulseService.svc/ping uses this as a backup source of machine name, instance name and invariant version. */ monitoringDataPoint?: MonitoringDataPoint; - /** Deprecated. An alternative way to pass api key. Use AAD auth instead. */ - apikey?: string; - /** Timestamp when SDK transmits the metrics and documents to QuickPulse. A 8-byte long type of ticks. */ - xMsQpsTransmissionTime?: number; - /** Computer name where AI SDK lives. QuickPulse uses machine name with instance name as a backup. */ - xMsQpsMachineName?: string; - /** Service instance name where AI SDK lives. QuickPulse uses machine name with instance name as a backup. */ - xMsQpsInstanceName?: string; - /** Identifies an AI SDK as trusted agent to report metrics and documents. */ - xMsQpsStreamId?: string; - /** Cloud role name for which SDK reports metrics and documents. */ - xMsQpsRoleName?: string; - /** Version/generation of the data contract (MonitoringDataPoint) between SDK and QuickPulse. */ - xMsQpsInvariantVersion?: string; + /** Timestamp when the client transmits the metrics and documents to Live Metrics. A 8-byte long type of ticks. */ + transmissionTime?: number; + /** Computer name where Application Insights SDK lives. Live Metrics uses machine name with instance name as a backup. */ + machineName?: string; + /** Service instance name where Application Insights SDK lives. Live Metrics uses machine name with instance name as a backup. */ + instanceName?: string; + /** Identifies an Application Insights SDK as trusted agent to report metrics and documents. */ + streamId?: string; + /** Cloud role name of the service. */ + roleName?: string; + /** Version/generation of the data contract (MonitoringDataPoint) between the client and Live Metrics. */ + invariantVersion?: string; /** An encoded string that indicates whether the collection configuration is changed. */ - xMsQpsConfigurationEtag?: string; + configurationEtag?: string; } -/** Contains response data for the ping operation. */ -export type PingResponse = QuickpulseClientPingHeaders & +/** Contains response data for the isSubscribed operation. */ +export type IsSubscribedResponse = QuickpulseClientIsSubscribedHeaders & CollectionConfigurationInfo; /** Optional parameters. */ -export interface PostOptionalParams extends coreClient.OperationOptions { - /** An alternative way to pass api key. Deprecated. Use AAD authentication instead. */ - apikey?: string; - /** Timestamp when SDK transmits the metrics and documents to QuickPulse. A 8-byte long type of ticks. */ - xMsQpsTransmissionTime?: number; +export interface PublishOptionalParams extends coreClient.OperationOptions { + /** Timestamp when the client transmits the metrics and documents to Live Metrics. A 8-byte long type of ticks. */ + transmissionTime?: number; /** An encoded string that indicates whether the collection configuration is changed. */ - xMsQpsConfigurationEtag?: string; - /** Data contract between SDK and QuickPulse. /QuickPulseService.svc/post uses this to publish metrics and documents to the backend QuickPulse server. */ + configurationEtag?: string; + /** Data contract between the client and Live Metrics. /QuickPulseService.svc/ping uses this as a backup source of machine name, instance name and invariant version. */ monitoringDataPoints?: MonitoringDataPoint[]; } -/** Contains response data for the post operation. */ -export type PostResponse = QuickpulseClientPostHeaders & +/** Contains response data for the publish operation. */ +export type PublishResponse = QuickpulseClientPublishHeaders & CollectionConfigurationInfo; /** Optional parameters. */ export interface QuickpulseClientOptionalParams extends coreClient.ServiceClientOptions { - /** QuickPulse endpoint: https://rt.services.visualstudio.com */ - host?: string; + /** Api Version */ + apiVersion?: string; /** Overrides client endpoint. */ endpoint?: string; } diff --git a/sdk/monitor/monitor-opentelemetry/src/generated/models/mappers.ts b/sdk/monitor/monitor-opentelemetry/src/generated/models/mappers.ts index bb5052eb21dd..5cb6441383ca 100644 --- a/sdk/monitor/monitor-opentelemetry/src/generated/models/mappers.ts +++ b/sdk/monitor/monitor-opentelemetry/src/generated/models/mappers.ts @@ -15,36 +15,42 @@ export const MonitoringDataPoint: coreClient.CompositeMapper = { modelProperties: { version: { serializedName: "Version", + required: true, type: { name: "String", }, }, invariantVersion: { serializedName: "InvariantVersion", + required: true, type: { name: "Number", }, }, instance: { serializedName: "Instance", + required: true, type: { name: "String", }, }, roleName: { serializedName: "RoleName", + required: true, type: { name: "String", }, }, machineName: { serializedName: "MachineName", + required: true, type: { name: "String", }, }, streamId: { serializedName: "StreamId", + required: true, type: { name: "String", }, @@ -63,12 +69,14 @@ export const MonitoringDataPoint: coreClient.CompositeMapper = { }, isWebApp: { serializedName: "IsWebApp", + required: true, type: { name: "Boolean", }, }, performanceCollectionSupported: { serializedName: "PerformanceCollectionSupported", + required: true, type: { name: "Boolean", }, @@ -132,18 +140,21 @@ export const MetricPoint: coreClient.CompositeMapper = { modelProperties: { name: { serializedName: "Name", + required: true, type: { name: "String", }, }, value: { serializedName: "Value", + required: true, type: { name: "Number", }, }, weight: { serializedName: "Weight", + required: true, type: { name: "Number", }, @@ -203,12 +214,14 @@ export const KeyValuePairString: coreClient.CompositeMapper = { modelProperties: { key: { serializedName: "key", + required: true, type: { name: "String", }, }, value: { serializedName: "value", + required: true, type: { name: "String", }, @@ -224,12 +237,14 @@ export const ProcessCpuData: coreClient.CompositeMapper = { modelProperties: { processName: { serializedName: "ProcessName", + required: true, type: { name: "String", }, }, cpuPercentage: { serializedName: "CpuPercentage", + required: true, type: { name: "Number", }, @@ -245,24 +260,28 @@ export const CollectionConfigurationError: coreClient.CompositeMapper = { modelProperties: { collectionConfigurationErrorType: { serializedName: "CollectionConfigurationErrorType", + required: true, type: { name: "String", }, }, message: { serializedName: "Message", + required: true, type: { name: "String", }, }, fullException: { serializedName: "FullException", + required: true, type: { name: "String", }, }, data: { serializedName: "Data", + required: true, type: { name: "Sequence", element: { @@ -282,14 +301,16 @@ export const CollectionConfigurationInfo: coreClient.CompositeMapper = { name: "Composite", className: "CollectionConfigurationInfo", modelProperties: { - etag: { - serializedName: "Etag", + eTag: { + serializedName: "ETag", + required: true, type: { name: "String", }, }, metrics: { serializedName: "Metrics", + required: true, type: { name: "Sequence", element: { @@ -302,6 +323,7 @@ export const CollectionConfigurationInfo: coreClient.CompositeMapper = { }, documentStreams: { serializedName: "DocumentStreams", + required: true, type: { name: "Sequence", element: { @@ -330,18 +352,21 @@ export const DerivedMetricInfo: coreClient.CompositeMapper = { modelProperties: { id: { serializedName: "Id", + required: true, type: { name: "String", }, }, telemetryType: { serializedName: "TelemetryType", + required: true, type: { name: "String", }, }, filterGroups: { serializedName: "FilterGroups", + required: true, type: { name: "Sequence", element: { @@ -354,12 +379,21 @@ export const DerivedMetricInfo: coreClient.CompositeMapper = { }, projection: { serializedName: "Projection", + required: true, type: { name: "String", }, }, aggregation: { serializedName: "Aggregation", + required: true, + type: { + name: "String", + }, + }, + backEndAggregation: { + serializedName: "BackEndAggregation", + required: true, type: { name: "String", }, @@ -375,6 +409,7 @@ export const FilterConjunctionGroupInfo: coreClient.CompositeMapper = { modelProperties: { filters: { serializedName: "Filters", + required: true, type: { name: "Sequence", element: { @@ -396,18 +431,21 @@ export const FilterInfo: coreClient.CompositeMapper = { modelProperties: { fieldName: { serializedName: "FieldName", + required: true, type: { name: "String", }, }, predicate: { serializedName: "Predicate", + required: true, type: { name: "String", }, }, comparand: { serializedName: "Comparand", + required: true, type: { name: "String", }, @@ -423,12 +461,14 @@ export const DocumentStreamInfo: coreClient.CompositeMapper = { modelProperties: { id: { serializedName: "Id", + required: true, type: { name: "String", }, }, documentFilterGroups: { serializedName: "DocumentFilterGroups", + required: true, type: { name: "Sequence", element: { @@ -450,6 +490,7 @@ export const DocumentFilterConjunctionGroupInfo: coreClient.CompositeMapper = { modelProperties: { telemetryType: { serializedName: "TelemetryType", + required: true, type: { name: "String", }, @@ -500,31 +541,37 @@ export const ServiceError: coreClient.CompositeMapper = { className: "ServiceError", modelProperties: { requestId: { + defaultValue: "00000000-0000-0000-0000-000000000000", serializedName: "RequestId", + required: true, type: { name: "String", }, }, responseDateTime: { serializedName: "ResponseDateTime", + required: true, type: { - name: "DateTime", + name: "String", }, }, code: { serializedName: "Code", + required: true, type: { name: "String", }, }, message: { serializedName: "Message", + required: true, type: { name: "String", }, }, exception: { serializedName: "Exception", + required: true, type: { name: "String", }, @@ -533,44 +580,51 @@ export const ServiceError: coreClient.CompositeMapper = { }, }; -export const Request: coreClient.CompositeMapper = { - serializedName: "Request", +export const Event: coreClient.CompositeMapper = { + serializedName: "Event", type: { name: "Composite", - className: "Request", + className: "Event", uberParent: "DocumentIngress", polymorphicDiscriminator: DocumentIngress.type.polymorphicDiscriminator, modelProperties: { ...DocumentIngress.type.modelProperties, name: { constraints: { - MaxLength: 1024, + MaxLength: 512, }, serializedName: "Name", type: { name: "String", }, }, - url: { + }, + }, +}; + +export const Exception: coreClient.CompositeMapper = { + serializedName: "Exception", + type: { + name: "Composite", + className: "Exception", + uberParent: "DocumentIngress", + polymorphicDiscriminator: DocumentIngress.type.polymorphicDiscriminator, + modelProperties: { + ...DocumentIngress.type.modelProperties, + exceptionType: { constraints: { - MaxLength: 2048, + MaxLength: 1024, }, - serializedName: "Url", + serializedName: "ExceptionType", type: { name: "String", }, }, - responseCode: { + exceptionMessage: { constraints: { - MaxLength: 1024, - }, - serializedName: "ResponseCode", - type: { - name: "String", + MaxLength: 32768, }, - }, - duration: { - serializedName: "Duration", + serializedName: "ExceptionMessage", type: { name: "String", }, @@ -625,51 +679,44 @@ export const RemoteDependency: coreClient.CompositeMapper = { }, }; -export const Exception: coreClient.CompositeMapper = { - serializedName: "Exception", +export const Request: coreClient.CompositeMapper = { + serializedName: "Request", type: { name: "Composite", - className: "Exception", + className: "Request", uberParent: "DocumentIngress", polymorphicDiscriminator: DocumentIngress.type.polymorphicDiscriminator, modelProperties: { ...DocumentIngress.type.modelProperties, - exceptionType: { + name: { constraints: { MaxLength: 1024, }, - serializedName: "ExceptionType", + serializedName: "Name", type: { name: "String", }, }, - exceptionMessage: { + url: { constraints: { - MaxLength: 32768, + MaxLength: 2048, }, - serializedName: "ExceptionMessage", + serializedName: "Url", type: { name: "String", }, }, - }, - }, -}; - -export const Event: coreClient.CompositeMapper = { - serializedName: "Event", - type: { - name: "Composite", - className: "Event", - uberParent: "DocumentIngress", - polymorphicDiscriminator: DocumentIngress.type.polymorphicDiscriminator, - modelProperties: { - ...DocumentIngress.type.modelProperties, - name: { + responseCode: { constraints: { - MaxLength: 512, + MaxLength: 1024, }, - serializedName: "Name", + serializedName: "ResponseCode", + type: { + name: "String", + }, + }, + duration: { + serializedName: "Duration", type: { name: "String", }, @@ -700,10 +747,10 @@ export const Trace: coreClient.CompositeMapper = { }, }; -export const QuickpulseClientPingHeaders: coreClient.CompositeMapper = { +export const QuickpulseClientIsSubscribedHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QuickpulseClientPingHeaders", + className: "QuickpulseClientIsSubscribedHeaders", modelProperties: { xMsQpsSubscribed: { serializedName: "x-ms-qps-subscribed", @@ -720,7 +767,7 @@ export const QuickpulseClientPingHeaders: coreClient.CompositeMapper = { xMsQpsServicePollingIntervalHint: { serializedName: "x-ms-qps-service-polling-interval-hint", type: { - name: "Number", + name: "String", }, }, xMsQpsServiceEndpointRedirectV2: { @@ -733,10 +780,10 @@ export const QuickpulseClientPingHeaders: coreClient.CompositeMapper = { }, }; -export const QuickpulseClientPostHeaders: coreClient.CompositeMapper = { +export const QuickpulseClientPublishHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QuickpulseClientPostHeaders", + className: "QuickpulseClientPublishHeaders", modelProperties: { xMsQpsSubscribed: { serializedName: "x-ms-qps-subscribed", @@ -750,33 +797,15 @@ export const QuickpulseClientPostHeaders: coreClient.CompositeMapper = { name: "String", }, }, - xMsQpsServicePollingIntervalHint: { - serializedName: "x-ms-qps-service-polling-interval-hint", - type: { - name: "Number", - }, - }, - xMsQpsServiceEndpointRedirect: { - serializedName: "x-ms-qps-service-endpoint-redirect", - type: { - name: "String", - }, - }, - xMsQpsServiceEndpointRedirectV2: { - serializedName: "x-ms-qps-service-endpoint-redirect-v2", - type: { - name: "String", - }, - }, }, }, }; export let discriminators = { DocumentIngress: DocumentIngress, - "DocumentIngress.Request": Request, - "DocumentIngress.RemoteDependency": RemoteDependency, - "DocumentIngress.Exception": Exception, "DocumentIngress.Event": Event, + "DocumentIngress.Exception": Exception, + "DocumentIngress.RemoteDependency": RemoteDependency, + "DocumentIngress.Request": Request, "DocumentIngress.Trace": Trace, }; diff --git a/sdk/monitor/monitor-opentelemetry/src/generated/models/parameters.ts b/sdk/monitor/monitor-opentelemetry/src/generated/models/parameters.ts index e6adbd3338bc..359b631dbd02 100644 --- a/sdk/monitor/monitor-opentelemetry/src/generated/models/parameters.ts +++ b/sdk/monitor/monitor-opentelemetry/src/generated/models/parameters.ts @@ -42,41 +42,42 @@ export const accept: OperationParameter = { }, }; -export const host: OperationURLParameter = { - parameterPath: "host", +export const endpoint: OperationURLParameter = { + parameterPath: "endpoint", mapper: { - serializedName: "Host", + serializedName: "endpoint", required: true, type: { name: "String", }, }, - skipEncoding: true, }; -export const ikey: OperationQueryParameter = { - parameterPath: "ikey", +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - serializedName: "ikey", - required: true, + defaultValue: "2024-04-01-preview", + isConstant: true, + serializedName: "api-version", type: { name: "String", }, }, }; -export const apikey: OperationQueryParameter = { - parameterPath: ["options", "apikey"], +export const ikey: OperationQueryParameter = { + parameterPath: "ikey", mapper: { - serializedName: "apikey", + serializedName: "ikey", + required: true, type: { name: "String", }, }, }; -export const xMsQpsTransmissionTime: OperationParameter = { - parameterPath: ["options", "xMsQpsTransmissionTime"], +export const transmissionTime: OperationParameter = { + parameterPath: ["options", "transmissionTime"], mapper: { serializedName: "x-ms-qps-transmission-time", type: { @@ -85,8 +86,8 @@ export const xMsQpsTransmissionTime: OperationParameter = { }, }; -export const xMsQpsMachineName: OperationParameter = { - parameterPath: ["options", "xMsQpsMachineName"], +export const machineName: OperationParameter = { + parameterPath: ["options", "machineName"], mapper: { serializedName: "x-ms-qps-machine-name", type: { @@ -95,8 +96,8 @@ export const xMsQpsMachineName: OperationParameter = { }, }; -export const xMsQpsInstanceName: OperationParameter = { - parameterPath: ["options", "xMsQpsInstanceName"], +export const instanceName: OperationParameter = { + parameterPath: ["options", "instanceName"], mapper: { serializedName: "x-ms-qps-instance-name", type: { @@ -105,8 +106,8 @@ export const xMsQpsInstanceName: OperationParameter = { }, }; -export const xMsQpsStreamId: OperationParameter = { - parameterPath: ["options", "xMsQpsStreamId"], +export const streamId: OperationParameter = { + parameterPath: ["options", "streamId"], mapper: { serializedName: "x-ms-qps-stream-id", type: { @@ -115,8 +116,8 @@ export const xMsQpsStreamId: OperationParameter = { }, }; -export const xMsQpsRoleName: OperationParameter = { - parameterPath: ["options", "xMsQpsRoleName"], +export const roleName: OperationParameter = { + parameterPath: ["options", "roleName"], mapper: { serializedName: "x-ms-qps-role-name", type: { @@ -125,8 +126,8 @@ export const xMsQpsRoleName: OperationParameter = { }, }; -export const xMsQpsInvariantVersion: OperationParameter = { - parameterPath: ["options", "xMsQpsInvariantVersion"], +export const invariantVersion: OperationParameter = { + parameterPath: ["options", "invariantVersion"], mapper: { serializedName: "x-ms-qps-invariant-version", type: { @@ -135,8 +136,8 @@ export const xMsQpsInvariantVersion: OperationParameter = { }, }; -export const xMsQpsConfigurationEtag: OperationParameter = { - parameterPath: ["options", "xMsQpsConfigurationEtag"], +export const configurationEtag: OperationParameter = { + parameterPath: ["options", "configurationEtag"], mapper: { serializedName: "x-ms-qps-configuration-etag", type: { diff --git a/sdk/monitor/monitor-opentelemetry/src/generated/quickpulseClient.ts b/sdk/monitor/monitor-opentelemetry/src/generated/quickpulseClient.ts index ceeb9d8f891e..30f3666aa087 100644 --- a/sdk/monitor/monitor-opentelemetry/src/generated/quickpulseClient.ts +++ b/sdk/monitor/monitor-opentelemetry/src/generated/quickpulseClient.ts @@ -7,18 +7,23 @@ */ import * as coreClient from "@azure/core-client"; +import { + PipelineRequest, + PipelineResponse, + SendRequest, +} from "@azure/core-rest-pipeline"; import * as Parameters from "./models/parameters"; import * as Mappers from "./models/mappers"; import { QuickpulseClientOptionalParams, - PingOptionalParams, - PingResponse, - PostOptionalParams, - PostResponse, + IsSubscribedOptionalParams, + IsSubscribedResponse, + PublishOptionalParams, + PublishResponse, } from "./models"; export class QuickpulseClient extends coreClient.ServiceClient { - host: string; + apiVersion: string; /** * Initializes a new instance of the QuickpulseClient class. @@ -45,116 +50,132 @@ export class QuickpulseClient extends coreClient.ServiceClient { userAgentOptions: { userAgentPrefix, }, - endpoint: options.endpoint ?? options.baseUri ?? "{Host}", + endpoint: options.endpoint ?? options.baseUri ?? "{endpoint}", }; super(optionsWithDefaults); // Assigning values to Constant parameters - this.host = options.host || "https://rt.services.visualstudio.com"; + this.apiVersion = options.apiVersion || "2024-04-01-preview"; + this.addCustomApiVersionPolicy(options.apiVersion); + } + + /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ + private addCustomApiVersionPolicy(apiVersion?: string) { + if (!apiVersion) { + return; + } + const apiVersionPolicy = { + name: "CustomApiVersionPolicy", + async sendRequest( + request: PipelineRequest, + next: SendRequest, + ): Promise { + const param = request.url.split("?"); + if (param.length > 1) { + const newParams = param[1].split("&").map((item) => { + if (item.indexOf("api-version") > -1) { + return "api-version=" + apiVersion; + } else { + return item; + } + }); + request.url = param[0] + "?" + newParams.join("&"); + } + return next(request); + }, + }; + this.pipeline.addPolicy(apiVersionPolicy); } /** - * SDK ping - * @param ikey The ikey of the target Application Insights component that displays server info sent by - * /QuickPulseService.svc/ping + * Determine whether there is any subscription to the metrics and documents. + * @param endpoint The endpoint of the Live Metrics service. + * @param ikey The instrumentation key of the target Application Insights component for which the + * client checks whether there's any subscription to it. * @param options The options parameters. */ - ping(ikey: string, options?: PingOptionalParams): Promise { - return this.sendOperationRequest({ ikey, options }, pingOperationSpec); + isSubscribed( + endpoint: string, + ikey: string, + options?: IsSubscribedOptionalParams, + ): Promise { + return this.sendOperationRequest( + { endpoint, ikey, options }, + isSubscribedOperationSpec, + ); } /** - * SDK post - * @param ikey The ikey of the target Application Insights component that displays metrics and - * documents sent by /QuickPulseService.svc/post + * Publish live metrics to the Live Metrics service when there is an active subscription to the + * metrics. + * @param endpoint The endpoint of the Live Metrics service. + * @param ikey The instrumentation key of the target Application Insights component for which the + * client checks whether there's any subscription to it. * @param options The options parameters. */ - post(ikey: string, options?: PostOptionalParams): Promise { - return this.sendOperationRequest({ ikey, options }, postOperationSpec); + publish( + endpoint: string, + ikey: string, + options?: PublishOptionalParams, + ): Promise { + return this.sendOperationRequest( + { endpoint, ikey, options }, + publishOperationSpec, + ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const pingOperationSpec: coreClient.OperationSpec = { +const isSubscribedOperationSpec: coreClient.OperationSpec = { path: "/QuickPulseService.svc/ping", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.CollectionConfigurationInfo, - headersMapper: Mappers.QuickpulseClientPingHeaders, - }, - 400: { - bodyMapper: Mappers.ServiceError, - }, - 401: { - bodyMapper: Mappers.ServiceError, - }, - 403: { - bodyMapper: Mappers.ServiceError, - }, - 404: { - bodyMapper: Mappers.ServiceError, - }, - 500: { - bodyMapper: Mappers.ServiceError, + headersMapper: Mappers.QuickpulseClientIsSubscribedHeaders, }, - 503: { + default: { bodyMapper: Mappers.ServiceError, }, }, requestBody: Parameters.monitoringDataPoint, - queryParameters: [Parameters.ikey, Parameters.apikey], - urlParameters: [Parameters.host], + queryParameters: [Parameters.apiVersion, Parameters.ikey], + urlParameters: [Parameters.endpoint], headerParameters: [ Parameters.contentType, Parameters.accept, - Parameters.xMsQpsTransmissionTime, - Parameters.xMsQpsMachineName, - Parameters.xMsQpsInstanceName, - Parameters.xMsQpsStreamId, - Parameters.xMsQpsRoleName, - Parameters.xMsQpsInvariantVersion, - Parameters.xMsQpsConfigurationEtag, + Parameters.transmissionTime, + Parameters.machineName, + Parameters.instanceName, + Parameters.streamId, + Parameters.roleName, + Parameters.invariantVersion, + Parameters.configurationEtag, ], mediaType: "json", serializer, }; -const postOperationSpec: coreClient.OperationSpec = { +const publishOperationSpec: coreClient.OperationSpec = { path: "/QuickPulseService.svc/post", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.CollectionConfigurationInfo, - headersMapper: Mappers.QuickpulseClientPostHeaders, - }, - 400: { - bodyMapper: Mappers.ServiceError, - }, - 401: { - bodyMapper: Mappers.ServiceError, - }, - 403: { - bodyMapper: Mappers.ServiceError, - }, - 404: { - bodyMapper: Mappers.ServiceError, - }, - 500: { - bodyMapper: Mappers.ServiceError, + headersMapper: Mappers.QuickpulseClientPublishHeaders, }, - 503: { + default: { bodyMapper: Mappers.ServiceError, }, }, requestBody: Parameters.monitoringDataPoints, - queryParameters: [Parameters.ikey, Parameters.apikey], - urlParameters: [Parameters.host], + queryParameters: [Parameters.apiVersion, Parameters.ikey], + urlParameters: [Parameters.endpoint], headerParameters: [ Parameters.contentType, Parameters.accept, - Parameters.xMsQpsTransmissionTime, - Parameters.xMsQpsConfigurationEtag, + Parameters.transmissionTime, + Parameters.configurationEtag, ], mediaType: "json", serializer, diff --git a/sdk/monitor/monitor-opentelemetry/src/index.ts b/sdk/monitor/monitor-opentelemetry/src/index.ts index 1ee9b22f36b8..c9db6c67ce69 100644 --- a/sdk/monitor/monitor-opentelemetry/src/index.ts +++ b/sdk/monitor/monitor-opentelemetry/src/index.ts @@ -65,7 +65,7 @@ export function useAzureMonitor(options?: AzureMonitorOpenTelemetryOptions) { logRecordProcessor: logHandler.getAzureLogRecordProcessor(), resource: config.resource, sampler: traceHandler.getSampler(), - spanProcessor: traceHandler.getAzureMonitorSpanProcessor(), + spanProcessors: [traceHandler.getAzureMonitorSpanProcessor()], }; sdk = new NodeSDK(sdkConfig); setSdkPrefix(); diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/export/exporter.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/export/exporter.ts index 0744845a0f8f..1800599d1f7f 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/export/exporter.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/export/exporter.ts @@ -13,8 +13,8 @@ import { QuickpulseSender } from "./sender"; import { DocumentIngress, MonitoringDataPoint, - PostOptionalParams, - PostResponse, + PublishOptionalParams, + PublishResponse, } from "../../../generated"; import { getTransmissionTime, resourceMetricsToQuickpulseDataPoint } from "../utils"; @@ -23,7 +23,7 @@ import { getTransmissionTime, resourceMetricsToQuickpulseDataPoint } from "../ut */ export class QuickpulseMetricExporter implements PushMetricExporter { private sender: QuickpulseSender; - private postCallback: (response: PostResponse | undefined) => void; + private postCallback: (response: PublishResponse | undefined) => void; private getDocumentsFn: () => DocumentIngress[]; // Monitoring data point with common properties private baseMonitoringDataPoint: MonitoringDataPoint; @@ -56,18 +56,18 @@ export class QuickpulseMetricExporter implements PushMetricExporter { resultCallback: (result: ExportResult) => void, ): Promise { diag.info(`Exporting Live metrics(s). Converting to envelopes...`); - let optionalParams: PostOptionalParams = { + let optionalParams: PublishOptionalParams = { monitoringDataPoints: resourceMetricsToQuickpulseDataPoint( metrics, this.baseMonitoringDataPoint, this.getDocumentsFn(), ), - xMsQpsTransmissionTime: getTransmissionTime(), + transmissionTime: getTransmissionTime(), }; // Supress tracing until OpenTelemetry Metrics SDK support it await context.with(suppressTracing(context.active()), async () => { try { - let postResponse = await this.sender.post(optionalParams); + let postResponse = await this.sender.publish(optionalParams); this.postCallback(postResponse); resultCallback({ code: ExportResultCode.SUCCESS }); } catch (error) { diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/export/sender.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/export/sender.ts index d89d09a757c5..a71b2e0b0658 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/export/sender.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/export/sender.ts @@ -1,16 +1,17 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import url from "url"; -import { redirectPolicyName } from "@azure/core-rest-pipeline"; +import { RestError, redirectPolicyName } from "@azure/core-rest-pipeline"; +import { TokenCredential } from "@azure/core-auth"; +import { diag } from "@opentelemetry/api"; import { - PingOptionalParams, - PingResponse, - PostOptionalParams, - PostResponse, + IsSubscribedOptionalParams, + IsSubscribedResponse, + PublishOptionalParams, + PublishResponse, QuickpulseClient, QuickpulseClientOptionalParams, } from "../../../generated"; -import { TokenCredential } from "@azure/core-auth"; const applicationInsightsResource = "https://monitor.azure.com//.default"; @@ -22,6 +23,7 @@ export class QuickpulseSender { private readonly quickpulseClient: QuickpulseClient; private quickpulseClientOptions: QuickpulseClientOptionalParams; private instrumentationKey: string; + private endpointUrl: string; constructor(options: { endpointUrl: string; @@ -30,8 +32,9 @@ export class QuickpulseSender { aadAudience?: string; }) { // Build endpoint using provided configuration or default values + this.endpointUrl = options.endpointUrl; this.quickpulseClientOptions = { - host: options.endpointUrl, + endpoint: this.endpointUrl, }; this.instrumentationKey = options.instrumentationKey; @@ -53,28 +56,50 @@ export class QuickpulseSender { } /** - * Ping Quickpulse service + * isSubscribed Quickpulse service * @internal */ - async ping(optionalParams: PingOptionalParams): Promise { - let response = await this.quickpulseClient.ping(this.instrumentationKey, optionalParams); - return response; + async isSubscribed( + optionalParams: IsSubscribedOptionalParams, + ): Promise { + try { + let response = await this.quickpulseClient.isSubscribed( + this.endpointUrl, + this.instrumentationKey, + optionalParams, + ); + return response; + } catch (error: any) { + const restError = error as RestError; + diag.info("Failed to ping Quickpulse service", restError.message); + } + return; } /** - * Post Quickpulse service + * publish Quickpulse service * @internal */ - async post(optionalParams: PostOptionalParams): Promise { - let response = await this.quickpulseClient.post(this.instrumentationKey, optionalParams); - return response; + async publish(optionalParams: PublishOptionalParams): Promise { + try { + let response = await this.quickpulseClient.publish( + this.endpointUrl, + this.instrumentationKey, + optionalParams, + ); + return response; + } catch (error: any) { + const restError = error as RestError; + diag.warn("Failed to post Quickpulse service", restError.message); + } + return; } handlePermanentRedirect(location: string | undefined) { if (location) { const locUrl = new url.URL(location); if (locUrl && locUrl.host) { - this.quickpulseClient.host = "https://" + locUrl.host; + this.endpointUrl = "https://" + locUrl.host; } } } diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/liveMetrics.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/liveMetrics.ts index a47428413e5d..698c8304fde7 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/liveMetrics.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/liveMetrics.ts @@ -13,6 +13,7 @@ import { ObservableGauge, ObservableResult, SpanKind, + SpanStatusCode, ValueType, context, } from "@opentelemetry/api"; @@ -23,9 +24,9 @@ import { DocumentIngress, Exception, MonitoringDataPoint, - PingOptionalParams, - PingResponse, - PostResponse, + IsSubscribedOptionalParams, + IsSubscribedResponse, + PublishResponse, RemoteDependency, Request, Trace, @@ -41,7 +42,7 @@ import { import { QuickpulseMetricExporter } from "./export/exporter"; import { QuickpulseSender } from "./export/sender"; import { ConnectionStringParser } from "../../utils/connectionStringParser"; -import { DEFAULT_BREEZE_ENDPOINT, DEFAULT_LIVEMETRICS_ENDPOINT } from "../../types"; +import { DEFAULT_LIVEMETRICS_ENDPOINT } from "../../types"; import { QuickPulseOpenTelemetryMetricNames, QuickpulseExporterOptions } from "./types"; import { hrTimeToMilliseconds, suppressTracing } from "@opentelemetry/core"; @@ -130,17 +131,19 @@ export class LiveMetrics { roleName: roleName, machineName: machineName, streamId: streamId, + performanceCollectionSupported: true, + isWebApp: process.env["WEBSITE_SITE_NAME"] ? true : false, }; const parsedConnectionString = ConnectionStringParser.parse( this.config.azureMonitorExporterOptions.connectionString, ); this.pingSender = new QuickpulseSender({ endpointUrl: parsedConnectionString.liveendpoint || DEFAULT_LIVEMETRICS_ENDPOINT, - instrumentationKey: parsedConnectionString.instrumentationkey || DEFAULT_BREEZE_ENDPOINT, + instrumentationKey: parsedConnectionString.instrumentationkey || "", }); let exporterOptions: QuickpulseExporterOptions = { endpointUrl: parsedConnectionString.liveendpoint || DEFAULT_LIVEMETRICS_ENDPOINT, - instrumentationKey: parsedConnectionString.instrumentationkey || DEFAULT_BREEZE_ENDPOINT, + instrumentationKey: parsedConnectionString.instrumentationkey || "", postCallback: this.quickPulseDone.bind(this), getDocumentsFn: this.getDocuments.bind(this), baseMonitoringDataPoint: this.baseMonitoringDataPoint, @@ -161,12 +164,12 @@ export class LiveMetrics { if (!this.isCollectingData) { // If not collecting, Ping try { - let params: PingOptionalParams = { - xMsQpsTransmissionTime: getTransmissionTime(), + let params: IsSubscribedOptionalParams = { + transmissionTime: getTransmissionTime(), monitoringDataPoint: this.baseMonitoringDataPoint, }; await context.with(suppressTracing(context.active()), async () => { - let response = await this.pingSender.ping(params); + let response = await this.pingSender.isSubscribed(params); this.quickPulseDone(response); }); } catch (error) { @@ -180,7 +183,7 @@ export class LiveMetrics { } } - private async quickPulseDone(response: PostResponse | PingResponse | undefined) { + private async quickPulseDone(response: PublishResponse | IsSubscribedResponse | undefined) { if (!response) { if (!this.isCollectingData) { if (Date.now() - this.lastSuccessTime >= MAX_PING_WAIT_TIME) { @@ -207,12 +210,14 @@ export class LiveMetrics { this.handle.unref(); } - this.pingSender.handlePermanentRedirect(response.xMsQpsServiceEndpointRedirectV2); - this.quickpulseExporter - .getSender() - .handlePermanentRedirect(response.xMsQpsServiceEndpointRedirectV2); - if (response.xMsQpsServicePollingIntervalHint) { - this.pingInterval = Number(response.xMsQpsServicePollingIntervalHint); + const endpointRedirect = (response as IsSubscribedResponse).xMsQpsServiceEndpointRedirectV2; + if (endpointRedirect) { + this.pingSender.handlePermanentRedirect(endpointRedirect); + this.quickpulseExporter.getSender().handlePermanentRedirect(endpointRedirect); + } + const pollingInterval = (response as IsSubscribedResponse).xMsQpsServicePollingIntervalHint; + if (pollingInterval) { + this.pingInterval = Number(pollingInterval); } else { this.pingInterval = PING_INTERVAL; } @@ -366,8 +371,7 @@ export class LiveMetrics { let document: Request | RemoteDependency = getSpanDocument(span); this.addDocument(document); const durationMs = hrTimeToMilliseconds(span.duration); - const statusCode = String(span.attributes["http.status_code"]); - let success = statusCode === "200" ? true : false; + let success = span.status.code !== SpanStatusCode.ERROR; if (span.kind === SpanKind.SERVER || span.kind === SpanKind.CONSUMER) { this.totalRequestCount++; @@ -464,7 +468,7 @@ export class LiveMetrics { } this.lastDependencyDuration = { count: this.totalDependencyCount, - duration: this.requestDuration, + duration: this.dependencyDuration, time: currentTime, }; } diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/types.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/types.ts index cb1a0e1ab7e6..81ebc009c0e9 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/types.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/types.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license. import { TokenCredential } from "@azure/core-auth"; -import { MonitoringDataPoint, PostResponse } from "../../generated"; +import { MonitoringDataPoint, PublishResponse } from "../../generated"; import { DocumentIngress } from "../../generated"; /** @@ -21,7 +21,7 @@ export interface QuickpulseExporterOptions { baseMonitoringDataPoint: MonitoringDataPoint; - postCallback: (response: PostResponse | undefined) => void; + postCallback: (response: PublishResponse | undefined) => void; getDocumentsFn: () => DocumentIngress[]; } diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/utils.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/utils.ts index 18843813e88d..dbb35ff27a03 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/utils.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/utils.ts @@ -6,7 +6,8 @@ import { LogRecord } from "@opentelemetry/sdk-logs"; import { DocumentIngress, Exception, - KnownDocumentIngressDocumentType, + KeyValuePairString, + KnownDocumentType, MetricPoint, MonitoringDataPoint, RemoteDependency, @@ -15,8 +16,29 @@ import { } from "../../generated"; import { Attributes, SpanKind } from "@opentelemetry/api"; import { - SemanticAttributes, - SemanticResourceAttributes, + SEMATTRS_EXCEPTION_MESSAGE, + SEMATTRS_EXCEPTION_TYPE, + SEMATTRS_HTTP_HOST, + SEMATTRS_HTTP_METHOD, + SEMATTRS_HTTP_SCHEME, + SEMATTRS_HTTP_STATUS_CODE, + SEMATTRS_HTTP_TARGET, + SEMATTRS_HTTP_URL, + SEMATTRS_NET_PEER_IP, + SEMATTRS_NET_PEER_NAME, + SEMATTRS_NET_PEER_PORT, + SEMATTRS_RPC_GRPC_STATUS_CODE, + SEMRESATTRS_K8S_CRONJOB_NAME, + SEMRESATTRS_K8S_DAEMONSET_NAME, + SEMRESATTRS_K8S_DEPLOYMENT_NAME, + SEMRESATTRS_K8S_JOB_NAME, + SEMRESATTRS_K8S_POD_NAME, + SEMRESATTRS_K8S_REPLICASET_NAME, + SEMRESATTRS_K8S_STATEFULSET_NAME, + SEMRESATTRS_SERVICE_INSTANCE_ID, + SEMRESATTRS_SERVICE_NAME, + SEMRESATTRS_SERVICE_NAMESPACE, + SEMRESATTRS_TELEMETRY_SDK_VERSION, } from "@opentelemetry/semantic-conventions"; import { SDK_INFO, hrTimeToMilliseconds } from "@opentelemetry/core"; import { DataPointType, Histogram, ResourceMetrics } from "@opentelemetry/sdk-metrics"; @@ -30,11 +52,12 @@ import { Resource } from "@opentelemetry/resources"; import { QuickPulseMetricNames, QuickPulseOpenTelemetryMetricNames } from "./types"; import { getOsPrefix } from "../../utils/common"; import { getResourceProvider } from "../../utils/common"; +import { LogAttributes } from "@opentelemetry/api-logs"; /** Get the internal SDK version */ export function getSdkVersion(): string { const { nodeVersion } = process.versions; - const opentelemetryVersion = SDK_INFO[SemanticResourceAttributes.TELEMETRY_SDK_VERSION]; + const opentelemetryVersion = SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_VERSION]; const version = `ext${AZURE_MONITOR_OPENTELEMETRY_VERSION}`; const internalSdkVersion = `${process.env[AZURE_MONITOR_PREFIX] ?? ""}node${nodeVersion}:otel${opentelemetryVersion}:${version}`; return internalSdkVersion; @@ -55,8 +78,8 @@ export function setSdkPrefix(): void { export function getCloudRole(resource: Resource): string { let cloudRole = ""; // Service attributes - const serviceName = resource.attributes[SemanticResourceAttributes.SERVICE_NAME]; - const serviceNamespace = resource.attributes[SemanticResourceAttributes.SERVICE_NAMESPACE]; + const serviceName = resource.attributes[SEMRESATTRS_SERVICE_NAME]; + const serviceNamespace = resource.attributes[SEMRESATTRS_SERVICE_NAMESPACE]; if (serviceName) { // Custom Service name provided by customer is highest precedence if (!String(serviceName).startsWith("unknown_service")) { @@ -75,31 +98,27 @@ export function getCloudRole(resource: Resource): string { } } // Kubernetes attributes should take precedence - const kubernetesDeploymentName = - resource.attributes[SemanticResourceAttributes.K8S_DEPLOYMENT_NAME]; + const kubernetesDeploymentName = resource.attributes[SEMRESATTRS_K8S_DEPLOYMENT_NAME]; if (kubernetesDeploymentName) { return String(kubernetesDeploymentName); } - const kuberneteReplicasetName = - resource.attributes[SemanticResourceAttributes.K8S_REPLICASET_NAME]; + const kuberneteReplicasetName = resource.attributes[SEMRESATTRS_K8S_REPLICASET_NAME]; if (kuberneteReplicasetName) { return String(kuberneteReplicasetName); } - const kubernetesStatefulSetName = - resource.attributes[SemanticResourceAttributes.K8S_STATEFULSET_NAME]; + const kubernetesStatefulSetName = resource.attributes[SEMRESATTRS_K8S_STATEFULSET_NAME]; if (kubernetesStatefulSetName) { return String(kubernetesStatefulSetName); } - const kubernetesJobName = resource.attributes[SemanticResourceAttributes.K8S_JOB_NAME]; + const kubernetesJobName = resource.attributes[SEMRESATTRS_K8S_JOB_NAME]; if (kubernetesJobName) { return String(kubernetesJobName); } - const kubernetesCronjobName = resource.attributes[SemanticResourceAttributes.K8S_CRONJOB_NAME]; + const kubernetesCronjobName = resource.attributes[SEMRESATTRS_K8S_CRONJOB_NAME]; if (kubernetesCronjobName) { return String(kubernetesCronjobName); } - const kubernetesDaemonsetName = - resource.attributes[SemanticResourceAttributes.K8S_DAEMONSET_NAME]; + const kubernetesDaemonsetName = resource.attributes[SEMRESATTRS_K8S_DAEMONSET_NAME]; if (kubernetesDaemonsetName) { return String(kubernetesDaemonsetName); } @@ -108,12 +127,12 @@ export function getCloudRole(resource: Resource): string { export function getCloudRoleInstance(resource: Resource): string { // Kubernetes attributes should take precedence - const kubernetesPodName = resource.attributes[SemanticResourceAttributes.K8S_POD_NAME]; + const kubernetesPodName = resource.attributes[SEMRESATTRS_K8S_POD_NAME]; if (kubernetesPodName) { return String(kubernetesPodName); } // Service attributes - const serviceInstanceId = resource.attributes[SemanticResourceAttributes.SERVICE_INSTANCE_ID]; + const serviceInstanceId = resource.attributes[SEMRESATTRS_SERVICE_INSTANCE_ID]; if (serviceInstanceId) { return String(serviceInstanceId); } @@ -132,6 +151,8 @@ export function resourceMetricsToQuickpulseDataPoint( metric.dataPoints.forEach((dataPoint) => { let metricPoint: MetricPoint = { weight: 4, + name: "", + value: 0, }; // Update name to expected value in Quickpulse, needed because those names are invalid in OTel @@ -188,18 +209,23 @@ export function resourceMetricsToQuickpulseDataPoint( return [quickpulseDataPoint]; } +function getIso8601Duration(milliseconds: number) { + const seconds = milliseconds / 1000; + return `PT${seconds}S`; +} + export function getSpanDocument(span: ReadableSpan): Request | RemoteDependency { let document: Request | RemoteDependency = { - documentType: KnownDocumentIngressDocumentType.Request, + documentType: KnownDocumentType.Request, }; - const httpMethod = span.attributes[SemanticAttributes.HTTP_METHOD]; - const grpcStatusCode = span.attributes[SemanticAttributes.RPC_GRPC_STATUS_CODE]; + const httpMethod = span.attributes[SEMATTRS_HTTP_METHOD]; + const grpcStatusCode = span.attributes[SEMATTRS_RPC_GRPC_STATUS_CODE]; let url = ""; let code = ""; if (span.kind === SpanKind.SERVER || span.kind === SpanKind.CONSUMER) { if (httpMethod) { url = getUrl(span.attributes); - const httpStatusCode = span.attributes[SemanticAttributes.HTTP_STATUS_CODE]; + const httpStatusCode = span.attributes[SEMATTRS_HTTP_STATUS_CODE]; if (httpStatusCode) { code = String(httpStatusCode); } @@ -208,75 +234,105 @@ export function getSpanDocument(span: ReadableSpan): Request | RemoteDependency } document = { - documentType: KnownDocumentIngressDocumentType.Request, + documentType: KnownDocumentType.Request, name: span.name, url: url, responseCode: code, - duration: hrTimeToMilliseconds(span.duration).toString(), + duration: getIso8601Duration(hrTimeToMilliseconds(span.duration)), }; } else { url = getUrl(span.attributes); - const httpStatusCode = span.attributes[SemanticAttributes.HTTP_STATUS_CODE]; + const httpStatusCode = span.attributes[SEMATTRS_HTTP_STATUS_CODE]; if (httpStatusCode) { code = String(httpStatusCode); } document = { - documentType: KnownDocumentIngressDocumentType.RemoteDependency, + documentType: KnownDocumentType.RemoteDependency, name: span.name, commandName: url, resultCode: code, - duration: hrTimeToMilliseconds(span.duration).toString(), + duration: getIso8601Duration(hrTimeToMilliseconds(span.duration)), }; } + document.properties = createPropertiesFromAttributes(span.attributes); return document; } export function getLogDocument(logRecord: LogRecord): Trace | Exception { let document: Trace | Exception = { - documentType: KnownDocumentIngressDocumentType.Exception, + documentType: KnownDocumentType.Exception, }; - const exceptionType = String(logRecord.attributes[SemanticAttributes.EXCEPTION_TYPE]); + const exceptionType = String(logRecord.attributes[SEMATTRS_EXCEPTION_TYPE]); if (exceptionType) { - const exceptionMessage = String(logRecord.attributes[SemanticAttributes.EXCEPTION_MESSAGE]); + const exceptionMessage = String(logRecord.attributes[SEMATTRS_EXCEPTION_MESSAGE]); document = { - documentType: KnownDocumentIngressDocumentType.Exception, + documentType: KnownDocumentType.Exception, exceptionType: exceptionType, exceptionMessage: exceptionMessage, }; } else { document = { - documentType: KnownDocumentIngressDocumentType.Trace, + documentType: KnownDocumentType.Trace, message: String(logRecord.body), }; } + document.properties = createPropertiesFromAttributes(logRecord.attributes); return document; } +function createPropertiesFromAttributes( + attributes?: Attributes | LogAttributes, +): KeyValuePairString[] { + const properties: KeyValuePairString[] = []; + if (attributes) { + for (const key of Object.keys(attributes)) { + // Avoid duplication ignoring fields already mapped. + if ( + !( + key.startsWith("_MS.") || + key === SEMATTRS_NET_PEER_IP || + key === SEMATTRS_NET_PEER_NAME || + key === SEMATTRS_HTTP_METHOD || + key === SEMATTRS_HTTP_URL || + key === SEMATTRS_HTTP_STATUS_CODE || + key === SEMATTRS_HTTP_HOST || + key === SEMATTRS_HTTP_URL || + key === SEMATTRS_EXCEPTION_TYPE || + key === SEMATTRS_EXCEPTION_MESSAGE + ) + ) { + properties.push({ key: key, value: String(attributes[key]) }); + } + } + } + return properties; +} + function getUrl(attributes: Attributes): string { if (!attributes) { return ""; } - const httpMethod = attributes[SemanticAttributes.HTTP_METHOD]; + const httpMethod = attributes[SEMATTRS_HTTP_METHOD]; if (httpMethod) { - const httpUrl = attributes[SemanticAttributes.HTTP_URL]; + const httpUrl = attributes[SEMATTRS_HTTP_URL]; if (httpUrl) { return String(httpUrl); } else { - const httpScheme = attributes[SemanticAttributes.HTTP_SCHEME]; - const httpTarget = attributes[SemanticAttributes.HTTP_TARGET]; + const httpScheme = attributes[SEMATTRS_HTTP_SCHEME]; + const httpTarget = attributes[SEMATTRS_HTTP_TARGET]; if (httpScheme && httpTarget) { - const httpHost = attributes[SemanticAttributes.HTTP_HOST]; + const httpHost = attributes[SEMATTRS_HTTP_HOST]; if (httpHost) { return `${httpScheme}://${httpHost}${httpTarget}`; } else { - const netPeerPort = attributes[SemanticAttributes.NET_PEER_PORT]; + const netPeerPort = attributes[SEMATTRS_NET_PEER_PORT]; if (netPeerPort) { - const netPeerName = attributes[SemanticAttributes.NET_PEER_NAME]; + const netPeerName = attributes[SEMATTRS_NET_PEER_NAME]; if (netPeerName) { return `${httpScheme}://${netPeerName}:${netPeerPort}${httpTarget}`; } else { - const netPeerIp = attributes[SemanticAttributes.NET_PEER_IP]; + const netPeerIp = attributes[SEMATTRS_NET_PEER_IP]; if (netPeerIp) { return `${httpScheme}://${netPeerIp}:${netPeerPort}${httpTarget}`; } diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/standardMetrics.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/standardMetrics.ts index a967486b9661..10bbabde4881 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/standardMetrics.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/standardMetrics.ts @@ -21,6 +21,7 @@ import { isSyntheticLoad, isTraceTelemetry, } from "./utils"; +import { StandardMetricIds } from "./types"; /** * Azure Monitor Standard Metrics @@ -45,35 +46,35 @@ export class StandardMetrics { */ constructor(config: InternalConfig, options?: { collectionInterval: number }) { this._config = config; - const meterProviderConfig: MeterProviderOptions = { - resource: this._config.resource, - }; - this._meterProvider = new MeterProvider(meterProviderConfig); this._azureExporter = new AzureMonitorMetricExporter(this._config.azureMonitorExporterOptions); const metricReaderOptions: PeriodicExportingMetricReaderOptions = { exporter: this._azureExporter as any, exportIntervalMillis: options?.collectionInterval || this._collectionInterval, }; this._metricReader = new PeriodicExportingMetricReader(metricReaderOptions); - this._meterProvider.addMetricReader(this._metricReader); + const meterProviderConfig: MeterProviderOptions = { + resource: this._config.resource, + readers: [this._metricReader], + }; + this._meterProvider = new MeterProvider(meterProviderConfig); this._meter = this._meterProvider.getMeter("AzureMonitorStandardMetricsMeter"); this._incomingRequestDurationHistogram = this._meter.createHistogram( - "azureMonitor.http.requestDuration", + StandardMetricIds.REQUEST_DURATION, { valueType: ValueType.DOUBLE, }, ); this._outgoingRequestDurationHistogram = this._meter.createHistogram( - "azureMonitor.http.dependencyDuration", + StandardMetricIds.DEPENDENCIES_DURATION, { valueType: ValueType.DOUBLE, }, ); - this._exceptionsCounter = this._meter.createCounter("azureMonitor.exceptionCount", { + this._exceptionsCounter = this._meter.createCounter(StandardMetricIds.EXCEPTIONS_COUNT, { valueType: ValueType.INT, }); - this._tracesCounter = this._meter.createCounter("azureMonitor.traceCount", { + this._tracesCounter = this._meter.createCounter(StandardMetricIds.TRACES_COUNT, { valueType: ValueType.INT, }); } diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/types.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/types.ts index bf531a1e5826..ac1875a94618 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/types.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/types.ts @@ -27,13 +27,6 @@ export interface MetricDependencyDimensions extends StandardMetricBaseDimensions operationSynthetic?: string; } -export enum StandardMetricNames { - HTTP_REQUEST_DURATION = "azureMonitor.http.requestDuration", - HTTP_DEPENDENCY_DURATION = "azureMonitor.http.dependencyDuration", - EXCEPTION_COUNT = "azureMonitor.exceptionCount", - TRACE_COUNT = "azureMonitor.traceCount", -} - export enum PerformanceCounterMetricNames { PRIVATE_BYTES = "\\Process(??APP_WIN32_PROC??)\\Private Bytes", AVAILABLE_BYTES = "\\Memory\\Available Bytes", @@ -71,3 +64,10 @@ export const StandardMetricPropertyNames: { [key in MetricDimensionTypeKeys]: st metricId: "_MS.MetricId", IsAutocollected: "_MS.IsAutocollected", }; + +export enum StandardMetricIds { + REQUEST_DURATION = "requests/duration", + DEPENDENCIES_DURATION = "dependencies/duration", + EXCEPTIONS_COUNT = "exceptions/count", + TRACES_COUNT = "traces/count", +} diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/utils.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/utils.ts index b5c6ebf6bd75..eeebd84c87cd 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/utils.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/utils.ts @@ -12,6 +12,7 @@ import { MetricDimensionTypeKeys, MetricRequestDimensions, StandardMetricBaseDimensions, + StandardMetricIds, StandardMetricPropertyNames, } from "./types"; import { LogRecord } from "@opentelemetry/sdk-logs"; @@ -19,7 +20,7 @@ import { Resource } from "@opentelemetry/resources"; export function getRequestDimensions(span: ReadableSpan): Attributes { const dimensions: MetricRequestDimensions = getBaseDimensions(span.resource); - dimensions.metricId = "requests/duration"; + dimensions.metricId = StandardMetricIds.REQUEST_DURATION; const statusCode = String(span.attributes["http.status_code"]); dimensions.requestResultCode = statusCode; dimensions.requestSuccess = statusCode === "200" ? "True" : "False"; @@ -31,7 +32,7 @@ export function getRequestDimensions(span: ReadableSpan): Attributes { export function getDependencyDimensions(span: ReadableSpan): Attributes { const dimensions: MetricDependencyDimensions = getBaseDimensions(span.resource); - dimensions.metricId = "dependencies/duration"; + dimensions.metricId = StandardMetricIds.DEPENDENCIES_DURATION; const statusCode = String(span.attributes["http.status_code"]); dimensions.dependencyTarget = getDependencyTarget(span.attributes); dimensions.dependencyResultCode = statusCode; @@ -45,13 +46,13 @@ export function getDependencyDimensions(span: ReadableSpan): Attributes { export function getExceptionDimensions(resource: Resource): Attributes { const dimensions: StandardMetricBaseDimensions = getBaseDimensions(resource); - dimensions.metricId = "exceptions/count"; + dimensions.metricId = StandardMetricIds.EXCEPTIONS_COUNT; return dimensions as Attributes; } export function getTraceDimensions(resource: Resource): Attributes { const dimensions: StandardMetricBaseDimensions = getBaseDimensions(resource); - dimensions.metricId = "traces/count"; + dimensions.metricId = StandardMetricIds.TRACES_COUNT; return dimensions as Attributes; } diff --git a/sdk/monitor/monitor-opentelemetry/src/types.ts b/sdk/monitor/monitor-opentelemetry/src/types.ts index 8a23dd8503ba..cc51e09f751e 100644 --- a/sdk/monitor/monitor-opentelemetry/src/types.ts +++ b/sdk/monitor/monitor-opentelemetry/src/types.ts @@ -90,7 +90,7 @@ export const DEFAULT_BREEZE_ENDPOINT = "https://dc.services.visualstudio.com"; * Default Live Metrics endpoint. * @internal */ -export const DEFAULT_LIVEMETRICS_ENDPOINT = "https://rt.services.visualstudio.com"; +export const DEFAULT_LIVEMETRICS_ENDPOINT = "https://global.livediagnostics.monitor.azure.com"; export enum StatsbeatFeature { NONE = 0, diff --git a/sdk/monitor/monitor-opentelemetry/swagger/README.md b/sdk/monitor/monitor-opentelemetry/swagger/README.md index 8aa9b9ab72d6..aca5c52c0581 100644 --- a/sdk/monitor/monitor-opentelemetry/swagger/README.md +++ b/sdk/monitor/monitor-opentelemetry/swagger/README.md @@ -21,7 +21,7 @@ generate-metadata: false license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../ source-code-folder-path: ./src/generated -input-file: https://quickpulsespecs.blob.core.windows.net/specs/swagger-v2-for%20sdk%20only.json +input-file: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/applicationinsights/data-plane/LiveMetrics/preview/2024-04-01-preview/livemetrics.json add-credentials: false use-extension: "@autorest/typescript": "latest" diff --git a/sdk/monitor/monitor-opentelemetry/test/internal/unit/browserSdkLoader/browserSdkLoader.test.ts b/sdk/monitor/monitor-opentelemetry/test/internal/unit/browserSdkLoader/browserSdkLoader.test.ts index d752ee74dae1..78ccb761d7b0 100644 --- a/sdk/monitor/monitor-opentelemetry/test/internal/unit/browserSdkLoader/browserSdkLoader.test.ts +++ b/sdk/monitor/monitor-opentelemetry/test/internal/unit/browserSdkLoader/browserSdkLoader.test.ts @@ -8,7 +8,7 @@ import { shutdownAzureMonitor, useAzureMonitor, } from "../../../../src/index"; -import { isLinux, isWindows } from "../../../../src/utils/common"; +import { getOsPrefix } from "../../../../src/utils/common"; import { metrics, trace } from "@opentelemetry/api"; import { logs } from "@opentelemetry/api-logs"; @@ -117,9 +117,15 @@ describe("#BrowserSdkLoader", () => { let validHtml = ""; assert.equal(browserSdkLoader.ValidateInjection(response, validHtml), true); let newHtml = browserSdkLoader.InjectSdkLoader(response, validHtml).toString(); - assert.ok(newHtml.indexOf("https://js.monitor.azure.com/scripts/b/ai.2.min.js") >= 0); - assert.ok(newHtml.indexOf("") == 0); - assert.ok(newHtml.indexOf('instrumentationKey: "1aa11111-bbbb-1ccc-8ddd-eeeeffff3333"') >= 0); + assert.ok( + newHtml.indexOf("https://js.monitor.azure.com/scripts/b/ai.3.gbl.min.js") >= 0, + "src path does not exist in the snippet", + ); + assert.ok(newHtml.indexOf("") == 0, "No snippet content was populated"); + assert.ok( + newHtml.indexOf("InstrumentationKey=1aa11111-bbbb-1ccc-8ddd-eeeeffff3333") >= 0, + "Instrumentation Key is not set correctly", + ); }); it("injection of browser SDK should overwrite content length ", () => { @@ -184,16 +190,16 @@ describe("#BrowserSdkLoader", () => { let validHtml = ""; assert.equal(browserSdkLoader.ValidateInjection(response, validHtml), true); let newHtml = browserSdkLoader.InjectSdkLoader(response, validHtml); - let osType: string = "u"; - if (isWindows()) { - osType = "w"; - } else if (isLinux()) { - osType = "l"; - } - let expectedStr = ` instrumentationKey: "1aa11111-bbbb-1ccc-8ddd-eeeeffff3333",\r\n disableIkeyDeprecationMessage: true,\r\n sdkExtension: "u${osType}d_n_`; - assert.ok(newHtml.indexOf("https://js.monitor.azure.com/scripts/b/ai.2.min.js") >= 0); - assert.ok(newHtml.indexOf("") == 0); - assert.ok(newHtml.indexOf(expectedStr) >= 0, expectedStr); + const expectedSdkVersion = `sdkExtension: "u${getOsPrefix()}d_n_"`; + assert.ok( + newHtml.indexOf("https://js.monitor.azure.com/scripts/b/ai.3.gbl.min.js") >= 0, + "src path does not exist in the snippet", + ); + assert.ok(newHtml.indexOf("") == 0, "No snippet content was populated"); + assert.ok( + newHtml.indexOf(expectedSdkVersion) >= 0, + `Expected string does not exist in the snippet. Expected: ${expectedSdkVersion} in ${newHtml}`, + ); }); it("browser SDK loader injection to buffer", () => { @@ -227,9 +233,15 @@ describe("#BrowserSdkLoader", () => { let validBuffer = Buffer.from(validHtml); assert.equal(browserSdkLoader.ValidateInjection(response, validBuffer), true); let newHtml = browserSdkLoader.InjectSdkLoader(response, validBuffer).toString(); - assert.ok(newHtml.indexOf("https://js.monitor.azure.com/scripts/b/ai.2.min.js") >= 0); - assert.ok(newHtml.indexOf("") == 0); - assert.ok(newHtml.indexOf('instrumentationKey: "1aa11111-bbbb-1ccc-8ddd-eeeeffff3333"') >= 0); + assert.ok( + newHtml.indexOf("https://js.monitor.azure.com/scripts/b/ai.3.gbl.min.js") >= 0, + "src path does not exist in the snippet", + ); + assert.ok(newHtml.indexOf("") == 0, "No snippet content was populated"); + assert.ok( + newHtml.indexOf("InstrumentationKey=1aa11111-bbbb-1ccc-8ddd-eeeeffff3333") >= 0, + "Instrumentation Key is not set correctly", + ); }); it("injection of browser SDK should overwrite content length using buffer ", () => { @@ -304,9 +316,15 @@ describe("#BrowserSdkLoader", () => { let validHtml = ""; assert.equal(browserSdkLoader.ValidateInjection(response, validHtml), true); let newHtml = browserSdkLoader.InjectSdkLoader(response, validHtml).toString(); - assert.ok(newHtml.indexOf("https://js.monitor.azure.com/scripts/b/ai.2.min.js") >= 0, newHtml); - assert.ok(newHtml.indexOf("") == 0); - assert.ok(newHtml.indexOf('instrumentationKey: "1aa11111-bbbb-1ccc-8ddd-eeeeffff3333"') >= 0); + assert.ok( + newHtml.indexOf("https://js.monitor.azure.com/scripts/b/ai.3.gbl.min.js") >= 0, + "src path does not exist in the snippet", + ); + assert.ok(newHtml.indexOf("") == 0, "No snippet content was populated"); + assert.ok( + newHtml.indexOf("InstrumentationKey=1aa11111-bbbb-1ccc-8ddd-eeeeffff3333") >= 0, + "Instrumentation Key is not set correctly", + ); }); it("injection should throw errors when ikey from config is not valid", () => { diff --git a/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/liveMetrics.test.ts b/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/liveMetrics.test.ts index dfab26d05a41..1e715b9e0ea3 100644 --- a/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/liveMetrics.test.ts +++ b/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/liveMetrics.test.ts @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. - import * as assert from "assert"; import * as sinon from "sinon"; -import { SpanKind } from "@opentelemetry/api"; +import { SpanKind, SpanStatusCode } from "@opentelemetry/api"; import { ExportResultCode, millisToHrTime } from "@opentelemetry/core"; import { LoggerProvider, LogRecord } from "@opentelemetry/sdk-logs"; import { LiveMetrics } from "../../../../src/metrics/quickpulse/liveMetrics"; import { InternalConfig } from "../../../../src/shared"; import { QuickPulseOpenTelemetryMetricNames } from "../../../../src/metrics/quickpulse/types"; +import { Exception, RemoteDependency, Request } from "../../../../src/generated"; describe("#LiveMetrics", () => { let exportStub: sinon.SinonStub; @@ -56,15 +56,21 @@ describe("#LiveMetrics", () => { ); autoCollect.recordLog(traceLog as any); traceLog.attributes["exception.type"] = "testExceptionType"; + traceLog.attributes["exception.message"] = "testExceptionMessage"; for (let i = 0; i < 5; i++) { autoCollect.recordLog(traceLog as any); } - let clientSpan: any = { kind: SpanKind.CLIENT, duration: millisToHrTime(12345678), attributes: { "http.status_code": 200, + "http.method": "GET", + "http.url": "http://test.com", + customAttribute: "test", + }, + status: { + code: SpanStatusCode.OK, }, }; autoCollect.recordSpan(clientSpan); @@ -74,6 +80,12 @@ describe("#LiveMetrics", () => { duration: millisToHrTime(98765432), attributes: { "http.status_code": 200, + "http.method": "GET", + "http.url": "http://test.com", + customAttribute: "test", + }, + status: { + code: SpanStatusCode.OK, }, }; for (let i = 0; i < 2; i++) { @@ -83,12 +95,14 @@ describe("#LiveMetrics", () => { // Different dimensions clientSpan.attributes["http.status_code"] = "400"; clientSpan.duration = millisToHrTime(900000); + clientSpan.status.code = SpanStatusCode.ERROR; for (let i = 0; i < 3; i++) { autoCollect.recordSpan(clientSpan); } serverSpan.duration = millisToHrTime(100000); serverSpan.attributes["http.status_code"] = "400"; + serverSpan.status.code = SpanStatusCode.ERROR; for (let i = 0; i < 4; i++) { autoCollect.recordSpan(serverSpan); } @@ -162,13 +176,56 @@ describe("#LiveMetrics", () => { QuickPulseOpenTelemetryMetricNames.PROCESSOR_TIME, ); assert.strictEqual(metrics[7].dataPoints.length, 1, "dataPoints count"); - assert.ok(metrics[7].dataPoints[0].value > 0, "PROCESSOR_TIME dataPoint value"); + assert.ok(metrics[7].dataPoints[0].value >= 0, "PROCESSOR_TIME dataPoint value"); assert.strictEqual( metrics[8].descriptor.name, QuickPulseOpenTelemetryMetricNames.EXCEPTION_RATE, ); assert.strictEqual(metrics[8].dataPoints.length, 1, "dataPoints count"); assert.ok(metrics[5].dataPoints[0].value > 0, "EXCEPTION_RATE value"); + + // Validate documents + const documents = autoCollect.getDocuments(); + assert.strictEqual(documents.length, 16, "documents count"); + // assert.strictEqual(JSON.stringify(documents), "documents count"); + assert.strictEqual(documents[0].documentType, "Exception"); + assert.strictEqual((documents[0] as Exception).exceptionType, "undefined"); + assert.strictEqual((documents[0] as Exception).exceptionMessage, "undefined"); + assert.strictEqual(documents[0].properties?.length, 0); + for (let i = 1; i < 5; i++) { + assert.strictEqual(documents[i].documentType, "Exception"); + assert.strictEqual((documents[i] as Exception).exceptionType, "testExceptionType"); + assert.strictEqual((documents[i] as Exception).exceptionMessage, "testExceptionMessage"); + assert.strictEqual(documents[i].properties?.length, 0); + } + assert.strictEqual(documents[6].documentType, "RemoteDependency"); + assert.strictEqual((documents[6] as RemoteDependency).commandName, "http://test.com"); + assert.strictEqual((documents[6] as RemoteDependency).resultCode, "200"); + assert.strictEqual((documents[6] as RemoteDependency).duration, "PT12345.678S"); + assert.equal((documents[6].properties as any)[0].key, "customAttribute"); + assert.equal((documents[6].properties as any)[0].value, "test"); + for (let i = 7; i < 9; i++) { + assert.strictEqual((documents[i] as Request).url, "http://test.com"); + assert.strictEqual((documents[i] as Request).responseCode, "200"); + assert.strictEqual((documents[i] as Request).duration, "PT98765.432S"); + assert.equal((documents[i].properties as any)[0].key, "customAttribute"); + assert.equal((documents[i].properties as any)[0].value, "test"); + } + for (let i = 9; i < 12; i++) { + assert.strictEqual(documents[i].documentType, "RemoteDependency"); + assert.strictEqual((documents[i] as RemoteDependency).commandName, "http://test.com"); + assert.strictEqual((documents[i] as RemoteDependency).resultCode, "400"); + assert.strictEqual((documents[i] as RemoteDependency).duration, "PT900S"); + assert.equal((documents[i].properties as any)[0].key, "customAttribute"); + assert.equal((documents[i].properties as any)[0].value, "test"); + } + for (let i = 12; i < 15; i++) { + assert.strictEqual((documents[i] as Request).url, "http://test.com"); + assert.strictEqual((documents[i] as Request).responseCode, "400"); + assert.strictEqual((documents[i] as Request).duration, "PT100S"); + assert.equal((documents[i].properties as any)[0].key, "customAttribute"); + assert.equal((documents[i].properties as any)[0].value, "test"); + } }); it("should retrieve meter provider", () => { diff --git a/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/standardMetrics.test.ts b/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/standardMetrics.test.ts index f225a8a5ed65..2c03d458c47b 100644 --- a/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/standardMetrics.test.ts +++ b/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/standardMetrics.test.ts @@ -104,10 +104,10 @@ describe("#StandardMetricsHandler", () => { assert.strictEqual(scopeMetrics.length, 1, "scopeMetrics count"); const metrics = scopeMetrics[0].metrics; assert.strictEqual(metrics.length, 4, "metrics count"); - assert.strictEqual(metrics[0].descriptor.name, "azureMonitor.http.requestDuration"); - assert.strictEqual(metrics[1].descriptor.name, "azureMonitor.http.dependencyDuration"); - assert.strictEqual(metrics[2].descriptor.name, "azureMonitor.exceptionCount"); - assert.strictEqual(metrics[3].descriptor.name, "azureMonitor.traceCount"); + assert.strictEqual(metrics[0].descriptor.name, "requests/duration"); + assert.strictEqual(metrics[1].descriptor.name, "dependencies/duration"); + assert.strictEqual(metrics[2].descriptor.name, "exceptions/count"); + assert.strictEqual(metrics[3].descriptor.name, "traces/count"); // Requests assert.strictEqual(metrics[0].dataPoints.length, 2, "dataPoints count"); @@ -211,7 +211,7 @@ describe("#StandardMetricsHandler", () => { assert.strictEqual(scopeMetrics.length, 1, "scopeMetrics count"); const metrics = scopeMetrics[0].metrics; assert.strictEqual(metrics.length, 1, "metrics count"); - assert.strictEqual(metrics[0].descriptor.name, "azureMonitor.http.requestDuration"); + assert.strictEqual(metrics[0].descriptor.name, "requests/duration"); assert.equal(metrics[0].dataPoints[0].attributes["operation/synthetic"], "True"); }); diff --git a/sdk/monitor/monitor-opentelemetry/test/internal/unit/shared/config.test.ts b/sdk/monitor/monitor-opentelemetry/test/internal/unit/shared/config.test.ts index 4b2e68dfd7ba..140878af4487 100644 --- a/sdk/monitor/monitor-opentelemetry/test/internal/unit/shared/config.test.ts +++ b/sdk/monitor/monitor-opentelemetry/test/internal/unit/shared/config.test.ts @@ -645,5 +645,5 @@ const testAttributes: any = { "service.name": "unknown_service:node", "telemetry.sdk.language": "nodejs", "telemetry.sdk.name": "opentelemetry", - "telemetry.sdk.version": "1.21.0", + "telemetry.sdk.version": "1.22.0", }; diff --git a/sdk/monitor/monitor-opentelemetry/tests.yml b/sdk/monitor/monitor-opentelemetry/tests.yml index 5aa87220246c..a64fb948c24e 100644 --- a/sdk/monitor/monitor-opentelemetry/tests.yml +++ b/sdk/monitor/monitor-opentelemetry/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/monitor-opentelemetry" ServiceDirectory: monitor diff --git a/sdk/monitor/monitor-query/package.json b/sdk/monitor/monitor-query/package.json index 03990ec685bd..5fed2553bcf6 100644 --- a/sdk/monitor/monitor-query/package.json +++ b/sdk/monitor/monitor-query/package.json @@ -59,7 +59,7 @@ "test:node": "npm run build:test && npm run integration-test:node", "test": "npm run build:test && npm run integration-test", "unit-test:browser": "dev-tool run test:browser", - "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/**/*.spec.ts' 'test/**/**/*.spec.ts'", + "unit-test:node": "dev-tool run test:node-tsx-ts -- --timeout 1200000 'test/**/*.spec.ts' 'test/**/**/*.spec.ts'", "unit-test": "npm run build:test && npm run unit-test:node && npm run unit-test:browser" }, "files": [ @@ -94,30 +94,31 @@ "@azure/core-paging": "^1.1.1", "@azure/core-util": "^1.3.2", "@azure/logger": "^1.0.0", - "tslib": "^2.2.0" + "tslib": "^2.6.2" }, "devDependencies": { "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@azure/abort-controller": "^1.0.0", "@azure/identity": "^4.0.1", - "@azure/monitor-opentelemetry-exporter": "1.0.0-beta.20", + "@azure/monitor-opentelemetry-exporter": "1.0.0-beta.21", "@azure/test-utils": "^1.0.0", + "@azure-tools/test-credential": "^1.0.0", "@azure-tools/test-recorder": "^3.0.0", "@microsoft/api-extractor": "^7.31.1", - "@opentelemetry/api": "^1.7.0", - "@opentelemetry/sdk-trace-node": "^1.21.0", - "@opentelemetry/sdk-trace-base": "^1.21.0", + "@opentelemetry/api": "^1.8.0", + "@opentelemetry/sdk-trace-node": "^1.22.0", + "@opentelemetry/sdk-trace-base": "^1.22.0", "@types/chai-as-promised": "^7.1.0", "@types/chai": "^4.1.6", "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", + "c8": "^8.0.0", "chai-as-promised": "^7.1.1", "chai": "^4.2.0", "cross-env": "^7.0.2", "dotenv": "^16.0.0", "eslint": "^8.0.0", - "esm": "^3.2.18", "inherits": "^2.0.3", "karma-chrome-launcher": "^3.0.0", "karma-coverage": "^2.0.0", @@ -128,12 +129,10 @@ "karma-mocha": "^2.0.1", "karma": "^6.2.0", "mocha": "^10.0.0", - "c8": "^8.0.0", "rimraf": "^5.0.5", "source-map-support": "^0.5.9", - "typescript": "~5.3.3", - "@azure-tools/test-credential": "^1.0.0", - "ts-node": "^10.0.0" + "tsx": "^4.7.1", + "typescript": "~5.3.3" }, "//sampleConfiguration": { "skipFolder": false, diff --git a/sdk/monitor/monitor-query/tests.yml b/sdk/monitor/monitor-query/tests.yml index d841a637dbeb..57d39753327a 100644 --- a/sdk/monitor/monitor-query/tests.yml +++ b/sdk/monitor/monitor-query/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/monitor-query" ServiceDirectory: monitor diff --git a/sdk/monitor/perf-tests/monitor-opentelemetry/package.json b/sdk/monitor/perf-tests/monitor-opentelemetry/package.json index a55b6da4ef09..ff64778869d3 100644 --- a/sdk/monitor/perf-tests/monitor-opentelemetry/package.json +++ b/sdk/monitor/perf-tests/monitor-opentelemetry/package.json @@ -4,27 +4,25 @@ "version": "1.0.0", "description": "", "main": "", + "type": "module", "keywords": [], "author": "", "license": "ISC", "dependencies": { + "@azure/monitor-opentelemetry": "^1.3.0", "@azure/test-utils-perf": "^1.0.0", "dotenv": "^16.0.0", - "uuid": "^8.3.0", - "@opentelemetry/api": "^1.7.0", - "@azure/monitor-opentelemetry": "^1.3.0", - "@opentelemetry/api-logs": "^0.48.0", - "@opentelemetry/sdk-logs": "^0.48.0" + "@opentelemetry/api": "^1.8.0", + "@opentelemetry/api-logs": "^0.49.1", + "@opentelemetry/sdk-logs": "^0.49.1", + "tslib": "^2.6.2" }, "devDependencies": { - "@types/uuid": "^8.0.0", + "@azure/dev-tool": "^1.0.0", "@types/node": "^18.0.0", "eslint": "^8.0.0", "rimraf": "^5.0.5", - "tslib": "^2.2.0", - "ts-node": "^10.0.0", - "typescript": "~5.3.3", - "@azure/dev-tool": "^1.0.0" + "typescript": "~5.3.3" }, "private": true, "scripts": { diff --git a/sdk/monitor/perf-tests/monitor-opentelemetry/test/index.spec.ts b/sdk/monitor/perf-tests/monitor-opentelemetry/test/index.spec.ts index 5c470774721d..e3e5475b82cf 100644 --- a/sdk/monitor/perf-tests/monitor-opentelemetry/test/index.spec.ts +++ b/sdk/monitor/perf-tests/monitor-opentelemetry/test/index.spec.ts @@ -2,9 +2,9 @@ // Licensed under the MIT License. import { createPerfProgram } from "@azure/test-utils-perf"; -import { SpanExportTest } from "./spanExport.spec"; -import { LogExportTest } from "./logExport.spec"; -import { MetricExportTest } from "./metricExport.spec"; +import { SpanExportTest } from "./spanExport.spec.js"; +import { LogExportTest } from "./logExport.spec.js"; +import { MetricExportTest } from "./metricExport.spec.js"; const perfProgram = createPerfProgram(SpanExportTest, LogExportTest, MetricExportTest); perfProgram.run(); diff --git a/sdk/monitor/perf-tests/monitor-opentelemetry/test/logExport.spec.ts b/sdk/monitor/perf-tests/monitor-opentelemetry/test/logExport.spec.ts index fc7dd3e6756b..ef9c2a7018c4 100644 --- a/sdk/monitor/perf-tests/monitor-opentelemetry/test/logExport.spec.ts +++ b/sdk/monitor/perf-tests/monitor-opentelemetry/test/logExport.spec.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import { PerfOptionDictionary } from "@azure/test-utils-perf"; -import { MonitorOpenTelemetryTest } from "./monitorOpenTelemetry.spec"; +import { MonitorOpenTelemetryTest } from "./monitorOpenTelemetry.spec.js"; import { logs, SeverityNumber } from "@opentelemetry/api-logs"; type MonitorOpenTelemetryTestOptions = Record; diff --git a/sdk/monitor/perf-tests/monitor-opentelemetry/test/metricExport.spec.ts b/sdk/monitor/perf-tests/monitor-opentelemetry/test/metricExport.spec.ts index 14659a2fe594..2469d4f4648d 100644 --- a/sdk/monitor/perf-tests/monitor-opentelemetry/test/metricExport.spec.ts +++ b/sdk/monitor/perf-tests/monitor-opentelemetry/test/metricExport.spec.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import { PerfOptionDictionary } from "@azure/test-utils-perf"; -import { MonitorOpenTelemetryTest } from "./monitorOpenTelemetry.spec"; +import { MonitorOpenTelemetryTest } from "./monitorOpenTelemetry.spec.js"; import { metrics } from "@opentelemetry/api"; type MonitorOpenTelemetryTestOptions = Record; diff --git a/sdk/monitor/perf-tests/monitor-opentelemetry/test/spanExport.spec.ts b/sdk/monitor/perf-tests/monitor-opentelemetry/test/spanExport.spec.ts index 59ad95630abd..daa3bf0d89a7 100644 --- a/sdk/monitor/perf-tests/monitor-opentelemetry/test/spanExport.spec.ts +++ b/sdk/monitor/perf-tests/monitor-opentelemetry/test/spanExport.spec.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import { PerfOptionDictionary } from "@azure/test-utils-perf"; -import { MonitorOpenTelemetryTest } from "./monitorOpenTelemetry.spec"; +import { MonitorOpenTelemetryTest } from "./monitorOpenTelemetry.spec.js"; import { trace, Span, Tracer, context } from "@opentelemetry/api"; type MonitorOpenTelemetryTestOptions = Record; diff --git a/sdk/monitor/perf-tests/monitor-opentelemetry/tsconfig.json b/sdk/monitor/perf-tests/monitor-opentelemetry/tsconfig.json index 9c4b2796b41e..314eacb3b998 100644 --- a/sdk/monitor/perf-tests/monitor-opentelemetry/tsconfig.json +++ b/sdk/monitor/perf-tests/monitor-opentelemetry/tsconfig.json @@ -1,12 +1,19 @@ { "extends": "../../../../tsconfig.package", "compilerOptions": { - "module": "commonjs", + "module": "NodeNext", + "moduleResolution": "NodeNext", "outDir": "./dist-esm", "declarationDir": "./types", "paths": { - "@azure/monitor-opentelemetry-exporter": ["./src/index"] + "@azure/monitor-opentelemetry-exporter": [ + "./src/index" + ] } }, - "include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"] + "include": [ + "src/**/*.ts", + "test/**/*.ts", + "samples-dev/**/*.ts" + ] } diff --git a/sdk/netapp/arm-netapp/CHANGELOG.md b/sdk/netapp/arm-netapp/CHANGELOG.md index a7ba0edb000f..f57770489e5a 100644 --- a/sdk/netapp/arm-netapp/CHANGELOG.md +++ b/sdk/netapp/arm-netapp/CHANGELOG.md @@ -1,15 +1,24 @@ # Release History + +## 20.0.0 (2024-03-05) + +**Features** -## 20.0.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added Interface VolumesResetCifsPasswordHeaders + - Added Type Alias VolumesResetCifsPasswordResponse + - Enum KnownRelationshipStatus has a new value Failed + - Enum KnownRelationshipStatus has a new value Unknown -### Other Changes +**Breaking Changes** + - Interface VolumeGroupMetaData no longer has parameter deploymentSpecId + - Type of parameter userAssignedIdentities of interface ManagedServiceIdentity is changed from { + [propertyName: string]: UserAssignedIdentity; + } to { + [propertyName: string]: UserAssignedIdentity | null; + } + + ## 20.0.0-beta.1 (2023-12-14) **Features** @@ -128,7 +137,7 @@ [propertyName: string]: UserAssignedIdentity | null; } - + ## 19.0.0 (2023-09-25) **Features** diff --git a/sdk/netapp/arm-netapp/LICENSE b/sdk/netapp/arm-netapp/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/netapp/arm-netapp/LICENSE +++ b/sdk/netapp/arm-netapp/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/netapp/arm-netapp/README.md b/sdk/netapp/arm-netapp/README.md index 78ab29c62855..0d9fb4d010e8 100644 --- a/sdk/netapp/arm-netapp/README.md +++ b/sdk/netapp/arm-netapp/README.md @@ -6,7 +6,7 @@ Microsoft NetApp Files Azure Resource Provider specification [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-netapp) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-netapp?view=azure-node-preview) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-netapp) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/netapp/arm-netapp/_meta.json b/sdk/netapp/arm-netapp/_meta.json index f2d5bdacd65f..fe652ccb5c09 100644 --- a/sdk/netapp/arm-netapp/_meta.json +++ b/sdk/netapp/arm-netapp/_meta.json @@ -1,8 +1,8 @@ { - "commit": "e62b17a09302b9bacca3504135091d1a71eeaebf", + "commit": "99686ad45c380cf8fbcf7811db9c984a0e9d6639", "readme": "specification/netapp/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\netapp\\resource-manager\\readme.md --use=@autorest/typescript@6.0.13 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\netapp\\resource-manager\\readme.md --use=@autorest/typescript@6.0.17 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", - "use": "@autorest/typescript@6.0.13" + "use": "@autorest/typescript@6.0.17" } \ No newline at end of file diff --git a/sdk/netapp/arm-netapp/assets.json b/sdk/netapp/arm-netapp/assets.json index 9b748930f005..db08bc5ea2e8 100644 --- a/sdk/netapp/arm-netapp/assets.json +++ b/sdk/netapp/arm-netapp/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/netapp/arm-netapp", - "Tag": "js/netapp/arm-netapp_efdf6a61ca" + "Tag": "js/netapp/arm-netapp_b61830c12b" } diff --git a/sdk/netapp/arm-netapp/package.json b/sdk/netapp/arm-netapp/package.json index f97ce71f8bae..85619edbd730 100644 --- a/sdk/netapp/arm-netapp/package.json +++ b/sdk/netapp/arm-netapp/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for NetAppManagementClient.", - "version": "20.0.0-beta.2", + "version": "20.0.0", "engines": { "node": ">=18.0.0" }, @@ -12,8 +12,8 @@ "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.12.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -78,7 +78,6 @@ "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -116,4 +115,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-netapp?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/netapp/arm-netapp/review/arm-netapp.api.md b/sdk/netapp/arm-netapp/review/arm-netapp.api.md index 82f63b7bf12f..cfda04d0ce5c 100644 --- a/sdk/netapp/arm-netapp/review/arm-netapp.api.md +++ b/sdk/netapp/arm-netapp/review/arm-netapp.api.md @@ -10,44 +10,6 @@ import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { SimplePollerLike } from '@azure/core-lro'; -// @public -export interface AccountBackups { - beginDelete(resourceGroupName: string, accountName: string, backupName: string, options?: AccountBackupsDeleteOptionalParams): Promise, AccountBackupsDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, accountName: string, backupName: string, options?: AccountBackupsDeleteOptionalParams): Promise; - get(resourceGroupName: string, accountName: string, backupName: string, options?: AccountBackupsGetOptionalParams): Promise; - listByNetAppAccount(resourceGroupName: string, accountName: string, options?: AccountBackupsListByNetAppAccountOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface AccountBackupsDeleteHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface AccountBackupsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type AccountBackupsDeleteResponse = AccountBackupsDeleteHeaders; - -// @public -export interface AccountBackupsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AccountBackupsGetResponse = Backup; - -// @public -export interface AccountBackupsListByNetAppAccountOptionalParams extends coreClient.OperationOptions { - includeOnlyBackupsFromDeletedVolumes?: string; -} - -// @public -export type AccountBackupsListByNetAppAccountResponse = BackupsList; - // @public export interface AccountEncryption { identity?: EncryptionIdentity; @@ -61,8 +23,6 @@ export interface Accounts { beginCreateOrUpdateAndWait(resourceGroupName: string, accountName: string, body: NetAppAccount, options?: AccountsCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, accountName: string, options?: AccountsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, accountName: string, options?: AccountsDeleteOptionalParams): Promise; - beginMigrateEncryptionKey(resourceGroupName: string, accountName: string, options?: AccountsMigrateEncryptionKeyOptionalParams): Promise, AccountsMigrateEncryptionKeyResponse>>; - beginMigrateEncryptionKeyAndWait(resourceGroupName: string, accountName: string, options?: AccountsMigrateEncryptionKeyOptionalParams): Promise; beginRenewCredentials(resourceGroupName: string, accountName: string, options?: AccountsRenewCredentialsOptionalParams): Promise, void>>; beginRenewCredentialsAndWait(resourceGroupName: string, accountName: string, options?: AccountsRenewCredentialsOptionalParams): Promise; beginUpdate(resourceGroupName: string, accountName: string, body: NetAppAccountPatch, options?: AccountsUpdateOptionalParams): Promise, AccountsUpdateResponse>>; @@ -122,22 +82,6 @@ export interface AccountsListOptionalParams extends coreClient.OperationOptions // @public export type AccountsListResponse = NetAppAccountList; -// @public -export interface AccountsMigrateEncryptionKeyHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface AccountsMigrateEncryptionKeyOptionalParams extends coreClient.OperationOptions { - body?: EncryptionMigrationRequest; - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type AccountsMigrateEncryptionKeyResponse = AccountsMigrateEncryptionKeyHeaders; - // @public export interface AccountsRenewCredentialsOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -194,26 +138,6 @@ export interface AuthorizeRequest { // @public export type AvsDataStore = string; -// @public -export interface Backup extends ProxyResource { - readonly backupId?: string; - readonly backupPolicyResourceId?: string; - readonly backupType?: BackupType; - readonly creationDate?: Date; - readonly failureReason?: string; - label?: string; - readonly provisioningState?: string; - readonly size?: number; - snapshotName?: string; - useExistingSnapshot?: boolean; - volumeResourceId: string; -} - -// @public -export interface BackupPatch { - label?: string; -} - // @public export interface BackupPolicies { beginCreate(resourceGroupName: string, accountName: string, backupPolicyName: string, body: BackupPolicy, options?: BackupPoliciesCreateOptionalParams): Promise, BackupPoliciesCreateResponse>>; @@ -301,65 +225,11 @@ export interface BackupPolicyPatch { weeklyBackupsToKeep?: number; } -// @public -export interface BackupRestoreFiles { - destinationVolumeId: string; - fileList: string[]; - restoreFilePath?: string; -} - // @public export interface Backups { - beginCreate(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, body: Backup, options?: BackupsCreateOptionalParams): Promise, BackupsCreateResponse>>; - beginCreateAndWait(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, body: Backup, options?: BackupsCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, options?: BackupsDeleteOptionalParams): Promise, BackupsDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, options?: BackupsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, options?: BackupsUpdateOptionalParams): Promise, BackupsUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, options?: BackupsUpdateOptionalParams): Promise; - get(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, options?: BackupsGetOptionalParams): Promise; - getLatestStatus(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: BackupsGetLatestStatusOptionalParams): Promise; getVolumeRestoreStatus(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: BackupsGetVolumeRestoreStatusOptionalParams): Promise; - listByVault(resourceGroupName: string, accountName: string, backupVaultName: string, options?: BackupsListByVaultOptionalParams): PagedAsyncIterableIterator; } -// @public -export interface BackupsCreateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupsCreateResponse = Backup; - -// @public -export interface BackupsDeleteHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface BackupsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupsDeleteResponse = BackupsDeleteHeaders; - -// @public -export interface BackupsGetLatestStatusOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type BackupsGetLatestStatusResponse = BackupStatus; - -// @public -export interface BackupsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type BackupsGetResponse = Backup; - // @public export interface BackupsGetVolumeRestoreStatusOptionalParams extends coreClient.OperationOptions { } @@ -367,217 +237,6 @@ export interface BackupsGetVolumeRestoreStatusOptionalParams extends coreClient. // @public export type BackupsGetVolumeRestoreStatusResponse = RestoreStatus; -// @public -export interface BackupsList { - nextLink?: string; - value?: Backup[]; -} - -// @public -export interface BackupsListByVaultNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type BackupsListByVaultNextResponse = BackupsList; - -// @public -export interface BackupsListByVaultOptionalParams extends coreClient.OperationOptions { - filter?: string; -} - -// @public -export type BackupsListByVaultResponse = BackupsList; - -// @public -export interface BackupsMigrationRequest { - backupVaultId: string; -} - -// @public -export interface BackupStatus { - readonly errorMessage?: string; - readonly healthy?: boolean; - readonly lastTransferSize?: number; - readonly lastTransferType?: string; - readonly mirrorState?: MirrorState; - readonly relationshipStatus?: RelationshipStatus; - readonly totalTransferBytes?: number; - readonly transferProgressBytes?: number; - readonly unhealthyReason?: string; -} - -// @public -export interface BackupsUnderAccount { - beginMigrateBackups(resourceGroupName: string, accountName: string, body: BackupsMigrationRequest, options?: BackupsUnderAccountMigrateBackupsOptionalParams): Promise, BackupsUnderAccountMigrateBackupsResponse>>; - beginMigrateBackupsAndWait(resourceGroupName: string, accountName: string, body: BackupsMigrationRequest, options?: BackupsUnderAccountMigrateBackupsOptionalParams): Promise; -} - -// @public -export interface BackupsUnderAccountMigrateBackupsHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface BackupsUnderAccountMigrateBackupsOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupsUnderAccountMigrateBackupsResponse = BackupsUnderAccountMigrateBackupsHeaders; - -// @public -export interface BackupsUnderBackupVault { - beginRestoreFiles(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, body: BackupRestoreFiles, options?: BackupsUnderBackupVaultRestoreFilesOptionalParams): Promise, BackupsUnderBackupVaultRestoreFilesResponse>>; - beginRestoreFilesAndWait(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, body: BackupRestoreFiles, options?: BackupsUnderBackupVaultRestoreFilesOptionalParams): Promise; -} - -// @public -export interface BackupsUnderBackupVaultRestoreFilesHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface BackupsUnderBackupVaultRestoreFilesOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupsUnderBackupVaultRestoreFilesResponse = BackupsUnderBackupVaultRestoreFilesHeaders; - -// @public -export interface BackupsUnderVolume { - beginMigrateBackups(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: BackupsMigrationRequest, options?: BackupsUnderVolumeMigrateBackupsOptionalParams): Promise, BackupsUnderVolumeMigrateBackupsResponse>>; - beginMigrateBackupsAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: BackupsMigrationRequest, options?: BackupsUnderVolumeMigrateBackupsOptionalParams): Promise; -} - -// @public -export interface BackupsUnderVolumeMigrateBackupsHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface BackupsUnderVolumeMigrateBackupsOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupsUnderVolumeMigrateBackupsResponse = BackupsUnderVolumeMigrateBackupsHeaders; - -// @public -export interface BackupsUpdateHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface BackupsUpdateOptionalParams extends coreClient.OperationOptions { - body?: BackupPatch; - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupsUpdateResponse = Backup; - -// @public -export type BackupType = string; - -// @public -export interface BackupVault extends TrackedResource { - readonly provisioningState?: string; -} - -// @public -export interface BackupVaultPatch { - tags?: { - [propertyName: string]: string; - }; -} - -// @public -export interface BackupVaults { - beginCreateOrUpdate(resourceGroupName: string, accountName: string, backupVaultName: string, body: BackupVault, options?: BackupVaultsCreateOrUpdateOptionalParams): Promise, BackupVaultsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, accountName: string, backupVaultName: string, body: BackupVault, options?: BackupVaultsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, accountName: string, backupVaultName: string, options?: BackupVaultsDeleteOptionalParams): Promise, BackupVaultsDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, accountName: string, backupVaultName: string, options?: BackupVaultsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, accountName: string, backupVaultName: string, body: BackupVaultPatch, options?: BackupVaultsUpdateOptionalParams): Promise, BackupVaultsUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, accountName: string, backupVaultName: string, body: BackupVaultPatch, options?: BackupVaultsUpdateOptionalParams): Promise; - get(resourceGroupName: string, accountName: string, backupVaultName: string, options?: BackupVaultsGetOptionalParams): Promise; - listByNetAppAccount(resourceGroupName: string, accountName: string, options?: BackupVaultsListByNetAppAccountOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface BackupVaultsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupVaultsCreateOrUpdateResponse = BackupVault; - -// @public -export interface BackupVaultsDeleteHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface BackupVaultsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupVaultsDeleteResponse = BackupVaultsDeleteHeaders; - -// @public -export interface BackupVaultsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type BackupVaultsGetResponse = BackupVault; - -// @public -export interface BackupVaultsList { - nextLink?: string; - value?: BackupVault[]; -} - -// @public -export interface BackupVaultsListByNetAppAccountNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type BackupVaultsListByNetAppAccountNextResponse = BackupVaultsList; - -// @public -export interface BackupVaultsListByNetAppAccountOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type BackupVaultsListByNetAppAccountResponse = BackupVaultsList; - -// @public -export interface BackupVaultsUpdateHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface BackupVaultsUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupVaultsUpdateResponse = BackupVault; - // @public export interface BreakFileLocksRequest { clientIp?: string; @@ -682,12 +341,6 @@ export interface EncryptionIdentity { // @public export type EncryptionKeySource = string; -// @public -export interface EncryptionMigrationRequest { - privateEndpointId: string; - virtualNetworkId: string; -} - // @public export type EncryptionType = string; @@ -801,12 +454,6 @@ export enum KnownAvsDataStore { Enabled = "Enabled" } -// @public -export enum KnownBackupType { - Manual = "Manual", - Scheduled = "Scheduled" -} - // @public export enum KnownCheckNameResourceTypes { MicrosoftNetAppNetAppAccounts = "Microsoft.NetApp/netAppAccounts", @@ -951,8 +598,10 @@ export enum KnownRegionStorageToNetworkProximity { // @public export enum KnownRelationshipStatus { + Failed = "Failed", Idle = "Idle", - Transferring = "Transferring" + Transferring = "Transferring", + Unknown = "Unknown" } // @public @@ -1100,8 +749,6 @@ export interface NetAppAccount extends TrackedResource { encryption?: AccountEncryption; readonly etag?: string; identity?: ManagedServiceIdentity; - readonly isMultiAdEnabled?: boolean; - nfsV4IDDomain?: string; readonly provisioningState?: string; } @@ -1118,10 +765,8 @@ export interface NetAppAccountPatch { encryption?: AccountEncryption; readonly id?: string; identity?: ManagedServiceIdentity; - readonly isMultiAdEnabled?: boolean; location?: string; readonly name?: string; - nfsV4IDDomain?: string; readonly provisioningState?: string; tags?: { [propertyName: string]: string; @@ -1135,8 +780,6 @@ export class NetAppManagementClient extends coreClient.ServiceClient { $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: NetAppManagementClientOptionalParams); // (undocumented) - accountBackups: AccountBackups; - // (undocumented) accounts: Accounts; // (undocumented) apiVersion: string; @@ -1145,20 +788,10 @@ export class NetAppManagementClient extends coreClient.ServiceClient { // (undocumented) backups: Backups; // (undocumented) - backupsUnderAccount: BackupsUnderAccount; - // (undocumented) - backupsUnderBackupVault: BackupsUnderBackupVault; - // (undocumented) - backupsUnderVolume: BackupsUnderVolume; - // (undocumented) - backupVaults: BackupVaults; - // (undocumented) netAppResource: NetAppResource; // (undocumented) netAppResourceQuotaLimits: NetAppResourceQuotaLimits; // (undocumented) - netAppResourceRegionInfos: NetAppResourceRegionInfos; - // (undocumented) operations: Operations; // (undocumented) pools: Pools; @@ -1251,33 +884,6 @@ export interface NetAppResourceQuotaLimitsListOptionalParams extends coreClient. // @public export type NetAppResourceQuotaLimitsListResponse = SubscriptionQuotaItemList; -// @public -export interface NetAppResourceRegionInfos { - get(location: string, options?: NetAppResourceRegionInfosGetOptionalParams): Promise; - list(location: string, options?: NetAppResourceRegionInfosListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface NetAppResourceRegionInfosGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NetAppResourceRegionInfosGetResponse = RegionInfoResource; - -// @public -export interface NetAppResourceRegionInfosListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NetAppResourceRegionInfosListNextResponse = RegionInfosList; - -// @public -export interface NetAppResourceRegionInfosListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NetAppResourceRegionInfosListResponse = RegionInfosList; - // @public export interface NetAppResourceUpdateNetworkSiblingSetHeaders { // (undocumented) @@ -1456,18 +1062,6 @@ export interface RegionInfoAvailabilityZoneMappingsItem { isAvailable?: boolean; } -// @public -export interface RegionInfoResource extends ProxyResource { - availabilityZoneMappings?: RegionInfoAvailabilityZoneMappingsItem[]; - storageToNetworkProximity?: RegionStorageToNetworkProximity; -} - -// @public -export interface RegionInfosList { - nextLink?: string; - value?: RegionInfoResource[]; -} - // @public export type RegionStorageToNetworkProximity = string; @@ -1479,13 +1073,6 @@ export interface RelocateVolumeRequest { creationToken?: string; } -// @public -export interface RemotePath { - externalHostName: string; - serverName: string; - volumeName: string; -} - // @public export interface Replication { endpointType?: EndpointType; @@ -1497,7 +1084,6 @@ export interface Replication { // @public export interface ReplicationObject { endpointType?: EndpointType; - remotePath?: RemotePath; remoteVolumeRegion?: string; remoteVolumeResourceId: string; readonly replicationId?: string; @@ -1928,7 +1514,6 @@ export interface Volume extends TrackedResource { exportPolicy?: VolumePropertiesExportPolicy; readonly fileAccessLogs?: FileAccessLogs; readonly fileSystemId?: string; - readonly inheritedSizeInBytes?: number; isDefaultQuotaEnabled?: boolean; isLargeVolume?: boolean; isRestoring?: boolean; @@ -1965,14 +1550,6 @@ export interface Volume extends TrackedResource { zones?: string[]; } -// @public -export interface VolumeBackupProperties { - backupEnabled?: boolean; - backupPolicyId?: string; - backupVaultId?: string; - policyEnforced?: boolean; -} - // @public export interface VolumeBackups { backupsCount?: number; @@ -2078,7 +1655,6 @@ export interface VolumeGroupVolumeProperties { readonly fileAccessLogs?: FileAccessLogs; readonly fileSystemId?: string; readonly id?: string; - readonly inheritedSizeInBytes?: number; isDefaultQuotaEnabled?: boolean; isLargeVolume?: boolean; isRestoring?: boolean; @@ -2154,7 +1730,6 @@ export interface VolumePatch { // @public export interface VolumePatchPropertiesDataProtection { - backup?: VolumeBackupProperties; snapshot?: VolumeSnapshotProperties; } @@ -2165,7 +1740,6 @@ export interface VolumePatchPropertiesExportPolicy { // @public export interface VolumePropertiesDataProtection { - backup?: VolumeBackupProperties; replication?: ReplicationObject; snapshot?: VolumeSnapshotProperties; volumeRelocation?: VolumeRelocationProperties; @@ -2297,8 +1871,6 @@ export interface Volumes { beginRevertAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: VolumeRevert, options?: VolumesRevertOptionalParams): Promise; beginRevertRelocation(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesRevertRelocationOptionalParams): Promise, void>>; beginRevertRelocationAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesRevertRelocationOptionalParams): Promise; - beginSplitCloneFromParent(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesSplitCloneFromParentOptionalParams): Promise, VolumesSplitCloneFromParentResponse>>; - beginSplitCloneFromParentAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesSplitCloneFromParentOptionalParams): Promise; beginUpdate(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: VolumePatch, options?: VolumesUpdateOptionalParams): Promise, VolumesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: VolumePatch, options?: VolumesUpdateOptionalParams): Promise; get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesGetOptionalParams): Promise; @@ -2489,21 +2061,6 @@ export interface VolumesRevertRelocationOptionalParams extends coreClient.Operat updateIntervalInMs?: number; } -// @public -export interface VolumesSplitCloneFromParentHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface VolumesSplitCloneFromParentOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type VolumesSplitCloneFromParentResponse = VolumesSplitCloneFromParentHeaders; - // @public export type VolumeStorageToNetworkProximity = string; diff --git a/sdk/netapp/arm-netapp/samples-dev/accountBackupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountBackupsDeleteSample.ts deleted file mode 100644 index a70df34e81e9..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/accountBackupsDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the specified Backup for a Netapp Account - * - * @summary Delete the specified Backup for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Delete.json - */ -async function accountBackupsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = - process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "accountName"; - const backupName = "backupName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accountBackups.beginDeleteAndWait( - resourceGroupName, - accountName, - backupName - ); - console.log(result); -} - -async function main() { - accountBackupsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/accountBackupsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountBackupsGetSample.ts deleted file mode 100644 index 2410c0df94ab..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/accountBackupsGetSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the specified backup for a Netapp Account - * - * @summary Gets the specified backup for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Get.json - */ -async function accountBackupsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accountBackups.get( - resourceGroupName, - accountName, - backupName - ); - console.log(result); -} - -async function main() { - accountBackupsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/accountBackupsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountBackupsListByNetAppAccountSample.ts deleted file mode 100644 index b9f7624afc1f..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/accountBackupsListByNetAppAccountSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all Backups for a Netapp Account - * - * @summary List all Backups for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_List.json - */ -async function accountBackupsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.accountBackups.listByNetAppAccount( - resourceGroupName, - accountName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accountBackupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsCreateOrUpdateSample.ts index e53609546155..85c10bc1b59d 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update the specified NetApp account within the resource group * * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdate.json */ async function accountsCreateOrUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function accountsCreateOrUpdate() { const result = await client.accounts.beginCreateOrUpdateAndWait( resourceGroupName, accountName, - body + body, ); console.log(result); } @@ -41,7 +41,7 @@ async function accountsCreateOrUpdate() { * This sample demonstrates how to Create or update the specified NetApp account within the resource group * * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdateAD.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdateAD.json */ async function accountsCreateOrUpdateWithActiveDirectory() { const subscriptionId = @@ -61,17 +61,17 @@ async function accountsCreateOrUpdateWithActiveDirectory() { password: "ad_password", site: "SiteName", smbServerName: "SMBServer", - username: "ad_user_name" - } + username: "ad_user_name", + }, ], - location: "eastus" + location: "eastus", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.accounts.beginCreateOrUpdateAndWait( resourceGroupName, accountName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsDeleteSample.ts index e520aff851ff..0308e9ad499a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified NetApp account * * @summary Delete the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Delete.json */ async function accountsDelete() { const subscriptionId = @@ -30,7 +30,7 @@ async function accountsDelete() { const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.accounts.beginDeleteAndWait( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsGetSample.ts index 22a8a1ab0873..38bb8c6756c1 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the NetApp account * * @summary Get the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Get.json */ async function accountsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsListBySubscriptionSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsListBySubscriptionSample.ts index 1f292e0303b9..05a45b7d8c31 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsListBySubscriptionSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List and describe all NetApp accounts in the subscription. * * @summary List and describe all NetApp accounts in the subscription. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsListSample.ts index fc0b884f17c3..852a3d845dd8 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List and describe all NetApp accounts in the resource group. * * @summary List and describe all NetApp accounts in the resource group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsMigrateEncryptionKeySample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsMigrateEncryptionKeySample.ts deleted file mode 100644 index 4975f091426e..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/accountsMigrateEncryptionKeySample.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - EncryptionMigrationRequest, - AccountsMigrateEncryptionKeyOptionalParams, - NetAppManagementClient -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. - * - * @summary Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_MigrateEncryptionKey.json - */ -async function accountsMigrateEncryptionKey() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body: EncryptionMigrationRequest = { - privateEndpointId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1", - virtualNetworkId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1" - }; - const options: AccountsMigrateEncryptionKeyOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginMigrateEncryptionKeyAndWait( - resourceGroupName, - accountName, - options - ); - console.log(result); -} - -async function main() { - accountsMigrateEncryptionKey(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsRenewCredentialsSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsRenewCredentialsSample.ts index 4d0b3ca77014..3280153c50ce 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsRenewCredentialsSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsRenewCredentialsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * * @summary Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_RenewCredentials.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_RenewCredentials.json */ async function accountsRenewCredentials() { const subscriptionId = @@ -30,7 +30,7 @@ async function accountsRenewCredentials() { const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.accounts.beginRenewCredentialsAndWait( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsUpdateSample.ts index f70d57a33678..6ad6f365b75d 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch the specified NetApp account * * @summary Patch the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Update.json */ async function accountsUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function accountsUpdate() { const result = await client.accounts.beginUpdateAndWait( resourceGroupName, accountName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesCreateSample.ts index 6b2316ba4533..5349b14f7720 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a backup policy for Netapp Account * * @summary Create a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Create.json */ async function backupPoliciesCreate() { const subscriptionId = @@ -32,7 +32,7 @@ async function backupPoliciesCreate() { enabled: true, location: "westus", monthlyBackupsToKeep: 10, - weeklyBackupsToKeep: 10 + weeklyBackupsToKeep: 10, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -40,7 +40,7 @@ async function backupPoliciesCreate() { resourceGroupName, accountName, backupPolicyName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesDeleteSample.ts index ab6bae9205cc..b08e68c37a1f 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete backup policy * * @summary Delete backup policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Delete.json */ async function backupsDelete() { const subscriptionId = @@ -33,7 +33,7 @@ async function backupsDelete() { const result = await client.backupPolicies.beginDeleteAndWait( resourceGroupName, accountName, - backupPolicyName + backupPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesGetSample.ts index 53cc2fc4840c..8f692b9901bd 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a particular backup Policy * * @summary Get a particular backup Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Get.json */ async function backupsGet() { const subscriptionId = @@ -32,7 +32,7 @@ async function backupsGet() { const result = await client.backupPolicies.get( resourceGroupName, accountName, - backupPolicyName + backupPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesListSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesListSample.ts index 6c99bb47ce8e..0fe398c65443 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List backup policies for Netapp Account * * @summary List backup policies for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_List.json */ async function backupsList() { const subscriptionId = @@ -31,7 +31,7 @@ async function backupsList() { const resArray = new Array(); for await (let item of client.backupPolicies.list( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesUpdateSample.ts index 7b8288681132..ebce8bb82494 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch a backup policy for Netapp Account * * @summary Patch a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Update.json */ async function backupPoliciesUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function backupPoliciesUpdate() { enabled: false, location: "westus", monthlyBackupsToKeep: 10, - weeklyBackupsToKeep: 10 + weeklyBackupsToKeep: 10, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -40,7 +40,7 @@ async function backupPoliciesUpdate() { resourceGroupName, accountName, backupPolicyName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/backupVaultsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupVaultsCreateOrUpdateSample.ts deleted file mode 100644 index e741c2c215c6..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupVaultsCreateOrUpdateSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { BackupVault, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create or update the specified Backup Vault in the NetApp account - * - * @summary Create or update the specified Backup Vault in the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Create.json - */ -async function backupVaultCreateOrUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const body: BackupVault = { location: "eastus" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - body - ); - console.log(result); -} - -async function main() { - backupVaultCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupVaultsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupVaultsDeleteSample.ts deleted file mode 100644 index 5918f68afc9d..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupVaultsDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the specified Backup Vault - * - * @summary Delete the specified Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Delete.json - */ -async function backupVaultsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = - process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginDeleteAndWait( - resourceGroupName, - accountName, - backupVaultName - ); - console.log(result); -} - -async function main() { - backupVaultsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupVaultsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupVaultsGetSample.ts deleted file mode 100644 index f12d1e74b43e..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupVaultsGetSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the Backup Vault - * - * @summary Get the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Get.json - */ -async function backupVaultsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.get( - resourceGroupName, - accountName, - backupVaultName - ); - console.log(result); -} - -async function main() { - backupVaultsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupVaultsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupVaultsListByNetAppAccountSample.ts deleted file mode 100644 index 26db2a521b97..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupVaultsListByNetAppAccountSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List and describe all Backup Vaults in the NetApp account. - * - * @summary List and describe all Backup Vaults in the NetApp account. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_List.json - */ -async function backupVaultsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backupVaults.listByNetAppAccount( - resourceGroupName, - accountName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupVaultsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupVaultsUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupVaultsUpdateSample.ts deleted file mode 100644 index 90ad3a20022d..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupVaultsUpdateSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { BackupVaultPatch, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch the specified NetApp Backup Vault - * - * @summary Patch the specified NetApp Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Update.json - */ -async function backupVaultsUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const body: BackupVaultPatch = { tags: { tag1: "Value1" } }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - body - ); - console.log(result); -} - -async function main() { - backupVaultsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsCreateSample.ts deleted file mode 100644 index 11eb66c7c2b7..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsCreateSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { Backup, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a backup under the Backup Vault - * - * @summary Create a backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Create.json - */ -async function backupsUnderBackupVaultCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body: Backup = { - label: "myLabel", - volumeResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPool/pool1/volumes/volume1" - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginCreateAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - body - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsDeleteSample.ts deleted file mode 100644 index fec3afd8d873..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsDeleteSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a Backup under the Backup Vault - * - * @summary Delete a Backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Delete.json - */ -async function backupsUnderBackupVaultDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = - process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginDeleteAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsGetLatestStatusSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsGetLatestStatusSample.ts deleted file mode 100644 index bd1cb2a56c89..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsGetLatestStatusSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the latest status of the backup for a volume - * - * @summary Get the latest status of the backup for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_LatestBackupStatus.json - */ -async function volumesBackupStatus() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.getLatestStatus( - resourceGroupName, - accountName, - poolName, - volumeName - ); - console.log(result); -} - -async function main() { - volumesBackupStatus(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsGetSample.ts deleted file mode 100644 index 98f4a3dd8d30..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsGetSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the specified Backup under Backup Vault. - * - * @summary Get the specified Backup under Backup Vault. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Get.json - */ -async function backupsUnderBackupVaultGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.get( - resourceGroupName, - accountName, - backupVaultName, - backupName - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsGetVolumeRestoreStatusSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsGetVolumeRestoreStatusSample.ts index 6d6ca819cdc8..b65cb60d137c 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupsGetVolumeRestoreStatusSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupsGetVolumeRestoreStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the status of the restore for a volume * * @summary Get the status of the restore for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RestoreStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RestoreStatus.json */ async function volumesRestoreStatus() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesRestoreStatus() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsListByVaultSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsListByVaultSample.ts deleted file mode 100644 index 828c41fbc9af..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsListByVaultSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all backups Under a Backup Vault - * - * @summary List all backups Under a Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_List.json - */ -async function backupsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backups.listByVault( - resourceGroupName, - accountName, - backupVaultName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsUnderAccountMigrateBackupsSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsUnderAccountMigrateBackupsSample.ts deleted file mode 100644 index 9bf1d05d2bf4..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsUnderAccountMigrateBackupsSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - BackupsMigrationRequest, - NetAppManagementClient -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Migrate the backups under a NetApp account to backup vault - * - * @summary Migrate the backups under a NetApp account to backup vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderAccount_Migrate.json - */ -async function backupsUnderAccountMigrate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body: BackupsMigrationRequest = { - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1" - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderAccount.beginMigrateBackupsAndWait( - resourceGroupName, - accountName, - body - ); - console.log(result); -} - -async function main() { - backupsUnderAccountMigrate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsUnderBackupVaultRestoreFilesSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsUnderBackupVaultRestoreFilesSample.ts deleted file mode 100644 index d463fa78ae3d..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsUnderBackupVaultRestoreFilesSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { BackupRestoreFiles, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Restore the specified files from the specified backup to the active filesystem - * - * @summary Restore the specified files from the specified backup to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_SingleFileRestore.json - */ -async function backupsSingleFileRestore() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body: BackupRestoreFiles = { - destinationVolumeId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1", - fileList: ["/dir1/customer1.db", "/dir1/customer2.db"] - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderBackupVault.beginRestoreFilesAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - body - ); - console.log(result); -} - -async function main() { - backupsSingleFileRestore(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsUnderVolumeMigrateBackupsSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsUnderVolumeMigrateBackupsSample.ts deleted file mode 100644 index ab1ce078a0b4..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsUnderVolumeMigrateBackupsSample.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - BackupsMigrationRequest, - NetAppManagementClient -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Migrate the backups under volume to backup vault - * - * @summary Migrate the backups under volume to backup vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderVolume_Migrate.json - */ -async function backupsUnderVolumeMigrate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: BackupsMigrationRequest = { - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1" - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderVolume.beginMigrateBackupsAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body - ); - console.log(result); -} - -async function main() { - backupsUnderVolumeMigrate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsUpdateSample.ts deleted file mode 100644 index 07d90d61e774..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsUpdateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - BackupPatch, - BackupsUpdateOptionalParams, - NetAppManagementClient -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch a Backup under the Backup Vault - * - * @summary Patch a Backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Update.json - */ -async function backupsUnderBackupVaultUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body: BackupPatch = {}; - const options: BackupsUpdateOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - options - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckFilePathAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckFilePathAvailabilitySample.ts index 63a0ea2906e4..05b7dc514c9f 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckFilePathAvailabilitySample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckFilePathAvailabilitySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Check if a file path is available. * * @summary Check if a file path is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckFilePathAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckFilePathAvailability.json */ async function checkFilePathAvailability() { const subscriptionId = @@ -33,7 +33,7 @@ async function checkFilePathAvailability() { const result = await client.netAppResource.checkFilePathAvailability( location, name, - subnetId + subnetId, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckNameAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckNameAvailabilitySample.ts index 3cc975b1d3f9..820942bee7b4 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckNameAvailabilitySample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckNameAvailabilitySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Check if a resource name is available. * * @summary Check if a resource name is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckNameAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckNameAvailability.json */ async function checkNameAvailability() { const subscriptionId = @@ -34,7 +34,7 @@ async function checkNameAvailability() { location, name, typeParam, - resourceGroup + resourceGroup, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckQuotaAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckQuotaAvailabilitySample.ts index 3378adbd26b4..2a1f7e3c50c1 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckQuotaAvailabilitySample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckQuotaAvailabilitySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Check if a quota is available. * * @summary Check if a quota is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckQuotaAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckQuotaAvailability.json */ async function checkQuotaAvailability() { const subscriptionId = @@ -34,7 +34,7 @@ async function checkQuotaAvailability() { location, name, typeParam, - resourceGroup + resourceGroup, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryNetworkSiblingSetSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryNetworkSiblingSetSample.ts index bb58c0a33128..a936ed78bbc9 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryNetworkSiblingSetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryNetworkSiblingSetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified network sibling set. * * @summary Get details of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Query.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Query.json */ async function networkSiblingSetQuery() { const subscriptionId = @@ -33,7 +33,7 @@ async function networkSiblingSetQuery() { const result = await client.netAppResource.queryNetworkSiblingSet( location, networkSiblingSetId, - subnetId + subnetId, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryRegionInfoSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryRegionInfoSample.ts index 7c3cd7080e7d..1d9c5323cee2 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryRegionInfoSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryRegionInfoSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. * * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfo.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json */ async function regionInfoQuery() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsGetSample.ts index 8f0f34b8878d..3078387d6b35 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the default and current subscription quota limit * * @summary Get the default and current subscription quota limit - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_Get.json */ async function quotaLimits() { const subscriptionId = @@ -30,7 +30,7 @@ async function quotaLimits() { const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.netAppResourceQuotaLimits.get( location, - quotaLimitName + quotaLimitName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsListSample.ts index 4a2b587d265e..2d0326e06565 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the default and current limits for quotas * * @summary Get the default and current limits for quotas - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_List.json */ async function quotaLimits() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosGetSample.ts deleted file mode 100644 index 6ad0077bbeb3..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosGetSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. - * - * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_Get.json - */ -async function regionInfosGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResourceRegionInfos.get(location); - console.log(result); -} - -async function main() { - regionInfosGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosListSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosListSample.ts deleted file mode 100644 index 0f001d6f3e8e..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosListSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Provides region specific information. - * - * @summary Provides region specific information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_List.json - */ -async function regionInfosList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.netAppResourceRegionInfos.list(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - regionInfosList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceUpdateNetworkSiblingSetSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceUpdateNetworkSiblingSetSample.ts index 993cb310901c..d813bd8ef06a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceUpdateNetworkSiblingSetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceUpdateNetworkSiblingSetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Update the network features of the specified network sibling set. * * @summary Update the network features of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Update.json */ async function networkFeaturesUpdate() { const subscriptionId = @@ -32,13 +32,14 @@ async function networkFeaturesUpdate() { const networkFeatures = "Standard"; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.beginUpdateNetworkSiblingSetAndWait( - location, - networkSiblingSetId, - subnetId, - networkSiblingSetStateId, - networkFeatures - ); + const result = + await client.netAppResource.beginUpdateNetworkSiblingSetAndWait( + location, + networkSiblingSetId, + subnetId, + networkSiblingSetStateId, + networkFeatures, + ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/operationsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/operationsListSample.ts index b6889338df8c..1d41bd056620 100644 --- a/sdk/netapp/arm-netapp/samples-dev/operationsListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the available Microsoft.NetApp Rest API operations * * @summary Lists all of the available Microsoft.NetApp Rest API operations - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/OperationList.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/OperationList.json */ async function operationList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/poolsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/poolsCreateOrUpdateSample.ts index 5e35e7140231..2959e4972a83 100644 --- a/sdk/netapp/arm-netapp/samples-dev/poolsCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/poolsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or Update a capacity pool * * @summary Create or Update a capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_CreateOrUpdate.json */ async function poolsCreateOrUpdate() { const subscriptionId = @@ -31,7 +31,7 @@ async function poolsCreateOrUpdate() { location: "eastus", qosType: "Auto", serviceLevel: "Premium", - size: 4398046511104 + size: 4398046511104, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function poolsCreateOrUpdate() { resourceGroupName, accountName, poolName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/poolsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/poolsDeleteSample.ts index 601a7a09b375..3f3b5543f973 100644 --- a/sdk/netapp/arm-netapp/samples-dev/poolsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/poolsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified capacity pool * * @summary Delete the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Delete.json */ async function poolsDelete() { const subscriptionId = @@ -32,7 +32,7 @@ async function poolsDelete() { const result = await client.pools.beginDeleteAndWait( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/poolsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/poolsGetSample.ts index 1d9e9e863d38..ec8b1e723890 100644 --- a/sdk/netapp/arm-netapp/samples-dev/poolsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/poolsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified capacity pool * * @summary Get details of the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Get.json */ async function poolsGet() { const subscriptionId = @@ -32,7 +32,7 @@ async function poolsGet() { const result = await client.pools.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/poolsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/poolsListSample.ts index cc274cf7c4c8..732e49f0d81f 100644 --- a/sdk/netapp/arm-netapp/samples-dev/poolsListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/poolsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all capacity pools in the NetApp Account * * @summary List all capacity pools in the NetApp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_List.json */ async function poolsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/poolsUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/poolsUpdateSample.ts index d8b99b70b4cb..fad1ab8f816a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/poolsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/poolsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch the specified capacity pool * * @summary Patch the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Update.json */ async function poolsUpdate() { const subscriptionId = @@ -34,7 +34,7 @@ async function poolsUpdate() { resourceGroupName, accountName, poolName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesCreateSample.ts index c3bb40d7d4fd..5c03a27f4400 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a snapshot policy * * @summary Create a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Create.json */ async function snapshotPoliciesCreate() { const subscriptionId = @@ -36,14 +36,14 @@ async function snapshotPoliciesCreate() { daysOfMonth: "10,11,12", hour: 14, minute: 15, - snapshotsToKeep: 5 + snapshotsToKeep: 5, }, weeklySchedule: { day: "Wednesday", hour: 14, minute: 45, - snapshotsToKeep: 3 - } + snapshotsToKeep: 3, + }, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -51,7 +51,7 @@ async function snapshotPoliciesCreate() { resourceGroupName, accountName, snapshotPolicyName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesDeleteSample.ts index b070d8be07bf..54342c7e4429 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete snapshot policy * * @summary Delete snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Delete.json */ async function snapshotPoliciesDelete() { const subscriptionId = @@ -33,7 +33,7 @@ async function snapshotPoliciesDelete() { const result = await client.snapshotPolicies.beginDeleteAndWait( resourceGroupName, accountName, - snapshotPolicyName + snapshotPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesGetSample.ts index e04c17f19010..22cee775c848 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a snapshot Policy * * @summary Get a snapshot Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Get.json */ async function snapshotPoliciesGet() { const subscriptionId = @@ -32,7 +32,7 @@ async function snapshotPoliciesGet() { const result = await client.snapshotPolicies.get( resourceGroupName, accountName, - snapshotPolicyName + snapshotPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListSample.ts index 0fcd799a519d..c5979f7e1943 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List snapshot policy * * @summary List snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_List.json */ async function snapshotPoliciesList() { const subscriptionId = @@ -31,7 +31,7 @@ async function snapshotPoliciesList() { const resArray = new Array(); for await (let item of client.snapshotPolicies.list( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListVolumesSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListVolumesSample.ts index fef7aef70825..9b9cba0c5ca5 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListVolumesSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListVolumesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get volumes associated with snapshot policy * * @summary Get volumes associated with snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_ListVolumes.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_ListVolumes.json */ async function snapshotPoliciesListVolumes() { const subscriptionId = @@ -32,7 +32,7 @@ async function snapshotPoliciesListVolumes() { const result = await client.snapshotPolicies.listVolumes( resourceGroupName, accountName, - snapshotPolicyName + snapshotPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesUpdateSample.ts index 149027a25a16..13bbe1990711 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch a snapshot policy * * @summary Patch a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Update.json */ async function snapshotPoliciesUpdate() { const subscriptionId = @@ -36,14 +36,14 @@ async function snapshotPoliciesUpdate() { daysOfMonth: "10,11,12", hour: 14, minute: 15, - snapshotsToKeep: 5 + snapshotsToKeep: 5, }, weeklySchedule: { day: "Wednesday", hour: 14, minute: 45, - snapshotsToKeep: 3 - } + snapshotsToKeep: 3, + }, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -51,7 +51,7 @@ async function snapshotPoliciesUpdate() { resourceGroupName, accountName, snapshotPolicyName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsCreateSample.ts index a5ce922be485..a31ec846a3f1 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create the specified snapshot within the given volume * * @summary Create the specified snapshot within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Create.json */ async function snapshotsCreate() { const subscriptionId = @@ -38,7 +38,7 @@ async function snapshotsCreate() { poolName, volumeName, snapshotName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsDeleteSample.ts index e5fcdca7bfbb..6b948039b70e 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete snapshot * * @summary Delete snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Delete.json */ async function snapshotsDelete() { const subscriptionId = @@ -36,7 +36,7 @@ async function snapshotsDelete() { accountName, poolName, volumeName, - snapshotName + snapshotName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsGetSample.ts index d022a1c4641e..a9ccd7cce449 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified snapshot * * @summary Get details of the specified snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Get.json */ async function snapshotsGet() { const subscriptionId = @@ -36,7 +36,7 @@ async function snapshotsGet() { accountName, poolName, volumeName, - snapshotName + snapshotName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsListSample.ts index 3e6b274df61f..523f96cd67fa 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all snapshots associated with the volume * * @summary List all snapshots associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_List.json */ async function snapshotsList() { const subscriptionId = @@ -35,7 +35,7 @@ async function snapshotsList() { resourceGroupName, accountName, poolName, - volumeName + volumeName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsRestoreFilesSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsRestoreFilesSample.ts index cf8c6d188b99..fb03516b70a3 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsRestoreFilesSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsRestoreFilesSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { SnapshotRestoreFiles, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Restore the specified files from the specified snapshot to the active filesystem * * @summary Restore the specified files from the specified snapshot to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_SingleFileRestore.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_SingleFileRestore.json */ async function snapshotsSingleFileRestore() { const subscriptionId = @@ -33,7 +33,7 @@ async function snapshotsSingleFileRestore() { const volumeName = "volume1"; const snapshotName = "snapshot1"; const body: SnapshotRestoreFiles = { - filePaths: ["/dir1/customer1.db", "/dir1/customer2.db"] + filePaths: ["/dir1/customer1.db", "/dir1/customer2.db"], }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function snapshotsSingleFileRestore() { poolName, volumeName, snapshotName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsUpdateSample.ts index 413c1e71fdf8..cda8036eac64 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch a snapshot * * @summary Patch a snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Update.json */ async function snapshotsUpdate() { const subscriptionId = @@ -38,7 +38,7 @@ async function snapshotsUpdate() { poolName, volumeName, snapshotName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesCreateSample.ts index bf067d8f406f..38e28ef35576 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates a subvolume in the path or clones the subvolume mentioned in the parentPath * * @summary Creates a subvolume in the path or clones the subvolume mentioned in the parentPath - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Create.json */ async function subvolumesCreate() { const subscriptionId = @@ -38,7 +38,7 @@ async function subvolumesCreate() { poolName, volumeName, subvolumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesDeleteSample.ts index 7dd5570262e8..b05b7aad7892 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete subvolume * * @summary Delete subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Delete.json */ async function subvolumesDelete() { const subscriptionId = @@ -36,7 +36,7 @@ async function subvolumesDelete() { accountName, poolName, volumeName, - subvolumeName + subvolumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesGetMetadataSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesGetMetadataSample.ts index abadb46aa9c0..ea888f2ca111 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesGetMetadataSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesGetMetadataSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified subvolume * * @summary Get details of the specified subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Metadata.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Metadata.json */ async function subvolumesMetadata() { const subscriptionId = @@ -36,7 +36,7 @@ async function subvolumesMetadata() { accountName, poolName, volumeName, - subvolumeName + subvolumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesGetSample.ts index a1c2a6cd64d5..5c524fb51a04 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns the path associated with the subvolumeName provided * * @summary Returns the path associated with the subvolumeName provided - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Get.json */ async function subvolumesGet() { const subscriptionId = @@ -36,7 +36,7 @@ async function subvolumesGet() { accountName, poolName, volumeName, - subvolumeName + subvolumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesListByVolumeSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesListByVolumeSample.ts index bac5cfd473dd..bd5d44c32e37 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesListByVolumeSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesListByVolumeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns a list of the subvolumes in the volume * * @summary Returns a list of the subvolumes in the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_List.json */ async function subvolumesList() { const subscriptionId = @@ -35,7 +35,7 @@ async function subvolumesList() { resourceGroupName, accountName, poolName, - volumeName + volumeName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesUpdateSample.ts index b1ffe151c805..9d2bcb771801 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { SubvolumePatchRequest, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Patch a subvolume * * @summary Patch a subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Update.json */ async function subvolumesUpdate() { const subscriptionId = @@ -41,7 +41,7 @@ async function subvolumesUpdate() { poolName, volumeName, subvolumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsCreateSample.ts index 0f13621808dc..418ad5aa3844 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a volume group along with specified volumes * * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_Oracle.json */ async function volumeGroupsCreateOracle() { const subscriptionId = @@ -31,7 +31,7 @@ async function volumeGroupsCreateOracle() { groupMetaData: { applicationIdentifier: "OR2", applicationType: "ORACLE", - groupDescription: "Volume group" + groupDescription: "Volume group", }, location: "westus", volumes: [ @@ -56,9 +56,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -67,7 +67,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data1", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data2", @@ -90,9 +90,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -101,7 +101,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data2", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data3", @@ -124,9 +124,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -135,7 +135,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data3", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data4", @@ -158,9 +158,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -169,7 +169,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data4", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data5", @@ -192,9 +192,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -203,7 +203,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data5", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data6", @@ -226,9 +226,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -237,7 +237,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data6", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data7", @@ -260,9 +260,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -271,7 +271,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data7", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data8", @@ -294,9 +294,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -305,7 +305,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data8", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-log", @@ -328,9 +328,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -339,7 +339,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-log", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-log-mirror", @@ -362,9 +362,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -373,7 +373,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-log-mirror", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-binary", @@ -396,9 +396,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -407,7 +407,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-binary", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-backup", @@ -430,9 +430,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -441,9 +441,9 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-backup", - zones: ["1"] - } - ] + zones: ["1"], + }, + ], }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -451,7 +451,7 @@ async function volumeGroupsCreateOracle() { resourceGroupName, accountName, volumeGroupName, - body + body, ); console.log(result); } @@ -460,7 +460,7 @@ async function volumeGroupsCreateOracle() { * This sample demonstrates how to Create a volume group along with specified volumes * * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_SapHana.json */ async function volumeGroupsCreateSapHana() { const subscriptionId = @@ -473,7 +473,7 @@ async function volumeGroupsCreateSapHana() { groupMetaData: { applicationIdentifier: "SH9", applicationType: "SAP-HANA", - groupDescription: "Volume group" + groupDescription: "Volume group", }, location: "westus", volumes: [ @@ -498,9 +498,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -510,7 +510,7 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "data" + volumeSpecName: "data", }, { name: "test-log-mnt00001", @@ -533,9 +533,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -545,7 +545,7 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "log" + volumeSpecName: "log", }, { name: "test-shared", @@ -568,9 +568,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -580,7 +580,7 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "shared" + volumeSpecName: "shared", }, { name: "test-data-backup", @@ -603,9 +603,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -615,7 +615,7 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "data-backup" + volumeSpecName: "data-backup", }, { name: "test-log-backup", @@ -638,9 +638,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -650,9 +650,9 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "log-backup" - } - ] + volumeSpecName: "log-backup", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -660,7 +660,7 @@ async function volumeGroupsCreateSapHana() { resourceGroupName, accountName, volumeGroupName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsDeleteSample.ts index e01302d73dcd..bfd01348e971 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified volume group only if there are no volumes under volume group. * * @summary Delete the specified volume group only if there are no volumes under volume group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Delete.json */ async function volumeGroupsDelete() { const subscriptionId = @@ -32,7 +32,7 @@ async function volumeGroupsDelete() { const result = await client.volumeGroups.beginDeleteAndWait( resourceGroupName, accountName, - volumeGroupName + volumeGroupName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsGetSample.ts index dc28f5ca1baf..54fc72bd6985 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified volume group * * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_Oracle.json */ async function volumeGroupsGetOracle() { const subscriptionId = @@ -32,7 +32,7 @@ async function volumeGroupsGetOracle() { const result = await client.volumeGroups.get( resourceGroupName, accountName, - volumeGroupName + volumeGroupName, ); console.log(result); } @@ -41,7 +41,7 @@ async function volumeGroupsGetOracle() { * This sample demonstrates how to Get details of the specified volume group * * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_SapHana.json */ async function volumeGroupsGetSapHana() { const subscriptionId = @@ -55,7 +55,7 @@ async function volumeGroupsGetSapHana() { const result = await client.volumeGroups.get( resourceGroupName, accountName, - volumeGroupName + volumeGroupName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsListByNetAppAccountSample.ts index c95287efcf06..ae79592660c1 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsListByNetAppAccountSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsListByNetAppAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all volume groups for given account * * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_Oracle.json */ async function volumeGroupsListOracle() { const subscriptionId = @@ -31,7 +31,7 @@ async function volumeGroupsListOracle() { const resArray = new Array(); for await (let item of client.volumeGroups.listByNetAppAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } @@ -42,7 +42,7 @@ async function volumeGroupsListOracle() { * This sample demonstrates how to List all volume groups for given account * * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_SapHana.json */ async function volumeGroupsListSapHana() { const subscriptionId = @@ -55,7 +55,7 @@ async function volumeGroupsListSapHana() { const resArray = new Array(); for await (let item of client.volumeGroups.listByNetAppAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesCreateSample.ts index 2635560f8c1f..ebf4971bd014 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create the specified quota rule within the given volume * * @summary Create the specified quota rule within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Create.json */ async function volumeQuotaRulesCreate() { const subscriptionId = @@ -33,7 +33,7 @@ async function volumeQuotaRulesCreate() { location: "westus", quotaSizeInKiBs: 100005, quotaTarget: "1821", - quotaType: "IndividualUserQuota" + quotaType: "IndividualUserQuota", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function volumeQuotaRulesCreate() { poolName, volumeName, volumeQuotaRuleName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesDeleteSample.ts index 3bd1d48a0aba..8df9f5b6705a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete quota rule * * @summary Delete quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Delete.json */ async function volumeQuotaRulesDelete() { const subscriptionId = @@ -36,7 +36,7 @@ async function volumeQuotaRulesDelete() { accountName, poolName, volumeName, - volumeQuotaRuleName + volumeQuotaRuleName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesGetSample.ts index ae6fa041a5d7..d51f2cbe651d 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified quota rule * * @summary Get details of the specified quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Get.json */ async function volumeQuotaRulesGet() { const subscriptionId = @@ -36,7 +36,7 @@ async function volumeQuotaRulesGet() { accountName, poolName, volumeName, - volumeQuotaRuleName + volumeQuotaRuleName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesListByVolumeSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesListByVolumeSample.ts index 633491b0db13..3c0e2c1a473b 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesListByVolumeSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesListByVolumeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all quota rules associated with the volume * * @summary List all quota rules associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_List.json */ async function volumeQuotaRulesList() { const subscriptionId = @@ -35,7 +35,7 @@ async function volumeQuotaRulesList() { resourceGroupName, accountName, poolName, - volumeName + volumeName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesUpdateSample.ts index d73d0af1c03b..556ec699bf30 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VolumeQuotaRulePatch, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Patch a quota rule * * @summary Patch a quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Update.json */ async function volumeQuotaRulesUpdate() { const subscriptionId = @@ -41,7 +41,7 @@ async function volumeQuotaRulesUpdate() { poolName, volumeName, volumeQuotaRuleName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesAuthorizeReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesAuthorizeReplicationSample.ts index 34f5e7d6773b..6278a643d49e 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesAuthorizeReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesAuthorizeReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Authorize the replication connection on the source volume * * @summary Authorize the replication connection on the source volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_AuthorizeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_AuthorizeReplication.json */ async function volumesAuthorizeReplication() { const subscriptionId = @@ -30,7 +30,7 @@ async function volumesAuthorizeReplication() { const volumeName = "volume1"; const body: AuthorizeRequest = { remoteVolumeResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1" + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function volumesAuthorizeReplication() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesBreakFileLocksSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesBreakFileLocksSample.ts index 4968b24e20c5..a0caa568c761 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesBreakFileLocksSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesBreakFileLocksSample.ts @@ -11,7 +11,7 @@ import { BreakFileLocksRequest, VolumesBreakFileLocksOptionalParams, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Break all the file locks on a volume * * @summary Break all the file locks on a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakFileLocks.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakFileLocks.json */ async function volumesBreakFileLocks() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesBreakFileLocks() { const volumeName = "volume1"; const body: BreakFileLocksRequest = { clientIp: "101.102.103.104", - confirmRunningDisruptiveOperation: true + confirmRunningDisruptiveOperation: true, }; const options: VolumesBreakFileLocksOptionalParams = { body }; const credential = new DefaultAzureCredential(); @@ -44,7 +44,7 @@ async function volumesBreakFileLocks() { accountName, poolName, volumeName, - options + options, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesBreakReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesBreakReplicationSample.ts index 8e71b4fb4187..64c5fdbfcebf 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesBreakReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesBreakReplicationSample.ts @@ -11,7 +11,7 @@ import { BreakReplicationRequest, VolumesBreakReplicationOptionalParams, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Break the replication connection on the destination volume * * @summary Break the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakReplication.json */ async function volumesBreakReplication() { const subscriptionId = @@ -41,7 +41,7 @@ async function volumesBreakReplication() { accountName, poolName, volumeName, - options + options, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesCreateOrUpdateSample.ts index b3eb6943dbbf..a9a34de126df 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update the specified volume within the capacity pool * * @summary Create or update the specified volume within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_CreateOrUpdate.json */ async function volumesCreateOrUpdate() { const subscriptionId = @@ -30,13 +30,11 @@ async function volumesCreateOrUpdate() { const volumeName = "volume1"; const body: Volume = { creationToken: "my-unique-file-path", - encryptionKeySource: "Microsoft.KeyVault", location: "eastus", serviceLevel: "Premium", subnetId: "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 128, - usageThreshold: 107374182400 + usageThreshold: 107374182400, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -45,7 +43,7 @@ async function volumesCreateOrUpdate() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesDeleteReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesDeleteReplicationSample.ts index 96063c59f5fd..a4d66f403658 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesDeleteReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesDeleteReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the replication connection on the destination volume, and send release to the source replication * * @summary Delete the replication connection on the destination volume, and send release to the source replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_DeleteReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_DeleteReplication.json */ async function volumesDeleteReplication() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesDeleteReplication() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesDeleteSample.ts index 75a4bce9ad86..f66ad69f0fc2 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified volume * * @summary Delete the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Delete.json */ async function volumesDelete() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesDelete() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesFinalizeRelocationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesFinalizeRelocationSample.ts index 084aad858a59..f5a6a2a32128 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesFinalizeRelocationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesFinalizeRelocationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Finalizes the relocation of the volume and cleans up the old volume. * * @summary Finalizes the relocation of the volume and cleans up the old volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_FinalizeRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_FinalizeRelocation.json */ async function volumesFinalizeRelocation() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesFinalizeRelocation() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesGetSample.ts index 9cd849ab90d0..148073a4ea21 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the details of the specified volume * * @summary Get the details of the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Get.json */ async function volumesGet() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesGet() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesListGetGroupIdListForLdapUserSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesListGetGroupIdListForLdapUserSample.ts index 5bc7dd0c12f5..2c3af3ef5a2a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesListGetGroupIdListForLdapUserSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesListGetGroupIdListForLdapUserSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GetGroupIdListForLdapUserRequest, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Returns the list of group Ids for a specific LDAP User * * @summary Returns the list of group Ids for a specific LDAP User - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/GroupIdListForLDAPUser.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/GroupIdListForLDAPUser.json */ async function getGroupIdListForUser() { const subscriptionId = @@ -39,7 +39,7 @@ async function getGroupIdListForUser() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesListReplicationsSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesListReplicationsSample.ts index 25b4ea9e10d7..8d4ffdb22d84 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesListReplicationsSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesListReplicationsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all replications for a specified volume * * @summary List all replications for a specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ListReplications.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ListReplications.json */ async function volumesListReplications() { const subscriptionId = @@ -35,7 +35,7 @@ async function volumesListReplications() { resourceGroupName, accountName, poolName, - volumeName + volumeName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesListSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesListSample.ts index 1e6320a9ad05..1897922b20bd 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all volumes within the capacity pool * * @summary List all volumes within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_List.json */ async function volumesList() { const subscriptionId = @@ -33,7 +33,7 @@ async function volumesList() { for await (let item of client.volumes.list( resourceGroupName, accountName, - poolName + poolName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesPoolChangeSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesPoolChangeSample.ts index e9bcd70a6317..27f44c2d5091 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesPoolChangeSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesPoolChangeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Moves volume to another pool * * @summary Moves volume to another pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PoolChange.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PoolChange.json */ async function volumesAuthorizeReplication() { const subscriptionId = @@ -30,7 +30,7 @@ async function volumesAuthorizeReplication() { const volumeName = "volume1"; const body: PoolChangeRequest = { newPoolResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1" + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function volumesAuthorizeReplication() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesPopulateAvailabilityZoneSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesPopulateAvailabilityZoneSample.ts index c363a99c4af3..693dd0710a7d 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesPopulateAvailabilityZoneSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesPopulateAvailabilityZoneSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to This operation will populate availability zone information for a volume * * @summary This operation will populate availability zone information for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PopulateAvailabilityZones.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PopulateAvailabilityZones.json */ async function volumesPopulateAvailabilityZones() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesPopulateAvailabilityZones() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesReInitializeReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesReInitializeReplicationSample.ts index 2b8e869cc66a..212d4a1b7728 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesReInitializeReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesReInitializeReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Re-Initializes the replication connection on the destination volume * * @summary Re-Initializes the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReInitializeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReInitializeReplication.json */ async function volumesReInitializeReplication() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesReInitializeReplication() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesReestablishReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesReestablishReplicationSample.ts index 74f3243493aa..afdd687cbe2c 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesReestablishReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesReestablishReplicationSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ReestablishReplicationRequest, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots * * @summary Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReestablishReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReestablishReplication.json */ async function volumesReestablishReplication() { const subscriptionId = @@ -33,7 +33,7 @@ async function volumesReestablishReplication() { const volumeName = "volume1"; const body: ReestablishReplicationRequest = { sourceVolumeId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1" + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -42,7 +42,7 @@ async function volumesReestablishReplication() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesRelocateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesRelocateSample.ts index 3c278a1211af..8ee2bb638298 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesRelocateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesRelocateSample.ts @@ -11,7 +11,7 @@ import { RelocateVolumeRequest, VolumesRelocateOptionalParams, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Relocates volume to a new stamp * * @summary Relocates volume to a new stamp - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Relocate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Relocate.json */ async function volumesRelocate() { const subscriptionId = @@ -41,7 +41,7 @@ async function volumesRelocate() { accountName, poolName, volumeName, - options + options, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesReplicationStatusSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesReplicationStatusSample.ts index 703a80c6a2cc..841b6e9cb282 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesReplicationStatusSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesReplicationStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the status of the replication * * @summary Get the status of the replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReplicationStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReplicationStatus.json */ async function volumesReplicationStatus() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesReplicationStatus() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesResetCifsPasswordSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesResetCifsPasswordSample.ts index bfdd4ad6ab8a..12a35039d3f2 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesResetCifsPasswordSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesResetCifsPasswordSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Reset cifs password from volume * * @summary Reset cifs password from volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResetCifsPassword.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResetCifsPassword.json */ async function volumesResetCifsPassword() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesResetCifsPassword() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesResyncReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesResyncReplicationSample.ts index 819e72b259cc..bbefe158f37e 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesResyncReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesResyncReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. * * @summary Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResyncReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResyncReplication.json */ async function volumesResyncReplication() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesResyncReplication() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesRevertRelocationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesRevertRelocationSample.ts index 971c433827cb..b88b8b4b77ba 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesRevertRelocationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesRevertRelocationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @summary Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RevertRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RevertRelocation.json */ async function volumesRevertRelocation() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesRevertRelocation() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesRevertSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesRevertSample.ts index be658f3923d5..bf4f444ee1fa 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesRevertSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesRevertSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Revert a volume to the snapshot specified in the body * * @summary Revert a volume to the snapshot specified in the body - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Revert.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Revert.json */ async function volumesRevert() { const subscriptionId = @@ -30,7 +30,7 @@ async function volumesRevert() { const volumeName = "volume1"; const body: VolumeRevert = { snapshotId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1" + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function volumesRevert() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesSplitCloneFromParentSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesSplitCloneFromParentSample.ts deleted file mode 100644 index 83a8764fe8f2..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/volumesSplitCloneFromParentSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Split operation to convert clone volume to an independent volume. - * - * @summary Split operation to convert clone volume to an independent volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_SplitClone.json - */ -async function volumesSplitClone() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginSplitCloneFromParentAndWait( - resourceGroupName, - accountName, - poolName, - volumeName - ); - console.log(result); -} - -async function main() { - volumesSplitClone(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesUpdateSample.ts index 1b1facca9524..9f6d327bb77a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch the specified volume * * @summary Patch the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Update.json */ async function volumesUpdate() { const subscriptionId = @@ -28,17 +28,7 @@ async function volumesUpdate() { const accountName = "account1"; const poolName = "pool1"; const volumeName = "volume1"; - const body: VolumePatch = { - dataProtection: { - backup: { - backupEnabled: true, - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRP/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1", - policyEnforced: false - } - }, - location: "eastus" - }; + const body: VolumePatch = {}; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.volumes.beginUpdateAndWait( @@ -46,7 +36,7 @@ async function volumesUpdate() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsDeleteSample.js deleted file mode 100644 index 89a970a1d13f..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the specified Backup for a Netapp Account - * - * @summary Delete the specified Backup for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Delete.json - */ -async function accountBackupsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "accountName"; - const backupName = "backupName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accountBackups.beginDeleteAndWait( - resourceGroupName, - accountName, - backupName, - ); - console.log(result); -} - -async function main() { - accountBackupsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsGetSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsGetSample.js deleted file mode 100644 index 37af4530968f..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsGetSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets the specified backup for a Netapp Account - * - * @summary Gets the specified backup for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Get.json - */ -async function accountBackupsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accountBackups.get(resourceGroupName, accountName, backupName); - console.log(result); -} - -async function main() { - accountBackupsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsListByNetAppAccountSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsListByNetAppAccountSample.js deleted file mode 100644 index 0c20b31287a9..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsListByNetAppAccountSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all Backups for a Netapp Account - * - * @summary List all Backups for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_List.json - */ -async function accountBackupsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.accountBackups.listByNetAppAccount( - resourceGroupName, - accountName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accountBackupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsMigrateEncryptionKeySample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsMigrateEncryptionKeySample.js deleted file mode 100644 index 30623f11199c..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsMigrateEncryptionKeySample.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. - * - * @summary Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_MigrateEncryptionKey.json - */ -async function accountsMigrateEncryptionKey() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body = { - privateEndpointId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1", - virtualNetworkId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1", - }; - const options = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginMigrateEncryptionKeyAndWait( - resourceGroupName, - accountName, - options, - ); - console.log(result); -} - -async function main() { - accountsMigrateEncryptionKey(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsCreateOrUpdateSample.js deleted file mode 100644 index 98c3c5c92209..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsCreateOrUpdateSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create or update the specified Backup Vault in the NetApp account - * - * @summary Create or update the specified Backup Vault in the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Create.json - */ -async function backupVaultCreateOrUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const body = { location: "eastus" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - body, - ); - console.log(result); -} - -async function main() { - backupVaultCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsDeleteSample.js deleted file mode 100644 index ab9d43c1ffe3..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the specified Backup Vault - * - * @summary Delete the specified Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Delete.json - */ -async function backupVaultsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginDeleteAndWait( - resourceGroupName, - accountName, - backupVaultName, - ); - console.log(result); -} - -async function main() { - backupVaultsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsGetSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsGetSample.js deleted file mode 100644 index 76881e7ec716..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsGetSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the Backup Vault - * - * @summary Get the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Get.json - */ -async function backupVaultsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.get(resourceGroupName, accountName, backupVaultName); - console.log(result); -} - -async function main() { - backupVaultsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsListByNetAppAccountSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsListByNetAppAccountSample.js deleted file mode 100644 index f01e7084898a..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsListByNetAppAccountSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List and describe all Backup Vaults in the NetApp account. - * - * @summary List and describe all Backup Vaults in the NetApp account. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_List.json - */ -async function backupVaultsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backupVaults.listByNetAppAccount(resourceGroupName, accountName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupVaultsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsUpdateSample.js deleted file mode 100644 index 5ffa172c1707..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsUpdateSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch the specified NetApp Backup Vault - * - * @summary Patch the specified NetApp Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Update.json - */ -async function backupVaultsUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const body = { tags: { tag1: "Value1" } }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - body, - ); - console.log(result); -} - -async function main() { - backupVaultsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsCreateSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsCreateSample.js deleted file mode 100644 index 698713a92a37..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsCreateSample.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a backup under the Backup Vault - * - * @summary Create a backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Create.json - */ -async function backupsUnderBackupVaultCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body = { - label: "myLabel", - volumeResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPool/pool1/volumes/volume1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginCreateAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - body, - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsDeleteSample.js deleted file mode 100644 index 3fc6a3dcde72..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsDeleteSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete a Backup under the Backup Vault - * - * @summary Delete a Backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Delete.json - */ -async function backupsUnderBackupVaultDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginDeleteAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetLatestStatusSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetLatestStatusSample.js deleted file mode 100644 index db0e8f370868..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetLatestStatusSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the latest status of the backup for a volume - * - * @summary Get the latest status of the backup for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_LatestBackupStatus.json - */ -async function volumesBackupStatus() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.getLatestStatus( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesBackupStatus(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetSample.js deleted file mode 100644 index 06b73145fd62..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the specified Backup under Backup Vault. - * - * @summary Get the specified Backup under Backup Vault. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Get.json - */ -async function backupsUnderBackupVaultGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.get( - resourceGroupName, - accountName, - backupVaultName, - backupName, - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsListByVaultSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsListByVaultSample.js deleted file mode 100644 index 39eb229f2216..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsListByVaultSample.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all backups Under a Backup Vault - * - * @summary List all backups Under a Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_List.json - */ -async function backupsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backups.listByVault( - resourceGroupName, - accountName, - backupVaultName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderAccountMigrateBackupsSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderAccountMigrateBackupsSample.js deleted file mode 100644 index 84810072bc25..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderAccountMigrateBackupsSample.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Migrate the backups under a NetApp account to backup vault - * - * @summary Migrate the backups under a NetApp account to backup vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderAccount_Migrate.json - */ -async function backupsUnderAccountMigrate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body = { - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderAccount.beginMigrateBackupsAndWait( - resourceGroupName, - accountName, - body, - ); - console.log(result); -} - -async function main() { - backupsUnderAccountMigrate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderBackupVaultRestoreFilesSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderBackupVaultRestoreFilesSample.js deleted file mode 100644 index 7769fe00412d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderBackupVaultRestoreFilesSample.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Restore the specified files from the specified backup to the active filesystem - * - * @summary Restore the specified files from the specified backup to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_SingleFileRestore.json - */ -async function backupsSingleFileRestore() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body = { - destinationVolumeId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1", - fileList: ["/dir1/customer1.db", "/dir1/customer2.db"], - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderBackupVault.beginRestoreFilesAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - body, - ); - console.log(result); -} - -async function main() { - backupsSingleFileRestore(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderVolumeMigrateBackupsSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderVolumeMigrateBackupsSample.js deleted file mode 100644 index 1a58084b3140..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderVolumeMigrateBackupsSample.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Migrate the backups under volume to backup vault - * - * @summary Migrate the backups under volume to backup vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderVolume_Migrate.json - */ -async function backupsUnderVolumeMigrate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body = { - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderVolume.beginMigrateBackupsAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - backupsUnderVolumeMigrate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUpdateSample.js deleted file mode 100644 index 909295f2c60e..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUpdateSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch a Backup under the Backup Vault - * - * @summary Patch a Backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Update.json - */ -async function backupsUnderBackupVaultUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body = {}; - const options = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - options, - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosGetSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosGetSample.js deleted file mode 100644 index 52609dc4fdee..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosGetSample.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. - * - * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_Get.json - */ -async function regionInfosGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResourceRegionInfos.get(location); - console.log(result); -} - -async function main() { - regionInfosGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosListSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosListSample.js deleted file mode 100644 index bfe7b8ce6851..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosListSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Provides region specific information. - * - * @summary Provides region specific information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_List.json - */ -async function regionInfosList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.netAppResourceRegionInfos.list(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - regionInfosList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesSplitCloneFromParentSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesSplitCloneFromParentSample.js deleted file mode 100644 index 479163184261..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesSplitCloneFromParentSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Split operation to convert clone volume to an independent volume. - * - * @summary Split operation to convert clone volume to an independent volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_SplitClone.json - */ -async function volumesSplitClone() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginSplitCloneFromParentAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesSplitClone(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsDeleteSample.ts deleted file mode 100644 index a70df34e81e9..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the specified Backup for a Netapp Account - * - * @summary Delete the specified Backup for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Delete.json - */ -async function accountBackupsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = - process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "accountName"; - const backupName = "backupName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accountBackups.beginDeleteAndWait( - resourceGroupName, - accountName, - backupName - ); - console.log(result); -} - -async function main() { - accountBackupsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsGetSample.ts deleted file mode 100644 index 2410c0df94ab..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsGetSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the specified backup for a Netapp Account - * - * @summary Gets the specified backup for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Get.json - */ -async function accountBackupsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accountBackups.get( - resourceGroupName, - accountName, - backupName - ); - console.log(result); -} - -async function main() { - accountBackupsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsListByNetAppAccountSample.ts deleted file mode 100644 index b9f7624afc1f..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsListByNetAppAccountSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all Backups for a Netapp Account - * - * @summary List all Backups for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_List.json - */ -async function accountBackupsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.accountBackups.listByNetAppAccount( - resourceGroupName, - accountName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accountBackupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsMigrateEncryptionKeySample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsMigrateEncryptionKeySample.ts deleted file mode 100644 index 4975f091426e..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsMigrateEncryptionKeySample.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - EncryptionMigrationRequest, - AccountsMigrateEncryptionKeyOptionalParams, - NetAppManagementClient -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. - * - * @summary Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_MigrateEncryptionKey.json - */ -async function accountsMigrateEncryptionKey() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body: EncryptionMigrationRequest = { - privateEndpointId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1", - virtualNetworkId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1" - }; - const options: AccountsMigrateEncryptionKeyOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginMigrateEncryptionKeyAndWait( - resourceGroupName, - accountName, - options - ); - console.log(result); -} - -async function main() { - accountsMigrateEncryptionKey(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsCreateOrUpdateSample.ts deleted file mode 100644 index e741c2c215c6..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsCreateOrUpdateSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { BackupVault, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create or update the specified Backup Vault in the NetApp account - * - * @summary Create or update the specified Backup Vault in the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Create.json - */ -async function backupVaultCreateOrUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const body: BackupVault = { location: "eastus" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - body - ); - console.log(result); -} - -async function main() { - backupVaultCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsDeleteSample.ts deleted file mode 100644 index 5918f68afc9d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the specified Backup Vault - * - * @summary Delete the specified Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Delete.json - */ -async function backupVaultsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = - process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginDeleteAndWait( - resourceGroupName, - accountName, - backupVaultName - ); - console.log(result); -} - -async function main() { - backupVaultsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsGetSample.ts deleted file mode 100644 index f12d1e74b43e..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsGetSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the Backup Vault - * - * @summary Get the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Get.json - */ -async function backupVaultsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.get( - resourceGroupName, - accountName, - backupVaultName - ); - console.log(result); -} - -async function main() { - backupVaultsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsListByNetAppAccountSample.ts deleted file mode 100644 index 26db2a521b97..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsListByNetAppAccountSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List and describe all Backup Vaults in the NetApp account. - * - * @summary List and describe all Backup Vaults in the NetApp account. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_List.json - */ -async function backupVaultsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backupVaults.listByNetAppAccount( - resourceGroupName, - accountName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupVaultsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsUpdateSample.ts deleted file mode 100644 index 90ad3a20022d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsUpdateSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { BackupVaultPatch, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch the specified NetApp Backup Vault - * - * @summary Patch the specified NetApp Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Update.json - */ -async function backupVaultsUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const body: BackupVaultPatch = { tags: { tag1: "Value1" } }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - body - ); - console.log(result); -} - -async function main() { - backupVaultsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsCreateSample.ts deleted file mode 100644 index 11eb66c7c2b7..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsCreateSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { Backup, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a backup under the Backup Vault - * - * @summary Create a backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Create.json - */ -async function backupsUnderBackupVaultCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body: Backup = { - label: "myLabel", - volumeResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPool/pool1/volumes/volume1" - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginCreateAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - body - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsDeleteSample.ts deleted file mode 100644 index fec3afd8d873..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsDeleteSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a Backup under the Backup Vault - * - * @summary Delete a Backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Delete.json - */ -async function backupsUnderBackupVaultDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = - process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginDeleteAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetLatestStatusSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetLatestStatusSample.ts deleted file mode 100644 index bd1cb2a56c89..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetLatestStatusSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the latest status of the backup for a volume - * - * @summary Get the latest status of the backup for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_LatestBackupStatus.json - */ -async function volumesBackupStatus() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.getLatestStatus( - resourceGroupName, - accountName, - poolName, - volumeName - ); - console.log(result); -} - -async function main() { - volumesBackupStatus(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetSample.ts deleted file mode 100644 index 98f4a3dd8d30..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the specified Backup under Backup Vault. - * - * @summary Get the specified Backup under Backup Vault. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Get.json - */ -async function backupsUnderBackupVaultGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.get( - resourceGroupName, - accountName, - backupVaultName, - backupName - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsListByVaultSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsListByVaultSample.ts deleted file mode 100644 index 828c41fbc9af..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsListByVaultSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all backups Under a Backup Vault - * - * @summary List all backups Under a Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_List.json - */ -async function backupsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backups.listByVault( - resourceGroupName, - accountName, - backupVaultName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderAccountMigrateBackupsSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderAccountMigrateBackupsSample.ts deleted file mode 100644 index 9bf1d05d2bf4..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderAccountMigrateBackupsSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - BackupsMigrationRequest, - NetAppManagementClient -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Migrate the backups under a NetApp account to backup vault - * - * @summary Migrate the backups under a NetApp account to backup vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderAccount_Migrate.json - */ -async function backupsUnderAccountMigrate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body: BackupsMigrationRequest = { - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1" - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderAccount.beginMigrateBackupsAndWait( - resourceGroupName, - accountName, - body - ); - console.log(result); -} - -async function main() { - backupsUnderAccountMigrate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderBackupVaultRestoreFilesSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderBackupVaultRestoreFilesSample.ts deleted file mode 100644 index d463fa78ae3d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderBackupVaultRestoreFilesSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { BackupRestoreFiles, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Restore the specified files from the specified backup to the active filesystem - * - * @summary Restore the specified files from the specified backup to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_SingleFileRestore.json - */ -async function backupsSingleFileRestore() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body: BackupRestoreFiles = { - destinationVolumeId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1", - fileList: ["/dir1/customer1.db", "/dir1/customer2.db"] - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderBackupVault.beginRestoreFilesAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - body - ); - console.log(result); -} - -async function main() { - backupsSingleFileRestore(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderVolumeMigrateBackupsSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderVolumeMigrateBackupsSample.ts deleted file mode 100644 index ab1ce078a0b4..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderVolumeMigrateBackupsSample.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - BackupsMigrationRequest, - NetAppManagementClient -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Migrate the backups under volume to backup vault - * - * @summary Migrate the backups under volume to backup vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderVolume_Migrate.json - */ -async function backupsUnderVolumeMigrate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: BackupsMigrationRequest = { - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1" - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderVolume.beginMigrateBackupsAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body - ); - console.log(result); -} - -async function main() { - backupsUnderVolumeMigrate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUpdateSample.ts deleted file mode 100644 index 07d90d61e774..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUpdateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - BackupPatch, - BackupsUpdateOptionalParams, - NetAppManagementClient -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch a Backup under the Backup Vault - * - * @summary Patch a Backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Update.json - */ -async function backupsUnderBackupVaultUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body: BackupPatch = {}; - const options: BackupsUpdateOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - options - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosGetSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosGetSample.ts deleted file mode 100644 index 6ad0077bbeb3..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosGetSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. - * - * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_Get.json - */ -async function regionInfosGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResourceRegionInfos.get(location); - console.log(result); -} - -async function main() { - regionInfosGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesSplitCloneFromParentSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesSplitCloneFromParentSample.ts deleted file mode 100644 index 83a8764fe8f2..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesSplitCloneFromParentSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Split operation to convert clone volume to an independent volume. - * - * @summary Split operation to convert clone volume to an independent volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_SplitClone.json - */ -async function volumesSplitClone() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginSplitCloneFromParentAndWait( - resourceGroupName, - accountName, - poolName, - volumeName - ); - console.log(result); -} - -async function main() { - volumesSplitClone(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/README.md b/sdk/netapp/arm-netapp/samples/v20/javascript/README.md similarity index 53% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/README.md rename to sdk/netapp/arm-netapp/samples/v20/javascript/README.md index d2799d0c39f3..3a89a903aff0 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/README.md +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/README.md @@ -1,106 +1,85 @@ -# client library samples for JavaScript (Beta) +# client library samples for JavaScript These sample programs show how to use the JavaScript client libraries for in some common scenarios. -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [accountBackupsDeleteSample.js][accountbackupsdeletesample] | Delete the specified Backup for a Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Delete.json | -| [accountBackupsGetSample.js][accountbackupsgetsample] | Gets the specified backup for a Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Get.json | -| [accountBackupsListByNetAppAccountSample.js][accountbackupslistbynetappaccountsample] | List all Backups for a Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_List.json | -| [accountsCreateOrUpdateSample.js][accountscreateorupdatesample] | Create or update the specified NetApp account within the resource group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdate.json | -| [accountsDeleteSample.js][accountsdeletesample] | Delete the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Delete.json | -| [accountsGetSample.js][accountsgetsample] | Get the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Get.json | -| [accountsListBySubscriptionSample.js][accountslistbysubscriptionsample] | List and describe all NetApp accounts in the subscription. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json | -| [accountsListSample.js][accountslistsample] | List and describe all NetApp accounts in the resource group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json | -| [accountsMigrateEncryptionKeySample.js][accountsmigrateencryptionkeysample] | Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_MigrateEncryptionKey.json | -| [accountsRenewCredentialsSample.js][accountsrenewcredentialssample] | Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_RenewCredentials.json | -| [accountsUpdateSample.js][accountsupdatesample] | Patch the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Update.json | -| [backupPoliciesCreateSample.js][backuppoliciescreatesample] | Create a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Create.json | -| [backupPoliciesDeleteSample.js][backuppoliciesdeletesample] | Delete backup policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Delete.json | -| [backupPoliciesGetSample.js][backuppoliciesgetsample] | Get a particular backup Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Get.json | -| [backupPoliciesListSample.js][backuppolicieslistsample] | List backup policies for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_List.json | -| [backupPoliciesUpdateSample.js][backuppoliciesupdatesample] | Patch a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Update.json | -| [backupVaultsCreateOrUpdateSample.js][backupvaultscreateorupdatesample] | Create or update the specified Backup Vault in the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Create.json | -| [backupVaultsDeleteSample.js][backupvaultsdeletesample] | Delete the specified Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Delete.json | -| [backupVaultsGetSample.js][backupvaultsgetsample] | Get the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Get.json | -| [backupVaultsListByNetAppAccountSample.js][backupvaultslistbynetappaccountsample] | List and describe all Backup Vaults in the NetApp account. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_List.json | -| [backupVaultsUpdateSample.js][backupvaultsupdatesample] | Patch the specified NetApp Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Update.json | -| [backupsCreateSample.js][backupscreatesample] | Create a backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Create.json | -| [backupsDeleteSample.js][backupsdeletesample] | Delete a Backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Delete.json | -| [backupsGetLatestStatusSample.js][backupsgetlateststatussample] | Get the latest status of the backup for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_LatestBackupStatus.json | -| [backupsGetSample.js][backupsgetsample] | Get the specified Backup under Backup Vault. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Get.json | -| [backupsGetVolumeRestoreStatusSample.js][backupsgetvolumerestorestatussample] | Get the status of the restore for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RestoreStatus.json | -| [backupsListByVaultSample.js][backupslistbyvaultsample] | List all backups Under a Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_List.json | -| [backupsUnderAccountMigrateBackupsSample.js][backupsunderaccountmigratebackupssample] | Migrate the backups under a NetApp account to backup vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderAccount_Migrate.json | -| [backupsUnderBackupVaultRestoreFilesSample.js][backupsunderbackupvaultrestorefilessample] | Restore the specified files from the specified backup to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_SingleFileRestore.json | -| [backupsUnderVolumeMigrateBackupsSample.js][backupsundervolumemigratebackupssample] | Migrate the backups under volume to backup vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderVolume_Migrate.json | -| [backupsUpdateSample.js][backupsupdatesample] | Patch a Backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Update.json | -| [netAppResourceCheckFilePathAvailabilitySample.js][netappresourcecheckfilepathavailabilitysample] | Check if a file path is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckFilePathAvailability.json | -| [netAppResourceCheckNameAvailabilitySample.js][netappresourcechecknameavailabilitysample] | Check if a resource name is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckNameAvailability.json | -| [netAppResourceCheckQuotaAvailabilitySample.js][netappresourcecheckquotaavailabilitysample] | Check if a quota is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckQuotaAvailability.json | -| [netAppResourceQueryNetworkSiblingSetSample.js][netappresourcequerynetworksiblingsetsample] | Get details of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Query.json | -| [netAppResourceQueryRegionInfoSample.js][netappresourcequeryregioninfosample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfo.json | -| [netAppResourceQuotaLimitsGetSample.js][netappresourcequotalimitsgetsample] | Get the default and current subscription quota limit x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_Get.json | -| [netAppResourceQuotaLimitsListSample.js][netappresourcequotalimitslistsample] | Get the default and current limits for quotas x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_List.json | -| [netAppResourceRegionInfosGetSample.js][netappresourceregioninfosgetsample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_Get.json | -| [netAppResourceRegionInfosListSample.js][netappresourceregioninfoslistsample] | Provides region specific information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_List.json | -| [netAppResourceUpdateNetworkSiblingSetSample.js][netappresourceupdatenetworksiblingsetsample] | Update the network features of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Update.json | -| [operationsListSample.js][operationslistsample] | Lists all of the available Microsoft.NetApp Rest API operations x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/OperationList.json | -| [poolsCreateOrUpdateSample.js][poolscreateorupdatesample] | Create or Update a capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_CreateOrUpdate.json | -| [poolsDeleteSample.js][poolsdeletesample] | Delete the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Delete.json | -| [poolsGetSample.js][poolsgetsample] | Get details of the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Get.json | -| [poolsListSample.js][poolslistsample] | List all capacity pools in the NetApp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_List.json | -| [poolsUpdateSample.js][poolsupdatesample] | Patch the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Update.json | -| [snapshotPoliciesCreateSample.js][snapshotpoliciescreatesample] | Create a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Create.json | -| [snapshotPoliciesDeleteSample.js][snapshotpoliciesdeletesample] | Delete snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Delete.json | -| [snapshotPoliciesGetSample.js][snapshotpoliciesgetsample] | Get a snapshot Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Get.json | -| [snapshotPoliciesListSample.js][snapshotpolicieslistsample] | List snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_List.json | -| [snapshotPoliciesListVolumesSample.js][snapshotpolicieslistvolumessample] | Get volumes associated with snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_ListVolumes.json | -| [snapshotPoliciesUpdateSample.js][snapshotpoliciesupdatesample] | Patch a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Update.json | -| [snapshotsCreateSample.js][snapshotscreatesample] | Create the specified snapshot within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Create.json | -| [snapshotsDeleteSample.js][snapshotsdeletesample] | Delete snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Delete.json | -| [snapshotsGetSample.js][snapshotsgetsample] | Get details of the specified snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Get.json | -| [snapshotsListSample.js][snapshotslistsample] | List all snapshots associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_List.json | -| [snapshotsRestoreFilesSample.js][snapshotsrestorefilessample] | Restore the specified files from the specified snapshot to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_SingleFileRestore.json | -| [snapshotsUpdateSample.js][snapshotsupdatesample] | Patch a snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Update.json | -| [subvolumesCreateSample.js][subvolumescreatesample] | Creates a subvolume in the path or clones the subvolume mentioned in the parentPath x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Create.json | -| [subvolumesDeleteSample.js][subvolumesdeletesample] | Delete subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Delete.json | -| [subvolumesGetMetadataSample.js][subvolumesgetmetadatasample] | Get details of the specified subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Metadata.json | -| [subvolumesGetSample.js][subvolumesgetsample] | Returns the path associated with the subvolumeName provided x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Get.json | -| [subvolumesListByVolumeSample.js][subvolumeslistbyvolumesample] | Returns a list of the subvolumes in the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_List.json | -| [subvolumesUpdateSample.js][subvolumesupdatesample] | Patch a subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Update.json | -| [volumeGroupsCreateSample.js][volumegroupscreatesample] | Create a volume group along with specified volumes x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_Oracle.json | -| [volumeGroupsDeleteSample.js][volumegroupsdeletesample] | Delete the specified volume group only if there are no volumes under volume group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Delete.json | -| [volumeGroupsGetSample.js][volumegroupsgetsample] | Get details of the specified volume group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_Oracle.json | -| [volumeGroupsListByNetAppAccountSample.js][volumegroupslistbynetappaccountsample] | List all volume groups for given account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_Oracle.json | -| [volumeQuotaRulesCreateSample.js][volumequotarulescreatesample] | Create the specified quota rule within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Create.json | -| [volumeQuotaRulesDeleteSample.js][volumequotarulesdeletesample] | Delete quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Delete.json | -| [volumeQuotaRulesGetSample.js][volumequotarulesgetsample] | Get details of the specified quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Get.json | -| [volumeQuotaRulesListByVolumeSample.js][volumequotaruleslistbyvolumesample] | List all quota rules associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_List.json | -| [volumeQuotaRulesUpdateSample.js][volumequotarulesupdatesample] | Patch a quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Update.json | -| [volumesAuthorizeReplicationSample.js][volumesauthorizereplicationsample] | Authorize the replication connection on the source volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_AuthorizeReplication.json | -| [volumesBreakFileLocksSample.js][volumesbreakfilelockssample] | Break all the file locks on a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakFileLocks.json | -| [volumesBreakReplicationSample.js][volumesbreakreplicationsample] | Break the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakReplication.json | -| [volumesCreateOrUpdateSample.js][volumescreateorupdatesample] | Create or update the specified volume within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_CreateOrUpdate.json | -| [volumesDeleteReplicationSample.js][volumesdeletereplicationsample] | Delete the replication connection on the destination volume, and send release to the source replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_DeleteReplication.json | -| [volumesDeleteSample.js][volumesdeletesample] | Delete the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Delete.json | -| [volumesFinalizeRelocationSample.js][volumesfinalizerelocationsample] | Finalizes the relocation of the volume and cleans up the old volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_FinalizeRelocation.json | -| [volumesGetSample.js][volumesgetsample] | Get the details of the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Get.json | -| [volumesListGetGroupIdListForLdapUserSample.js][volumeslistgetgroupidlistforldapusersample] | Returns the list of group Ids for a specific LDAP User x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/GroupIdListForLDAPUser.json | -| [volumesListReplicationsSample.js][volumeslistreplicationssample] | List all replications for a specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ListReplications.json | -| [volumesListSample.js][volumeslistsample] | List all volumes within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_List.json | -| [volumesPoolChangeSample.js][volumespoolchangesample] | Moves volume to another pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PoolChange.json | -| [volumesPopulateAvailabilityZoneSample.js][volumespopulateavailabilityzonesample] | This operation will populate availability zone information for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PopulateAvailabilityZones.json | -| [volumesReInitializeReplicationSample.js][volumesreinitializereplicationsample] | Re-Initializes the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReInitializeReplication.json | -| [volumesReestablishReplicationSample.js][volumesreestablishreplicationsample] | Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReestablishReplication.json | -| [volumesRelocateSample.js][volumesrelocatesample] | Relocates volume to a new stamp x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Relocate.json | -| [volumesReplicationStatusSample.js][volumesreplicationstatussample] | Get the status of the replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReplicationStatus.json | -| [volumesResetCifsPasswordSample.js][volumesresetcifspasswordsample] | Reset cifs password from volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResetCifsPassword.json | -| [volumesResyncReplicationSample.js][volumesresyncreplicationsample] | Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResyncReplication.json | -| [volumesRevertRelocationSample.js][volumesrevertrelocationsample] | Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RevertRelocation.json | -| [volumesRevertSample.js][volumesrevertsample] | Revert a volume to the snapshot specified in the body x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Revert.json | -| [volumesSplitCloneFromParentSample.js][volumessplitclonefromparentsample] | Split operation to convert clone volume to an independent volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_SplitClone.json | -| [volumesUpdateSample.js][volumesupdatesample] | Patch the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Update.json | +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| [accountsCreateOrUpdateSample.js][accountscreateorupdatesample] | Create or update the specified NetApp account within the resource group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdate.json | +| [accountsDeleteSample.js][accountsdeletesample] | Delete the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Delete.json | +| [accountsGetSample.js][accountsgetsample] | Get the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Get.json | +| [accountsListBySubscriptionSample.js][accountslistbysubscriptionsample] | List and describe all NetApp accounts in the subscription. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json | +| [accountsListSample.js][accountslistsample] | List and describe all NetApp accounts in the resource group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json | +| [accountsRenewCredentialsSample.js][accountsrenewcredentialssample] | Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_RenewCredentials.json | +| [accountsUpdateSample.js][accountsupdatesample] | Patch the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Update.json | +| [backupPoliciesCreateSample.js][backuppoliciescreatesample] | Create a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Create.json | +| [backupPoliciesDeleteSample.js][backuppoliciesdeletesample] | Delete backup policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Delete.json | +| [backupPoliciesGetSample.js][backuppoliciesgetsample] | Get a particular backup Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Get.json | +| [backupPoliciesListSample.js][backuppolicieslistsample] | List backup policies for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_List.json | +| [backupPoliciesUpdateSample.js][backuppoliciesupdatesample] | Patch a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Update.json | +| [backupsGetVolumeRestoreStatusSample.js][backupsgetvolumerestorestatussample] | Get the status of the restore for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RestoreStatus.json | +| [netAppResourceCheckFilePathAvailabilitySample.js][netappresourcecheckfilepathavailabilitysample] | Check if a file path is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckFilePathAvailability.json | +| [netAppResourceCheckNameAvailabilitySample.js][netappresourcechecknameavailabilitysample] | Check if a resource name is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckNameAvailability.json | +| [netAppResourceCheckQuotaAvailabilitySample.js][netappresourcecheckquotaavailabilitysample] | Check if a quota is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckQuotaAvailability.json | +| [netAppResourceQueryNetworkSiblingSetSample.js][netappresourcequerynetworksiblingsetsample] | Get details of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Query.json | +| [netAppResourceQueryRegionInfoSample.js][netappresourcequeryregioninfosample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json | +| [netAppResourceQuotaLimitsGetSample.js][netappresourcequotalimitsgetsample] | Get the default and current subscription quota limit x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_Get.json | +| [netAppResourceQuotaLimitsListSample.js][netappresourcequotalimitslistsample] | Get the default and current limits for quotas x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_List.json | +| [netAppResourceUpdateNetworkSiblingSetSample.js][netappresourceupdatenetworksiblingsetsample] | Update the network features of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Update.json | +| [operationsListSample.js][operationslistsample] | Lists all of the available Microsoft.NetApp Rest API operations x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/OperationList.json | +| [poolsCreateOrUpdateSample.js][poolscreateorupdatesample] | Create or Update a capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_CreateOrUpdate.json | +| [poolsDeleteSample.js][poolsdeletesample] | Delete the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Delete.json | +| [poolsGetSample.js][poolsgetsample] | Get details of the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Get.json | +| [poolsListSample.js][poolslistsample] | List all capacity pools in the NetApp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_List.json | +| [poolsUpdateSample.js][poolsupdatesample] | Patch the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Update.json | +| [snapshotPoliciesCreateSample.js][snapshotpoliciescreatesample] | Create a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Create.json | +| [snapshotPoliciesDeleteSample.js][snapshotpoliciesdeletesample] | Delete snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Delete.json | +| [snapshotPoliciesGetSample.js][snapshotpoliciesgetsample] | Get a snapshot Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Get.json | +| [snapshotPoliciesListSample.js][snapshotpolicieslistsample] | List snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_List.json | +| [snapshotPoliciesListVolumesSample.js][snapshotpolicieslistvolumessample] | Get volumes associated with snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_ListVolumes.json | +| [snapshotPoliciesUpdateSample.js][snapshotpoliciesupdatesample] | Patch a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Update.json | +| [snapshotsCreateSample.js][snapshotscreatesample] | Create the specified snapshot within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Create.json | +| [snapshotsDeleteSample.js][snapshotsdeletesample] | Delete snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Delete.json | +| [snapshotsGetSample.js][snapshotsgetsample] | Get details of the specified snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Get.json | +| [snapshotsListSample.js][snapshotslistsample] | List all snapshots associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_List.json | +| [snapshotsRestoreFilesSample.js][snapshotsrestorefilessample] | Restore the specified files from the specified snapshot to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_SingleFileRestore.json | +| [snapshotsUpdateSample.js][snapshotsupdatesample] | Patch a snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Update.json | +| [subvolumesCreateSample.js][subvolumescreatesample] | Creates a subvolume in the path or clones the subvolume mentioned in the parentPath x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Create.json | +| [subvolumesDeleteSample.js][subvolumesdeletesample] | Delete subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Delete.json | +| [subvolumesGetMetadataSample.js][subvolumesgetmetadatasample] | Get details of the specified subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Metadata.json | +| [subvolumesGetSample.js][subvolumesgetsample] | Returns the path associated with the subvolumeName provided x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Get.json | +| [subvolumesListByVolumeSample.js][subvolumeslistbyvolumesample] | Returns a list of the subvolumes in the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_List.json | +| [subvolumesUpdateSample.js][subvolumesupdatesample] | Patch a subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Update.json | +| [volumeGroupsCreateSample.js][volumegroupscreatesample] | Create a volume group along with specified volumes x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_Oracle.json | +| [volumeGroupsDeleteSample.js][volumegroupsdeletesample] | Delete the specified volume group only if there are no volumes under volume group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Delete.json | +| [volumeGroupsGetSample.js][volumegroupsgetsample] | Get details of the specified volume group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_Oracle.json | +| [volumeGroupsListByNetAppAccountSample.js][volumegroupslistbynetappaccountsample] | List all volume groups for given account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_Oracle.json | +| [volumeQuotaRulesCreateSample.js][volumequotarulescreatesample] | Create the specified quota rule within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Create.json | +| [volumeQuotaRulesDeleteSample.js][volumequotarulesdeletesample] | Delete quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Delete.json | +| [volumeQuotaRulesGetSample.js][volumequotarulesgetsample] | Get details of the specified quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Get.json | +| [volumeQuotaRulesListByVolumeSample.js][volumequotaruleslistbyvolumesample] | List all quota rules associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_List.json | +| [volumeQuotaRulesUpdateSample.js][volumequotarulesupdatesample] | Patch a quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Update.json | +| [volumesAuthorizeReplicationSample.js][volumesauthorizereplicationsample] | Authorize the replication connection on the source volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_AuthorizeReplication.json | +| [volumesBreakFileLocksSample.js][volumesbreakfilelockssample] | Break all the file locks on a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakFileLocks.json | +| [volumesBreakReplicationSample.js][volumesbreakreplicationsample] | Break the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakReplication.json | +| [volumesCreateOrUpdateSample.js][volumescreateorupdatesample] | Create or update the specified volume within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_CreateOrUpdate.json | +| [volumesDeleteReplicationSample.js][volumesdeletereplicationsample] | Delete the replication connection on the destination volume, and send release to the source replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_DeleteReplication.json | +| [volumesDeleteSample.js][volumesdeletesample] | Delete the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Delete.json | +| [volumesFinalizeRelocationSample.js][volumesfinalizerelocationsample] | Finalizes the relocation of the volume and cleans up the old volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_FinalizeRelocation.json | +| [volumesGetSample.js][volumesgetsample] | Get the details of the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Get.json | +| [volumesListGetGroupIdListForLdapUserSample.js][volumeslistgetgroupidlistforldapusersample] | Returns the list of group Ids for a specific LDAP User x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/GroupIdListForLDAPUser.json | +| [volumesListReplicationsSample.js][volumeslistreplicationssample] | List all replications for a specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ListReplications.json | +| [volumesListSample.js][volumeslistsample] | List all volumes within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_List.json | +| [volumesPoolChangeSample.js][volumespoolchangesample] | Moves volume to another pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PoolChange.json | +| [volumesPopulateAvailabilityZoneSample.js][volumespopulateavailabilityzonesample] | This operation will populate availability zone information for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PopulateAvailabilityZones.json | +| [volumesReInitializeReplicationSample.js][volumesreinitializereplicationsample] | Re-Initializes the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReInitializeReplication.json | +| [volumesReestablishReplicationSample.js][volumesreestablishreplicationsample] | Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReestablishReplication.json | +| [volumesRelocateSample.js][volumesrelocatesample] | Relocates volume to a new stamp x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Relocate.json | +| [volumesReplicationStatusSample.js][volumesreplicationstatussample] | Get the status of the replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReplicationStatus.json | +| [volumesResetCifsPasswordSample.js][volumesresetcifspasswordsample] | Reset cifs password from volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResetCifsPassword.json | +| [volumesResyncReplicationSample.js][volumesresyncreplicationsample] | Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResyncReplication.json | +| [volumesRevertRelocationSample.js][volumesrevertrelocationsample] | Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RevertRelocation.json | +| [volumesRevertSample.js][volumesrevertsample] | Revert a volume to the snapshot specified in the body x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Revert.json | +| [volumesUpdateSample.js][volumesupdatesample] | Patch the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Update.json | ## Prerequisites @@ -127,116 +106,95 @@ npm install 3. Run whichever samples you like (note that some samples may require additional setup, see the table above): ```bash -node accountBackupsDeleteSample.js +node accountsCreateOrUpdateSample.js ``` Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): ```bash -npx cross-env NETAPP_SUBSCRIPTION_ID="" NETAPP_RESOURCE_GROUP="" node accountBackupsDeleteSample.js +npx cross-env NETAPP_SUBSCRIPTION_ID="" NETAPP_RESOURCE_GROUP="" node accountsCreateOrUpdateSample.js ``` ## Next Steps Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. -[accountbackupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsDeleteSample.js -[accountbackupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsGetSample.js -[accountbackupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsListByNetAppAccountSample.js -[accountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsCreateOrUpdateSample.js -[accountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsDeleteSample.js -[accountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsGetSample.js -[accountslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsListBySubscriptionSample.js -[accountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsListSample.js -[accountsmigrateencryptionkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsMigrateEncryptionKeySample.js -[accountsrenewcredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsRenewCredentialsSample.js -[accountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsUpdateSample.js -[backuppoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesCreateSample.js -[backuppoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesDeleteSample.js -[backuppoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesGetSample.js -[backuppolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesListSample.js -[backuppoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesUpdateSample.js -[backupvaultscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsCreateOrUpdateSample.js -[backupvaultsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsDeleteSample.js -[backupvaultsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsGetSample.js -[backupvaultslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsListByNetAppAccountSample.js -[backupvaultsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsUpdateSample.js -[backupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsCreateSample.js -[backupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsDeleteSample.js -[backupsgetlateststatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetLatestStatusSample.js -[backupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetSample.js -[backupsgetvolumerestorestatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetVolumeRestoreStatusSample.js -[backupslistbyvaultsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsListByVaultSample.js -[backupsunderaccountmigratebackupssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderAccountMigrateBackupsSample.js -[backupsunderbackupvaultrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderBackupVaultRestoreFilesSample.js -[backupsundervolumemigratebackupssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderVolumeMigrateBackupsSample.js -[backupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUpdateSample.js -[netappresourcecheckfilepathavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckFilePathAvailabilitySample.js -[netappresourcechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckNameAvailabilitySample.js -[netappresourcecheckquotaavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckQuotaAvailabilitySample.js -[netappresourcequerynetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQueryNetworkSiblingSetSample.js -[netappresourcequeryregioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQueryRegionInfoSample.js -[netappresourcequotalimitsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQuotaLimitsGetSample.js -[netappresourcequotalimitslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQuotaLimitsListSample.js -[netappresourceregioninfosgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosGetSample.js -[netappresourceregioninfoslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosListSample.js -[netappresourceupdatenetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceUpdateNetworkSiblingSetSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/operationsListSample.js -[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsCreateOrUpdateSample.js -[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsDeleteSample.js -[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsGetSample.js -[poolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsListSample.js -[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsUpdateSample.js -[snapshotpoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesCreateSample.js -[snapshotpoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesDeleteSample.js -[snapshotpoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesGetSample.js -[snapshotpolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesListSample.js -[snapshotpolicieslistvolumessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesListVolumesSample.js -[snapshotpoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesUpdateSample.js -[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsCreateSample.js -[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsDeleteSample.js -[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsGetSample.js -[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsListSample.js -[snapshotsrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsRestoreFilesSample.js -[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsUpdateSample.js -[subvolumescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesCreateSample.js -[subvolumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesDeleteSample.js -[subvolumesgetmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesGetMetadataSample.js -[subvolumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesGetSample.js -[subvolumeslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesListByVolumeSample.js -[subvolumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesUpdateSample.js -[volumegroupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsCreateSample.js -[volumegroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsDeleteSample.js -[volumegroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsGetSample.js -[volumegroupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsListByNetAppAccountSample.js -[volumequotarulescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesCreateSample.js -[volumequotarulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesDeleteSample.js -[volumequotarulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesGetSample.js -[volumequotaruleslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesListByVolumeSample.js -[volumequotarulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesUpdateSample.js -[volumesauthorizereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesAuthorizeReplicationSample.js -[volumesbreakfilelockssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesBreakFileLocksSample.js -[volumesbreakreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesBreakReplicationSample.js -[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesCreateOrUpdateSample.js -[volumesdeletereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesDeleteReplicationSample.js -[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesDeleteSample.js -[volumesfinalizerelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesFinalizeRelocationSample.js -[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesGetSample.js -[volumeslistgetgroupidlistforldapusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListGetGroupIdListForLdapUserSample.js -[volumeslistreplicationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListReplicationsSample.js -[volumeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListSample.js -[volumespoolchangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesPoolChangeSample.js -[volumespopulateavailabilityzonesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesPopulateAvailabilityZoneSample.js -[volumesreinitializereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReInitializeReplicationSample.js -[volumesreestablishreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReestablishReplicationSample.js -[volumesrelocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRelocateSample.js -[volumesreplicationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReplicationStatusSample.js -[volumesresetcifspasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesResetCifsPasswordSample.js -[volumesresyncreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesResyncReplicationSample.js -[volumesrevertrelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRevertRelocationSample.js -[volumesrevertsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRevertSample.js -[volumessplitclonefromparentsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesSplitCloneFromParentSample.js -[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesUpdateSample.js +[accountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsCreateOrUpdateSample.js +[accountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsDeleteSample.js +[accountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsGetSample.js +[accountslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListBySubscriptionSample.js +[accountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListSample.js +[accountsrenewcredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsRenewCredentialsSample.js +[accountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsUpdateSample.js +[backuppoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesCreateSample.js +[backuppoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesDeleteSample.js +[backuppoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesGetSample.js +[backuppolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesListSample.js +[backuppoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesUpdateSample.js +[backupsgetvolumerestorestatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/backupsGetVolumeRestoreStatusSample.js +[netappresourcecheckfilepathavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckFilePathAvailabilitySample.js +[netappresourcechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckNameAvailabilitySample.js +[netappresourcecheckquotaavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckQuotaAvailabilitySample.js +[netappresourcequerynetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryNetworkSiblingSetSample.js +[netappresourcequeryregioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryRegionInfoSample.js +[netappresourcequotalimitsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsGetSample.js +[netappresourcequotalimitslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsListSample.js +[netappresourceupdatenetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceUpdateNetworkSiblingSetSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/operationsListSample.js +[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/poolsCreateOrUpdateSample.js +[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/poolsDeleteSample.js +[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/poolsGetSample.js +[poolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/poolsListSample.js +[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/poolsUpdateSample.js +[snapshotpoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesCreateSample.js +[snapshotpoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesDeleteSample.js +[snapshotpoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesGetSample.js +[snapshotpolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListSample.js +[snapshotpolicieslistvolumessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListVolumesSample.js +[snapshotpoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesUpdateSample.js +[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsCreateSample.js +[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsDeleteSample.js +[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsGetSample.js +[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsListSample.js +[snapshotsrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsRestoreFilesSample.js +[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsUpdateSample.js +[subvolumescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesCreateSample.js +[subvolumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesDeleteSample.js +[subvolumesgetmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetMetadataSample.js +[subvolumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetSample.js +[subvolumeslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesListByVolumeSample.js +[subvolumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesUpdateSample.js +[volumegroupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsCreateSample.js +[volumegroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsDeleteSample.js +[volumegroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsGetSample.js +[volumegroupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsListByNetAppAccountSample.js +[volumequotarulescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesCreateSample.js +[volumequotarulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesDeleteSample.js +[volumequotarulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesGetSample.js +[volumequotaruleslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesListByVolumeSample.js +[volumequotarulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesUpdateSample.js +[volumesauthorizereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesAuthorizeReplicationSample.js +[volumesbreakfilelockssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakFileLocksSample.js +[volumesbreakreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakReplicationSample.js +[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesCreateOrUpdateSample.js +[volumesdeletereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteReplicationSample.js +[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteSample.js +[volumesfinalizerelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesFinalizeRelocationSample.js +[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesGetSample.js +[volumeslistgetgroupidlistforldapusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListGetGroupIdListForLdapUserSample.js +[volumeslistreplicationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListReplicationsSample.js +[volumeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListSample.js +[volumespoolchangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPoolChangeSample.js +[volumespopulateavailabilityzonesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPopulateAvailabilityZoneSample.js +[volumesreinitializereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReInitializeReplicationSample.js +[volumesreestablishreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReestablishReplicationSample.js +[volumesrelocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRelocateSample.js +[volumesreplicationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReplicationStatusSample.js +[volumesresetcifspasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResetCifsPasswordSample.js +[volumesresyncreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResyncReplicationSample.js +[volumesrevertrelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertRelocationSample.js +[volumesrevertsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertSample.js +[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesUpdateSample.js [apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-netapp?view=azure-node-preview [freesub]: https://azure.microsoft.com/free/ [package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp/README.md diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsCreateOrUpdateSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsCreateOrUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/accountsCreateOrUpdateSample.js index 356f13b42725..1544effbc70c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsCreateOrUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update the specified NetApp account within the resource group * * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdate.json */ async function accountsCreateOrUpdate() { const subscriptionId = @@ -38,7 +38,7 @@ async function accountsCreateOrUpdate() { * This sample demonstrates how to Create or update the specified NetApp account within the resource group * * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdateAD.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdateAD.json */ async function accountsCreateOrUpdateWithActiveDirectory() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/accountsDeleteSample.js index ecdde01f72a3..e9fdc967f06c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the specified NetApp account * * @summary Delete the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Delete.json */ async function accountsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsGetSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/accountsGetSample.js index 8a89b17b00de..a325d7313e6e 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the NetApp account * * @summary Get the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Get.json */ async function accountsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsListBySubscriptionSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListBySubscriptionSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsListBySubscriptionSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/accountsListBySubscriptionSample.js index 7a22b22226bb..4194be94bf6c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsListBySubscriptionSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List and describe all NetApp accounts in the subscription. * * @summary List and describe all NetApp accounts in the subscription. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsListSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/accountsListSample.js index 5d76755f998e..69fff1d5b2f7 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsListSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List and describe all NetApp accounts in the resource group. * * @summary List and describe all NetApp accounts in the resource group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsRenewCredentialsSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsRenewCredentialsSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsRenewCredentialsSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/accountsRenewCredentialsSample.js index 9920d251303f..613b31721b67 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsRenewCredentialsSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsRenewCredentialsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * * @summary Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_RenewCredentials.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_RenewCredentials.json */ async function accountsRenewCredentials() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsUpdateSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/accountsUpdateSample.js index baeeaa3cea92..60fdb74aa56a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch the specified NetApp account * * @summary Patch the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Update.json */ async function accountsUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesCreateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesCreateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesCreateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesCreateSample.js index 85a463d27424..a5ec4f9458f9 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesCreateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create a backup policy for Netapp Account * * @summary Create a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Create.json */ async function backupPoliciesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesDeleteSample.js index 7aa13db568a5..67938cd240bb 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete backup policy * * @summary Delete backup policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Delete.json */ async function backupsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesGetSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesGetSample.js index d9a296d7eb39..fe3ad0fb8931 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a particular backup Policy * * @summary Get a particular backup Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Get.json */ async function backupsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesListSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesListSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesListSample.js index ed30bdf6324c..63b9ed79d04d 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesListSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List backup policies for Netapp Account * * @summary List backup policies for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_List.json */ async function backupsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesUpdateSample.js index 0456013773f2..38ba7d79729a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch a backup policy for Netapp Account * * @summary Patch a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Update.json */ async function backupPoliciesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetVolumeRestoreStatusSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/backupsGetVolumeRestoreStatusSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetVolumeRestoreStatusSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/backupsGetVolumeRestoreStatusSample.js index de1c5c081f96..7f65c6254e9d 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetVolumeRestoreStatusSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/backupsGetVolumeRestoreStatusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the status of the restore for a volume * * @summary Get the status of the restore for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RestoreStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RestoreStatus.json */ async function volumesRestoreStatus() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckFilePathAvailabilitySample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckFilePathAvailabilitySample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckFilePathAvailabilitySample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckFilePathAvailabilitySample.js index 6cbe5c6f5794..16a84fccdae1 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckFilePathAvailabilitySample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckFilePathAvailabilitySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Check if a file path is available. * * @summary Check if a file path is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckFilePathAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckFilePathAvailability.json */ async function checkFilePathAvailability() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckNameAvailabilitySample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckNameAvailabilitySample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckNameAvailabilitySample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckNameAvailabilitySample.js index 23dc09b9f1cf..0121ab5a7286 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckNameAvailabilitySample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckNameAvailabilitySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Check if a resource name is available. * * @summary Check if a resource name is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckNameAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckNameAvailability.json */ async function checkNameAvailability() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckQuotaAvailabilitySample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckQuotaAvailabilitySample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckQuotaAvailabilitySample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckQuotaAvailabilitySample.js index 43c4dd46a7c7..ba37d725fcd3 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckQuotaAvailabilitySample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckQuotaAvailabilitySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Check if a quota is available. * * @summary Check if a quota is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckQuotaAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckQuotaAvailability.json */ async function checkQuotaAvailability() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQueryNetworkSiblingSetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryNetworkSiblingSetSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQueryNetworkSiblingSetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryNetworkSiblingSetSample.js index 2740819707cc..0e83f9d34f4d 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQueryNetworkSiblingSetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryNetworkSiblingSetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get details of the specified network sibling set. * * @summary Get details of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Query.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Query.json */ async function networkSiblingSetQuery() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQueryRegionInfoSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryRegionInfoSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQueryRegionInfoSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryRegionInfoSample.js index a11ab3d15397..e3f2b4227f9a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQueryRegionInfoSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryRegionInfoSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. * * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfo.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json */ async function regionInfoQuery() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQuotaLimitsGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsGetSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQuotaLimitsGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsGetSample.js index 5a93893cb1d2..8d3265e1a3e9 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQuotaLimitsGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the default and current subscription quota limit * * @summary Get the default and current subscription quota limit - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_Get.json */ async function quotaLimits() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQuotaLimitsListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsListSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQuotaLimitsListSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsListSample.js index 90f2f6af4f90..28dd26713ef3 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQuotaLimitsListSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the default and current limits for quotas * * @summary Get the default and current limits for quotas - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_List.json */ async function quotaLimits() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceUpdateNetworkSiblingSetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceUpdateNetworkSiblingSetSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceUpdateNetworkSiblingSetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceUpdateNetworkSiblingSetSample.js index 7b029fb77cf7..fc59d24be22c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceUpdateNetworkSiblingSetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceUpdateNetworkSiblingSetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update the network features of the specified network sibling set. * * @summary Update the network features of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Update.json */ async function networkFeaturesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/operationsListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/operationsListSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/operationsListSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/operationsListSample.js index 6231e1533d32..dfa127d2fcbf 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/operationsListSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/operationsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the available Microsoft.NetApp Rest API operations * * @summary Lists all of the available Microsoft.NetApp Rest API operations - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/OperationList.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/OperationList.json */ async function operationList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/package.json b/sdk/netapp/arm-netapp/samples/v20/javascript/package.json similarity index 81% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/package.json rename to sdk/netapp/arm-netapp/samples/v20/javascript/package.json index 1348842e2fd4..a2e9760744db 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/package.json +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/package.json @@ -1,8 +1,8 @@ { - "name": "@azure-samples/arm-netapp-js-beta", + "name": "@azure-samples/arm-netapp-js", "private": true, "version": "1.0.0", - "description": " client library samples for JavaScript (Beta)", + "description": " client library samples for JavaScript", "engines": { "node": ">=18.0.0" }, @@ -25,7 +25,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp", "dependencies": { - "@azure/arm-netapp": "next", + "@azure/arm-netapp": "latest", "dotenv": "latest", "@azure/identity": "^4.0.1" } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsCreateOrUpdateSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsCreateOrUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/poolsCreateOrUpdateSample.js index c56b3da8899e..1c28fc96a651 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsCreateOrUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or Update a capacity pool * * @summary Create or Update a capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_CreateOrUpdate.json */ async function poolsCreateOrUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/poolsDeleteSample.js index 444a1607455a..72039201a54b 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the specified capacity pool * * @summary Delete the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Delete.json */ async function poolsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsGetSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/poolsGetSample.js index 18bcd9b1491f..1a6779ef5004 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get details of the specified capacity pool * * @summary Get details of the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Get.json */ async function poolsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsListSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsListSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/poolsListSample.js index 301c223a32cf..32d2cc2a3786 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsListSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all capacity pools in the NetApp Account * * @summary List all capacity pools in the NetApp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_List.json */ async function poolsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/poolsUpdateSample.js index 920c62380824..a5a2939e9e31 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch the specified capacity pool * * @summary Patch the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Update.json */ async function poolsUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/sample.env b/sdk/netapp/arm-netapp/samples/v20/javascript/sample.env similarity index 100% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/sample.env rename to sdk/netapp/arm-netapp/samples/v20/javascript/sample.env diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesCreateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesCreateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesCreateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesCreateSample.js index 8311ad8fa779..4fb870bb2ad9 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesCreateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create a snapshot policy * * @summary Create a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Create.json */ async function snapshotPoliciesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesDeleteSample.js index 63b9597839e8..aca1c0fc43a6 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete snapshot policy * * @summary Delete snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Delete.json */ async function snapshotPoliciesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesGetSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesGetSample.js index fa1b2c6605c5..2922f8467118 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a snapshot Policy * * @summary Get a snapshot Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Get.json */ async function snapshotPoliciesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesListSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListSample.js index 412f44c5a93e..6ecbceb2855e 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesListSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List snapshot policy * * @summary List snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_List.json */ async function snapshotPoliciesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesListVolumesSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListVolumesSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesListVolumesSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListVolumesSample.js index 4aca38404189..deb60ce0a89b 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesListVolumesSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListVolumesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get volumes associated with snapshot policy * * @summary Get volumes associated with snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_ListVolumes.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_ListVolumes.json */ async function snapshotPoliciesListVolumes() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesUpdateSample.js index 41fe961945e5..d1439a5f3df1 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch a snapshot policy * * @summary Patch a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Update.json */ async function snapshotPoliciesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsCreateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsCreateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsCreateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsCreateSample.js index e798709886d9..47d944c52b8d 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsCreateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create the specified snapshot within the given volume * * @summary Create the specified snapshot within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Create.json */ async function snapshotsCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsDeleteSample.js index 9cd94b20626c..6294f65e40fb 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete snapshot * * @summary Delete snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Delete.json */ async function snapshotsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsGetSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsGetSample.js index 558e0806fd39..f98caec5ba51 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get details of the specified snapshot * * @summary Get details of the specified snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Get.json */ async function snapshotsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsListSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsListSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsListSample.js index bf5924217f55..78770a032be2 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsListSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all snapshots associated with the volume * * @summary List all snapshots associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_List.json */ async function snapshotsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsRestoreFilesSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsRestoreFilesSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsRestoreFilesSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsRestoreFilesSample.js index 80bee2e7adc2..169d7ab8f641 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsRestoreFilesSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsRestoreFilesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Restore the specified files from the specified snapshot to the active filesystem * * @summary Restore the specified files from the specified snapshot to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_SingleFileRestore.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_SingleFileRestore.json */ async function snapshotsSingleFileRestore() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsUpdateSample.js index cb235762ce65..c54a09206c20 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch a snapshot * * @summary Patch a snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Update.json */ async function snapshotsUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesCreateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesCreateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesCreateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesCreateSample.js index 5c72839966f8..f7ee2b70c08b 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesCreateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a subvolume in the path or clones the subvolume mentioned in the parentPath * * @summary Creates a subvolume in the path or clones the subvolume mentioned in the parentPath - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Create.json */ async function subvolumesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesDeleteSample.js index 572992a983d9..d8032603ebd8 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete subvolume * * @summary Delete subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Delete.json */ async function subvolumesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesGetMetadataSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetMetadataSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesGetMetadataSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetMetadataSample.js index 3f78d8ea6417..858a3e95f1e8 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesGetMetadataSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetMetadataSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get details of the specified subvolume * * @summary Get details of the specified subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Metadata.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Metadata.json */ async function subvolumesMetadata() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetSample.js index e14ac63912cd..5d971b8dc798 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Returns the path associated with the subvolumeName provided * * @summary Returns the path associated with the subvolumeName provided - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Get.json */ async function subvolumesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesListByVolumeSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesListByVolumeSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesListByVolumeSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesListByVolumeSample.js index 39d28210f126..6ea9f4328fd3 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesListByVolumeSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesListByVolumeSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Returns a list of the subvolumes in the volume * * @summary Returns a list of the subvolumes in the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_List.json */ async function subvolumesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesUpdateSample.js index 73090d59f1ed..234e2bdec241 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch a subvolume * * @summary Patch a subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Update.json */ async function subvolumesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsCreateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsCreateSample.js similarity index 99% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsCreateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsCreateSample.js index dc6332842d9b..3adb55c40a43 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsCreateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create a volume group along with specified volumes * * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_Oracle.json */ async function volumeGroupsCreateOracle() { const subscriptionId = @@ -457,7 +457,7 @@ async function volumeGroupsCreateOracle() { * This sample demonstrates how to Create a volume group along with specified volumes * * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_SapHana.json */ async function volumeGroupsCreateSapHana() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsDeleteSample.js index b4a43324486f..0b7293904c17 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the specified volume group only if there are no volumes under volume group. * * @summary Delete the specified volume group only if there are no volumes under volume group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Delete.json */ async function volumeGroupsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsGetSample.js similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsGetSample.js index 3f19fd13da57..56a109ae5d10 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get details of the specified volume group * * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_Oracle.json */ async function volumeGroupsGetOracle() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumeGroupsGetOracle() { * This sample demonstrates how to Get details of the specified volume group * * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_SapHana.json */ async function volumeGroupsGetSapHana() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsListByNetAppAccountSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsListByNetAppAccountSample.js similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsListByNetAppAccountSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsListByNetAppAccountSample.js index da6a5ae7ca02..419907f398f9 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsListByNetAppAccountSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsListByNetAppAccountSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all volume groups for given account * * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_Oracle.json */ async function volumeGroupsListOracle() { const subscriptionId = @@ -36,7 +36,7 @@ async function volumeGroupsListOracle() { * This sample demonstrates how to List all volume groups for given account * * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_SapHana.json */ async function volumeGroupsListSapHana() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesCreateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesCreateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesCreateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesCreateSample.js index 25b49fadb99a..086d94ea8814 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesCreateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create the specified quota rule within the given volume * * @summary Create the specified quota rule within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Create.json */ async function volumeQuotaRulesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesDeleteSample.js index 13b3edb3cc4e..69f776285ca3 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete quota rule * * @summary Delete quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Delete.json */ async function volumeQuotaRulesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesGetSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesGetSample.js index f594c697b6d3..7524e3d3c2e6 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get details of the specified quota rule * * @summary Get details of the specified quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Get.json */ async function volumeQuotaRulesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesListByVolumeSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesListByVolumeSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesListByVolumeSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesListByVolumeSample.js index d03646d3f293..dcbd3baf1019 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesListByVolumeSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesListByVolumeSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all quota rules associated with the volume * * @summary List all quota rules associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_List.json */ async function volumeQuotaRulesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesUpdateSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesUpdateSample.js index a5c45f0d79b9..a0d46bbf91d0 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch a quota rule * * @summary Patch a quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Update.json */ async function volumeQuotaRulesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesAuthorizeReplicationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesAuthorizeReplicationSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesAuthorizeReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesAuthorizeReplicationSample.js index 9d0d273f0740..4e687f1135cc 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesAuthorizeReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesAuthorizeReplicationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Authorize the replication connection on the source volume * * @summary Authorize the replication connection on the source volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_AuthorizeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_AuthorizeReplication.json */ async function volumesAuthorizeReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesBreakFileLocksSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakFileLocksSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesBreakFileLocksSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakFileLocksSample.js index 369613d5ee9d..5e455f0f76e8 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesBreakFileLocksSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakFileLocksSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Break all the file locks on a volume * * @summary Break all the file locks on a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakFileLocks.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakFileLocks.json */ async function volumesBreakFileLocks() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesBreakReplicationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakReplicationSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesBreakReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakReplicationSample.js index 8707ff772200..a28912dda337 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesBreakReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakReplicationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Break the replication connection on the destination volume * * @summary Break the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakReplication.json */ async function volumesBreakReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesCreateOrUpdateSample.js similarity index 91% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesCreateOrUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesCreateOrUpdateSample.js index a7bc02f7c935..89be59853b90 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesCreateOrUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update the specified volume within the capacity pool * * @summary Create or update the specified volume within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_CreateOrUpdate.json */ async function volumesCreateOrUpdate() { const subscriptionId = @@ -27,12 +27,10 @@ async function volumesCreateOrUpdate() { const volumeName = "volume1"; const body = { creationToken: "my-unique-file-path", - encryptionKeySource: "Microsoft.KeyVault", location: "eastus", serviceLevel: "Premium", subnetId: "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 128, usageThreshold: 107374182400, }; const credential = new DefaultAzureCredential(); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesDeleteReplicationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteReplicationSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesDeleteReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteReplicationSample.js index 866803190c31..d27770c6a6ef 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesDeleteReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteReplicationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the replication connection on the destination volume, and send release to the source replication * * @summary Delete the replication connection on the destination volume, and send release to the source replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_DeleteReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_DeleteReplication.json */ async function volumesDeleteReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteSample.js index 0ffaf51fcbd0..b03cee655e34 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the specified volume * * @summary Delete the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Delete.json */ async function volumesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesFinalizeRelocationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesFinalizeRelocationSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesFinalizeRelocationSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesFinalizeRelocationSample.js index 47a82676be0c..0d6a8cc6575c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesFinalizeRelocationSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesFinalizeRelocationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Finalizes the relocation of the volume and cleans up the old volume. * * @summary Finalizes the relocation of the volume and cleans up the old volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_FinalizeRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_FinalizeRelocation.json */ async function volumesFinalizeRelocation() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesGetSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesGetSample.js index 687c97f00cf2..00aca6a08a28 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the details of the specified volume * * @summary Get the details of the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Get.json */ async function volumesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListGetGroupIdListForLdapUserSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListGetGroupIdListForLdapUserSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListGetGroupIdListForLdapUserSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesListGetGroupIdListForLdapUserSample.js index 8303cc313c84..5a8486115672 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListGetGroupIdListForLdapUserSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListGetGroupIdListForLdapUserSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Returns the list of group Ids for a specific LDAP User * * @summary Returns the list of group Ids for a specific LDAP User - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/GroupIdListForLDAPUser.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/GroupIdListForLDAPUser.json */ async function getGroupIdListForUser() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListReplicationsSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListReplicationsSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListReplicationsSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesListReplicationsSample.js index 5dd1cd534c70..4cfc39c0206b 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListReplicationsSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListReplicationsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all replications for a specified volume * * @summary List all replications for a specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ListReplications.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ListReplications.json */ async function volumesListReplications() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesListSample.js index 56bf8ed91300..e9f51e07671e 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all volumes within the capacity pool * * @summary List all volumes within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_List.json */ async function volumesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesPoolChangeSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPoolChangeSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesPoolChangeSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesPoolChangeSample.js index bf1ceb81466a..3de6653754d0 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesPoolChangeSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPoolChangeSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Moves volume to another pool * * @summary Moves volume to another pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PoolChange.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PoolChange.json */ async function volumesAuthorizeReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesPopulateAvailabilityZoneSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPopulateAvailabilityZoneSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesPopulateAvailabilityZoneSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesPopulateAvailabilityZoneSample.js index fa7b0a268c67..4e703835d807 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesPopulateAvailabilityZoneSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPopulateAvailabilityZoneSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to This operation will populate availability zone information for a volume * * @summary This operation will populate availability zone information for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PopulateAvailabilityZones.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PopulateAvailabilityZones.json */ async function volumesPopulateAvailabilityZones() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReInitializeReplicationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReInitializeReplicationSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReInitializeReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesReInitializeReplicationSample.js index 3026960b5a22..8306dd7dd2fc 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReInitializeReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReInitializeReplicationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Re-Initializes the replication connection on the destination volume * * @summary Re-Initializes the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReInitializeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReInitializeReplication.json */ async function volumesReInitializeReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReestablishReplicationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReestablishReplicationSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReestablishReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesReestablishReplicationSample.js index 1488e02af480..0599fa16285f 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReestablishReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReestablishReplicationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots * * @summary Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReestablishReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReestablishReplication.json */ async function volumesReestablishReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRelocateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRelocateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRelocateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesRelocateSample.js index 35c274ea533a..57cc4cee6507 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRelocateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRelocateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Relocates volume to a new stamp * * @summary Relocates volume to a new stamp - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Relocate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Relocate.json */ async function volumesRelocate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReplicationStatusSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReplicationStatusSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReplicationStatusSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesReplicationStatusSample.js index 85e6eb16167e..a8c4696ca2a6 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReplicationStatusSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReplicationStatusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the status of the replication * * @summary Get the status of the replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReplicationStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReplicationStatus.json */ async function volumesReplicationStatus() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesResetCifsPasswordSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResetCifsPasswordSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesResetCifsPasswordSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesResetCifsPasswordSample.js index 4930682fc65a..c06aa55070b5 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesResetCifsPasswordSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResetCifsPasswordSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Reset cifs password from volume * * @summary Reset cifs password from volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResetCifsPassword.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResetCifsPassword.json */ async function volumesResetCifsPassword() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesResyncReplicationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResyncReplicationSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesResyncReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesResyncReplicationSample.js index 882f186a3062..49ae5f35a38c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesResyncReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResyncReplicationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. * * @summary Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResyncReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResyncReplication.json */ async function volumesResyncReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRevertRelocationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertRelocationSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRevertRelocationSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertRelocationSample.js index 59122df7035c..568add203759 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRevertRelocationSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertRelocationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @summary Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RevertRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RevertRelocation.json */ async function volumesRevertRelocation() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRevertSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRevertSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertSample.js index 0f1191416833..d09afe402a22 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRevertSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Revert a volume to the snapshot specified in the body * * @summary Revert a volume to the snapshot specified in the body - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Revert.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Revert.json */ async function volumesRevert() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesUpdateSample.js similarity index 76% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesUpdateSample.js index 03af3792446a..ff1b6792e390 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch the specified volume * * @summary Patch the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Update.json */ async function volumesUpdate() { const subscriptionId = @@ -25,17 +25,7 @@ async function volumesUpdate() { const accountName = "account1"; const poolName = "pool1"; const volumeName = "volume1"; - const body = { - dataProtection: { - backup: { - backupEnabled: true, - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRP/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1", - policyEnforced: false, - }, - }, - location: "eastus", - }; + const body = {}; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.volumes.beginUpdateAndWait( diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/README.md b/sdk/netapp/arm-netapp/samples/v20/typescript/README.md similarity index 53% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/README.md rename to sdk/netapp/arm-netapp/samples/v20/typescript/README.md index 1cb7aed3c8dc..1af20193e61c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/README.md +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/README.md @@ -1,106 +1,85 @@ -# client library samples for TypeScript (Beta) +# client library samples for TypeScript These sample programs show how to use the TypeScript client libraries for in some common scenarios. -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [accountBackupsDeleteSample.ts][accountbackupsdeletesample] | Delete the specified Backup for a Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Delete.json | -| [accountBackupsGetSample.ts][accountbackupsgetsample] | Gets the specified backup for a Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Get.json | -| [accountBackupsListByNetAppAccountSample.ts][accountbackupslistbynetappaccountsample] | List all Backups for a Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_List.json | -| [accountsCreateOrUpdateSample.ts][accountscreateorupdatesample] | Create or update the specified NetApp account within the resource group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdate.json | -| [accountsDeleteSample.ts][accountsdeletesample] | Delete the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Delete.json | -| [accountsGetSample.ts][accountsgetsample] | Get the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Get.json | -| [accountsListBySubscriptionSample.ts][accountslistbysubscriptionsample] | List and describe all NetApp accounts in the subscription. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json | -| [accountsListSample.ts][accountslistsample] | List and describe all NetApp accounts in the resource group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json | -| [accountsMigrateEncryptionKeySample.ts][accountsmigrateencryptionkeysample] | Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_MigrateEncryptionKey.json | -| [accountsRenewCredentialsSample.ts][accountsrenewcredentialssample] | Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_RenewCredentials.json | -| [accountsUpdateSample.ts][accountsupdatesample] | Patch the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Update.json | -| [backupPoliciesCreateSample.ts][backuppoliciescreatesample] | Create a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Create.json | -| [backupPoliciesDeleteSample.ts][backuppoliciesdeletesample] | Delete backup policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Delete.json | -| [backupPoliciesGetSample.ts][backuppoliciesgetsample] | Get a particular backup Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Get.json | -| [backupPoliciesListSample.ts][backuppolicieslistsample] | List backup policies for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_List.json | -| [backupPoliciesUpdateSample.ts][backuppoliciesupdatesample] | Patch a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Update.json | -| [backupVaultsCreateOrUpdateSample.ts][backupvaultscreateorupdatesample] | Create or update the specified Backup Vault in the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Create.json | -| [backupVaultsDeleteSample.ts][backupvaultsdeletesample] | Delete the specified Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Delete.json | -| [backupVaultsGetSample.ts][backupvaultsgetsample] | Get the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Get.json | -| [backupVaultsListByNetAppAccountSample.ts][backupvaultslistbynetappaccountsample] | List and describe all Backup Vaults in the NetApp account. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_List.json | -| [backupVaultsUpdateSample.ts][backupvaultsupdatesample] | Patch the specified NetApp Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Update.json | -| [backupsCreateSample.ts][backupscreatesample] | Create a backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Create.json | -| [backupsDeleteSample.ts][backupsdeletesample] | Delete a Backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Delete.json | -| [backupsGetLatestStatusSample.ts][backupsgetlateststatussample] | Get the latest status of the backup for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_LatestBackupStatus.json | -| [backupsGetSample.ts][backupsgetsample] | Get the specified Backup under Backup Vault. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Get.json | -| [backupsGetVolumeRestoreStatusSample.ts][backupsgetvolumerestorestatussample] | Get the status of the restore for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RestoreStatus.json | -| [backupsListByVaultSample.ts][backupslistbyvaultsample] | List all backups Under a Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_List.json | -| [backupsUnderAccountMigrateBackupsSample.ts][backupsunderaccountmigratebackupssample] | Migrate the backups under a NetApp account to backup vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderAccount_Migrate.json | -| [backupsUnderBackupVaultRestoreFilesSample.ts][backupsunderbackupvaultrestorefilessample] | Restore the specified files from the specified backup to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_SingleFileRestore.json | -| [backupsUnderVolumeMigrateBackupsSample.ts][backupsundervolumemigratebackupssample] | Migrate the backups under volume to backup vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderVolume_Migrate.json | -| [backupsUpdateSample.ts][backupsupdatesample] | Patch a Backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Update.json | -| [netAppResourceCheckFilePathAvailabilitySample.ts][netappresourcecheckfilepathavailabilitysample] | Check if a file path is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckFilePathAvailability.json | -| [netAppResourceCheckNameAvailabilitySample.ts][netappresourcechecknameavailabilitysample] | Check if a resource name is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckNameAvailability.json | -| [netAppResourceCheckQuotaAvailabilitySample.ts][netappresourcecheckquotaavailabilitysample] | Check if a quota is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckQuotaAvailability.json | -| [netAppResourceQueryNetworkSiblingSetSample.ts][netappresourcequerynetworksiblingsetsample] | Get details of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Query.json | -| [netAppResourceQueryRegionInfoSample.ts][netappresourcequeryregioninfosample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfo.json | -| [netAppResourceQuotaLimitsGetSample.ts][netappresourcequotalimitsgetsample] | Get the default and current subscription quota limit x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_Get.json | -| [netAppResourceQuotaLimitsListSample.ts][netappresourcequotalimitslistsample] | Get the default and current limits for quotas x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_List.json | -| [netAppResourceRegionInfosGetSample.ts][netappresourceregioninfosgetsample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_Get.json | -| [netAppResourceRegionInfosListSample.ts][netappresourceregioninfoslistsample] | Provides region specific information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_List.json | -| [netAppResourceUpdateNetworkSiblingSetSample.ts][netappresourceupdatenetworksiblingsetsample] | Update the network features of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Update.json | -| [operationsListSample.ts][operationslistsample] | Lists all of the available Microsoft.NetApp Rest API operations x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/OperationList.json | -| [poolsCreateOrUpdateSample.ts][poolscreateorupdatesample] | Create or Update a capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_CreateOrUpdate.json | -| [poolsDeleteSample.ts][poolsdeletesample] | Delete the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Delete.json | -| [poolsGetSample.ts][poolsgetsample] | Get details of the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Get.json | -| [poolsListSample.ts][poolslistsample] | List all capacity pools in the NetApp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_List.json | -| [poolsUpdateSample.ts][poolsupdatesample] | Patch the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Update.json | -| [snapshotPoliciesCreateSample.ts][snapshotpoliciescreatesample] | Create a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Create.json | -| [snapshotPoliciesDeleteSample.ts][snapshotpoliciesdeletesample] | Delete snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Delete.json | -| [snapshotPoliciesGetSample.ts][snapshotpoliciesgetsample] | Get a snapshot Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Get.json | -| [snapshotPoliciesListSample.ts][snapshotpolicieslistsample] | List snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_List.json | -| [snapshotPoliciesListVolumesSample.ts][snapshotpolicieslistvolumessample] | Get volumes associated with snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_ListVolumes.json | -| [snapshotPoliciesUpdateSample.ts][snapshotpoliciesupdatesample] | Patch a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Update.json | -| [snapshotsCreateSample.ts][snapshotscreatesample] | Create the specified snapshot within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Create.json | -| [snapshotsDeleteSample.ts][snapshotsdeletesample] | Delete snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Delete.json | -| [snapshotsGetSample.ts][snapshotsgetsample] | Get details of the specified snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Get.json | -| [snapshotsListSample.ts][snapshotslistsample] | List all snapshots associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_List.json | -| [snapshotsRestoreFilesSample.ts][snapshotsrestorefilessample] | Restore the specified files from the specified snapshot to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_SingleFileRestore.json | -| [snapshotsUpdateSample.ts][snapshotsupdatesample] | Patch a snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Update.json | -| [subvolumesCreateSample.ts][subvolumescreatesample] | Creates a subvolume in the path or clones the subvolume mentioned in the parentPath x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Create.json | -| [subvolumesDeleteSample.ts][subvolumesdeletesample] | Delete subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Delete.json | -| [subvolumesGetMetadataSample.ts][subvolumesgetmetadatasample] | Get details of the specified subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Metadata.json | -| [subvolumesGetSample.ts][subvolumesgetsample] | Returns the path associated with the subvolumeName provided x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Get.json | -| [subvolumesListByVolumeSample.ts][subvolumeslistbyvolumesample] | Returns a list of the subvolumes in the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_List.json | -| [subvolumesUpdateSample.ts][subvolumesupdatesample] | Patch a subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Update.json | -| [volumeGroupsCreateSample.ts][volumegroupscreatesample] | Create a volume group along with specified volumes x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_Oracle.json | -| [volumeGroupsDeleteSample.ts][volumegroupsdeletesample] | Delete the specified volume group only if there are no volumes under volume group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Delete.json | -| [volumeGroupsGetSample.ts][volumegroupsgetsample] | Get details of the specified volume group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_Oracle.json | -| [volumeGroupsListByNetAppAccountSample.ts][volumegroupslistbynetappaccountsample] | List all volume groups for given account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_Oracle.json | -| [volumeQuotaRulesCreateSample.ts][volumequotarulescreatesample] | Create the specified quota rule within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Create.json | -| [volumeQuotaRulesDeleteSample.ts][volumequotarulesdeletesample] | Delete quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Delete.json | -| [volumeQuotaRulesGetSample.ts][volumequotarulesgetsample] | Get details of the specified quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Get.json | -| [volumeQuotaRulesListByVolumeSample.ts][volumequotaruleslistbyvolumesample] | List all quota rules associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_List.json | -| [volumeQuotaRulesUpdateSample.ts][volumequotarulesupdatesample] | Patch a quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Update.json | -| [volumesAuthorizeReplicationSample.ts][volumesauthorizereplicationsample] | Authorize the replication connection on the source volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_AuthorizeReplication.json | -| [volumesBreakFileLocksSample.ts][volumesbreakfilelockssample] | Break all the file locks on a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakFileLocks.json | -| [volumesBreakReplicationSample.ts][volumesbreakreplicationsample] | Break the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakReplication.json | -| [volumesCreateOrUpdateSample.ts][volumescreateorupdatesample] | Create or update the specified volume within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_CreateOrUpdate.json | -| [volumesDeleteReplicationSample.ts][volumesdeletereplicationsample] | Delete the replication connection on the destination volume, and send release to the source replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_DeleteReplication.json | -| [volumesDeleteSample.ts][volumesdeletesample] | Delete the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Delete.json | -| [volumesFinalizeRelocationSample.ts][volumesfinalizerelocationsample] | Finalizes the relocation of the volume and cleans up the old volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_FinalizeRelocation.json | -| [volumesGetSample.ts][volumesgetsample] | Get the details of the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Get.json | -| [volumesListGetGroupIdListForLdapUserSample.ts][volumeslistgetgroupidlistforldapusersample] | Returns the list of group Ids for a specific LDAP User x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/GroupIdListForLDAPUser.json | -| [volumesListReplicationsSample.ts][volumeslistreplicationssample] | List all replications for a specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ListReplications.json | -| [volumesListSample.ts][volumeslistsample] | List all volumes within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_List.json | -| [volumesPoolChangeSample.ts][volumespoolchangesample] | Moves volume to another pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PoolChange.json | -| [volumesPopulateAvailabilityZoneSample.ts][volumespopulateavailabilityzonesample] | This operation will populate availability zone information for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PopulateAvailabilityZones.json | -| [volumesReInitializeReplicationSample.ts][volumesreinitializereplicationsample] | Re-Initializes the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReInitializeReplication.json | -| [volumesReestablishReplicationSample.ts][volumesreestablishreplicationsample] | Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReestablishReplication.json | -| [volumesRelocateSample.ts][volumesrelocatesample] | Relocates volume to a new stamp x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Relocate.json | -| [volumesReplicationStatusSample.ts][volumesreplicationstatussample] | Get the status of the replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReplicationStatus.json | -| [volumesResetCifsPasswordSample.ts][volumesresetcifspasswordsample] | Reset cifs password from volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResetCifsPassword.json | -| [volumesResyncReplicationSample.ts][volumesresyncreplicationsample] | Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResyncReplication.json | -| [volumesRevertRelocationSample.ts][volumesrevertrelocationsample] | Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RevertRelocation.json | -| [volumesRevertSample.ts][volumesrevertsample] | Revert a volume to the snapshot specified in the body x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Revert.json | -| [volumesSplitCloneFromParentSample.ts][volumessplitclonefromparentsample] | Split operation to convert clone volume to an independent volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_SplitClone.json | -| [volumesUpdateSample.ts][volumesupdatesample] | Patch the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Update.json | +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| [accountsCreateOrUpdateSample.ts][accountscreateorupdatesample] | Create or update the specified NetApp account within the resource group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdate.json | +| [accountsDeleteSample.ts][accountsdeletesample] | Delete the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Delete.json | +| [accountsGetSample.ts][accountsgetsample] | Get the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Get.json | +| [accountsListBySubscriptionSample.ts][accountslistbysubscriptionsample] | List and describe all NetApp accounts in the subscription. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json | +| [accountsListSample.ts][accountslistsample] | List and describe all NetApp accounts in the resource group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json | +| [accountsRenewCredentialsSample.ts][accountsrenewcredentialssample] | Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_RenewCredentials.json | +| [accountsUpdateSample.ts][accountsupdatesample] | Patch the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Update.json | +| [backupPoliciesCreateSample.ts][backuppoliciescreatesample] | Create a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Create.json | +| [backupPoliciesDeleteSample.ts][backuppoliciesdeletesample] | Delete backup policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Delete.json | +| [backupPoliciesGetSample.ts][backuppoliciesgetsample] | Get a particular backup Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Get.json | +| [backupPoliciesListSample.ts][backuppolicieslistsample] | List backup policies for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_List.json | +| [backupPoliciesUpdateSample.ts][backuppoliciesupdatesample] | Patch a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Update.json | +| [backupsGetVolumeRestoreStatusSample.ts][backupsgetvolumerestorestatussample] | Get the status of the restore for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RestoreStatus.json | +| [netAppResourceCheckFilePathAvailabilitySample.ts][netappresourcecheckfilepathavailabilitysample] | Check if a file path is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckFilePathAvailability.json | +| [netAppResourceCheckNameAvailabilitySample.ts][netappresourcechecknameavailabilitysample] | Check if a resource name is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckNameAvailability.json | +| [netAppResourceCheckQuotaAvailabilitySample.ts][netappresourcecheckquotaavailabilitysample] | Check if a quota is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckQuotaAvailability.json | +| [netAppResourceQueryNetworkSiblingSetSample.ts][netappresourcequerynetworksiblingsetsample] | Get details of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Query.json | +| [netAppResourceQueryRegionInfoSample.ts][netappresourcequeryregioninfosample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json | +| [netAppResourceQuotaLimitsGetSample.ts][netappresourcequotalimitsgetsample] | Get the default and current subscription quota limit x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_Get.json | +| [netAppResourceQuotaLimitsListSample.ts][netappresourcequotalimitslistsample] | Get the default and current limits for quotas x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_List.json | +| [netAppResourceUpdateNetworkSiblingSetSample.ts][netappresourceupdatenetworksiblingsetsample] | Update the network features of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Update.json | +| [operationsListSample.ts][operationslistsample] | Lists all of the available Microsoft.NetApp Rest API operations x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/OperationList.json | +| [poolsCreateOrUpdateSample.ts][poolscreateorupdatesample] | Create or Update a capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_CreateOrUpdate.json | +| [poolsDeleteSample.ts][poolsdeletesample] | Delete the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Delete.json | +| [poolsGetSample.ts][poolsgetsample] | Get details of the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Get.json | +| [poolsListSample.ts][poolslistsample] | List all capacity pools in the NetApp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_List.json | +| [poolsUpdateSample.ts][poolsupdatesample] | Patch the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Update.json | +| [snapshotPoliciesCreateSample.ts][snapshotpoliciescreatesample] | Create a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Create.json | +| [snapshotPoliciesDeleteSample.ts][snapshotpoliciesdeletesample] | Delete snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Delete.json | +| [snapshotPoliciesGetSample.ts][snapshotpoliciesgetsample] | Get a snapshot Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Get.json | +| [snapshotPoliciesListSample.ts][snapshotpolicieslistsample] | List snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_List.json | +| [snapshotPoliciesListVolumesSample.ts][snapshotpolicieslistvolumessample] | Get volumes associated with snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_ListVolumes.json | +| [snapshotPoliciesUpdateSample.ts][snapshotpoliciesupdatesample] | Patch a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Update.json | +| [snapshotsCreateSample.ts][snapshotscreatesample] | Create the specified snapshot within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Create.json | +| [snapshotsDeleteSample.ts][snapshotsdeletesample] | Delete snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Delete.json | +| [snapshotsGetSample.ts][snapshotsgetsample] | Get details of the specified snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Get.json | +| [snapshotsListSample.ts][snapshotslistsample] | List all snapshots associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_List.json | +| [snapshotsRestoreFilesSample.ts][snapshotsrestorefilessample] | Restore the specified files from the specified snapshot to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_SingleFileRestore.json | +| [snapshotsUpdateSample.ts][snapshotsupdatesample] | Patch a snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Update.json | +| [subvolumesCreateSample.ts][subvolumescreatesample] | Creates a subvolume in the path or clones the subvolume mentioned in the parentPath x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Create.json | +| [subvolumesDeleteSample.ts][subvolumesdeletesample] | Delete subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Delete.json | +| [subvolumesGetMetadataSample.ts][subvolumesgetmetadatasample] | Get details of the specified subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Metadata.json | +| [subvolumesGetSample.ts][subvolumesgetsample] | Returns the path associated with the subvolumeName provided x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Get.json | +| [subvolumesListByVolumeSample.ts][subvolumeslistbyvolumesample] | Returns a list of the subvolumes in the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_List.json | +| [subvolumesUpdateSample.ts][subvolumesupdatesample] | Patch a subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Update.json | +| [volumeGroupsCreateSample.ts][volumegroupscreatesample] | Create a volume group along with specified volumes x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_Oracle.json | +| [volumeGroupsDeleteSample.ts][volumegroupsdeletesample] | Delete the specified volume group only if there are no volumes under volume group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Delete.json | +| [volumeGroupsGetSample.ts][volumegroupsgetsample] | Get details of the specified volume group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_Oracle.json | +| [volumeGroupsListByNetAppAccountSample.ts][volumegroupslistbynetappaccountsample] | List all volume groups for given account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_Oracle.json | +| [volumeQuotaRulesCreateSample.ts][volumequotarulescreatesample] | Create the specified quota rule within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Create.json | +| [volumeQuotaRulesDeleteSample.ts][volumequotarulesdeletesample] | Delete quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Delete.json | +| [volumeQuotaRulesGetSample.ts][volumequotarulesgetsample] | Get details of the specified quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Get.json | +| [volumeQuotaRulesListByVolumeSample.ts][volumequotaruleslistbyvolumesample] | List all quota rules associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_List.json | +| [volumeQuotaRulesUpdateSample.ts][volumequotarulesupdatesample] | Patch a quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Update.json | +| [volumesAuthorizeReplicationSample.ts][volumesauthorizereplicationsample] | Authorize the replication connection on the source volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_AuthorizeReplication.json | +| [volumesBreakFileLocksSample.ts][volumesbreakfilelockssample] | Break all the file locks on a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakFileLocks.json | +| [volumesBreakReplicationSample.ts][volumesbreakreplicationsample] | Break the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakReplication.json | +| [volumesCreateOrUpdateSample.ts][volumescreateorupdatesample] | Create or update the specified volume within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_CreateOrUpdate.json | +| [volumesDeleteReplicationSample.ts][volumesdeletereplicationsample] | Delete the replication connection on the destination volume, and send release to the source replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_DeleteReplication.json | +| [volumesDeleteSample.ts][volumesdeletesample] | Delete the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Delete.json | +| [volumesFinalizeRelocationSample.ts][volumesfinalizerelocationsample] | Finalizes the relocation of the volume and cleans up the old volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_FinalizeRelocation.json | +| [volumesGetSample.ts][volumesgetsample] | Get the details of the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Get.json | +| [volumesListGetGroupIdListForLdapUserSample.ts][volumeslistgetgroupidlistforldapusersample] | Returns the list of group Ids for a specific LDAP User x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/GroupIdListForLDAPUser.json | +| [volumesListReplicationsSample.ts][volumeslistreplicationssample] | List all replications for a specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ListReplications.json | +| [volumesListSample.ts][volumeslistsample] | List all volumes within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_List.json | +| [volumesPoolChangeSample.ts][volumespoolchangesample] | Moves volume to another pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PoolChange.json | +| [volumesPopulateAvailabilityZoneSample.ts][volumespopulateavailabilityzonesample] | This operation will populate availability zone information for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PopulateAvailabilityZones.json | +| [volumesReInitializeReplicationSample.ts][volumesreinitializereplicationsample] | Re-Initializes the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReInitializeReplication.json | +| [volumesReestablishReplicationSample.ts][volumesreestablishreplicationsample] | Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReestablishReplication.json | +| [volumesRelocateSample.ts][volumesrelocatesample] | Relocates volume to a new stamp x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Relocate.json | +| [volumesReplicationStatusSample.ts][volumesreplicationstatussample] | Get the status of the replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReplicationStatus.json | +| [volumesResetCifsPasswordSample.ts][volumesresetcifspasswordsample] | Reset cifs password from volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResetCifsPassword.json | +| [volumesResyncReplicationSample.ts][volumesresyncreplicationsample] | Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResyncReplication.json | +| [volumesRevertRelocationSample.ts][volumesrevertrelocationsample] | Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RevertRelocation.json | +| [volumesRevertSample.ts][volumesrevertsample] | Revert a volume to the snapshot specified in the body x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Revert.json | +| [volumesUpdateSample.ts][volumesupdatesample] | Patch the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Update.json | ## Prerequisites @@ -139,116 +118,95 @@ npm run build 4. Run whichever samples you like (note that some samples may require additional setup, see the table above): ```bash -node dist/accountBackupsDeleteSample.js +node dist/accountsCreateOrUpdateSample.js ``` Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): ```bash -npx cross-env NETAPP_SUBSCRIPTION_ID="" NETAPP_RESOURCE_GROUP="" node dist/accountBackupsDeleteSample.js +npx cross-env NETAPP_SUBSCRIPTION_ID="" NETAPP_RESOURCE_GROUP="" node dist/accountsCreateOrUpdateSample.js ``` ## Next Steps Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. -[accountbackupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsDeleteSample.ts -[accountbackupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsGetSample.ts -[accountbackupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsListByNetAppAccountSample.ts -[accountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsCreateOrUpdateSample.ts -[accountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsDeleteSample.ts -[accountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsGetSample.ts -[accountslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsListBySubscriptionSample.ts -[accountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsListSample.ts -[accountsmigrateencryptionkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsMigrateEncryptionKeySample.ts -[accountsrenewcredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsRenewCredentialsSample.ts -[accountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsUpdateSample.ts -[backuppoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesCreateSample.ts -[backuppoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesDeleteSample.ts -[backuppoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesGetSample.ts -[backuppolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesListSample.ts -[backuppoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesUpdateSample.ts -[backupvaultscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsCreateOrUpdateSample.ts -[backupvaultsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsDeleteSample.ts -[backupvaultsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsGetSample.ts -[backupvaultslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsListByNetAppAccountSample.ts -[backupvaultsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsUpdateSample.ts -[backupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsCreateSample.ts -[backupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsDeleteSample.ts -[backupsgetlateststatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetLatestStatusSample.ts -[backupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetSample.ts -[backupsgetvolumerestorestatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetVolumeRestoreStatusSample.ts -[backupslistbyvaultsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsListByVaultSample.ts -[backupsunderaccountmigratebackupssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderAccountMigrateBackupsSample.ts -[backupsunderbackupvaultrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderBackupVaultRestoreFilesSample.ts -[backupsundervolumemigratebackupssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderVolumeMigrateBackupsSample.ts -[backupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUpdateSample.ts -[netappresourcecheckfilepathavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts -[netappresourcechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckNameAvailabilitySample.ts -[netappresourcecheckquotaavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts -[netappresourcequerynetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts -[netappresourcequeryregioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQueryRegionInfoSample.ts -[netappresourcequotalimitsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQuotaLimitsGetSample.ts -[netappresourcequotalimitslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQuotaLimitsListSample.ts -[netappresourceregioninfosgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosGetSample.ts -[netappresourceregioninfoslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosListSample.ts -[netappresourceupdatenetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/operationsListSample.ts -[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsCreateOrUpdateSample.ts -[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsDeleteSample.ts -[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsGetSample.ts -[poolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsListSample.ts -[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsUpdateSample.ts -[snapshotpoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesCreateSample.ts -[snapshotpoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesDeleteSample.ts -[snapshotpoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesGetSample.ts -[snapshotpolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesListSample.ts -[snapshotpolicieslistvolumessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesListVolumesSample.ts -[snapshotpoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesUpdateSample.ts -[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsCreateSample.ts -[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsDeleteSample.ts -[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsGetSample.ts -[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsListSample.ts -[snapshotsrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsRestoreFilesSample.ts -[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsUpdateSample.ts -[subvolumescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesCreateSample.ts -[subvolumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesDeleteSample.ts -[subvolumesgetmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesGetMetadataSample.ts -[subvolumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesGetSample.ts -[subvolumeslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesListByVolumeSample.ts -[subvolumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesUpdateSample.ts -[volumegroupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsCreateSample.ts -[volumegroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsDeleteSample.ts -[volumegroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsGetSample.ts -[volumegroupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsListByNetAppAccountSample.ts -[volumequotarulescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesCreateSample.ts -[volumequotarulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesDeleteSample.ts -[volumequotarulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesGetSample.ts -[volumequotaruleslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesListByVolumeSample.ts -[volumequotarulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesUpdateSample.ts -[volumesauthorizereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesAuthorizeReplicationSample.ts -[volumesbreakfilelockssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesBreakFileLocksSample.ts -[volumesbreakreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesBreakReplicationSample.ts -[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesCreateOrUpdateSample.ts -[volumesdeletereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesDeleteReplicationSample.ts -[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesDeleteSample.ts -[volumesfinalizerelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesFinalizeRelocationSample.ts -[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesGetSample.ts -[volumeslistgetgroupidlistforldapusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts -[volumeslistreplicationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListReplicationsSample.ts -[volumeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListSample.ts -[volumespoolchangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesPoolChangeSample.ts -[volumespopulateavailabilityzonesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesPopulateAvailabilityZoneSample.ts -[volumesreinitializereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReInitializeReplicationSample.ts -[volumesreestablishreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReestablishReplicationSample.ts -[volumesrelocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRelocateSample.ts -[volumesreplicationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReplicationStatusSample.ts -[volumesresetcifspasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesResetCifsPasswordSample.ts -[volumesresyncreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesResyncReplicationSample.ts -[volumesrevertrelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRevertRelocationSample.ts -[volumesrevertsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRevertSample.ts -[volumessplitclonefromparentsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesSplitCloneFromParentSample.ts -[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesUpdateSample.ts +[accountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsCreateOrUpdateSample.ts +[accountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsDeleteSample.ts +[accountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsGetSample.ts +[accountslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListBySubscriptionSample.ts +[accountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListSample.ts +[accountsrenewcredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsRenewCredentialsSample.ts +[accountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsUpdateSample.ts +[backuppoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesCreateSample.ts +[backuppoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesDeleteSample.ts +[backuppoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesGetSample.ts +[backuppolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesListSample.ts +[backuppoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesUpdateSample.ts +[backupsgetvolumerestorestatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupsGetVolumeRestoreStatusSample.ts +[netappresourcecheckfilepathavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts +[netappresourcechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckNameAvailabilitySample.ts +[netappresourcecheckquotaavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts +[netappresourcequerynetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts +[netappresourcequeryregioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryRegionInfoSample.ts +[netappresourcequotalimitsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsGetSample.ts +[netappresourcequotalimitslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsListSample.ts +[netappresourceupdatenetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/operationsListSample.ts +[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsCreateOrUpdateSample.ts +[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsDeleteSample.ts +[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsGetSample.ts +[poolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsListSample.ts +[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsUpdateSample.ts +[snapshotpoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesCreateSample.ts +[snapshotpoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesDeleteSample.ts +[snapshotpoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesGetSample.ts +[snapshotpolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListSample.ts +[snapshotpolicieslistvolumessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListVolumesSample.ts +[snapshotpoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesUpdateSample.ts +[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsCreateSample.ts +[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsDeleteSample.ts +[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsGetSample.ts +[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsListSample.ts +[snapshotsrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsRestoreFilesSample.ts +[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsUpdateSample.ts +[subvolumescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesCreateSample.ts +[subvolumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesDeleteSample.ts +[subvolumesgetmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetMetadataSample.ts +[subvolumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetSample.ts +[subvolumeslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesListByVolumeSample.ts +[subvolumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesUpdateSample.ts +[volumegroupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsCreateSample.ts +[volumegroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsDeleteSample.ts +[volumegroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsGetSample.ts +[volumegroupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsListByNetAppAccountSample.ts +[volumequotarulescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesCreateSample.ts +[volumequotarulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesDeleteSample.ts +[volumequotarulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesGetSample.ts +[volumequotaruleslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesListByVolumeSample.ts +[volumequotarulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesUpdateSample.ts +[volumesauthorizereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesAuthorizeReplicationSample.ts +[volumesbreakfilelockssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakFileLocksSample.ts +[volumesbreakreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakReplicationSample.ts +[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesCreateOrUpdateSample.ts +[volumesdeletereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteReplicationSample.ts +[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteSample.ts +[volumesfinalizerelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesFinalizeRelocationSample.ts +[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesGetSample.ts +[volumeslistgetgroupidlistforldapusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts +[volumeslistreplicationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListReplicationsSample.ts +[volumeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListSample.ts +[volumespoolchangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPoolChangeSample.ts +[volumespopulateavailabilityzonesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPopulateAvailabilityZoneSample.ts +[volumesreinitializereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReInitializeReplicationSample.ts +[volumesreestablishreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReestablishReplicationSample.ts +[volumesrelocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRelocateSample.ts +[volumesreplicationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReplicationStatusSample.ts +[volumesresetcifspasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResetCifsPasswordSample.ts +[volumesresyncreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResyncReplicationSample.ts +[volumesrevertrelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertRelocationSample.ts +[volumesrevertsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertSample.ts +[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesUpdateSample.ts [apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-netapp?view=azure-node-preview [freesub]: https://azure.microsoft.com/free/ [package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp/README.md diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/package.json b/sdk/netapp/arm-netapp/samples/v20/typescript/package.json similarity index 84% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/package.json rename to sdk/netapp/arm-netapp/samples/v20/typescript/package.json index 85f5a8dbacc0..c0d75ac196f5 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/package.json +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/package.json @@ -1,8 +1,8 @@ { - "name": "@azure-samples/arm-netapp-ts-beta", + "name": "@azure-samples/arm-netapp-ts", "private": true, "version": "1.0.0", - "description": " client library samples for TypeScript (Beta)", + "description": " client library samples for TypeScript", "engines": { "node": ">=18.0.0" }, @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp", "dependencies": { - "@azure/arm-netapp": "next", + "@azure/arm-netapp": "latest", "dotenv": "latest", "@azure/identity": "^4.0.1" }, diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/sample.env b/sdk/netapp/arm-netapp/samples/v20/typescript/sample.env similarity index 100% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/sample.env rename to sdk/netapp/arm-netapp/samples/v20/typescript/sample.env diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsCreateOrUpdateSample.ts similarity index 91% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsCreateOrUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsCreateOrUpdateSample.ts index e53609546155..85c10bc1b59d 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update the specified NetApp account within the resource group * * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdate.json */ async function accountsCreateOrUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function accountsCreateOrUpdate() { const result = await client.accounts.beginCreateOrUpdateAndWait( resourceGroupName, accountName, - body + body, ); console.log(result); } @@ -41,7 +41,7 @@ async function accountsCreateOrUpdate() { * This sample demonstrates how to Create or update the specified NetApp account within the resource group * * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdateAD.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdateAD.json */ async function accountsCreateOrUpdateWithActiveDirectory() { const subscriptionId = @@ -61,17 +61,17 @@ async function accountsCreateOrUpdateWithActiveDirectory() { password: "ad_password", site: "SiteName", smbServerName: "SMBServer", - username: "ad_user_name" - } + username: "ad_user_name", + }, ], - location: "eastus" + location: "eastus", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.accounts.beginCreateOrUpdateAndWait( resourceGroupName, accountName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsDeleteSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsDeleteSample.ts index e520aff851ff..0308e9ad499a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified NetApp account * * @summary Delete the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Delete.json */ async function accountsDelete() { const subscriptionId = @@ -30,7 +30,7 @@ async function accountsDelete() { const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.accounts.beginDeleteAndWait( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsGetSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsGetSample.ts index 22a8a1ab0873..38bb8c6756c1 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the NetApp account * * @summary Get the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Get.json */ async function accountsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsListBySubscriptionSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListBySubscriptionSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsListBySubscriptionSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListBySubscriptionSample.ts index 1f292e0303b9..05a45b7d8c31 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsListBySubscriptionSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List and describe all NetApp accounts in the subscription. * * @summary List and describe all NetApp accounts in the subscription. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsListSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListSample.ts index fc0b884f17c3..852a3d845dd8 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List and describe all NetApp accounts in the resource group. * * @summary List and describe all NetApp accounts in the resource group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsRenewCredentialsSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsRenewCredentialsSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsRenewCredentialsSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsRenewCredentialsSample.ts index 4d0b3ca77014..3280153c50ce 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsRenewCredentialsSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsRenewCredentialsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * * @summary Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_RenewCredentials.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_RenewCredentials.json */ async function accountsRenewCredentials() { const subscriptionId = @@ -30,7 +30,7 @@ async function accountsRenewCredentials() { const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.accounts.beginRenewCredentialsAndWait( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsUpdateSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsUpdateSample.ts index f70d57a33678..6ad6f365b75d 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch the specified NetApp account * * @summary Patch the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Update.json */ async function accountsUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function accountsUpdate() { const result = await client.accounts.beginUpdateAndWait( resourceGroupName, accountName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesCreateSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesCreateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesCreateSample.ts index 6b2316ba4533..5349b14f7720 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a backup policy for Netapp Account * * @summary Create a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Create.json */ async function backupPoliciesCreate() { const subscriptionId = @@ -32,7 +32,7 @@ async function backupPoliciesCreate() { enabled: true, location: "westus", monthlyBackupsToKeep: 10, - weeklyBackupsToKeep: 10 + weeklyBackupsToKeep: 10, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -40,7 +40,7 @@ async function backupPoliciesCreate() { resourceGroupName, accountName, backupPolicyName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesDeleteSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesDeleteSample.ts index ab6bae9205cc..b08e68c37a1f 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete backup policy * * @summary Delete backup policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Delete.json */ async function backupsDelete() { const subscriptionId = @@ -33,7 +33,7 @@ async function backupsDelete() { const result = await client.backupPolicies.beginDeleteAndWait( resourceGroupName, accountName, - backupPolicyName + backupPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesGetSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesGetSample.ts index 53cc2fc4840c..8f692b9901bd 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a particular backup Policy * * @summary Get a particular backup Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Get.json */ async function backupsGet() { const subscriptionId = @@ -32,7 +32,7 @@ async function backupsGet() { const result = await client.backupPolicies.get( resourceGroupName, accountName, - backupPolicyName + backupPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesListSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesListSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesListSample.ts index 6c99bb47ce8e..0fe398c65443 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List backup policies for Netapp Account * * @summary List backup policies for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_List.json */ async function backupsList() { const subscriptionId = @@ -31,7 +31,7 @@ async function backupsList() { const resArray = new Array(); for await (let item of client.backupPolicies.list( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesUpdateSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesUpdateSample.ts index 7b8288681132..ebce8bb82494 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch a backup policy for Netapp Account * * @summary Patch a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Update.json */ async function backupPoliciesUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function backupPoliciesUpdate() { enabled: false, location: "westus", monthlyBackupsToKeep: 10, - weeklyBackupsToKeep: 10 + weeklyBackupsToKeep: 10, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -40,7 +40,7 @@ async function backupPoliciesUpdate() { resourceGroupName, accountName, backupPolicyName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetVolumeRestoreStatusSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupsGetVolumeRestoreStatusSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetVolumeRestoreStatusSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/backupsGetVolumeRestoreStatusSample.ts index 6d6ca819cdc8..b65cb60d137c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetVolumeRestoreStatusSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupsGetVolumeRestoreStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the status of the restore for a volume * * @summary Get the status of the restore for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RestoreStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RestoreStatus.json */ async function volumesRestoreStatus() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesRestoreStatus() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts index 63a0ea2906e4..05b7dc514c9f 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Check if a file path is available. * * @summary Check if a file path is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckFilePathAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckFilePathAvailability.json */ async function checkFilePathAvailability() { const subscriptionId = @@ -33,7 +33,7 @@ async function checkFilePathAvailability() { const result = await client.netAppResource.checkFilePathAvailability( location, name, - subnetId + subnetId, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckNameAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckNameAvailabilitySample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckNameAvailabilitySample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckNameAvailabilitySample.ts index 3cc975b1d3f9..820942bee7b4 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckNameAvailabilitySample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckNameAvailabilitySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Check if a resource name is available. * * @summary Check if a resource name is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckNameAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckNameAvailability.json */ async function checkNameAvailability() { const subscriptionId = @@ -34,7 +34,7 @@ async function checkNameAvailability() { location, name, typeParam, - resourceGroup + resourceGroup, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts index 3378adbd26b4..2a1f7e3c50c1 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Check if a quota is available. * * @summary Check if a quota is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckQuotaAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckQuotaAvailability.json */ async function checkQuotaAvailability() { const subscriptionId = @@ -34,7 +34,7 @@ async function checkQuotaAvailability() { location, name, typeParam, - resourceGroup + resourceGroup, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts index bb58c0a33128..a936ed78bbc9 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified network sibling set. * * @summary Get details of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Query.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Query.json */ async function networkSiblingSetQuery() { const subscriptionId = @@ -33,7 +33,7 @@ async function networkSiblingSetQuery() { const result = await client.netAppResource.queryNetworkSiblingSet( location, networkSiblingSetId, - subnetId + subnetId, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQueryRegionInfoSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryRegionInfoSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQueryRegionInfoSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryRegionInfoSample.ts index 7c3cd7080e7d..1d9c5323cee2 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQueryRegionInfoSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryRegionInfoSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. * * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfo.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json */ async function regionInfoQuery() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQuotaLimitsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsGetSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQuotaLimitsGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsGetSample.ts index 8f0f34b8878d..3078387d6b35 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQuotaLimitsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the default and current subscription quota limit * * @summary Get the default and current subscription quota limit - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_Get.json */ async function quotaLimits() { const subscriptionId = @@ -30,7 +30,7 @@ async function quotaLimits() { const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.netAppResourceQuotaLimits.get( location, - quotaLimitName + quotaLimitName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQuotaLimitsListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsListSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQuotaLimitsListSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsListSample.ts index 4a2b587d265e..2d0326e06565 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQuotaLimitsListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the default and current limits for quotas * * @summary Get the default and current limits for quotas - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_List.json */ async function quotaLimits() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts similarity index 84% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts index 993cb310901c..d813bd8ef06a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Update the network features of the specified network sibling set. * * @summary Update the network features of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Update.json */ async function networkFeaturesUpdate() { const subscriptionId = @@ -32,13 +32,14 @@ async function networkFeaturesUpdate() { const networkFeatures = "Standard"; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.beginUpdateNetworkSiblingSetAndWait( - location, - networkSiblingSetId, - subnetId, - networkSiblingSetStateId, - networkFeatures - ); + const result = + await client.netAppResource.beginUpdateNetworkSiblingSetAndWait( + location, + networkSiblingSetId, + subnetId, + networkSiblingSetStateId, + networkFeatures, + ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/operationsListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/operationsListSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/operationsListSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/operationsListSample.ts index b6889338df8c..1d41bd056620 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/operationsListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the available Microsoft.NetApp Rest API operations * * @summary Lists all of the available Microsoft.NetApp Rest API operations - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/OperationList.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/OperationList.json */ async function operationList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsCreateOrUpdateSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsCreateOrUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsCreateOrUpdateSample.ts index 5e35e7140231..2959e4972a83 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or Update a capacity pool * * @summary Create or Update a capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_CreateOrUpdate.json */ async function poolsCreateOrUpdate() { const subscriptionId = @@ -31,7 +31,7 @@ async function poolsCreateOrUpdate() { location: "eastus", qosType: "Auto", serviceLevel: "Premium", - size: 4398046511104 + size: 4398046511104, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function poolsCreateOrUpdate() { resourceGroupName, accountName, poolName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsDeleteSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsDeleteSample.ts index 601a7a09b375..3f3b5543f973 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified capacity pool * * @summary Delete the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Delete.json */ async function poolsDelete() { const subscriptionId = @@ -32,7 +32,7 @@ async function poolsDelete() { const result = await client.pools.beginDeleteAndWait( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsGetSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsGetSample.ts index 1d9e9e863d38..ec8b1e723890 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified capacity pool * * @summary Get details of the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Get.json */ async function poolsGet() { const subscriptionId = @@ -32,7 +32,7 @@ async function poolsGet() { const result = await client.pools.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsListSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsListSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsListSample.ts index cc274cf7c4c8..732e49f0d81f 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all capacity pools in the NetApp Account * * @summary List all capacity pools in the NetApp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_List.json */ async function poolsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsUpdateSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsUpdateSample.ts index d8b99b70b4cb..fad1ab8f816a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch the specified capacity pool * * @summary Patch the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Update.json */ async function poolsUpdate() { const subscriptionId = @@ -34,7 +34,7 @@ async function poolsUpdate() { resourceGroupName, accountName, poolName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesCreateSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesCreateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesCreateSample.ts index c3bb40d7d4fd..5c03a27f4400 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a snapshot policy * * @summary Create a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Create.json */ async function snapshotPoliciesCreate() { const subscriptionId = @@ -36,14 +36,14 @@ async function snapshotPoliciesCreate() { daysOfMonth: "10,11,12", hour: 14, minute: 15, - snapshotsToKeep: 5 + snapshotsToKeep: 5, }, weeklySchedule: { day: "Wednesday", hour: 14, minute: 45, - snapshotsToKeep: 3 - } + snapshotsToKeep: 3, + }, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -51,7 +51,7 @@ async function snapshotPoliciesCreate() { resourceGroupName, accountName, snapshotPolicyName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesDeleteSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesDeleteSample.ts index b070d8be07bf..54342c7e4429 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete snapshot policy * * @summary Delete snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Delete.json */ async function snapshotPoliciesDelete() { const subscriptionId = @@ -33,7 +33,7 @@ async function snapshotPoliciesDelete() { const result = await client.snapshotPolicies.beginDeleteAndWait( resourceGroupName, accountName, - snapshotPolicyName + snapshotPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesGetSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesGetSample.ts index e04c17f19010..22cee775c848 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a snapshot Policy * * @summary Get a snapshot Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Get.json */ async function snapshotPoliciesGet() { const subscriptionId = @@ -32,7 +32,7 @@ async function snapshotPoliciesGet() { const result = await client.snapshotPolicies.get( resourceGroupName, accountName, - snapshotPolicyName + snapshotPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesListSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListSample.ts index 0fcd799a519d..c5979f7e1943 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List snapshot policy * * @summary List snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_List.json */ async function snapshotPoliciesList() { const subscriptionId = @@ -31,7 +31,7 @@ async function snapshotPoliciesList() { const resArray = new Array(); for await (let item of client.snapshotPolicies.list( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesListVolumesSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListVolumesSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesListVolumesSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListVolumesSample.ts index fef7aef70825..9b9cba0c5ca5 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesListVolumesSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListVolumesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get volumes associated with snapshot policy * * @summary Get volumes associated with snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_ListVolumes.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_ListVolumes.json */ async function snapshotPoliciesListVolumes() { const subscriptionId = @@ -32,7 +32,7 @@ async function snapshotPoliciesListVolumes() { const result = await client.snapshotPolicies.listVolumes( resourceGroupName, accountName, - snapshotPolicyName + snapshotPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesUpdateSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesUpdateSample.ts index 149027a25a16..13bbe1990711 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch a snapshot policy * * @summary Patch a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Update.json */ async function snapshotPoliciesUpdate() { const subscriptionId = @@ -36,14 +36,14 @@ async function snapshotPoliciesUpdate() { daysOfMonth: "10,11,12", hour: 14, minute: 15, - snapshotsToKeep: 5 + snapshotsToKeep: 5, }, weeklySchedule: { day: "Wednesday", hour: 14, minute: 45, - snapshotsToKeep: 3 - } + snapshotsToKeep: 3, + }, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -51,7 +51,7 @@ async function snapshotPoliciesUpdate() { resourceGroupName, accountName, snapshotPolicyName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsCreateSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsCreateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsCreateSample.ts index a5ce922be485..a31ec846a3f1 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create the specified snapshot within the given volume * * @summary Create the specified snapshot within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Create.json */ async function snapshotsCreate() { const subscriptionId = @@ -38,7 +38,7 @@ async function snapshotsCreate() { poolName, volumeName, snapshotName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsDeleteSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsDeleteSample.ts index e5fcdca7bfbb..6b948039b70e 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete snapshot * * @summary Delete snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Delete.json */ async function snapshotsDelete() { const subscriptionId = @@ -36,7 +36,7 @@ async function snapshotsDelete() { accountName, poolName, volumeName, - snapshotName + snapshotName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsGetSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsGetSample.ts index d022a1c4641e..a9ccd7cce449 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified snapshot * * @summary Get details of the specified snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Get.json */ async function snapshotsGet() { const subscriptionId = @@ -36,7 +36,7 @@ async function snapshotsGet() { accountName, poolName, volumeName, - snapshotName + snapshotName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsListSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsListSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsListSample.ts index 3e6b274df61f..523f96cd67fa 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all snapshots associated with the volume * * @summary List all snapshots associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_List.json */ async function snapshotsList() { const subscriptionId = @@ -35,7 +35,7 @@ async function snapshotsList() { resourceGroupName, accountName, poolName, - volumeName + volumeName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsRestoreFilesSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsRestoreFilesSample.ts similarity index 89% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsRestoreFilesSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsRestoreFilesSample.ts index cf8c6d188b99..fb03516b70a3 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsRestoreFilesSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsRestoreFilesSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { SnapshotRestoreFiles, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Restore the specified files from the specified snapshot to the active filesystem * * @summary Restore the specified files from the specified snapshot to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_SingleFileRestore.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_SingleFileRestore.json */ async function snapshotsSingleFileRestore() { const subscriptionId = @@ -33,7 +33,7 @@ async function snapshotsSingleFileRestore() { const volumeName = "volume1"; const snapshotName = "snapshot1"; const body: SnapshotRestoreFiles = { - filePaths: ["/dir1/customer1.db", "/dir1/customer2.db"] + filePaths: ["/dir1/customer1.db", "/dir1/customer2.db"], }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function snapshotsSingleFileRestore() { poolName, volumeName, snapshotName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsUpdateSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsUpdateSample.ts index 413c1e71fdf8..cda8036eac64 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch a snapshot * * @summary Patch a snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Update.json */ async function snapshotsUpdate() { const subscriptionId = @@ -38,7 +38,7 @@ async function snapshotsUpdate() { poolName, volumeName, snapshotName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesCreateSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesCreateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesCreateSample.ts index bf067d8f406f..38e28ef35576 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates a subvolume in the path or clones the subvolume mentioned in the parentPath * * @summary Creates a subvolume in the path or clones the subvolume mentioned in the parentPath - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Create.json */ async function subvolumesCreate() { const subscriptionId = @@ -38,7 +38,7 @@ async function subvolumesCreate() { poolName, volumeName, subvolumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesDeleteSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesDeleteSample.ts index 7dd5570262e8..b05b7aad7892 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete subvolume * * @summary Delete subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Delete.json */ async function subvolumesDelete() { const subscriptionId = @@ -36,7 +36,7 @@ async function subvolumesDelete() { accountName, poolName, volumeName, - subvolumeName + subvolumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesGetMetadataSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetMetadataSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesGetMetadataSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetMetadataSample.ts index abadb46aa9c0..ea888f2ca111 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesGetMetadataSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetMetadataSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified subvolume * * @summary Get details of the specified subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Metadata.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Metadata.json */ async function subvolumesMetadata() { const subscriptionId = @@ -36,7 +36,7 @@ async function subvolumesMetadata() { accountName, poolName, volumeName, - subvolumeName + subvolumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetSample.ts index a1c2a6cd64d5..5c524fb51a04 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns the path associated with the subvolumeName provided * * @summary Returns the path associated with the subvolumeName provided - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Get.json */ async function subvolumesGet() { const subscriptionId = @@ -36,7 +36,7 @@ async function subvolumesGet() { accountName, poolName, volumeName, - subvolumeName + subvolumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesListByVolumeSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesListByVolumeSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesListByVolumeSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesListByVolumeSample.ts index bac5cfd473dd..bd5d44c32e37 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesListByVolumeSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesListByVolumeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns a list of the subvolumes in the volume * * @summary Returns a list of the subvolumes in the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_List.json */ async function subvolumesList() { const subscriptionId = @@ -35,7 +35,7 @@ async function subvolumesList() { resourceGroupName, accountName, poolName, - volumeName + volumeName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesUpdateSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesUpdateSample.ts index b1ffe151c805..9d2bcb771801 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { SubvolumePatchRequest, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Patch a subvolume * * @summary Patch a subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Update.json */ async function subvolumesUpdate() { const subscriptionId = @@ -41,7 +41,7 @@ async function subvolumesUpdate() { poolName, volumeName, subvolumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsCreateSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsCreateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsCreateSample.ts index 0f13621808dc..418ad5aa3844 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a volume group along with specified volumes * * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_Oracle.json */ async function volumeGroupsCreateOracle() { const subscriptionId = @@ -31,7 +31,7 @@ async function volumeGroupsCreateOracle() { groupMetaData: { applicationIdentifier: "OR2", applicationType: "ORACLE", - groupDescription: "Volume group" + groupDescription: "Volume group", }, location: "westus", volumes: [ @@ -56,9 +56,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -67,7 +67,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data1", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data2", @@ -90,9 +90,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -101,7 +101,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data2", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data3", @@ -124,9 +124,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -135,7 +135,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data3", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data4", @@ -158,9 +158,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -169,7 +169,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data4", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data5", @@ -192,9 +192,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -203,7 +203,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data5", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data6", @@ -226,9 +226,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -237,7 +237,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data6", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data7", @@ -260,9 +260,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -271,7 +271,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data7", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data8", @@ -294,9 +294,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -305,7 +305,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data8", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-log", @@ -328,9 +328,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -339,7 +339,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-log", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-log-mirror", @@ -362,9 +362,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -373,7 +373,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-log-mirror", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-binary", @@ -396,9 +396,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -407,7 +407,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-binary", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-backup", @@ -430,9 +430,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -441,9 +441,9 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-backup", - zones: ["1"] - } - ] + zones: ["1"], + }, + ], }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -451,7 +451,7 @@ async function volumeGroupsCreateOracle() { resourceGroupName, accountName, volumeGroupName, - body + body, ); console.log(result); } @@ -460,7 +460,7 @@ async function volumeGroupsCreateOracle() { * This sample demonstrates how to Create a volume group along with specified volumes * * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_SapHana.json */ async function volumeGroupsCreateSapHana() { const subscriptionId = @@ -473,7 +473,7 @@ async function volumeGroupsCreateSapHana() { groupMetaData: { applicationIdentifier: "SH9", applicationType: "SAP-HANA", - groupDescription: "Volume group" + groupDescription: "Volume group", }, location: "westus", volumes: [ @@ -498,9 +498,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -510,7 +510,7 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "data" + volumeSpecName: "data", }, { name: "test-log-mnt00001", @@ -533,9 +533,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -545,7 +545,7 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "log" + volumeSpecName: "log", }, { name: "test-shared", @@ -568,9 +568,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -580,7 +580,7 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "shared" + volumeSpecName: "shared", }, { name: "test-data-backup", @@ -603,9 +603,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -615,7 +615,7 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "data-backup" + volumeSpecName: "data-backup", }, { name: "test-log-backup", @@ -638,9 +638,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -650,9 +650,9 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "log-backup" - } - ] + volumeSpecName: "log-backup", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -660,7 +660,7 @@ async function volumeGroupsCreateSapHana() { resourceGroupName, accountName, volumeGroupName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsDeleteSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsDeleteSample.ts index e01302d73dcd..bfd01348e971 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified volume group only if there are no volumes under volume group. * * @summary Delete the specified volume group only if there are no volumes under volume group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Delete.json */ async function volumeGroupsDelete() { const subscriptionId = @@ -32,7 +32,7 @@ async function volumeGroupsDelete() { const result = await client.volumeGroups.beginDeleteAndWait( resourceGroupName, accountName, - volumeGroupName + volumeGroupName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsGetSample.ts similarity index 91% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsGetSample.ts index dc28f5ca1baf..54fc72bd6985 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified volume group * * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_Oracle.json */ async function volumeGroupsGetOracle() { const subscriptionId = @@ -32,7 +32,7 @@ async function volumeGroupsGetOracle() { const result = await client.volumeGroups.get( resourceGroupName, accountName, - volumeGroupName + volumeGroupName, ); console.log(result); } @@ -41,7 +41,7 @@ async function volumeGroupsGetOracle() { * This sample demonstrates how to Get details of the specified volume group * * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_SapHana.json */ async function volumeGroupsGetSapHana() { const subscriptionId = @@ -55,7 +55,7 @@ async function volumeGroupsGetSapHana() { const result = await client.volumeGroups.get( resourceGroupName, accountName, - volumeGroupName + volumeGroupName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsListByNetAppAccountSample.ts similarity index 91% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsListByNetAppAccountSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsListByNetAppAccountSample.ts index c95287efcf06..ae79592660c1 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsListByNetAppAccountSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsListByNetAppAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all volume groups for given account * * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_Oracle.json */ async function volumeGroupsListOracle() { const subscriptionId = @@ -31,7 +31,7 @@ async function volumeGroupsListOracle() { const resArray = new Array(); for await (let item of client.volumeGroups.listByNetAppAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } @@ -42,7 +42,7 @@ async function volumeGroupsListOracle() { * This sample demonstrates how to List all volume groups for given account * * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_SapHana.json */ async function volumeGroupsListSapHana() { const subscriptionId = @@ -55,7 +55,7 @@ async function volumeGroupsListSapHana() { const resArray = new Array(); for await (let item of client.volumeGroups.listByNetAppAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesCreateSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesCreateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesCreateSample.ts index 2635560f8c1f..ebf4971bd014 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create the specified quota rule within the given volume * * @summary Create the specified quota rule within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Create.json */ async function volumeQuotaRulesCreate() { const subscriptionId = @@ -33,7 +33,7 @@ async function volumeQuotaRulesCreate() { location: "westus", quotaSizeInKiBs: 100005, quotaTarget: "1821", - quotaType: "IndividualUserQuota" + quotaType: "IndividualUserQuota", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function volumeQuotaRulesCreate() { poolName, volumeName, volumeQuotaRuleName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesDeleteSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesDeleteSample.ts index 3bd1d48a0aba..8df9f5b6705a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete quota rule * * @summary Delete quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Delete.json */ async function volumeQuotaRulesDelete() { const subscriptionId = @@ -36,7 +36,7 @@ async function volumeQuotaRulesDelete() { accountName, poolName, volumeName, - volumeQuotaRuleName + volumeQuotaRuleName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesGetSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesGetSample.ts index ae6fa041a5d7..d51f2cbe651d 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified quota rule * * @summary Get details of the specified quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Get.json */ async function volumeQuotaRulesGet() { const subscriptionId = @@ -36,7 +36,7 @@ async function volumeQuotaRulesGet() { accountName, poolName, volumeName, - volumeQuotaRuleName + volumeQuotaRuleName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesListByVolumeSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesListByVolumeSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesListByVolumeSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesListByVolumeSample.ts index 633491b0db13..3c0e2c1a473b 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesListByVolumeSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesListByVolumeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all quota rules associated with the volume * * @summary List all quota rules associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_List.json */ async function volumeQuotaRulesList() { const subscriptionId = @@ -35,7 +35,7 @@ async function volumeQuotaRulesList() { resourceGroupName, accountName, poolName, - volumeName + volumeName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesUpdateSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesUpdateSample.ts index d73d0af1c03b..556ec699bf30 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VolumeQuotaRulePatch, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Patch a quota rule * * @summary Patch a quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Update.json */ async function volumeQuotaRulesUpdate() { const subscriptionId = @@ -41,7 +41,7 @@ async function volumeQuotaRulesUpdate() { poolName, volumeName, volumeQuotaRuleName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesAuthorizeReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesAuthorizeReplicationSample.ts similarity index 91% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesAuthorizeReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesAuthorizeReplicationSample.ts index 34f5e7d6773b..6278a643d49e 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesAuthorizeReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesAuthorizeReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Authorize the replication connection on the source volume * * @summary Authorize the replication connection on the source volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_AuthorizeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_AuthorizeReplication.json */ async function volumesAuthorizeReplication() { const subscriptionId = @@ -30,7 +30,7 @@ async function volumesAuthorizeReplication() { const volumeName = "volume1"; const body: AuthorizeRequest = { remoteVolumeResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1" + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function volumesAuthorizeReplication() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesBreakFileLocksSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakFileLocksSample.ts similarity index 90% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesBreakFileLocksSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakFileLocksSample.ts index 4968b24e20c5..a0caa568c761 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesBreakFileLocksSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakFileLocksSample.ts @@ -11,7 +11,7 @@ import { BreakFileLocksRequest, VolumesBreakFileLocksOptionalParams, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Break all the file locks on a volume * * @summary Break all the file locks on a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakFileLocks.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakFileLocks.json */ async function volumesBreakFileLocks() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesBreakFileLocks() { const volumeName = "volume1"; const body: BreakFileLocksRequest = { clientIp: "101.102.103.104", - confirmRunningDisruptiveOperation: true + confirmRunningDisruptiveOperation: true, }; const options: VolumesBreakFileLocksOptionalParams = { body }; const credential = new DefaultAzureCredential(); @@ -44,7 +44,7 @@ async function volumesBreakFileLocks() { accountName, poolName, volumeName, - options + options, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesBreakReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakReplicationSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesBreakReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakReplicationSample.ts index 8e71b4fb4187..64c5fdbfcebf 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesBreakReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakReplicationSample.ts @@ -11,7 +11,7 @@ import { BreakReplicationRequest, VolumesBreakReplicationOptionalParams, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Break the replication connection on the destination volume * * @summary Break the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakReplication.json */ async function volumesBreakReplication() { const subscriptionId = @@ -41,7 +41,7 @@ async function volumesBreakReplication() { accountName, poolName, volumeName, - options + options, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesCreateOrUpdateSample.ts similarity index 89% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesCreateOrUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesCreateOrUpdateSample.ts index b3eb6943dbbf..a9a34de126df 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update the specified volume within the capacity pool * * @summary Create or update the specified volume within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_CreateOrUpdate.json */ async function volumesCreateOrUpdate() { const subscriptionId = @@ -30,13 +30,11 @@ async function volumesCreateOrUpdate() { const volumeName = "volume1"; const body: Volume = { creationToken: "my-unique-file-path", - encryptionKeySource: "Microsoft.KeyVault", location: "eastus", serviceLevel: "Premium", subnetId: "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 128, - usageThreshold: 107374182400 + usageThreshold: 107374182400, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -45,7 +43,7 @@ async function volumesCreateOrUpdate() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesDeleteReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteReplicationSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesDeleteReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteReplicationSample.ts index 96063c59f5fd..a4d66f403658 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesDeleteReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the replication connection on the destination volume, and send release to the source replication * * @summary Delete the replication connection on the destination volume, and send release to the source replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_DeleteReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_DeleteReplication.json */ async function volumesDeleteReplication() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesDeleteReplication() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteSample.ts index 75a4bce9ad86..f66ad69f0fc2 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified volume * * @summary Delete the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Delete.json */ async function volumesDelete() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesDelete() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesFinalizeRelocationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesFinalizeRelocationSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesFinalizeRelocationSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesFinalizeRelocationSample.ts index 084aad858a59..f5a6a2a32128 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesFinalizeRelocationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesFinalizeRelocationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Finalizes the relocation of the volume and cleans up the old volume. * * @summary Finalizes the relocation of the volume and cleans up the old volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_FinalizeRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_FinalizeRelocation.json */ async function volumesFinalizeRelocation() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesFinalizeRelocation() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesGetSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesGetSample.ts index 9cd849ab90d0..148073a4ea21 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the details of the specified volume * * @summary Get the details of the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Get.json */ async function volumesGet() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesGet() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts index 5bc7dd0c12f5..2c3af3ef5a2a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GetGroupIdListForLdapUserRequest, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Returns the list of group Ids for a specific LDAP User * * @summary Returns the list of group Ids for a specific LDAP User - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/GroupIdListForLDAPUser.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/GroupIdListForLDAPUser.json */ async function getGroupIdListForUser() { const subscriptionId = @@ -39,7 +39,7 @@ async function getGroupIdListForUser() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListReplicationsSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListReplicationsSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListReplicationsSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListReplicationsSample.ts index 25b4ea9e10d7..8d4ffdb22d84 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListReplicationsSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListReplicationsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all replications for a specified volume * * @summary List all replications for a specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ListReplications.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ListReplications.json */ async function volumesListReplications() { const subscriptionId = @@ -35,7 +35,7 @@ async function volumesListReplications() { resourceGroupName, accountName, poolName, - volumeName + volumeName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListSample.ts index 1e6320a9ad05..1897922b20bd 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all volumes within the capacity pool * * @summary List all volumes within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_List.json */ async function volumesList() { const subscriptionId = @@ -33,7 +33,7 @@ async function volumesList() { for await (let item of client.volumes.list( resourceGroupName, accountName, - poolName + poolName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesPoolChangeSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPoolChangeSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesPoolChangeSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPoolChangeSample.ts index e9bcd70a6317..27f44c2d5091 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesPoolChangeSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPoolChangeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Moves volume to another pool * * @summary Moves volume to another pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PoolChange.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PoolChange.json */ async function volumesAuthorizeReplication() { const subscriptionId = @@ -30,7 +30,7 @@ async function volumesAuthorizeReplication() { const volumeName = "volume1"; const body: PoolChangeRequest = { newPoolResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1" + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function volumesAuthorizeReplication() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesPopulateAvailabilityZoneSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPopulateAvailabilityZoneSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesPopulateAvailabilityZoneSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPopulateAvailabilityZoneSample.ts index c363a99c4af3..693dd0710a7d 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesPopulateAvailabilityZoneSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPopulateAvailabilityZoneSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to This operation will populate availability zone information for a volume * * @summary This operation will populate availability zone information for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PopulateAvailabilityZones.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PopulateAvailabilityZones.json */ async function volumesPopulateAvailabilityZones() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesPopulateAvailabilityZones() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReInitializeReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReInitializeReplicationSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReInitializeReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReInitializeReplicationSample.ts index 2b8e869cc66a..212d4a1b7728 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReInitializeReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReInitializeReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Re-Initializes the replication connection on the destination volume * * @summary Re-Initializes the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReInitializeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReInitializeReplication.json */ async function volumesReInitializeReplication() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesReInitializeReplication() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReestablishReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReestablishReplicationSample.ts similarity index 90% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReestablishReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReestablishReplicationSample.ts index 74f3243493aa..afdd687cbe2c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReestablishReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReestablishReplicationSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ReestablishReplicationRequest, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots * * @summary Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReestablishReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReestablishReplication.json */ async function volumesReestablishReplication() { const subscriptionId = @@ -33,7 +33,7 @@ async function volumesReestablishReplication() { const volumeName = "volume1"; const body: ReestablishReplicationRequest = { sourceVolumeId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1" + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -42,7 +42,7 @@ async function volumesReestablishReplication() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRelocateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRelocateSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRelocateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRelocateSample.ts index 3c278a1211af..8ee2bb638298 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRelocateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRelocateSample.ts @@ -11,7 +11,7 @@ import { RelocateVolumeRequest, VolumesRelocateOptionalParams, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Relocates volume to a new stamp * * @summary Relocates volume to a new stamp - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Relocate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Relocate.json */ async function volumesRelocate() { const subscriptionId = @@ -41,7 +41,7 @@ async function volumesRelocate() { accountName, poolName, volumeName, - options + options, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReplicationStatusSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReplicationStatusSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReplicationStatusSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReplicationStatusSample.ts index 703a80c6a2cc..841b6e9cb282 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReplicationStatusSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReplicationStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the status of the replication * * @summary Get the status of the replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReplicationStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReplicationStatus.json */ async function volumesReplicationStatus() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesReplicationStatus() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesResetCifsPasswordSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResetCifsPasswordSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesResetCifsPasswordSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResetCifsPasswordSample.ts index bfdd4ad6ab8a..12a35039d3f2 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesResetCifsPasswordSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResetCifsPasswordSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Reset cifs password from volume * * @summary Reset cifs password from volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResetCifsPassword.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResetCifsPassword.json */ async function volumesResetCifsPassword() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesResetCifsPassword() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesResyncReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResyncReplicationSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesResyncReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResyncReplicationSample.ts index 819e72b259cc..bbefe158f37e 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesResyncReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResyncReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. * * @summary Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResyncReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResyncReplication.json */ async function volumesResyncReplication() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesResyncReplication() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRevertRelocationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertRelocationSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRevertRelocationSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertRelocationSample.ts index 971c433827cb..b88b8b4b77ba 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRevertRelocationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertRelocationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @summary Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RevertRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RevertRelocation.json */ async function volumesRevertRelocation() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesRevertRelocation() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRevertSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertSample.ts similarity index 91% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRevertSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertSample.ts index be658f3923d5..bf4f444ee1fa 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRevertSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Revert a volume to the snapshot specified in the body * * @summary Revert a volume to the snapshot specified in the body - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Revert.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Revert.json */ async function volumesRevert() { const subscriptionId = @@ -30,7 +30,7 @@ async function volumesRevert() { const volumeName = "volume1"; const body: VolumeRevert = { snapshotId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1" + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function volumesRevert() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesUpdateSample.ts similarity index 75% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesUpdateSample.ts index 1b1facca9524..9f6d327bb77a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch the specified volume * * @summary Patch the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Update.json */ async function volumesUpdate() { const subscriptionId = @@ -28,17 +28,7 @@ async function volumesUpdate() { const accountName = "account1"; const poolName = "pool1"; const volumeName = "volume1"; - const body: VolumePatch = { - dataProtection: { - backup: { - backupEnabled: true, - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRP/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1", - policyEnforced: false - } - }, - location: "eastus" - }; + const body: VolumePatch = {}; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.volumes.beginUpdateAndWait( @@ -46,7 +36,7 @@ async function volumesUpdate() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/tsconfig.json b/sdk/netapp/arm-netapp/samples/v20/typescript/tsconfig.json similarity index 100% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/tsconfig.json rename to sdk/netapp/arm-netapp/samples/v20/typescript/tsconfig.json diff --git a/sdk/netapp/arm-netapp/src/lroImpl.ts b/sdk/netapp/arm-netapp/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/netapp/arm-netapp/src/lroImpl.ts +++ b/sdk/netapp/arm-netapp/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/netapp/arm-netapp/src/models/index.ts b/sdk/netapp/arm-netapp/src/models/index.ts index a4e5526d38de..24d5010dd415 100644 --- a/sdk/netapp/arm-netapp/src/models/index.ts +++ b/sdk/netapp/arm-netapp/src/models/index.ts @@ -98,6 +98,55 @@ export interface LogSpecification { displayName?: string; } +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; +} + +/** The error detail. */ +export interface ErrorDetail { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; +} + /** Resource name availability request content. */ export interface ResourceNameAvailabilityRequest { /** Resource name to verify. */ @@ -182,14 +231,6 @@ export interface SystemData { lastModifiedAt?: Date; } -/** List of regionInfo resources */ -export interface RegionInfosList { - /** A list of regionInfo resources */ - value?: RegionInfoResource[]; - /** URL to get the next set of results. */ - nextLink?: string; -} - /** Provides region specific information. */ export interface RegionInfo { /** Provides storage to network proximity information in the region. */ @@ -205,55 +246,6 @@ export interface RegionInfoAvailabilityZoneMappingsItem { isAvailable?: boolean; } -/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ -export interface ErrorResponse { - /** The error object. */ - error?: ErrorDetail; -} - -/** The error detail. */ -export interface ErrorDetail { - /** - * The error code. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly code?: string; - /** - * The error message. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly message?: string; - /** - * The error target. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly target?: string; - /** - * The error details. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly details?: ErrorDetail[]; - /** - * The error additional info. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly additionalInfo?: ErrorAdditionalInfo[]; -} - -/** The resource management error additional info. */ -export interface ErrorAdditionalInfo { - /** - * The additional info type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * The additional info. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly info?: Record; -} - /** Network sibling set query. */ export interface QueryNetworkSiblingSetRequest { /** Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. */ @@ -300,7 +292,7 @@ export interface UpdateNetworkSiblingSetRequest { subnetId: string; /** Network sibling set state Id identifying the current state of the sibling set. */ networkSiblingSetStateId: string; - /** Network features available to the volume */ + /** Network features available to the volume, some such */ networkFeatures: NetworkFeatures; } @@ -490,35 +482,6 @@ export interface NetAppAccountPatch { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly disableShowmount?: boolean; - /** Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes. */ - nfsV4IDDomain?: string; - /** - * This will have true value only if account is Multiple AD enabled. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isMultiAdEnabled?: boolean; -} - -/** An error response from the service. */ -export interface CloudError { - /** Cloud error body. */ - error?: CloudErrorBody; -} - -/** An error response from the service. */ -export interface CloudErrorBody { - /** An identifier for the error. Codes are invariant and are intended to be consumed programmatically. */ - code?: string; - /** A message describing the error, intended to be suitable for display in a user interface. */ - message?: string; -} - -/** Encryption migration request */ -export interface EncryptionMigrationRequest { - /** Identifier for the virtual network */ - virtualNetworkId: string; - /** Identifier of the private endpoint to reach the Azure Key Vault */ - privateEndpointId: string; } /** List of capacity pool resources */ @@ -626,8 +589,6 @@ export interface MountTargetProperties { /** DataProtection type volumes include an object containing details of the replication */ export interface VolumePropertiesDataProtection { - /** Backup Properties */ - backup?: VolumeBackupProperties; /** Replication properties */ replication?: ReplicationObject; /** Snapshot properties. */ @@ -636,18 +597,6 @@ export interface VolumePropertiesDataProtection { volumeRelocation?: VolumeRelocationProperties; } -/** Volume Backup Properties */ -export interface VolumeBackupProperties { - /** Backup Policy Resource ID */ - backupPolicyId?: string; - /** Policy Enforced */ - policyEnforced?: boolean; - /** Backup Enabled */ - backupEnabled?: boolean; - /** Backup Vault Resource ID */ - backupVaultId?: string; -} - /** Replication properties */ export interface ReplicationObject { /** @@ -659,24 +608,12 @@ export interface ReplicationObject { endpointType?: EndpointType; /** Schedule */ replicationSchedule?: ReplicationSchedule; - /** The resource ID of the remote volume. Required for cross region and cross zone replication */ + /** The resource ID of the remote volume. */ remoteVolumeResourceId: string; - /** The full path to a volume that is to be migrated into ANF. Required for Migration volumes */ - remotePath?: RemotePath; /** The remote region for the other end of the Volume Replication. */ remoteVolumeRegion?: string; } -/** The full path to a volume that is to be migrated into ANF. Required for Migration volumes */ -export interface RemotePath { - /** The Path to a Ontap Host */ - externalHostName: string; - /** The name of a server on the Ontap Host */ - serverName: string; - /** The name of a volume on the server */ - volumeName: string; -} - /** Volume Snapshot Properties */ export interface VolumeSnapshotProperties { /** Snapshot Policy ResourceId */ @@ -768,8 +705,6 @@ export interface VolumePatchPropertiesExportPolicy { /** DataProtection type volumes include an object containing details of the replication */ export interface VolumePatchPropertiesDataProtection { - /** Backup Properties */ - backup?: VolumeBackupProperties; /** Snapshot properties. */ snapshot?: VolumeSnapshotProperties; } @@ -976,55 +911,6 @@ export interface SnapshotPolicyVolumeList { value?: Volume[]; } -/** Backup status */ -export interface BackupStatus { - /** - * Backup health status - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly healthy?: boolean; - /** - * Status of the backup mirror relationship - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly relationshipStatus?: RelationshipStatus; - /** - * The status of the backup - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly mirrorState?: MirrorState; - /** - * Reason for the unhealthy backup relationship - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly unhealthyReason?: string; - /** - * Displays error message if the backup is in an error state - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorMessage?: string; - /** - * Displays the last transfer size - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastTransferSize?: number; - /** - * Displays the last transfer type - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastTransferType?: string; - /** - * Displays the total bytes transferred - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly totalTransferBytes?: number; - /** - * Displays the total number of bytes transferred for the ongoing operation - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly transferProgressBytes?: number; -} - /** Restore status */ export interface RestoreStatus { /** @@ -1059,20 +945,6 @@ export interface RestoreStatus { readonly totalTransferBytes?: number; } -/** List of Backups */ -export interface BackupsList { - /** A list of Backups */ - value?: Backup[]; - /** URL to get the next set of results. */ - nextLink?: string; -} - -/** Backup patch */ -export interface BackupPatch { - /** Label for backup */ - label?: string; -} - /** List of Backup Policies */ export interface BackupPoliciesList { /** A list of backup policies */ @@ -1312,7 +1184,7 @@ export interface VolumeGroupVolumeProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly mountTargets?: MountTargetProperties[]; - /** What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For creating clone volume, set type to ShortTermClone */ + /** What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection */ volumeType?: string; /** DataProtection type volumes include an object containing details of the replication */ dataProtection?: VolumePropertiesDataProtection; @@ -1423,11 +1295,6 @@ export interface VolumeGroupVolumeProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly originatingResourceId?: string; - /** - * Space shared by short term clone volume with parent volume in bytes. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly inheritedSizeInBytes?: number; } /** List of Subvolumes */ @@ -1485,36 +1352,6 @@ export interface SubvolumeModel { provisioningState?: string; } -/** List of Backup Vaults */ -export interface BackupVaultsList { - /** A list of Backup Vaults */ - value?: BackupVault[]; - /** URL to get the next set of results. */ - nextLink?: string; -} - -/** Backup Vault information */ -export interface BackupVaultPatch { - /** Resource tags */ - tags?: { [propertyName: string]: string }; -} - -/** Restore payload for Single File Backup Restore */ -export interface BackupRestoreFiles { - /** List of files to be restored */ - fileList: string[]; - /** Destination folder where the files will be restored. The path name should start with a forward slash. If it is omitted from request then restore is done at the root folder of the destination volume by default */ - restoreFilePath?: string; - /** Resource Id of the destination volume on which the files need to be restored */ - destinationVolumeId: string; -} - -/** Migrate Backups Request */ -export interface BackupsMigrationRequest { - /** The ResourceId of the Backup Vault */ - backupVaultId: string; -} - /** Identity for the resource. */ export interface ResourceIdentity { /** @@ -1606,6 +1443,20 @@ export interface SnapshotPolicyDetails { readonly provisioningState?: string; } +/** An error response from the service. */ +export interface CloudError { + /** Cloud error body. */ + error?: CloudErrorBody; +} + +/** An error response from the service. */ +export interface CloudErrorBody { + /** An identifier for the error. Codes are invariant and are intended to be consumed programmatically. */ + code?: string; + /** A message describing the error, intended to be suitable for display in a user interface. */ + message?: string; +} + /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ export interface ProxyResource extends Resource {} @@ -1631,14 +1482,6 @@ export interface SubscriptionQuotaItem extends ProxyResource { readonly default?: number; } -/** Information regarding regionInfo Item. */ -export interface RegionInfoResource extends ProxyResource { - /** Provides storage to network proximity information in the region. */ - storageToNetworkProximity?: RegionStorageToNetworkProximity; - /** Provides logical availability zone mappings for the subscription for a region. */ - availabilityZoneMappings?: RegionInfoAvailabilityZoneMappingsItem[]; -} - /** Snapshot of a Volume */ export interface Snapshot extends ProxyResource { /** Resource location */ @@ -1660,53 +1503,6 @@ export interface Snapshot extends ProxyResource { readonly provisioningState?: string; } -/** Backup under a Backup Vault */ -export interface Backup extends ProxyResource { - /** - * UUID v4 used to identify the Backup - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly backupId?: string; - /** - * The creation date of the backup - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly creationDate?: Date; - /** - * Azure lifecycle management - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** - * Size of backup in bytes - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly size?: number; - /** Label for backup */ - label?: string; - /** - * Type of backup Manual or Scheduled - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly backupType?: BackupType; - /** - * Failure reason - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly failureReason?: string; - /** ResourceId used to identify the Volume */ - volumeResourceId: string; - /** Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups */ - useExistingSnapshot?: boolean; - /** The name of the snapshot */ - snapshotName?: string; - /** - * ResourceId used to identify the backup policy - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly backupPolicyResourceId?: string; -} - /** Subvolume Information properties */ export interface SubvolumeInfo extends ProxyResource { /** Path to the subvolume */ @@ -1745,13 +1541,6 @@ export interface NetAppAccount extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly disableShowmount?: boolean; - /** Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes. */ - nfsV4IDDomain?: string; - /** - * This will have true value only if account is Multiple AD enabled. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isMultiAdEnabled?: boolean; } /** Capacity pool resource */ @@ -1852,7 +1641,7 @@ export interface Volume extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly mountTargets?: MountTargetProperties[]; - /** What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For creating clone volume, set type to ShortTermClone */ + /** What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection */ volumeType?: string; /** DataProtection type volumes include an object containing details of the replication */ dataProtection?: VolumePropertiesDataProtection; @@ -1963,11 +1752,6 @@ export interface Volume extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly originatingResourceId?: string; - /** - * Space shared by short term clone volume with parent volume in bytes. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly inheritedSizeInBytes?: number; } /** Snapshot policy information */ @@ -2046,25 +1830,11 @@ export interface VolumeQuotaRule extends TrackedResource { quotaTarget?: string; } -/** Backup Vault information */ -export interface BackupVault extends TrackedResource { - /** - * Azure lifecycle management - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; -} - /** Defines headers for NetAppResource_updateNetworkSiblingSet operation. */ export interface NetAppResourceUpdateNetworkSiblingSetHeaders { location?: string; } -/** Defines headers for Accounts_migrateEncryptionKey operation. */ -export interface AccountsMigrateEncryptionKeyHeaders { - location?: string; -} - /** Defines headers for Volumes_populateAvailabilityZone operation. */ export interface VolumesPopulateAvailabilityZoneHeaders { location?: string; @@ -2075,11 +1845,6 @@ export interface VolumesResetCifsPasswordHeaders { location?: string; } -/** Defines headers for Volumes_splitCloneFromParent operation. */ -export interface VolumesSplitCloneFromParentHeaders { - location?: string; -} - /** Defines headers for Volumes_breakFileLocks operation. */ export interface VolumesBreakFileLocksHeaders { location?: string; @@ -2090,50 +1855,10 @@ export interface VolumesListGetGroupIdListForLdapUserHeaders { location?: string; } -/** Defines headers for Backups_update operation. */ -export interface BackupsUpdateHeaders { - location?: string; -} - -/** Defines headers for Backups_delete operation. */ -export interface BackupsDeleteHeaders { - location?: string; -} - -/** Defines headers for AccountBackups_delete operation. */ -export interface AccountBackupsDeleteHeaders { - location?: string; -} - -/** Defines headers for BackupVaults_update operation. */ -export interface BackupVaultsUpdateHeaders { - location?: string; -} - -/** Defines headers for BackupVaults_delete operation. */ -export interface BackupVaultsDeleteHeaders { - location?: string; -} - -/** Defines headers for BackupsUnderBackupVault_restoreFiles operation. */ -export interface BackupsUnderBackupVaultRestoreFilesHeaders { - location?: string; -} - -/** Defines headers for BackupsUnderVolume_migrateBackups operation. */ -export interface BackupsUnderVolumeMigrateBackupsHeaders { - location?: string; -} - -/** Defines headers for BackupsUnderAccount_migrateBackups operation. */ -export interface BackupsUnderAccountMigrateBackupsHeaders { - location?: string; -} - /** Known values of {@link MetricAggregationType} that the service accepts. */ export enum KnownMetricAggregationType { /** Average */ - Average = "Average" + Average = "Average", } /** @@ -2154,7 +1879,7 @@ export enum KnownCheckNameResourceTypes { /** MicrosoftNetAppNetAppAccountsCapacityPoolsVolumes */ MicrosoftNetAppNetAppAccountsCapacityPoolsVolumes = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes", /** MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots */ - MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots" + MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots", } /** @@ -2174,7 +1899,7 @@ export enum KnownInAvailabilityReasonType { /** Invalid */ Invalid = "Invalid", /** AlreadyExists */ - AlreadyExists = "AlreadyExists" + AlreadyExists = "AlreadyExists", } /** @@ -2196,7 +1921,7 @@ export enum KnownCheckQuotaNameResourceTypes { /** MicrosoftNetAppNetAppAccountsCapacityPoolsVolumes */ MicrosoftNetAppNetAppAccountsCapacityPoolsVolumes = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes", /** MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots */ - MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots" + MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots", } /** @@ -2220,7 +1945,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -2252,7 +1977,7 @@ export enum KnownRegionStorageToNetworkProximity { /** Standard T2 and AcrossT2 network connectivity. */ T2AndAcrossT2 = "T2AndAcrossT2", /** Standard T1, T2 and AcrossT2 network connectivity. */ - T1AndT2AndAcrossT2 = "T1AndT2AndAcrossT2" + T1AndT2AndAcrossT2 = "T1AndT2AndAcrossT2", } /** @@ -2280,7 +2005,7 @@ export enum KnownNetworkFeatures { /** Updating from Basic to Standard network features. */ BasicStandard = "Basic_Standard", /** Updating from Standard to Basic network features. */ - StandardBasic = "Standard_Basic" + StandardBasic = "Standard_Basic", } /** @@ -2304,7 +2029,7 @@ export enum KnownNetworkSiblingSetProvisioningState { /** Canceled */ Canceled = "Canceled", /** Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -2330,7 +2055,7 @@ export enum KnownActiveDirectoryStatus { /** Error with the Active Directory */ Error = "Error", /** Active Directory Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -2351,7 +2076,7 @@ export enum KnownKeySource { /** Microsoft-managed key encryption */ MicrosoftNetApp = "Microsoft.NetApp", /** Customer-managed key encryption */ - MicrosoftKeyVault = "Microsoft.KeyVault" + MicrosoftKeyVault = "Microsoft.KeyVault", } /** @@ -2375,7 +2100,7 @@ export enum KnownKeyVaultStatus { /** Error with the KeyVault connection */ Error = "Error", /** KeyVault connection Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -2400,7 +2125,7 @@ export enum KnownManagedServiceIdentityType { /** UserAssigned */ UserAssigned = "UserAssigned", /** SystemAssignedUserAssigned */ - SystemAssignedUserAssigned = "SystemAssigned,UserAssigned" + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", } /** @@ -2424,7 +2149,7 @@ export enum KnownServiceLevel { /** Ultra service level */ Ultra = "Ultra", /** Zone redundant storage service level */ - StandardZRS = "StandardZRS" + StandardZRS = "StandardZRS", } /** @@ -2444,7 +2169,7 @@ export enum KnownQosType { /** qos type Auto */ Auto = "Auto", /** qos type Manual */ - Manual = "Manual" + Manual = "Manual", } /** @@ -2462,7 +2187,7 @@ export enum KnownEncryptionType { /** EncryptionType Single, volumes will use single encryption at rest */ Single = "Single", /** EncryptionType Double, volumes will use double encryption at rest */ - Double = "Double" + Double = "Double", } /** @@ -2480,7 +2205,7 @@ export enum KnownChownMode { /** Restricted */ Restricted = "Restricted", /** Unrestricted */ - Unrestricted = "Unrestricted" + Unrestricted = "Unrestricted", } /** @@ -2502,7 +2227,7 @@ export enum KnownVolumeStorageToNetworkProximity { /** Standard T2 storage to network connectivity. */ T2 = "T2", /** Standard AcrossT2 storage to network connectivity. */ - AcrossT2 = "AcrossT2" + AcrossT2 = "AcrossT2", } /** @@ -2522,7 +2247,7 @@ export enum KnownEndpointType { /** Src */ Src = "src", /** Dst */ - Dst = "dst" + Dst = "dst", } /** @@ -2542,7 +2267,7 @@ export enum KnownReplicationSchedule { /** Hourly */ Hourly = "hourly", /** Daily */ - Daily = "daily" + Daily = "daily", } /** @@ -2561,7 +2286,7 @@ export enum KnownSecurityStyle { /** Ntfs */ Ntfs = "ntfs", /** Unix */ - Unix = "unix" + Unix = "unix", } /** @@ -2579,7 +2304,7 @@ export enum KnownSmbAccessBasedEnumeration { /** smbAccessBasedEnumeration share setting is disabled */ Disabled = "Disabled", /** smbAccessBasedEnumeration share setting is enabled */ - Enabled = "Enabled" + Enabled = "Enabled", } /** @@ -2597,7 +2322,7 @@ export enum KnownSmbNonBrowsable { /** smbNonBrowsable share setting is disabled */ Disabled = "Disabled", /** smbNonBrowsable share setting is enabled */ - Enabled = "Enabled" + Enabled = "Enabled", } /** @@ -2615,7 +2340,7 @@ export enum KnownEncryptionKeySource { /** Microsoft-managed key encryption */ MicrosoftNetApp = "Microsoft.NetApp", /** Customer-managed key encryption */ - MicrosoftKeyVault = "Microsoft.KeyVault" + MicrosoftKeyVault = "Microsoft.KeyVault", } /** @@ -2635,7 +2360,7 @@ export enum KnownCoolAccessRetrievalPolicy { /** OnRead */ OnRead = "OnRead", /** Never */ - Never = "Never" + Never = "Never", } /** @@ -2654,7 +2379,7 @@ export enum KnownFileAccessLogs { /** fileAccessLogs are enabled */ Enabled = "Enabled", /** fileAccessLogs are not enabled */ - Disabled = "Disabled" + Disabled = "Disabled", } /** @@ -2672,7 +2397,7 @@ export enum KnownAvsDataStore { /** avsDataStore is enabled */ Enabled = "Enabled", /** avsDataStore is disabled */ - Disabled = "Disabled" + Disabled = "Disabled", } /** @@ -2690,7 +2415,7 @@ export enum KnownEnableSubvolumes { /** subvolumes are enabled */ Enabled = "Enabled", /** subvolumes are not enabled */ - Disabled = "Disabled" + Disabled = "Disabled", } /** @@ -2708,7 +2433,11 @@ export enum KnownRelationshipStatus { /** Idle */ Idle = "Idle", /** Transferring */ - Transferring = "Transferring" + Transferring = "Transferring", + /** Failed */ + Failed = "Failed", + /** Unknown */ + Unknown = "Unknown", } /** @@ -2717,7 +2446,9 @@ export enum KnownRelationshipStatus { * this enum contains the known values that the service supports. * ### Known values supported by the service * **Idle** \ - * **Transferring** + * **Transferring** \ + * **Failed** \ + * **Unknown** */ export type RelationshipStatus = string; @@ -2728,7 +2459,7 @@ export enum KnownMirrorState { /** Mirrored */ Mirrored = "Mirrored", /** Broken */ - Broken = "Broken" + Broken = "Broken", } /** @@ -2742,24 +2473,6 @@ export enum KnownMirrorState { */ export type MirrorState = string; -/** Known values of {@link BackupType} that the service accepts. */ -export enum KnownBackupType { - /** Manual backup */ - Manual = "Manual", - /** Scheduled backup */ - Scheduled = "Scheduled" -} - -/** - * Defines values for BackupType. \ - * {@link KnownBackupType} can be used interchangeably with BackupType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Manual**: Manual backup \ - * **Scheduled**: Scheduled backup - */ -export type BackupType = string; - /** Known values of {@link Type} that the service accepts. */ export enum KnownType { /** Default user quota */ @@ -2769,7 +2482,7 @@ export enum KnownType { /** Individual user quota */ IndividualUserQuota = "IndividualUserQuota", /** Individual group quota */ - IndividualGroupQuota = "IndividualGroupQuota" + IndividualGroupQuota = "IndividualGroupQuota", } /** @@ -2789,7 +2502,7 @@ export enum KnownApplicationType { /** SAPHana */ SAPHana = "SAP-HANA", /** Oracle */ - Oracle = "ORACLE" + Oracle = "ORACLE", } /** @@ -2823,21 +2536,24 @@ export interface NetAppResourceCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the checkNameAvailability operation. */ -export type NetAppResourceCheckNameAvailabilityResponse = CheckAvailabilityResponse; +export type NetAppResourceCheckNameAvailabilityResponse = + CheckAvailabilityResponse; /** Optional parameters. */ export interface NetAppResourceCheckFilePathAvailabilityOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the checkFilePathAvailability operation. */ -export type NetAppResourceCheckFilePathAvailabilityResponse = CheckAvailabilityResponse; +export type NetAppResourceCheckFilePathAvailabilityResponse = + CheckAvailabilityResponse; /** Optional parameters. */ export interface NetAppResourceCheckQuotaAvailabilityOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the checkQuotaAvailability operation. */ -export type NetAppResourceCheckQuotaAvailabilityResponse = CheckAvailabilityResponse; +export type NetAppResourceCheckQuotaAvailabilityResponse = + CheckAvailabilityResponse; /** Optional parameters. */ export interface NetAppResourceQueryRegionInfoOptionalParams @@ -2879,27 +2595,6 @@ export interface NetAppResourceQuotaLimitsGetOptionalParams /** Contains response data for the get operation. */ export type NetAppResourceQuotaLimitsGetResponse = SubscriptionQuotaItem; -/** Optional parameters. */ -export interface NetAppResourceRegionInfosListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type NetAppResourceRegionInfosListResponse = RegionInfosList; - -/** Optional parameters. */ -export interface NetAppResourceRegionInfosGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type NetAppResourceRegionInfosGetResponse = RegionInfoResource; - -/** Optional parameters. */ -export interface NetAppResourceRegionInfosListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type NetAppResourceRegionInfosListNextResponse = RegionInfosList; - /** Optional parameters. */ export interface AccountsListBySubscriptionOptionalParams extends coreClient.OperationOptions {} @@ -2963,20 +2658,6 @@ export interface AccountsRenewCredentialsOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface AccountsMigrateEncryptionKeyOptionalParams - extends coreClient.OperationOptions { - /** The required parameters to perform encryption migration. */ - body?: EncryptionMigrationRequest; - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the migrateEncryptionKey operation. */ -export type AccountsMigrateEncryptionKeyResponse = AccountsMigrateEncryptionKeyHeaders; - /** Optional parameters. */ export interface AccountsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} @@ -3122,18 +2803,6 @@ export interface VolumesResetCifsPasswordOptionalParams /** Contains response data for the resetCifsPassword operation. */ export type VolumesResetCifsPasswordResponse = VolumesResetCifsPasswordHeaders; -/** Optional parameters. */ -export interface VolumesSplitCloneFromParentOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the splitCloneFromParent operation. */ -export type VolumesSplitCloneFromParentResponse = VolumesSplitCloneFromParentHeaders; - /** Optional parameters. */ export interface VolumesBreakFileLocksOptionalParams extends coreClient.OperationOptions { @@ -3155,7 +2824,8 @@ export interface VolumesListGetGroupIdListForLdapUserOptionalParams } /** Contains response data for the listGetGroupIdListForLdapUser operation. */ -export type VolumesListGetGroupIdListForLdapUserResponse = GetGroupIdListForLdapUserResponse; +export type VolumesListGetGroupIdListForLdapUserResponse = + GetGroupIdListForLdapUserResponse; /** Optional parameters. */ export interface VolumesBreakReplicationOptionalParams @@ -3377,13 +3047,6 @@ export interface SnapshotPoliciesListVolumesOptionalParams /** Contains response data for the listVolumes operation. */ export type SnapshotPoliciesListVolumesResponse = SnapshotPolicyVolumeList; -/** Optional parameters. */ -export interface BackupsGetLatestStatusOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getLatestStatus operation. */ -export type BackupsGetLatestStatusResponse = BackupStatus; - /** Optional parameters. */ export interface BackupsGetVolumeRestoreStatusOptionalParams extends coreClient.OperationOptions {} @@ -3391,96 +3054,6 @@ export interface BackupsGetVolumeRestoreStatusOptionalParams /** Contains response data for the getVolumeRestoreStatus operation. */ export type BackupsGetVolumeRestoreStatusResponse = RestoreStatus; -/** Optional parameters. */ -export interface BackupsListByVaultOptionalParams - extends coreClient.OperationOptions { - /** An option to specify the VolumeResourceId. If present, then only returns the backups under the specified volume */ - filter?: string; -} - -/** Contains response data for the listByVault operation. */ -export type BackupsListByVaultResponse = BackupsList; - -/** Optional parameters. */ -export interface BackupsGetOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type BackupsGetResponse = Backup; - -/** Optional parameters. */ -export interface BackupsCreateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the create operation. */ -export type BackupsCreateResponse = Backup; - -/** Optional parameters. */ -export interface BackupsUpdateOptionalParams - extends coreClient.OperationOptions { - /** Backup object supplied in the body of the operation. */ - body?: BackupPatch; - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type BackupsUpdateResponse = Backup; - -/** Optional parameters. */ -export interface BackupsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the delete operation. */ -export type BackupsDeleteResponse = BackupsDeleteHeaders; - -/** Optional parameters. */ -export interface BackupsListByVaultNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByVaultNext operation. */ -export type BackupsListByVaultNextResponse = BackupsList; - -/** Optional parameters. */ -export interface AccountBackupsListByNetAppAccountOptionalParams - extends coreClient.OperationOptions { - /** An option to specify whether to return backups only from deleted volumes */ - includeOnlyBackupsFromDeletedVolumes?: string; -} - -/** Contains response data for the listByNetAppAccount operation. */ -export type AccountBackupsListByNetAppAccountResponse = BackupsList; - -/** Optional parameters. */ -export interface AccountBackupsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type AccountBackupsGetResponse = Backup; - -/** Optional parameters. */ -export interface AccountBackupsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the delete operation. */ -export type AccountBackupsDeleteResponse = AccountBackupsDeleteHeaders; - /** Optional parameters. */ export interface BackupPoliciesListOptionalParams extends coreClient.OperationOptions {} @@ -3676,99 +3249,6 @@ export interface SubvolumesListByVolumeNextOptionalParams /** Contains response data for the listByVolumeNext operation. */ export type SubvolumesListByVolumeNextResponse = SubvolumesList; -/** Optional parameters. */ -export interface BackupVaultsListByNetAppAccountOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByNetAppAccount operation. */ -export type BackupVaultsListByNetAppAccountResponse = BackupVaultsList; - -/** Optional parameters. */ -export interface BackupVaultsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type BackupVaultsGetResponse = BackupVault; - -/** Optional parameters. */ -export interface BackupVaultsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type BackupVaultsCreateOrUpdateResponse = BackupVault; - -/** Optional parameters. */ -export interface BackupVaultsUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type BackupVaultsUpdateResponse = BackupVault; - -/** Optional parameters. */ -export interface BackupVaultsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the delete operation. */ -export type BackupVaultsDeleteResponse = BackupVaultsDeleteHeaders; - -/** Optional parameters. */ -export interface BackupVaultsListByNetAppAccountNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByNetAppAccountNext operation. */ -export type BackupVaultsListByNetAppAccountNextResponse = BackupVaultsList; - -/** Optional parameters. */ -export interface BackupsUnderBackupVaultRestoreFilesOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the restoreFiles operation. */ -export type BackupsUnderBackupVaultRestoreFilesResponse = BackupsUnderBackupVaultRestoreFilesHeaders; - -/** Optional parameters. */ -export interface BackupsUnderVolumeMigrateBackupsOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the migrateBackups operation. */ -export type BackupsUnderVolumeMigrateBackupsResponse = BackupsUnderVolumeMigrateBackupsHeaders; - -/** Optional parameters. */ -export interface BackupsUnderAccountMigrateBackupsOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the migrateBackups operation. */ -export type BackupsUnderAccountMigrateBackupsResponse = BackupsUnderAccountMigrateBackupsHeaders; - /** Optional parameters. */ export interface NetAppManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/netapp/arm-netapp/src/models/mappers.ts b/sdk/netapp/arm-netapp/src/models/mappers.ts index ae8cee007552..791e8a28db5b 100644 --- a/sdk/netapp/arm-netapp/src/models/mappers.ts +++ b/sdk/netapp/arm-netapp/src/models/mappers.ts @@ -20,13 +20,13 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } - } - } - } + className: "Operation", + }, + }, + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -37,31 +37,31 @@ export const Operation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } + className: "OperationDisplay", + }, }, origin: { serializedName: "origin", type: { - name: "String" - } + name: "String", + }, }, serviceSpecification: { serializedName: "properties.serviceSpecification", type: { name: "Composite", - className: "ServiceSpecification" - } - } - } - } + className: "ServiceSpecification", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -72,29 +72,29 @@ export const OperationDisplay: coreClient.CompositeMapper = { provider: { serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ServiceSpecification: coreClient.CompositeMapper = { @@ -109,10 +109,10 @@ export const ServiceSpecification: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MetricSpecification" - } - } - } + className: "MetricSpecification", + }, + }, + }, }, logSpecifications: { serializedName: "logSpecifications", @@ -121,13 +121,13 @@ export const ServiceSpecification: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LogSpecification" - } - } - } - } - } - } + className: "LogSpecification", + }, + }, + }, + }, + }, + }, }; export const MetricSpecification: coreClient.CompositeMapper = { @@ -138,26 +138,26 @@ export const MetricSpecification: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, displayDescription: { serializedName: "displayDescription", type: { - name: "String" - } + name: "String", + }, }, unit: { serializedName: "unit", type: { - name: "String" - } + name: "String", + }, }, supportedAggregationTypes: { serializedName: "supportedAggregationTypes", @@ -165,10 +165,10 @@ export const MetricSpecification: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, supportedTimeGrainTypes: { serializedName: "supportedTimeGrainTypes", @@ -176,34 +176,34 @@ export const MetricSpecification: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, internalMetricName: { serializedName: "internalMetricName", type: { - name: "String" - } + name: "String", + }, }, enableRegionalMdmAccount: { serializedName: "enableRegionalMdmAccount", type: { - name: "Boolean" - } + name: "Boolean", + }, }, sourceMdmAccount: { serializedName: "sourceMdmAccount", type: { - name: "String" - } + name: "String", + }, }, sourceMdmNamespace: { serializedName: "sourceMdmNamespace", type: { - name: "String" - } + name: "String", + }, }, dimensions: { serializedName: "dimensions", @@ -212,43 +212,43 @@ export const MetricSpecification: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Dimension" - } - } - } + className: "Dimension", + }, + }, + }, }, aggregationType: { serializedName: "aggregationType", type: { - name: "String" - } + name: "String", + }, }, fillGapWithZero: { serializedName: "fillGapWithZero", type: { - name: "Boolean" - } + name: "Boolean", + }, }, category: { serializedName: "category", type: { - name: "String" - } + name: "String", + }, }, resourceIdDimensionNameOverride: { serializedName: "resourceIdDimensionNameOverride", type: { - name: "String" - } + name: "String", + }, }, isInternal: { serializedName: "isInternal", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const Dimension: coreClient.CompositeMapper = { @@ -259,17 +259,17 @@ export const Dimension: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LogSpecification: coreClient.CompositeMapper = { @@ -280,17 +280,113 @@ export const LogSpecification: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const ErrorResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetail", + }, + }, + }, + }, +}; + +export const ErrorDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorDetail", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String", + }, + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String", + }, + }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail", + }, + }, + }, + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, +}; + +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + info: { + serializedName: "info", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const ResourceNameAvailabilityRequest: coreClient.CompositeMapper = { @@ -302,25 +398,25 @@ export const ResourceNameAvailabilityRequest: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, typeParam: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, resourceGroup: { serializedName: "resourceGroup", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CheckAvailabilityResponse: coreClient.CompositeMapper = { @@ -331,23 +427,23 @@ export const CheckAvailabilityResponse: coreClient.CompositeMapper = { isAvailable: { serializedName: "isAvailable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, reason: { serializedName: "reason", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const FilePathAvailabilityRequest: coreClient.CompositeMapper = { @@ -359,18 +455,18 @@ export const FilePathAvailabilityRequest: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, subnetId: { serializedName: "subnetId", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const QuotaAvailabilityRequest: coreClient.CompositeMapper = { @@ -382,25 +478,25 @@ export const QuotaAvailabilityRequest: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, typeParam: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, resourceGroup: { serializedName: "resourceGroup", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SubscriptionQuotaItemList: coreClient.CompositeMapper = { @@ -415,13 +511,13 @@ export const SubscriptionQuotaItemList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubscriptionQuotaItem" - } - } - } - } - } - } + className: "SubscriptionQuotaItem", + }, + }, + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -433,32 +529,32 @@ export const Resource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -469,68 +565,41 @@ export const SystemData: coreClient.CompositeMapper = { createdBy: { serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, createdByType: { serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, lastModifiedByType: { serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", type: { - name: "DateTime" - } - } - } - } -}; - -export const RegionInfosList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RegionInfosList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RegionInfoResource" - } - } - } + name: "DateTime", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } + }, + }, }; export const RegionInfo: coreClient.CompositeMapper = { @@ -541,8 +610,8 @@ export const RegionInfo: coreClient.CompositeMapper = { storageToNetworkProximity: { serializedName: "storageToNetworkProximity", type: { - name: "String" - } + name: "String", + }, }, availabilityZoneMappings: { serializedName: "availabilityZoneMappings", @@ -551,131 +620,36 @@ export const RegionInfo: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RegionInfoAvailabilityZoneMappingsItem" - } - } - } - } - } - } -}; - -export const RegionInfoAvailabilityZoneMappingsItem: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RegionInfoAvailabilityZoneMappingsItem", - modelProperties: { - availabilityZone: { - serializedName: "availabilityZone", - type: { - name: "String" - } - }, - isAvailable: { - serializedName: "isAvailable", - type: { - name: "Boolean" - } - } - } - } -}; - -export const ErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorDetail" - } - } - } - } -}; - -export const ErrorDetail: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorDetail", - modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String" - } - }, - message: { - serializedName: "message", - readOnly: true, - type: { - name: "String" - } - }, - target: { - serializedName: "target", - readOnly: true, - type: { - name: "String" - } - }, - details: { - serializedName: "details", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorDetail" - } - } - } + className: "RegionInfoAvailabilityZoneMappingsItem", + }, + }, + }, }, - additionalInfo: { - serializedName: "additionalInfo", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } + }, + }, }; -export const ErrorAdditionalInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorAdditionalInfo", - modelProperties: { - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } +export const RegionInfoAvailabilityZoneMappingsItem: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RegionInfoAvailabilityZoneMappingsItem", + modelProperties: { + availabilityZone: { + serializedName: "availabilityZone", + type: { + name: "String", + }, + }, + isAvailable: { + serializedName: "isAvailable", + type: { + name: "Boolean", + }, + }, }, - info: { - serializedName: "info", - readOnly: true, - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } -}; + }, + }; export const QueryNetworkSiblingSetRequest: coreClient.CompositeMapper = { type: { @@ -685,26 +659,26 @@ export const QueryNetworkSiblingSetRequest: coreClient.CompositeMapper = { networkSiblingSetId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "networkSiblingSetId", required: true, type: { - name: "String" - } + name: "String", + }, }, subnetId: { serializedName: "subnetId", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetworkSiblingSet: coreClient.CompositeMapper = { @@ -715,41 +689,41 @@ export const NetworkSiblingSet: coreClient.CompositeMapper = { networkSiblingSetId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "networkSiblingSetId", type: { - name: "String" - } + name: "String", + }, }, subnetId: { serializedName: "subnetId", type: { - name: "String" - } + name: "String", + }, }, networkSiblingSetStateId: { serializedName: "networkSiblingSetStateId", type: { - name: "String" - } + name: "String", + }, }, networkFeatures: { defaultValue: "Basic", serializedName: "networkFeatures", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, nicInfoList: { serializedName: "nicInfoList", @@ -758,13 +732,13 @@ export const NetworkSiblingSet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NicInfo" - } - } - } - } - } - } + className: "NicInfo", + }, + }, + }, + }, + }, + }, }; export const NicInfo: coreClient.CompositeMapper = { @@ -776,8 +750,8 @@ export const NicInfo: coreClient.CompositeMapper = { serializedName: "ipAddress", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, volumeResourceIds: { serializedName: "volumeResourceIds", @@ -785,13 +759,13 @@ export const NicInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const UpdateNetworkSiblingSetRequest: coreClient.CompositeMapper = { @@ -802,41 +776,41 @@ export const UpdateNetworkSiblingSetRequest: coreClient.CompositeMapper = { networkSiblingSetId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "networkSiblingSetId", required: true, type: { - name: "String" - } + name: "String", + }, }, subnetId: { serializedName: "subnetId", required: true, type: { - name: "String" - } + name: "String", + }, }, networkSiblingSetStateId: { serializedName: "networkSiblingSetStateId", required: true, type: { - name: "String" - } + name: "String", + }, }, networkFeatures: { defaultValue: "Basic", serializedName: "networkFeatures", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetAppAccountList: coreClient.CompositeMapper = { @@ -851,19 +825,19 @@ export const NetAppAccountList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NetAppAccount" - } - } - } + className: "NetAppAccount", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ActiveDirectory: coreClient.CompositeMapper = { @@ -875,73 +849,73 @@ export const ActiveDirectory: coreClient.CompositeMapper = { serializedName: "activeDirectoryId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, username: { serializedName: "username", type: { - name: "String" - } + name: "String", + }, }, password: { constraints: { - MaxLength: 64 + MaxLength: 64, }, serializedName: "password", type: { - name: "String" - } + name: "String", + }, }, domain: { serializedName: "domain", type: { - name: "String" - } + name: "String", + }, }, dns: { constraints: { Pattern: new RegExp( - "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$" - ) + "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$", + ), }, serializedName: "dns", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, statusDetails: { serializedName: "statusDetails", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, smbServerName: { serializedName: "smbServerName", type: { - name: "String" - } + name: "String", + }, }, organizationalUnit: { defaultValue: "CN=Computers", serializedName: "organizationalUnit", type: { - name: "String" - } + name: "String", + }, }, site: { serializedName: "site", type: { - name: "String" - } + name: "String", + }, }, backupOperators: { serializedName: "backupOperators", @@ -950,13 +924,13 @@ export const ActiveDirectory: coreClient.CompositeMapper = { element: { constraints: { MaxLength: 255, - MinLength: 1 + MinLength: 1, }, type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, administrators: { serializedName: "administrators", @@ -965,56 +939,56 @@ export const ActiveDirectory: coreClient.CompositeMapper = { element: { constraints: { MaxLength: 255, - MinLength: 1 + MinLength: 1, }, type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, kdcIP: { constraints: { Pattern: new RegExp( - "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$" - ) + "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$", + ), }, serializedName: "kdcIP", type: { - name: "String" - } + name: "String", + }, }, adName: { constraints: { MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "adName", type: { - name: "String" - } + name: "String", + }, }, serverRootCACertificate: { constraints: { MaxLength: 10240, - MinLength: 1 + MinLength: 1, }, serializedName: "serverRootCACertificate", type: { - name: "String" - } + name: "String", + }, }, aesEncryption: { serializedName: "aesEncryption", type: { - name: "Boolean" - } + name: "Boolean", + }, }, ldapSigning: { serializedName: "ldapSigning", type: { - name: "Boolean" - } + name: "Boolean", + }, }, securityOperators: { serializedName: "securityOperators", @@ -1023,53 +997,53 @@ export const ActiveDirectory: coreClient.CompositeMapper = { element: { constraints: { MaxLength: 255, - MinLength: 1 + MinLength: 1, }, type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, ldapOverTLS: { serializedName: "ldapOverTLS", type: { - name: "Boolean" - } + name: "Boolean", + }, }, allowLocalNfsUsersWithLdap: { serializedName: "allowLocalNfsUsersWithLdap", type: { - name: "Boolean" - } + name: "Boolean", + }, }, encryptDCConnections: { serializedName: "encryptDCConnections", type: { - name: "Boolean" - } + name: "Boolean", + }, }, ldapSearchScope: { serializedName: "ldapSearchScope", type: { name: "Composite", - className: "LdapSearchScopeOpt" - } + className: "LdapSearchScopeOpt", + }, }, preferredServersForLdapClient: { constraints: { Pattern: new RegExp( - "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))?)?$" + "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))?)?$", ), - MaxLength: 32 + MaxLength: 32, }, serializedName: "preferredServersForLdapClient", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LdapSearchScopeOpt: coreClient.CompositeMapper = { @@ -1079,33 +1053,33 @@ export const LdapSearchScopeOpt: coreClient.CompositeMapper = { modelProperties: { userDN: { constraints: { - MaxLength: 255 + MaxLength: 255, }, serializedName: "userDN", type: { - name: "String" - } + name: "String", + }, }, groupDN: { constraints: { - MaxLength: 255 + MaxLength: 255, }, serializedName: "groupDN", type: { - name: "String" - } + name: "String", + }, }, groupMembershipFilter: { constraints: { - MaxLength: 255 + MaxLength: 255, }, serializedName: "groupMembershipFilter", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AccountEncryption: coreClient.CompositeMapper = { @@ -1117,25 +1091,25 @@ export const AccountEncryption: coreClient.CompositeMapper = { defaultValue: "Microsoft.NetApp", serializedName: "keySource", type: { - name: "String" - } + name: "String", + }, }, keyVaultProperties: { serializedName: "keyVaultProperties", type: { name: "Composite", - className: "KeyVaultProperties" - } + className: "KeyVaultProperties", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "EncryptionIdentity" - } - } - } - } + className: "EncryptionIdentity", + }, + }, + }, + }, }; export const KeyVaultProperties: coreClient.CompositeMapper = { @@ -1146,47 +1120,47 @@ export const KeyVaultProperties: coreClient.CompositeMapper = { keyVaultId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "keyVaultId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, keyVaultUri: { serializedName: "keyVaultUri", required: true, type: { - name: "String" - } + name: "String", + }, }, keyName: { serializedName: "keyName", required: true, type: { - name: "String" - } + name: "String", + }, }, keyVaultResourceId: { serializedName: "keyVaultResourceId", required: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EncryptionIdentity: coreClient.CompositeMapper = { @@ -1198,17 +1172,17 @@ export const EncryptionIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, userAssignedIdentity: { serializedName: "userAssignedIdentity", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedServiceIdentity: coreClient.CompositeMapper = { @@ -1220,34 +1194,34 @@ export const ManagedServiceIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "Uuid" - } + name: "Uuid", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "Uuid" - } + name: "Uuid", + }, }, type: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", type: { name: "Dictionary", value: { - type: { name: "Composite", className: "UserAssignedIdentity" } - } - } - } - } - } + type: { name: "Composite", className: "UserAssignedIdentity" }, + }, + }, + }, + }, + }, }; export const UserAssignedIdentity: coreClient.CompositeMapper = { @@ -1259,18 +1233,18 @@ export const UserAssignedIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "Uuid" - } + name: "Uuid", + }, }, clientId: { serializedName: "clientId", readOnly: true, type: { - name: "Uuid" - } - } - } - } + name: "Uuid", + }, + }, + }, + }, }; export const NetAppAccountPatch: coreClient.CompositeMapper = { @@ -1281,50 +1255,50 @@ export const NetAppAccountPatch: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "ManagedServiceIdentity" - } + className: "ManagedServiceIdentity", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, activeDirectories: { serializedName: "properties.activeDirectories", @@ -1333,107 +1307,28 @@ export const NetAppAccountPatch: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ActiveDirectory" - } - } - } + className: "ActiveDirectory", + }, + }, + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "AccountEncryption" - } + className: "AccountEncryption", + }, }, disableShowmount: { serializedName: "properties.disableShowmount", readOnly: true, nullable: true, type: { - name: "Boolean" - } - }, - nfsV4IDDomain: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9.-]{0,253}[a-zA-Z0-9]$"), - MaxLength: 255 + name: "Boolean", }, - serializedName: "properties.nfsV4IDDomain", - nullable: true, - type: { - name: "String" - } - }, - isMultiAdEnabled: { - serializedName: "properties.isMultiAdEnabled", - readOnly: true, - nullable: true, - type: { - name: "Boolean" - } - } - } - } -}; - -export const CloudError: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudError", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "CloudErrorBody" - } - } - } - } -}; - -export const CloudErrorBody: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudErrorBody", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - } - } - } -}; - -export const EncryptionMigrationRequest: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EncryptionMigrationRequest", - modelProperties: { - virtualNetworkId: { - serializedName: "virtualNetworkId", - required: true, - type: { - name: "String" - } }, - privateEndpointId: { - serializedName: "privateEndpointId", - required: true, - type: { - name: "String" - } - } - } - } + }, + }, }; export const CapacityPoolList: coreClient.CompositeMapper = { @@ -1448,19 +1343,19 @@ export const CapacityPoolList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CapacityPool" - } - } - } + className: "CapacityPool", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CapacityPoolPatch: coreClient.CompositeMapper = { @@ -1471,58 +1366,58 @@ export const CapacityPoolPatch: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, size: { defaultValue: 4398046511104, serializedName: "properties.size", type: { - name: "Number" - } + name: "Number", + }, }, qosType: { serializedName: "properties.qosType", type: { - name: "String" - } + name: "String", + }, }, coolAccess: { serializedName: "properties.coolAccess", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const VolumeList: coreClient.CompositeMapper = { @@ -1537,19 +1432,19 @@ export const VolumeList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Volume" - } - } - } + className: "Volume", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumePropertiesExportPolicy: coreClient.CompositeMapper = { @@ -1564,13 +1459,13 @@ export const VolumePropertiesExportPolicy: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ExportPolicyRule" - } - } - } - } - } - } + className: "ExportPolicyRule", + }, + }, + }, + }, + }, + }, }; export const ExportPolicyRule: coreClient.CompositeMapper = { @@ -1581,103 +1476,103 @@ export const ExportPolicyRule: coreClient.CompositeMapper = { ruleIndex: { serializedName: "ruleIndex", type: { - name: "Number" - } + name: "Number", + }, }, unixReadOnly: { serializedName: "unixReadOnly", type: { - name: "Boolean" - } + name: "Boolean", + }, }, unixReadWrite: { serializedName: "unixReadWrite", type: { - name: "Boolean" - } + name: "Boolean", + }, }, kerberos5ReadOnly: { defaultValue: false, serializedName: "kerberos5ReadOnly", type: { - name: "Boolean" - } + name: "Boolean", + }, }, kerberos5ReadWrite: { defaultValue: false, serializedName: "kerberos5ReadWrite", type: { - name: "Boolean" - } + name: "Boolean", + }, }, kerberos5IReadOnly: { defaultValue: false, serializedName: "kerberos5iReadOnly", type: { - name: "Boolean" - } + name: "Boolean", + }, }, kerberos5IReadWrite: { defaultValue: false, serializedName: "kerberos5iReadWrite", type: { - name: "Boolean" - } + name: "Boolean", + }, }, kerberos5PReadOnly: { defaultValue: false, serializedName: "kerberos5pReadOnly", type: { - name: "Boolean" - } + name: "Boolean", + }, }, kerberos5PReadWrite: { defaultValue: false, serializedName: "kerberos5pReadWrite", type: { - name: "Boolean" - } + name: "Boolean", + }, }, cifs: { serializedName: "cifs", type: { - name: "Boolean" - } + name: "Boolean", + }, }, nfsv3: { serializedName: "nfsv3", type: { - name: "Boolean" - } + name: "Boolean", + }, }, nfsv41: { serializedName: "nfsv41", type: { - name: "Boolean" - } + name: "Boolean", + }, }, allowedClients: { serializedName: "allowedClients", type: { - name: "String" - } + name: "String", + }, }, hasRootAccess: { defaultValue: true, serializedName: "hasRootAccess", type: { - name: "Boolean" - } + name: "Boolean", + }, }, chownMode: { defaultValue: "Restricted", serializedName: "chownMode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MountTargetProperties: coreClient.CompositeMapper = { @@ -1688,46 +1583,46 @@ export const MountTargetProperties: coreClient.CompositeMapper = { mountTargetId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "mountTargetId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, fileSystemId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "fileSystemId", required: true, type: { - name: "String" - } + name: "String", + }, }, ipAddress: { serializedName: "ipAddress", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, smbServerFqdn: { serializedName: "smbServerFqdn", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumePropertiesDataProtection: coreClient.CompositeMapper = { @@ -1735,69 +1630,29 @@ export const VolumePropertiesDataProtection: coreClient.CompositeMapper = { name: "Composite", className: "VolumePropertiesDataProtection", modelProperties: { - backup: { - serializedName: "backup", - type: { - name: "Composite", - className: "VolumeBackupProperties" - } - }, replication: { serializedName: "replication", type: { name: "Composite", - className: "ReplicationObject" - } + className: "ReplicationObject", + }, }, snapshot: { serializedName: "snapshot", type: { name: "Composite", - className: "VolumeSnapshotProperties" - } + className: "VolumeSnapshotProperties", + }, }, volumeRelocation: { serializedName: "volumeRelocation", type: { name: "Composite", - className: "VolumeRelocationProperties" - } - } - } - } -}; - -export const VolumeBackupProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VolumeBackupProperties", - modelProperties: { - backupPolicyId: { - serializedName: "backupPolicyId", - type: { - name: "String" - } - }, - policyEnforced: { - serializedName: "policyEnforced", - type: { - name: "Boolean" - } - }, - backupEnabled: { - serializedName: "backupEnabled", - type: { - name: "Boolean" - } + className: "VolumeRelocationProperties", + }, }, - backupVaultId: { - serializedName: "backupVaultId", - type: { - name: "String" - } - } - } - } + }, + }, }; export const ReplicationObject: coreClient.CompositeMapper = { @@ -1809,73 +1664,36 @@ export const ReplicationObject: coreClient.CompositeMapper = { serializedName: "replicationId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, endpointType: { serializedName: "endpointType", type: { - name: "String" - } + name: "String", + }, }, replicationSchedule: { serializedName: "replicationSchedule", type: { - name: "String" - } + name: "String", + }, }, remoteVolumeResourceId: { serializedName: "remoteVolumeResourceId", required: true, type: { - name: "String" - } - }, - remotePath: { - serializedName: "remotePath", - type: { - name: "Composite", - className: "RemotePath" - } - }, - remoteVolumeRegion: { - serializedName: "remoteVolumeRegion", - type: { - name: "String" - } - } - } - } -}; - -export const RemotePath: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RemotePath", - modelProperties: { - externalHostName: { - serializedName: "externalHostName", - required: true, - type: { - name: "String" - } - }, - serverName: { - serializedName: "serverName", - required: true, - type: { - name: "String" - } + name: "String", + }, }, - volumeName: { - serializedName: "volumeName", - required: true, + remoteVolumeRegion: { + serializedName: "remoteVolumeRegion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumeSnapshotProperties: coreClient.CompositeMapper = { @@ -1886,11 +1704,11 @@ export const VolumeSnapshotProperties: coreClient.CompositeMapper = { snapshotPolicyId: { serializedName: "snapshotPolicyId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumeRelocationProperties: coreClient.CompositeMapper = { @@ -1901,18 +1719,18 @@ export const VolumeRelocationProperties: coreClient.CompositeMapper = { relocationRequested: { serializedName: "relocationRequested", type: { - name: "Boolean" - } + name: "Boolean", + }, }, readyToBeFinalized: { serializedName: "readyToBeFinalized", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const PlacementKeyValuePairs: coreClient.CompositeMapper = { @@ -1924,18 +1742,18 @@ export const PlacementKeyValuePairs: coreClient.CompositeMapper = { serializedName: "key", required: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumePatch: coreClient.CompositeMapper = { @@ -1946,150 +1764,150 @@ export const VolumePatch: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, serviceLevel: { defaultValue: "Premium", serializedName: "properties.serviceLevel", type: { - name: "String" - } + name: "String", + }, }, usageThreshold: { defaultValue: 107374182400, constraints: { InclusiveMaximum: 2638827906662400, - InclusiveMinimum: 107374182400 + InclusiveMinimum: 107374182400, }, serializedName: "properties.usageThreshold", type: { - name: "Number" - } + name: "Number", + }, }, exportPolicy: { serializedName: "properties.exportPolicy", type: { name: "Composite", - className: "VolumePatchPropertiesExportPolicy" - } + className: "VolumePatchPropertiesExportPolicy", + }, }, throughputMibps: { serializedName: "properties.throughputMibps", type: { - name: "Number" - } + name: "Number", + }, }, dataProtection: { serializedName: "properties.dataProtection", type: { name: "Composite", - className: "VolumePatchPropertiesDataProtection" - } + className: "VolumePatchPropertiesDataProtection", + }, }, isDefaultQuotaEnabled: { defaultValue: false, serializedName: "properties.isDefaultQuotaEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, defaultUserQuotaInKiBs: { defaultValue: 0, serializedName: "properties.defaultUserQuotaInKiBs", type: { - name: "Number" - } + name: "Number", + }, }, defaultGroupQuotaInKiBs: { defaultValue: 0, serializedName: "properties.defaultGroupQuotaInKiBs", type: { - name: "Number" - } + name: "Number", + }, }, unixPermissions: { constraints: { MaxLength: 4, - MinLength: 4 + MinLength: 4, }, serializedName: "properties.unixPermissions", nullable: true, type: { - name: "String" - } + name: "String", + }, }, coolAccess: { serializedName: "properties.coolAccess", type: { - name: "Boolean" - } + name: "Boolean", + }, }, coolnessPeriod: { constraints: { - InclusiveMaximum: 63, - InclusiveMinimum: 7 + InclusiveMaximum: 183, + InclusiveMinimum: 7, }, serializedName: "properties.coolnessPeriod", type: { - name: "Number" - } + name: "Number", + }, }, coolAccessRetrievalPolicy: { serializedName: "properties.coolAccessRetrievalPolicy", type: { - name: "String" - } + name: "String", + }, }, snapshotDirectoryVisible: { serializedName: "properties.snapshotDirectoryVisible", type: { - name: "Boolean" - } + name: "Boolean", + }, }, smbAccessBasedEnumeration: { serializedName: "properties.smbAccessBasedEnumeration", nullable: true, type: { - name: "String" - } + name: "String", + }, }, smbNonBrowsable: { serializedName: "properties.smbNonBrowsable", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumePatchPropertiesExportPolicy: coreClient.CompositeMapper = { @@ -2104,13 +1922,13 @@ export const VolumePatchPropertiesExportPolicy: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ExportPolicyRule" - } - } - } - } - } - } + className: "ExportPolicyRule", + }, + }, + }, + }, + }, + }, }; export const VolumePatchPropertiesDataProtection: coreClient.CompositeMapper = { @@ -2118,22 +1936,15 @@ export const VolumePatchPropertiesDataProtection: coreClient.CompositeMapper = { name: "Composite", className: "VolumePatchPropertiesDataProtection", modelProperties: { - backup: { - serializedName: "backup", - type: { - name: "Composite", - className: "VolumeBackupProperties" - } - }, snapshot: { serializedName: "snapshot", type: { name: "Composite", - className: "VolumeSnapshotProperties" - } - } - } - } + className: "VolumeSnapshotProperties", + }, + }, + }, + }, }; export const VolumeRevert: coreClient.CompositeMapper = { @@ -2144,11 +1955,11 @@ export const VolumeRevert: coreClient.CompositeMapper = { snapshotId: { serializedName: "snapshotId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BreakFileLocksRequest: coreClient.CompositeMapper = { @@ -2159,23 +1970,23 @@ export const BreakFileLocksRequest: coreClient.CompositeMapper = { clientIp: { constraints: { Pattern: new RegExp( - "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$" - ) + "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$", + ), }, serializedName: "clientIp", type: { - name: "String" - } + name: "String", + }, }, confirmRunningDisruptiveOperation: { defaultValue: false, serializedName: "confirmRunningDisruptiveOperation", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const GetGroupIdListForLdapUserRequest: coreClient.CompositeMapper = { @@ -2186,16 +1997,16 @@ export const GetGroupIdListForLdapUserRequest: coreClient.CompositeMapper = { username: { constraints: { MaxLength: 255, - MinLength: 1 + MinLength: 1, }, serializedName: "username", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GetGroupIdListForLdapUserResponse: coreClient.CompositeMapper = { @@ -2209,13 +2020,13 @@ export const GetGroupIdListForLdapUserResponse: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const BreakReplicationRequest: coreClient.CompositeMapper = { @@ -2226,11 +2037,11 @@ export const BreakReplicationRequest: coreClient.CompositeMapper = { forceBreakReplication: { serializedName: "forceBreakReplication", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ReestablishReplicationRequest: coreClient.CompositeMapper = { @@ -2241,11 +2052,11 @@ export const ReestablishReplicationRequest: coreClient.CompositeMapper = { sourceVolumeId: { serializedName: "sourceVolumeId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ReplicationStatus: coreClient.CompositeMapper = { @@ -2256,35 +2067,35 @@ export const ReplicationStatus: coreClient.CompositeMapper = { healthy: { serializedName: "healthy", type: { - name: "Boolean" - } + name: "Boolean", + }, }, relationshipStatus: { serializedName: "relationshipStatus", type: { - name: "String" - } + name: "String", + }, }, mirrorState: { serializedName: "mirrorState", type: { - name: "String" - } + name: "String", + }, }, totalProgress: { serializedName: "totalProgress", type: { - name: "String" - } + name: "String", + }, }, errorMessage: { serializedName: "errorMessage", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ListReplications: coreClient.CompositeMapper = { @@ -2299,13 +2110,13 @@ export const ListReplications: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Replication" - } - } - } - } - } - } + className: "Replication", + }, + }, + }, + }, + }, + }, }; export const Replication: coreClient.CompositeMapper = { @@ -2316,30 +2127,30 @@ export const Replication: coreClient.CompositeMapper = { endpointType: { serializedName: "endpointType", type: { - name: "String" - } + name: "String", + }, }, replicationSchedule: { serializedName: "replicationSchedule", type: { - name: "String" - } + name: "String", + }, }, remoteVolumeResourceId: { serializedName: "remoteVolumeResourceId", required: true, type: { - name: "String" - } + name: "String", + }, }, remoteVolumeRegion: { serializedName: "remoteVolumeRegion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AuthorizeRequest: coreClient.CompositeMapper = { @@ -2350,11 +2161,11 @@ export const AuthorizeRequest: coreClient.CompositeMapper = { remoteVolumeResourceId: { serializedName: "remoteVolumeResourceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PoolChangeRequest: coreClient.CompositeMapper = { @@ -2366,11 +2177,11 @@ export const PoolChangeRequest: coreClient.CompositeMapper = { serializedName: "newPoolResourceId", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RelocateVolumeRequest: coreClient.CompositeMapper = { @@ -2381,11 +2192,11 @@ export const RelocateVolumeRequest: coreClient.CompositeMapper = { creationToken: { serializedName: "creationToken", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SnapshotsList: coreClient.CompositeMapper = { @@ -2400,13 +2211,13 @@ export const SnapshotsList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Snapshot" - } - } - } - } - } - } + className: "Snapshot", + }, + }, + }, + }, + }, + }, }; export const SnapshotRestoreFiles: coreClient.CompositeMapper = { @@ -2417,7 +2228,7 @@ export const SnapshotRestoreFiles: coreClient.CompositeMapper = { filePaths: { constraints: { MinItems: 1, - MaxItems: 10 + MaxItems: 10, }, serializedName: "filePaths", required: true, @@ -2426,22 +2237,22 @@ export const SnapshotRestoreFiles: coreClient.CompositeMapper = { element: { constraints: { MaxLength: 1024, - MinLength: 1 + MinLength: 1, }, type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, destinationPath: { serializedName: "destinationPath", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SnapshotPoliciesList: coreClient.CompositeMapper = { @@ -2456,13 +2267,13 @@ export const SnapshotPoliciesList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SnapshotPolicy" - } - } - } - } - } - } + className: "SnapshotPolicy", + }, + }, + }, + }, + }, + }, }; export const HourlySchedule: coreClient.CompositeMapper = { @@ -2473,23 +2284,23 @@ export const HourlySchedule: coreClient.CompositeMapper = { snapshotsToKeep: { serializedName: "snapshotsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, minute: { serializedName: "minute", type: { - name: "Number" - } + name: "Number", + }, }, usedBytes: { serializedName: "usedBytes", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const DailySchedule: coreClient.CompositeMapper = { @@ -2500,29 +2311,29 @@ export const DailySchedule: coreClient.CompositeMapper = { snapshotsToKeep: { serializedName: "snapshotsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, hour: { serializedName: "hour", type: { - name: "Number" - } + name: "Number", + }, }, minute: { serializedName: "minute", type: { - name: "Number" - } + name: "Number", + }, }, usedBytes: { serializedName: "usedBytes", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const WeeklySchedule: coreClient.CompositeMapper = { @@ -2533,35 +2344,35 @@ export const WeeklySchedule: coreClient.CompositeMapper = { snapshotsToKeep: { serializedName: "snapshotsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, day: { serializedName: "day", type: { - name: "String" - } + name: "String", + }, }, hour: { serializedName: "hour", type: { - name: "Number" - } + name: "Number", + }, }, minute: { serializedName: "minute", type: { - name: "Number" - } + name: "Number", + }, }, usedBytes: { serializedName: "usedBytes", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const MonthlySchedule: coreClient.CompositeMapper = { @@ -2572,35 +2383,35 @@ export const MonthlySchedule: coreClient.CompositeMapper = { snapshotsToKeep: { serializedName: "snapshotsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, daysOfMonth: { serializedName: "daysOfMonth", type: { - name: "String" - } + name: "String", + }, }, hour: { serializedName: "hour", type: { - name: "Number" - } + name: "Number", + }, }, minute: { serializedName: "minute", type: { - name: "Number" - } + name: "Number", + }, }, usedBytes: { serializedName: "usedBytes", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const SnapshotPolicyPatch: coreClient.CompositeMapper = { @@ -2611,80 +2422,80 @@ export const SnapshotPolicyPatch: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, hourlySchedule: { serializedName: "properties.hourlySchedule", type: { name: "Composite", - className: "HourlySchedule" - } + className: "HourlySchedule", + }, }, dailySchedule: { serializedName: "properties.dailySchedule", type: { name: "Composite", - className: "DailySchedule" - } + className: "DailySchedule", + }, }, weeklySchedule: { serializedName: "properties.weeklySchedule", type: { name: "Composite", - className: "WeeklySchedule" - } + className: "WeeklySchedule", + }, }, monthlySchedule: { serializedName: "properties.monthlySchedule", type: { name: "Composite", - className: "MonthlySchedule" - } + className: "MonthlySchedule", + }, }, enabled: { serializedName: "properties.enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SnapshotPolicyVolumeList: coreClient.CompositeMapper = { @@ -2699,85 +2510,13 @@ export const SnapshotPolicyVolumeList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Volume" - } - } - } - } - } - } -}; - -export const BackupStatus: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupStatus", - modelProperties: { - healthy: { - serializedName: "healthy", - readOnly: true, - type: { - name: "Boolean" - } - }, - relationshipStatus: { - serializedName: "relationshipStatus", - readOnly: true, - type: { - name: "String" - } - }, - mirrorState: { - serializedName: "mirrorState", - readOnly: true, - type: { - name: "String" - } - }, - unhealthyReason: { - serializedName: "unhealthyReason", - readOnly: true, - type: { - name: "String" - } - }, - errorMessage: { - serializedName: "errorMessage", - readOnly: true, - type: { - name: "String" - } - }, - lastTransferSize: { - serializedName: "lastTransferSize", - readOnly: true, - type: { - name: "Number" - } - }, - lastTransferType: { - serializedName: "lastTransferType", - readOnly: true, - type: { - name: "String" - } - }, - totalTransferBytes: { - serializedName: "totalTransferBytes", - readOnly: true, - type: { - name: "Number" - } + className: "Volume", + }, + }, + }, }, - transferProgressBytes: { - serializedName: "transferProgressBytes", - readOnly: true, - type: { - name: "Number" - } - } - } - } + }, + }, }; export const RestoreStatus: coreClient.CompositeMapper = { @@ -2789,88 +2528,46 @@ export const RestoreStatus: coreClient.CompositeMapper = { serializedName: "healthy", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, relationshipStatus: { serializedName: "relationshipStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, mirrorState: { serializedName: "mirrorState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, unhealthyReason: { serializedName: "unhealthyReason", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, errorMessage: { serializedName: "errorMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, totalTransferBytes: { serializedName: "totalTransferBytes", readOnly: true, type: { - name: "Number" - } - } - } - } -}; - -export const BackupsList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupsList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Backup" - } - } - } + name: "Number", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const BackupPatch: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupPatch", - modelProperties: { - label: { - serializedName: "properties.label", - type: { - name: "String" - } - } - } - } + }, + }, }; export const BackupPoliciesList: coreClient.CompositeMapper = { @@ -2885,13 +2582,13 @@ export const BackupPoliciesList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BackupPolicy" - } - } - } - } - } - } + className: "BackupPolicy", + }, + }, + }, + }, + }, + }, }; export const VolumeBackups: coreClient.CompositeMapper = { @@ -2902,23 +2599,23 @@ export const VolumeBackups: coreClient.CompositeMapper = { volumeName: { serializedName: "volumeName", type: { - name: "String" - } + name: "String", + }, }, backupsCount: { serializedName: "backupsCount", type: { - name: "Number" - } + name: "Number", + }, }, policyEnabled: { serializedName: "policyEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const BackupPolicyPatch: coreClient.CompositeMapper = { @@ -2929,81 +2626,81 @@ export const BackupPolicyPatch: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, backupPolicyId: { serializedName: "properties.backupPolicyId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, dailyBackupsToKeep: { serializedName: "properties.dailyBackupsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, weeklyBackupsToKeep: { serializedName: "properties.weeklyBackupsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, monthlyBackupsToKeep: { serializedName: "properties.monthlyBackupsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, volumesAssigned: { serializedName: "properties.volumesAssigned", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, enabled: { serializedName: "properties.enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, volumeBackups: { serializedName: "properties.volumeBackups", @@ -3013,13 +2710,13 @@ export const BackupPolicyPatch: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VolumeBackups" - } - } - } - } - } - } + className: "VolumeBackups", + }, + }, + }, + }, + }, + }, }; export const VolumeQuotaRulesList: coreClient.CompositeMapper = { @@ -3034,13 +2731,13 @@ export const VolumeQuotaRulesList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VolumeQuotaRule" - } - } - } - } - } - } + className: "VolumeQuotaRule", + }, + }, + }, + }, + }, + }, }; export const VolumeQuotaRulePatch: coreClient.CompositeMapper = { @@ -3052,8 +2749,8 @@ export const VolumeQuotaRulePatch: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, provisioningState: { serializedName: "properties.provisioningState", @@ -3067,30 +2764,30 @@ export const VolumeQuotaRulePatch: coreClient.CompositeMapper = { "Deleting", "Moving", "Failed", - "Succeeded" - ] - } + "Succeeded", + ], + }, }, quotaSizeInKiBs: { serializedName: "properties.quotaSizeInKiBs", type: { - name: "Number" - } + name: "Number", + }, }, quotaType: { serializedName: "properties.quotaType", type: { - name: "String" - } + name: "String", + }, }, quotaTarget: { serializedName: "properties.quotaTarget", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumeGroupList: coreClient.CompositeMapper = { @@ -3105,13 +2802,13 @@ export const VolumeGroupList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VolumeGroup" - } - } - } - } - } - } + className: "VolumeGroup", + }, + }, + }, + }, + }, + }, }; export const VolumeGroup: coreClient.CompositeMapper = { @@ -3122,46 +2819,46 @@ export const VolumeGroup: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, groupMetaData: { serializedName: "properties.groupMetaData", type: { name: "Composite", - className: "VolumeGroupMetaData" - } - } - } - } + className: "VolumeGroupMetaData", + }, + }, + }, + }, }; export const VolumeGroupMetaData: coreClient.CompositeMapper = { @@ -3172,20 +2869,20 @@ export const VolumeGroupMetaData: coreClient.CompositeMapper = { groupDescription: { serializedName: "groupDescription", type: { - name: "String" - } + name: "String", + }, }, applicationType: { serializedName: "applicationType", type: { - name: "String" - } + name: "String", + }, }, applicationIdentifier: { serializedName: "applicationIdentifier", type: { - name: "String" - } + name: "String", + }, }, globalPlacementRules: { serializedName: "globalPlacementRules", @@ -3194,20 +2891,20 @@ export const VolumeGroupMetaData: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PlacementKeyValuePairs" - } - } - } + className: "PlacementKeyValuePairs", + }, + }, + }, }, volumesCount: { serializedName: "volumesCount", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const VolumeGroupDetails: coreClient.CompositeMapper = { @@ -3218,43 +2915,43 @@ export const VolumeGroupDetails: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, groupMetaData: { serializedName: "properties.groupMetaData", type: { name: "Composite", - className: "VolumeGroupMetaData" - } + className: "VolumeGroupMetaData", + }, }, volumes: { serializedName: "properties.volumes", @@ -3263,13 +2960,13 @@ export const VolumeGroupDetails: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VolumeGroupVolumeProperties" - } - } - } - } - } - } + className: "VolumeGroupVolumeProperties", + }, + }, + }, + }, + }, + }, }; export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { @@ -3281,28 +2978,28 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, zones: { serializedName: "zones", @@ -3311,65 +3008,65 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { element: { constraints: { MaxLength: 255, - MinLength: 1 + MinLength: 1, }, type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, fileSystemId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "properties.fileSystemId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, creationToken: { constraints: { Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9\\-]{0,79}$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.creationToken", required: true, type: { - name: "String" - } + name: "String", + }, }, serviceLevel: { defaultValue: "Premium", serializedName: "properties.serviceLevel", type: { - name: "String" - } + name: "String", + }, }, usageThreshold: { defaultValue: 107374182400, constraints: { InclusiveMaximum: 2638827906662400, - InclusiveMinimum: 107374182400 + InclusiveMinimum: 107374182400, }, serializedName: "properties.usageThreshold", required: true, type: { - name: "Number" - } + name: "Number", + }, }, exportPolicy: { serializedName: "properties.exportPolicy", type: { name: "Composite", - className: "VolumePropertiesExportPolicy" - } + className: "VolumePropertiesExportPolicy", + }, }, protocolTypes: { serializedName: "properties.protocolTypes", @@ -3377,79 +3074,79 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, snapshotId: { serializedName: "properties.snapshotId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, deleteBaseSnapshot: { serializedName: "properties.deleteBaseSnapshot", type: { - name: "Boolean" - } + name: "Boolean", + }, }, backupId: { serializedName: "properties.backupId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, baremetalTenantId: { serializedName: "properties.baremetalTenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, subnetId: { serializedName: "properties.subnetId", required: true, type: { - name: "String" - } + name: "String", + }, }, networkFeatures: { defaultValue: "Basic", serializedName: "properties.networkFeatures", type: { - name: "String" - } + name: "String", + }, }, networkSiblingSetId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "properties.networkSiblingSetId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, storageToNetworkProximity: { serializedName: "properties.storageToNetworkProximity", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, mountTargets: { serializedName: "properties.mountTargets", @@ -3459,168 +3156,168 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MountTargetProperties" - } - } - } + className: "MountTargetProperties", + }, + }, + }, }, volumeType: { serializedName: "properties.volumeType", type: { - name: "String" - } + name: "String", + }, }, dataProtection: { serializedName: "properties.dataProtection", type: { name: "Composite", - className: "VolumePropertiesDataProtection" - } + className: "VolumePropertiesDataProtection", + }, }, isRestoring: { serializedName: "properties.isRestoring", type: { - name: "Boolean" - } + name: "Boolean", + }, }, snapshotDirectoryVisible: { defaultValue: true, serializedName: "properties.snapshotDirectoryVisible", type: { - name: "Boolean" - } + name: "Boolean", + }, }, kerberosEnabled: { defaultValue: false, serializedName: "properties.kerberosEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, securityStyle: { defaultValue: "unix", serializedName: "properties.securityStyle", type: { - name: "String" - } + name: "String", + }, }, smbEncryption: { defaultValue: false, serializedName: "properties.smbEncryption", type: { - name: "Boolean" - } + name: "Boolean", + }, }, smbAccessBasedEnumeration: { serializedName: "properties.smbAccessBasedEnumeration", nullable: true, type: { - name: "String" - } + name: "String", + }, }, smbNonBrowsable: { serializedName: "properties.smbNonBrowsable", type: { - name: "String" - } + name: "String", + }, }, smbContinuouslyAvailable: { defaultValue: false, serializedName: "properties.smbContinuouslyAvailable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, throughputMibps: { serializedName: "properties.throughputMibps", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, actualThroughputMibps: { serializedName: "properties.actualThroughputMibps", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, encryptionKeySource: { defaultValue: "Microsoft.NetApp", serializedName: "properties.encryptionKeySource", type: { - name: "String" - } + name: "String", + }, }, keyVaultPrivateEndpointResourceId: { serializedName: "properties.keyVaultPrivateEndpointResourceId", type: { - name: "String" - } + name: "String", + }, }, ldapEnabled: { defaultValue: false, serializedName: "properties.ldapEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, coolAccess: { defaultValue: false, serializedName: "properties.coolAccess", type: { - name: "Boolean" - } + name: "Boolean", + }, }, coolnessPeriod: { constraints: { - InclusiveMaximum: 63, - InclusiveMinimum: 7 + InclusiveMaximum: 183, + InclusiveMinimum: 7, }, serializedName: "properties.coolnessPeriod", type: { - name: "Number" - } + name: "Number", + }, }, coolAccessRetrievalPolicy: { serializedName: "properties.coolAccessRetrievalPolicy", type: { - name: "String" - } + name: "String", + }, }, unixPermissions: { constraints: { MaxLength: 4, - MinLength: 4 + MinLength: 4, }, serializedName: "properties.unixPermissions", nullable: true, type: { - name: "String" - } + name: "String", + }, }, cloneProgress: { serializedName: "properties.cloneProgress", readOnly: true, nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, fileAccessLogs: { defaultValue: "Disabled", serializedName: "properties.fileAccessLogs", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, avsDataStore: { defaultValue: "Disabled", serializedName: "properties.avsDataStore", type: { - name: "String" - } + name: "String", + }, }, dataStoreResourceId: { serializedName: "properties.dataStoreResourceId", @@ -3629,77 +3326,77 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, isDefaultQuotaEnabled: { defaultValue: false, serializedName: "properties.isDefaultQuotaEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, defaultUserQuotaInKiBs: { defaultValue: 0, serializedName: "properties.defaultUserQuotaInKiBs", type: { - name: "Number" - } + name: "Number", + }, }, defaultGroupQuotaInKiBs: { defaultValue: 0, serializedName: "properties.defaultGroupQuotaInKiBs", type: { - name: "Number" - } + name: "Number", + }, }, maximumNumberOfFiles: { serializedName: "properties.maximumNumberOfFiles", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, volumeGroupName: { serializedName: "properties.volumeGroupName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, capacityPoolResourceId: { serializedName: "properties.capacityPoolResourceId", type: { - name: "String" - } + name: "String", + }, }, proximityPlacementGroup: { serializedName: "properties.proximityPlacementGroup", type: { - name: "String" - } + name: "String", + }, }, t2Network: { serializedName: "properties.t2Network", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, volumeSpecName: { serializedName: "properties.volumeSpecName", type: { - name: "String" - } + name: "String", + }, }, encrypted: { serializedName: "properties.encrypted", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, placementRules: { serializedName: "properties.placementRules", @@ -3708,51 +3405,43 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PlacementKeyValuePairs" - } - } - } + className: "PlacementKeyValuePairs", + }, + }, + }, }, enableSubvolumes: { defaultValue: "Disabled", serializedName: "properties.enableSubvolumes", type: { - name: "String" - } + name: "String", + }, }, provisionedAvailabilityZone: { serializedName: "properties.provisionedAvailabilityZone", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, isLargeVolume: { defaultValue: false, serializedName: "properties.isLargeVolume", type: { - name: "Boolean" - } + name: "Boolean", + }, }, originatingResourceId: { serializedName: "properties.originatingResourceId", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, - inheritedSizeInBytes: { - serializedName: "properties.inheritedSizeInBytes", - readOnly: true, - nullable: true, - type: { - name: "Number" - } - } - } - } + }, + }, }; export const SubvolumesList: coreClient.CompositeMapper = { @@ -3767,19 +3456,19 @@ export const SubvolumesList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubvolumeInfo" - } - } - } + className: "SubvolumeInfo", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SubvolumePatchRequest: coreClient.CompositeMapper = { @@ -3791,17 +3480,17 @@ export const SubvolumePatchRequest: coreClient.CompositeMapper = { serializedName: "properties.size", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, path: { serializedName: "properties.path", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SubvolumeModel: coreClient.CompositeMapper = { @@ -3813,189 +3502,85 @@ export const SubvolumeModel: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, path: { serializedName: "properties.path", type: { - name: "String" - } + name: "String", + }, }, parentPath: { serializedName: "properties.parentPath", type: { - name: "String" - } + name: "String", + }, }, size: { serializedName: "properties.size", type: { - name: "Number" - } + name: "Number", + }, }, bytesUsed: { serializedName: "properties.bytesUsed", type: { - name: "Number" - } + name: "Number", + }, }, permissions: { serializedName: "properties.permissions", type: { - name: "String" - } + name: "String", + }, }, creationTimeStamp: { serializedName: "properties.creationTimeStamp", type: { - name: "DateTime" - } + name: "DateTime", + }, }, accessedTimeStamp: { serializedName: "properties.accessedTimeStamp", type: { - name: "DateTime" - } + name: "DateTime", + }, }, modifiedTimeStamp: { serializedName: "properties.modifiedTimeStamp", type: { - name: "DateTime" - } + name: "DateTime", + }, }, changedTimeStamp: { serializedName: "properties.changedTimeStamp", type: { - name: "DateTime" - } + name: "DateTime", + }, }, provisioningState: { serializedName: "properties.provisioningState", type: { - name: "String" - } - } - } - } -}; - -export const BackupVaultsList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupVaultsList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BackupVault" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const BackupVaultPatch: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupVaultPatch", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const BackupRestoreFiles: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupRestoreFiles", - modelProperties: { - fileList: { - constraints: { - MinItems: 1, - MaxItems: 8 + name: "String", }, - serializedName: "fileList", - required: true, - type: { - name: "Sequence", - element: { - constraints: { - MaxLength: 1024, - MinLength: 1 - }, - type: { - name: "String" - } - } - } }, - restoreFilePath: { - constraints: { - Pattern: new RegExp("^\\/.*$") - }, - serializedName: "restoreFilePath", - type: { - name: "String" - } - }, - destinationVolumeId: { - serializedName: "destinationVolumeId", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const BackupsMigrationRequest: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupsMigrationRequest", - modelProperties: { - backupVaultId: { - serializedName: "backupVaultId", - required: true, - type: { - name: "String" - } - } - } - } + }, + }, }; export const ResourceIdentity: coreClient.CompositeMapper = { @@ -4007,24 +3592,24 @@ export const ResourceIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MountTarget: coreClient.CompositeMapper = { @@ -4036,80 +3621,80 @@ export const MountTarget: coreClient.CompositeMapper = { serializedName: "location", required: true, type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, mountTargetId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "properties.mountTargetId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, fileSystemId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "properties.fileSystemId", required: true, type: { - name: "String" - } + name: "String", + }, }, ipAddress: { serializedName: "properties.ipAddress", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, smbServerFqdn: { serializedName: "properties.smbServerFqdn", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SnapshotPolicyDetails: coreClient.CompositeMapper = { @@ -4120,80 +3705,117 @@ export const SnapshotPolicyDetails: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, hourlySchedule: { serializedName: "properties.hourlySchedule", type: { name: "Composite", - className: "HourlySchedule" - } + className: "HourlySchedule", + }, }, dailySchedule: { serializedName: "properties.dailySchedule", type: { name: "Composite", - className: "DailySchedule" - } + className: "DailySchedule", + }, }, weeklySchedule: { serializedName: "properties.weeklySchedule", type: { name: "Composite", - className: "WeeklySchedule" - } + className: "WeeklySchedule", + }, }, monthlySchedule: { serializedName: "properties.monthlySchedule", type: { name: "Composite", - className: "MonthlySchedule" - } + className: "MonthlySchedule", + }, }, enabled: { serializedName: "properties.enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const CloudError: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudError", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "CloudErrorBody", + }, + }, + }, + }, +}; + +export const CloudErrorBody: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudErrorBody", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + type: { + name: "String", + }, + }, + }, + }, }; export const ProxyResource: coreClient.CompositeMapper = { @@ -4201,9 +3823,9 @@ export const ProxyResource: coreClient.CompositeMapper = { name: "Composite", className: "ProxyResource", modelProperties: { - ...Resource.type.modelProperties - } - } + ...Resource.type.modelProperties, + }, + }, }; export const TrackedResource: coreClient.CompositeMapper = { @@ -4216,18 +3838,18 @@ export const TrackedResource: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, location: { serializedName: "location", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SubscriptionQuotaItem: coreClient.CompositeMapper = { @@ -4240,46 +3862,18 @@ export const SubscriptionQuotaItem: coreClient.CompositeMapper = { serializedName: "properties.current", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, default: { serializedName: "properties.default", readOnly: true, type: { - name: "Number" - } - } - } - } -}; - -export const RegionInfoResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RegionInfoResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - storageToNetworkProximity: { - serializedName: "properties.storageToNetworkProximity", - type: { - name: "String" - } + name: "Number", + }, }, - availabilityZoneMappings: { - serializedName: "properties.availabilityZoneMappings", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RegionInfoAvailabilityZoneMappingsItem" - } - } - } - } - } - } + }, + }, }; export const Snapshot: coreClient.CompositeMapper = { @@ -4292,131 +3886,39 @@ export const Snapshot: coreClient.CompositeMapper = { serializedName: "location", required: true, type: { - name: "String" - } - }, - snapshotId: { - constraints: { - Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" - ), - MaxLength: 36, - MinLength: 36 + name: "String", }, - serializedName: "properties.snapshotId", - readOnly: true, - type: { - name: "String" - } - }, - created: { - serializedName: "properties.created", - readOnly: true, - type: { - name: "DateTime" - } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const Backup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Backup", - modelProperties: { - ...ProxyResource.type.modelProperties, - backupId: { + snapshotId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 - }, - serializedName: "properties.backupId", - readOnly: true, - type: { - name: "String" - } - }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - size: { - serializedName: "properties.size", - readOnly: true, - type: { - name: "Number" - } - }, - label: { - serializedName: "properties.label", - type: { - name: "String" - } - }, - backupType: { - serializedName: "properties.backupType", + MinLength: 36, + }, + serializedName: "properties.snapshotId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - failureReason: { - serializedName: "properties.failureReason", + created: { + serializedName: "properties.created", readOnly: true, type: { - name: "String" - } - }, - volumeResourceId: { - serializedName: "properties.volumeResourceId", - required: true, - type: { - name: "String" - } - }, - useExistingSnapshot: { - defaultValue: false, - serializedName: "properties.useExistingSnapshot", - type: { - name: "Boolean" - } - }, - snapshotName: { - serializedName: "properties.snapshotName", - type: { - name: "String" - } + name: "DateTime", + }, }, - backupPolicyResourceId: { - serializedName: "properties.backupPolicyResourceId", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SubvolumeInfo: coreClient.CompositeMapper = { @@ -4428,32 +3930,32 @@ export const SubvolumeInfo: coreClient.CompositeMapper = { path: { serializedName: "properties.path", type: { - name: "String" - } + name: "String", + }, }, size: { serializedName: "properties.size", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, parentPath: { serializedName: "properties.parentPath", nullable: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetAppAccount: coreClient.CompositeMapper = { @@ -4466,22 +3968,22 @@ export const NetAppAccount: coreClient.CompositeMapper = { serializedName: "etag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "ManagedServiceIdentity" - } + className: "ManagedServiceIdentity", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, activeDirectories: { serializedName: "properties.activeDirectories", @@ -4490,47 +3992,28 @@ export const NetAppAccount: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ActiveDirectory" - } - } - } + className: "ActiveDirectory", + }, + }, + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "AccountEncryption" - } + className: "AccountEncryption", + }, }, disableShowmount: { serializedName: "properties.disableShowmount", readOnly: true, nullable: true, type: { - name: "Boolean" - } - }, - nfsV4IDDomain: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9.-]{0,253}[a-zA-Z0-9]$"), - MaxLength: 255 + name: "Boolean", }, - serializedName: "properties.nfsV4IDDomain", - nullable: true, - type: { - name: "String" - } }, - isMultiAdEnabled: { - serializedName: "properties.isMultiAdEnabled", - readOnly: true, - nullable: true, - type: { - name: "Boolean" - } - } - } - } + }, + }, }; export const CapacityPool: coreClient.CompositeMapper = { @@ -4543,83 +4026,83 @@ export const CapacityPool: coreClient.CompositeMapper = { serializedName: "etag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, poolId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "properties.poolId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, size: { defaultValue: 4398046511104, serializedName: "properties.size", required: true, type: { - name: "Number" - } + name: "Number", + }, }, serviceLevel: { defaultValue: "Premium", serializedName: "properties.serviceLevel", required: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, totalThroughputMibps: { serializedName: "properties.totalThroughputMibps", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, utilizedThroughputMibps: { serializedName: "properties.utilizedThroughputMibps", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, qosType: { serializedName: "properties.qosType", type: { - name: "String" - } + name: "String", + }, }, coolAccess: { defaultValue: false, serializedName: "properties.coolAccess", type: { - name: "Boolean" - } + name: "Boolean", + }, }, encryptionType: { defaultValue: "Single", serializedName: "properties.encryptionType", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Volume: coreClient.CompositeMapper = { @@ -4632,8 +4115,8 @@ export const Volume: coreClient.CompositeMapper = { serializedName: "etag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, zones: { serializedName: "zones", @@ -4642,65 +4125,65 @@ export const Volume: coreClient.CompositeMapper = { element: { constraints: { MaxLength: 255, - MinLength: 1 + MinLength: 1, }, type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, fileSystemId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "properties.fileSystemId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, creationToken: { constraints: { Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9\\-]{0,79}$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.creationToken", required: true, type: { - name: "String" - } + name: "String", + }, }, serviceLevel: { defaultValue: "Premium", serializedName: "properties.serviceLevel", type: { - name: "String" - } + name: "String", + }, }, usageThreshold: { defaultValue: 107374182400, constraints: { InclusiveMaximum: 2638827906662400, - InclusiveMinimum: 107374182400 + InclusiveMinimum: 107374182400, }, serializedName: "properties.usageThreshold", required: true, type: { - name: "Number" - } + name: "Number", + }, }, exportPolicy: { serializedName: "properties.exportPolicy", type: { name: "Composite", - className: "VolumePropertiesExportPolicy" - } + className: "VolumePropertiesExportPolicy", + }, }, protocolTypes: { serializedName: "properties.protocolTypes", @@ -4708,79 +4191,79 @@ export const Volume: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, snapshotId: { serializedName: "properties.snapshotId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, deleteBaseSnapshot: { serializedName: "properties.deleteBaseSnapshot", type: { - name: "Boolean" - } + name: "Boolean", + }, }, backupId: { serializedName: "properties.backupId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, baremetalTenantId: { serializedName: "properties.baremetalTenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, subnetId: { serializedName: "properties.subnetId", required: true, type: { - name: "String" - } + name: "String", + }, }, networkFeatures: { defaultValue: "Basic", serializedName: "properties.networkFeatures", type: { - name: "String" - } + name: "String", + }, }, networkSiblingSetId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "properties.networkSiblingSetId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, storageToNetworkProximity: { serializedName: "properties.storageToNetworkProximity", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, mountTargets: { serializedName: "properties.mountTargets", @@ -4790,168 +4273,168 @@ export const Volume: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MountTargetProperties" - } - } - } + className: "MountTargetProperties", + }, + }, + }, }, volumeType: { serializedName: "properties.volumeType", type: { - name: "String" - } + name: "String", + }, }, dataProtection: { serializedName: "properties.dataProtection", type: { name: "Composite", - className: "VolumePropertiesDataProtection" - } + className: "VolumePropertiesDataProtection", + }, }, isRestoring: { serializedName: "properties.isRestoring", type: { - name: "Boolean" - } + name: "Boolean", + }, }, snapshotDirectoryVisible: { defaultValue: true, serializedName: "properties.snapshotDirectoryVisible", type: { - name: "Boolean" - } + name: "Boolean", + }, }, kerberosEnabled: { defaultValue: false, serializedName: "properties.kerberosEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, securityStyle: { defaultValue: "unix", serializedName: "properties.securityStyle", type: { - name: "String" - } + name: "String", + }, }, smbEncryption: { defaultValue: false, serializedName: "properties.smbEncryption", type: { - name: "Boolean" - } + name: "Boolean", + }, }, smbAccessBasedEnumeration: { serializedName: "properties.smbAccessBasedEnumeration", nullable: true, type: { - name: "String" - } + name: "String", + }, }, smbNonBrowsable: { serializedName: "properties.smbNonBrowsable", type: { - name: "String" - } + name: "String", + }, }, smbContinuouslyAvailable: { defaultValue: false, serializedName: "properties.smbContinuouslyAvailable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, throughputMibps: { serializedName: "properties.throughputMibps", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, actualThroughputMibps: { serializedName: "properties.actualThroughputMibps", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, encryptionKeySource: { defaultValue: "Microsoft.NetApp", serializedName: "properties.encryptionKeySource", type: { - name: "String" - } + name: "String", + }, }, keyVaultPrivateEndpointResourceId: { serializedName: "properties.keyVaultPrivateEndpointResourceId", type: { - name: "String" - } + name: "String", + }, }, ldapEnabled: { defaultValue: false, serializedName: "properties.ldapEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, coolAccess: { defaultValue: false, serializedName: "properties.coolAccess", type: { - name: "Boolean" - } + name: "Boolean", + }, }, coolnessPeriod: { constraints: { - InclusiveMaximum: 63, - InclusiveMinimum: 7 + InclusiveMaximum: 183, + InclusiveMinimum: 7, }, serializedName: "properties.coolnessPeriod", type: { - name: "Number" - } + name: "Number", + }, }, coolAccessRetrievalPolicy: { serializedName: "properties.coolAccessRetrievalPolicy", type: { - name: "String" - } + name: "String", + }, }, unixPermissions: { constraints: { MaxLength: 4, - MinLength: 4 + MinLength: 4, }, serializedName: "properties.unixPermissions", nullable: true, type: { - name: "String" - } + name: "String", + }, }, cloneProgress: { serializedName: "properties.cloneProgress", readOnly: true, nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, fileAccessLogs: { defaultValue: "Disabled", serializedName: "properties.fileAccessLogs", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, avsDataStore: { defaultValue: "Disabled", serializedName: "properties.avsDataStore", type: { - name: "String" - } + name: "String", + }, }, dataStoreResourceId: { serializedName: "properties.dataStoreResourceId", @@ -4960,77 +4443,77 @@ export const Volume: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, isDefaultQuotaEnabled: { defaultValue: false, serializedName: "properties.isDefaultQuotaEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, defaultUserQuotaInKiBs: { defaultValue: 0, serializedName: "properties.defaultUserQuotaInKiBs", type: { - name: "Number" - } + name: "Number", + }, }, defaultGroupQuotaInKiBs: { defaultValue: 0, serializedName: "properties.defaultGroupQuotaInKiBs", type: { - name: "Number" - } + name: "Number", + }, }, maximumNumberOfFiles: { serializedName: "properties.maximumNumberOfFiles", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, volumeGroupName: { serializedName: "properties.volumeGroupName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, capacityPoolResourceId: { serializedName: "properties.capacityPoolResourceId", type: { - name: "String" - } + name: "String", + }, }, proximityPlacementGroup: { serializedName: "properties.proximityPlacementGroup", type: { - name: "String" - } + name: "String", + }, }, t2Network: { serializedName: "properties.t2Network", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, volumeSpecName: { serializedName: "properties.volumeSpecName", type: { - name: "String" - } + name: "String", + }, }, encrypted: { serializedName: "properties.encrypted", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, placementRules: { serializedName: "properties.placementRules", @@ -5039,51 +4522,43 @@ export const Volume: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PlacementKeyValuePairs" - } - } - } + className: "PlacementKeyValuePairs", + }, + }, + }, }, enableSubvolumes: { defaultValue: "Disabled", serializedName: "properties.enableSubvolumes", type: { - name: "String" - } + name: "String", + }, }, provisionedAvailabilityZone: { serializedName: "properties.provisionedAvailabilityZone", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, isLargeVolume: { defaultValue: false, serializedName: "properties.isLargeVolume", type: { - name: "Boolean" - } + name: "Boolean", + }, }, originatingResourceId: { serializedName: "properties.originatingResourceId", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, - inheritedSizeInBytes: { - serializedName: "properties.inheritedSizeInBytes", - readOnly: true, - nullable: true, - type: { - name: "Number" - } - } - } - } + }, + }, }; export const SnapshotPolicy: coreClient.CompositeMapper = { @@ -5096,52 +4571,52 @@ export const SnapshotPolicy: coreClient.CompositeMapper = { serializedName: "etag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hourlySchedule: { serializedName: "properties.hourlySchedule", type: { name: "Composite", - className: "HourlySchedule" - } + className: "HourlySchedule", + }, }, dailySchedule: { serializedName: "properties.dailySchedule", type: { name: "Composite", - className: "DailySchedule" - } + className: "DailySchedule", + }, }, weeklySchedule: { serializedName: "properties.weeklySchedule", type: { name: "Composite", - className: "WeeklySchedule" - } + className: "WeeklySchedule", + }, }, monthlySchedule: { serializedName: "properties.monthlySchedule", type: { name: "Composite", - className: "MonthlySchedule" - } + className: "MonthlySchedule", + }, }, enabled: { serializedName: "properties.enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BackupPolicy: coreClient.CompositeMapper = { @@ -5154,53 +4629,53 @@ export const BackupPolicy: coreClient.CompositeMapper = { serializedName: "etag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, backupPolicyId: { serializedName: "properties.backupPolicyId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, dailyBackupsToKeep: { serializedName: "properties.dailyBackupsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, weeklyBackupsToKeep: { serializedName: "properties.weeklyBackupsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, monthlyBackupsToKeep: { serializedName: "properties.monthlyBackupsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, volumesAssigned: { serializedName: "properties.volumesAssigned", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, enabled: { serializedName: "properties.enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, volumeBackups: { serializedName: "properties.volumeBackups", @@ -5210,13 +4685,13 @@ export const BackupPolicy: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VolumeBackups" - } - } - } - } - } - } + className: "VolumeBackups", + }, + }, + }, + }, + }, + }, }; export const VolumeQuotaRule: coreClient.CompositeMapper = { @@ -5237,93 +4712,63 @@ export const VolumeQuotaRule: coreClient.CompositeMapper = { "Deleting", "Moving", "Failed", - "Succeeded" - ] - } + "Succeeded", + ], + }, }, quotaSizeInKiBs: { serializedName: "properties.quotaSizeInKiBs", type: { - name: "Number" - } + name: "Number", + }, }, quotaType: { serializedName: "properties.quotaType", type: { - name: "String" - } + name: "String", + }, }, quotaTarget: { serializedName: "properties.quotaTarget", type: { - name: "String" - } - } - } - } -}; - -export const BackupVault: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupVault", - modelProperties: { - ...TrackedResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const NetAppResourceUpdateNetworkSiblingSetHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetAppResourceUpdateNetworkSiblingSetHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AccountsMigrateEncryptionKeyHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccountsMigrateEncryptionKeyHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; +export const NetAppResourceUpdateNetworkSiblingSetHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NetAppResourceUpdateNetworkSiblingSetHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; -export const VolumesPopulateAvailabilityZoneHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VolumesPopulateAvailabilityZoneHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; +export const VolumesPopulateAvailabilityZoneHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VolumesPopulateAvailabilityZoneHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; export const VolumesResetCifsPasswordHeaders: coreClient.CompositeMapper = { type: { @@ -5333,26 +4778,11 @@ export const VolumesResetCifsPasswordHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; - -export const VolumesSplitCloneFromParentHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VolumesSplitCloneFromParentHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumesBreakFileLocksHeaders: coreClient.CompositeMapper = { @@ -5363,144 +4793,25 @@ export const VolumesBreakFileLocksHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; - -export const VolumesListGetGroupIdListForLdapUserHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VolumesListGetGroupIdListForLdapUserHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const BackupsUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupsUpdateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const BackupsDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupsDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const AccountBackupsDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccountBackupsDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const BackupVaultsUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupVaultsUpdateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const BackupVaultsDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupVaultsDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const BackupsUnderBackupVaultRestoreFilesHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupsUnderBackupVaultRestoreFilesHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const BackupsUnderVolumeMigrateBackupsHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupsUnderVolumeMigrateBackupsHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const BackupsUnderAccountMigrateBackupsHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupsUnderAccountMigrateBackupsHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; +export const VolumesListGetGroupIdListForLdapUserHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VolumesListGetGroupIdListForLdapUserHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; diff --git a/sdk/netapp/arm-netapp/src/models/parameters.ts b/sdk/netapp/arm-netapp/src/models/parameters.ts index a29ceee75306..a856f1e92a54 100644 --- a/sdk/netapp/arm-netapp/src/models/parameters.ts +++ b/sdk/netapp/arm-netapp/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { ResourceNameAvailabilityRequest as ResourceNameAvailabilityRequestMapper, @@ -19,7 +19,6 @@ import { UpdateNetworkSiblingSetRequest as UpdateNetworkSiblingSetRequestMapper, NetAppAccount as NetAppAccountMapper, NetAppAccountPatch as NetAppAccountPatchMapper, - EncryptionMigrationRequest as EncryptionMigrationRequestMapper, CapacityPool as CapacityPoolMapper, CapacityPoolPatch as CapacityPoolPatchMapper, Volume as VolumeMapper, @@ -36,8 +35,6 @@ import { SnapshotRestoreFiles as SnapshotRestoreFilesMapper, SnapshotPolicy as SnapshotPolicyMapper, SnapshotPolicyPatch as SnapshotPolicyPatchMapper, - Backup as BackupMapper, - BackupPatch as BackupPatchMapper, BackupPolicy as BackupPolicyMapper, BackupPolicyPatch as BackupPolicyPatchMapper, VolumeQuotaRule as VolumeQuotaRuleMapper, @@ -45,10 +42,6 @@ import { VolumeGroupDetails as VolumeGroupDetailsMapper, SubvolumeInfo as SubvolumeInfoMapper, SubvolumePatchRequest as SubvolumePatchRequestMapper, - BackupVault as BackupVaultMapper, - BackupVaultPatch as BackupVaultPatchMapper, - BackupRestoreFiles as BackupRestoreFilesMapper, - BackupsMigrationRequest as BackupsMigrationRequestMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -58,9 +51,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -69,22 +62,22 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-05-01-preview", + defaultValue: "2023-07-01", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const contentType: OperationParameter = { @@ -94,24 +87,24 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const name: OperationParameter = { parameterPath: "name", - mapper: ResourceNameAvailabilityRequestMapper + mapper: ResourceNameAvailabilityRequestMapper, }; export const typeParam: OperationParameter = { parameterPath: "typeParam", - mapper: ResourceNameAvailabilityRequestMapper + mapper: ResourceNameAvailabilityRequestMapper, }; export const resourceGroup: OperationParameter = { parameterPath: "resourceGroup", - mapper: ResourceNameAvailabilityRequestMapper + mapper: ResourceNameAvailabilityRequestMapper, }; export const subscriptionId: OperationURLParameter = { @@ -120,78 +113,78 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "Uuid" - } - } + name: "Uuid", + }, + }, }; export const location: OperationURLParameter = { parameterPath: "location", mapper: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "location", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const name1: OperationParameter = { parameterPath: "name", - mapper: FilePathAvailabilityRequestMapper + mapper: FilePathAvailabilityRequestMapper, }; export const subnetId: OperationParameter = { parameterPath: "subnetId", - mapper: FilePathAvailabilityRequestMapper + mapper: FilePathAvailabilityRequestMapper, }; export const name2: OperationParameter = { parameterPath: "name", - mapper: QuotaAvailabilityRequestMapper + mapper: QuotaAvailabilityRequestMapper, }; export const typeParam1: OperationParameter = { parameterPath: "typeParam", - mapper: QuotaAvailabilityRequestMapper + mapper: QuotaAvailabilityRequestMapper, }; export const resourceGroup1: OperationParameter = { parameterPath: "resourceGroup", - mapper: QuotaAvailabilityRequestMapper + mapper: QuotaAvailabilityRequestMapper, }; export const networkSiblingSetId: OperationParameter = { parameterPath: "networkSiblingSetId", - mapper: QueryNetworkSiblingSetRequestMapper + mapper: QueryNetworkSiblingSetRequestMapper, }; export const subnetId1: OperationParameter = { parameterPath: "subnetId", - mapper: QueryNetworkSiblingSetRequestMapper + mapper: QueryNetworkSiblingSetRequestMapper, }; export const networkSiblingSetId1: OperationParameter = { parameterPath: "networkSiblingSetId", - mapper: UpdateNetworkSiblingSetRequestMapper + mapper: UpdateNetworkSiblingSetRequestMapper, }; export const subnetId2: OperationParameter = { parameterPath: "subnetId", - mapper: UpdateNetworkSiblingSetRequestMapper + mapper: UpdateNetworkSiblingSetRequestMapper, }; export const networkSiblingSetStateId: OperationParameter = { parameterPath: "networkSiblingSetStateId", - mapper: UpdateNetworkSiblingSetRequestMapper + mapper: UpdateNetworkSiblingSetRequestMapper, }; export const networkFeatures: OperationParameter = { parameterPath: "networkFeatures", - mapper: UpdateNetworkSiblingSetRequestMapper + mapper: UpdateNetworkSiblingSetRequestMapper, }; export const quotaLimitName: OperationURLParameter = { @@ -200,21 +193,9 @@ export const quotaLimitName: OperationURLParameter = { serializedName: "quotaLimitName", required: true, type: { - name: "String" - } - } -}; - -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true }; export const resourceGroupName: OperationURLParameter = { @@ -222,43 +203,50 @@ export const resourceGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const accountName: OperationURLParameter = { parameterPath: "accountName", mapper: { constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,127}$") + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,127}$"), }, serializedName: "accountName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const body5: OperationParameter = { parameterPath: "body", - mapper: NetAppAccountMapper + mapper: NetAppAccountMapper, }; export const body6: OperationParameter = { parameterPath: "body", - mapper: NetAppAccountPatchMapper + mapper: NetAppAccountPatchMapper, }; -export const body7: OperationParameter = { - parameterPath: ["options", "body"], - mapper: EncryptionMigrationRequestMapper +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + type: { + name: "String", + }, + }, + skipEncoding: true, }; export const poolName: OperationURLParameter = { @@ -267,24 +255,24 @@ export const poolName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$"), MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "poolName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const body8: OperationParameter = { +export const body7: OperationParameter = { parameterPath: "body", - mapper: CapacityPoolMapper + mapper: CapacityPoolMapper, }; -export const body9: OperationParameter = { +export const body8: OperationParameter = { parameterPath: "body", - mapper: CapacityPoolPatchMapper + mapper: CapacityPoolPatchMapper, }; export const volumeName: OperationURLParameter = { @@ -293,24 +281,24 @@ export const volumeName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9\\-_]{0,63}$"), MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "volumeName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const body10: OperationParameter = { +export const body9: OperationParameter = { parameterPath: "body", - mapper: VolumeMapper + mapper: VolumeMapper, }; -export const body11: OperationParameter = { +export const body10: OperationParameter = { parameterPath: "body", - mapper: VolumePatchMapper + mapper: VolumePatchMapper, }; export const forceDelete: OperationQueryParameter = { @@ -318,49 +306,49 @@ export const forceDelete: OperationQueryParameter = { mapper: { serializedName: "forceDelete", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; -export const body12: OperationParameter = { +export const body11: OperationParameter = { parameterPath: "body", - mapper: VolumeRevertMapper + mapper: VolumeRevertMapper, }; -export const body13: OperationParameter = { +export const body12: OperationParameter = { parameterPath: ["options", "body"], - mapper: BreakFileLocksRequestMapper + mapper: BreakFileLocksRequestMapper, }; -export const body14: OperationParameter = { +export const body13: OperationParameter = { parameterPath: "body", - mapper: GetGroupIdListForLdapUserRequestMapper + mapper: GetGroupIdListForLdapUserRequestMapper, }; -export const body15: OperationParameter = { +export const body14: OperationParameter = { parameterPath: ["options", "body"], - mapper: BreakReplicationRequestMapper + mapper: BreakReplicationRequestMapper, }; -export const body16: OperationParameter = { +export const body15: OperationParameter = { parameterPath: "body", - mapper: ReestablishReplicationRequestMapper + mapper: ReestablishReplicationRequestMapper, }; -export const body17: OperationParameter = { +export const body16: OperationParameter = { parameterPath: "body", - mapper: AuthorizeRequestMapper + mapper: AuthorizeRequestMapper, }; -export const body18: OperationParameter = { +export const body17: OperationParameter = { parameterPath: "body", - mapper: PoolChangeRequestMapper + mapper: PoolChangeRequestMapper, }; -export const body19: OperationParameter = { +export const body18: OperationParameter = { parameterPath: ["options", "body"], - mapper: RelocateVolumeRequestMapper + mapper: RelocateVolumeRequestMapper, }; export const snapshotName: OperationURLParameter = { @@ -369,31 +357,31 @@ export const snapshotName: OperationURLParameter = { serializedName: "snapshotName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const body20: OperationParameter = { +export const body19: OperationParameter = { parameterPath: "body", - mapper: SnapshotMapper + mapper: SnapshotMapper, }; -export const body21: OperationParameter = { +export const body20: OperationParameter = { parameterPath: "body", mapper: { serializedName: "body", required: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } + value: { type: { name: "any" } }, + }, + }, }; -export const body22: OperationParameter = { +export const body21: OperationParameter = { parameterPath: "body", - mapper: SnapshotRestoreFilesMapper + mapper: SnapshotRestoreFilesMapper, }; export const snapshotPolicyName: OperationURLParameter = { @@ -402,77 +390,19 @@ export const snapshotPolicyName: OperationURLParameter = { serializedName: "snapshotPolicyName", required: true, type: { - name: "String" - } - } -}; - -export const body23: OperationParameter = { - parameterPath: "body", - mapper: SnapshotPolicyMapper -}; - -export const body24: OperationParameter = { - parameterPath: "body", - mapper: SnapshotPolicyPatchMapper -}; - -export const backupVaultName: OperationURLParameter = { - parameterPath: "backupVaultName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$") + name: "String", }, - serializedName: "backupVaultName", - required: true, - type: { - name: "String" - } - } -}; - -export const filter: OperationQueryParameter = { - parameterPath: ["options", "filter"], - mapper: { - serializedName: "$filter", - type: { - name: "String" - } - } -}; - -export const backupName: OperationURLParameter = { - parameterPath: "backupName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,255}$") - }, - serializedName: "backupName", - required: true, - type: { - name: "String" - } - } + }, }; -export const body25: OperationParameter = { +export const body22: OperationParameter = { parameterPath: "body", - mapper: BackupMapper -}; - -export const body26: OperationParameter = { - parameterPath: ["options", "body"], - mapper: BackupPatchMapper + mapper: SnapshotPolicyMapper, }; -export const includeOnlyBackupsFromDeletedVolumes: OperationQueryParameter = { - parameterPath: ["options", "includeOnlyBackupsFromDeletedVolumes"], - mapper: { - serializedName: "includeOnlyBackupsFromDeletedVolumes", - type: { - name: "String" - } - } +export const body23: OperationParameter = { + parameterPath: "body", + mapper: SnapshotPolicyPatchMapper, }; export const backupPolicyName: OperationURLParameter = { @@ -481,19 +411,19 @@ export const backupPolicyName: OperationURLParameter = { serializedName: "backupPolicyName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const body27: OperationParameter = { +export const body24: OperationParameter = { parameterPath: "body", - mapper: BackupPolicyMapper + mapper: BackupPolicyMapper, }; -export const body28: OperationParameter = { +export const body25: OperationParameter = { parameterPath: "body", - mapper: BackupPolicyPatchMapper + mapper: BackupPolicyPatchMapper, }; export const volumeQuotaRuleName: OperationURLParameter = { @@ -502,19 +432,19 @@ export const volumeQuotaRuleName: OperationURLParameter = { serializedName: "volumeQuotaRuleName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const body29: OperationParameter = { +export const body26: OperationParameter = { parameterPath: "body", - mapper: VolumeQuotaRuleMapper + mapper: VolumeQuotaRuleMapper, }; -export const body30: OperationParameter = { +export const body27: OperationParameter = { parameterPath: "body", - mapper: VolumeQuotaRulePatchMapper + mapper: VolumeQuotaRulePatchMapper, }; export const volumeGroupName: OperationURLParameter = { @@ -523,19 +453,19 @@ export const volumeGroupName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$"), MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "volumeGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const body31: OperationParameter = { +export const body28: OperationParameter = { parameterPath: "body", - mapper: VolumeGroupDetailsMapper + mapper: VolumeGroupDetailsMapper, }; export const subvolumeName: OperationURLParameter = { @@ -544,42 +474,22 @@ export const subvolumeName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9\\-_]{0,63}$"), MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "subvolumeName", required: true, type: { - name: "String" - } - } -}; - -export const body32: OperationParameter = { - parameterPath: "body", - mapper: SubvolumeInfoMapper -}; - -export const body33: OperationParameter = { - parameterPath: "body", - mapper: SubvolumePatchRequestMapper -}; - -export const body34: OperationParameter = { - parameterPath: "body", - mapper: BackupVaultMapper -}; - -export const body35: OperationParameter = { - parameterPath: "body", - mapper: BackupVaultPatchMapper + name: "String", + }, + }, }; -export const body36: OperationParameter = { +export const body29: OperationParameter = { parameterPath: "body", - mapper: BackupRestoreFilesMapper + mapper: SubvolumeInfoMapper, }; -export const body37: OperationParameter = { +export const body30: OperationParameter = { parameterPath: "body", - mapper: BackupsMigrationRequestMapper + mapper: SubvolumePatchRequestMapper, }; diff --git a/sdk/netapp/arm-netapp/src/netAppManagementClient.ts b/sdk/netapp/arm-netapp/src/netAppManagementClient.ts index b89b42a3fb3d..1e1981b0c7c0 100644 --- a/sdk/netapp/arm-netapp/src/netAppManagementClient.ts +++ b/sdk/netapp/arm-netapp/src/netAppManagementClient.ts @@ -11,50 +11,38 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { OperationsImpl, NetAppResourceImpl, NetAppResourceQuotaLimitsImpl, - NetAppResourceRegionInfosImpl, AccountsImpl, PoolsImpl, VolumesImpl, SnapshotsImpl, SnapshotPoliciesImpl, BackupsImpl, - AccountBackupsImpl, BackupPoliciesImpl, VolumeQuotaRulesImpl, VolumeGroupsImpl, SubvolumesImpl, - BackupVaultsImpl, - BackupsUnderBackupVaultImpl, - BackupsUnderVolumeImpl, - BackupsUnderAccountImpl } from "./operations"; import { Operations, NetAppResource, NetAppResourceQuotaLimits, - NetAppResourceRegionInfos, Accounts, Pools, Volumes, Snapshots, SnapshotPolicies, Backups, - AccountBackups, BackupPolicies, VolumeQuotaRules, VolumeGroups, Subvolumes, - BackupVaults, - BackupsUnderBackupVault, - BackupsUnderVolume, - BackupsUnderAccount } from "./operationsInterfaces"; import { NetAppManagementClientOptionalParams } from "./models"; @@ -72,7 +60,7 @@ export class NetAppManagementClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: NetAppManagementClientOptionalParams + options?: NetAppManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -87,10 +75,10 @@ export class NetAppManagementClient extends coreClient.ServiceClient { } const defaults: NetAppManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-netapp/20.0.0-beta.2`; + const packageDetails = `azsdk-js-arm-netapp/20.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -100,20 +88,21 @@ export class NetAppManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -123,7 +112,7 @@ export class NetAppManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -133,9 +122,9 @@ export class NetAppManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -143,26 +132,20 @@ export class NetAppManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-05-01-preview"; + this.apiVersion = options.apiVersion || "2023-07-01"; this.operations = new OperationsImpl(this); this.netAppResource = new NetAppResourceImpl(this); this.netAppResourceQuotaLimits = new NetAppResourceQuotaLimitsImpl(this); - this.netAppResourceRegionInfos = new NetAppResourceRegionInfosImpl(this); this.accounts = new AccountsImpl(this); this.pools = new PoolsImpl(this); this.volumes = new VolumesImpl(this); this.snapshots = new SnapshotsImpl(this); this.snapshotPolicies = new SnapshotPoliciesImpl(this); this.backups = new BackupsImpl(this); - this.accountBackups = new AccountBackupsImpl(this); this.backupPolicies = new BackupPoliciesImpl(this); this.volumeQuotaRules = new VolumeQuotaRulesImpl(this); this.volumeGroups = new VolumeGroupsImpl(this); this.subvolumes = new SubvolumesImpl(this); - this.backupVaults = new BackupVaultsImpl(this); - this.backupsUnderBackupVault = new BackupsUnderBackupVaultImpl(this); - this.backupsUnderVolume = new BackupsUnderVolumeImpl(this); - this.backupsUnderAccount = new BackupsUnderAccountImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -175,7 +158,7 @@ export class NetAppManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -189,7 +172,7 @@ export class NetAppManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } @@ -197,20 +180,14 @@ export class NetAppManagementClient extends coreClient.ServiceClient { operations: Operations; netAppResource: NetAppResource; netAppResourceQuotaLimits: NetAppResourceQuotaLimits; - netAppResourceRegionInfos: NetAppResourceRegionInfos; accounts: Accounts; pools: Pools; volumes: Volumes; snapshots: Snapshots; snapshotPolicies: SnapshotPolicies; backups: Backups; - accountBackups: AccountBackups; backupPolicies: BackupPolicies; volumeQuotaRules: VolumeQuotaRules; volumeGroups: VolumeGroups; subvolumes: Subvolumes; - backupVaults: BackupVaults; - backupsUnderBackupVault: BackupsUnderBackupVault; - backupsUnderVolume: BackupsUnderVolume; - backupsUnderAccount: BackupsUnderAccount; } diff --git a/sdk/netapp/arm-netapp/src/operations/accountBackups.ts b/sdk/netapp/arm-netapp/src/operations/accountBackups.ts deleted file mode 100644 index 51f44bb6ae60..000000000000 --- a/sdk/netapp/arm-netapp/src/operations/accountBackups.ts +++ /dev/null @@ -1,324 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { AccountBackups } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { NetAppManagementClient } from "../netAppManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - Backup, - AccountBackupsListByNetAppAccountOptionalParams, - AccountBackupsListByNetAppAccountResponse, - AccountBackupsGetOptionalParams, - AccountBackupsGetResponse, - AccountBackupsDeleteOptionalParams, - AccountBackupsDeleteResponse -} from "../models"; - -/// -/** Class containing AccountBackups operations. */ -export class AccountBackupsImpl implements AccountBackups { - private readonly client: NetAppManagementClient; - - /** - * Initialize a new instance of the class AccountBackups class. - * @param client Reference to the service client - */ - constructor(client: NetAppManagementClient) { - this.client = client; - } - - /** - * List all Backups for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - public listByNetAppAccount( - resourceGroupName: string, - accountName: string, - options?: AccountBackupsListByNetAppAccountOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByNetAppAccountPagingAll( - resourceGroupName, - accountName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByNetAppAccountPagingPage( - resourceGroupName, - accountName, - options, - settings - ); - } - }; - } - - private async *listByNetAppAccountPagingPage( - resourceGroupName: string, - accountName: string, - options?: AccountBackupsListByNetAppAccountOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: AccountBackupsListByNetAppAccountResponse; - result = await this._listByNetAppAccount( - resourceGroupName, - accountName, - options - ); - yield result.value || []; - } - - private async *listByNetAppAccountPagingAll( - resourceGroupName: string, - accountName: string, - options?: AccountBackupsListByNetAppAccountOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByNetAppAccountPagingPage( - resourceGroupName, - accountName, - options - )) { - yield* page; - } - } - - /** - * List all Backups for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - private _listByNetAppAccount( - resourceGroupName: string, - accountName: string, - options?: AccountBackupsListByNetAppAccountOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, options }, - listByNetAppAccountOperationSpec - ); - } - - /** - * Gets the specified backup for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupName The name of the backup - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - backupName: string, - options?: AccountBackupsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, backupName, options }, - getOperationSpec - ); - } - - /** - * Delete the specified Backup for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupName The name of the backup - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - accountName: string, - backupName: string, - options?: AccountBackupsDeleteOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - AccountBackupsDeleteResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, backupName, options }, - spec: deleteOperationSpec - }); - const poller = await createHttpPoller< - AccountBackupsDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Delete the specified Backup for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupName The name of the backup - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - accountName: string, - backupName: string, - options?: AccountBackupsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - accountName, - backupName, - options - ); - return poller.pollUntilDone(); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByNetAppAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/accountBackups", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupsList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [ - Parameters.apiVersion, - Parameters.includeOnlyBackupsFromDeletedVolumes - ], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/accountBackups/{backupName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.Backup - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/accountBackups/{backupName}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.AccountBackupsDeleteHeaders - }, - 201: { - headersMapper: Mappers.AccountBackupsDeleteHeaders - }, - 202: { - headersMapper: Mappers.AccountBackupsDeleteHeaders - }, - 204: { - headersMapper: Mappers.AccountBackupsDeleteHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/netapp/arm-netapp/src/operations/accounts.ts b/sdk/netapp/arm-netapp/src/operations/accounts.ts index 2835df533976..b20b587b493b 100644 --- a/sdk/netapp/arm-netapp/src/operations/accounts.ts +++ b/sdk/netapp/arm-netapp/src/operations/accounts.ts @@ -16,7 +16,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -36,10 +36,8 @@ import { AccountsUpdateOptionalParams, AccountsUpdateResponse, AccountsRenewCredentialsOptionalParams, - AccountsMigrateEncryptionKeyOptionalParams, - AccountsMigrateEncryptionKeyResponse, AccountsListBySubscriptionNextResponse, - AccountsListNextResponse + AccountsListNextResponse, } from "../models"; /// @@ -60,7 +58,7 @@ export class AccountsImpl implements Accounts { * @param options The options parameters. */ public listBySubscription( - options?: AccountsListBySubscriptionOptionalParams + options?: AccountsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -75,13 +73,13 @@ export class AccountsImpl implements Accounts { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: AccountsListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AccountsListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -102,7 +100,7 @@ export class AccountsImpl implements Accounts { } private async *listBySubscriptionPagingAll( - options?: AccountsListBySubscriptionOptionalParams + options?: AccountsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -116,7 +114,7 @@ export class AccountsImpl implements Accounts { */ public list( resourceGroupName: string, - options?: AccountsListOptionalParams + options?: AccountsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, options); return { @@ -131,14 +129,14 @@ export class AccountsImpl implements Accounts { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(resourceGroupName, options, settings); - } + }, }; } private async *listPagingPage( resourceGroupName: string, options?: AccountsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AccountsListResponse; let continuationToken = settings?.continuationToken; @@ -153,7 +151,7 @@ export class AccountsImpl implements Accounts { result = await this._listNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -164,7 +162,7 @@ export class AccountsImpl implements Accounts { private async *listPagingAll( resourceGroupName: string, - options?: AccountsListOptionalParams + options?: AccountsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceGroupName, options)) { yield* page; @@ -176,11 +174,11 @@ export class AccountsImpl implements Accounts { * @param options The options parameters. */ private _listBySubscription( - options?: AccountsListBySubscriptionOptionalParams + options?: AccountsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -191,11 +189,11 @@ export class AccountsImpl implements Accounts { */ private _list( resourceGroupName: string, - options?: AccountsListOptionalParams + options?: AccountsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listOperationSpec + listOperationSpec, ); } @@ -208,11 +206,11 @@ export class AccountsImpl implements Accounts { get( resourceGroupName: string, accountName: string, - options?: AccountsGetOptionalParams + options?: AccountsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - getOperationSpec + getOperationSpec, ); } @@ -227,7 +225,7 @@ export class AccountsImpl implements Accounts { resourceGroupName: string, accountName: string, body: NetAppAccount, - options?: AccountsCreateOrUpdateOptionalParams + options?: AccountsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -236,21 +234,20 @@ export class AccountsImpl implements Accounts { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -259,8 +256,8 @@ export class AccountsImpl implements Accounts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -268,15 +265,15 @@ export class AccountsImpl implements Accounts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, body, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< AccountsCreateOrUpdateResponse, @@ -284,7 +281,7 @@ export class AccountsImpl implements Accounts { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -301,13 +298,13 @@ export class AccountsImpl implements Accounts { resourceGroupName: string, accountName: string, body: NetAppAccount, - options?: AccountsCreateOrUpdateOptionalParams + options?: AccountsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, accountName, body, - options + options, ); return poller.pollUntilDone(); } @@ -321,25 +318,24 @@ export class AccountsImpl implements Accounts { async beginDelete( resourceGroupName: string, accountName: string, - options?: AccountsDeleteOptionalParams + options?: AccountsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -348,8 +344,8 @@ export class AccountsImpl implements Accounts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -357,20 +353,20 @@ export class AccountsImpl implements Accounts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -385,12 +381,12 @@ export class AccountsImpl implements Accounts { async beginDeleteAndWait( resourceGroupName: string, accountName: string, - options?: AccountsDeleteOptionalParams + options?: AccountsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, - options + options, ); return poller.pollUntilDone(); } @@ -406,7 +402,7 @@ export class AccountsImpl implements Accounts { resourceGroupName: string, accountName: string, body: NetAppAccountPatch, - options?: AccountsUpdateOptionalParams + options?: AccountsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -415,21 +411,20 @@ export class AccountsImpl implements Accounts { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -438,8 +433,8 @@ export class AccountsImpl implements Accounts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -447,15 +442,15 @@ export class AccountsImpl implements Accounts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, body, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< AccountsUpdateResponse, @@ -463,7 +458,7 @@ export class AccountsImpl implements Accounts { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -480,13 +475,13 @@ export class AccountsImpl implements Accounts { resourceGroupName: string, accountName: string, body: NetAppAccountPatch, - options?: AccountsUpdateOptionalParams + options?: AccountsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, accountName, body, - options + options, ); return poller.pollUntilDone(); } @@ -502,25 +497,24 @@ export class AccountsImpl implements Accounts { async beginRenewCredentials( resourceGroupName: string, accountName: string, - options?: AccountsRenewCredentialsOptionalParams + options?: AccountsRenewCredentialsOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -529,8 +523,8 @@ export class AccountsImpl implements Accounts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -538,20 +532,20 @@ export class AccountsImpl implements Accounts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, options }, - spec: renewCredentialsOperationSpec + spec: renewCredentialsOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -568,107 +562,12 @@ export class AccountsImpl implements Accounts { async beginRenewCredentialsAndWait( resourceGroupName: string, accountName: string, - options?: AccountsRenewCredentialsOptionalParams + options?: AccountsRenewCredentialsOptionalParams, ): Promise { const poller = await this.beginRenewCredentials( resourceGroupName, accountName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure - * Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from - * another account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - async beginMigrateEncryptionKey( - resourceGroupName: string, - accountName: string, - options?: AccountsMigrateEncryptionKeyOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - AccountsMigrateEncryptionKeyResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, options }, - spec: migrateEncryptionKeyOperationSpec - }); - const poller = await createHttpPoller< - AccountsMigrateEncryptionKeyResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure - * Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from - * another account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - async beginMigrateEncryptionKeyAndWait( - resourceGroupName: string, - accountName: string, - options?: AccountsMigrateEncryptionKeyOptionalParams - ): Promise { - const poller = await this.beginMigrateEncryptionKey( - resourceGroupName, - accountName, - options + options, ); return poller.pollUntilDone(); } @@ -680,11 +579,11 @@ export class AccountsImpl implements Accounts { */ private _listBySubscriptionNext( nextLink: string, - options?: AccountsListBySubscriptionNextOptionalParams + options?: AccountsListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -697,11 +596,11 @@ export class AccountsImpl implements Accounts { private _listNext( resourceGroupName: string, nextLink: string, - options?: AccountsListNextOptionalParams + options?: AccountsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -709,77 +608,81 @@ export class AccountsImpl implements Accounts { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/netAppAccounts", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/netAppAccounts", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NetAppAccountList + bodyMapper: Mappers.NetAppAccountList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NetAppAccountList + bodyMapper: Mappers.NetAppAccountList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, }, 201: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, }, 202: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, }, 204: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, requestBody: Parameters.body5, queryParameters: [Parameters.apiVersion], @@ -787,46 +690,53 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, }, 201: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, }, 202: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, }, 204: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.body6, queryParameters: [Parameters.apiVersion], @@ -834,91 +744,70 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const renewCredentialsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/renewCredentials", - httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName - ], - serializer -}; -const migrateEncryptionKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/migrateEncryption", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/renewCredentials", httpMethod: "POST", responses: { - 200: { - headersMapper: Mappers.AccountsMigrateEncryptionKeyHeaders - }, - 201: { - headersMapper: Mappers.AccountsMigrateEncryptionKeyHeaders - }, - 202: { - headersMapper: Mappers.AccountsMigrateEncryptionKeyHeaders - }, - 204: { - headersMapper: Mappers.AccountsMigrateEncryptionKeyHeaders - }, + 200: {}, + 201: {}, + 202: {}, + 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.body7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer + headerParameters: [Parameters.accept], + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NetAppAccountList + bodyMapper: Mappers.NetAppAccountList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NetAppAccountList + bodyMapper: Mappers.NetAppAccountList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.nextLink, - Parameters.resourceGroupName ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts b/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts index 54ca7befbc1b..992e0e5c4fa1 100644 --- a/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts +++ b/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts @@ -15,7 +15,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,7 +29,7 @@ import { BackupPolicyPatch, BackupPoliciesUpdateOptionalParams, BackupPoliciesUpdateResponse, - BackupPoliciesDeleteOptionalParams + BackupPoliciesDeleteOptionalParams, } from "../models"; /// @@ -54,7 +54,7 @@ export class BackupPoliciesImpl implements BackupPolicies { public list( resourceGroupName: string, accountName: string, - options?: BackupPoliciesListOptionalParams + options?: BackupPoliciesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, accountName, options); return { @@ -72,9 +72,9 @@ export class BackupPoliciesImpl implements BackupPolicies { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -82,7 +82,7 @@ export class BackupPoliciesImpl implements BackupPolicies { resourceGroupName: string, accountName: string, options?: BackupPoliciesListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: BackupPoliciesListResponse; result = await this._list(resourceGroupName, accountName, options); @@ -92,12 +92,12 @@ export class BackupPoliciesImpl implements BackupPolicies { private async *listPagingAll( resourceGroupName: string, accountName: string, - options?: BackupPoliciesListOptionalParams + options?: BackupPoliciesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -112,11 +112,11 @@ export class BackupPoliciesImpl implements BackupPolicies { private _list( resourceGroupName: string, accountName: string, - options?: BackupPoliciesListOptionalParams + options?: BackupPoliciesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listOperationSpec + listOperationSpec, ); } @@ -131,11 +131,11 @@ export class BackupPoliciesImpl implements BackupPolicies { resourceGroupName: string, accountName: string, backupPolicyName: string, - options?: BackupPoliciesGetOptionalParams + options?: BackupPoliciesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, backupPolicyName, options }, - getOperationSpec + getOperationSpec, ); } @@ -152,7 +152,7 @@ export class BackupPoliciesImpl implements BackupPolicies { accountName: string, backupPolicyName: string, body: BackupPolicy, - options?: BackupPoliciesCreateOptionalParams + options?: BackupPoliciesCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -161,21 +161,20 @@ export class BackupPoliciesImpl implements BackupPolicies { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -184,8 +183,8 @@ export class BackupPoliciesImpl implements BackupPolicies { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -193,15 +192,15 @@ export class BackupPoliciesImpl implements BackupPolicies { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, backupPolicyName, body, options }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< BackupPoliciesCreateResponse, @@ -209,7 +208,7 @@ export class BackupPoliciesImpl implements BackupPolicies { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -228,14 +227,14 @@ export class BackupPoliciesImpl implements BackupPolicies { accountName: string, backupPolicyName: string, body: BackupPolicy, - options?: BackupPoliciesCreateOptionalParams + options?: BackupPoliciesCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, accountName, backupPolicyName, body, - options + options, ); return poller.pollUntilDone(); } @@ -253,7 +252,7 @@ export class BackupPoliciesImpl implements BackupPolicies { accountName: string, backupPolicyName: string, body: BackupPolicyPatch, - options?: BackupPoliciesUpdateOptionalParams + options?: BackupPoliciesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -262,21 +261,20 @@ export class BackupPoliciesImpl implements BackupPolicies { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -285,8 +283,8 @@ export class BackupPoliciesImpl implements BackupPolicies { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -294,15 +292,15 @@ export class BackupPoliciesImpl implements BackupPolicies { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, backupPolicyName, body, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< BackupPoliciesUpdateResponse, @@ -310,7 +308,7 @@ export class BackupPoliciesImpl implements BackupPolicies { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -329,14 +327,14 @@ export class BackupPoliciesImpl implements BackupPolicies { accountName: string, backupPolicyName: string, body: BackupPolicyPatch, - options?: BackupPoliciesUpdateOptionalParams + options?: BackupPoliciesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, accountName, backupPolicyName, body, - options + options, ); return poller.pollUntilDone(); } @@ -352,25 +350,24 @@ export class BackupPoliciesImpl implements BackupPolicies { resourceGroupName: string, accountName: string, backupPolicyName: string, - options?: BackupPoliciesDeleteOptionalParams + options?: BackupPoliciesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -379,8 +376,8 @@ export class BackupPoliciesImpl implements BackupPolicies { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -388,20 +385,20 @@ export class BackupPoliciesImpl implements BackupPolicies { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, backupPolicyName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -418,13 +415,13 @@ export class BackupPoliciesImpl implements BackupPolicies { resourceGroupName: string, accountName: string, backupPolicyName: string, - options?: BackupPoliciesDeleteOptionalParams + options?: BackupPoliciesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, backupPolicyName, - options + options, ); return poller.pollUntilDone(); } @@ -433,34 +430,36 @@ export class BackupPoliciesImpl implements BackupPolicies { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BackupPoliciesList + bodyMapper: Mappers.BackupPoliciesList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -468,87 +467,97 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.backupPolicyName + Parameters.backupPolicyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, }, 201: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, }, 202: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, }, 204: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body27, + requestBody: Parameters.body24, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.backupPolicyName + Parameters.backupPolicyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, }, 201: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, }, 202: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, }, 204: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body28, + requestBody: Parameters.body25, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.backupPolicyName + Parameters.backupPolicyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.backupPolicyName + Parameters.backupPolicyName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/backupVaults.ts b/sdk/netapp/arm-netapp/src/operations/backupVaults.ts deleted file mode 100644 index 84e178f89414..000000000000 --- a/sdk/netapp/arm-netapp/src/operations/backupVaults.ts +++ /dev/null @@ -1,657 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { BackupVaults } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { NetAppManagementClient } from "../netAppManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - BackupVault, - BackupVaultsListByNetAppAccountNextOptionalParams, - BackupVaultsListByNetAppAccountOptionalParams, - BackupVaultsListByNetAppAccountResponse, - BackupVaultsGetOptionalParams, - BackupVaultsGetResponse, - BackupVaultsCreateOrUpdateOptionalParams, - BackupVaultsCreateOrUpdateResponse, - BackupVaultPatch, - BackupVaultsUpdateOptionalParams, - BackupVaultsUpdateResponse, - BackupVaultsDeleteOptionalParams, - BackupVaultsDeleteResponse, - BackupVaultsListByNetAppAccountNextResponse -} from "../models"; - -/// -/** Class containing BackupVaults operations. */ -export class BackupVaultsImpl implements BackupVaults { - private readonly client: NetAppManagementClient; - - /** - * Initialize a new instance of the class BackupVaults class. - * @param client Reference to the service client - */ - constructor(client: NetAppManagementClient) { - this.client = client; - } - - /** - * List and describe all Backup Vaults in the NetApp account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - public listByNetAppAccount( - resourceGroupName: string, - accountName: string, - options?: BackupVaultsListByNetAppAccountOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByNetAppAccountPagingAll( - resourceGroupName, - accountName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByNetAppAccountPagingPage( - resourceGroupName, - accountName, - options, - settings - ); - } - }; - } - - private async *listByNetAppAccountPagingPage( - resourceGroupName: string, - accountName: string, - options?: BackupVaultsListByNetAppAccountOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: BackupVaultsListByNetAppAccountResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByNetAppAccount( - resourceGroupName, - accountName, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByNetAppAccountNext( - resourceGroupName, - accountName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByNetAppAccountPagingAll( - resourceGroupName: string, - accountName: string, - options?: BackupVaultsListByNetAppAccountOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByNetAppAccountPagingPage( - resourceGroupName, - accountName, - options - )) { - yield* page; - } - } - - /** - * List and describe all Backup Vaults in the NetApp account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - private _listByNetAppAccount( - resourceGroupName: string, - accountName: string, - options?: BackupVaultsListByNetAppAccountOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, options }, - listByNetAppAccountOperationSpec - ); - } - - /** - * Get the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupVaultsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, backupVaultName, options }, - getOperationSpec - ); - } - - /** - * Create or update the specified Backup Vault in the NetApp account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param body BackupVault object supplied in the body of the operation. - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - body: BackupVault, - options?: BackupVaultsCreateOrUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupVaultsCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, backupVaultName, body, options }, - spec: createOrUpdateOperationSpec - }); - const poller = await createHttpPoller< - BackupVaultsCreateOrUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Create or update the specified Backup Vault in the NetApp account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param body BackupVault object supplied in the body of the operation. - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - body: BackupVault, - options?: BackupVaultsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - accountName, - backupVaultName, - body, - options - ); - return poller.pollUntilDone(); - } - - /** - * Patch the specified NetApp Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param body Backup Vault object supplied in the body of the operation. - * @param options The options parameters. - */ - async beginUpdate( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - body: BackupVaultPatch, - options?: BackupVaultsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupVaultsUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, backupVaultName, body, options }, - spec: updateOperationSpec - }); - const poller = await createHttpPoller< - BackupVaultsUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Patch the specified NetApp Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param body Backup Vault object supplied in the body of the operation. - * @param options The options parameters. - */ - async beginUpdateAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - body: BackupVaultPatch, - options?: BackupVaultsUpdateOptionalParams - ): Promise { - const poller = await this.beginUpdate( - resourceGroupName, - accountName, - backupVaultName, - body, - options - ); - return poller.pollUntilDone(); - } - - /** - * Delete the specified Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupVaultsDeleteOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupVaultsDeleteResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, backupVaultName, options }, - spec: deleteOperationSpec - }); - const poller = await createHttpPoller< - BackupVaultsDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Delete the specified Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupVaultsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - accountName, - backupVaultName, - options - ); - return poller.pollUntilDone(); - } - - /** - * ListByNetAppAccountNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param nextLink The nextLink from the previous successful call to the ListByNetAppAccount method. - * @param options The options parameters. - */ - private _listByNetAppAccountNext( - resourceGroupName: string, - accountName: string, - nextLink: string, - options?: BackupVaultsListByNetAppAccountNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, nextLink, options }, - listByNetAppAccountNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByNetAppAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupVaultsList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupVault - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.BackupVault - }, - 201: { - bodyMapper: Mappers.BackupVault - }, - 202: { - bodyMapper: Mappers.BackupVault - }, - 204: { - bodyMapper: Mappers.BackupVault - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body34, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.BackupVault - }, - 201: { - bodyMapper: Mappers.BackupVault - }, - 202: { - bodyMapper: Mappers.BackupVault - }, - 204: { - bodyMapper: Mappers.BackupVault - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body35, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.BackupVaultsDeleteHeaders - }, - 201: { - headersMapper: Mappers.BackupVaultsDeleteHeaders - }, - 202: { - headersMapper: Mappers.BackupVaultsDeleteHeaders - }, - 204: { - headersMapper: Mappers.BackupVaultsDeleteHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByNetAppAccountNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupVaultsList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.resourceGroupName, - Parameters.accountName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/netapp/arm-netapp/src/operations/backups.ts b/sdk/netapp/arm-netapp/src/operations/backups.ts index f47ed8a1d63a..64e894b21396 100644 --- a/sdk/netapp/arm-netapp/src/operations/backups.ts +++ b/sdk/netapp/arm-netapp/src/operations/backups.ts @@ -6,40 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; import { Backups } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { NetAppManagementClient } from "../netAppManagementClient"; import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - Backup, - BackupsListByVaultNextOptionalParams, - BackupsListByVaultOptionalParams, - BackupsListByVaultResponse, - BackupsGetLatestStatusOptionalParams, - BackupsGetLatestStatusResponse, BackupsGetVolumeRestoreStatusOptionalParams, BackupsGetVolumeRestoreStatusResponse, - BackupsGetOptionalParams, - BackupsGetResponse, - BackupsCreateOptionalParams, - BackupsCreateResponse, - BackupsUpdateOptionalParams, - BackupsUpdateResponse, - BackupsDeleteOptionalParams, - BackupsDeleteResponse, - BackupsListByVaultNextResponse } from "../models"; -/// /** Class containing Backups operations. */ export class BackupsImpl implements Backups { private readonly client: NetAppManagementClient; @@ -52,120 +28,6 @@ export class BackupsImpl implements Backups { this.client = client; } - /** - * List all backups Under a Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - public listByVault( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupsListByVaultOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByVaultPagingAll( - resourceGroupName, - accountName, - backupVaultName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByVaultPagingPage( - resourceGroupName, - accountName, - backupVaultName, - options, - settings - ); - } - }; - } - - private async *listByVaultPagingPage( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupsListByVaultOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: BackupsListByVaultResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByVault( - resourceGroupName, - accountName, - backupVaultName, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByVaultNext( - resourceGroupName, - accountName, - backupVaultName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByVaultPagingAll( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupsListByVaultOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByVaultPagingPage( - resourceGroupName, - accountName, - backupVaultName, - options - )) { - yield* page; - } - } - - /** - * Get the latest status of the backup for a volume - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param options The options parameters. - */ - getLatestStatus( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: BackupsGetLatestStatusOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, poolName, volumeName, options }, - getLatestStatusOperationSpec - ); - } - /** * Get the status of the restore for a volume * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -179,620 +41,37 @@ export class BackupsImpl implements Backups { accountName: string, poolName: string, volumeName: string, - options?: BackupsGetVolumeRestoreStatusOptionalParams + options?: BackupsGetVolumeRestoreStatusOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, volumeName, options }, - getVolumeRestoreStatusOperationSpec - ); - } - - /** - * List all backups Under a Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - private _listByVault( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupsListByVaultOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, backupVaultName, options }, - listByVaultOperationSpec - ); - } - - /** - * Get the specified Backup under Backup Vault. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, backupVaultName, backupName, options }, - getOperationSpec - ); - } - - /** - * Create a backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param body Backup object supplied in the body of the operation. - * @param options The options parameters. - */ - async beginCreate( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - body: Backup, - options?: BackupsCreateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsCreateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - backupVaultName, - backupName, - body, - options - }, - spec: createOperationSpec - }); - const poller = await createHttpPoller< - BackupsCreateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Create a backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param body Backup object supplied in the body of the operation. - * @param options The options parameters. - */ - async beginCreateAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - body: Backup, - options?: BackupsCreateOptionalParams - ): Promise { - const poller = await this.beginCreate( - resourceGroupName, - accountName, - backupVaultName, - backupName, - body, - options - ); - return poller.pollUntilDone(); - } - - /** - * Patch a Backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - async beginUpdate( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - backupVaultName, - backupName, - options - }, - spec: updateOperationSpec - }); - const poller = await createHttpPoller< - BackupsUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Patch a Backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - async beginUpdateAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsUpdateOptionalParams - ): Promise { - const poller = await this.beginUpdate( - resourceGroupName, - accountName, - backupVaultName, - backupName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Delete a Backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsDeleteOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsDeleteResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - backupVaultName, - backupName, - options - }, - spec: deleteOperationSpec - }); - const poller = await createHttpPoller< - BackupsDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Delete a Backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - accountName, - backupVaultName, - backupName, - options - ); - return poller.pollUntilDone(); - } - - /** - * ListByVaultNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param nextLink The nextLink from the previous successful call to the ListByVault method. - * @param options The options parameters. - */ - private _listByVaultNext( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - nextLink: string, - options?: BackupsListByVaultNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, backupVaultName, nextLink, options }, - listByVaultNextOperationSpec + getVolumeRestoreStatusOperationSpec, ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getLatestStatusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/latestBackupStatus/current", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupStatus - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.poolName, - Parameters.volumeName - ], - headerParameters: [Parameters.accept], - serializer -}; const getVolumeRestoreStatusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/restoreStatus", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/restoreStatus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestoreStatus - }, - default: {} - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.poolName, - Parameters.volumeName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByVaultOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupsList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion, Parameters.filter], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.Backup - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName, - Parameters.backupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.Backup - }, - 201: { - bodyMapper: Mappers.Backup - }, - 202: { - bodyMapper: Mappers.Backup - }, - 204: { - bodyMapper: Mappers.Backup + bodyMapper: Mappers.RestoreStatus, }, default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body25, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName, - Parameters.backupName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.Backup - }, - 201: { - bodyMapper: Mappers.Backup - }, - 202: { - bodyMapper: Mappers.Backup - }, - 204: { - bodyMapper: Mappers.Backup + bodyMapper: Mappers.ErrorResponse, }, - default: { - bodyMapper: Mappers.ErrorResponse - } }, - requestBody: Parameters.body26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.backupVaultName, - Parameters.backupName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.BackupsDeleteHeaders - }, - 201: { - headersMapper: Mappers.BackupsDeleteHeaders - }, - 202: { - headersMapper: Mappers.BackupsDeleteHeaders - }, - 204: { - headersMapper: Mappers.BackupsDeleteHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName, - Parameters.backupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByVaultNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupsList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName + Parameters.poolName, + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/backupsUnderAccount.ts b/sdk/netapp/arm-netapp/src/operations/backupsUnderAccount.ts deleted file mode 100644 index 526ec4637d66..000000000000 --- a/sdk/netapp/arm-netapp/src/operations/backupsUnderAccount.ts +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { BackupsUnderAccount } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { NetAppManagementClient } from "../netAppManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - BackupsMigrationRequest, - BackupsUnderAccountMigrateBackupsOptionalParams, - BackupsUnderAccountMigrateBackupsResponse -} from "../models"; - -/** Class containing BackupsUnderAccount operations. */ -export class BackupsUnderAccountImpl implements BackupsUnderAccount { - private readonly client: NetAppManagementClient; - - /** - * Initialize a new instance of the class BackupsUnderAccount class. - * @param client Reference to the service client - */ - constructor(client: NetAppManagementClient) { - this.client = client; - } - - /** - * Migrate the backups under a NetApp account to backup vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param body Migrate backups under an account payload supplied in the body of the operation. - * @param options The options parameters. - */ - async beginMigrateBackups( - resourceGroupName: string, - accountName: string, - body: BackupsMigrationRequest, - options?: BackupsUnderAccountMigrateBackupsOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUnderAccountMigrateBackupsResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, body, options }, - spec: migrateBackupsOperationSpec - }); - const poller = await createHttpPoller< - BackupsUnderAccountMigrateBackupsResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Migrate the backups under a NetApp account to backup vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param body Migrate backups under an account payload supplied in the body of the operation. - * @param options The options parameters. - */ - async beginMigrateBackupsAndWait( - resourceGroupName: string, - accountName: string, - body: BackupsMigrationRequest, - options?: BackupsUnderAccountMigrateBackupsOptionalParams - ): Promise { - const poller = await this.beginMigrateBackups( - resourceGroupName, - accountName, - body, - options - ); - return poller.pollUntilDone(); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const migrateBackupsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/migrateBackups", - httpMethod: "POST", - responses: { - 200: { - headersMapper: Mappers.BackupsUnderAccountMigrateBackupsHeaders - }, - 201: { - headersMapper: Mappers.BackupsUnderAccountMigrateBackupsHeaders - }, - 202: { - headersMapper: Mappers.BackupsUnderAccountMigrateBackupsHeaders - }, - 204: { - headersMapper: Mappers.BackupsUnderAccountMigrateBackupsHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body37, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; diff --git a/sdk/netapp/arm-netapp/src/operations/backupsUnderBackupVault.ts b/sdk/netapp/arm-netapp/src/operations/backupsUnderBackupVault.ts deleted file mode 100644 index 5a72ba838517..000000000000 --- a/sdk/netapp/arm-netapp/src/operations/backupsUnderBackupVault.ts +++ /dev/null @@ -1,188 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { BackupsUnderBackupVault } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { NetAppManagementClient } from "../netAppManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - BackupRestoreFiles, - BackupsUnderBackupVaultRestoreFilesOptionalParams, - BackupsUnderBackupVaultRestoreFilesResponse -} from "../models"; - -/** Class containing BackupsUnderBackupVault operations. */ -export class BackupsUnderBackupVaultImpl implements BackupsUnderBackupVault { - private readonly client: NetAppManagementClient; - - /** - * Initialize a new instance of the class BackupsUnderBackupVault class. - * @param client Reference to the service client - */ - constructor(client: NetAppManagementClient) { - this.client = client; - } - - /** - * Restore the specified files from the specified backup to the active filesystem - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param body Restore payload supplied in the body of the operation. - * @param options The options parameters. - */ - async beginRestoreFiles( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - body: BackupRestoreFiles, - options?: BackupsUnderBackupVaultRestoreFilesOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUnderBackupVaultRestoreFilesResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - backupVaultName, - backupName, - body, - options - }, - spec: restoreFilesOperationSpec - }); - const poller = await createHttpPoller< - BackupsUnderBackupVaultRestoreFilesResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Restore the specified files from the specified backup to the active filesystem - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param body Restore payload supplied in the body of the operation. - * @param options The options parameters. - */ - async beginRestoreFilesAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - body: BackupRestoreFiles, - options?: BackupsUnderBackupVaultRestoreFilesOptionalParams - ): Promise { - const poller = await this.beginRestoreFiles( - resourceGroupName, - accountName, - backupVaultName, - backupName, - body, - options - ); - return poller.pollUntilDone(); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const restoreFilesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}/restoreFiles", - httpMethod: "POST", - responses: { - 200: { - headersMapper: Mappers.BackupsUnderBackupVaultRestoreFilesHeaders - }, - 201: { - headersMapper: Mappers.BackupsUnderBackupVaultRestoreFilesHeaders - }, - 202: { - headersMapper: Mappers.BackupsUnderBackupVaultRestoreFilesHeaders - }, - 204: { - headersMapper: Mappers.BackupsUnderBackupVaultRestoreFilesHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body36, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName, - Parameters.backupName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; diff --git a/sdk/netapp/arm-netapp/src/operations/backupsUnderVolume.ts b/sdk/netapp/arm-netapp/src/operations/backupsUnderVolume.ts deleted file mode 100644 index 977c95387438..000000000000 --- a/sdk/netapp/arm-netapp/src/operations/backupsUnderVolume.ts +++ /dev/null @@ -1,188 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { BackupsUnderVolume } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { NetAppManagementClient } from "../netAppManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - BackupsMigrationRequest, - BackupsUnderVolumeMigrateBackupsOptionalParams, - BackupsUnderVolumeMigrateBackupsResponse -} from "../models"; - -/** Class containing BackupsUnderVolume operations. */ -export class BackupsUnderVolumeImpl implements BackupsUnderVolume { - private readonly client: NetAppManagementClient; - - /** - * Initialize a new instance of the class BackupsUnderVolume class. - * @param client Reference to the service client - */ - constructor(client: NetAppManagementClient) { - this.client = client; - } - - /** - * Migrate the backups under volume to backup vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param body Migrate backups under volume payload supplied in the body of the operation. - * @param options The options parameters. - */ - async beginMigrateBackups( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - body: BackupsMigrationRequest, - options?: BackupsUnderVolumeMigrateBackupsOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUnderVolumeMigrateBackupsResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - poolName, - volumeName, - body, - options - }, - spec: migrateBackupsOperationSpec - }); - const poller = await createHttpPoller< - BackupsUnderVolumeMigrateBackupsResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Migrate the backups under volume to backup vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param body Migrate backups under volume payload supplied in the body of the operation. - * @param options The options parameters. - */ - async beginMigrateBackupsAndWait( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - body: BackupsMigrationRequest, - options?: BackupsUnderVolumeMigrateBackupsOptionalParams - ): Promise { - const poller = await this.beginMigrateBackups( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - options - ); - return poller.pollUntilDone(); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const migrateBackupsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/migrateBackups", - httpMethod: "POST", - responses: { - 200: { - headersMapper: Mappers.BackupsUnderVolumeMigrateBackupsHeaders - }, - 201: { - headersMapper: Mappers.BackupsUnderVolumeMigrateBackupsHeaders - }, - 202: { - headersMapper: Mappers.BackupsUnderVolumeMigrateBackupsHeaders - }, - 204: { - headersMapper: Mappers.BackupsUnderVolumeMigrateBackupsHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body37, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.poolName, - Parameters.volumeName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; diff --git a/sdk/netapp/arm-netapp/src/operations/index.ts b/sdk/netapp/arm-netapp/src/operations/index.ts index 85ac01dc9a6e..3452b163b6da 100644 --- a/sdk/netapp/arm-netapp/src/operations/index.ts +++ b/sdk/netapp/arm-netapp/src/operations/index.ts @@ -9,19 +9,13 @@ export * from "./operations"; export * from "./netAppResource"; export * from "./netAppResourceQuotaLimits"; -export * from "./netAppResourceRegionInfos"; export * from "./accounts"; export * from "./pools"; export * from "./volumes"; export * from "./snapshots"; export * from "./snapshotPolicies"; export * from "./backups"; -export * from "./accountBackups"; export * from "./backupPolicies"; export * from "./volumeQuotaRules"; export * from "./volumeGroups"; export * from "./subvolumes"; -export * from "./backupVaults"; -export * from "./backupsUnderBackupVault"; -export * from "./backupsUnderVolume"; -export * from "./backupsUnderAccount"; diff --git a/sdk/netapp/arm-netapp/src/operations/netAppResource.ts b/sdk/netapp/arm-netapp/src/operations/netAppResource.ts index 2f7f08795a07..9761eff122b5 100644 --- a/sdk/netapp/arm-netapp/src/operations/netAppResource.ts +++ b/sdk/netapp/arm-netapp/src/operations/netAppResource.ts @@ -14,7 +14,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,7 +32,7 @@ import { NetAppResourceQueryNetworkSiblingSetResponse, NetworkFeatures, NetAppResourceUpdateNetworkSiblingSetOptionalParams, - NetAppResourceUpdateNetworkSiblingSetResponse + NetAppResourceUpdateNetworkSiblingSetResponse, } from "../models"; /** Class containing NetAppResource operations. */ @@ -60,11 +60,11 @@ export class NetAppResourceImpl implements NetAppResource { name: string, typeParam: CheckNameResourceTypes, resourceGroup: string, - options?: NetAppResourceCheckNameAvailabilityOptionalParams + options?: NetAppResourceCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, name, typeParam, resourceGroup, options }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, ); } @@ -80,11 +80,11 @@ export class NetAppResourceImpl implements NetAppResource { location: string, name: string, subnetId: string, - options?: NetAppResourceCheckFilePathAvailabilityOptionalParams + options?: NetAppResourceCheckFilePathAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, name, subnetId, options }, - checkFilePathAvailabilityOperationSpec + checkFilePathAvailabilityOperationSpec, ); } @@ -101,11 +101,11 @@ export class NetAppResourceImpl implements NetAppResource { name: string, typeParam: CheckQuotaNameResourceTypes, resourceGroup: string, - options?: NetAppResourceCheckQuotaAvailabilityOptionalParams + options?: NetAppResourceCheckQuotaAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, name, typeParam, resourceGroup, options }, - checkQuotaAvailabilityOperationSpec + checkQuotaAvailabilityOperationSpec, ); } @@ -116,11 +116,11 @@ export class NetAppResourceImpl implements NetAppResource { */ queryRegionInfo( location: string, - options?: NetAppResourceQueryRegionInfoOptionalParams + options?: NetAppResourceQueryRegionInfoOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - queryRegionInfoOperationSpec + queryRegionInfoOperationSpec, ); } @@ -138,11 +138,11 @@ export class NetAppResourceImpl implements NetAppResource { location: string, networkSiblingSetId: string, subnetId: string, - options?: NetAppResourceQueryNetworkSiblingSetOptionalParams + options?: NetAppResourceQueryNetworkSiblingSetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, networkSiblingSetId, subnetId, options }, - queryNetworkSiblingSetOperationSpec + queryNetworkSiblingSetOperationSpec, ); } @@ -156,7 +156,7 @@ export class NetAppResourceImpl implements NetAppResource { * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} * @param networkSiblingSetStateId Network sibling set state Id identifying the current state of the * sibling set. - * @param networkFeatures Network features available to the volume + * @param networkFeatures Network features available to the volume, some such * @param options The options parameters. */ async beginUpdateNetworkSiblingSet( @@ -165,7 +165,7 @@ export class NetAppResourceImpl implements NetAppResource { subnetId: string, networkSiblingSetStateId: string, networkFeatures: NetworkFeatures, - options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams + options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -174,21 +174,20 @@ export class NetAppResourceImpl implements NetAppResource { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -197,8 +196,8 @@ export class NetAppResourceImpl implements NetAppResource { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -206,8 +205,8 @@ export class NetAppResourceImpl implements NetAppResource { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -219,9 +218,9 @@ export class NetAppResourceImpl implements NetAppResource { subnetId, networkSiblingSetStateId, networkFeatures, - options + options, }, - spec: updateNetworkSiblingSetOperationSpec + spec: updateNetworkSiblingSetOperationSpec, }); const poller = await createHttpPoller< NetAppResourceUpdateNetworkSiblingSetResponse, @@ -229,7 +228,7 @@ export class NetAppResourceImpl implements NetAppResource { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -245,7 +244,7 @@ export class NetAppResourceImpl implements NetAppResource { * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} * @param networkSiblingSetStateId Network sibling set state Id identifying the current state of the * sibling set. - * @param networkFeatures Network features available to the volume + * @param networkFeatures Network features available to the volume, some such * @param options The options parameters. */ async beginUpdateNetworkSiblingSetAndWait( @@ -254,7 +253,7 @@ export class NetAppResourceImpl implements NetAppResource { subnetId: string, networkSiblingSetStateId: string, networkFeatures: NetworkFeatures, - options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams + options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams, ): Promise { const poller = await this.beginUpdateNetworkSiblingSet( location, @@ -262,7 +261,7 @@ export class NetAppResourceImpl implements NetAppResource { subnetId, networkSiblingSetStateId, networkFeatures, - options + options, ); return poller.pollUntilDone(); } @@ -271,170 +270,172 @@ export class NetAppResourceImpl implements NetAppResource { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckAvailabilityResponse + bodyMapper: Mappers.CheckAvailabilityResponse, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, requestBody: { parameterPath: { name: ["name"], typeParam: ["typeParam"], - resourceGroup: ["resourceGroup"] + resourceGroup: ["resourceGroup"], }, - mapper: { ...Mappers.ResourceNameAvailabilityRequest, required: true } + mapper: { ...Mappers.ResourceNameAvailabilityRequest, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const checkFilePathAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckAvailabilityResponse + bodyMapper: Mappers.CheckAvailabilityResponse, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, requestBody: { parameterPath: { name: ["name"], subnetId: ["subnetId"] }, - mapper: { ...Mappers.FilePathAvailabilityRequest, required: true } + mapper: { ...Mappers.FilePathAvailabilityRequest, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const checkQuotaAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkQuotaAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkQuotaAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckAvailabilityResponse + bodyMapper: Mappers.CheckAvailabilityResponse, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, requestBody: { parameterPath: { name: ["name"], typeParam: ["typeParam"], - resourceGroup: ["resourceGroup"] + resourceGroup: ["resourceGroup"], }, - mapper: { ...Mappers.QuotaAvailabilityRequest, required: true } + mapper: { ...Mappers.QuotaAvailabilityRequest, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const queryRegionInfoOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfo", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfo", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RegionInfo + bodyMapper: Mappers.RegionInfo, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const queryNetworkSiblingSetOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/queryNetworkSiblingSet", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/queryNetworkSiblingSet", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.NetworkSiblingSet + bodyMapper: Mappers.NetworkSiblingSet, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: { parameterPath: { networkSiblingSetId: ["networkSiblingSetId"], - subnetId: ["subnetId"] + subnetId: ["subnetId"], }, - mapper: { ...Mappers.QueryNetworkSiblingSetRequest, required: true } + mapper: { ...Mappers.QueryNetworkSiblingSetRequest, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateNetworkSiblingSetOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/updateNetworkSiblingSet", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/updateNetworkSiblingSet", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.NetworkSiblingSet + bodyMapper: Mappers.NetworkSiblingSet, }, 201: { - bodyMapper: Mappers.NetworkSiblingSet + bodyMapper: Mappers.NetworkSiblingSet, }, 202: { - bodyMapper: Mappers.NetworkSiblingSet + bodyMapper: Mappers.NetworkSiblingSet, }, 204: { - bodyMapper: Mappers.NetworkSiblingSet + bodyMapper: Mappers.NetworkSiblingSet, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: { parameterPath: { networkSiblingSetId: ["networkSiblingSetId"], subnetId: ["subnetId"], networkSiblingSetStateId: ["networkSiblingSetStateId"], - networkFeatures: ["networkFeatures"] + networkFeatures: ["networkFeatures"], }, - mapper: { ...Mappers.UpdateNetworkSiblingSetRequest, required: true } + mapper: { ...Mappers.UpdateNetworkSiblingSetRequest, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/netAppResourceQuotaLimits.ts b/sdk/netapp/arm-netapp/src/operations/netAppResourceQuotaLimits.ts index e727476ef69d..3e71b7c2ca9c 100644 --- a/sdk/netapp/arm-netapp/src/operations/netAppResourceQuotaLimits.ts +++ b/sdk/netapp/arm-netapp/src/operations/netAppResourceQuotaLimits.ts @@ -17,13 +17,14 @@ import { NetAppResourceQuotaLimitsListOptionalParams, NetAppResourceQuotaLimitsListResponse, NetAppResourceQuotaLimitsGetOptionalParams, - NetAppResourceQuotaLimitsGetResponse + NetAppResourceQuotaLimitsGetResponse, } from "../models"; /// /** Class containing NetAppResourceQuotaLimits operations. */ export class NetAppResourceQuotaLimitsImpl - implements NetAppResourceQuotaLimits { + implements NetAppResourceQuotaLimits +{ private readonly client: NetAppManagementClient; /** @@ -41,7 +42,7 @@ export class NetAppResourceQuotaLimitsImpl */ public list( location: string, - options?: NetAppResourceQuotaLimitsListOptionalParams + options?: NetAppResourceQuotaLimitsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(location, options); return { @@ -56,14 +57,14 @@ export class NetAppResourceQuotaLimitsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(location, options, settings); - } + }, }; } private async *listPagingPage( location: string, options?: NetAppResourceQuotaLimitsListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: NetAppResourceQuotaLimitsListResponse; result = await this._list(location, options); @@ -72,7 +73,7 @@ export class NetAppResourceQuotaLimitsImpl private async *listPagingAll( location: string, - options?: NetAppResourceQuotaLimitsListOptionalParams + options?: NetAppResourceQuotaLimitsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(location, options)) { yield* page; @@ -86,11 +87,11 @@ export class NetAppResourceQuotaLimitsImpl */ private _list( location: string, - options?: NetAppResourceQuotaLimitsListOptionalParams + options?: NetAppResourceQuotaLimitsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listOperationSpec + listOperationSpec, ); } @@ -103,11 +104,11 @@ export class NetAppResourceQuotaLimitsImpl get( location: string, quotaLimitName: string, - options?: NetAppResourceQuotaLimitsGetOptionalParams + options?: NetAppResourceQuotaLimitsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, quotaLimitName, options }, - getOperationSpec + getOperationSpec, ); } } @@ -115,41 +116,43 @@ export class NetAppResourceQuotaLimitsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionQuotaItemList + bodyMapper: Mappers.SubscriptionQuotaItemList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionQuotaItem + bodyMapper: Mappers.SubscriptionQuotaItem, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location, - Parameters.quotaLimitName + Parameters.quotaLimitName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/netAppResourceRegionInfos.ts b/sdk/netapp/arm-netapp/src/operations/netAppResourceRegionInfos.ts deleted file mode 100644 index e761953bccc0..000000000000 --- a/sdk/netapp/arm-netapp/src/operations/netAppResourceRegionInfos.ts +++ /dev/null @@ -1,209 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { NetAppResourceRegionInfos } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { NetAppManagementClient } from "../netAppManagementClient"; -import { - RegionInfoResource, - NetAppResourceRegionInfosListNextOptionalParams, - NetAppResourceRegionInfosListOptionalParams, - NetAppResourceRegionInfosListResponse, - NetAppResourceRegionInfosGetOptionalParams, - NetAppResourceRegionInfosGetResponse, - NetAppResourceRegionInfosListNextResponse -} from "../models"; - -/// -/** Class containing NetAppResourceRegionInfos operations. */ -export class NetAppResourceRegionInfosImpl - implements NetAppResourceRegionInfos { - private readonly client: NetAppManagementClient; - - /** - * Initialize a new instance of the class NetAppResourceRegionInfos class. - * @param client Reference to the service client - */ - constructor(client: NetAppManagementClient) { - this.client = client; - } - - /** - * Provides region specific information. - * @param location The name of the Azure region. - * @param options The options parameters. - */ - public list( - location: string, - options?: NetAppResourceRegionInfosListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(location, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listPagingPage(location, options, settings); - } - }; - } - - private async *listPagingPage( - location: string, - options?: NetAppResourceRegionInfosListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: NetAppResourceRegionInfosListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(location, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext(location, continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - location: string, - options?: NetAppResourceRegionInfosListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage(location, options)) { - yield* page; - } - } - - /** - * Provides region specific information. - * @param location The name of the Azure region. - * @param options The options parameters. - */ - private _list( - location: string, - options?: NetAppResourceRegionInfosListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - listOperationSpec - ); - } - - /** - * Provides storage to network proximity and logical zone mapping information. - * @param location The name of the Azure region. - * @param options The options parameters. - */ - get( - location: string, - options?: NetAppResourceRegionInfosGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - getOperationSpec - ); - } - - /** - * ListNext - * @param location The name of the Azure region. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - location: string, - nextLink: string, - options?: NetAppResourceRegionInfosListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfos", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.RegionInfosList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfos/default", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.RegionInfoResource - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.RegionInfosList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/netapp/arm-netapp/src/operations/operations.ts b/sdk/netapp/arm-netapp/src/operations/operations.ts index 799ecf93a97a..af4f63ff9641 100644 --- a/sdk/netapp/arm-netapp/src/operations/operations.ts +++ b/sdk/netapp/arm-netapp/src/operations/operations.ts @@ -15,7 +15,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { Operation, OperationsListOptionalParams, - OperationsListResponse + OperationsListResponse, } from "../models"; /// @@ -36,7 +36,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -51,13 +51,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; result = await this._list(options); @@ -65,7 +65,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -77,7 +77,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -90,12 +90,14 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/pools.ts b/sdk/netapp/arm-netapp/src/operations/pools.ts index f474039b7493..87c5b3a73adc 100644 --- a/sdk/netapp/arm-netapp/src/operations/pools.ts +++ b/sdk/netapp/arm-netapp/src/operations/pools.ts @@ -16,7 +16,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,7 +32,7 @@ import { PoolsUpdateOptionalParams, PoolsUpdateResponse, PoolsDeleteOptionalParams, - PoolsListNextResponse + PoolsListNextResponse, } from "../models"; /// @@ -57,7 +57,7 @@ export class PoolsImpl implements Pools { public list( resourceGroupName: string, accountName: string, - options?: PoolsListOptionalParams + options?: PoolsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, accountName, options); return { @@ -75,9 +75,9 @@ export class PoolsImpl implements Pools { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class PoolsImpl implements Pools { resourceGroupName: string, accountName: string, options?: PoolsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PoolsListResponse; let continuationToken = settings?.continuationToken; @@ -101,7 +101,7 @@ export class PoolsImpl implements Pools { resourceGroupName, accountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -113,12 +113,12 @@ export class PoolsImpl implements Pools { private async *listPagingAll( resourceGroupName: string, accountName: string, - options?: PoolsListOptionalParams + options?: PoolsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -133,11 +133,11 @@ export class PoolsImpl implements Pools { private _list( resourceGroupName: string, accountName: string, - options?: PoolsListOptionalParams + options?: PoolsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listOperationSpec + listOperationSpec, ); } @@ -152,11 +152,11 @@ export class PoolsImpl implements Pools { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolsGetOptionalParams + options?: PoolsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, options }, - getOperationSpec + getOperationSpec, ); } @@ -173,7 +173,7 @@ export class PoolsImpl implements Pools { accountName: string, poolName: string, body: CapacityPool, - options?: PoolsCreateOrUpdateOptionalParams + options?: PoolsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -182,21 +182,20 @@ export class PoolsImpl implements Pools { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -205,8 +204,8 @@ export class PoolsImpl implements Pools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -214,15 +213,15 @@ export class PoolsImpl implements Pools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, body, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< PoolsCreateOrUpdateResponse, @@ -230,7 +229,7 @@ export class PoolsImpl implements Pools { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -249,14 +248,14 @@ export class PoolsImpl implements Pools { accountName: string, poolName: string, body: CapacityPool, - options?: PoolsCreateOrUpdateOptionalParams + options?: PoolsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, accountName, poolName, body, - options + options, ); return poller.pollUntilDone(); } @@ -274,27 +273,26 @@ export class PoolsImpl implements Pools { accountName: string, poolName: string, body: CapacityPoolPatch, - options?: PoolsUpdateOptionalParams + options?: PoolsUpdateOptionalParams, ): Promise< SimplePollerLike, PoolsUpdateResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -303,8 +301,8 @@ export class PoolsImpl implements Pools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -312,15 +310,15 @@ export class PoolsImpl implements Pools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, body, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< PoolsUpdateResponse, @@ -328,7 +326,7 @@ export class PoolsImpl implements Pools { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -347,14 +345,14 @@ export class PoolsImpl implements Pools { accountName: string, poolName: string, body: CapacityPoolPatch, - options?: PoolsUpdateOptionalParams + options?: PoolsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, accountName, poolName, body, - options + options, ); return poller.pollUntilDone(); } @@ -370,25 +368,24 @@ export class PoolsImpl implements Pools { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolsDeleteOptionalParams + options?: PoolsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -397,8 +394,8 @@ export class PoolsImpl implements Pools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -406,20 +403,20 @@ export class PoolsImpl implements Pools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -436,13 +433,13 @@ export class PoolsImpl implements Pools { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolsDeleteOptionalParams + options?: PoolsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, poolName, - options + options, ); return poller.pollUntilDone(); } @@ -458,11 +455,11 @@ export class PoolsImpl implements Pools { resourceGroupName: string, accountName: string, nextLink: string, - options?: PoolsListNextOptionalParams + options?: PoolsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -470,34 +467,36 @@ export class PoolsImpl implements Pools { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityPoolList + bodyMapper: Mappers.CapacityPoolList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -505,106 +504,118 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.poolName + Parameters.poolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, }, 201: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, }, 202: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, }, 204: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body8, + requestBody: Parameters.body7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.poolName + Parameters.poolName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, }, 201: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, }, 202: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, }, 204: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body9, + requestBody: Parameters.body8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.poolName + Parameters.poolName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.poolName + Parameters.poolName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityPoolList + bodyMapper: Mappers.CapacityPoolList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts b/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts index 2b2ca74dd838..3a87e033d785 100644 --- a/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts +++ b/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts @@ -15,7 +15,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -31,7 +31,7 @@ import { SnapshotPoliciesUpdateResponse, SnapshotPoliciesDeleteOptionalParams, SnapshotPoliciesListVolumesOptionalParams, - SnapshotPoliciesListVolumesResponse + SnapshotPoliciesListVolumesResponse, } from "../models"; /// @@ -56,7 +56,7 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { public list( resourceGroupName: string, accountName: string, - options?: SnapshotPoliciesListOptionalParams + options?: SnapshotPoliciesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, accountName, options); return { @@ -74,9 +74,9 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +84,7 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { resourceGroupName: string, accountName: string, options?: SnapshotPoliciesListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: SnapshotPoliciesListResponse; result = await this._list(resourceGroupName, accountName, options); @@ -94,12 +94,12 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { private async *listPagingAll( resourceGroupName: string, accountName: string, - options?: SnapshotPoliciesListOptionalParams + options?: SnapshotPoliciesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -114,11 +114,11 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { private _list( resourceGroupName: string, accountName: string, - options?: SnapshotPoliciesListOptionalParams + options?: SnapshotPoliciesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listOperationSpec + listOperationSpec, ); } @@ -133,11 +133,11 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { resourceGroupName: string, accountName: string, snapshotPolicyName: string, - options?: SnapshotPoliciesGetOptionalParams + options?: SnapshotPoliciesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, snapshotPolicyName, options }, - getOperationSpec + getOperationSpec, ); } @@ -154,11 +154,11 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { accountName: string, snapshotPolicyName: string, body: SnapshotPolicy, - options?: SnapshotPoliciesCreateOptionalParams + options?: SnapshotPoliciesCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, snapshotPolicyName, body, options }, - createOperationSpec + createOperationSpec, ); } @@ -175,7 +175,7 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { accountName: string, snapshotPolicyName: string, body: SnapshotPolicyPatch, - options?: SnapshotPoliciesUpdateOptionalParams + options?: SnapshotPoliciesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -184,21 +184,20 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -207,8 +206,8 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -216,8 +215,8 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -228,9 +227,9 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { accountName, snapshotPolicyName, body, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< SnapshotPoliciesUpdateResponse, @@ -238,7 +237,7 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -257,14 +256,14 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { accountName: string, snapshotPolicyName: string, body: SnapshotPolicyPatch, - options?: SnapshotPoliciesUpdateOptionalParams + options?: SnapshotPoliciesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, accountName, snapshotPolicyName, body, - options + options, ); return poller.pollUntilDone(); } @@ -280,25 +279,24 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { resourceGroupName: string, accountName: string, snapshotPolicyName: string, - options?: SnapshotPoliciesDeleteOptionalParams + options?: SnapshotPoliciesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -307,8 +305,8 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -316,20 +314,20 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, snapshotPolicyName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -346,13 +344,13 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { resourceGroupName: string, accountName: string, snapshotPolicyName: string, - options?: SnapshotPoliciesDeleteOptionalParams + options?: SnapshotPoliciesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, snapshotPolicyName, - options + options, ); return poller.pollUntilDone(); } @@ -368,11 +366,11 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { resourceGroupName: string, accountName: string, snapshotPolicyName: string, - options?: SnapshotPoliciesListVolumesOptionalParams + options?: SnapshotPoliciesListVolumesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, snapshotPolicyName, options }, - listVolumesOperationSpec + listVolumesOperationSpec, ); } } @@ -380,34 +378,36 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotPoliciesList + bodyMapper: Mappers.SnapshotPoliciesList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotPolicy + bodyMapper: Mappers.SnapshotPolicy, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -415,93 +415,104 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.snapshotPolicyName + Parameters.snapshotPolicyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SnapshotPolicy + bodyMapper: Mappers.SnapshotPolicy, }, 201: { - bodyMapper: Mappers.SnapshotPolicy + bodyMapper: Mappers.SnapshotPolicy, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body23, + requestBody: Parameters.body22, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.snapshotPolicyName + Parameters.snapshotPolicyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.SnapshotPolicy + bodyMapper: Mappers.SnapshotPolicy, }, 201: { - bodyMapper: Mappers.SnapshotPolicy + bodyMapper: Mappers.SnapshotPolicy, }, 202: { - bodyMapper: Mappers.SnapshotPolicy + bodyMapper: Mappers.SnapshotPolicy, }, 204: { - bodyMapper: Mappers.SnapshotPolicy + bodyMapper: Mappers.SnapshotPolicy, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body24, + requestBody: Parameters.body23, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.snapshotPolicyName + Parameters.snapshotPolicyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.snapshotPolicyName + Parameters.snapshotPolicyName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const listVolumesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}/volumes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}/volumes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotPolicyVolumeList + bodyMapper: Mappers.SnapshotPolicyVolumeList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -509,8 +520,8 @@ const listVolumesOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.snapshotPolicyName + Parameters.snapshotPolicyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/snapshots.ts b/sdk/netapp/arm-netapp/src/operations/snapshots.ts index a3c94dea49e7..59f879981f82 100644 --- a/sdk/netapp/arm-netapp/src/operations/snapshots.ts +++ b/sdk/netapp/arm-netapp/src/operations/snapshots.ts @@ -15,7 +15,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -30,7 +30,7 @@ import { SnapshotsUpdateResponse, SnapshotsDeleteOptionalParams, SnapshotRestoreFiles, - SnapshotsRestoreFilesOptionalParams + SnapshotsRestoreFilesOptionalParams, } from "../models"; /// @@ -59,14 +59,14 @@ export class SnapshotsImpl implements Snapshots { accountName: string, poolName: string, volumeName: string, - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return { next() { @@ -85,9 +85,9 @@ export class SnapshotsImpl implements Snapshots { poolName, volumeName, options, - settings + settings, ); - } + }, }; } @@ -97,7 +97,7 @@ export class SnapshotsImpl implements Snapshots { poolName: string, volumeName: string, options?: SnapshotsListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: SnapshotsListResponse; result = await this._list( @@ -105,7 +105,7 @@ export class SnapshotsImpl implements Snapshots { accountName, poolName, volumeName, - options + options, ); yield result.value || []; } @@ -115,14 +115,14 @@ export class SnapshotsImpl implements Snapshots { accountName: string, poolName: string, volumeName: string, - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, accountName, poolName, volumeName, - options + options, )) { yield* page; } @@ -141,11 +141,11 @@ export class SnapshotsImpl implements Snapshots { accountName: string, poolName: string, volumeName: string, - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, volumeName, options }, - listOperationSpec + listOperationSpec, ); } @@ -164,7 +164,7 @@ export class SnapshotsImpl implements Snapshots { poolName: string, volumeName: string, snapshotName: string, - options?: SnapshotsGetOptionalParams + options?: SnapshotsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -173,9 +173,9 @@ export class SnapshotsImpl implements Snapshots { poolName, volumeName, snapshotName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -196,7 +196,7 @@ export class SnapshotsImpl implements Snapshots { volumeName: string, snapshotName: string, body: Snapshot, - options?: SnapshotsCreateOptionalParams + options?: SnapshotsCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -205,21 +205,20 @@ export class SnapshotsImpl implements Snapshots { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -228,8 +227,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -237,8 +236,8 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -251,9 +250,9 @@ export class SnapshotsImpl implements Snapshots { volumeName, snapshotName, body, - options + options, }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< SnapshotsCreateResponse, @@ -261,7 +260,7 @@ export class SnapshotsImpl implements Snapshots { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -284,7 +283,7 @@ export class SnapshotsImpl implements Snapshots { volumeName: string, snapshotName: string, body: Snapshot, - options?: SnapshotsCreateOptionalParams + options?: SnapshotsCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, @@ -293,7 +292,7 @@ export class SnapshotsImpl implements Snapshots { volumeName, snapshotName, body, - options + options, ); return poller.pollUntilDone(); } @@ -315,7 +314,7 @@ export class SnapshotsImpl implements Snapshots { volumeName: string, snapshotName: string, body: Record, - options?: SnapshotsUpdateOptionalParams + options?: SnapshotsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -324,21 +323,20 @@ export class SnapshotsImpl implements Snapshots { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -347,8 +345,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -356,8 +354,8 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -370,9 +368,9 @@ export class SnapshotsImpl implements Snapshots { volumeName, snapshotName, body, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< SnapshotsUpdateResponse, @@ -380,7 +378,7 @@ export class SnapshotsImpl implements Snapshots { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -403,7 +401,7 @@ export class SnapshotsImpl implements Snapshots { volumeName: string, snapshotName: string, body: Record, - options?: SnapshotsUpdateOptionalParams + options?: SnapshotsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -412,7 +410,7 @@ export class SnapshotsImpl implements Snapshots { volumeName, snapshotName, body, - options + options, ); return poller.pollUntilDone(); } @@ -432,25 +430,24 @@ export class SnapshotsImpl implements Snapshots { poolName: string, volumeName: string, snapshotName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -459,8 +456,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -468,8 +465,8 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -481,14 +478,14 @@ export class SnapshotsImpl implements Snapshots { poolName, volumeName, snapshotName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -509,7 +506,7 @@ export class SnapshotsImpl implements Snapshots { poolName: string, volumeName: string, snapshotName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, @@ -517,7 +514,7 @@ export class SnapshotsImpl implements Snapshots { poolName, volumeName, snapshotName, - options + options, ); return poller.pollUntilDone(); } @@ -539,25 +536,24 @@ export class SnapshotsImpl implements Snapshots { volumeName: string, snapshotName: string, body: SnapshotRestoreFiles, - options?: SnapshotsRestoreFilesOptionalParams + options?: SnapshotsRestoreFilesOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -566,8 +562,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -575,8 +571,8 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -589,14 +585,14 @@ export class SnapshotsImpl implements Snapshots { volumeName, snapshotName, body, - options + options, }, - spec: restoreFilesOperationSpec + spec: restoreFilesOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -619,7 +615,7 @@ export class SnapshotsImpl implements Snapshots { volumeName: string, snapshotName: string, body: SnapshotRestoreFiles, - options?: SnapshotsRestoreFilesOptionalParams + options?: SnapshotsRestoreFilesOptionalParams, ): Promise { const poller = await this.beginRestoreFiles( resourceGroupName, @@ -628,7 +624,7 @@ export class SnapshotsImpl implements Snapshots { volumeName, snapshotName, body, - options + options, ); return poller.pollUntilDone(); } @@ -637,14 +633,15 @@ export class SnapshotsImpl implements Snapshots { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotsList + bodyMapper: Mappers.SnapshotsList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -653,20 +650,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -676,31 +674,32 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.snapshotName + Parameters.snapshotName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 201: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 202: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 204: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body20, + requestBody: Parameters.body19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -709,32 +708,33 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.snapshotName + Parameters.snapshotName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 201: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 202: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 204: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body21, + requestBody: Parameters.body20, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -743,17 +743,24 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.snapshotName + Parameters.snapshotName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -762,16 +769,24 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.snapshotName + Parameters.snapshotName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const restoreFilesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}/restoreFiles", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}/restoreFiles", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body22, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body21, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -780,9 +795,9 @@ const restoreFilesOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.snapshotName + Parameters.snapshotName, ], - headerParameters: [Parameters.contentType], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/subvolumes.ts b/sdk/netapp/arm-netapp/src/operations/subvolumes.ts index ec5c0ba72c67..bc6bc4afe945 100644 --- a/sdk/netapp/arm-netapp/src/operations/subvolumes.ts +++ b/sdk/netapp/arm-netapp/src/operations/subvolumes.ts @@ -16,7 +16,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -34,7 +34,7 @@ import { SubvolumesDeleteOptionalParams, SubvolumesGetMetadataOptionalParams, SubvolumesGetMetadataResponse, - SubvolumesListByVolumeNextResponse + SubvolumesListByVolumeNextResponse, } from "../models"; /// @@ -63,14 +63,14 @@ export class SubvolumesImpl implements Subvolumes { accountName: string, poolName: string, volumeName: string, - options?: SubvolumesListByVolumeOptionalParams + options?: SubvolumesListByVolumeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByVolumePagingAll( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return { next() { @@ -89,9 +89,9 @@ export class SubvolumesImpl implements Subvolumes { poolName, volumeName, options, - settings + settings, ); - } + }, }; } @@ -101,7 +101,7 @@ export class SubvolumesImpl implements Subvolumes { poolName: string, volumeName: string, options?: SubvolumesListByVolumeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SubvolumesListByVolumeResponse; let continuationToken = settings?.continuationToken; @@ -111,7 +111,7 @@ export class SubvolumesImpl implements Subvolumes { accountName, poolName, volumeName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -125,7 +125,7 @@ export class SubvolumesImpl implements Subvolumes { poolName, volumeName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -139,14 +139,14 @@ export class SubvolumesImpl implements Subvolumes { accountName: string, poolName: string, volumeName: string, - options?: SubvolumesListByVolumeOptionalParams + options?: SubvolumesListByVolumeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByVolumePagingPage( resourceGroupName, accountName, poolName, volumeName, - options + options, )) { yield* page; } @@ -165,11 +165,11 @@ export class SubvolumesImpl implements Subvolumes { accountName: string, poolName: string, volumeName: string, - options?: SubvolumesListByVolumeOptionalParams + options?: SubvolumesListByVolumeOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, volumeName, options }, - listByVolumeOperationSpec + listByVolumeOperationSpec, ); } @@ -188,7 +188,7 @@ export class SubvolumesImpl implements Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesGetOptionalParams + options?: SubvolumesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -197,9 +197,9 @@ export class SubvolumesImpl implements Subvolumes { poolName, volumeName, subvolumeName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -220,7 +220,7 @@ export class SubvolumesImpl implements Subvolumes { volumeName: string, subvolumeName: string, body: SubvolumeInfo, - options?: SubvolumesCreateOptionalParams + options?: SubvolumesCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -229,21 +229,20 @@ export class SubvolumesImpl implements Subvolumes { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -252,8 +251,8 @@ export class SubvolumesImpl implements Subvolumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -261,8 +260,8 @@ export class SubvolumesImpl implements Subvolumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -275,9 +274,9 @@ export class SubvolumesImpl implements Subvolumes { volumeName, subvolumeName, body, - options + options, }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< SubvolumesCreateResponse, @@ -285,7 +284,7 @@ export class SubvolumesImpl implements Subvolumes { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -308,7 +307,7 @@ export class SubvolumesImpl implements Subvolumes { volumeName: string, subvolumeName: string, body: SubvolumeInfo, - options?: SubvolumesCreateOptionalParams + options?: SubvolumesCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, @@ -317,7 +316,7 @@ export class SubvolumesImpl implements Subvolumes { volumeName, subvolumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -339,7 +338,7 @@ export class SubvolumesImpl implements Subvolumes { volumeName: string, subvolumeName: string, body: SubvolumePatchRequest, - options?: SubvolumesUpdateOptionalParams + options?: SubvolumesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -348,21 +347,20 @@ export class SubvolumesImpl implements Subvolumes { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -371,8 +369,8 @@ export class SubvolumesImpl implements Subvolumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -380,8 +378,8 @@ export class SubvolumesImpl implements Subvolumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -394,9 +392,9 @@ export class SubvolumesImpl implements Subvolumes { volumeName, subvolumeName, body, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< SubvolumesUpdateResponse, @@ -404,7 +402,7 @@ export class SubvolumesImpl implements Subvolumes { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -427,7 +425,7 @@ export class SubvolumesImpl implements Subvolumes { volumeName: string, subvolumeName: string, body: SubvolumePatchRequest, - options?: SubvolumesUpdateOptionalParams + options?: SubvolumesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -436,7 +434,7 @@ export class SubvolumesImpl implements Subvolumes { volumeName, subvolumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -456,25 +454,24 @@ export class SubvolumesImpl implements Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesDeleteOptionalParams + options?: SubvolumesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -483,8 +480,8 @@ export class SubvolumesImpl implements Subvolumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -492,8 +489,8 @@ export class SubvolumesImpl implements Subvolumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -505,14 +502,14 @@ export class SubvolumesImpl implements Subvolumes { poolName, volumeName, subvolumeName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -533,7 +530,7 @@ export class SubvolumesImpl implements Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesDeleteOptionalParams + options?: SubvolumesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, @@ -541,7 +538,7 @@ export class SubvolumesImpl implements Subvolumes { poolName, volumeName, subvolumeName, - options + options, ); return poller.pollUntilDone(); } @@ -561,7 +558,7 @@ export class SubvolumesImpl implements Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesGetMetadataOptionalParams + options?: SubvolumesGetMetadataOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -570,21 +567,20 @@ export class SubvolumesImpl implements Subvolumes { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -593,8 +589,8 @@ export class SubvolumesImpl implements Subvolumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -602,8 +598,8 @@ export class SubvolumesImpl implements Subvolumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -615,9 +611,9 @@ export class SubvolumesImpl implements Subvolumes { poolName, volumeName, subvolumeName, - options + options, }, - spec: getMetadataOperationSpec + spec: getMetadataOperationSpec, }); const poller = await createHttpPoller< SubvolumesGetMetadataResponse, @@ -625,7 +621,7 @@ export class SubvolumesImpl implements Subvolumes { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -646,7 +642,7 @@ export class SubvolumesImpl implements Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesGetMetadataOptionalParams + options?: SubvolumesGetMetadataOptionalParams, ): Promise { const poller = await this.beginGetMetadata( resourceGroupName, @@ -654,7 +650,7 @@ export class SubvolumesImpl implements Subvolumes { poolName, volumeName, subvolumeName, - options + options, ); return poller.pollUntilDone(); } @@ -674,7 +670,7 @@ export class SubvolumesImpl implements Subvolumes { poolName: string, volumeName: string, nextLink: string, - options?: SubvolumesListByVolumeNextOptionalParams + options?: SubvolumesListByVolumeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -683,9 +679,9 @@ export class SubvolumesImpl implements Subvolumes { poolName, volumeName, nextLink, - options + options, }, - listByVolumeNextOperationSpec + listByVolumeNextOperationSpec, ); } } @@ -693,14 +689,15 @@ export class SubvolumesImpl implements Subvolumes { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByVolumeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubvolumesList + bodyMapper: Mappers.SubvolumesList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -709,20 +706,21 @@ const listByVolumeOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -732,31 +730,32 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.subvolumeName + Parameters.subvolumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, }, 201: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, }, 202: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, }, 204: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body32, + requestBody: Parameters.body29, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -765,32 +764,33 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.subvolumeName + Parameters.subvolumeName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, }, 201: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, }, 202: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, }, 204: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body33, + requestBody: Parameters.body30, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -799,17 +799,24 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.subvolumeName + Parameters.subvolumeName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -818,28 +825,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.subvolumeName + Parameters.subvolumeName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const getMetadataOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}/getMetadata", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}/getMetadata", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.SubvolumeModel + bodyMapper: Mappers.SubvolumeModel, }, 201: { - bodyMapper: Mappers.SubvolumeModel + bodyMapper: Mappers.SubvolumeModel, }, 202: { - bodyMapper: Mappers.SubvolumeModel + bodyMapper: Mappers.SubvolumeModel, }, 204: { - bodyMapper: Mappers.SubvolumeModel + bodyMapper: Mappers.SubvolumeModel, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -849,29 +858,31 @@ const getMetadataOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.subvolumeName + Parameters.subvolumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByVolumeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubvolumesList + bodyMapper: Mappers.SubvolumesList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink, Parameters.resourceGroupName, Parameters.accountName, + Parameters.nextLink, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/volumeGroups.ts b/sdk/netapp/arm-netapp/src/operations/volumeGroups.ts index 68a88ec41859..091c74772ab0 100644 --- a/sdk/netapp/arm-netapp/src/operations/volumeGroups.ts +++ b/sdk/netapp/arm-netapp/src/operations/volumeGroups.ts @@ -15,7 +15,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -27,7 +27,7 @@ import { VolumeGroupDetails, VolumeGroupsCreateOptionalParams, VolumeGroupsCreateResponse, - VolumeGroupsDeleteOptionalParams + VolumeGroupsDeleteOptionalParams, } from "../models"; /// @@ -52,12 +52,12 @@ export class VolumeGroupsImpl implements VolumeGroups { public listByNetAppAccount( resourceGroupName: string, accountName: string, - options?: VolumeGroupsListByNetAppAccountOptionalParams + options?: VolumeGroupsListByNetAppAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByNetAppAccountPagingAll( resourceGroupName, accountName, - options + options, ); return { next() { @@ -74,9 +74,9 @@ export class VolumeGroupsImpl implements VolumeGroups { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -84,13 +84,13 @@ export class VolumeGroupsImpl implements VolumeGroups { resourceGroupName: string, accountName: string, options?: VolumeGroupsListByNetAppAccountOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: VolumeGroupsListByNetAppAccountResponse; result = await this._listByNetAppAccount( resourceGroupName, accountName, - options + options, ); yield result.value || []; } @@ -98,12 +98,12 @@ export class VolumeGroupsImpl implements VolumeGroups { private async *listByNetAppAccountPagingAll( resourceGroupName: string, accountName: string, - options?: VolumeGroupsListByNetAppAccountOptionalParams + options?: VolumeGroupsListByNetAppAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByNetAppAccountPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -118,11 +118,11 @@ export class VolumeGroupsImpl implements VolumeGroups { private _listByNetAppAccount( resourceGroupName: string, accountName: string, - options?: VolumeGroupsListByNetAppAccountOptionalParams + options?: VolumeGroupsListByNetAppAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listByNetAppAccountOperationSpec + listByNetAppAccountOperationSpec, ); } @@ -137,11 +137,11 @@ export class VolumeGroupsImpl implements VolumeGroups { resourceGroupName: string, accountName: string, volumeGroupName: string, - options?: VolumeGroupsGetOptionalParams + options?: VolumeGroupsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, volumeGroupName, options }, - getOperationSpec + getOperationSpec, ); } @@ -158,7 +158,7 @@ export class VolumeGroupsImpl implements VolumeGroups { accountName: string, volumeGroupName: string, body: VolumeGroupDetails, - options?: VolumeGroupsCreateOptionalParams + options?: VolumeGroupsCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -167,21 +167,20 @@ export class VolumeGroupsImpl implements VolumeGroups { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -190,8 +189,8 @@ export class VolumeGroupsImpl implements VolumeGroups { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -199,22 +198,22 @@ export class VolumeGroupsImpl implements VolumeGroups { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, volumeGroupName, body, options }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< VolumeGroupsCreateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -233,14 +232,14 @@ export class VolumeGroupsImpl implements VolumeGroups { accountName: string, volumeGroupName: string, body: VolumeGroupDetails, - options?: VolumeGroupsCreateOptionalParams + options?: VolumeGroupsCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, accountName, volumeGroupName, body, - options + options, ); return poller.pollUntilDone(); } @@ -256,25 +255,24 @@ export class VolumeGroupsImpl implements VolumeGroups { resourceGroupName: string, accountName: string, volumeGroupName: string, - options?: VolumeGroupsDeleteOptionalParams + options?: VolumeGroupsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -283,8 +281,8 @@ export class VolumeGroupsImpl implements VolumeGroups { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -292,19 +290,19 @@ export class VolumeGroupsImpl implements VolumeGroups { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, volumeGroupName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -321,13 +319,13 @@ export class VolumeGroupsImpl implements VolumeGroups { resourceGroupName: string, accountName: string, volumeGroupName: string, - options?: VolumeGroupsDeleteOptionalParams + options?: VolumeGroupsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, volumeGroupName, - options + options, ); return poller.pollUntilDone(); } @@ -336,34 +334,36 @@ export class VolumeGroupsImpl implements VolumeGroups { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByNetAppAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeGroupList + bodyMapper: Mappers.VolumeGroupList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeGroupDetails + bodyMapper: Mappers.VolumeGroupDetails, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -371,55 +371,64 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.volumeGroupName + Parameters.volumeGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VolumeGroupDetails + bodyMapper: Mappers.VolumeGroupDetails, }, 201: { - bodyMapper: Mappers.VolumeGroupDetails + bodyMapper: Mappers.VolumeGroupDetails, }, 202: { - bodyMapper: Mappers.VolumeGroupDetails + bodyMapper: Mappers.VolumeGroupDetails, }, 204: { - bodyMapper: Mappers.VolumeGroupDetails + bodyMapper: Mappers.VolumeGroupDetails, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body31, + requestBody: Parameters.body28, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.volumeGroupName + Parameters.volumeGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.volumeGroupName + Parameters.volumeGroupName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/volumeQuotaRules.ts b/sdk/netapp/arm-netapp/src/operations/volumeQuotaRules.ts index c09dcef9a150..9c4f0daabd4f 100644 --- a/sdk/netapp/arm-netapp/src/operations/volumeQuotaRules.ts +++ b/sdk/netapp/arm-netapp/src/operations/volumeQuotaRules.ts @@ -15,7 +15,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,7 +29,7 @@ import { VolumeQuotaRulePatch, VolumeQuotaRulesUpdateOptionalParams, VolumeQuotaRulesUpdateResponse, - VolumeQuotaRulesDeleteOptionalParams + VolumeQuotaRulesDeleteOptionalParams, } from "../models"; /// @@ -58,14 +58,14 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { accountName: string, poolName: string, volumeName: string, - options?: VolumeQuotaRulesListByVolumeOptionalParams + options?: VolumeQuotaRulesListByVolumeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByVolumePagingAll( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return { next() { @@ -84,9 +84,9 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { poolName, volumeName, options, - settings + settings, ); - } + }, }; } @@ -96,7 +96,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { poolName: string, volumeName: string, options?: VolumeQuotaRulesListByVolumeOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: VolumeQuotaRulesListByVolumeResponse; result = await this._listByVolume( @@ -104,7 +104,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { accountName, poolName, volumeName, - options + options, ); yield result.value || []; } @@ -114,14 +114,14 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { accountName: string, poolName: string, volumeName: string, - options?: VolumeQuotaRulesListByVolumeOptionalParams + options?: VolumeQuotaRulesListByVolumeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByVolumePagingPage( resourceGroupName, accountName, poolName, volumeName, - options + options, )) { yield* page; } @@ -140,11 +140,11 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { accountName: string, poolName: string, volumeName: string, - options?: VolumeQuotaRulesListByVolumeOptionalParams + options?: VolumeQuotaRulesListByVolumeOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, volumeName, options }, - listByVolumeOperationSpec + listByVolumeOperationSpec, ); } @@ -163,7 +163,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { poolName: string, volumeName: string, volumeQuotaRuleName: string, - options?: VolumeQuotaRulesGetOptionalParams + options?: VolumeQuotaRulesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -172,9 +172,9 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { poolName, volumeName, volumeQuotaRuleName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -195,7 +195,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { volumeName: string, volumeQuotaRuleName: string, body: VolumeQuotaRule, - options?: VolumeQuotaRulesCreateOptionalParams + options?: VolumeQuotaRulesCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -204,21 +204,20 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -227,8 +226,8 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -236,8 +235,8 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -250,9 +249,9 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { volumeName, volumeQuotaRuleName, body, - options + options, }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< VolumeQuotaRulesCreateResponse, @@ -260,7 +259,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -283,7 +282,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { volumeName: string, volumeQuotaRuleName: string, body: VolumeQuotaRule, - options?: VolumeQuotaRulesCreateOptionalParams + options?: VolumeQuotaRulesCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, @@ -292,7 +291,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { volumeName, volumeQuotaRuleName, body, - options + options, ); return poller.pollUntilDone(); } @@ -314,7 +313,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { volumeName: string, volumeQuotaRuleName: string, body: VolumeQuotaRulePatch, - options?: VolumeQuotaRulesUpdateOptionalParams + options?: VolumeQuotaRulesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -323,21 +322,20 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -346,8 +344,8 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -355,8 +353,8 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -369,9 +367,9 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { volumeName, volumeQuotaRuleName, body, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VolumeQuotaRulesUpdateResponse, @@ -379,7 +377,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -402,7 +400,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { volumeName: string, volumeQuotaRuleName: string, body: VolumeQuotaRulePatch, - options?: VolumeQuotaRulesUpdateOptionalParams + options?: VolumeQuotaRulesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -411,7 +409,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { volumeName, volumeQuotaRuleName, body, - options + options, ); return poller.pollUntilDone(); } @@ -431,25 +429,24 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { poolName: string, volumeName: string, volumeQuotaRuleName: string, - options?: VolumeQuotaRulesDeleteOptionalParams + options?: VolumeQuotaRulesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -458,8 +455,8 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -467,8 +464,8 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -480,14 +477,14 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { poolName, volumeName, volumeQuotaRuleName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -508,7 +505,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { poolName: string, volumeName: string, volumeQuotaRuleName: string, - options?: VolumeQuotaRulesDeleteOptionalParams + options?: VolumeQuotaRulesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, @@ -516,7 +513,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { poolName, volumeName, volumeQuotaRuleName, - options + options, ); return poller.pollUntilDone(); } @@ -525,14 +522,15 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByVolumeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeQuotaRulesList + bodyMapper: Mappers.VolumeQuotaRulesList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -541,20 +539,21 @@ const listByVolumeOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -564,31 +563,32 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.volumeQuotaRuleName + Parameters.volumeQuotaRuleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, }, 201: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, }, 202: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, }, 204: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body29, + requestBody: Parameters.body26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -597,32 +597,33 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.volumeQuotaRuleName + Parameters.volumeQuotaRuleName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, }, 201: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, }, 202: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, }, 204: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body30, + requestBody: Parameters.body27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -631,17 +632,24 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.volumeQuotaRuleName + Parameters.volumeQuotaRuleName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -650,7 +658,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.volumeQuotaRuleName + Parameters.volumeQuotaRuleName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/volumes.ts b/sdk/netapp/arm-netapp/src/operations/volumes.ts index ecb1ca29cafc..36d86af7c7cd 100644 --- a/sdk/netapp/arm-netapp/src/operations/volumes.ts +++ b/sdk/netapp/arm-netapp/src/operations/volumes.ts @@ -16,7 +16,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -41,8 +41,6 @@ import { VolumesRevertOptionalParams, VolumesResetCifsPasswordOptionalParams, VolumesResetCifsPasswordResponse, - VolumesSplitCloneFromParentOptionalParams, - VolumesSplitCloneFromParentResponse, VolumesBreakFileLocksOptionalParams, GetGroupIdListForLdapUserRequest, VolumesListGetGroupIdListForLdapUserOptionalParams, @@ -62,7 +60,7 @@ import { VolumesRelocateOptionalParams, VolumesFinalizeRelocationOptionalParams, VolumesRevertRelocationOptionalParams, - VolumesListNextResponse + VolumesListNextResponse, } from "../models"; /// @@ -89,13 +87,13 @@ export class VolumesImpl implements Volumes { resourceGroupName: string, accountName: string, poolName: string, - options?: VolumesListOptionalParams + options?: VolumesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, accountName, poolName, - options + options, ); return { next() { @@ -113,9 +111,9 @@ export class VolumesImpl implements Volumes { accountName, poolName, options, - settings + settings, ); - } + }, }; } @@ -124,7 +122,7 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, options?: VolumesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VolumesListResponse; let continuationToken = settings?.continuationToken; @@ -133,7 +131,7 @@ export class VolumesImpl implements Volumes { resourceGroupName, accountName, poolName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -146,7 +144,7 @@ export class VolumesImpl implements Volumes { accountName, poolName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -159,13 +157,13 @@ export class VolumesImpl implements Volumes { resourceGroupName: string, accountName: string, poolName: string, - options?: VolumesListOptionalParams + options?: VolumesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, accountName, poolName, - options + options, )) { yield* page; } @@ -184,14 +182,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesListReplicationsOptionalParams + options?: VolumesListReplicationsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listReplicationsPagingAll( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return { next() { @@ -210,9 +208,9 @@ export class VolumesImpl implements Volumes { poolName, volumeName, options, - settings + settings, ); - } + }, }; } @@ -222,7 +220,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, options?: VolumesListReplicationsOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: VolumesListReplicationsResponse; result = await this._listReplications( @@ -230,7 +228,7 @@ export class VolumesImpl implements Volumes { accountName, poolName, volumeName, - options + options, ); yield result.value || []; } @@ -240,14 +238,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesListReplicationsOptionalParams + options?: VolumesListReplicationsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listReplicationsPagingPage( resourceGroupName, accountName, poolName, volumeName, - options + options, )) { yield* page; } @@ -264,11 +262,11 @@ export class VolumesImpl implements Volumes { resourceGroupName: string, accountName: string, poolName: string, - options?: VolumesListOptionalParams + options?: VolumesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, options }, - listOperationSpec + listOperationSpec, ); } @@ -285,11 +283,11 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesGetOptionalParams + options?: VolumesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, volumeName, options }, - getOperationSpec + getOperationSpec, ); } @@ -308,7 +306,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: Volume, - options?: VolumesCreateOrUpdateOptionalParams + options?: VolumesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -317,21 +315,20 @@ export class VolumesImpl implements Volumes { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -340,8 +337,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -349,8 +346,8 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -362,9 +359,9 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VolumesCreateOrUpdateResponse, @@ -372,7 +369,7 @@ export class VolumesImpl implements Volumes { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -393,7 +390,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: Volume, - options?: VolumesCreateOrUpdateOptionalParams + options?: VolumesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -401,7 +398,7 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -421,7 +418,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: VolumePatch, - options?: VolumesUpdateOptionalParams + options?: VolumesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -430,21 +427,20 @@ export class VolumesImpl implements Volumes { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -453,8 +449,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -462,8 +458,8 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -475,9 +471,9 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VolumesUpdateResponse, @@ -485,7 +481,7 @@ export class VolumesImpl implements Volumes { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -506,7 +502,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: VolumePatch, - options?: VolumesUpdateOptionalParams + options?: VolumesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -514,7 +510,7 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -532,25 +528,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesDeleteOptionalParams + options?: VolumesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -559,8 +554,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -568,20 +563,20 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -600,14 +595,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesDeleteOptionalParams + options?: VolumesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -625,7 +620,7 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesPopulateAvailabilityZoneOptionalParams + options?: VolumesPopulateAvailabilityZoneOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -634,21 +629,20 @@ export class VolumesImpl implements Volumes { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -657,8 +651,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -666,15 +660,15 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: populateAvailabilityZoneOperationSpec + spec: populateAvailabilityZoneOperationSpec, }); const poller = await createHttpPoller< VolumesPopulateAvailabilityZoneResponse, @@ -682,7 +676,7 @@ export class VolumesImpl implements Volumes { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -701,14 +695,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesPopulateAvailabilityZoneOptionalParams + options?: VolumesPopulateAvailabilityZoneOptionalParams, ): Promise { const poller = await this.beginPopulateAvailabilityZone( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -728,25 +722,24 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: VolumeRevert, - options?: VolumesRevertOptionalParams + options?: VolumesRevertOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -755,8 +748,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -764,8 +757,8 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -777,14 +770,14 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, }, - spec: revertOperationSpec + spec: revertOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -805,7 +798,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: VolumeRevert, - options?: VolumesRevertOptionalParams + options?: VolumesRevertOptionalParams, ): Promise { const poller = await this.beginRevert( resourceGroupName, @@ -813,7 +806,7 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -831,7 +824,7 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesResetCifsPasswordOptionalParams + options?: VolumesResetCifsPasswordOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -840,21 +833,20 @@ export class VolumesImpl implements Volumes { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -863,8 +855,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -872,22 +864,22 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: resetCifsPasswordOperationSpec + spec: resetCifsPasswordOperationSpec, }); const poller = await createHttpPoller< VolumesResetCifsPasswordResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -906,115 +898,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesResetCifsPasswordOptionalParams + options?: VolumesResetCifsPasswordOptionalParams, ): Promise { const poller = await this.beginResetCifsPassword( resourceGroupName, accountName, poolName, volumeName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Split operation to convert clone volume to an independent volume. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param options The options parameters. - */ - async beginSplitCloneFromParent( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: VolumesSplitCloneFromParentOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - VolumesSplitCloneFromParentResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: splitCloneFromParentOperationSpec - }); - const poller = await createHttpPoller< - VolumesSplitCloneFromParentResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Split operation to convert clone volume to an independent volume. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param options The options parameters. - */ - async beginSplitCloneFromParentAndWait( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: VolumesSplitCloneFromParentOptionalParams - ): Promise { - const poller = await this.beginSplitCloneFromParent( - resourceGroupName, - accountName, - poolName, - volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -1032,25 +923,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesBreakFileLocksOptionalParams + options?: VolumesBreakFileLocksOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1059,8 +949,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1068,20 +958,20 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: breakFileLocksOperationSpec + spec: breakFileLocksOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1100,14 +990,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesBreakFileLocksOptionalParams + options?: VolumesBreakFileLocksOptionalParams, ): Promise { const poller = await this.beginBreakFileLocks( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -1127,7 +1017,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: GetGroupIdListForLdapUserRequest, - options?: VolumesListGetGroupIdListForLdapUserOptionalParams + options?: VolumesListGetGroupIdListForLdapUserOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1136,21 +1026,20 @@ export class VolumesImpl implements Volumes { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1159,8 +1048,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1168,8 +1057,8 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1181,9 +1070,9 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, }, - spec: listGetGroupIdListForLdapUserOperationSpec + spec: listGetGroupIdListForLdapUserOperationSpec, }); const poller = await createHttpPoller< VolumesListGetGroupIdListForLdapUserResponse, @@ -1191,7 +1080,7 @@ export class VolumesImpl implements Volumes { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1212,7 +1101,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: GetGroupIdListForLdapUserRequest, - options?: VolumesListGetGroupIdListForLdapUserOptionalParams + options?: VolumesListGetGroupIdListForLdapUserOptionalParams, ): Promise { const poller = await this.beginListGetGroupIdListForLdapUser( resourceGroupName, @@ -1220,7 +1109,7 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -1238,25 +1127,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesBreakReplicationOptionalParams + options?: VolumesBreakReplicationOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1265,8 +1153,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1274,20 +1162,20 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: breakReplicationOperationSpec + spec: breakReplicationOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1306,14 +1194,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesBreakReplicationOptionalParams + options?: VolumesBreakReplicationOptionalParams, ): Promise { const poller = await this.beginBreakReplication( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -1334,25 +1222,24 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: ReestablishReplicationRequest, - options?: VolumesReestablishReplicationOptionalParams + options?: VolumesReestablishReplicationOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1361,8 +1248,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1370,8 +1257,8 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1383,14 +1270,14 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, }, - spec: reestablishReplicationOperationSpec + spec: reestablishReplicationOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1412,7 +1299,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: ReestablishReplicationRequest, - options?: VolumesReestablishReplicationOptionalParams + options?: VolumesReestablishReplicationOptionalParams, ): Promise { const poller = await this.beginReestablishReplication( resourceGroupName, @@ -1420,7 +1307,7 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -1438,11 +1325,11 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesReplicationStatusOptionalParams + options?: VolumesReplicationStatusOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, volumeName, options }, - replicationStatusOperationSpec + replicationStatusOperationSpec, ); } @@ -1459,11 +1346,11 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesListReplicationsOptionalParams + options?: VolumesListReplicationsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, volumeName, options }, - listReplicationsOperationSpec + listReplicationsOperationSpec, ); } @@ -1481,25 +1368,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesResyncReplicationOptionalParams + options?: VolumesResyncReplicationOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1508,8 +1394,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1517,20 +1403,20 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: resyncReplicationOperationSpec + spec: resyncReplicationOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1550,14 +1436,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesResyncReplicationOptionalParams + options?: VolumesResyncReplicationOptionalParams, ): Promise { const poller = await this.beginResyncReplication( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -1576,25 +1462,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesDeleteReplicationOptionalParams + options?: VolumesDeleteReplicationOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1603,8 +1488,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1612,20 +1497,20 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: deleteReplicationOperationSpec + spec: deleteReplicationOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1645,14 +1530,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesDeleteReplicationOptionalParams + options?: VolumesDeleteReplicationOptionalParams, ): Promise { const poller = await this.beginDeleteReplication( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -1672,25 +1557,24 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: AuthorizeRequest, - options?: VolumesAuthorizeReplicationOptionalParams + options?: VolumesAuthorizeReplicationOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1699,8 +1583,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1708,8 +1592,8 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1721,14 +1605,14 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, }, - spec: authorizeReplicationOperationSpec + spec: authorizeReplicationOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1749,7 +1633,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: AuthorizeRequest, - options?: VolumesAuthorizeReplicationOptionalParams + options?: VolumesAuthorizeReplicationOptionalParams, ): Promise { const poller = await this.beginAuthorizeReplication( resourceGroupName, @@ -1757,7 +1641,7 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -1775,25 +1659,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesReInitializeReplicationOptionalParams + options?: VolumesReInitializeReplicationOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1802,8 +1685,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1811,20 +1694,20 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: reInitializeReplicationOperationSpec + spec: reInitializeReplicationOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1843,14 +1726,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesReInitializeReplicationOptionalParams + options?: VolumesReInitializeReplicationOptionalParams, ): Promise { const poller = await this.beginReInitializeReplication( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -1870,25 +1753,24 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: PoolChangeRequest, - options?: VolumesPoolChangeOptionalParams + options?: VolumesPoolChangeOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1897,8 +1779,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1906,8 +1788,8 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1919,14 +1801,14 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, }, - spec: poolChangeOperationSpec + spec: poolChangeOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1947,7 +1829,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: PoolChangeRequest, - options?: VolumesPoolChangeOptionalParams + options?: VolumesPoolChangeOptionalParams, ): Promise { const poller = await this.beginPoolChange( resourceGroupName, @@ -1955,7 +1837,7 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -1973,25 +1855,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesRelocateOptionalParams + options?: VolumesRelocateOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -2000,8 +1881,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -2009,19 +1890,19 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: relocateOperationSpec + spec: relocateOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -2040,14 +1921,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesRelocateOptionalParams + options?: VolumesRelocateOptionalParams, ): Promise { const poller = await this.beginRelocate( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -2065,25 +1946,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesFinalizeRelocationOptionalParams + options?: VolumesFinalizeRelocationOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -2092,8 +1972,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -2101,19 +1981,19 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: finalizeRelocationOperationSpec + spec: finalizeRelocationOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -2132,14 +2012,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesFinalizeRelocationOptionalParams + options?: VolumesFinalizeRelocationOptionalParams, ): Promise { const poller = await this.beginFinalizeRelocation( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -2158,25 +2038,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesRevertRelocationOptionalParams + options?: VolumesRevertRelocationOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -2185,8 +2064,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -2194,19 +2073,19 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: revertRelocationOperationSpec + spec: revertRelocationOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -2226,14 +2105,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesRevertRelocationOptionalParams + options?: VolumesRevertRelocationOptionalParams, ): Promise { const poller = await this.beginRevertRelocation( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -2251,11 +2130,11 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, nextLink: string, - options?: VolumesListNextOptionalParams + options?: VolumesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -2263,14 +2142,15 @@ export class VolumesImpl implements Volumes { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeList + bodyMapper: Mappers.VolumeList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -2278,20 +2158,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.poolName + Parameters.poolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -2300,31 +2181,32 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 201: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 202: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 204: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body10, + requestBody: Parameters.body9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2332,34 +2214,33 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 201: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 202: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 204: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.body11, + requestBody: Parameters.body10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2367,17 +2248,24 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion, Parameters.forceDelete], urlParameters: [ Parameters.$host, @@ -2385,30 +2273,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const populateAvailabilityZoneOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/populateAvailabilityZone", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/populateAvailabilityZone", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 201: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 202: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 204: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -2417,49 +2305,24 @@ const populateAvailabilityZoneOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const revertOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revert", - httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body12, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.poolName, - Parameters.volumeName - ], - headerParameters: [Parameters.contentType], - mediaType: "json", - serializer -}; -const resetCifsPasswordOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resetCifsPassword", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revert", httpMethod: "POST", responses: { - 200: { - headersMapper: Mappers.VolumesResetCifsPasswordHeaders - }, - 201: { - headersMapper: Mappers.VolumesResetCifsPasswordHeaders - }, - 202: { - headersMapper: Mappers.VolumesResetCifsPasswordHeaders - }, - 204: { - headersMapper: Mappers.VolumesResetCifsPasswordHeaders + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, + requestBody: Parameters.body11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2467,30 +2330,31 @@ const resetCifsPasswordOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - serializer + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, }; -const splitCloneFromParentOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/splitCloneFromParent", +const resetCifsPasswordOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resetCifsPassword", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.VolumesSplitCloneFromParentHeaders + headersMapper: Mappers.VolumesResetCifsPasswordHeaders, }, 201: { - headersMapper: Mappers.VolumesSplitCloneFromParentHeaders + headersMapper: Mappers.VolumesResetCifsPasswordHeaders, }, 202: { - headersMapper: Mappers.VolumesSplitCloneFromParentHeaders + headersMapper: Mappers.VolumesResetCifsPasswordHeaders, }, 204: { - headersMapper: Mappers.VolumesSplitCloneFromParentHeaders + headersMapper: Mappers.VolumesResetCifsPasswordHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -2499,17 +2363,24 @@ const splitCloneFromParentOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const breakFileLocksOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakFileLocks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakFileLocks", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body13, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2517,34 +2388,33 @@ const breakFileLocksOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - headerParameters: [Parameters.contentType], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listGetGroupIdListForLdapUserOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/getGroupIdListForLdapUser", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/getGroupIdListForLdapUser", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.GetGroupIdListForLdapUserResponse + bodyMapper: Mappers.GetGroupIdListForLdapUserResponse, }, 201: { - bodyMapper: Mappers.GetGroupIdListForLdapUserResponse + bodyMapper: Mappers.GetGroupIdListForLdapUserResponse, }, 202: { - bodyMapper: Mappers.GetGroupIdListForLdapUserResponse + bodyMapper: Mappers.GetGroupIdListForLdapUserResponse, }, 204: { - bodyMapper: Mappers.GetGroupIdListForLdapUserResponse + bodyMapper: Mappers.GetGroupIdListForLdapUserResponse, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.body14, + requestBody: Parameters.body13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2552,18 +2422,25 @@ const listGetGroupIdListForLdapUserOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const breakReplicationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body15, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2571,18 +2448,25 @@ const breakReplicationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - headerParameters: [Parameters.contentType], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reestablishReplicationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reestablishReplication", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reestablishReplication", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body16, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2590,21 +2474,22 @@ const reestablishReplicationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - headerParameters: [Parameters.contentType], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const replicationStatusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/replicationStatus", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/replicationStatus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReplicationStatus + bodyMapper: Mappers.ReplicationStatus, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -2613,20 +2498,21 @@ const replicationStatusOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listReplicationsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/listReplications", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/listReplications", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ListReplications + bodyMapper: Mappers.ListReplications, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -2635,16 +2521,23 @@ const listReplicationsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const resyncReplicationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resyncReplication", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resyncReplication", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2652,15 +2545,23 @@ const resyncReplicationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const deleteReplicationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/deleteReplication", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/deleteReplication", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2668,16 +2569,24 @@ const deleteReplicationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const authorizeReplicationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeReplication", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeReplication", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body17, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body16, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2685,17 +2594,24 @@ const authorizeReplicationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - headerParameters: [Parameters.contentType], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reInitializeReplicationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reinitializeReplication", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reinitializeReplication", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2703,16 +2619,24 @@ const reInitializeReplicationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const poolChangeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/poolChange", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/poolChange", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body18, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body17, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2720,18 +2644,25 @@ const poolChangeOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - headerParameters: [Parameters.contentType], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const relocateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/relocate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/relocate", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body19, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2739,17 +2670,24 @@ const relocateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - headerParameters: [Parameters.contentType], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const finalizeRelocationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/finalizeRelocation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/finalizeRelocation", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2757,15 +2695,23 @@ const finalizeRelocationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const revertRelocationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revertRelocation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revertRelocation", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2773,27 +2719,30 @@ const revertRelocationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeList + bodyMapper: Mappers.VolumeList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink, Parameters.resourceGroupName, Parameters.accountName, - Parameters.poolName + Parameters.nextLink, + Parameters.poolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/accountBackups.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/accountBackups.ts deleted file mode 100644 index 76a9abaa9f43..000000000000 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/accountBackups.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - Backup, - AccountBackupsListByNetAppAccountOptionalParams, - AccountBackupsGetOptionalParams, - AccountBackupsGetResponse, - AccountBackupsDeleteOptionalParams, - AccountBackupsDeleteResponse -} from "../models"; - -/// -/** Interface representing a AccountBackups. */ -export interface AccountBackups { - /** - * List all Backups for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - listByNetAppAccount( - resourceGroupName: string, - accountName: string, - options?: AccountBackupsListByNetAppAccountOptionalParams - ): PagedAsyncIterableIterator; - /** - * Gets the specified backup for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupName The name of the backup - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - backupName: string, - options?: AccountBackupsGetOptionalParams - ): Promise; - /** - * Delete the specified Backup for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupName The name of the backup - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - accountName: string, - backupName: string, - options?: AccountBackupsDeleteOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - AccountBackupsDeleteResponse - > - >; - /** - * Delete the specified Backup for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupName The name of the backup - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - accountName: string, - backupName: string, - options?: AccountBackupsDeleteOptionalParams - ): Promise; -} diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/accounts.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/accounts.ts index e41cfb16a561..da771b6e975d 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/accounts.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/accounts.ts @@ -21,8 +21,6 @@ import { AccountsUpdateOptionalParams, AccountsUpdateResponse, AccountsRenewCredentialsOptionalParams, - AccountsMigrateEncryptionKeyOptionalParams, - AccountsMigrateEncryptionKeyResponse } from "../models"; /// @@ -33,7 +31,7 @@ export interface Accounts { * @param options The options parameters. */ listBySubscription( - options?: AccountsListBySubscriptionOptionalParams + options?: AccountsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * List and describe all NetApp accounts in the resource group. @@ -42,7 +40,7 @@ export interface Accounts { */ list( resourceGroupName: string, - options?: AccountsListOptionalParams + options?: AccountsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the NetApp account @@ -53,7 +51,7 @@ export interface Accounts { get( resourceGroupName: string, accountName: string, - options?: AccountsGetOptionalParams + options?: AccountsGetOptionalParams, ): Promise; /** * Create or update the specified NetApp account within the resource group @@ -66,7 +64,7 @@ export interface Accounts { resourceGroupName: string, accountName: string, body: NetAppAccount, - options?: AccountsCreateOrUpdateOptionalParams + options?: AccountsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -84,7 +82,7 @@ export interface Accounts { resourceGroupName: string, accountName: string, body: NetAppAccount, - options?: AccountsCreateOrUpdateOptionalParams + options?: AccountsCreateOrUpdateOptionalParams, ): Promise; /** * Delete the specified NetApp account @@ -95,7 +93,7 @@ export interface Accounts { beginDelete( resourceGroupName: string, accountName: string, - options?: AccountsDeleteOptionalParams + options?: AccountsDeleteOptionalParams, ): Promise, void>>; /** * Delete the specified NetApp account @@ -106,7 +104,7 @@ export interface Accounts { beginDeleteAndWait( resourceGroupName: string, accountName: string, - options?: AccountsDeleteOptionalParams + options?: AccountsDeleteOptionalParams, ): Promise; /** * Patch the specified NetApp account @@ -119,7 +117,7 @@ export interface Accounts { resourceGroupName: string, accountName: string, body: NetAppAccountPatch, - options?: AccountsUpdateOptionalParams + options?: AccountsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -137,7 +135,7 @@ export interface Accounts { resourceGroupName: string, accountName: string, body: NetAppAccountPatch, - options?: AccountsUpdateOptionalParams + options?: AccountsUpdateOptionalParams, ): Promise; /** * Renew identity credentials that are used to authenticate to key vault, for customer-managed key @@ -150,7 +148,7 @@ export interface Accounts { beginRenewCredentials( resourceGroupName: string, accountName: string, - options?: AccountsRenewCredentialsOptionalParams + options?: AccountsRenewCredentialsOptionalParams, ): Promise, void>>; /** * Renew identity credentials that are used to authenticate to key vault, for customer-managed key @@ -163,37 +161,6 @@ export interface Accounts { beginRenewCredentialsAndWait( resourceGroupName: string, accountName: string, - options?: AccountsRenewCredentialsOptionalParams + options?: AccountsRenewCredentialsOptionalParams, ): Promise; - /** - * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure - * Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from - * another account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - beginMigrateEncryptionKey( - resourceGroupName: string, - accountName: string, - options?: AccountsMigrateEncryptionKeyOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - AccountsMigrateEncryptionKeyResponse - > - >; - /** - * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure - * Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from - * another account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - beginMigrateEncryptionKeyAndWait( - resourceGroupName: string, - accountName: string, - options?: AccountsMigrateEncryptionKeyOptionalParams - ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupPolicies.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/backupPolicies.ts index 236434347e8b..b0cb669b33a1 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupPolicies.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/backupPolicies.ts @@ -18,7 +18,7 @@ import { BackupPolicyPatch, BackupPoliciesUpdateOptionalParams, BackupPoliciesUpdateResponse, - BackupPoliciesDeleteOptionalParams + BackupPoliciesDeleteOptionalParams, } from "../models"; /// @@ -33,7 +33,7 @@ export interface BackupPolicies { list( resourceGroupName: string, accountName: string, - options?: BackupPoliciesListOptionalParams + options?: BackupPoliciesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a particular backup Policy @@ -46,7 +46,7 @@ export interface BackupPolicies { resourceGroupName: string, accountName: string, backupPolicyName: string, - options?: BackupPoliciesGetOptionalParams + options?: BackupPoliciesGetOptionalParams, ): Promise; /** * Create a backup policy for Netapp Account @@ -61,7 +61,7 @@ export interface BackupPolicies { accountName: string, backupPolicyName: string, body: BackupPolicy, - options?: BackupPoliciesCreateOptionalParams + options?: BackupPoliciesCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -81,7 +81,7 @@ export interface BackupPolicies { accountName: string, backupPolicyName: string, body: BackupPolicy, - options?: BackupPoliciesCreateOptionalParams + options?: BackupPoliciesCreateOptionalParams, ): Promise; /** * Patch a backup policy for Netapp Account @@ -96,7 +96,7 @@ export interface BackupPolicies { accountName: string, backupPolicyName: string, body: BackupPolicyPatch, - options?: BackupPoliciesUpdateOptionalParams + options?: BackupPoliciesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -116,7 +116,7 @@ export interface BackupPolicies { accountName: string, backupPolicyName: string, body: BackupPolicyPatch, - options?: BackupPoliciesUpdateOptionalParams + options?: BackupPoliciesUpdateOptionalParams, ): Promise; /** * Delete backup policy @@ -129,7 +129,7 @@ export interface BackupPolicies { resourceGroupName: string, accountName: string, backupPolicyName: string, - options?: BackupPoliciesDeleteOptionalParams + options?: BackupPoliciesDeleteOptionalParams, ): Promise, void>>; /** * Delete backup policy @@ -142,6 +142,6 @@ export interface BackupPolicies { resourceGroupName: string, accountName: string, backupPolicyName: string, - options?: BackupPoliciesDeleteOptionalParams + options?: BackupPoliciesDeleteOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupVaults.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/backupVaults.ts deleted file mode 100644 index 49a3ab8e7a23..000000000000 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupVaults.ts +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - BackupVault, - BackupVaultsListByNetAppAccountOptionalParams, - BackupVaultsGetOptionalParams, - BackupVaultsGetResponse, - BackupVaultsCreateOrUpdateOptionalParams, - BackupVaultsCreateOrUpdateResponse, - BackupVaultPatch, - BackupVaultsUpdateOptionalParams, - BackupVaultsUpdateResponse, - BackupVaultsDeleteOptionalParams, - BackupVaultsDeleteResponse -} from "../models"; - -/// -/** Interface representing a BackupVaults. */ -export interface BackupVaults { - /** - * List and describe all Backup Vaults in the NetApp account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - listByNetAppAccount( - resourceGroupName: string, - accountName: string, - options?: BackupVaultsListByNetAppAccountOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupVaultsGetOptionalParams - ): Promise; - /** - * Create or update the specified Backup Vault in the NetApp account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param body BackupVault object supplied in the body of the operation. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - body: BackupVault, - options?: BackupVaultsCreateOrUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupVaultsCreateOrUpdateResponse - > - >; - /** - * Create or update the specified Backup Vault in the NetApp account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param body BackupVault object supplied in the body of the operation. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - body: BackupVault, - options?: BackupVaultsCreateOrUpdateOptionalParams - ): Promise; - /** - * Patch the specified NetApp Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param body Backup Vault object supplied in the body of the operation. - * @param options The options parameters. - */ - beginUpdate( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - body: BackupVaultPatch, - options?: BackupVaultsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupVaultsUpdateResponse - > - >; - /** - * Patch the specified NetApp Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param body Backup Vault object supplied in the body of the operation. - * @param options The options parameters. - */ - beginUpdateAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - body: BackupVaultPatch, - options?: BackupVaultsUpdateOptionalParams - ): Promise; - /** - * Delete the specified Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupVaultsDeleteOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupVaultsDeleteResponse - > - >; - /** - * Delete the specified Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupVaultsDeleteOptionalParams - ): Promise; -} diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/backups.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/backups.ts index e799d65beac9..972e1faf79b7 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/backups.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/backups.ts @@ -6,56 +6,13 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { - Backup, - BackupsListByVaultOptionalParams, - BackupsGetLatestStatusOptionalParams, - BackupsGetLatestStatusResponse, BackupsGetVolumeRestoreStatusOptionalParams, BackupsGetVolumeRestoreStatusResponse, - BackupsGetOptionalParams, - BackupsGetResponse, - BackupsCreateOptionalParams, - BackupsCreateResponse, - BackupsUpdateOptionalParams, - BackupsUpdateResponse, - BackupsDeleteOptionalParams, - BackupsDeleteResponse } from "../models"; -/// /** Interface representing a Backups. */ export interface Backups { - /** - * List all backups Under a Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - listByVault( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupsListByVaultOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get the latest status of the backup for a volume - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param options The options parameters. - */ - getLatestStatus( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: BackupsGetLatestStatusOptionalParams - ): Promise; /** * Get the status of the restore for a volume * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -69,130 +26,6 @@ export interface Backups { accountName: string, poolName: string, volumeName: string, - options?: BackupsGetVolumeRestoreStatusOptionalParams + options?: BackupsGetVolumeRestoreStatusOptionalParams, ): Promise; - /** - * Get the specified Backup under Backup Vault. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsGetOptionalParams - ): Promise; - /** - * Create a backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param body Backup object supplied in the body of the operation. - * @param options The options parameters. - */ - beginCreate( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - body: Backup, - options?: BackupsCreateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsCreateResponse - > - >; - /** - * Create a backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param body Backup object supplied in the body of the operation. - * @param options The options parameters. - */ - beginCreateAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - body: Backup, - options?: BackupsCreateOptionalParams - ): Promise; - /** - * Patch a Backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - beginUpdate( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUpdateResponse - > - >; - /** - * Patch a Backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - beginUpdateAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsUpdateOptionalParams - ): Promise; - /** - * Delete a Backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsDeleteOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsDeleteResponse - > - >; - /** - * Delete a Backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsDeleteOptionalParams - ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderAccount.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderAccount.ts deleted file mode 100644 index a33aad6436c9..000000000000 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderAccount.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - BackupsMigrationRequest, - BackupsUnderAccountMigrateBackupsOptionalParams, - BackupsUnderAccountMigrateBackupsResponse -} from "../models"; - -/** Interface representing a BackupsUnderAccount. */ -export interface BackupsUnderAccount { - /** - * Migrate the backups under a NetApp account to backup vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param body Migrate backups under an account payload supplied in the body of the operation. - * @param options The options parameters. - */ - beginMigrateBackups( - resourceGroupName: string, - accountName: string, - body: BackupsMigrationRequest, - options?: BackupsUnderAccountMigrateBackupsOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUnderAccountMigrateBackupsResponse - > - >; - /** - * Migrate the backups under a NetApp account to backup vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param body Migrate backups under an account payload supplied in the body of the operation. - * @param options The options parameters. - */ - beginMigrateBackupsAndWait( - resourceGroupName: string, - accountName: string, - body: BackupsMigrationRequest, - options?: BackupsUnderAccountMigrateBackupsOptionalParams - ): Promise; -} diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderBackupVault.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderBackupVault.ts deleted file mode 100644 index 493f452dccdb..000000000000 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderBackupVault.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - BackupRestoreFiles, - BackupsUnderBackupVaultRestoreFilesOptionalParams, - BackupsUnderBackupVaultRestoreFilesResponse -} from "../models"; - -/** Interface representing a BackupsUnderBackupVault. */ -export interface BackupsUnderBackupVault { - /** - * Restore the specified files from the specified backup to the active filesystem - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param body Restore payload supplied in the body of the operation. - * @param options The options parameters. - */ - beginRestoreFiles( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - body: BackupRestoreFiles, - options?: BackupsUnderBackupVaultRestoreFilesOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUnderBackupVaultRestoreFilesResponse - > - >; - /** - * Restore the specified files from the specified backup to the active filesystem - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param body Restore payload supplied in the body of the operation. - * @param options The options parameters. - */ - beginRestoreFilesAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - body: BackupRestoreFiles, - options?: BackupsUnderBackupVaultRestoreFilesOptionalParams - ): Promise; -} diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderVolume.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderVolume.ts deleted file mode 100644 index 48375bd2d2bb..000000000000 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderVolume.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - BackupsMigrationRequest, - BackupsUnderVolumeMigrateBackupsOptionalParams, - BackupsUnderVolumeMigrateBackupsResponse -} from "../models"; - -/** Interface representing a BackupsUnderVolume. */ -export interface BackupsUnderVolume { - /** - * Migrate the backups under volume to backup vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param body Migrate backups under volume payload supplied in the body of the operation. - * @param options The options parameters. - */ - beginMigrateBackups( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - body: BackupsMigrationRequest, - options?: BackupsUnderVolumeMigrateBackupsOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUnderVolumeMigrateBackupsResponse - > - >; - /** - * Migrate the backups under volume to backup vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param body Migrate backups under volume payload supplied in the body of the operation. - * @param options The options parameters. - */ - beginMigrateBackupsAndWait( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - body: BackupsMigrationRequest, - options?: BackupsUnderVolumeMigrateBackupsOptionalParams - ): Promise; -} diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/index.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/index.ts index 85ac01dc9a6e..3452b163b6da 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/index.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/index.ts @@ -9,19 +9,13 @@ export * from "./operations"; export * from "./netAppResource"; export * from "./netAppResourceQuotaLimits"; -export * from "./netAppResourceRegionInfos"; export * from "./accounts"; export * from "./pools"; export * from "./volumes"; export * from "./snapshots"; export * from "./snapshotPolicies"; export * from "./backups"; -export * from "./accountBackups"; export * from "./backupPolicies"; export * from "./volumeQuotaRules"; export * from "./volumeGroups"; export * from "./subvolumes"; -export * from "./backupVaults"; -export * from "./backupsUnderBackupVault"; -export * from "./backupsUnderVolume"; -export * from "./backupsUnderAccount"; diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResource.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResource.ts index ef0ae7423b66..0769a23448f5 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResource.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResource.ts @@ -22,7 +22,7 @@ import { NetAppResourceQueryNetworkSiblingSetResponse, NetworkFeatures, NetAppResourceUpdateNetworkSiblingSetOptionalParams, - NetAppResourceUpdateNetworkSiblingSetResponse + NetAppResourceUpdateNetworkSiblingSetResponse, } from "../models"; /** Interface representing a NetAppResource. */ @@ -40,7 +40,7 @@ export interface NetAppResource { name: string, typeParam: CheckNameResourceTypes, resourceGroup: string, - options?: NetAppResourceCheckNameAvailabilityOptionalParams + options?: NetAppResourceCheckNameAvailabilityOptionalParams, ): Promise; /** * Check if a file path is available. @@ -54,7 +54,7 @@ export interface NetAppResource { location: string, name: string, subnetId: string, - options?: NetAppResourceCheckFilePathAvailabilityOptionalParams + options?: NetAppResourceCheckFilePathAvailabilityOptionalParams, ): Promise; /** * Check if a quota is available. @@ -69,7 +69,7 @@ export interface NetAppResource { name: string, typeParam: CheckQuotaNameResourceTypes, resourceGroup: string, - options?: NetAppResourceCheckQuotaAvailabilityOptionalParams + options?: NetAppResourceCheckQuotaAvailabilityOptionalParams, ): Promise; /** * Provides storage to network proximity and logical zone mapping information. @@ -78,7 +78,7 @@ export interface NetAppResource { */ queryRegionInfo( location: string, - options?: NetAppResourceQueryRegionInfoOptionalParams + options?: NetAppResourceQueryRegionInfoOptionalParams, ): Promise; /** * Get details of the specified network sibling set. @@ -94,7 +94,7 @@ export interface NetAppResource { location: string, networkSiblingSetId: string, subnetId: string, - options?: NetAppResourceQueryNetworkSiblingSetOptionalParams + options?: NetAppResourceQueryNetworkSiblingSetOptionalParams, ): Promise; /** * Update the network features of the specified network sibling set. @@ -106,7 +106,7 @@ export interface NetAppResource { * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} * @param networkSiblingSetStateId Network sibling set state Id identifying the current state of the * sibling set. - * @param networkFeatures Network features available to the volume + * @param networkFeatures Network features available to the volume, some such * @param options The options parameters. */ beginUpdateNetworkSiblingSet( @@ -115,7 +115,7 @@ export interface NetAppResource { subnetId: string, networkSiblingSetStateId: string, networkFeatures: NetworkFeatures, - options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams + options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -132,7 +132,7 @@ export interface NetAppResource { * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} * @param networkSiblingSetStateId Network sibling set state Id identifying the current state of the * sibling set. - * @param networkFeatures Network features available to the volume + * @param networkFeatures Network features available to the volume, some such * @param options The options parameters. */ beginUpdateNetworkSiblingSetAndWait( @@ -141,6 +141,6 @@ export interface NetAppResource { subnetId: string, networkSiblingSetStateId: string, networkFeatures: NetworkFeatures, - options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams + options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceQuotaLimits.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceQuotaLimits.ts index bea88fbc025c..ef4fc7da424d 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceQuotaLimits.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceQuotaLimits.ts @@ -11,7 +11,7 @@ import { SubscriptionQuotaItem, NetAppResourceQuotaLimitsListOptionalParams, NetAppResourceQuotaLimitsGetOptionalParams, - NetAppResourceQuotaLimitsGetResponse + NetAppResourceQuotaLimitsGetResponse, } from "../models"; /// @@ -24,7 +24,7 @@ export interface NetAppResourceQuotaLimits { */ list( location: string, - options?: NetAppResourceQuotaLimitsListOptionalParams + options?: NetAppResourceQuotaLimitsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the default and current subscription quota limit @@ -35,6 +35,6 @@ export interface NetAppResourceQuotaLimits { get( location: string, quotaLimitName: string, - options?: NetAppResourceQuotaLimitsGetOptionalParams + options?: NetAppResourceQuotaLimitsGetOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceRegionInfos.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceRegionInfos.ts deleted file mode 100644 index 8b96f828710a..000000000000 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceRegionInfos.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - RegionInfoResource, - NetAppResourceRegionInfosListOptionalParams, - NetAppResourceRegionInfosGetOptionalParams, - NetAppResourceRegionInfosGetResponse -} from "../models"; - -/// -/** Interface representing a NetAppResourceRegionInfos. */ -export interface NetAppResourceRegionInfos { - /** - * Provides region specific information. - * @param location The name of the Azure region. - * @param options The options parameters. - */ - list( - location: string, - options?: NetAppResourceRegionInfosListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Provides storage to network proximity and logical zone mapping information. - * @param location The name of the Azure region. - * @param options The options parameters. - */ - get( - location: string, - options?: NetAppResourceRegionInfosGetOptionalParams - ): Promise; -} diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/operations.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/operations.ts index 2f1bec7ad1eb..d4637711f181 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/operations.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/operations.ts @@ -17,6 +17,6 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/pools.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/pools.ts index e078fd280e99..4c122b5c6b41 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/pools.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/pools.ts @@ -18,7 +18,7 @@ import { CapacityPoolPatch, PoolsUpdateOptionalParams, PoolsUpdateResponse, - PoolsDeleteOptionalParams + PoolsDeleteOptionalParams, } from "../models"; /// @@ -33,7 +33,7 @@ export interface Pools { list( resourceGroupName: string, accountName: string, - options?: PoolsListOptionalParams + options?: PoolsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get details of the specified capacity pool @@ -46,7 +46,7 @@ export interface Pools { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolsGetOptionalParams + options?: PoolsGetOptionalParams, ): Promise; /** * Create or Update a capacity pool @@ -61,7 +61,7 @@ export interface Pools { accountName: string, poolName: string, body: CapacityPool, - options?: PoolsCreateOrUpdateOptionalParams + options?: PoolsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -81,7 +81,7 @@ export interface Pools { accountName: string, poolName: string, body: CapacityPool, - options?: PoolsCreateOrUpdateOptionalParams + options?: PoolsCreateOrUpdateOptionalParams, ): Promise; /** * Patch the specified capacity pool @@ -96,7 +96,7 @@ export interface Pools { accountName: string, poolName: string, body: CapacityPoolPatch, - options?: PoolsUpdateOptionalParams + options?: PoolsUpdateOptionalParams, ): Promise< SimplePollerLike, PoolsUpdateResponse> >; @@ -113,7 +113,7 @@ export interface Pools { accountName: string, poolName: string, body: CapacityPoolPatch, - options?: PoolsUpdateOptionalParams + options?: PoolsUpdateOptionalParams, ): Promise; /** * Delete the specified capacity pool @@ -126,7 +126,7 @@ export interface Pools { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolsDeleteOptionalParams + options?: PoolsDeleteOptionalParams, ): Promise, void>>; /** * Delete the specified capacity pool @@ -139,6 +139,6 @@ export interface Pools { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolsDeleteOptionalParams + options?: PoolsDeleteOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshotPolicies.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshotPolicies.ts index 766050503ef7..f064853e49e5 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshotPolicies.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshotPolicies.ts @@ -20,7 +20,7 @@ import { SnapshotPoliciesUpdateResponse, SnapshotPoliciesDeleteOptionalParams, SnapshotPoliciesListVolumesOptionalParams, - SnapshotPoliciesListVolumesResponse + SnapshotPoliciesListVolumesResponse, } from "../models"; /// @@ -35,7 +35,7 @@ export interface SnapshotPolicies { list( resourceGroupName: string, accountName: string, - options?: SnapshotPoliciesListOptionalParams + options?: SnapshotPoliciesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a snapshot Policy @@ -48,7 +48,7 @@ export interface SnapshotPolicies { resourceGroupName: string, accountName: string, snapshotPolicyName: string, - options?: SnapshotPoliciesGetOptionalParams + options?: SnapshotPoliciesGetOptionalParams, ): Promise; /** * Create a snapshot policy @@ -63,7 +63,7 @@ export interface SnapshotPolicies { accountName: string, snapshotPolicyName: string, body: SnapshotPolicy, - options?: SnapshotPoliciesCreateOptionalParams + options?: SnapshotPoliciesCreateOptionalParams, ): Promise; /** * Patch a snapshot policy @@ -78,7 +78,7 @@ export interface SnapshotPolicies { accountName: string, snapshotPolicyName: string, body: SnapshotPolicyPatch, - options?: SnapshotPoliciesUpdateOptionalParams + options?: SnapshotPoliciesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -98,7 +98,7 @@ export interface SnapshotPolicies { accountName: string, snapshotPolicyName: string, body: SnapshotPolicyPatch, - options?: SnapshotPoliciesUpdateOptionalParams + options?: SnapshotPoliciesUpdateOptionalParams, ): Promise; /** * Delete snapshot policy @@ -111,7 +111,7 @@ export interface SnapshotPolicies { resourceGroupName: string, accountName: string, snapshotPolicyName: string, - options?: SnapshotPoliciesDeleteOptionalParams + options?: SnapshotPoliciesDeleteOptionalParams, ): Promise, void>>; /** * Delete snapshot policy @@ -124,7 +124,7 @@ export interface SnapshotPolicies { resourceGroupName: string, accountName: string, snapshotPolicyName: string, - options?: SnapshotPoliciesDeleteOptionalParams + options?: SnapshotPoliciesDeleteOptionalParams, ): Promise; /** * Get volumes associated with snapshot policy @@ -137,6 +137,6 @@ export interface SnapshotPolicies { resourceGroupName: string, accountName: string, snapshotPolicyName: string, - options?: SnapshotPoliciesListVolumesOptionalParams + options?: SnapshotPoliciesListVolumesOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshots.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshots.ts index b2ceadcfa1b9..bb8252aaca3a 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshots.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshots.ts @@ -19,7 +19,7 @@ import { SnapshotsUpdateResponse, SnapshotsDeleteOptionalParams, SnapshotRestoreFiles, - SnapshotsRestoreFilesOptionalParams + SnapshotsRestoreFilesOptionalParams, } from "../models"; /// @@ -38,7 +38,7 @@ export interface Snapshots { accountName: string, poolName: string, volumeName: string, - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get details of the specified snapshot @@ -55,7 +55,7 @@ export interface Snapshots { poolName: string, volumeName: string, snapshotName: string, - options?: SnapshotsGetOptionalParams + options?: SnapshotsGetOptionalParams, ): Promise; /** * Create the specified snapshot within the given volume @@ -74,7 +74,7 @@ export interface Snapshots { volumeName: string, snapshotName: string, body: Snapshot, - options?: SnapshotsCreateOptionalParams + options?: SnapshotsCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -98,7 +98,7 @@ export interface Snapshots { volumeName: string, snapshotName: string, body: Snapshot, - options?: SnapshotsCreateOptionalParams + options?: SnapshotsCreateOptionalParams, ): Promise; /** * Patch a snapshot @@ -117,7 +117,7 @@ export interface Snapshots { volumeName: string, snapshotName: string, body: Record, - options?: SnapshotsUpdateOptionalParams + options?: SnapshotsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -141,7 +141,7 @@ export interface Snapshots { volumeName: string, snapshotName: string, body: Record, - options?: SnapshotsUpdateOptionalParams + options?: SnapshotsUpdateOptionalParams, ): Promise; /** * Delete snapshot @@ -158,7 +158,7 @@ export interface Snapshots { poolName: string, volumeName: string, snapshotName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise, void>>; /** * Delete snapshot @@ -175,7 +175,7 @@ export interface Snapshots { poolName: string, volumeName: string, snapshotName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise; /** * Restore the specified files from the specified snapshot to the active filesystem @@ -194,7 +194,7 @@ export interface Snapshots { volumeName: string, snapshotName: string, body: SnapshotRestoreFiles, - options?: SnapshotsRestoreFilesOptionalParams + options?: SnapshotsRestoreFilesOptionalParams, ): Promise, void>>; /** * Restore the specified files from the specified snapshot to the active filesystem @@ -213,6 +213,6 @@ export interface Snapshots { volumeName: string, snapshotName: string, body: SnapshotRestoreFiles, - options?: SnapshotsRestoreFilesOptionalParams + options?: SnapshotsRestoreFilesOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/subvolumes.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/subvolumes.ts index 330fa9e4be94..becb5149c5f2 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/subvolumes.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/subvolumes.ts @@ -20,7 +20,7 @@ import { SubvolumesUpdateResponse, SubvolumesDeleteOptionalParams, SubvolumesGetMetadataOptionalParams, - SubvolumesGetMetadataResponse + SubvolumesGetMetadataResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export interface Subvolumes { accountName: string, poolName: string, volumeName: string, - options?: SubvolumesListByVolumeOptionalParams + options?: SubvolumesListByVolumeOptionalParams, ): PagedAsyncIterableIterator; /** * Returns the path associated with the subvolumeName provided @@ -56,7 +56,7 @@ export interface Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesGetOptionalParams + options?: SubvolumesGetOptionalParams, ): Promise; /** * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath @@ -75,7 +75,7 @@ export interface Subvolumes { volumeName: string, subvolumeName: string, body: SubvolumeInfo, - options?: SubvolumesCreateOptionalParams + options?: SubvolumesCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -99,7 +99,7 @@ export interface Subvolumes { volumeName: string, subvolumeName: string, body: SubvolumeInfo, - options?: SubvolumesCreateOptionalParams + options?: SubvolumesCreateOptionalParams, ): Promise; /** * Patch a subvolume @@ -118,7 +118,7 @@ export interface Subvolumes { volumeName: string, subvolumeName: string, body: SubvolumePatchRequest, - options?: SubvolumesUpdateOptionalParams + options?: SubvolumesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -142,7 +142,7 @@ export interface Subvolumes { volumeName: string, subvolumeName: string, body: SubvolumePatchRequest, - options?: SubvolumesUpdateOptionalParams + options?: SubvolumesUpdateOptionalParams, ): Promise; /** * Delete subvolume @@ -159,7 +159,7 @@ export interface Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesDeleteOptionalParams + options?: SubvolumesDeleteOptionalParams, ): Promise, void>>; /** * Delete subvolume @@ -176,7 +176,7 @@ export interface Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesDeleteOptionalParams + options?: SubvolumesDeleteOptionalParams, ): Promise; /** * Get details of the specified subvolume @@ -193,7 +193,7 @@ export interface Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesGetMetadataOptionalParams + options?: SubvolumesGetMetadataOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -215,6 +215,6 @@ export interface Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesGetMetadataOptionalParams + options?: SubvolumesGetMetadataOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeGroups.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeGroups.ts index b82b1bf2e349..263db8d580cc 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeGroups.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeGroups.ts @@ -16,7 +16,7 @@ import { VolumeGroupDetails, VolumeGroupsCreateOptionalParams, VolumeGroupsCreateResponse, - VolumeGroupsDeleteOptionalParams + VolumeGroupsDeleteOptionalParams, } from "../models"; /// @@ -31,7 +31,7 @@ export interface VolumeGroups { listByNetAppAccount( resourceGroupName: string, accountName: string, - options?: VolumeGroupsListByNetAppAccountOptionalParams + options?: VolumeGroupsListByNetAppAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Get details of the specified volume group @@ -44,7 +44,7 @@ export interface VolumeGroups { resourceGroupName: string, accountName: string, volumeGroupName: string, - options?: VolumeGroupsGetOptionalParams + options?: VolumeGroupsGetOptionalParams, ): Promise; /** * Create a volume group along with specified volumes @@ -59,7 +59,7 @@ export interface VolumeGroups { accountName: string, volumeGroupName: string, body: VolumeGroupDetails, - options?: VolumeGroupsCreateOptionalParams + options?: VolumeGroupsCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -79,7 +79,7 @@ export interface VolumeGroups { accountName: string, volumeGroupName: string, body: VolumeGroupDetails, - options?: VolumeGroupsCreateOptionalParams + options?: VolumeGroupsCreateOptionalParams, ): Promise; /** * Delete the specified volume group only if there are no volumes under volume group. @@ -92,7 +92,7 @@ export interface VolumeGroups { resourceGroupName: string, accountName: string, volumeGroupName: string, - options?: VolumeGroupsDeleteOptionalParams + options?: VolumeGroupsDeleteOptionalParams, ): Promise, void>>; /** * Delete the specified volume group only if there are no volumes under volume group. @@ -105,6 +105,6 @@ export interface VolumeGroups { resourceGroupName: string, accountName: string, volumeGroupName: string, - options?: VolumeGroupsDeleteOptionalParams + options?: VolumeGroupsDeleteOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeQuotaRules.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeQuotaRules.ts index 9595a483d298..35a1455f8256 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeQuotaRules.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeQuotaRules.ts @@ -18,7 +18,7 @@ import { VolumeQuotaRulePatch, VolumeQuotaRulesUpdateOptionalParams, VolumeQuotaRulesUpdateResponse, - VolumeQuotaRulesDeleteOptionalParams + VolumeQuotaRulesDeleteOptionalParams, } from "../models"; /// @@ -37,7 +37,7 @@ export interface VolumeQuotaRules { accountName: string, poolName: string, volumeName: string, - options?: VolumeQuotaRulesListByVolumeOptionalParams + options?: VolumeQuotaRulesListByVolumeOptionalParams, ): PagedAsyncIterableIterator; /** * Get details of the specified quota rule @@ -54,7 +54,7 @@ export interface VolumeQuotaRules { poolName: string, volumeName: string, volumeQuotaRuleName: string, - options?: VolumeQuotaRulesGetOptionalParams + options?: VolumeQuotaRulesGetOptionalParams, ): Promise; /** * Create the specified quota rule within the given volume @@ -73,7 +73,7 @@ export interface VolumeQuotaRules { volumeName: string, volumeQuotaRuleName: string, body: VolumeQuotaRule, - options?: VolumeQuotaRulesCreateOptionalParams + options?: VolumeQuotaRulesCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -97,7 +97,7 @@ export interface VolumeQuotaRules { volumeName: string, volumeQuotaRuleName: string, body: VolumeQuotaRule, - options?: VolumeQuotaRulesCreateOptionalParams + options?: VolumeQuotaRulesCreateOptionalParams, ): Promise; /** * Patch a quota rule @@ -116,7 +116,7 @@ export interface VolumeQuotaRules { volumeName: string, volumeQuotaRuleName: string, body: VolumeQuotaRulePatch, - options?: VolumeQuotaRulesUpdateOptionalParams + options?: VolumeQuotaRulesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -140,7 +140,7 @@ export interface VolumeQuotaRules { volumeName: string, volumeQuotaRuleName: string, body: VolumeQuotaRulePatch, - options?: VolumeQuotaRulesUpdateOptionalParams + options?: VolumeQuotaRulesUpdateOptionalParams, ): Promise; /** * Delete quota rule @@ -157,7 +157,7 @@ export interface VolumeQuotaRules { poolName: string, volumeName: string, volumeQuotaRuleName: string, - options?: VolumeQuotaRulesDeleteOptionalParams + options?: VolumeQuotaRulesDeleteOptionalParams, ): Promise, void>>; /** * Delete quota rule @@ -174,6 +174,6 @@ export interface VolumeQuotaRules { poolName: string, volumeName: string, volumeQuotaRuleName: string, - options?: VolumeQuotaRulesDeleteOptionalParams + options?: VolumeQuotaRulesDeleteOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumes.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumes.ts index ef8cff8d1323..cfbeb257dc2c 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumes.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumes.ts @@ -27,8 +27,6 @@ import { VolumesRevertOptionalParams, VolumesResetCifsPasswordOptionalParams, VolumesResetCifsPasswordResponse, - VolumesSplitCloneFromParentOptionalParams, - VolumesSplitCloneFromParentResponse, VolumesBreakFileLocksOptionalParams, GetGroupIdListForLdapUserRequest, VolumesListGetGroupIdListForLdapUserOptionalParams, @@ -47,7 +45,7 @@ import { VolumesPoolChangeOptionalParams, VolumesRelocateOptionalParams, VolumesFinalizeRelocationOptionalParams, - VolumesRevertRelocationOptionalParams + VolumesRevertRelocationOptionalParams, } from "../models"; /// @@ -64,7 +62,7 @@ export interface Volumes { resourceGroupName: string, accountName: string, poolName: string, - options?: VolumesListOptionalParams + options?: VolumesListOptionalParams, ): PagedAsyncIterableIterator; /** * List all replications for a specified volume @@ -79,7 +77,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesListReplicationsOptionalParams + options?: VolumesListReplicationsOptionalParams, ): PagedAsyncIterableIterator; /** * Get the details of the specified volume @@ -94,7 +92,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesGetOptionalParams + options?: VolumesGetOptionalParams, ): Promise; /** * Create or update the specified volume within the capacity pool @@ -111,7 +109,7 @@ export interface Volumes { poolName: string, volumeName: string, body: Volume, - options?: VolumesCreateOrUpdateOptionalParams + options?: VolumesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -133,7 +131,7 @@ export interface Volumes { poolName: string, volumeName: string, body: Volume, - options?: VolumesCreateOrUpdateOptionalParams + options?: VolumesCreateOrUpdateOptionalParams, ): Promise; /** * Patch the specified volume @@ -150,7 +148,7 @@ export interface Volumes { poolName: string, volumeName: string, body: VolumePatch, - options?: VolumesUpdateOptionalParams + options?: VolumesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -172,7 +170,7 @@ export interface Volumes { poolName: string, volumeName: string, body: VolumePatch, - options?: VolumesUpdateOptionalParams + options?: VolumesUpdateOptionalParams, ): Promise; /** * Delete the specified volume @@ -187,7 +185,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesDeleteOptionalParams + options?: VolumesDeleteOptionalParams, ): Promise, void>>; /** * Delete the specified volume @@ -202,7 +200,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesDeleteOptionalParams + options?: VolumesDeleteOptionalParams, ): Promise; /** * This operation will populate availability zone information for a volume @@ -217,7 +215,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesPopulateAvailabilityZoneOptionalParams + options?: VolumesPopulateAvailabilityZoneOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -237,7 +235,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesPopulateAvailabilityZoneOptionalParams + options?: VolumesPopulateAvailabilityZoneOptionalParams, ): Promise; /** * Revert a volume to the snapshot specified in the body @@ -254,7 +252,7 @@ export interface Volumes { poolName: string, volumeName: string, body: VolumeRevert, - options?: VolumesRevertOptionalParams + options?: VolumesRevertOptionalParams, ): Promise, void>>; /** * Revert a volume to the snapshot specified in the body @@ -271,7 +269,7 @@ export interface Volumes { poolName: string, volumeName: string, body: VolumeRevert, - options?: VolumesRevertOptionalParams + options?: VolumesRevertOptionalParams, ): Promise; /** * Reset cifs password from volume @@ -286,7 +284,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesResetCifsPasswordOptionalParams + options?: VolumesResetCifsPasswordOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -306,43 +304,8 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesResetCifsPasswordOptionalParams + options?: VolumesResetCifsPasswordOptionalParams, ): Promise; - /** - * Split operation to convert clone volume to an independent volume. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param options The options parameters. - */ - beginSplitCloneFromParent( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: VolumesSplitCloneFromParentOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - VolumesSplitCloneFromParentResponse - > - >; - /** - * Split operation to convert clone volume to an independent volume. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param options The options parameters. - */ - beginSplitCloneFromParentAndWait( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: VolumesSplitCloneFromParentOptionalParams - ): Promise; /** * Break all the file locks on a volume * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -356,7 +319,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesBreakFileLocksOptionalParams + options?: VolumesBreakFileLocksOptionalParams, ): Promise, void>>; /** * Break all the file locks on a volume @@ -371,7 +334,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesBreakFileLocksOptionalParams + options?: VolumesBreakFileLocksOptionalParams, ): Promise; /** * Returns the list of group Ids for a specific LDAP User @@ -388,7 +351,7 @@ export interface Volumes { poolName: string, volumeName: string, body: GetGroupIdListForLdapUserRequest, - options?: VolumesListGetGroupIdListForLdapUserOptionalParams + options?: VolumesListGetGroupIdListForLdapUserOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -410,7 +373,7 @@ export interface Volumes { poolName: string, volumeName: string, body: GetGroupIdListForLdapUserRequest, - options?: VolumesListGetGroupIdListForLdapUserOptionalParams + options?: VolumesListGetGroupIdListForLdapUserOptionalParams, ): Promise; /** * Break the replication connection on the destination volume @@ -425,7 +388,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesBreakReplicationOptionalParams + options?: VolumesBreakReplicationOptionalParams, ): Promise, void>>; /** * Break the replication connection on the destination volume @@ -440,7 +403,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesBreakReplicationOptionalParams + options?: VolumesBreakReplicationOptionalParams, ): Promise; /** * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or @@ -458,7 +421,7 @@ export interface Volumes { poolName: string, volumeName: string, body: ReestablishReplicationRequest, - options?: VolumesReestablishReplicationOptionalParams + options?: VolumesReestablishReplicationOptionalParams, ): Promise, void>>; /** * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or @@ -476,7 +439,7 @@ export interface Volumes { poolName: string, volumeName: string, body: ReestablishReplicationRequest, - options?: VolumesReestablishReplicationOptionalParams + options?: VolumesReestablishReplicationOptionalParams, ): Promise; /** * Get the status of the replication @@ -491,7 +454,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesReplicationStatusOptionalParams + options?: VolumesReplicationStatusOptionalParams, ): Promise; /** * Resync the connection on the destination volume. If the operation is ran on the source volume it @@ -507,7 +470,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesResyncReplicationOptionalParams + options?: VolumesResyncReplicationOptionalParams, ): Promise, void>>; /** * Resync the connection on the destination volume. If the operation is ran on the source volume it @@ -523,7 +486,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesResyncReplicationOptionalParams + options?: VolumesResyncReplicationOptionalParams, ): Promise; /** * Delete the replication connection on the destination volume, and send release to the source @@ -539,7 +502,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesDeleteReplicationOptionalParams + options?: VolumesDeleteReplicationOptionalParams, ): Promise, void>>; /** * Delete the replication connection on the destination volume, and send release to the source @@ -555,7 +518,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesDeleteReplicationOptionalParams + options?: VolumesDeleteReplicationOptionalParams, ): Promise; /** * Authorize the replication connection on the source volume @@ -572,7 +535,7 @@ export interface Volumes { poolName: string, volumeName: string, body: AuthorizeRequest, - options?: VolumesAuthorizeReplicationOptionalParams + options?: VolumesAuthorizeReplicationOptionalParams, ): Promise, void>>; /** * Authorize the replication connection on the source volume @@ -589,7 +552,7 @@ export interface Volumes { poolName: string, volumeName: string, body: AuthorizeRequest, - options?: VolumesAuthorizeReplicationOptionalParams + options?: VolumesAuthorizeReplicationOptionalParams, ): Promise; /** * Re-Initializes the replication connection on the destination volume @@ -604,7 +567,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesReInitializeReplicationOptionalParams + options?: VolumesReInitializeReplicationOptionalParams, ): Promise, void>>; /** * Re-Initializes the replication connection on the destination volume @@ -619,7 +582,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesReInitializeReplicationOptionalParams + options?: VolumesReInitializeReplicationOptionalParams, ): Promise; /** * Moves volume to another pool @@ -636,7 +599,7 @@ export interface Volumes { poolName: string, volumeName: string, body: PoolChangeRequest, - options?: VolumesPoolChangeOptionalParams + options?: VolumesPoolChangeOptionalParams, ): Promise, void>>; /** * Moves volume to another pool @@ -653,7 +616,7 @@ export interface Volumes { poolName: string, volumeName: string, body: PoolChangeRequest, - options?: VolumesPoolChangeOptionalParams + options?: VolumesPoolChangeOptionalParams, ): Promise; /** * Relocates volume to a new stamp @@ -668,7 +631,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesRelocateOptionalParams + options?: VolumesRelocateOptionalParams, ): Promise, void>>; /** * Relocates volume to a new stamp @@ -683,7 +646,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesRelocateOptionalParams + options?: VolumesRelocateOptionalParams, ): Promise; /** * Finalizes the relocation of the volume and cleans up the old volume. @@ -698,7 +661,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesFinalizeRelocationOptionalParams + options?: VolumesFinalizeRelocationOptionalParams, ): Promise, void>>; /** * Finalizes the relocation of the volume and cleans up the old volume. @@ -713,7 +676,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesFinalizeRelocationOptionalParams + options?: VolumesFinalizeRelocationOptionalParams, ): Promise; /** * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing @@ -729,7 +692,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesRevertRelocationOptionalParams + options?: VolumesRevertRelocationOptionalParams, ): Promise, void>>; /** * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing @@ -745,6 +708,6 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesRevertRelocationOptionalParams + options?: VolumesRevertRelocationOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/pagingHelper.ts b/sdk/netapp/arm-netapp/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/netapp/arm-netapp/src/pagingHelper.ts +++ b/sdk/netapp/arm-netapp/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/nginx/arm-nginx/CHANGELOG.md b/sdk/nginx/arm-nginx/CHANGELOG.md index 1332f0ed0511..37f2c0de90ad 100644 --- a/sdk/nginx/arm-nginx/CHANGELOG.md +++ b/sdk/nginx/arm-nginx/CHANGELOG.md @@ -1,15 +1,36 @@ # Release History + +## 4.0.0-beta.1 (2024-03-18) + +**Features** -## 3.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added operation Configurations.analysis + - Added Interface AnalysisCreate + - Added Interface AnalysisCreateConfig + - Added Interface AnalysisDiagnostic + - Added Interface AnalysisResult + - Added Interface AnalysisResultData + - Added Interface AutoUpgradeProfile + - Added Interface ConfigurationsAnalysisOptionalParams + - Added Interface ErrorAdditionalInfo + - Added Interface ErrorDetail + - Added Interface NginxCertificateErrorResponseBody + - Added Interface ScaleProfile + - Added Interface ScaleProfileCapacity + - Added Type Alias ConfigurationsAnalysisResponse + - Interface NginxCertificateProperties has a new optional parameter certificateError + - Interface NginxCertificateProperties has a new optional parameter keyVaultSecretCreated + - Interface NginxCertificateProperties has a new optional parameter keyVaultSecretVersion + - Interface NginxCertificateProperties has a new optional parameter sha1Thumbprint + - Interface NginxDeploymentProperties has a new optional parameter autoUpgradeProfile + - Interface NginxDeploymentScalingProperties has a new optional parameter profiles + - Interface NginxDeploymentUpdateProperties has a new optional parameter autoUpgradeProfile -### Other Changes +**Breaking Changes** + - Type of parameter error of interface ResourceProviderDefaultErrorResponse is changed from ErrorResponseBody to ErrorDetail + + ## 3.0.0 (2023-11-09) **Features** diff --git a/sdk/nginx/arm-nginx/LICENSE b/sdk/nginx/arm-nginx/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/nginx/arm-nginx/LICENSE +++ b/sdk/nginx/arm-nginx/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/nginx/arm-nginx/README.md b/sdk/nginx/arm-nginx/README.md index 82ee43fb0818..3c0dc347d836 100644 --- a/sdk/nginx/arm-nginx/README.md +++ b/sdk/nginx/arm-nginx/README.md @@ -6,7 +6,7 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/nginx/arm-nginx) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-nginx) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-nginx) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-nginx?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/nginx/arm-nginx/_meta.json b/sdk/nginx/arm-nginx/_meta.json index 8585cdb39496..8573a4c4aa51 100644 --- a/sdk/nginx/arm-nginx/_meta.json +++ b/sdk/nginx/arm-nginx/_meta.json @@ -1,8 +1,8 @@ { - "commit": "ed84b11847785792767b0b84cc6f98f4ea08ca77", + "commit": "9fb75a3c4ca9b753271bd6db2e42e5f98366cbae", "readme": "specification/nginx/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\nginx\\resource-manager\\readme.md --use=@autorest/typescript@6.0.12 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\nginx\\resource-manager\\readme.md --use=@autorest/typescript@6.0.17 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", - "use": "@autorest/typescript@6.0.12" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", + "use": "@autorest/typescript@6.0.17" } \ No newline at end of file diff --git a/sdk/nginx/arm-nginx/assets.json b/sdk/nginx/arm-nginx/assets.json index 268954478b8a..327acdb8aea8 100644 --- a/sdk/nginx/arm-nginx/assets.json +++ b/sdk/nginx/arm-nginx/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/nginx/arm-nginx", - "Tag": "js/nginx/arm-nginx_94207fccaa" + "Tag": "js/nginx/arm-nginx_ef5d73eeb4" } diff --git a/sdk/nginx/arm-nginx/package.json b/sdk/nginx/arm-nginx/package.json index b7cb5d2445d0..e8f2ade72648 100644 --- a/sdk/nginx/arm-nginx/package.json +++ b/sdk/nginx/arm-nginx/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for NginxManagementClient.", - "version": "3.0.1", + "version": "4.0.0-beta.1", "engines": { "node": ">=18.0.0" }, @@ -12,8 +12,8 @@ "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.12.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -78,7 +78,6 @@ "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -116,4 +115,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-nginx?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/nginx/arm-nginx/review/arm-nginx.api.md b/sdk/nginx/arm-nginx/review/arm-nginx.api.md index fda06842b87e..17140ce9c3e2 100644 --- a/sdk/nginx/arm-nginx/review/arm-nginx.api.md +++ b/sdk/nginx/arm-nginx/review/arm-nginx.api.md @@ -10,6 +10,57 @@ import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { SimplePollerLike } from '@azure/core-lro'; +// @public +export interface AnalysisCreate { + // (undocumented) + config: AnalysisCreateConfig; +} + +// @public (undocumented) +export interface AnalysisCreateConfig { + // (undocumented) + files?: NginxConfigurationFile[]; + // (undocumented) + package?: NginxConfigurationPackage; + // (undocumented) + protectedFiles?: NginxConfigurationFile[]; + rootFile?: string; +} + +// @public +export interface AnalysisDiagnostic { + // (undocumented) + description: string; + // (undocumented) + directive: string; + file: string; + id?: string; + // (undocumented) + line: number; + // (undocumented) + message: string; + // (undocumented) + rule: string; +} + +// @public +export interface AnalysisResult { + // (undocumented) + data?: AnalysisResultData; + status: string; +} + +// @public (undocumented) +export interface AnalysisResultData { + // (undocumented) + errors?: AnalysisDiagnostic[]; +} + +// @public +export interface AutoUpgradeProfile { + upgradeChannel: string; +} + // @public export interface Certificates { beginCreateOrUpdate(resourceGroupName: string, deploymentName: string, certificateName: string, options?: CertificatesCreateOrUpdateOptionalParams): Promise, CertificatesCreateOrUpdateResponse>>; @@ -59,6 +110,7 @@ export type CertificatesListResponse = NginxCertificateListResponse; // @public export interface Configurations { + analysis(resourceGroupName: string, deploymentName: string, configurationName: string, options?: ConfigurationsAnalysisOptionalParams): Promise; beginCreateOrUpdate(resourceGroupName: string, deploymentName: string, configurationName: string, options?: ConfigurationsCreateOrUpdateOptionalParams): Promise, ConfigurationsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, deploymentName: string, configurationName: string, options?: ConfigurationsCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, deploymentName: string, configurationName: string, options?: ConfigurationsDeleteOptionalParams): Promise, void>>; @@ -67,6 +119,14 @@ export interface Configurations { list(resourceGroupName: string, deploymentName: string, options?: ConfigurationsListOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface ConfigurationsAnalysisOptionalParams extends coreClient.OperationOptions { + body?: AnalysisCreate; +} + +// @public +export type ConfigurationsAnalysisResponse = AnalysisResult; + // @public export interface ConfigurationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { body?: NginxConfiguration; @@ -183,16 +243,19 @@ export interface DeploymentsUpdateOptionalParams extends coreClient.OperationOpt // @public export type DeploymentsUpdateResponse = NginxDeployment; -// @public (undocumented) -export interface ErrorResponseBody { - // (undocumented) - code?: string; - // (undocumented) - details?: ErrorResponseBody[]; - // (undocumented) - message?: string; - // (undocumented) - target?: string; +// @public +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} + +// @public +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; } // @public @@ -259,6 +322,14 @@ export interface NginxCertificate { readonly type?: string; } +// @public (undocumented) +export interface NginxCertificateErrorResponseBody { + // (undocumented) + code?: string; + // (undocumented) + message?: string; +} + // @public (undocumented) export interface NginxCertificateListResponse { // (undocumented) @@ -269,13 +340,18 @@ export interface NginxCertificateListResponse { // @public (undocumented) export interface NginxCertificateProperties { + // (undocumented) + certificateError?: NginxCertificateErrorResponseBody; // (undocumented) certificateVirtualPath?: string; + readonly keyVaultSecretCreated?: Date; // (undocumented) keyVaultSecretId?: string; + readonly keyVaultSecretVersion?: string; // (undocumented) keyVirtualPath?: string; readonly provisioningState?: ProvisioningState; + readonly sha1Thumbprint?: string; } // @public (undocumented) @@ -354,6 +430,7 @@ export interface NginxDeploymentListResponse { // @public (undocumented) export interface NginxDeploymentProperties { + autoUpgradeProfile?: AutoUpgradeProfile; // (undocumented) enableDiagnosticsSupport?: boolean; readonly ipAddress?: string; @@ -364,16 +441,17 @@ export interface NginxDeploymentProperties { networkProfile?: NginxNetworkProfile; readonly nginxVersion?: string; readonly provisioningState?: ProvisioningState; - // (undocumented) scalingProperties?: NginxDeploymentScalingProperties; // (undocumented) userProfile?: NginxDeploymentUserProfile; } -// @public (undocumented) +// @public export interface NginxDeploymentScalingProperties { // (undocumented) capacity?: number; + // (undocumented) + profiles?: ScaleProfile[]; } // @public (undocumented) @@ -393,11 +471,11 @@ export interface NginxDeploymentUpdateParameters { // @public (undocumented) export interface NginxDeploymentUpdateProperties { + autoUpgradeProfile?: AutoUpgradeProfile; // (undocumented) enableDiagnosticsSupport?: boolean; // (undocumented) logging?: NginxLogging; - // (undocumented) scalingProperties?: NginxDeploymentScalingProperties; // (undocumented) userProfile?: NginxDeploymentUserProfile; @@ -534,8 +612,7 @@ export type ProvisioningState = string; // @public (undocumented) export interface ResourceProviderDefaultErrorResponse { - // (undocumented) - error?: ErrorResponseBody; + error?: ErrorDetail; } // @public (undocumented) @@ -543,6 +620,19 @@ export interface ResourceSku { name: string; } +// @public +export interface ScaleProfile { + capacity: ScaleProfileCapacity; + // (undocumented) + name: string; +} + +// @public +export interface ScaleProfileCapacity { + max: number; + min: number; +} + // @public export interface SystemData { createdAt?: Date; diff --git a/sdk/nginx/arm-nginx/samples-dev/certificatesCreateOrUpdateSample.ts b/sdk/nginx/arm-nginx/samples-dev/certificatesCreateOrUpdateSample.ts index dfb185b92a48..0fb4f322de27 100644 --- a/sdk/nginx/arm-nginx/samples-dev/certificatesCreateOrUpdateSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/certificatesCreateOrUpdateSample.ts @@ -8,7 +8,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { NginxManagementClient } from "@azure/arm-nginx"; +import { + NginxCertificate, + CertificatesCreateOrUpdateOptionalParams, + NginxManagementClient, +} from "@azure/arm-nginx"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -18,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Create or update the NGINX certificates for given NGINX deployment * * @summary Create or update the NGINX certificates for given NGINX deployment - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Certificates_CreateOrUpdate.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_CreateOrUpdate.json */ async function certificatesCreateOrUpdate() { const subscriptionId = @@ -28,12 +32,21 @@ async function certificatesCreateOrUpdate() { process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; const deploymentName = "myDeployment"; const certificateName = "default"; + const body: NginxCertificate = { + properties: { + certificateVirtualPath: "/src/cert/somePath.cert", + keyVaultSecretId: "https://someKV.vault.azure.com/someSecretID", + keyVirtualPath: "/src/cert/somekey.key", + }, + }; + const options: CertificatesCreateOrUpdateOptionalParams = { body }; const credential = new DefaultAzureCredential(); const client = new NginxManagementClient(credential, subscriptionId); const result = await client.certificates.beginCreateOrUpdateAndWait( resourceGroupName, deploymentName, - certificateName + certificateName, + options, ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples-dev/certificatesDeleteSample.ts b/sdk/nginx/arm-nginx/samples-dev/certificatesDeleteSample.ts index 64ee12c55b6a..d387b2637692 100644 --- a/sdk/nginx/arm-nginx/samples-dev/certificatesDeleteSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/certificatesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a certificate from the NGINX deployment * * @summary Deletes a certificate from the NGINX deployment - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Certificates_Delete.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_Delete.json */ async function certificatesDelete() { const subscriptionId = @@ -33,7 +33,7 @@ async function certificatesDelete() { const result = await client.certificates.beginDeleteAndWait( resourceGroupName, deploymentName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples-dev/certificatesGetSample.ts b/sdk/nginx/arm-nginx/samples-dev/certificatesGetSample.ts index 02c8734135d1..7054d266869e 100644 --- a/sdk/nginx/arm-nginx/samples-dev/certificatesGetSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/certificatesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a certificate of given NGINX deployment * * @summary Get a certificate of given NGINX deployment - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Certificates_Get.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_Get.json */ async function certificatesGet() { const subscriptionId = @@ -33,7 +33,7 @@ async function certificatesGet() { const result = await client.certificates.get( resourceGroupName, deploymentName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples-dev/certificatesListSample.ts b/sdk/nginx/arm-nginx/samples-dev/certificatesListSample.ts index 0fa13506866f..4426dae41ab2 100644 --- a/sdk/nginx/arm-nginx/samples-dev/certificatesListSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/certificatesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all certificates of given NGINX deployment * * @summary List all certificates of given NGINX deployment - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Certificates_List.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_List.json */ async function certificatesList() { const subscriptionId = @@ -32,7 +32,7 @@ async function certificatesList() { const resArray = new Array(); for await (let item of client.certificates.list( resourceGroupName, - deploymentName + deploymentName, )) { resArray.push(item); } diff --git a/sdk/nginx/arm-nginx/samples-dev/configurationsAnalysisSample.ts b/sdk/nginx/arm-nginx/samples-dev/configurationsAnalysisSample.ts new file mode 100644 index 000000000000..5f329376b952 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples-dev/configurationsAnalysisSample.ts @@ -0,0 +1,58 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + AnalysisCreate, + ConfigurationsAnalysisOptionalParams, + NginxManagementClient, +} from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Analyze an NGINX configuration without applying it to the NGINXaaS deployment + * + * @summary Analyze an NGINX configuration without applying it to the NGINXaaS deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Analysis.json + */ +async function configurationsAnalysis() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const configurationName = "default"; + const body: AnalysisCreate = { + config: { + files: [{ content: "ABCDEF==", virtualPath: "/etc/nginx/nginx.conf" }], + package: { data: undefined }, + rootFile: "/etc/nginx/nginx.conf", + }, + }; + const options: ConfigurationsAnalysisOptionalParams = { body }; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.configurations.analysis( + resourceGroupName, + deploymentName, + configurationName, + options, + ); + console.log(result); +} + +async function main() { + configurationsAnalysis(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples-dev/configurationsCreateOrUpdateSample.ts b/sdk/nginx/arm-nginx/samples-dev/configurationsCreateOrUpdateSample.ts index 136426e44be4..cb24b9462e33 100644 --- a/sdk/nginx/arm-nginx/samples-dev/configurationsCreateOrUpdateSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/configurationsCreateOrUpdateSample.ts @@ -8,7 +8,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { NginxManagementClient } from "@azure/arm-nginx"; +import { + NginxConfiguration, + ConfigurationsCreateOrUpdateOptionalParams, + NginxManagementClient, +} from "@azure/arm-nginx"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -18,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Create or update the NGINX configuration for given NGINX deployment * * @summary Create or update the NGINX configuration for given NGINX deployment - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Configurations_CreateOrUpdate.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_CreateOrUpdate.json */ async function configurationsCreateOrUpdate() { const subscriptionId = @@ -28,12 +32,21 @@ async function configurationsCreateOrUpdate() { process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; const deploymentName = "myDeployment"; const configurationName = "default"; + const body: NginxConfiguration = { + properties: { + files: [{ content: "ABCDEF==", virtualPath: "/etc/nginx/nginx.conf" }], + package: { data: undefined }, + rootFile: "/etc/nginx/nginx.conf", + }, + }; + const options: ConfigurationsCreateOrUpdateOptionalParams = { body }; const credential = new DefaultAzureCredential(); const client = new NginxManagementClient(credential, subscriptionId); const result = await client.configurations.beginCreateOrUpdateAndWait( resourceGroupName, deploymentName, - configurationName + configurationName, + options, ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples-dev/configurationsDeleteSample.ts b/sdk/nginx/arm-nginx/samples-dev/configurationsDeleteSample.ts index 78fb85564fd9..0a7a19e6fb1c 100644 --- a/sdk/nginx/arm-nginx/samples-dev/configurationsDeleteSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/configurationsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Reset the NGINX configuration of given NGINX deployment to default * * @summary Reset the NGINX configuration of given NGINX deployment to default - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Configurations_Delete.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Delete.json */ async function configurationsDelete() { const subscriptionId = @@ -33,7 +33,7 @@ async function configurationsDelete() { const result = await client.configurations.beginDeleteAndWait( resourceGroupName, deploymentName, - configurationName + configurationName, ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples-dev/configurationsGetSample.ts b/sdk/nginx/arm-nginx/samples-dev/configurationsGetSample.ts index c0deb8849551..0ea1cb35f06e 100644 --- a/sdk/nginx/arm-nginx/samples-dev/configurationsGetSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/configurationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the NGINX configuration of given NGINX deployment * * @summary Get the NGINX configuration of given NGINX deployment - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Configurations_Get.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Get.json */ async function configurationsGet() { const subscriptionId = @@ -33,7 +33,7 @@ async function configurationsGet() { const result = await client.configurations.get( resourceGroupName, deploymentName, - configurationName + configurationName, ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples-dev/configurationsListSample.ts b/sdk/nginx/arm-nginx/samples-dev/configurationsListSample.ts index 60c008ee16cd..ca73ece1d34f 100644 --- a/sdk/nginx/arm-nginx/samples-dev/configurationsListSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/configurationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List the NGINX configuration of given NGINX deployment. * * @summary List the NGINX configuration of given NGINX deployment. - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Configurations_List.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_List.json */ async function configurationsList() { const subscriptionId = @@ -32,7 +32,7 @@ async function configurationsList() { const resArray = new Array(); for await (let item of client.configurations.list( resourceGroupName, - deploymentName + deploymentName, )) { resArray.push(item); } diff --git a/sdk/nginx/arm-nginx/samples-dev/deploymentsCreateOrUpdateSample.ts b/sdk/nginx/arm-nginx/samples-dev/deploymentsCreateOrUpdateSample.ts index 3bb068e86e51..00b276d34d05 100644 --- a/sdk/nginx/arm-nginx/samples-dev/deploymentsCreateOrUpdateSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/deploymentsCreateOrUpdateSample.ts @@ -8,7 +8,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { NginxManagementClient } from "@azure/arm-nginx"; +import { + NginxDeployment, + DeploymentsCreateOrUpdateOptionalParams, + NginxManagementClient, +} from "@azure/arm-nginx"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -18,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Create or update the NGINX deployment * * @summary Create or update the NGINX deployment - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Deployments_Create.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Create.json */ async function deploymentsCreate() { const subscriptionId = @@ -27,11 +31,45 @@ async function deploymentsCreate() { const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; const deploymentName = "myDeployment"; + const body: NginxDeployment = { + name: "myDeployment", + location: "West US", + properties: { + autoUpgradeProfile: { upgradeChannel: "stable" }, + managedResourceGroup: "myManagedResourceGroup", + networkProfile: { + frontEndIPConfiguration: { + privateIPAddresses: [ + { + privateIPAddress: "1.1.1.1", + privateIPAllocationMethod: "Static", + subnetId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + }, + ], + publicIPAddresses: [ + { + id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/publicIPAddresses/myPublicIPAddress", + }, + ], + }, + networkInterfaceConfiguration: { + subnetId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + }, + }, + scalingProperties: { capacity: 10 }, + userProfile: { preferredEmail: "example@example.email" }, + }, + tags: { environment: "Dev" }, + }; + const options: DeploymentsCreateOrUpdateOptionalParams = { body }; const credential = new DefaultAzureCredential(); const client = new NginxManagementClient(credential, subscriptionId); const result = await client.deployments.beginCreateOrUpdateAndWait( resourceGroupName, - deploymentName + deploymentName, + options, ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples-dev/deploymentsDeleteSample.ts b/sdk/nginx/arm-nginx/samples-dev/deploymentsDeleteSample.ts index 45fe335d933f..9d988686c335 100644 --- a/sdk/nginx/arm-nginx/samples-dev/deploymentsDeleteSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/deploymentsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the NGINX deployment resource * * @summary Delete the NGINX deployment resource - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Deployments_Delete.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Delete.json */ async function deploymentsDelete() { const subscriptionId = @@ -31,7 +31,7 @@ async function deploymentsDelete() { const client = new NginxManagementClient(credential, subscriptionId); const result = await client.deployments.beginDeleteAndWait( resourceGroupName, - deploymentName + deploymentName, ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples-dev/deploymentsGetSample.ts b/sdk/nginx/arm-nginx/samples-dev/deploymentsGetSample.ts index 87ba37f66f5f..29a3eeeeb79a 100644 --- a/sdk/nginx/arm-nginx/samples-dev/deploymentsGetSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/deploymentsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the NGINX deployment * * @summary Get the NGINX deployment - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Deployments_Get.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Get.json */ async function deploymentsGet() { const subscriptionId = @@ -31,13 +31,36 @@ async function deploymentsGet() { const client = new NginxManagementClient(credential, subscriptionId); const result = await client.deployments.get( resourceGroupName, - deploymentName + deploymentName, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Get the NGINX deployment + * + * @summary Get the NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Get_AutoScale.json + */ +async function deploymentsGetAutoScale() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.deployments.get( + resourceGroupName, + deploymentName, ); console.log(result); } async function main() { deploymentsGet(); + deploymentsGetAutoScale(); } main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples-dev/deploymentsListByResourceGroupSample.ts b/sdk/nginx/arm-nginx/samples-dev/deploymentsListByResourceGroupSample.ts index a7ab5f6d4c80..acb1e3521fdd 100644 --- a/sdk/nginx/arm-nginx/samples-dev/deploymentsListByResourceGroupSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/deploymentsListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all NGINX deployments under the specified resource group. * * @summary List all NGINX deployments under the specified resource group. - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Deployments_ListByResourceGroup.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_ListByResourceGroup.json */ async function deploymentsListByResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function deploymentsListByResourceGroup() { const client = new NginxManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.deployments.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/nginx/arm-nginx/samples-dev/deploymentsListSample.ts b/sdk/nginx/arm-nginx/samples-dev/deploymentsListSample.ts index 685b6e4775f9..e72d6cc1ba56 100644 --- a/sdk/nginx/arm-nginx/samples-dev/deploymentsListSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/deploymentsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List the NGINX deployments resources * * @summary List the NGINX deployments resources - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Deployments_List.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_List.json */ async function deploymentsList() { const subscriptionId = diff --git a/sdk/nginx/arm-nginx/samples-dev/deploymentsUpdateSample.ts b/sdk/nginx/arm-nginx/samples-dev/deploymentsUpdateSample.ts index 3bab5f93258d..047e24441dfc 100644 --- a/sdk/nginx/arm-nginx/samples-dev/deploymentsUpdateSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/deploymentsUpdateSample.ts @@ -8,7 +8,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { NginxManagementClient } from "@azure/arm-nginx"; +import { + NginxDeploymentUpdateParameters, + DeploymentsUpdateOptionalParams, + NginxManagementClient, +} from "@azure/arm-nginx"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -18,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Update the NGINX deployment * * @summary Update the NGINX deployment - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Deployments_Update.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Update.json */ async function deploymentsUpdate() { const subscriptionId = @@ -27,11 +31,16 @@ async function deploymentsUpdate() { const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; const deploymentName = "myDeployment"; + const body: NginxDeploymentUpdateParameters = { + tags: { environment: "Dev" }, + }; + const options: DeploymentsUpdateOptionalParams = { body }; const credential = new DefaultAzureCredential(); const client = new NginxManagementClient(credential, subscriptionId); const result = await client.deployments.beginUpdateAndWait( resourceGroupName, - deploymentName + deploymentName, + options, ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples-dev/operationsListSample.ts b/sdk/nginx/arm-nginx/samples-dev/operationsListSample.ts index 92d1e64a0f5d..b6aa5357230b 100644 --- a/sdk/nginx/arm-nginx/samples-dev/operationsListSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/operationsListSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to List all operations provided by Nginx.NginxPlus for the 2023-04-01 api version. + * This sample demonstrates how to List all operations provided by Nginx.NginxPlus for the 2024-01-01-preview api version. * - * @summary List all operations provided by Nginx.NginxPlus for the 2023-04-01 api version. - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Operations_List.json + * @summary List all operations provided by Nginx.NginxPlus for the 2024-01-01-preview api version. + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Operations_List.json */ async function operationsList() { const subscriptionId = diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/README.md b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/README.md new file mode 100644 index 000000000000..4e9d9af5be40 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/README.md @@ -0,0 +1,80 @@ +# client library samples for JavaScript (Beta) + +These sample programs show how to use the JavaScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [certificatesCreateOrUpdateSample.js][certificatescreateorupdatesample] | Create or update the NGINX certificates for given NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_CreateOrUpdate.json | +| [certificatesDeleteSample.js][certificatesdeletesample] | Deletes a certificate from the NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_Delete.json | +| [certificatesGetSample.js][certificatesgetsample] | Get a certificate of given NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_Get.json | +| [certificatesListSample.js][certificateslistsample] | List all certificates of given NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_List.json | +| [configurationsAnalysisSample.js][configurationsanalysissample] | Analyze an NGINX configuration without applying it to the NGINXaaS deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Analysis.json | +| [configurationsCreateOrUpdateSample.js][configurationscreateorupdatesample] | Create or update the NGINX configuration for given NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_CreateOrUpdate.json | +| [configurationsDeleteSample.js][configurationsdeletesample] | Reset the NGINX configuration of given NGINX deployment to default x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Delete.json | +| [configurationsGetSample.js][configurationsgetsample] | Get the NGINX configuration of given NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Get.json | +| [configurationsListSample.js][configurationslistsample] | List the NGINX configuration of given NGINX deployment. x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_List.json | +| [deploymentsCreateOrUpdateSample.js][deploymentscreateorupdatesample] | Create or update the NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Create.json | +| [deploymentsDeleteSample.js][deploymentsdeletesample] | Delete the NGINX deployment resource x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Delete.json | +| [deploymentsGetSample.js][deploymentsgetsample] | Get the NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Get.json | +| [deploymentsListByResourceGroupSample.js][deploymentslistbyresourcegroupsample] | List all NGINX deployments under the specified resource group. x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_ListByResourceGroup.json | +| [deploymentsListSample.js][deploymentslistsample] | List the NGINX deployments resources x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_List.json | +| [deploymentsUpdateSample.js][deploymentsupdatesample] | Update the NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Update.json | +| [operationsListSample.js][operationslistsample] | List all operations provided by Nginx.NginxPlus for the 2024-01-01-preview api version. x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Operations_List.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +3. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node certificatesCreateOrUpdateSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx cross-env NGINX_SUBSCRIPTION_ID="" NGINX_RESOURCE_GROUP="" node certificatesCreateOrUpdateSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[certificatescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesCreateOrUpdateSample.js +[certificatesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesDeleteSample.js +[certificatesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesGetSample.js +[certificateslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesListSample.js +[configurationsanalysissample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsAnalysisSample.js +[configurationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsCreateOrUpdateSample.js +[configurationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsDeleteSample.js +[configurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsGetSample.js +[configurationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsListSample.js +[deploymentscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsCreateOrUpdateSample.js +[deploymentsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsDeleteSample.js +[deploymentsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsGetSample.js +[deploymentslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsListByResourceGroupSample.js +[deploymentslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsListSample.js +[deploymentsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsUpdateSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/operationsListSample.js +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-nginx?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/nginx/arm-nginx/README.md diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesCreateOrUpdateSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesCreateOrUpdateSample.js new file mode 100644 index 000000000000..4bed27b934fa --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesCreateOrUpdateSample.js @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create or update the NGINX certificates for given NGINX deployment + * + * @summary Create or update the NGINX certificates for given NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_CreateOrUpdate.json + */ +async function certificatesCreateOrUpdate() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const certificateName = "default"; + const body = { + properties: { + certificateVirtualPath: "/src/cert/somePath.cert", + keyVaultSecretId: "https://someKV.vault.azure.com/someSecretID", + keyVirtualPath: "/src/cert/somekey.key", + }, + }; + const options = { body }; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.certificates.beginCreateOrUpdateAndWait( + resourceGroupName, + deploymentName, + certificateName, + options, + ); + console.log(result); +} + +async function main() { + certificatesCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesDeleteSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesDeleteSample.js new file mode 100644 index 000000000000..0a6b44511ea7 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesDeleteSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes a certificate from the NGINX deployment + * + * @summary Deletes a certificate from the NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_Delete.json + */ +async function certificatesDelete() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const certificateName = "default"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.certificates.beginDeleteAndWait( + resourceGroupName, + deploymentName, + certificateName, + ); + console.log(result); +} + +async function main() { + certificatesDelete(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesGetSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesGetSample.js new file mode 100644 index 000000000000..ee065cb4ec44 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesGetSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get a certificate of given NGINX deployment + * + * @summary Get a certificate of given NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_Get.json + */ +async function certificatesGet() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const certificateName = "default"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.certificates.get(resourceGroupName, deploymentName, certificateName); + console.log(result); +} + +async function main() { + certificatesGet(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesListSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesListSample.js new file mode 100644 index 000000000000..966fe83edd43 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesListSample.js @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List all certificates of given NGINX deployment + * + * @summary List all certificates of given NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_List.json + */ +async function certificatesList() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.certificates.list(resourceGroupName, deploymentName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + certificatesList(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsAnalysisSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsAnalysisSample.js new file mode 100644 index 000000000000..8f5ac23fc991 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsAnalysisSample.js @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Analyze an NGINX configuration without applying it to the NGINXaaS deployment + * + * @summary Analyze an NGINX configuration without applying it to the NGINXaaS deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Analysis.json + */ +async function configurationsAnalysis() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const configurationName = "default"; + const body = { + config: { + files: [{ content: "ABCDEF==", virtualPath: "/etc/nginx/nginx.conf" }], + package: { data: undefined }, + rootFile: "/etc/nginx/nginx.conf", + }, + }; + const options = { body }; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.configurations.analysis( + resourceGroupName, + deploymentName, + configurationName, + options, + ); + console.log(result); +} + +async function main() { + configurationsAnalysis(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsCreateOrUpdateSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsCreateOrUpdateSample.js new file mode 100644 index 000000000000..ab64fa819747 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsCreateOrUpdateSample.js @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create or update the NGINX configuration for given NGINX deployment + * + * @summary Create or update the NGINX configuration for given NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_CreateOrUpdate.json + */ +async function configurationsCreateOrUpdate() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const configurationName = "default"; + const body = { + properties: { + files: [{ content: "ABCDEF==", virtualPath: "/etc/nginx/nginx.conf" }], + package: { data: undefined }, + rootFile: "/etc/nginx/nginx.conf", + }, + }; + const options = { body }; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.configurations.beginCreateOrUpdateAndWait( + resourceGroupName, + deploymentName, + configurationName, + options, + ); + console.log(result); +} + +async function main() { + configurationsCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsDeleteSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsDeleteSample.js new file mode 100644 index 000000000000..406cba22f689 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsDeleteSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Reset the NGINX configuration of given NGINX deployment to default + * + * @summary Reset the NGINX configuration of given NGINX deployment to default + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Delete.json + */ +async function configurationsDelete() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const configurationName = "default"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.configurations.beginDeleteAndWait( + resourceGroupName, + deploymentName, + configurationName, + ); + console.log(result); +} + +async function main() { + configurationsDelete(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsGetSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsGetSample.js new file mode 100644 index 000000000000..6496ee743ff6 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsGetSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get the NGINX configuration of given NGINX deployment + * + * @summary Get the NGINX configuration of given NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Get.json + */ +async function configurationsGet() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const configurationName = "default"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.configurations.get( + resourceGroupName, + deploymentName, + configurationName, + ); + console.log(result); +} + +async function main() { + configurationsGet(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsListSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsListSample.js new file mode 100644 index 000000000000..339062db1e71 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsListSample.js @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List the NGINX configuration of given NGINX deployment. + * + * @summary List the NGINX configuration of given NGINX deployment. + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_List.json + */ +async function configurationsList() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.configurations.list(resourceGroupName, deploymentName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + configurationsList(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsCreateOrUpdateSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsCreateOrUpdateSample.js new file mode 100644 index 000000000000..293ade7bd42e --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsCreateOrUpdateSample.js @@ -0,0 +1,73 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create or update the NGINX deployment + * + * @summary Create or update the NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Create.json + */ +async function deploymentsCreate() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const body = { + name: "myDeployment", + location: "West US", + properties: { + autoUpgradeProfile: { upgradeChannel: "stable" }, + managedResourceGroup: "myManagedResourceGroup", + networkProfile: { + frontEndIPConfiguration: { + privateIPAddresses: [ + { + privateIPAddress: "1.1.1.1", + privateIPAllocationMethod: "Static", + subnetId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + }, + ], + publicIPAddresses: [ + { + id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/publicIPAddresses/myPublicIPAddress", + }, + ], + }, + networkInterfaceConfiguration: { + subnetId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + }, + }, + scalingProperties: { capacity: 10 }, + userProfile: { preferredEmail: "example@example.email" }, + }, + tags: { environment: "Dev" }, + }; + const options = { body }; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.deployments.beginCreateOrUpdateAndWait( + resourceGroupName, + deploymentName, + options, + ); + console.log(result); +} + +async function main() { + deploymentsCreate(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsDeleteSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsDeleteSample.js new file mode 100644 index 000000000000..fa27cd1a4aff --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsDeleteSample.js @@ -0,0 +1,36 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Delete the NGINX deployment resource + * + * @summary Delete the NGINX deployment resource + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Delete.json + */ +async function deploymentsDelete() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.deployments.beginDeleteAndWait(resourceGroupName, deploymentName); + console.log(result); +} + +async function main() { + deploymentsDelete(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsGetSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsGetSample.js new file mode 100644 index 000000000000..256b79f1e217 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsGetSample.js @@ -0,0 +1,54 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get the NGINX deployment + * + * @summary Get the NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Get.json + */ +async function deploymentsGet() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.deployments.get(resourceGroupName, deploymentName); + console.log(result); +} + +/** + * This sample demonstrates how to Get the NGINX deployment + * + * @summary Get the NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Get_AutoScale.json + */ +async function deploymentsGetAutoScale() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.deployments.get(resourceGroupName, deploymentName); + console.log(result); +} + +async function main() { + deploymentsGet(); + deploymentsGetAutoScale(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsListByResourceGroupSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsListByResourceGroupSample.js new file mode 100644 index 000000000000..3506782c997b --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsListByResourceGroupSample.js @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List all NGINX deployments under the specified resource group. + * + * @summary List all NGINX deployments under the specified resource group. + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_ListByResourceGroup.json + */ +async function deploymentsListByResourceGroup() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.deployments.listByResourceGroup(resourceGroupName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + deploymentsListByResourceGroup(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsListSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsListSample.js new file mode 100644 index 000000000000..aebb74bd72bc --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsListSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List the NGINX deployments resources + * + * @summary List the NGINX deployments resources + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_List.json + */ +async function deploymentsList() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.deployments.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + deploymentsList(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsUpdateSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsUpdateSample.js new file mode 100644 index 000000000000..ac1a6c6bb8a4 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsUpdateSample.js @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Update the NGINX deployment + * + * @summary Update the NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Update.json + */ +async function deploymentsUpdate() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const body = { + tags: { environment: "Dev" }, + }; + const options = { body }; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.deployments.beginUpdateAndWait( + resourceGroupName, + deploymentName, + options, + ); + console.log(result); +} + +async function main() { + deploymentsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/operationsListSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/operationsListSample.js new file mode 100644 index 000000000000..56a1d87e1e66 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/operationsListSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List all operations provided by Nginx.NginxPlus for the 2024-01-01-preview api version. + * + * @summary List all operations provided by Nginx.NginxPlus for the 2024-01-01-preview api version. + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Operations_List.json + */ +async function operationsList() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + operationsList(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/package.json b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/package.json new file mode 100644 index 000000000000..4b0a8e4079d2 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/package.json @@ -0,0 +1,32 @@ +{ + "name": "@azure-samples/arm-nginx-js-beta", + "private": true, + "version": "1.0.0", + "description": " client library samples for JavaScript (Beta)", + "engines": { + "node": ">=18.0.0" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/nginx/arm-nginx" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/nginx/arm-nginx", + "dependencies": { + "@azure/arm-nginx": "next", + "dotenv": "latest", + "@azure/identity": "^4.0.1" + } +} diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/sample.env b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/sample.env similarity index 100% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/sample.env rename to sdk/nginx/arm-nginx/samples/v4-beta/javascript/sample.env diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/README.md b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/README.md new file mode 100644 index 000000000000..379dcbe6e438 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/README.md @@ -0,0 +1,93 @@ +# client library samples for TypeScript (Beta) + +These sample programs show how to use the TypeScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [certificatesCreateOrUpdateSample.ts][certificatescreateorupdatesample] | Create or update the NGINX certificates for given NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_CreateOrUpdate.json | +| [certificatesDeleteSample.ts][certificatesdeletesample] | Deletes a certificate from the NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_Delete.json | +| [certificatesGetSample.ts][certificatesgetsample] | Get a certificate of given NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_Get.json | +| [certificatesListSample.ts][certificateslistsample] | List all certificates of given NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_List.json | +| [configurationsAnalysisSample.ts][configurationsanalysissample] | Analyze an NGINX configuration without applying it to the NGINXaaS deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Analysis.json | +| [configurationsCreateOrUpdateSample.ts][configurationscreateorupdatesample] | Create or update the NGINX configuration for given NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_CreateOrUpdate.json | +| [configurationsDeleteSample.ts][configurationsdeletesample] | Reset the NGINX configuration of given NGINX deployment to default x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Delete.json | +| [configurationsGetSample.ts][configurationsgetsample] | Get the NGINX configuration of given NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Get.json | +| [configurationsListSample.ts][configurationslistsample] | List the NGINX configuration of given NGINX deployment. x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_List.json | +| [deploymentsCreateOrUpdateSample.ts][deploymentscreateorupdatesample] | Create or update the NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Create.json | +| [deploymentsDeleteSample.ts][deploymentsdeletesample] | Delete the NGINX deployment resource x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Delete.json | +| [deploymentsGetSample.ts][deploymentsgetsample] | Get the NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Get.json | +| [deploymentsListByResourceGroupSample.ts][deploymentslistbyresourcegroupsample] | List all NGINX deployments under the specified resource group. x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_ListByResourceGroup.json | +| [deploymentsListSample.ts][deploymentslistsample] | List the NGINX deployments resources x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_List.json | +| [deploymentsUpdateSample.ts][deploymentsupdatesample] | Update the NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Update.json | +| [operationsListSample.ts][operationslistsample] | List all operations provided by Nginx.NginxPlus for the 2024-01-01-preview api version. x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Operations_List.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: + +```bash +npm install -g typescript +``` + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Compile the samples: + +```bash +npm run build +``` + +3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +4. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node dist/certificatesCreateOrUpdateSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx cross-env NGINX_SUBSCRIPTION_ID="" NGINX_RESOURCE_GROUP="" node dist/certificatesCreateOrUpdateSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[certificatescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesCreateOrUpdateSample.ts +[certificatesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesDeleteSample.ts +[certificatesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesGetSample.ts +[certificateslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesListSample.ts +[configurationsanalysissample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsAnalysisSample.ts +[configurationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsCreateOrUpdateSample.ts +[configurationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsDeleteSample.ts +[configurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsGetSample.ts +[configurationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsListSample.ts +[deploymentscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsCreateOrUpdateSample.ts +[deploymentsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsDeleteSample.ts +[deploymentsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsGetSample.ts +[deploymentslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsListByResourceGroupSample.ts +[deploymentslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsListSample.ts +[deploymentsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsUpdateSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/operationsListSample.ts +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-nginx?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/nginx/arm-nginx/README.md +[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/package.json b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/package.json new file mode 100644 index 000000000000..bb1a63d2d58c --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/package.json @@ -0,0 +1,41 @@ +{ + "name": "@azure-samples/arm-nginx-ts-beta", + "private": true, + "version": "1.0.0", + "description": " client library samples for TypeScript (Beta)", + "engines": { + "node": ">=18.0.0" + }, + "scripts": { + "build": "tsc", + "prebuild": "rimraf dist/" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/nginx/arm-nginx" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/nginx/arm-nginx", + "dependencies": { + "@azure/arm-nginx": "next", + "dotenv": "latest", + "@azure/identity": "^4.0.1" + }, + "devDependencies": { + "@types/node": "^18.0.0", + "typescript": "~5.3.3", + "rimraf": "latest" + } +} diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/sample.env b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/sample.env similarity index 100% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/sample.env rename to sdk/nginx/arm-nginx/samples/v4-beta/typescript/sample.env diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesCreateOrUpdateSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesCreateOrUpdateSample.ts new file mode 100644 index 000000000000..0fb4f322de27 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesCreateOrUpdateSample.ts @@ -0,0 +1,58 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + NginxCertificate, + CertificatesCreateOrUpdateOptionalParams, + NginxManagementClient, +} from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create or update the NGINX certificates for given NGINX deployment + * + * @summary Create or update the NGINX certificates for given NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_CreateOrUpdate.json + */ +async function certificatesCreateOrUpdate() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const certificateName = "default"; + const body: NginxCertificate = { + properties: { + certificateVirtualPath: "/src/cert/somePath.cert", + keyVaultSecretId: "https://someKV.vault.azure.com/someSecretID", + keyVirtualPath: "/src/cert/somekey.key", + }, + }; + const options: CertificatesCreateOrUpdateOptionalParams = { body }; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.certificates.beginCreateOrUpdateAndWait( + resourceGroupName, + deploymentName, + certificateName, + options, + ); + console.log(result); +} + +async function main() { + certificatesCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesDeleteSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesDeleteSample.ts new file mode 100644 index 000000000000..d387b2637692 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesDeleteSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NginxManagementClient } from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a certificate from the NGINX deployment + * + * @summary Deletes a certificate from the NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_Delete.json + */ +async function certificatesDelete() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const certificateName = "default"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.certificates.beginDeleteAndWait( + resourceGroupName, + deploymentName, + certificateName, + ); + console.log(result); +} + +async function main() { + certificatesDelete(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesGetSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesGetSample.ts new file mode 100644 index 000000000000..7054d266869e --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesGetSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NginxManagementClient } from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get a certificate of given NGINX deployment + * + * @summary Get a certificate of given NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_Get.json + */ +async function certificatesGet() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const certificateName = "default"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.certificates.get( + resourceGroupName, + deploymentName, + certificateName, + ); + console.log(result); +} + +async function main() { + certificatesGet(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesListSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesListSample.ts new file mode 100644 index 000000000000..4426dae41ab2 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesListSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NginxManagementClient } from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List all certificates of given NGINX deployment + * + * @summary List all certificates of given NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_List.json + */ +async function certificatesList() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.certificates.list( + resourceGroupName, + deploymentName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + certificatesList(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsAnalysisSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsAnalysisSample.ts new file mode 100644 index 000000000000..5f329376b952 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsAnalysisSample.ts @@ -0,0 +1,58 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + AnalysisCreate, + ConfigurationsAnalysisOptionalParams, + NginxManagementClient, +} from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Analyze an NGINX configuration without applying it to the NGINXaaS deployment + * + * @summary Analyze an NGINX configuration without applying it to the NGINXaaS deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Analysis.json + */ +async function configurationsAnalysis() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const configurationName = "default"; + const body: AnalysisCreate = { + config: { + files: [{ content: "ABCDEF==", virtualPath: "/etc/nginx/nginx.conf" }], + package: { data: undefined }, + rootFile: "/etc/nginx/nginx.conf", + }, + }; + const options: ConfigurationsAnalysisOptionalParams = { body }; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.configurations.analysis( + resourceGroupName, + deploymentName, + configurationName, + options, + ); + console.log(result); +} + +async function main() { + configurationsAnalysis(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsCreateOrUpdateSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsCreateOrUpdateSample.ts new file mode 100644 index 000000000000..cb24b9462e33 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsCreateOrUpdateSample.ts @@ -0,0 +1,58 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + NginxConfiguration, + ConfigurationsCreateOrUpdateOptionalParams, + NginxManagementClient, +} from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create or update the NGINX configuration for given NGINX deployment + * + * @summary Create or update the NGINX configuration for given NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_CreateOrUpdate.json + */ +async function configurationsCreateOrUpdate() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const configurationName = "default"; + const body: NginxConfiguration = { + properties: { + files: [{ content: "ABCDEF==", virtualPath: "/etc/nginx/nginx.conf" }], + package: { data: undefined }, + rootFile: "/etc/nginx/nginx.conf", + }, + }; + const options: ConfigurationsCreateOrUpdateOptionalParams = { body }; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.configurations.beginCreateOrUpdateAndWait( + resourceGroupName, + deploymentName, + configurationName, + options, + ); + console.log(result); +} + +async function main() { + configurationsCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsDeleteSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsDeleteSample.ts new file mode 100644 index 000000000000..0a7a19e6fb1c --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsDeleteSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NginxManagementClient } from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Reset the NGINX configuration of given NGINX deployment to default + * + * @summary Reset the NGINX configuration of given NGINX deployment to default + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Delete.json + */ +async function configurationsDelete() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const configurationName = "default"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.configurations.beginDeleteAndWait( + resourceGroupName, + deploymentName, + configurationName, + ); + console.log(result); +} + +async function main() { + configurationsDelete(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsGetSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsGetSample.ts new file mode 100644 index 000000000000..0ea1cb35f06e --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsGetSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NginxManagementClient } from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get the NGINX configuration of given NGINX deployment + * + * @summary Get the NGINX configuration of given NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Get.json + */ +async function configurationsGet() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const configurationName = "default"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.configurations.get( + resourceGroupName, + deploymentName, + configurationName, + ); + console.log(result); +} + +async function main() { + configurationsGet(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsListSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsListSample.ts new file mode 100644 index 000000000000..ca73ece1d34f --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsListSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NginxManagementClient } from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List the NGINX configuration of given NGINX deployment. + * + * @summary List the NGINX configuration of given NGINX deployment. + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_List.json + */ +async function configurationsList() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.configurations.list( + resourceGroupName, + deploymentName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + configurationsList(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsCreateOrUpdateSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsCreateOrUpdateSample.ts new file mode 100644 index 000000000000..00b276d34d05 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsCreateOrUpdateSample.ts @@ -0,0 +1,81 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + NginxDeployment, + DeploymentsCreateOrUpdateOptionalParams, + NginxManagementClient, +} from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create or update the NGINX deployment + * + * @summary Create or update the NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Create.json + */ +async function deploymentsCreate() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const body: NginxDeployment = { + name: "myDeployment", + location: "West US", + properties: { + autoUpgradeProfile: { upgradeChannel: "stable" }, + managedResourceGroup: "myManagedResourceGroup", + networkProfile: { + frontEndIPConfiguration: { + privateIPAddresses: [ + { + privateIPAddress: "1.1.1.1", + privateIPAllocationMethod: "Static", + subnetId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + }, + ], + publicIPAddresses: [ + { + id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/publicIPAddresses/myPublicIPAddress", + }, + ], + }, + networkInterfaceConfiguration: { + subnetId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + }, + }, + scalingProperties: { capacity: 10 }, + userProfile: { preferredEmail: "example@example.email" }, + }, + tags: { environment: "Dev" }, + }; + const options: DeploymentsCreateOrUpdateOptionalParams = { body }; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.deployments.beginCreateOrUpdateAndWait( + resourceGroupName, + deploymentName, + options, + ); + console.log(result); +} + +async function main() { + deploymentsCreate(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsDeleteSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsDeleteSample.ts new file mode 100644 index 000000000000..9d988686c335 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsDeleteSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NginxManagementClient } from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Delete the NGINX deployment resource + * + * @summary Delete the NGINX deployment resource + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Delete.json + */ +async function deploymentsDelete() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.deployments.beginDeleteAndWait( + resourceGroupName, + deploymentName, + ); + console.log(result); +} + +async function main() { + deploymentsDelete(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsGetSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsGetSample.ts new file mode 100644 index 000000000000..29a3eeeeb79a --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsGetSample.ts @@ -0,0 +1,66 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NginxManagementClient } from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get the NGINX deployment + * + * @summary Get the NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Get.json + */ +async function deploymentsGet() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.deployments.get( + resourceGroupName, + deploymentName, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Get the NGINX deployment + * + * @summary Get the NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Get_AutoScale.json + */ +async function deploymentsGetAutoScale() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.deployments.get( + resourceGroupName, + deploymentName, + ); + console.log(result); +} + +async function main() { + deploymentsGet(); + deploymentsGetAutoScale(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsListByResourceGroupSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsListByResourceGroupSample.ts new file mode 100644 index 000000000000..acb1e3521fdd --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsListByResourceGroupSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NginxManagementClient } from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List all NGINX deployments under the specified resource group. + * + * @summary List all NGINX deployments under the specified resource group. + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_ListByResourceGroup.json + */ +async function deploymentsListByResourceGroup() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.deployments.listByResourceGroup( + resourceGroupName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + deploymentsListByResourceGroup(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosListSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsListSample.ts similarity index 50% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosListSample.ts rename to sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsListSample.ts index 0f001d6f3e8e..e72d6cc1ba56 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosListSample.ts +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsListSample.ts @@ -8,34 +8,33 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; +import { NginxManagementClient } from "@azure/arm-nginx"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Provides region specific information. + * This sample demonstrates how to List the NGINX deployments resources * - * @summary Provides region specific information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_List.json + * @summary List the NGINX deployments resources + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_List.json */ -async function regionInfosList() { +async function deploymentsList() { const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); + const client = new NginxManagementClient(credential, subscriptionId); const resArray = new Array(); - for await (let item of client.netAppResourceRegionInfos.list(location)) { + for await (let item of client.deployments.list()) { resArray.push(item); } console.log(resArray); } async function main() { - regionInfosList(); + deploymentsList(); } main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsUpdateSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsUpdateSample.ts new file mode 100644 index 000000000000..047e24441dfc --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsUpdateSample.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + NginxDeploymentUpdateParameters, + DeploymentsUpdateOptionalParams, + NginxManagementClient, +} from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Update the NGINX deployment + * + * @summary Update the NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Update.json + */ +async function deploymentsUpdate() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const body: NginxDeploymentUpdateParameters = { + tags: { environment: "Dev" }, + }; + const options: DeploymentsUpdateOptionalParams = { body }; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.deployments.beginUpdateAndWait( + resourceGroupName, + deploymentName, + options, + ); + console.log(result); +} + +async function main() { + deploymentsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/operationsListSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/operationsListSample.ts new file mode 100644 index 000000000000..b6aa5357230b --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/operationsListSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NginxManagementClient } from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List all operations provided by Nginx.NginxPlus for the 2024-01-01-preview api version. + * + * @summary List all operations provided by Nginx.NginxPlus for the 2024-01-01-preview api version. + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Operations_List.json + */ +async function operationsList() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + operationsList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/tsconfig.json b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/tsconfig.json similarity index 92% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/tsconfig.json rename to sdk/nginx/arm-nginx/samples/v4-beta/typescript/tsconfig.json index 416c2dd82e00..e26ce2a6d8f7 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/tsconfig.json +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "ES2018", + "target": "ES2020", "module": "commonjs", "moduleResolution": "node", "resolveJsonModule": true, diff --git a/sdk/nginx/arm-nginx/src/lroImpl.ts b/sdk/nginx/arm-nginx/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/nginx/arm-nginx/src/lroImpl.ts +++ b/sdk/nginx/arm-nginx/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/nginx/arm-nginx/src/models/index.ts b/sdk/nginx/arm-nginx/src/models/index.ts index 737e5b466ec5..f4c29559691e 100644 --- a/sdk/nginx/arm-nginx/src/models/index.ts +++ b/sdk/nginx/arm-nginx/src/models/index.ts @@ -30,6 +30,18 @@ export interface NginxCertificateProperties { keyVirtualPath?: string; certificateVirtualPath?: string; keyVaultSecretId?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly sha1Thumbprint?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly keyVaultSecretVersion?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly keyVaultSecretCreated?: Date; + certificateError?: NginxCertificateErrorResponseBody; +} + +export interface NginxCertificateErrorResponseBody { + code?: string; + message?: string; } /** Metadata pertaining to creation and last modification of the resource. */ @@ -49,14 +61,51 @@ export interface SystemData { } export interface ResourceProviderDefaultErrorResponse { - error?: ErrorResponseBody; + /** The error detail. */ + error?: ErrorDetail; } -export interface ErrorResponseBody { - code?: string; - message?: string; - target?: string; - details?: ErrorResponseBody[]; +/** The error detail. */ +export interface ErrorDetail { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; } export interface NginxCertificateListResponse { @@ -107,6 +156,43 @@ export interface NginxConfigurationPackage { protectedFiles?: string[]; } +/** The request body for creating an analysis for an NGINX configuration. */ +export interface AnalysisCreate { + config: AnalysisCreateConfig; +} + +export interface AnalysisCreateConfig { + /** The root file of the NGINX config file(s). It must match one of the files' filepath. */ + rootFile?: string; + files?: NginxConfigurationFile[]; + protectedFiles?: NginxConfigurationFile[]; + package?: NginxConfigurationPackage; +} + +/** The response body for an analysis request. Contains the status of the analysis and any errors. */ +export interface AnalysisResult { + /** The status of the analysis. */ + status: string; + data?: AnalysisResultData; +} + +export interface AnalysisResultData { + errors?: AnalysisDiagnostic[]; +} + +/** An error object found during the analysis of an NGINX configuration. */ +export interface AnalysisDiagnostic { + /** Unique identifier for the error */ + id?: string; + directive: string; + description: string; + /** the filepath of the most relevant config file */ + file: string; + line: number; + message: string; + rule: string; +} + export interface NginxDeployment { /** NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; @@ -159,7 +245,10 @@ export interface NginxDeploymentProperties { readonly ipAddress?: string; enableDiagnosticsSupport?: boolean; logging?: NginxLogging; + /** Information on how the deployment will be scaled. */ scalingProperties?: NginxDeploymentScalingProperties; + /** Autoupgrade settings of a deployment. */ + autoUpgradeProfile?: AutoUpgradeProfile; userProfile?: NginxDeploymentUserProfile; } @@ -196,8 +285,31 @@ export interface NginxStorageAccount { containerName?: string; } +/** Information on how the deployment will be scaled. */ export interface NginxDeploymentScalingProperties { capacity?: number; + profiles?: ScaleProfile[]; +} + +/** The autoscale profile. */ +export interface ScaleProfile { + name: string; + /** The capacity parameters of the profile. */ + capacity: ScaleProfileCapacity; +} + +/** The capacity parameters of the profile. */ +export interface ScaleProfileCapacity { + /** The minimum number of NCUs the deployment can be autoscaled to. */ + min: number; + /** The maximum number of NCUs the deployment can be autoscaled to. */ + max: number; +} + +/** Autoupgrade settings of a deployment. */ +export interface AutoUpgradeProfile { + /** Channel used for autoupgrade. */ + upgradeChannel: string; } export interface NginxDeploymentUserProfile { @@ -222,8 +334,11 @@ export interface NginxDeploymentUpdateParameters { export interface NginxDeploymentUpdateProperties { enableDiagnosticsSupport?: boolean; logging?: NginxLogging; + /** Information on how the deployment will be scaled. */ scalingProperties?: NginxDeploymentScalingProperties; userProfile?: NginxDeploymentUserProfile; + /** Autoupgrade settings of a deployment. */ + autoUpgradeProfile?: AutoUpgradeProfile; } export interface NginxDeploymentListResponse { @@ -280,7 +395,7 @@ export enum KnownProvisioningState { /** Deleted */ Deleted = "Deleted", /** NotSpecified */ - NotSpecified = "NotSpecified" + NotSpecified = "NotSpecified", } /** @@ -309,7 +424,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -333,7 +448,7 @@ export enum KnownIdentityType { /** SystemAssignedUserAssigned */ SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", /** None */ - None = "None" + None = "None", } /** @@ -353,7 +468,7 @@ export enum KnownNginxPrivateIPAllocationMethod { /** Static */ Static = "Static", /** Dynamic */ - Dynamic = "Dynamic" + Dynamic = "Dynamic", } /** @@ -447,6 +562,16 @@ export interface ConfigurationsDeleteOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface ConfigurationsAnalysisOptionalParams + extends coreClient.OperationOptions { + /** The NGINX configuration to analyze */ + body?: AnalysisCreate; +} + +/** Contains response data for the analysis operation. */ +export type ConfigurationsAnalysisResponse = AnalysisResult; + /** Optional parameters. */ export interface ConfigurationsListNextOptionalParams extends coreClient.OperationOptions {} @@ -508,7 +633,8 @@ export interface DeploymentsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type DeploymentsListByResourceGroupResponse = NginxDeploymentListResponse; +export type DeploymentsListByResourceGroupResponse = + NginxDeploymentListResponse; /** Optional parameters. */ export interface DeploymentsListNextOptionalParams @@ -522,7 +648,8 @@ export interface DeploymentsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type DeploymentsListByResourceGroupNextResponse = NginxDeploymentListResponse; +export type DeploymentsListByResourceGroupNextResponse = + NginxDeploymentListResponse; /** Optional parameters. */ export interface OperationsListOptionalParams diff --git a/sdk/nginx/arm-nginx/src/models/mappers.ts b/sdk/nginx/arm-nginx/src/models/mappers.ts index 1902a7845a45..dc21ad7ea040 100644 --- a/sdk/nginx/arm-nginx/src/models/mappers.ts +++ b/sdk/nginx/arm-nginx/src/models/mappers.ts @@ -17,45 +17,45 @@ export const NginxCertificate: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "NginxCertificateProperties" - } + className: "NginxCertificateProperties", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const NginxCertificateProperties: coreClient.CompositeMapper = { @@ -67,29 +67,78 @@ export const NginxCertificateProperties: coreClient.CompositeMapper = { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, keyVirtualPath: { serializedName: "keyVirtualPath", type: { - name: "String" - } + name: "String", + }, }, certificateVirtualPath: { serializedName: "certificateVirtualPath", type: { - name: "String" - } + name: "String", + }, }, keyVaultSecretId: { serializedName: "keyVaultSecretId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + sha1Thumbprint: { + serializedName: "sha1Thumbprint", + readOnly: true, + type: { + name: "String", + }, + }, + keyVaultSecretVersion: { + serializedName: "keyVaultSecretVersion", + readOnly: true, + type: { + name: "String", + }, + }, + keyVaultSecretCreated: { + serializedName: "keyVaultSecretCreated", + readOnly: true, + type: { + name: "DateTime", + }, + }, + certificateError: { + serializedName: "certificateError", + type: { + name: "Composite", + className: "NginxCertificateErrorResponseBody", + }, + }, + }, + }, +}; + +export const NginxCertificateErrorResponseBody: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NginxCertificateErrorResponseBody", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + type: { + name: "String", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -100,96 +149,138 @@ export const SystemData: coreClient.CompositeMapper = { createdBy: { serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, createdByType: { serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, lastModifiedByType: { serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; -export const ResourceProviderDefaultErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceProviderDefaultErrorResponse", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorResponseBody" - } - } - } - } -}; +export const ResourceProviderDefaultErrorResponse: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ResourceProviderDefaultErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetail", + }, + }, + }, + }, + }; -export const ErrorResponseBody: coreClient.CompositeMapper = { +export const ErrorDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorResponseBody", + className: "ErrorDetail", modelProperties: { code: { serializedName: "code", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ErrorResponseBody" - } - } - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, +}; + +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + info: { + serializedName: "info", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const NginxCertificateListResponse: coreClient.CompositeMapper = { @@ -204,19 +295,19 @@ export const NginxCertificateListResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NginxCertificate" - } - } - } + className: "NginxCertificate", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NginxConfigurationListResponse: coreClient.CompositeMapper = { @@ -231,19 +322,19 @@ export const NginxConfigurationListResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NginxConfiguration" - } - } - } + className: "NginxConfiguration", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NginxConfiguration: coreClient.CompositeMapper = { @@ -255,45 +346,45 @@ export const NginxConfiguration: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "NginxConfigurationProperties" - } + className: "NginxConfigurationProperties", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const NginxConfigurationProperties: coreClient.CompositeMapper = { @@ -305,8 +396,8 @@ export const NginxConfigurationProperties: coreClient.CompositeMapper = { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, files: { serializedName: "files", @@ -315,10 +406,10 @@ export const NginxConfigurationProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NginxConfigurationFile" - } - } - } + className: "NginxConfigurationFile", + }, + }, + }, }, protectedFiles: { serializedName: "protectedFiles", @@ -327,26 +418,26 @@ export const NginxConfigurationProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NginxConfigurationFile" - } - } - } + className: "NginxConfigurationFile", + }, + }, + }, }, package: { serializedName: "package", type: { name: "Composite", - className: "NginxConfigurationPackage" - } + className: "NginxConfigurationPackage", + }, }, rootFile: { serializedName: "rootFile", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NginxConfigurationFile: coreClient.CompositeMapper = { @@ -357,17 +448,17 @@ export const NginxConfigurationFile: coreClient.CompositeMapper = { content: { serializedName: "content", type: { - name: "String" - } + name: "String", + }, }, virtualPath: { serializedName: "virtualPath", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NginxConfigurationPackage: coreClient.CompositeMapper = { @@ -378,8 +469,62 @@ export const NginxConfigurationPackage: coreClient.CompositeMapper = { data: { serializedName: "data", type: { - name: "String" - } + name: "String", + }, + }, + protectedFiles: { + serializedName: "protectedFiles", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const AnalysisCreate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AnalysisCreate", + modelProperties: { + config: { + serializedName: "config", + type: { + name: "Composite", + className: "AnalysisCreateConfig", + }, + }, + }, + }, +}; + +export const AnalysisCreateConfig: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AnalysisCreateConfig", + modelProperties: { + rootFile: { + serializedName: "rootFile", + type: { + name: "String", + }, + }, + files: { + serializedName: "files", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NginxConfigurationFile", + }, + }, + }, }, protectedFiles: { serializedName: "protectedFiles", @@ -387,13 +532,122 @@ export const NginxConfigurationPackage: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "Composite", + className: "NginxConfigurationFile", + }, + }, + }, + }, + package: { + serializedName: "package", + type: { + name: "Composite", + className: "NginxConfigurationPackage", + }, + }, + }, + }, +}; + +export const AnalysisResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AnalysisResult", + modelProperties: { + status: { + serializedName: "status", + required: true, + type: { + name: "String", + }, + }, + data: { + serializedName: "data", + type: { + name: "Composite", + className: "AnalysisResultData", + }, + }, + }, + }, +}; + +export const AnalysisResultData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AnalysisResultData", + modelProperties: { + errors: { + serializedName: "errors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AnalysisDiagnostic", + }, + }, + }, + }, + }, + }, +}; + +export const AnalysisDiagnostic: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AnalysisDiagnostic", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + directive: { + serializedName: "directive", + required: true, + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + required: true, + type: { + name: "String", + }, + }, + file: { + serializedName: "file", + required: true, + type: { + name: "String", + }, + }, + line: { + serializedName: "line", + required: true, + type: { + name: "Number", + }, + }, + message: { + serializedName: "message", + required: true, + type: { + name: "String", + }, + }, + rule: { + serializedName: "rule", + required: true, + type: { + name: "String", + }, + }, + }, + }, }; export const NginxDeployment: coreClient.CompositeMapper = { @@ -405,66 +659,66 @@ export const NginxDeployment: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "IdentityProperties" - } + className: "IdentityProperties", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "NginxDeploymentProperties" - } + className: "NginxDeploymentProperties", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "ResourceSku" - } + className: "ResourceSku", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const IdentityProperties: coreClient.CompositeMapper = { @@ -476,33 +730,33 @@ export const IdentityProperties: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", type: { name: "Dictionary", value: { - type: { name: "Composite", className: "UserIdentityProperties" } - } - } - } - } - } + type: { name: "Composite", className: "UserIdentityProperties" }, + }, + }, + }, + }, + }, }; export const UserIdentityProperties: coreClient.CompositeMapper = { @@ -514,18 +768,18 @@ export const UserIdentityProperties: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, clientId: { serializedName: "clientId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NginxDeploymentProperties: coreClient.CompositeMapper = { @@ -537,65 +791,72 @@ export const NginxDeploymentProperties: coreClient.CompositeMapper = { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, nginxVersion: { serializedName: "nginxVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, managedResourceGroup: { serializedName: "managedResourceGroup", type: { - name: "String" - } + name: "String", + }, }, networkProfile: { serializedName: "networkProfile", type: { name: "Composite", - className: "NginxNetworkProfile" - } + className: "NginxNetworkProfile", + }, }, ipAddress: { serializedName: "ipAddress", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, enableDiagnosticsSupport: { serializedName: "enableDiagnosticsSupport", type: { - name: "Boolean" - } + name: "Boolean", + }, }, logging: { serializedName: "logging", type: { name: "Composite", - className: "NginxLogging" - } + className: "NginxLogging", + }, }, scalingProperties: { serializedName: "scalingProperties", type: { name: "Composite", - className: "NginxDeploymentScalingProperties" - } + className: "NginxDeploymentScalingProperties", + }, + }, + autoUpgradeProfile: { + serializedName: "autoUpgradeProfile", + type: { + name: "Composite", + className: "AutoUpgradeProfile", + }, }, userProfile: { serializedName: "userProfile", type: { name: "Composite", - className: "NginxDeploymentUserProfile" - } - } - } - } + className: "NginxDeploymentUserProfile", + }, + }, + }, + }, }; export const NginxNetworkProfile: coreClient.CompositeMapper = { @@ -607,18 +868,18 @@ export const NginxNetworkProfile: coreClient.CompositeMapper = { serializedName: "frontEndIPConfiguration", type: { name: "Composite", - className: "NginxFrontendIPConfiguration" - } + className: "NginxFrontendIPConfiguration", + }, }, networkInterfaceConfiguration: { serializedName: "networkInterfaceConfiguration", type: { name: "Composite", - className: "NginxNetworkInterfaceConfiguration" - } - } - } - } + className: "NginxNetworkInterfaceConfiguration", + }, + }, + }, + }, }; export const NginxFrontendIPConfiguration: coreClient.CompositeMapper = { @@ -633,10 +894,10 @@ export const NginxFrontendIPConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NginxPublicIPAddress" - } - } - } + className: "NginxPublicIPAddress", + }, + }, + }, }, privateIPAddresses: { serializedName: "privateIPAddresses", @@ -645,13 +906,13 @@ export const NginxFrontendIPConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NginxPrivateIPAddress" - } - } - } - } - } - } + className: "NginxPrivateIPAddress", + }, + }, + }, + }, + }, + }, }; export const NginxPublicIPAddress: coreClient.CompositeMapper = { @@ -662,11 +923,11 @@ export const NginxPublicIPAddress: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NginxPrivateIPAddress: coreClient.CompositeMapper = { @@ -677,23 +938,23 @@ export const NginxPrivateIPAddress: coreClient.CompositeMapper = { privateIPAddress: { serializedName: "privateIPAddress", type: { - name: "String" - } + name: "String", + }, }, privateIPAllocationMethod: { serializedName: "privateIPAllocationMethod", type: { - name: "String" - } + name: "String", + }, }, subnetId: { serializedName: "subnetId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NginxNetworkInterfaceConfiguration: coreClient.CompositeMapper = { @@ -704,11 +965,11 @@ export const NginxNetworkInterfaceConfiguration: coreClient.CompositeMapper = { subnetId: { serializedName: "subnetId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NginxLogging: coreClient.CompositeMapper = { @@ -720,11 +981,11 @@ export const NginxLogging: coreClient.CompositeMapper = { serializedName: "storageAccount", type: { name: "Composite", - className: "NginxStorageAccount" - } - } - } - } + className: "NginxStorageAccount", + }, + }, + }, + }, }; export const NginxStorageAccount: coreClient.CompositeMapper = { @@ -735,17 +996,17 @@ export const NginxStorageAccount: coreClient.CompositeMapper = { accountName: { serializedName: "accountName", type: { - name: "String" - } + name: "String", + }, }, containerName: { serializedName: "containerName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NginxDeploymentScalingProperties: coreClient.CompositeMapper = { @@ -756,11 +1017,91 @@ export const NginxDeploymentScalingProperties: coreClient.CompositeMapper = { capacity: { serializedName: "capacity", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + profiles: { + serializedName: "autoScaleSettings.profiles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScaleProfile", + }, + }, + }, + }, + }, + }, +}; + +export const ScaleProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScaleProfile", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + capacity: { + serializedName: "capacity", + type: { + name: "Composite", + className: "ScaleProfileCapacity", + }, + }, + }, + }, +}; + +export const ScaleProfileCapacity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScaleProfileCapacity", + modelProperties: { + min: { + constraints: { + InclusiveMinimum: 0, + }, + serializedName: "min", + required: true, + type: { + name: "Number", + }, + }, + max: { + constraints: { + InclusiveMinimum: 0, + }, + serializedName: "max", + required: true, + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const AutoUpgradeProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutoUpgradeProfile", + modelProperties: { + upgradeChannel: { + serializedName: "upgradeChannel", + required: true, + type: { + name: "String", + }, + }, + }, + }, }; export const NginxDeploymentUserProfile: coreClient.CompositeMapper = { @@ -771,16 +1112,16 @@ export const NginxDeploymentUserProfile: coreClient.CompositeMapper = { preferredEmail: { constraints: { Pattern: new RegExp( - "^$|^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$" - ) + "^$|^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$", + ), }, serializedName: "preferredEmail", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSku: coreClient.CompositeMapper = { @@ -792,11 +1133,11 @@ export const ResourceSku: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NginxDeploymentUpdateParameters: coreClient.CompositeMapper = { @@ -808,38 +1149,38 @@ export const NginxDeploymentUpdateParameters: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "IdentityProperties" - } + className: "IdentityProperties", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "ResourceSku" - } + className: "ResourceSku", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "NginxDeploymentUpdateProperties" - } - } - } - } + className: "NginxDeploymentUpdateProperties", + }, + }, + }, + }, }; export const NginxDeploymentUpdateProperties: coreClient.CompositeMapper = { @@ -850,32 +1191,39 @@ export const NginxDeploymentUpdateProperties: coreClient.CompositeMapper = { enableDiagnosticsSupport: { serializedName: "enableDiagnosticsSupport", type: { - name: "Boolean" - } + name: "Boolean", + }, }, logging: { serializedName: "logging", type: { name: "Composite", - className: "NginxLogging" - } + className: "NginxLogging", + }, }, scalingProperties: { serializedName: "scalingProperties", type: { name: "Composite", - className: "NginxDeploymentScalingProperties" - } + className: "NginxDeploymentScalingProperties", + }, }, userProfile: { serializedName: "userProfile", type: { name: "Composite", - className: "NginxDeploymentUserProfile" - } - } - } - } + className: "NginxDeploymentUserProfile", + }, + }, + autoUpgradeProfile: { + serializedName: "autoUpgradeProfile", + type: { + name: "Composite", + className: "AutoUpgradeProfile", + }, + }, + }, + }, }; export const NginxDeploymentListResponse: coreClient.CompositeMapper = { @@ -890,19 +1238,19 @@ export const NginxDeploymentListResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NginxDeployment" - } - } - } + className: "NginxDeployment", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationListResult: coreClient.CompositeMapper = { @@ -917,19 +1265,19 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OperationResult" - } - } - } + className: "OperationResult", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationResult: coreClient.CompositeMapper = { @@ -940,24 +1288,24 @@ export const OperationResult: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } + className: "OperationDisplay", + }, }, isDataAction: { serializedName: "isDataAction", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -968,27 +1316,27 @@ export const OperationDisplay: coreClient.CompositeMapper = { provider: { serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; diff --git a/sdk/nginx/arm-nginx/src/models/parameters.ts b/sdk/nginx/arm-nginx/src/models/parameters.ts index 6bcd0efa1953..5fe0fe0a6539 100644 --- a/sdk/nginx/arm-nginx/src/models/parameters.ts +++ b/sdk/nginx/arm-nginx/src/models/parameters.ts @@ -9,13 +9,14 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { NginxCertificate as NginxCertificateMapper, NginxConfiguration as NginxConfigurationMapper, + AnalysisCreate as AnalysisCreateMapper, NginxDeployment as NginxDeploymentMapper, - NginxDeploymentUpdateParameters as NginxDeploymentUpdateParametersMapper + NginxDeploymentUpdateParameters as NginxDeploymentUpdateParametersMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -25,9 +26,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -36,24 +37,24 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceGroupName: OperationURLParameter = { @@ -61,25 +62,30 @@ export const resourceGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const deploymentName: OperationURLParameter = { parameterPath: "deploymentName", mapper: { + constraints: { + Pattern: new RegExp( + "^([a-z0-9A-Z][a-z0-9A-Z-]{0,28}[a-z0-9A-Z]|[a-z0-9A-Z])$", + ), + }, serializedName: "deploymentName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const certificateName: OperationURLParameter = { @@ -88,21 +94,21 @@ export const certificateName: OperationURLParameter = { serializedName: "certificateName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-04-01", + defaultValue: "2024-01-01-preview", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const contentType: OperationParameter = { @@ -112,14 +118,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const body: OperationParameter = { parameterPath: ["options", "body"], - mapper: NginxCertificateMapper + mapper: NginxCertificateMapper, }; export const nextLink: OperationURLParameter = { @@ -128,10 +134,10 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const configurationName: OperationURLParameter = { @@ -140,22 +146,41 @@ export const configurationName: OperationURLParameter = { serializedName: "configurationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const body1: OperationParameter = { parameterPath: ["options", "body"], - mapper: NginxConfigurationMapper + mapper: NginxConfigurationMapper, }; export const body2: OperationParameter = { parameterPath: ["options", "body"], - mapper: NginxDeploymentMapper + mapper: AnalysisCreateMapper, +}; + +export const configurationName1: OperationURLParameter = { + parameterPath: "configurationName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-z][a-z0-9]*$"), + }, + serializedName: "configurationName", + required: true, + type: { + name: "String", + }, + }, }; export const body3: OperationParameter = { parameterPath: ["options", "body"], - mapper: NginxDeploymentUpdateParametersMapper + mapper: NginxDeploymentMapper, +}; + +export const body4: OperationParameter = { + parameterPath: ["options", "body"], + mapper: NginxDeploymentUpdateParametersMapper, }; diff --git a/sdk/nginx/arm-nginx/src/nginxManagementClient.ts b/sdk/nginx/arm-nginx/src/nginxManagementClient.ts index f88fe8888409..1b8a52cd0106 100644 --- a/sdk/nginx/arm-nginx/src/nginxManagementClient.ts +++ b/sdk/nginx/arm-nginx/src/nginxManagementClient.ts @@ -11,20 +11,20 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { CertificatesImpl, ConfigurationsImpl, DeploymentsImpl, - OperationsImpl + OperationsImpl, } from "./operations"; import { Certificates, Configurations, Deployments, - Operations + Operations, } from "./operationsInterfaces"; import { NginxManagementClientOptionalParams } from "./models"; @@ -42,7 +42,7 @@ export class NginxManagementClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: NginxManagementClientOptionalParams + options?: NginxManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -57,10 +57,10 @@ export class NginxManagementClient extends coreClient.ServiceClient { } const defaults: NginxManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-nginx/3.0.1`; + const packageDetails = `azsdk-js-arm-nginx/4.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -70,20 +70,21 @@ export class NginxManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -93,7 +94,7 @@ export class NginxManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -103,9 +104,9 @@ export class NginxManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -113,7 +114,7 @@ export class NginxManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-04-01"; + this.apiVersion = options.apiVersion || "2024-01-01-preview"; this.certificates = new CertificatesImpl(this); this.configurations = new ConfigurationsImpl(this); this.deployments = new DeploymentsImpl(this); @@ -130,7 +131,7 @@ export class NginxManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -144,7 +145,7 @@ export class NginxManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } diff --git a/sdk/nginx/arm-nginx/src/operations/certificates.ts b/sdk/nginx/arm-nginx/src/operations/certificates.ts index 20cedc18fb55..3f17575ec241 100644 --- a/sdk/nginx/arm-nginx/src/operations/certificates.ts +++ b/sdk/nginx/arm-nginx/src/operations/certificates.ts @@ -16,7 +16,7 @@ import { NginxManagementClient } from "../nginxManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,7 +29,7 @@ import { CertificatesCreateOrUpdateOptionalParams, CertificatesCreateOrUpdateResponse, CertificatesDeleteOptionalParams, - CertificatesListNextResponse + CertificatesListNextResponse, } from "../models"; /// @@ -54,7 +54,7 @@ export class CertificatesImpl implements Certificates { public list( resourceGroupName: string, deploymentName: string, - options?: CertificatesListOptionalParams + options?: CertificatesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, deploymentName, options); return { @@ -72,9 +72,9 @@ export class CertificatesImpl implements Certificates { resourceGroupName, deploymentName, options, - settings + settings, ); - } + }, }; } @@ -82,7 +82,7 @@ export class CertificatesImpl implements Certificates { resourceGroupName: string, deploymentName: string, options?: CertificatesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CertificatesListResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class CertificatesImpl implements Certificates { resourceGroupName, deploymentName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -110,12 +110,12 @@ export class CertificatesImpl implements Certificates { private async *listPagingAll( resourceGroupName: string, deploymentName: string, - options?: CertificatesListOptionalParams + options?: CertificatesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, deploymentName, - options + options, )) { yield* page; } @@ -132,11 +132,11 @@ export class CertificatesImpl implements Certificates { resourceGroupName: string, deploymentName: string, certificateName: string, - options?: CertificatesGetOptionalParams + options?: CertificatesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, deploymentName, certificateName, options }, - getOperationSpec + getOperationSpec, ); } @@ -151,7 +151,7 @@ export class CertificatesImpl implements Certificates { resourceGroupName: string, deploymentName: string, certificateName: string, - options?: CertificatesCreateOrUpdateOptionalParams + options?: CertificatesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -160,21 +160,20 @@ export class CertificatesImpl implements Certificates { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -183,8 +182,8 @@ export class CertificatesImpl implements Certificates { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -192,15 +191,15 @@ export class CertificatesImpl implements Certificates { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, deploymentName, certificateName, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< CertificatesCreateOrUpdateResponse, @@ -208,7 +207,7 @@ export class CertificatesImpl implements Certificates { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -225,13 +224,13 @@ export class CertificatesImpl implements Certificates { resourceGroupName: string, deploymentName: string, certificateName: string, - options?: CertificatesCreateOrUpdateOptionalParams + options?: CertificatesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, deploymentName, certificateName, - options + options, ); return poller.pollUntilDone(); } @@ -247,25 +246,24 @@ export class CertificatesImpl implements Certificates { resourceGroupName: string, deploymentName: string, certificateName: string, - options?: CertificatesDeleteOptionalParams + options?: CertificatesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -274,8 +272,8 @@ export class CertificatesImpl implements Certificates { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -283,19 +281,19 @@ export class CertificatesImpl implements Certificates { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, deploymentName, certificateName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -312,13 +310,13 @@ export class CertificatesImpl implements Certificates { resourceGroupName: string, deploymentName: string, certificateName: string, - options?: CertificatesDeleteOptionalParams + options?: CertificatesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, deploymentName, certificateName, - options + options, ); return poller.pollUntilDone(); } @@ -332,11 +330,11 @@ export class CertificatesImpl implements Certificates { private _list( resourceGroupName: string, deploymentName: string, - options?: CertificatesListOptionalParams + options?: CertificatesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, deploymentName, options }, - listOperationSpec + listOperationSpec, ); } @@ -351,11 +349,11 @@ export class CertificatesImpl implements Certificates { resourceGroupName: string, deploymentName: string, nextLink: string, - options?: CertificatesListNextOptionalParams + options?: CertificatesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, deploymentName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -363,16 +361,15 @@ export class CertificatesImpl implements Certificates { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates/{certificateName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NginxCertificate + bodyMapper: Mappers.NginxCertificate, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -380,31 +377,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.deploymentName, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates/{certificateName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.NginxCertificate + bodyMapper: Mappers.NginxCertificate, }, 201: { - bodyMapper: Mappers.NginxCertificate + bodyMapper: Mappers.NginxCertificate, }, 202: { - bodyMapper: Mappers.NginxCertificate + bodyMapper: Mappers.NginxCertificate, }, 204: { - bodyMapper: Mappers.NginxCertificate + bodyMapper: Mappers.NginxCertificate, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, requestBody: Parameters.body, queryParameters: [Parameters.apiVersion], @@ -413,15 +409,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.deploymentName, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates/{certificateName}", httpMethod: "DELETE", responses: { 200: {}, @@ -429,8 +424,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -438,51 +433,50 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.deploymentName, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NginxCertificateListResponse + bodyMapper: Mappers.NginxCertificateListResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NginxCertificateListResponse + bodyMapper: Mappers.NginxCertificateListResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.deploymentName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/nginx/arm-nginx/src/operations/configurations.ts b/sdk/nginx/arm-nginx/src/operations/configurations.ts index d806568ef4e7..db20c6504f9a 100644 --- a/sdk/nginx/arm-nginx/src/operations/configurations.ts +++ b/sdk/nginx/arm-nginx/src/operations/configurations.ts @@ -16,7 +16,7 @@ import { NginxManagementClient } from "../nginxManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,7 +29,9 @@ import { ConfigurationsCreateOrUpdateOptionalParams, ConfigurationsCreateOrUpdateResponse, ConfigurationsDeleteOptionalParams, - ConfigurationsListNextResponse + ConfigurationsAnalysisOptionalParams, + ConfigurationsAnalysisResponse, + ConfigurationsListNextResponse, } from "../models"; /// @@ -54,7 +56,7 @@ export class ConfigurationsImpl implements Configurations { public list( resourceGroupName: string, deploymentName: string, - options?: ConfigurationsListOptionalParams + options?: ConfigurationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, deploymentName, options); return { @@ -72,9 +74,9 @@ export class ConfigurationsImpl implements Configurations { resourceGroupName, deploymentName, options, - settings + settings, ); - } + }, }; } @@ -82,7 +84,7 @@ export class ConfigurationsImpl implements Configurations { resourceGroupName: string, deploymentName: string, options?: ConfigurationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ConfigurationsListResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +100,7 @@ export class ConfigurationsImpl implements Configurations { resourceGroupName, deploymentName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -110,12 +112,12 @@ export class ConfigurationsImpl implements Configurations { private async *listPagingAll( resourceGroupName: string, deploymentName: string, - options?: ConfigurationsListOptionalParams + options?: ConfigurationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, deploymentName, - options + options, )) { yield* page; } @@ -130,11 +132,11 @@ export class ConfigurationsImpl implements Configurations { private _list( resourceGroupName: string, deploymentName: string, - options?: ConfigurationsListOptionalParams + options?: ConfigurationsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, deploymentName, options }, - listOperationSpec + listOperationSpec, ); } @@ -150,11 +152,11 @@ export class ConfigurationsImpl implements Configurations { resourceGroupName: string, deploymentName: string, configurationName: string, - options?: ConfigurationsGetOptionalParams + options?: ConfigurationsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, deploymentName, configurationName, options }, - getOperationSpec + getOperationSpec, ); } @@ -170,7 +172,7 @@ export class ConfigurationsImpl implements Configurations { resourceGroupName: string, deploymentName: string, configurationName: string, - options?: ConfigurationsCreateOrUpdateOptionalParams + options?: ConfigurationsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -179,21 +181,20 @@ export class ConfigurationsImpl implements Configurations { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -202,8 +203,8 @@ export class ConfigurationsImpl implements Configurations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -211,15 +212,15 @@ export class ConfigurationsImpl implements Configurations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, deploymentName, configurationName, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ConfigurationsCreateOrUpdateResponse, @@ -227,7 +228,7 @@ export class ConfigurationsImpl implements Configurations { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -245,13 +246,13 @@ export class ConfigurationsImpl implements Configurations { resourceGroupName: string, deploymentName: string, configurationName: string, - options?: ConfigurationsCreateOrUpdateOptionalParams + options?: ConfigurationsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, deploymentName, configurationName, - options + options, ); return poller.pollUntilDone(); } @@ -268,25 +269,24 @@ export class ConfigurationsImpl implements Configurations { resourceGroupName: string, deploymentName: string, configurationName: string, - options?: ConfigurationsDeleteOptionalParams + options?: ConfigurationsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -295,8 +295,8 @@ export class ConfigurationsImpl implements Configurations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -304,19 +304,19 @@ export class ConfigurationsImpl implements Configurations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, deploymentName, configurationName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -334,17 +334,37 @@ export class ConfigurationsImpl implements Configurations { resourceGroupName: string, deploymentName: string, configurationName: string, - options?: ConfigurationsDeleteOptionalParams + options?: ConfigurationsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, deploymentName, configurationName, - options + options, ); return poller.pollUntilDone(); } + /** + * Analyze an NGINX configuration without applying it to the NGINXaaS deployment + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param deploymentName The name of targeted NGINX deployment + * @param configurationName The name of configuration, only 'default' is supported value due to the + * singleton of NGINX conf + * @param options The options parameters. + */ + analysis( + resourceGroupName: string, + deploymentName: string, + configurationName: string, + options?: ConfigurationsAnalysisOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, deploymentName, configurationName, options }, + analysisOperationSpec, + ); + } + /** * ListNext * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -356,11 +376,11 @@ export class ConfigurationsImpl implements Configurations { resourceGroupName: string, deploymentName: string, nextLink: string, - options?: ConfigurationsListNextOptionalParams + options?: ConfigurationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, deploymentName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -368,38 +388,36 @@ export class ConfigurationsImpl implements Configurations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NginxConfigurationListResponse + bodyMapper: Mappers.NginxConfigurationListResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NginxConfiguration + bodyMapper: Mappers.NginxConfiguration, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -407,31 +425,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.deploymentName, - Parameters.configurationName + Parameters.configurationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.NginxConfiguration + bodyMapper: Mappers.NginxConfiguration, }, 201: { - bodyMapper: Mappers.NginxConfiguration + bodyMapper: Mappers.NginxConfiguration, }, 202: { - bodyMapper: Mappers.NginxConfiguration + bodyMapper: Mappers.NginxConfiguration, }, 204: { - bodyMapper: Mappers.NginxConfiguration + bodyMapper: Mappers.NginxConfiguration, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, requestBody: Parameters.body1, queryParameters: [Parameters.apiVersion], @@ -440,15 +457,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.deploymentName, - Parameters.configurationName + Parameters.configurationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}", httpMethod: "DELETE", responses: { 200: {}, @@ -456,8 +472,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -465,29 +481,53 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.deploymentName, - Parameters.configurationName + Parameters.configurationName, ], headerParameters: [Parameters.accept], - serializer + serializer, +}; +const analysisOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}/analyze", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.AnalysisResult, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.deploymentName, + Parameters.configurationName1, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NginxConfigurationListResponse + bodyMapper: Mappers.NginxConfigurationListResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.deploymentName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/nginx/arm-nginx/src/operations/deployments.ts b/sdk/nginx/arm-nginx/src/operations/deployments.ts index 1a2655c41047..20a7dcf3d60b 100644 --- a/sdk/nginx/arm-nginx/src/operations/deployments.ts +++ b/sdk/nginx/arm-nginx/src/operations/deployments.ts @@ -16,7 +16,7 @@ import { NginxManagementClient } from "../nginxManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -35,7 +35,7 @@ import { DeploymentsUpdateResponse, DeploymentsDeleteOptionalParams, DeploymentsListNextResponse, - DeploymentsListByResourceGroupNextResponse + DeploymentsListByResourceGroupNextResponse, } from "../models"; /// @@ -56,7 +56,7 @@ export class DeploymentsImpl implements Deployments { * @param options The options parameters. */ public list( - options?: DeploymentsListOptionalParams + options?: DeploymentsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -71,13 +71,13 @@ export class DeploymentsImpl implements Deployments { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: DeploymentsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DeploymentsListResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class DeploymentsImpl implements Deployments { } private async *listPagingAll( - options?: DeploymentsListOptionalParams + options?: DeploymentsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -112,7 +112,7 @@ export class DeploymentsImpl implements Deployments { */ public listByResourceGroup( resourceGroupName: string, - options?: DeploymentsListByResourceGroupOptionalParams + options?: DeploymentsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -129,16 +129,16 @@ export class DeploymentsImpl implements Deployments { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: DeploymentsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DeploymentsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -153,7 +153,7 @@ export class DeploymentsImpl implements Deployments { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -164,11 +164,11 @@ export class DeploymentsImpl implements Deployments { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: DeploymentsListByResourceGroupOptionalParams + options?: DeploymentsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -183,11 +183,11 @@ export class DeploymentsImpl implements Deployments { get( resourceGroupName: string, deploymentName: string, - options?: DeploymentsGetOptionalParams + options?: DeploymentsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, deploymentName, options }, - getOperationSpec + getOperationSpec, ); } @@ -200,7 +200,7 @@ export class DeploymentsImpl implements Deployments { async beginCreateOrUpdate( resourceGroupName: string, deploymentName: string, - options?: DeploymentsCreateOrUpdateOptionalParams + options?: DeploymentsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -209,21 +209,20 @@ export class DeploymentsImpl implements Deployments { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -232,8 +231,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -241,15 +240,15 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, deploymentName, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< DeploymentsCreateOrUpdateResponse, @@ -257,7 +256,7 @@ export class DeploymentsImpl implements Deployments { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -272,12 +271,12 @@ export class DeploymentsImpl implements Deployments { async beginCreateOrUpdateAndWait( resourceGroupName: string, deploymentName: string, - options?: DeploymentsCreateOrUpdateOptionalParams + options?: DeploymentsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, deploymentName, - options + options, ); return poller.pollUntilDone(); } @@ -291,7 +290,7 @@ export class DeploymentsImpl implements Deployments { async beginUpdate( resourceGroupName: string, deploymentName: string, - options?: DeploymentsUpdateOptionalParams + options?: DeploymentsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -300,21 +299,20 @@ export class DeploymentsImpl implements Deployments { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -323,8 +321,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -332,22 +330,22 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, deploymentName, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< DeploymentsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -362,12 +360,12 @@ export class DeploymentsImpl implements Deployments { async beginUpdateAndWait( resourceGroupName: string, deploymentName: string, - options?: DeploymentsUpdateOptionalParams + options?: DeploymentsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, deploymentName, - options + options, ); return poller.pollUntilDone(); } @@ -381,25 +379,24 @@ export class DeploymentsImpl implements Deployments { async beginDelete( resourceGroupName: string, deploymentName: string, - options?: DeploymentsDeleteOptionalParams + options?: DeploymentsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -408,8 +405,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -417,19 +414,19 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, deploymentName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -444,12 +441,12 @@ export class DeploymentsImpl implements Deployments { async beginDeleteAndWait( resourceGroupName: string, deploymentName: string, - options?: DeploymentsDeleteOptionalParams + options?: DeploymentsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, deploymentName, - options + options, ); return poller.pollUntilDone(); } @@ -459,7 +456,7 @@ export class DeploymentsImpl implements Deployments { * @param options The options parameters. */ private _list( - options?: DeploymentsListOptionalParams + options?: DeploymentsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -471,11 +468,11 @@ export class DeploymentsImpl implements Deployments { */ private _listByResourceGroup( resourceGroupName: string, - options?: DeploymentsListByResourceGroupOptionalParams + options?: DeploymentsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -486,11 +483,11 @@ export class DeploymentsImpl implements Deployments { */ private _listNext( nextLink: string, - options?: DeploymentsListNextOptionalParams + options?: DeploymentsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -503,11 +500,11 @@ export class DeploymentsImpl implements Deployments { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: DeploymentsListByResourceGroupNextOptionalParams + options?: DeploymentsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -515,96 +512,92 @@ export class DeploymentsImpl implements Deployments { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NginxDeployment + bodyMapper: Mappers.NginxDeployment, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.NginxDeployment + bodyMapper: Mappers.NginxDeployment, }, 201: { - bodyMapper: Mappers.NginxDeployment + bodyMapper: Mappers.NginxDeployment, }, 202: { - bodyMapper: Mappers.NginxDeployment + bodyMapper: Mappers.NginxDeployment, }, 204: { - bodyMapper: Mappers.NginxDeployment + bodyMapper: Mappers.NginxDeployment, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, - requestBody: Parameters.body2, + requestBody: Parameters.body3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.NginxDeployment + bodyMapper: Mappers.NginxDeployment, }, 201: { - bodyMapper: Mappers.NginxDeployment + bodyMapper: Mappers.NginxDeployment, }, 202: { - bodyMapper: Mappers.NginxDeployment + bodyMapper: Mappers.NginxDeployment, }, 204: { - bodyMapper: Mappers.NginxDeployment + bodyMapper: Mappers.NginxDeployment, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, - requestBody: Parameters.body3, + requestBody: Parameters.body4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}", httpMethod: "DELETE", responses: { 200: {}, @@ -612,93 +605,91 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Nginx.NginxPlus/nginxDeployments", + path: "/subscriptions/{subscriptionId}/providers/Nginx.NginxPlus/nginxDeployments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NginxDeploymentListResponse + bodyMapper: Mappers.NginxDeploymentListResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NginxDeploymentListResponse + bodyMapper: Mappers.NginxDeploymentListResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NginxDeploymentListResponse + bodyMapper: Mappers.NginxDeploymentListResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NginxDeploymentListResponse + bodyMapper: Mappers.NginxDeploymentListResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/nginx/arm-nginx/src/operations/operations.ts b/sdk/nginx/arm-nginx/src/operations/operations.ts index c09fc4b83b44..2e8073f0322f 100644 --- a/sdk/nginx/arm-nginx/src/operations/operations.ts +++ b/sdk/nginx/arm-nginx/src/operations/operations.ts @@ -18,7 +18,7 @@ import { OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, - OperationsListNextResponse + OperationsListNextResponse, } from "../models"; /// @@ -35,11 +35,11 @@ export class OperationsImpl implements Operations { } /** - * List all operations provided by Nginx.NginxPlus for the 2023-04-01 api version. + * List all operations provided by Nginx.NginxPlus for the 2024-01-01-preview api version. * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -89,11 +89,11 @@ export class OperationsImpl implements Operations { } /** - * List all operations provided by Nginx.NginxPlus for the 2023-04-01 api version. + * List all operations provided by Nginx.NginxPlus for the 2024-01-01-preview api version. * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class OperationsImpl implements Operations { */ private _listNext( nextLink: string, - options?: OperationsListNextOptionalParams + options?: OperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/nginx/arm-nginx/src/operationsInterfaces/certificates.ts b/sdk/nginx/arm-nginx/src/operationsInterfaces/certificates.ts index 44f22982c5e0..50393c46185f 100644 --- a/sdk/nginx/arm-nginx/src/operationsInterfaces/certificates.ts +++ b/sdk/nginx/arm-nginx/src/operationsInterfaces/certificates.ts @@ -15,7 +15,7 @@ import { CertificatesGetResponse, CertificatesCreateOrUpdateOptionalParams, CertificatesCreateOrUpdateResponse, - CertificatesDeleteOptionalParams + CertificatesDeleteOptionalParams, } from "../models"; /// @@ -30,7 +30,7 @@ export interface Certificates { list( resourceGroupName: string, deploymentName: string, - options?: CertificatesListOptionalParams + options?: CertificatesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a certificate of given NGINX deployment @@ -43,7 +43,7 @@ export interface Certificates { resourceGroupName: string, deploymentName: string, certificateName: string, - options?: CertificatesGetOptionalParams + options?: CertificatesGetOptionalParams, ): Promise; /** * Create or update the NGINX certificates for given NGINX deployment @@ -56,7 +56,7 @@ export interface Certificates { resourceGroupName: string, deploymentName: string, certificateName: string, - options?: CertificatesCreateOrUpdateOptionalParams + options?: CertificatesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -74,7 +74,7 @@ export interface Certificates { resourceGroupName: string, deploymentName: string, certificateName: string, - options?: CertificatesCreateOrUpdateOptionalParams + options?: CertificatesCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a certificate from the NGINX deployment @@ -87,7 +87,7 @@ export interface Certificates { resourceGroupName: string, deploymentName: string, certificateName: string, - options?: CertificatesDeleteOptionalParams + options?: CertificatesDeleteOptionalParams, ): Promise, void>>; /** * Deletes a certificate from the NGINX deployment @@ -100,6 +100,6 @@ export interface Certificates { resourceGroupName: string, deploymentName: string, certificateName: string, - options?: CertificatesDeleteOptionalParams + options?: CertificatesDeleteOptionalParams, ): Promise; } diff --git a/sdk/nginx/arm-nginx/src/operationsInterfaces/configurations.ts b/sdk/nginx/arm-nginx/src/operationsInterfaces/configurations.ts index 16d58ec726fa..6a872d49af64 100644 --- a/sdk/nginx/arm-nginx/src/operationsInterfaces/configurations.ts +++ b/sdk/nginx/arm-nginx/src/operationsInterfaces/configurations.ts @@ -15,7 +15,9 @@ import { ConfigurationsGetResponse, ConfigurationsCreateOrUpdateOptionalParams, ConfigurationsCreateOrUpdateResponse, - ConfigurationsDeleteOptionalParams + ConfigurationsDeleteOptionalParams, + ConfigurationsAnalysisOptionalParams, + ConfigurationsAnalysisResponse, } from "../models"; /// @@ -30,7 +32,7 @@ export interface Configurations { list( resourceGroupName: string, deploymentName: string, - options?: ConfigurationsListOptionalParams + options?: ConfigurationsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the NGINX configuration of given NGINX deployment @@ -44,7 +46,7 @@ export interface Configurations { resourceGroupName: string, deploymentName: string, configurationName: string, - options?: ConfigurationsGetOptionalParams + options?: ConfigurationsGetOptionalParams, ): Promise; /** * Create or update the NGINX configuration for given NGINX deployment @@ -58,7 +60,7 @@ export interface Configurations { resourceGroupName: string, deploymentName: string, configurationName: string, - options?: ConfigurationsCreateOrUpdateOptionalParams + options?: ConfigurationsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -77,7 +79,7 @@ export interface Configurations { resourceGroupName: string, deploymentName: string, configurationName: string, - options?: ConfigurationsCreateOrUpdateOptionalParams + options?: ConfigurationsCreateOrUpdateOptionalParams, ): Promise; /** * Reset the NGINX configuration of given NGINX deployment to default @@ -91,7 +93,7 @@ export interface Configurations { resourceGroupName: string, deploymentName: string, configurationName: string, - options?: ConfigurationsDeleteOptionalParams + options?: ConfigurationsDeleteOptionalParams, ): Promise, void>>; /** * Reset the NGINX configuration of given NGINX deployment to default @@ -105,6 +107,20 @@ export interface Configurations { resourceGroupName: string, deploymentName: string, configurationName: string, - options?: ConfigurationsDeleteOptionalParams + options?: ConfigurationsDeleteOptionalParams, ): Promise; + /** + * Analyze an NGINX configuration without applying it to the NGINXaaS deployment + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param deploymentName The name of targeted NGINX deployment + * @param configurationName The name of configuration, only 'default' is supported value due to the + * singleton of NGINX conf + * @param options The options parameters. + */ + analysis( + resourceGroupName: string, + deploymentName: string, + configurationName: string, + options?: ConfigurationsAnalysisOptionalParams, + ): Promise; } diff --git a/sdk/nginx/arm-nginx/src/operationsInterfaces/deployments.ts b/sdk/nginx/arm-nginx/src/operationsInterfaces/deployments.ts index 76fc5d572431..55d74eded8cd 100644 --- a/sdk/nginx/arm-nginx/src/operationsInterfaces/deployments.ts +++ b/sdk/nginx/arm-nginx/src/operationsInterfaces/deployments.ts @@ -18,7 +18,7 @@ import { DeploymentsCreateOrUpdateResponse, DeploymentsUpdateOptionalParams, DeploymentsUpdateResponse, - DeploymentsDeleteOptionalParams + DeploymentsDeleteOptionalParams, } from "../models"; /// @@ -29,7 +29,7 @@ export interface Deployments { * @param options The options parameters. */ list( - options?: DeploymentsListOptionalParams + options?: DeploymentsListOptionalParams, ): PagedAsyncIterableIterator; /** * List all NGINX deployments under the specified resource group. @@ -38,7 +38,7 @@ export interface Deployments { */ listByResourceGroup( resourceGroupName: string, - options?: DeploymentsListByResourceGroupOptionalParams + options?: DeploymentsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get the NGINX deployment @@ -49,7 +49,7 @@ export interface Deployments { get( resourceGroupName: string, deploymentName: string, - options?: DeploymentsGetOptionalParams + options?: DeploymentsGetOptionalParams, ): Promise; /** * Create or update the NGINX deployment @@ -60,7 +60,7 @@ export interface Deployments { beginCreateOrUpdate( resourceGroupName: string, deploymentName: string, - options?: DeploymentsCreateOrUpdateOptionalParams + options?: DeploymentsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -76,7 +76,7 @@ export interface Deployments { beginCreateOrUpdateAndWait( resourceGroupName: string, deploymentName: string, - options?: DeploymentsCreateOrUpdateOptionalParams + options?: DeploymentsCreateOrUpdateOptionalParams, ): Promise; /** * Update the NGINX deployment @@ -87,7 +87,7 @@ export interface Deployments { beginUpdate( resourceGroupName: string, deploymentName: string, - options?: DeploymentsUpdateOptionalParams + options?: DeploymentsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -103,7 +103,7 @@ export interface Deployments { beginUpdateAndWait( resourceGroupName: string, deploymentName: string, - options?: DeploymentsUpdateOptionalParams + options?: DeploymentsUpdateOptionalParams, ): Promise; /** * Delete the NGINX deployment resource @@ -114,7 +114,7 @@ export interface Deployments { beginDelete( resourceGroupName: string, deploymentName: string, - options?: DeploymentsDeleteOptionalParams + options?: DeploymentsDeleteOptionalParams, ): Promise, void>>; /** * Delete the NGINX deployment resource @@ -125,6 +125,6 @@ export interface Deployments { beginDeleteAndWait( resourceGroupName: string, deploymentName: string, - options?: DeploymentsDeleteOptionalParams + options?: DeploymentsDeleteOptionalParams, ): Promise; } diff --git a/sdk/nginx/arm-nginx/src/operationsInterfaces/operations.ts b/sdk/nginx/arm-nginx/src/operationsInterfaces/operations.ts index 02ecbb6dbd92..fce0fe5dfc2a 100644 --- a/sdk/nginx/arm-nginx/src/operationsInterfaces/operations.ts +++ b/sdk/nginx/arm-nginx/src/operationsInterfaces/operations.ts @@ -13,10 +13,10 @@ import { OperationResult, OperationsListOptionalParams } from "../models"; /** Interface representing a Operations. */ export interface Operations { /** - * List all operations provided by Nginx.NginxPlus for the 2023-04-01 api version. + * List all operations provided by Nginx.NginxPlus for the 2024-01-01-preview api version. * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/nginx/arm-nginx/src/pagingHelper.ts b/sdk/nginx/arm-nginx/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/nginx/arm-nginx/src/pagingHelper.ts +++ b/sdk/nginx/arm-nginx/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/notificationhubs/arm-notificationhubs/CHANGELOG.md b/sdk/notificationhubs/arm-notificationhubs/CHANGELOG.md index c5c415e4a3bd..d16fc0c9fa54 100644 --- a/sdk/notificationhubs/arm-notificationhubs/CHANGELOG.md +++ b/sdk/notificationhubs/arm-notificationhubs/CHANGELOG.md @@ -1,15 +1,176 @@ # Release History + +## 3.0.0-beta.1 (2024-03-18) + +**Features** -## 2.1.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added operation group PrivateEndpointConnections + - Added operation Namespaces.beginCreateOrUpdate + - Added operation Namespaces.beginCreateOrUpdateAndWait + - Added operation Namespaces.delete + - Added operation Namespaces.getPnsCredentials + - Added operation Namespaces.update + - Added operation NotificationHubs.update + - Added Interface Availability + - Added Interface BrowserCredential + - Added Interface ConnectionDetails + - Added Interface ErrorAdditionalInfo + - Added Interface ErrorDetail + - Added Interface FcmV1Credential + - Added Interface GroupConnectivityInformation + - Added Interface IpRule + - Added Interface LogSpecification + - Added Interface MetricSpecification + - Added Interface NamespaceProperties + - Added Interface NamespacesGetPnsCredentialsOptionalParams + - Added Interface NamespacesUpdateOptionalParams + - Added Interface NetworkAcls + - Added Interface NotificationHubsUpdateOptionalParams + - Added Interface OperationProperties + - Added Interface PnsCredentials + - Added Interface PolicyKeyResource + - Added Interface PrivateEndpointConnectionProperties + - Added Interface PrivateEndpointConnectionResource + - Added Interface PrivateEndpointConnectionResourceListResult + - Added Interface PrivateEndpointConnectionsDeleteHeaders + - Added Interface PrivateEndpointConnectionsDeleteOptionalParams + - Added Interface PrivateEndpointConnectionsGetGroupIdOptionalParams + - Added Interface PrivateEndpointConnectionsGetOptionalParams + - Added Interface PrivateEndpointConnectionsListGroupIdsOptionalParams + - Added Interface PrivateEndpointConnectionsListOptionalParams + - Added Interface PrivateEndpointConnectionsUpdateOptionalParams + - Added Interface PrivateLinkResource + - Added Interface PrivateLinkResourceListResult + - Added Interface PrivateLinkResourceProperties + - Added Interface PrivateLinkServiceConnection + - Added Interface ProxyResource + - Added Interface PublicInternetAuthorizationRule + - Added Interface RegistrationResult + - Added Interface RemotePrivateEndpointConnection + - Added Interface RemotePrivateLinkServiceConnectionState + - Added Interface ServiceSpecification + - Added Interface SystemData + - Added Interface TrackedResource + - Added Interface XiaomiCredential + - Added Type Alias CreatedByType + - Added Type Alias NamespacesGetPnsCredentialsResponse + - Added Type Alias NamespaceStatus + - Added Type Alias NamespacesUpdateResponse + - Added Type Alias NotificationHubsUpdateResponse + - Added Type Alias OperationProvisioningState + - Added Type Alias PolicyKeyType + - Added Type Alias PrivateEndpointConnectionProvisioningState + - Added Type Alias PrivateEndpointConnectionsDeleteResponse + - Added Type Alias PrivateEndpointConnectionsGetGroupIdResponse + - Added Type Alias PrivateEndpointConnectionsGetResponse + - Added Type Alias PrivateEndpointConnectionsListGroupIdsResponse + - Added Type Alias PrivateEndpointConnectionsListResponse + - Added Type Alias PrivateEndpointConnectionsUpdateResponse + - Added Type Alias PrivateLinkConnectionStatus + - Added Type Alias PublicNetworkAccess + - Added Type Alias ReplicationRegion + - Added Type Alias ZoneRedundancyPreference + - Interface CheckAvailabilityResult has a new optional parameter location + - Interface CheckAvailabilityResult has a new optional parameter sku + - Interface CheckAvailabilityResult has a new optional parameter tags + - Interface DebugSendResponse has a new optional parameter location + - Interface DebugSendResponse has a new optional parameter tags + - Interface ErrorResponse has a new optional parameter error + - Interface NamespacePatchParameters has a new optional parameter properties + - Interface NamespaceResource has a new optional parameter networkAcls + - Interface NamespaceResource has a new optional parameter pnsCredentials + - Interface NamespaceResource has a new optional parameter privateEndpointConnections + - Interface NamespaceResource has a new optional parameter publicNetworkAccess + - Interface NamespaceResource has a new optional parameter replicationRegion + - Interface NamespaceResource has a new optional parameter zoneRedundancy + - Interface NamespacesCreateOrUpdateOptionalParams has a new optional parameter resumeFrom + - Interface NamespacesCreateOrUpdateOptionalParams has a new optional parameter updateIntervalInMs + - Interface NamespacesListAllOptionalParams has a new optional parameter skipToken + - Interface NamespacesListAllOptionalParams has a new optional parameter top + - Interface NamespacesListOptionalParams has a new optional parameter skipToken + - Interface NamespacesListOptionalParams has a new optional parameter top + - Interface NotificationHubPatchParameters has a new optional parameter browserCredential + - Interface NotificationHubPatchParameters has a new optional parameter dailyMaxActiveDevices + - Interface NotificationHubPatchParameters has a new optional parameter fcmV1Credential + - Interface NotificationHubPatchParameters has a new optional parameter name + - Interface NotificationHubPatchParameters has a new optional parameter sku + - Interface NotificationHubPatchParameters has a new optional parameter tags + - Interface NotificationHubPatchParameters has a new optional parameter xiaomiCredential + - Interface NotificationHubResource has a new optional parameter browserCredential + - Interface NotificationHubResource has a new optional parameter dailyMaxActiveDevices + - Interface NotificationHubResource has a new optional parameter fcmV1Credential + - Interface NotificationHubResource has a new optional parameter sku + - Interface NotificationHubResource has a new optional parameter xiaomiCredential + - Interface NotificationHubsListOptionalParams has a new optional parameter skipToken + - Interface NotificationHubsListOptionalParams has a new optional parameter top + - Interface Operation has a new optional parameter isDataAction + - Interface Operation has a new optional parameter properties + - Interface OperationDisplay has a new optional parameter description + - Interface PnsCredentialsResource has a new optional parameter browserCredential + - Interface PnsCredentialsResource has a new optional parameter fcmV1Credential + - Interface PnsCredentialsResource has a new optional parameter location + - Interface PnsCredentialsResource has a new optional parameter tags + - Interface PnsCredentialsResource has a new optional parameter xiaomiCredential + - Interface Resource has a new optional parameter systemData + - Interface SharedAccessAuthorizationRuleResource has a new optional parameter location + - Interface SharedAccessAuthorizationRuleResource has a new optional parameter tags + - Interface WnsCredential has a new optional parameter certificateKey + - Interface WnsCredential has a new optional parameter wnsCertificate + - Added Enum KnownAccessRights + - Added Enum KnownCreatedByType + - Added Enum KnownNamespaceStatus + - Added Enum KnownNamespaceType + - Added Enum KnownOperationProvisioningState + - Added Enum KnownPolicyKeyType + - Added Enum KnownPrivateEndpointConnectionProvisioningState + - Added Enum KnownPrivateLinkConnectionStatus + - Added Enum KnownPublicNetworkAccess + - Added Enum KnownReplicationRegion + - Added Enum KnownZoneRedundancyPreference -### Other Changes +**Breaking Changes** + - Removed operation Namespaces.beginDelete + - Removed operation Namespaces.beginDeleteAndWait + - Removed operation Namespaces.createOrUpdate + - Removed operation Namespaces.patch + - Removed operation NotificationHubs.patch + - Operation Namespaces.createOrUpdateAuthorizationRule has a new signature + - Operation Namespaces.regenerateKeys has a new signature + - Operation NotificationHubs.createOrUpdate has a new signature + - Operation NotificationHubs.createOrUpdateAuthorizationRule has a new signature + - Operation NotificationHubs.regenerateKeys has a new signature + - Interface ErrorResponse no longer has parameter code + - Interface ErrorResponse no longer has parameter message + - Interface NamespacesDeleteOptionalParams no longer has parameter resumeFrom + - Interface NamespacesDeleteOptionalParams no longer has parameter updateIntervalInMs + - Interface NotificationHubPatchParameters no longer has parameter namePropertiesName + - Interface NotificationHubsDebugSendOptionalParams no longer has parameter parameters + - Interface Resource no longer has parameter location + - Interface Resource no longer has parameter sku + - Interface Resource no longer has parameter tags + - Interface NamespaceResource has a new required parameter sku + - Parameter authTokenUrl of interface AdmCredential is now required + - Parameter clientId of interface AdmCredential is now required + - Parameter clientSecret of interface AdmCredential is now required + - Parameter endpoint of interface ApnsCredential is now required + - Parameter baiduApiKey of interface BaiduCredential is now required + - Parameter baiduEndPoint of interface BaiduCredential is now required + - Parameter baiduSecretKey of interface BaiduCredential is now required + - Parameter googleApiKey of interface GcmCredential is now required + - Parameter certificateKey of interface MpnsCredential is now required + - Parameter mpnsCertificate of interface MpnsCredential is now required + - Parameter thumbprint of interface MpnsCredential is now required + - Parameter rights of interface SharedAccessAuthorizationRuleProperties is now required + - Type of parameter results of interface DebugSendResponse is changed from Record to RegistrationResult[] + - Type of parameter provisioningState of interface NamespaceResource is changed from string to OperationProvisioningState + - Type of parameter status of interface NamespaceResource is changed from string to NamespaceStatus + - Type of parameter createdTime of interface SharedAccessAuthorizationRuleProperties is changed from string to Date + - Type of parameter modifiedTime of interface SharedAccessAuthorizationRuleProperties is changed from string to Date + - Type of parameter createdTime of interface SharedAccessAuthorizationRuleResource is changed from string to Date + - Type of parameter modifiedTime of interface SharedAccessAuthorizationRuleResource is changed from string to Date + + ## 2.1.0 (2022-12-01) **Features** @@ -38,4 +199,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/notificationhubs/arm-notificationhubs/LICENSE b/sdk/notificationhubs/arm-notificationhubs/LICENSE index 5d1d36e0af80..7d5934740965 100644 --- a/sdk/notificationhubs/arm-notificationhubs/LICENSE +++ b/sdk/notificationhubs/arm-notificationhubs/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2022 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/notificationhubs/arm-notificationhubs/README.md b/sdk/notificationhubs/arm-notificationhubs/README.md index 3578d9091d02..d334054c0ed6 100644 --- a/sdk/notificationhubs/arm-notificationhubs/README.md +++ b/sdk/notificationhubs/arm-notificationhubs/README.md @@ -2,11 +2,11 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure NotificationHubsManagement client. -Azure NotificationHub client +Microsoft Notification Hubs Resource Provider REST API. [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/notificationhubs/arm-notificationhubs) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-notificationhubs) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-notificationhubs) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-notificationhubs?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/notificationhubs/arm-notificationhubs/_meta.json b/sdk/notificationhubs/arm-notificationhubs/_meta.json index a3bef7cd8353..12ca810858ba 100644 --- a/sdk/notificationhubs/arm-notificationhubs/_meta.json +++ b/sdk/notificationhubs/arm-notificationhubs/_meta.json @@ -1,8 +1,8 @@ { - "commit": "f9a6cb686bcc0f1b23761db19f2491c5c4df95cb", - "readme": "specification\\notificationhubs\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\notificationhubs\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --generate-sample=true", + "commit": "0cca8953ec713d8cc0e940c37e865d36b43d18f8", + "readme": "specification/notificationhubs/resource-manager/readme.md", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\notificationhubs\\resource-manager\\readme.md --use=@autorest/typescript@6.0.17 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", - "use": "@autorest/typescript@6.0.0-rc.3.20221108.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", + "use": "@autorest/typescript@6.0.17" } \ No newline at end of file diff --git a/sdk/notificationhubs/arm-notificationhubs/assets.json b/sdk/notificationhubs/arm-notificationhubs/assets.json index 81b358752288..8d3f82afdb6e 100644 --- a/sdk/notificationhubs/arm-notificationhubs/assets.json +++ b/sdk/notificationhubs/arm-notificationhubs/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/notificationhubs/arm-notificationhubs", - "Tag": "js/notificationhubs/arm-notificationhubs_383fa36b59" + "Tag": "js/notificationhubs/arm-notificationhubs_7b1692ef9d" } diff --git a/sdk/notificationhubs/arm-notificationhubs/package.json b/sdk/notificationhubs/arm-notificationhubs/package.json index 3c973b40edae..cc5c4838879c 100644 --- a/sdk/notificationhubs/arm-notificationhubs/package.json +++ b/sdk/notificationhubs/arm-notificationhubs/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for NotificationHubsManagementClient.", - "version": "2.1.1", + "version": "3.0.0-beta.1", "engines": { "node": ">=18.0.0" }, "dependencies": { - "@azure/core-lro": "^2.2.0", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.6.1", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-client": "^1.7.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -29,23 +29,24 @@ "types": "./types/arm-notificationhubs.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.31.1", - "mkdirp": "^1.0.4", + "mkdirp": "^2.1.2", "typescript": "~5.3.3", "uglify-js": "^3.4.9", - "rimraf": "^5.0.5", + "rimraf": "^5.0.0", + "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "esm": "^3.2.18", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0", - "@types/mocha": "^10.0.0" + "ts-node": "^10.0.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/notificationhubs/arm-notificationhubs", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" @@ -77,7 +78,6 @@ "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -106,6 +106,7 @@ ] }, "autoPublish": true, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/notificationhubs/arm-notificationhubs", "//sampleConfiguration": { "productName": "", "productSlugs": [ @@ -114,4 +115,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-notificationhubs?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/notificationhubs/arm-notificationhubs/review/arm-notificationhubs.api.md b/sdk/notificationhubs/arm-notificationhubs/review/arm-notificationhubs.api.md index 2bcfa8f5d5b2..9b19610a1e3c 100644 --- a/sdk/notificationhubs/arm-notificationhubs/review/arm-notificationhubs.api.md +++ b/sdk/notificationhubs/arm-notificationhubs/review/arm-notificationhubs.api.md @@ -6,18 +6,18 @@ import * as coreAuth from '@azure/core-auth'; import * as coreClient from '@azure/core-client'; +import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; -import { PollerLike } from '@azure/core-lro'; -import { PollOperationState } from '@azure/core-lro'; +import { SimplePollerLike } from '@azure/core-lro'; // @public -export type AccessRights = "Manage" | "Send" | "Listen"; +export type AccessRights = string; // @public export interface AdmCredential { - authTokenUrl?: string; - clientId?: string; - clientSecret?: string; + authTokenUrl: string; + clientId: string; + clientSecret: string; } // @public @@ -26,17 +26,30 @@ export interface ApnsCredential { appId?: string; appName?: string; certificateKey?: string; - endpoint?: string; + endpoint: string; keyId?: string; thumbprint?: string; token?: string; } +// @public +export interface Availability { + readonly blobDuration?: string; + readonly timeGrain?: string; +} + // @public export interface BaiduCredential { - baiduApiKey?: string; - baiduEndPoint?: string; - baiduSecretKey?: string; + baiduApiKey: string; + baiduEndPoint: string; + baiduSecretKey: string; +} + +// @public +export interface BrowserCredential { + subject: string; + vapidPrivateKey: string; + vapidPublicKey: string; } // @public @@ -53,32 +66,174 @@ export interface CheckAvailabilityParameters { } // @public -export interface CheckAvailabilityResult extends Resource { +export interface CheckAvailabilityResult extends ProxyResource { isAvailiable?: boolean; + location?: string; + sku?: Sku; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export interface ConnectionDetails { + readonly groupId?: string; + readonly id?: string; + readonly linkIdentifier?: string; + readonly memberName?: string; + readonly privateIpAddress?: string; +} + +// @public +export type CreatedByType = string; + +// @public +export interface DebugSendResponse extends ProxyResource { + readonly failure?: number; + location?: string; + readonly results?: RegistrationResult[]; + readonly success?: number; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; } // @public -export interface DebugSendResponse extends Resource { - failure?: number; - results?: Record; - success?: number; +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; } // @public export interface ErrorResponse { - code?: string; - message?: string; + error?: ErrorDetail; +} + +// @public +export interface FcmV1Credential { + clientEmail: string; + privateKey: string; + projectId: string; } // @public export interface GcmCredential { gcmEndpoint?: string; - googleApiKey?: string; + googleApiKey: string; } // @public export function getContinuationToken(page: unknown): string | undefined; +// @public +export interface GroupConnectivityInformation { + readonly customerVisibleFqdns?: string[]; + readonly groupId?: string; + readonly internalFqdn?: string; + readonly memberName?: string; + readonly privateLinkServiceArmRegion?: string; + readonly redirectMapId?: string; +} + +// @public +export interface IpRule { + ipMask: string; + rights: AccessRights[]; +} + +// @public +export enum KnownAccessRights { + Listen = "Listen", + Manage = "Manage", + Send = "Send" +} + +// @public +export enum KnownCreatedByType { + Application = "Application", + Key = "Key", + ManagedIdentity = "ManagedIdentity", + User = "User" +} + +// @public +export enum KnownNamespaceStatus { + Created = "Created", + Creating = "Creating", + Deleting = "Deleting", + Suspended = "Suspended" +} + +// @public +export enum KnownNamespaceType { + Messaging = "Messaging", + NotificationHub = "NotificationHub" +} + +// @public +export enum KnownOperationProvisioningState { + Canceled = "Canceled", + Disabled = "Disabled", + Failed = "Failed", + InProgress = "InProgress", + Pending = "Pending", + Succeeded = "Succeeded", + Unknown = "Unknown" +} + +// @public +export enum KnownPolicyKeyType { + PrimaryKey = "PrimaryKey", + SecondaryKey = "SecondaryKey" +} + +// @public +export enum KnownPrivateEndpointConnectionProvisioningState { + Creating = "Creating", + Deleted = "Deleted", + Deleting = "Deleting", + DeletingByProxy = "DeletingByProxy", + Succeeded = "Succeeded", + Unknown = "Unknown", + Updating = "Updating", + UpdatingByProxy = "UpdatingByProxy" +} + +// @public +export enum KnownPrivateLinkConnectionStatus { + Approved = "Approved", + Disconnected = "Disconnected", + Pending = "Pending", + Rejected = "Rejected" +} + +// @public +export enum KnownPublicNetworkAccess { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownReplicationRegion { + AustraliaEast = "AustraliaEast", + BrazilSouth = "BrazilSouth", + Default = "Default", + None = "None", + NorthEurope = "NorthEurope", + SouthAfricaNorth = "SouthAfricaNorth", + SouthEastAsia = "SouthEastAsia", + WestUs2 = "WestUs2" +} + // @public export enum KnownSkuName { Basic = "Basic", @@ -87,38 +242,48 @@ export enum KnownSkuName { } // @public -export interface MpnsCredential { - certificateKey?: string; - mpnsCertificate?: string; - thumbprint?: string; +export enum KnownZoneRedundancyPreference { + Disabled = "Disabled", + Enabled = "Enabled" } // @public -export interface NamespaceCreateOrUpdateParameters extends Resource { - createdAt?: Date; - critical?: boolean; - dataCenter?: string; - enabled?: boolean; - readonly metricId?: string; - namePropertiesName?: string; - namespaceType?: NamespaceType; - provisioningState?: string; - region?: string; - scaleUnit?: string; - serviceBusEndpoint?: string; - status?: string; - subscriptionId?: string; - updatedAt?: Date; +export interface LogSpecification { + readonly blobDuration?: string; + categoryGroups?: string[]; + readonly displayName?: string; + readonly name?: string; +} + +// @public +export interface MetricSpecification { + readonly aggregationType?: string; + readonly availabilities?: Availability[]; + readonly displayDescription?: string; + readonly displayName?: string; + readonly fillGapWithZero?: boolean; + readonly metricFilterPattern?: string; + readonly name?: string; + readonly supportedTimeGrainTypes?: string[]; + readonly unit?: string; +} + +// @public +export interface MpnsCredential { + certificateKey: string; + mpnsCertificate: string; + thumbprint: string; } // @public export interface NamespaceListResult { - nextLink?: string; - value?: NamespaceResource[]; + readonly nextLink?: string; + readonly value?: NamespaceResource[]; } // @public export interface NamespacePatchParameters { + properties?: NamespaceProperties; sku?: Sku; tags?: { [propertyName: string]: string; @@ -126,39 +291,71 @@ export interface NamespacePatchParameters { } // @public -export interface NamespaceResource extends Resource { - createdAt?: Date; - critical?: boolean; +export interface NamespaceProperties { + readonly createdAt?: Date; + readonly critical?: boolean; dataCenter?: string; - enabled?: boolean; + readonly enabled?: boolean; readonly metricId?: string; - namePropertiesName?: string; + readonly name?: string; namespaceType?: NamespaceType; - provisioningState?: string; - region?: string; + networkAcls?: NetworkAcls; + pnsCredentials?: PnsCredentials; + readonly privateEndpointConnections?: PrivateEndpointConnectionResource[]; + provisioningState?: OperationProvisioningState; + publicNetworkAccess?: PublicNetworkAccess; + readonly region?: string; + replicationRegion?: ReplicationRegion; scaleUnit?: string; - serviceBusEndpoint?: string; - status?: string; - subscriptionId?: string; - updatedAt?: Date; + readonly serviceBusEndpoint?: string; + status?: NamespaceStatus; + readonly subscriptionId?: string; + readonly updatedAt?: Date; + zoneRedundancy?: ZoneRedundancyPreference; +} + +// @public +export interface NamespaceResource extends TrackedResource { + readonly createdAt?: Date; + readonly critical?: boolean; + dataCenter?: string; + readonly enabled?: boolean; + readonly metricId?: string; + readonly namePropertiesName?: string; + namespaceType?: NamespaceType; + networkAcls?: NetworkAcls; + pnsCredentials?: PnsCredentials; + readonly privateEndpointConnections?: PrivateEndpointConnectionResource[]; + provisioningState?: OperationProvisioningState; + publicNetworkAccess?: PublicNetworkAccess; + readonly region?: string; + replicationRegion?: ReplicationRegion; + scaleUnit?: string; + readonly serviceBusEndpoint?: string; + sku: Sku; + status?: NamespaceStatus; + readonly subscriptionId?: string; + readonly updatedAt?: Date; + zoneRedundancy?: ZoneRedundancyPreference; } // @public export interface Namespaces { - beginDelete(resourceGroupName: string, namespaceName: string, options?: NamespacesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, namespaceName: string, options?: NamespacesDeleteOptionalParams): Promise; + beginCreateOrUpdate(resourceGroupName: string, namespaceName: string, parameters: NamespaceResource, options?: NamespacesCreateOrUpdateOptionalParams): Promise, NamespacesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, namespaceName: string, parameters: NamespaceResource, options?: NamespacesCreateOrUpdateOptionalParams): Promise; checkAvailability(parameters: CheckAvailabilityParameters, options?: NamespacesCheckAvailabilityOptionalParams): Promise; - createOrUpdate(resourceGroupName: string, namespaceName: string, parameters: NamespaceCreateOrUpdateParameters, options?: NamespacesCreateOrUpdateOptionalParams): Promise; - createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: SharedAccessAuthorizationRuleCreateOrUpdateParameters, options?: NamespacesCreateOrUpdateAuthorizationRuleOptionalParams): Promise; + createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: SharedAccessAuthorizationRuleResource, options?: NamespacesCreateOrUpdateAuthorizationRuleOptionalParams): Promise; + delete(resourceGroupName: string, namespaceName: string, options?: NamespacesDeleteOptionalParams): Promise; deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: NamespacesDeleteAuthorizationRuleOptionalParams): Promise; get(resourceGroupName: string, namespaceName: string, options?: NamespacesGetOptionalParams): Promise; getAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: NamespacesGetAuthorizationRuleOptionalParams): Promise; + getPnsCredentials(resourceGroupName: string, namespaceName: string, options?: NamespacesGetPnsCredentialsOptionalParams): Promise; list(resourceGroupName: string, options?: NamespacesListOptionalParams): PagedAsyncIterableIterator; listAll(options?: NamespacesListAllOptionalParams): PagedAsyncIterableIterator; listAuthorizationRules(resourceGroupName: string, namespaceName: string, options?: NamespacesListAuthorizationRulesOptionalParams): PagedAsyncIterableIterator; listKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: NamespacesListKeysOptionalParams): Promise; - patch(resourceGroupName: string, namespaceName: string, parameters: NamespacePatchParameters, options?: NamespacesPatchOptionalParams): Promise; - regenerateKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: PolicykeyResource, options?: NamespacesRegenerateKeysOptionalParams): Promise; + regenerateKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: PolicyKeyResource, options?: NamespacesRegenerateKeysOptionalParams): Promise; + update(resourceGroupName: string, namespaceName: string, parameters: NamespacePatchParameters, options?: NamespacesUpdateOptionalParams): Promise; } // @public @@ -177,6 +374,8 @@ export type NamespacesCreateOrUpdateAuthorizationRuleResponse = SharedAccessAuth // @public export interface NamespacesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public @@ -188,8 +387,6 @@ export interface NamespacesDeleteAuthorizationRuleOptionalParams extends coreCli // @public export interface NamespacesDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; } // @public @@ -203,6 +400,13 @@ export type NamespacesGetAuthorizationRuleResponse = SharedAccessAuthorizationRu export interface NamespacesGetOptionalParams extends coreClient.OperationOptions { } +// @public +export interface NamespacesGetPnsCredentialsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NamespacesGetPnsCredentialsResponse = PnsCredentialsResource; + // @public export type NamespacesGetResponse = NamespaceResource; @@ -215,6 +419,8 @@ export type NamespacesListAllNextResponse = NamespaceListResult; // @public export interface NamespacesListAllOptionalParams extends coreClient.OperationOptions { + skipToken?: string; + top?: number; } // @public @@ -250,78 +456,89 @@ export type NamespacesListNextResponse = NamespaceListResult; // @public export interface NamespacesListOptionalParams extends coreClient.OperationOptions { + skipToken?: string; + top?: number; } // @public export type NamespacesListResponse = NamespaceListResult; // @public -export interface NamespacesPatchOptionalParams extends coreClient.OperationOptions { +export interface NamespacesRegenerateKeysOptionalParams extends coreClient.OperationOptions { } // @public -export type NamespacesPatchResponse = NamespaceResource; +export type NamespacesRegenerateKeysResponse = ResourceListKeys; // @public -export interface NamespacesRegenerateKeysOptionalParams extends coreClient.OperationOptions { +export type NamespaceStatus = string; + +// @public +export interface NamespacesUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type NamespacesRegenerateKeysResponse = ResourceListKeys; +export type NamespacesUpdateResponse = NamespaceResource; // @public -export type NamespaceType = "Messaging" | "NotificationHub"; +export type NamespaceType = string; // @public -export interface NotificationHubCreateOrUpdateParameters extends Resource { - admCredential?: AdmCredential; - apnsCredential?: ApnsCredential; - authorizationRules?: SharedAccessAuthorizationRuleProperties[]; - baiduCredential?: BaiduCredential; - gcmCredential?: GcmCredential; - mpnsCredential?: MpnsCredential; - namePropertiesName?: string; - registrationTtl?: string; - wnsCredential?: WnsCredential; +export interface NetworkAcls { + ipRules?: IpRule[]; + publicNetworkRule?: PublicInternetAuthorizationRule; } // @public export interface NotificationHubListResult { - nextLink?: string; - value?: NotificationHubResource[]; + readonly nextLink?: string; + readonly value?: NotificationHubResource[]; } // @public -export interface NotificationHubPatchParameters extends Resource { +export interface NotificationHubPatchParameters { admCredential?: AdmCredential; apnsCredential?: ApnsCredential; - authorizationRules?: SharedAccessAuthorizationRuleProperties[]; + readonly authorizationRules?: SharedAccessAuthorizationRuleProperties[]; baiduCredential?: BaiduCredential; + browserCredential?: BrowserCredential; + readonly dailyMaxActiveDevices?: number; + fcmV1Credential?: FcmV1Credential; gcmCredential?: GcmCredential; mpnsCredential?: MpnsCredential; - namePropertiesName?: string; + name?: string; registrationTtl?: string; + sku?: Sku; + tags?: { + [propertyName: string]: string; + }; wnsCredential?: WnsCredential; + xiaomiCredential?: XiaomiCredential; } // @public -export interface NotificationHubResource extends Resource { +export interface NotificationHubResource extends TrackedResource { admCredential?: AdmCredential; apnsCredential?: ApnsCredential; - authorizationRules?: SharedAccessAuthorizationRuleProperties[]; + readonly authorizationRules?: SharedAccessAuthorizationRuleProperties[]; baiduCredential?: BaiduCredential; + browserCredential?: BrowserCredential; + readonly dailyMaxActiveDevices?: number; + fcmV1Credential?: FcmV1Credential; gcmCredential?: GcmCredential; mpnsCredential?: MpnsCredential; namePropertiesName?: string; registrationTtl?: string; + sku?: Sku; wnsCredential?: WnsCredential; + xiaomiCredential?: XiaomiCredential; } // @public export interface NotificationHubs { checkNotificationHubAvailability(resourceGroupName: string, namespaceName: string, parameters: CheckAvailabilityParameters, options?: NotificationHubsCheckNotificationHubAvailabilityOptionalParams): Promise; - createOrUpdate(resourceGroupName: string, namespaceName: string, notificationHubName: string, parameters: NotificationHubCreateOrUpdateParameters, options?: NotificationHubsCreateOrUpdateOptionalParams): Promise; - createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, notificationHubName: string, authorizationRuleName: string, parameters: SharedAccessAuthorizationRuleCreateOrUpdateParameters, options?: NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, namespaceName: string, notificationHubName: string, parameters: NotificationHubResource, options?: NotificationHubsCreateOrUpdateOptionalParams): Promise; + createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, notificationHubName: string, authorizationRuleName: string, parameters: SharedAccessAuthorizationRuleResource, options?: NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams): Promise; debugSend(resourceGroupName: string, namespaceName: string, notificationHubName: string, options?: NotificationHubsDebugSendOptionalParams): Promise; delete(resourceGroupName: string, namespaceName: string, notificationHubName: string, options?: NotificationHubsDeleteOptionalParams): Promise; deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, notificationHubName: string, authorizationRuleName: string, options?: NotificationHubsDeleteAuthorizationRuleOptionalParams): Promise; @@ -331,8 +548,8 @@ export interface NotificationHubs { list(resourceGroupName: string, namespaceName: string, options?: NotificationHubsListOptionalParams): PagedAsyncIterableIterator; listAuthorizationRules(resourceGroupName: string, namespaceName: string, notificationHubName: string, options?: NotificationHubsListAuthorizationRulesOptionalParams): PagedAsyncIterableIterator; listKeys(resourceGroupName: string, namespaceName: string, notificationHubName: string, authorizationRuleName: string, options?: NotificationHubsListKeysOptionalParams): Promise; - patch(resourceGroupName: string, namespaceName: string, notificationHubName: string, options?: NotificationHubsPatchOptionalParams): Promise; - regenerateKeys(resourceGroupName: string, namespaceName: string, notificationHubName: string, authorizationRuleName: string, parameters: PolicykeyResource, options?: NotificationHubsRegenerateKeysOptionalParams): Promise; + regenerateKeys(resourceGroupName: string, namespaceName: string, notificationHubName: string, authorizationRuleName: string, parameters: PolicyKeyResource, options?: NotificationHubsRegenerateKeysOptionalParams): Promise; + update(resourceGroupName: string, namespaceName: string, notificationHubName: string, parameters: NotificationHubPatchParameters, options?: NotificationHubsUpdateOptionalParams): Promise; } // @public @@ -358,7 +575,6 @@ export type NotificationHubsCreateOrUpdateResponse = NotificationHubResource; // @public export interface NotificationHubsDebugSendOptionalParams extends coreClient.OperationOptions { - parameters?: Record; } // @public @@ -423,6 +639,8 @@ export type NotificationHubsListNextResponse = NotificationHubListResult; // @public export interface NotificationHubsListOptionalParams extends coreClient.OperationOptions { + skipToken?: string; + top?: number; } // @public @@ -442,6 +660,8 @@ export class NotificationHubsManagementClient extends coreClient.ServiceClient { // (undocumented) operations: Operations; // (undocumented) + privateEndpointConnections: PrivateEndpointConnections; + // (undocumented) subscriptionId: string; } @@ -453,28 +673,30 @@ export interface NotificationHubsManagementClientOptionalParams extends coreClie } // @public -export interface NotificationHubsPatchOptionalParams extends coreClient.OperationOptions { - parameters?: NotificationHubPatchParameters; +export interface NotificationHubsRegenerateKeysOptionalParams extends coreClient.OperationOptions { } // @public -export type NotificationHubsPatchResponse = NotificationHubResource; +export type NotificationHubsRegenerateKeysResponse = ResourceListKeys; // @public -export interface NotificationHubsRegenerateKeysOptionalParams extends coreClient.OperationOptions { +export interface NotificationHubsUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type NotificationHubsRegenerateKeysResponse = ResourceListKeys; +export type NotificationHubsUpdateResponse = NotificationHubResource; // @public export interface Operation { display?: OperationDisplay; + readonly isDataAction?: boolean; readonly name?: string; + properties?: OperationProperties; } // @public export interface OperationDisplay { + readonly description?: string; readonly operation?: string; readonly provider?: string; readonly resource?: string; @@ -486,6 +708,14 @@ export interface OperationListResult { readonly value?: Operation[]; } +// @public +export interface OperationProperties { + serviceSpecification?: ServiceSpecification; +} + +// @public +export type OperationProvisioningState = string; + // @public export interface Operations { list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; @@ -506,76 +736,249 @@ export interface OperationsListOptionalParams extends coreClient.OperationOption export type OperationsListResponse = OperationListResult; // @public -export interface PnsCredentialsResource extends Resource { +export interface PnsCredentials { admCredential?: AdmCredential; apnsCredential?: ApnsCredential; baiduCredential?: BaiduCredential; + browserCredential?: BrowserCredential; + fcmV1Credential?: FcmV1Credential; gcmCredential?: GcmCredential; mpnsCredential?: MpnsCredential; wnsCredential?: WnsCredential; + xiaomiCredential?: XiaomiCredential; } // @public -export interface PolicykeyResource { - policyKey?: string; +export interface PnsCredentialsResource extends ProxyResource { + admCredential?: AdmCredential; + apnsCredential?: ApnsCredential; + baiduCredential?: BaiduCredential; + browserCredential?: BrowserCredential; + fcmV1Credential?: FcmV1Credential; + gcmCredential?: GcmCredential; + location?: string; + mpnsCredential?: MpnsCredential; + tags?: { + [propertyName: string]: string; + }; + wnsCredential?: WnsCredential; + xiaomiCredential?: XiaomiCredential; } -// @public (undocumented) +// @public +export interface PolicyKeyResource { + policyKey: PolicyKeyType; +} + +// @public +export type PolicyKeyType = string; + +// @public +export interface PrivateEndpointConnectionProperties { + readonly groupIds?: string[]; + privateEndpoint?: RemotePrivateEndpointConnection; + privateLinkServiceConnectionState?: RemotePrivateLinkServiceConnectionState; + provisioningState?: PrivateEndpointConnectionProvisioningState; +} + +// @public +export type PrivateEndpointConnectionProvisioningState = string; + +// @public +export interface PrivateEndpointConnectionResource extends ProxyResource { + properties?: PrivateEndpointConnectionProperties; +} + +// @public +export interface PrivateEndpointConnectionResourceListResult { + readonly nextLink?: string; + readonly value?: PrivateEndpointConnectionResource[]; +} + +// @public +export interface PrivateEndpointConnections { + beginDelete(resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise, PrivateEndpointConnectionsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnectionResource, options?: PrivateEndpointConnectionsUpdateOptionalParams): Promise, PrivateEndpointConnectionsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnectionResource, options?: PrivateEndpointConnectionsUpdateOptionalParams): Promise; + get(resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise; + getGroupId(resourceGroupName: string, namespaceName: string, subResourceName: string, options?: PrivateEndpointConnectionsGetGroupIdOptionalParams): Promise; + list(resourceGroupName: string, namespaceName: string, options?: PrivateEndpointConnectionsListOptionalParams): PagedAsyncIterableIterator; + listGroupIds(resourceGroupName: string, namespaceName: string, options?: PrivateEndpointConnectionsListGroupIdsOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface PrivateEndpointConnectionsDeleteHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type PrivateEndpointConnectionsDeleteResponse = PrivateEndpointConnectionsDeleteHeaders; + +// @public +export interface PrivateEndpointConnectionsGetGroupIdOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsGetGroupIdResponse = PrivateLinkResource; + +// @public +export interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnectionResource; + +// @public +export interface PrivateEndpointConnectionsListGroupIdsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsListGroupIdsResponse = PrivateLinkResourceListResult; + +// @public +export interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionResourceListResult; + +// @public +export interface PrivateEndpointConnectionsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type PrivateEndpointConnectionsUpdateResponse = PrivateEndpointConnectionResource; + +// @public +export type PrivateLinkConnectionStatus = string; + +// @public +export interface PrivateLinkResource extends ProxyResource { + properties?: PrivateLinkResourceProperties; +} + +// @public +export interface PrivateLinkResourceListResult { + readonly nextLink?: string; + readonly value?: PrivateLinkResource[]; +} + +// @public +export interface PrivateLinkResourceProperties { + readonly groupId?: string; + readonly requiredMembers?: string[]; + readonly requiredZoneNames?: string[]; +} + +// @public +export interface PrivateLinkServiceConnection { + groupIds?: string[]; + name?: string; + requestMessage?: string; +} + +// @public +export interface ProxyResource extends Resource { +} + +// @public +export interface PublicInternetAuthorizationRule { + rights: AccessRights[]; +} + +// @public +export type PublicNetworkAccess = string; + +// @public +export interface RegistrationResult { + readonly applicationPlatform?: string; + readonly outcome?: string; + readonly pnsHandle?: string; + readonly registrationId?: string; +} + +// @public +export interface RemotePrivateEndpointConnection { + readonly id?: string; +} + +// @public +export interface RemotePrivateLinkServiceConnectionState { + readonly actionsRequired?: string; + readonly description?: string; + status?: PrivateLinkConnectionStatus; +} + +// @public +export type ReplicationRegion = string; + +// @public export interface Resource { readonly id?: string; - location?: string; readonly name?: string; - sku?: Sku; - tags?: { - [propertyName: string]: string; - }; + readonly systemData?: SystemData; readonly type?: string; } // @public export interface ResourceListKeys { - keyName?: string; - primaryConnectionString?: string; - primaryKey?: string; - secondaryConnectionString?: string; - secondaryKey?: string; + readonly keyName?: string; + readonly primaryConnectionString?: string; + readonly primaryKey?: string; + readonly secondaryConnectionString?: string; + readonly secondaryKey?: string; } // @public -export interface SharedAccessAuthorizationRuleCreateOrUpdateParameters { - properties: SharedAccessAuthorizationRuleProperties; +export interface ServiceSpecification { + readonly logSpecifications?: LogSpecification[]; + readonly metricSpecifications?: MetricSpecification[]; } // @public export interface SharedAccessAuthorizationRuleListResult { - nextLink?: string; - value?: SharedAccessAuthorizationRuleResource[]; + readonly nextLink?: string; + readonly value?: SharedAccessAuthorizationRuleResource[]; } // @public export interface SharedAccessAuthorizationRuleProperties { readonly claimType?: string; readonly claimValue?: string; - readonly createdTime?: string; + readonly createdTime?: Date; readonly keyName?: string; - readonly modifiedTime?: string; - readonly primaryKey?: string; + readonly modifiedTime?: Date; + primaryKey?: string; readonly revision?: number; - rights?: AccessRights[]; - readonly secondaryKey?: string; + rights: AccessRights[]; + secondaryKey?: string; } // @public -export interface SharedAccessAuthorizationRuleResource extends Resource { +export interface SharedAccessAuthorizationRuleResource extends ProxyResource { readonly claimType?: string; readonly claimValue?: string; - readonly createdTime?: string; + readonly createdTime?: Date; readonly keyName?: string; - readonly modifiedTime?: string; - readonly primaryKey?: string; + location?: string; + readonly modifiedTime?: Date; + primaryKey?: string; readonly revision?: number; rights?: AccessRights[]; - readonly secondaryKey?: string; + secondaryKey?: string; + tags?: { + [propertyName: string]: string; + }; } // @public @@ -590,18 +993,42 @@ export interface Sku { // @public export type SkuName = string; -// @public (undocumented) -export interface SubResource { - id?: string; +// @public +export interface SystemData { + createdAt?: Date; + createdBy?: string; + createdByType?: CreatedByType; + lastModifiedAt?: Date; + lastModifiedBy?: string; + lastModifiedByType?: CreatedByType; +} + +// @public +export interface TrackedResource extends Resource { + location: string; + tags?: { + [propertyName: string]: string; + }; } // @public export interface WnsCredential { + certificateKey?: string; packageSid?: string; secretKey?: string; windowsLiveEndpoint?: string; + wnsCertificate?: string; +} + +// @public +export interface XiaomiCredential { + appSecret?: string; + endpoint?: string; } +// @public +export type ZoneRedundancyPreference = string; + // (No @packageDocumentation comment for this package) ``` diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesCheckAvailabilitySample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesCheckAvailabilitySample.ts index 4fdc59e7df8f..f80a2b1de710 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesCheckAvailabilitySample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesCheckAvailabilitySample.ts @@ -10,28 +10,37 @@ // Licensed under the MIT License. import { CheckAvailabilityParameters, - NotificationHubsManagementClient + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. * * @summary Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCheckNameAvailability.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CheckAvailability.json */ -async function nameSpaceCheckNameAvailability() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; +async function namespacesCheckAvailability() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; const parameters: CheckAvailabilityParameters = { - name: "sdk-Namespace-2924" + name: "sdk-Namespace-2924", }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.checkAvailability(parameters); console.log(result); } -nameSpaceCheckNameAvailability().catch(console.error); +async function main() { + namespacesCheckAvailability(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesCreateOrUpdateAuthorizationRuleSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesCreateOrUpdateAuthorizationRuleSample.ts index 7ccb8e032e38..809cc9376664 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesCreateOrUpdateAuthorizationRuleSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesCreateOrUpdateAuthorizationRuleSample.ts @@ -9,37 +9,47 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - SharedAccessAuthorizationRuleCreateOrUpdateParameters, - NotificationHubsManagementClient + SharedAccessAuthorizationRuleResource, + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Creates an authorization rule for a namespace * * @summary Creates an authorization rule for a namespace - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleCreate.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json */ -async function nameSpaceAuthorizationRuleCreate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesCreateOrUpdateAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "sdk-AuthRules-1788"; - const parameters: SharedAccessAuthorizationRuleCreateOrUpdateParameters = { - properties: { rights: ["Listen", "Send"] } + const parameters: SharedAccessAuthorizationRuleResource = { + rights: ["Listen", "Send"], }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.createOrUpdateAuthorizationRule( resourceGroupName, namespaceName, authorizationRuleName, - parameters + parameters, ); console.log(result); } -nameSpaceAuthorizationRuleCreate().catch(console.error); +async function main() { + namespacesCreateOrUpdateAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesCreateOrUpdateSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesCreateOrUpdateSample.ts index e96dbbd6c13b..022d1f5cf9ab 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesCreateOrUpdateSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesCreateOrUpdateSample.ts @@ -9,37 +9,54 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - NamespaceCreateOrUpdateParameters, - NotificationHubsManagementClient + NamespaceResource, + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. + * This sample demonstrates how to Creates / Updates a Notification Hub namespace. This operation is idempotent. * - * @summary Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCreate.json + * @summary Creates / Updates a Notification Hub namespace. This operation is idempotent. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CreateOrUpdate.json */ -async function nameSpaceCreate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesCreateOrUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; - const parameters: NamespaceCreateOrUpdateParameters = { + const parameters: NamespaceResource = { location: "South Central US", + networkAcls: { + ipRules: [ + { ipMask: "185.48.100.00/24", rights: ["Manage", "Send", "Listen"] }, + ], + publicNetworkRule: { rights: ["Listen"] }, + }, sku: { name: "Standard", tier: "Standard" }, - tags: { tag1: "value1", tag2: "value2" } + tags: { tag1: "value1", tag2: "value2" }, + zoneRedundancy: "Enabled", }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); - const result = await client.namespaces.createOrUpdate( + const result = await client.namespaces.beginCreateOrUpdateAndWait( resourceGroupName, namespaceName, - parameters + parameters, ); console.log(result); } -nameSpaceCreate().catch(console.error); +async function main() { + namespacesCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesDeleteAuthorizationRuleSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesDeleteAuthorizationRuleSample.ts index 39fe7bbe2a4c..390c9e067c92 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesDeleteAuthorizationRuleSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesDeleteAuthorizationRuleSample.ts @@ -10,29 +10,39 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Deletes a namespace authorization rule * * @summary Deletes a namespace authorization rule - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleDelete.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleDelete.json */ -async function nameSpaceAuthorizationRuleDelete() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesDeleteAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "RootManageSharedAccessKey"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.deleteAuthorizationRule( resourceGroupName, namespaceName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -nameSpaceAuthorizationRuleDelete().catch(console.error); +async function main() { + namespacesDeleteAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesDeleteSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesDeleteSample.ts index 41788af22db6..485771ee8b89 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesDeleteSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesDeleteSample.ts @@ -10,27 +10,37 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. * * @summary Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceDelete.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Delete.json */ -async function nameSpaceDelete() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesDelete() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); - const result = await client.namespaces.beginDeleteAndWait( + const result = await client.namespaces.delete( resourceGroupName, - namespaceName + namespaceName, ); console.log(result); } -nameSpaceDelete().catch(console.error); +async function main() { + namespacesDelete(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesGetAuthorizationRuleSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesGetAuthorizationRuleSample.ts index e797a3c4035c..c3e9430339be 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesGetAuthorizationRuleSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesGetAuthorizationRuleSample.ts @@ -10,29 +10,39 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Gets an authorization rule for a namespace by name. * * @summary Gets an authorization rule for a namespace by name. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleGet.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleGet.json */ -async function nameSpaceAuthorizationRuleGet() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesGetAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "RootManageSharedAccessKey"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.getAuthorizationRule( resourceGroupName, namespaceName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -nameSpaceAuthorizationRuleGet().catch(console.error); +async function main() { + namespacesGetAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesGetPnsCredentialsSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesGetPnsCredentialsSample.ts new file mode 100644 index 000000000000..8af1433220ab --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesGetPnsCredentialsSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists the PNS credentials associated with a namespace. + * + * @summary Lists the PNS credentials associated with a namespace. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PnsCredentialsGet.json + */ +async function namespacesGetPnsCredentials() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.namespaces.getPnsCredentials( + resourceGroupName, + namespaceName, + ); + console.log(result); +} + +async function main() { + namespacesGetPnsCredentials(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesGetSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesGetSample.ts index 34fcd43f851f..852956365db2 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesGetSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesGetSample.ts @@ -10,24 +10,34 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Returns the description for the specified namespace. + * This sample demonstrates how to Returns the given namespace. * - * @summary Returns the description for the specified namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceGet.json + * @summary Returns the given namespace. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Get.json */ -async function nameSpaceGet() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesGet() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.get(resourceGroupName, namespaceName); console.log(result); } -nameSpaceGet().catch(console.error); +async function main() { + namespacesGet(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListAllSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListAllSample.ts index 87072d3cc3bf..a53770aea01d 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListAllSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListAllSample.ts @@ -10,19 +10,24 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * This sample demonstrates how to Lists all the available namespaces within the subscription. * - * @summary Lists all the available namespaces within the subscription irrespective of the resourceGroups. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceList.json + * @summary Lists all the available namespaces within the subscription. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListBySubscription.json */ -async function nameSpaceList() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; +async function namespacesListAll() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.namespaces.listAll()) { @@ -31,4 +36,8 @@ async function nameSpaceList() { console.log(resArray); } -nameSpaceList().catch(console.error); +async function main() { + namespacesListAll(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListAuthorizationRulesSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListAuthorizationRulesSample.ts index b1c7949e3dd0..47accda124b3 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListAuthorizationRulesSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListAuthorizationRulesSample.ts @@ -10,30 +10,40 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Gets the authorization rules for a namespace. * * @summary Gets the authorization rules for a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListAll.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleList.json */ -async function nameSpaceAuthorizationRuleListAll() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesListAuthorizationRules() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.namespaces.listAuthorizationRules( resourceGroupName, - namespaceName + namespaceName, )) { resArray.push(item); } console.log(resArray); } -nameSpaceAuthorizationRuleListAll().catch(console.error); +async function main() { + namespacesListAuthorizationRules(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListKeysSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListKeysSample.ts index 584d1fd12b95..59d6c04be29b 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListKeysSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListKeysSample.ts @@ -10,29 +10,39 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Gets the Primary and Secondary ConnectionStrings to the namespace + * This sample demonstrates how to Gets the Primary and Secondary ConnectionStrings to the namespace. * - * @summary Gets the Primary and Secondary ConnectionStrings to the namespace - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListKey.json + * @summary Gets the Primary and Secondary ConnectionStrings to the namespace. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleListKeys.json */ -async function nameSpaceAuthorizationRuleListKey() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesListKeys() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "RootManageSharedAccessKey"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.listKeys( resourceGroupName, namespaceName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -nameSpaceAuthorizationRuleListKey().catch(console.error); +async function main() { + namespacesListKeys(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListSample.ts index 9b278248c444..2d6f55d5f0ad 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListSample.ts @@ -10,20 +10,26 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Lists the available namespaces within a resourceGroup. + * This sample demonstrates how to Lists the available namespaces within a resource group. * - * @summary Lists the available namespaces within a resourceGroup. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceListByResourceGroup.json + * @summary Lists the available namespaces within a resource group. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListByResourceGroup.json */ -async function nameSpaceListByResourceGroup() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesList() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.namespaces.list(resourceGroupName)) { @@ -32,4 +38,8 @@ async function nameSpaceListByResourceGroup() { console.log(resArray); } -nameSpaceListByResourceGroup().catch(console.error); +async function main() { + namespacesList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesPatchSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesPatchSample.ts deleted file mode 100644 index da2a6fd83e14..000000000000 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesPatchSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NamespacePatchParameters, - NotificationHubsManagementClient -} from "@azure/arm-notificationhubs"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Patches the existing namespace - * - * @summary Patches the existing namespace - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceUpdate.json - */ -async function nameSpaceUpdate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; - const namespaceName = "nh-sdk-ns"; - const parameters: NamespacePatchParameters = { - sku: { name: "Standard", tier: "Standard" }, - tags: { tag1: "value1", tag2: "value2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NotificationHubsManagementClient( - credential, - subscriptionId - ); - const result = await client.namespaces.patch( - resourceGroupName, - namespaceName, - parameters - ); - console.log(result); -} - -nameSpaceUpdate().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesRegenerateKeysSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesRegenerateKeysSample.ts index 5fa2210c7c3b..4e6c1aeb758a 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesRegenerateKeysSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesRegenerateKeysSample.ts @@ -9,35 +9,45 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - PolicykeyResource, - NotificationHubsManagementClient + PolicyKeyResource, + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule * * @summary Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleRegenrateKey.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json */ -async function nameSpaceAuthorizationRuleRegenerateKey() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesRegenerateKeys() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "RootManageSharedAccessKey"; - const parameters: PolicykeyResource = { policyKey: "PrimaryKey" }; + const parameters: PolicyKeyResource = { policyKey: "PrimaryKey" }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.regenerateKeys( resourceGroupName, namespaceName, authorizationRuleName, - parameters + parameters, ); console.log(result); } -nameSpaceAuthorizationRuleRegenerateKey().catch(console.error); +async function main() { + namespacesRegenerateKeys(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesUpdateSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesUpdateSample.ts new file mode 100644 index 000000000000..f5600482160e --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesUpdateSample.ts @@ -0,0 +1,62 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + NamespacePatchParameters, + NotificationHubsManagementClient, +} from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Patches the existing namespace. + * + * @summary Patches the existing namespace. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Update.json + */ +async function namespacesUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const parameters: NamespacePatchParameters = { + properties: { + pnsCredentials: { + gcmCredential: { + gcmEndpoint: "https://fcm.googleapis.com/fcm/send", + googleApiKey: "#############################", + }, + }, + }, + sku: { name: "Free" }, + tags: { tag1: "value3" }, + }; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.namespaces.update( + resourceGroupName, + namespaceName, + parameters, + ); + console.log(result); +} + +async function main() { + namespacesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsCheckNotificationHubAvailabilitySample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsCheckNotificationHubAvailabilitySample.ts index 5c141d2210b3..103695f912b6 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsCheckNotificationHubAvailabilitySample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsCheckNotificationHubAvailabilitySample.ts @@ -10,35 +10,45 @@ // Licensed under the MIT License. import { CheckAvailabilityParameters, - NotificationHubsManagementClient + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Checks the availability of the given notificationHub in a namespace. * * @summary Checks the availability of the given notificationHub in a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCheckNameAvailability.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CheckAvailability.json */ -async function notificationHubCheckNameAvailability() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsCheckNotificationHubAvailability() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "locp-newns"; const parameters: CheckAvailabilityParameters = { name: "sdktest", - location: "West Europe" + location: "West Europe", }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.checkNotificationHubAvailability( resourceGroupName, namespaceName, - parameters + parameters, ); console.log(result); } -notificationHubCheckNameAvailability().catch(console.error); +async function main() { + notificationHubsCheckNotificationHubAvailability(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts index 869f7f085a36..3e9893eb3cd3 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts @@ -9,39 +9,49 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - SharedAccessAuthorizationRuleCreateOrUpdateParameters, - NotificationHubsManagementClient + SharedAccessAuthorizationRuleResource, + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Creates/Updates an authorization rule for a NotificationHub * * @summary Creates/Updates an authorization rule for a NotificationHub - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleCreate.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json */ -async function notificationHubAuthorizationRuleCreate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsCreateOrUpdateAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; - const authorizationRuleName = "DefaultListenSharedAccessSignature"; - const parameters: SharedAccessAuthorizationRuleCreateOrUpdateParameters = { - properties: { rights: ["Listen", "Send"] } + const authorizationRuleName = "MyManageSharedAccessKey"; + const parameters: SharedAccessAuthorizationRuleResource = { + rights: ["Listen", "Send"], }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.createOrUpdateAuthorizationRule( resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, - parameters + parameters, ); console.log(result); } -notificationHubAuthorizationRuleCreate().catch(console.error); +async function main() { + notificationHubsCreateOrUpdateAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsCreateOrUpdateSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsCreateOrUpdateSample.ts index ced4f99a258f..3bcc8cb8cb7e 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsCreateOrUpdateSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsCreateOrUpdateSample.ts @@ -9,37 +9,45 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - NotificationHubCreateOrUpdateParameters, - NotificationHubsManagementClient + NotificationHubResource, + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Creates/Update a NotificationHub in a namespace. * * @summary Creates/Update a NotificationHub in a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCreate.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CreateOrUpdate.json */ -async function notificationHubCreate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsCreateOrUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; - const parameters: NotificationHubCreateOrUpdateParameters = { - location: "eastus" - }; + const parameters: NotificationHubResource = { location: "eastus" }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.createOrUpdate( resourceGroupName, namespaceName, notificationHubName, - parameters + parameters, ); console.log(result); } -notificationHubCreate().catch(console.error); +async function main() { + notificationHubsCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsDebugSendSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsDebugSendSample.ts index fa63e94e7707..4aab712e97b9 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsDebugSendSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsDebugSendSample.ts @@ -8,37 +8,41 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { - NotificationHubsDebugSendOptionalParams, - NotificationHubsManagementClient -} from "@azure/arm-notificationhubs"; +import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to test send a push notification + * This sample demonstrates how to Test send a push notification. * - * @summary test send a push notification - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDebugSend.json + * @summary Test send a push notification. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/DebugSend.json */ -async function debugsend() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsDebugSend() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; - const parameters: Record = { data: { message: "Hello" } }; - const options: NotificationHubsDebugSendOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.debugSend( resourceGroupName, namespaceName, notificationHubName, - options ); console.log(result); } -debugsend().catch(console.error); +async function main() { + notificationHubsDebugSend(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsDeleteAuthorizationRuleSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsDeleteAuthorizationRuleSample.ts index ac72f4a32263..f26c4e0c2448 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsDeleteAuthorizationRuleSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsDeleteAuthorizationRuleSample.ts @@ -10,31 +10,41 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Deletes a notificationHub authorization rule * * @summary Deletes a notificationHub authorization rule - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleDelete.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json */ -async function notificationHubAuthorizationRuleDelete() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsDeleteAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const authorizationRuleName = "DefaultListenSharedAccessSignature"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.deleteAuthorizationRule( resourceGroupName, namespaceName, notificationHubName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -notificationHubAuthorizationRuleDelete().catch(console.error); +async function main() { + notificationHubsDeleteAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsDeleteSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsDeleteSample.ts index 4c70a99ad643..180c06b69169 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsDeleteSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsDeleteSample.ts @@ -10,29 +10,39 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Deletes a notification hub associated with a namespace. * * @summary Deletes a notification hub associated with a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDelete.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Delete.json */ -async function notificationHubDelete() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsDelete() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.delete( resourceGroupName, namespaceName, - notificationHubName + notificationHubName, ); console.log(result); } -notificationHubDelete().catch(console.error); +async function main() { + notificationHubsDelete(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsGetAuthorizationRuleSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsGetAuthorizationRuleSample.ts index 0a83324f0853..f1b1e7f154f2 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsGetAuthorizationRuleSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsGetAuthorizationRuleSample.ts @@ -10,31 +10,41 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Gets an authorization rule for a NotificationHub by name. * * @summary Gets an authorization rule for a NotificationHub by name. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleGet.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json */ -async function notificationHubAuthorizationRuleGet() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsGetAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const authorizationRuleName = "DefaultListenSharedAccessSignature"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.getAuthorizationRule( resourceGroupName, namespaceName, notificationHubName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -notificationHubAuthorizationRuleGet().catch(console.error); +async function main() { + notificationHubsGetAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsGetPnsCredentialsSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsGetPnsCredentialsSample.ts index 01b38dac0189..1fc721ebb46a 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsGetPnsCredentialsSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsGetPnsCredentialsSample.ts @@ -10,29 +10,39 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Lists the PNS Credentials associated with a notification hub . + * This sample demonstrates how to Lists the PNS Credentials associated with a notification hub. * - * @summary Lists the PNS Credentials associated with a notification hub . - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPnsCredentials.json + * @summary Lists the PNS Credentials associated with a notification hub. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/PnsCredentialsGet.json */ -async function notificationHubPnsCredentials() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsGetPnsCredentials() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.getPnsCredentials( resourceGroupName, namespaceName, - notificationHubName + notificationHubName, ); console.log(result); } -notificationHubPnsCredentials().catch(console.error); +async function main() { + notificationHubsGetPnsCredentials(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsGetSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsGetSample.ts index b9cfe2be30db..cf73171fa712 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsGetSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsGetSample.ts @@ -10,29 +10,39 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Lists the notification hubs associated with a namespace. + * This sample demonstrates how to Gets the notification hub. * - * @summary Lists the notification hubs associated with a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubGet.json + * @summary Gets the notification hub. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Get.json */ -async function notificationHubGet() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsGet() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.get( resourceGroupName, namespaceName, - notificationHubName + notificationHubName, ); console.log(result); } -notificationHubGet().catch(console.error); +async function main() { + notificationHubsGet(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsListAuthorizationRulesSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsListAuthorizationRulesSample.ts index d542f81f21ec..965a31b72bce 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsListAuthorizationRulesSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsListAuthorizationRulesSample.ts @@ -10,32 +10,42 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Gets the authorization rules for a NotificationHub. * * @summary Gets the authorization rules for a NotificationHub. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListAll.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleList.json */ -async function notificationHubAuthorizationRuleListAll() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsListAuthorizationRules() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.notificationHubs.listAuthorizationRules( resourceGroupName, namespaceName, - notificationHubName + notificationHubName, )) { resArray.push(item); } console.log(resArray); } -notificationHubAuthorizationRuleListAll().catch(console.error); +async function main() { + notificationHubsListAuthorizationRules(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsListKeysSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsListKeysSample.ts index 91797f29c08a..9cb76d265961 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsListKeysSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsListKeysSample.ts @@ -10,31 +10,41 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Gets the Primary and Secondary ConnectionStrings to the NotificationHub * * @summary Gets the Primary and Secondary ConnectionStrings to the NotificationHub - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListKey.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleListKeys.json */ -async function notificationHubAuthorizationRuleListKey() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsListKeys() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const authorizationRuleName = "sdk-AuthRules-5800"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.listKeys( resourceGroupName, namespaceName, notificationHubName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -notificationHubAuthorizationRuleListKey().catch(console.error); +async function main() { + notificationHubsListKeys(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsListSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsListSample.ts index 43e455f72fb6..4a7e84a1c4ae 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsListSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsListSample.ts @@ -10,30 +10,40 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Lists the notification hubs associated with a namespace. * * @summary Lists the notification hubs associated with a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubListByNameSpace.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/List.json */ -async function notificationHubListByNameSpace() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsList() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.notificationHubs.list( resourceGroupName, - namespaceName + namespaceName, )) { resArray.push(item); } console.log(resArray); } -notificationHubListByNameSpace().catch(console.error); +async function main() { + notificationHubsList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsRegenerateKeysSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsRegenerateKeysSample.ts index 557b7aa142f5..38ead21fb085 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsRegenerateKeysSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsRegenerateKeysSample.ts @@ -9,37 +9,47 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - PolicykeyResource, - NotificationHubsManagementClient + PolicyKeyResource, + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule * * @summary Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleRegenrateKey.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleRegenerateKey.json */ -async function notificationHubAuthorizationRuleRegenrateKey() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsRegenerateKeys() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const authorizationRuleName = "DefaultListenSharedAccessSignature"; - const parameters: PolicykeyResource = { policyKey: "PrimaryKey" }; + const parameters: PolicyKeyResource = { policyKey: "PrimaryKey" }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.regenerateKeys( resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, - parameters + parameters, ); console.log(result); } -notificationHubAuthorizationRuleRegenrateKey().catch(console.error); +async function main() { + notificationHubsRegenerateKeys(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsPatchSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsUpdateSample.ts similarity index 52% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsPatchSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsUpdateSample.ts index 20a0cef6f0ce..b0d5ddbbe8b5 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsPatchSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsUpdateSample.ts @@ -10,36 +10,50 @@ // Licensed under the MIT License. import { NotificationHubPatchParameters, - NotificationHubsPatchOptionalParams, - NotificationHubsManagementClient + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Patch a NotificationHub in a namespace. * * @summary Patch a NotificationHub in a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Update.json */ -async function notificationHubPatch() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "sdkresourceGroup"; +async function notificationHubsUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "sdkresourceGroup"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "sdk-notificationHubs-8708"; - const parameters: NotificationHubPatchParameters = {}; - const options: NotificationHubsPatchOptionalParams = { parameters }; + const parameters: NotificationHubPatchParameters = { + gcmCredential: { + gcmEndpoint: "https://fcm.googleapis.com/fcm/send", + googleApiKey: "###################################", + }, + registrationTtl: "10675199.02:48:05.4775807", + }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); - const result = await client.notificationHubs.patch( + const result = await client.notificationHubs.update( resourceGroupName, namespaceName, notificationHubName, - options + parameters, ); console.log(result); } -notificationHubPatch().catch(console.error); +async function main() { + notificationHubsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/operationsListSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/operationsListSample.ts index 8d5a7ec9db42..ff8bfc43839c 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/operationsListSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/operationsListSample.ts @@ -10,19 +10,24 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Lists all of the available NotificationHubs REST API operations. + * This sample demonstrates how to Lists all available Notification Hubs operations. * - * @summary Lists all of the available NotificationHubs REST API operations. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NHOperationsList.json + * @summary Lists all available Notification Hubs operations. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NHOperationsList.json */ async function operationsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.operations.list()) { @@ -31,4 +36,8 @@ async function operationsList() { console.log(resArray); } -operationsList().catch(console.error); +async function main() { + operationsList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsDeleteSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsDeleteSample.ts new file mode 100644 index 000000000000..c7f7fc12587c --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsDeleteSample.ts @@ -0,0 +1,51 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes the Private Endpoint Connection. +This is a public API that can be called directly by Notification Hubs users. + * + * @summary Deletes the Private Endpoint Connection. +This is a public API that can be called directly by Notification Hubs users. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json + */ +async function privateEndpointConnectionsDelete() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const privateEndpointConnectionName = + "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.privateEndpointConnections.beginDeleteAndWait( + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsDelete(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsGetGroupIdSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsGetGroupIdSample.ts new file mode 100644 index 000000000000..3ac6ba4aa810 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsGetGroupIdSample.ts @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. +That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + * + * @summary Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. +That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceGet.json + */ +async function privateEndpointConnectionsGetGroupId() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const subResourceName = "namespace"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.privateEndpointConnections.getGroupId( + resourceGroupName, + namespaceName, + subResourceName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsGetGroupId(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsGetSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsGetSample.ts new file mode 100644 index 000000000000..196a70b5080b --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsGetSample.ts @@ -0,0 +1,51 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Returns a Private Endpoint Connection with a given name. +This is a public API that can be called directly by Notification Hubs users. + * + * @summary Returns a Private Endpoint Connection with a given name. +This is a public API that can be called directly by Notification Hubs users. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json + */ +async function privateEndpointConnectionsGet() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const privateEndpointConnectionName = + "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.privateEndpointConnections.get( + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsGet(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsListGroupIdsSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsListGroupIdsSample.ts new file mode 100644 index 000000000000..d5e0783f240a --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsListGroupIdsSample.ts @@ -0,0 +1,51 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. +That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + * + * @summary Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. +That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceList.json + */ +async function privateEndpointConnectionsListGroupIds() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const resArray = new Array(); + for await (let item of client.privateEndpointConnections.listGroupIds( + resourceGroupName, + namespaceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + privateEndpointConnectionsListGroupIds(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsListSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsListSample.ts new file mode 100644 index 000000000000..fea89497694b --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsListSample.ts @@ -0,0 +1,51 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace. +This is a public API that can be called directly by Notification Hubs users. + * + * @summary Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace. +This is a public API that can be called directly by Notification Hubs users. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json + */ +async function privateEndpointConnectionsList() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const resArray = new Array(); + for await (let item of client.privateEndpointConnections.list( + resourceGroupName, + namespaceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + privateEndpointConnectionsList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsUpdateSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsUpdateSample.ts new file mode 100644 index 000000000000..0ddb213a1c86 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsUpdateSample.ts @@ -0,0 +1,61 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + PrivateEndpointConnectionResource, + NotificationHubsManagementClient, +} from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Approves or rejects Private Endpoint Connection. +This is a public API that can be called directly by Notification Hubs users. + * + * @summary Approves or rejects Private Endpoint Connection. +This is a public API that can be called directly by Notification Hubs users. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionUpdate.json + */ +async function privateEndpointConnectionsUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const privateEndpointConnectionName = + "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e"; + const parameters: PrivateEndpointConnectionResource = { + properties: { + privateEndpoint: {}, + privateLinkServiceConnectionState: { status: "Approved" }, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.privateEndpointConnections.beginUpdateAndWait( + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + parameters, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/README.md b/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/README.md deleted file mode 100644 index 020d4550eddf..000000000000 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/README.md +++ /dev/null @@ -1,104 +0,0 @@ -# client library samples for JavaScript - -These sample programs show how to use the JavaScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [namespacesCheckAvailabilitySample.js][namespacescheckavailabilitysample] | Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCheckNameAvailability.json | -| [namespacesCreateOrUpdateAuthorizationRuleSample.js][namespacescreateorupdateauthorizationrulesample] | Creates an authorization rule for a namespace x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleCreate.json | -| [namespacesCreateOrUpdateSample.js][namespacescreateorupdatesample] | Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCreate.json | -| [namespacesDeleteAuthorizationRuleSample.js][namespacesdeleteauthorizationrulesample] | Deletes a namespace authorization rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleDelete.json | -| [namespacesDeleteSample.js][namespacesdeletesample] | Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceDelete.json | -| [namespacesGetAuthorizationRuleSample.js][namespacesgetauthorizationrulesample] | Gets an authorization rule for a namespace by name. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleGet.json | -| [namespacesGetSample.js][namespacesgetsample] | Returns the description for the specified namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceGet.json | -| [namespacesListAllSample.js][namespaceslistallsample] | Lists all the available namespaces within the subscription irrespective of the resourceGroups. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceList.json | -| [namespacesListAuthorizationRulesSample.js][namespaceslistauthorizationrulessample] | Gets the authorization rules for a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListAll.json | -| [namespacesListKeysSample.js][namespaceslistkeyssample] | Gets the Primary and Secondary ConnectionStrings to the namespace x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListKey.json | -| [namespacesListSample.js][namespaceslistsample] | Lists the available namespaces within a resourceGroup. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceListByResourceGroup.json | -| [namespacesPatchSample.js][namespacespatchsample] | Patches the existing namespace x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceUpdate.json | -| [namespacesRegenerateKeysSample.js][namespacesregeneratekeyssample] | Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleRegenrateKey.json | -| [notificationHubsCheckNotificationHubAvailabilitySample.js][notificationhubschecknotificationhubavailabilitysample] | Checks the availability of the given notificationHub in a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCheckNameAvailability.json | -| [notificationHubsCreateOrUpdateAuthorizationRuleSample.js][notificationhubscreateorupdateauthorizationrulesample] | Creates/Updates an authorization rule for a NotificationHub x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleCreate.json | -| [notificationHubsCreateOrUpdateSample.js][notificationhubscreateorupdatesample] | Creates/Update a NotificationHub in a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCreate.json | -| [notificationHubsDebugSendSample.js][notificationhubsdebugsendsample] | test send a push notification x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDebugSend.json | -| [notificationHubsDeleteAuthorizationRuleSample.js][notificationhubsdeleteauthorizationrulesample] | Deletes a notificationHub authorization rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleDelete.json | -| [notificationHubsDeleteSample.js][notificationhubsdeletesample] | Deletes a notification hub associated with a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDelete.json | -| [notificationHubsGetAuthorizationRuleSample.js][notificationhubsgetauthorizationrulesample] | Gets an authorization rule for a NotificationHub by name. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleGet.json | -| [notificationHubsGetPnsCredentialsSample.js][notificationhubsgetpnscredentialssample] | Lists the PNS Credentials associated with a notification hub . x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPnsCredentials.json | -| [notificationHubsGetSample.js][notificationhubsgetsample] | Lists the notification hubs associated with a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubGet.json | -| [notificationHubsListAuthorizationRulesSample.js][notificationhubslistauthorizationrulessample] | Gets the authorization rules for a NotificationHub. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListAll.json | -| [notificationHubsListKeysSample.js][notificationhubslistkeyssample] | Gets the Primary and Secondary ConnectionStrings to the NotificationHub x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListKey.json | -| [notificationHubsListSample.js][notificationhubslistsample] | Lists the notification hubs associated with a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubListByNameSpace.json | -| [notificationHubsPatchSample.js][notificationhubspatchsample] | Patch a NotificationHub in a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json | -| [notificationHubsRegenerateKeysSample.js][notificationhubsregeneratekeyssample] | Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleRegenrateKey.json | -| [operationsListSample.js][operationslistsample] | Lists all of the available NotificationHubs REST API operations. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NHOperationsList.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node namespacesCheckAvailabilitySample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env node namespacesCheckAvailabilitySample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[namespacescheckavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCheckAvailabilitySample.js -[namespacescreateorupdateauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCreateOrUpdateAuthorizationRuleSample.js -[namespacescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCreateOrUpdateSample.js -[namespacesdeleteauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesDeleteAuthorizationRuleSample.js -[namespacesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesDeleteSample.js -[namespacesgetauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesGetAuthorizationRuleSample.js -[namespacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesGetSample.js -[namespaceslistallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListAllSample.js -[namespaceslistauthorizationrulessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListAuthorizationRulesSample.js -[namespaceslistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListKeysSample.js -[namespaceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListSample.js -[namespacespatchsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesPatchSample.js -[namespacesregeneratekeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesRegenerateKeysSample.js -[notificationhubschecknotificationhubavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsCheckNotificationHubAvailabilitySample.js -[notificationhubscreateorupdateauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsCreateOrUpdateAuthorizationRuleSample.js -[notificationhubscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsCreateOrUpdateSample.js -[notificationhubsdebugsendsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsDebugSendSample.js -[notificationhubsdeleteauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsDeleteAuthorizationRuleSample.js -[notificationhubsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsDeleteSample.js -[notificationhubsgetauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsGetAuthorizationRuleSample.js -[notificationhubsgetpnscredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsGetPnsCredentialsSample.js -[notificationhubsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsGetSample.js -[notificationhubslistauthorizationrulessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsListAuthorizationRulesSample.js -[notificationhubslistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsListKeysSample.js -[notificationhubslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsListSample.js -[notificationhubspatchsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsPatchSample.js -[notificationhubsregeneratekeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsRegenerateKeysSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/operationsListSample.js -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-notificationhubs?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/notificationhubs/arm-notificationhubs/README.md diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCreateOrUpdateSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCreateOrUpdateSample.js deleted file mode 100644 index 81b519db7e7e..000000000000 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCreateOrUpdateSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. - * - * @summary Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCreate.json - */ -async function nameSpaceCreate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; - const namespaceName = "nh-sdk-ns"; - const parameters = { - location: "South Central US", - sku: { name: "Standard", tier: "Standard" }, - tags: { tag1: "value1", tag2: "value2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new NotificationHubsManagementClient(credential, subscriptionId); - const result = await client.namespaces.createOrUpdate( - resourceGroupName, - namespaceName, - parameters - ); - console.log(result); -} - -nameSpaceCreate().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesPatchSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesPatchSample.js deleted file mode 100644 index 3d37636791f4..000000000000 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesPatchSample.js +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Patches the existing namespace - * - * @summary Patches the existing namespace - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceUpdate.json - */ -async function nameSpaceUpdate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; - const namespaceName = "nh-sdk-ns"; - const parameters = { - sku: { name: "Standard", tier: "Standard" }, - tags: { tag1: "value1", tag2: "value2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new NotificationHubsManagementClient(credential, subscriptionId); - const result = await client.namespaces.patch(resourceGroupName, namespaceName, parameters); - console.log(result); -} - -nameSpaceUpdate().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/README.md b/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/README.md deleted file mode 100644 index 51c8b54951f9..000000000000 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/README.md +++ /dev/null @@ -1,117 +0,0 @@ -# client library samples for TypeScript - -These sample programs show how to use the TypeScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [namespacesCheckAvailabilitySample.ts][namespacescheckavailabilitysample] | Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCheckNameAvailability.json | -| [namespacesCreateOrUpdateAuthorizationRuleSample.ts][namespacescreateorupdateauthorizationrulesample] | Creates an authorization rule for a namespace x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleCreate.json | -| [namespacesCreateOrUpdateSample.ts][namespacescreateorupdatesample] | Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCreate.json | -| [namespacesDeleteAuthorizationRuleSample.ts][namespacesdeleteauthorizationrulesample] | Deletes a namespace authorization rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleDelete.json | -| [namespacesDeleteSample.ts][namespacesdeletesample] | Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceDelete.json | -| [namespacesGetAuthorizationRuleSample.ts][namespacesgetauthorizationrulesample] | Gets an authorization rule for a namespace by name. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleGet.json | -| [namespacesGetSample.ts][namespacesgetsample] | Returns the description for the specified namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceGet.json | -| [namespacesListAllSample.ts][namespaceslistallsample] | Lists all the available namespaces within the subscription irrespective of the resourceGroups. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceList.json | -| [namespacesListAuthorizationRulesSample.ts][namespaceslistauthorizationrulessample] | Gets the authorization rules for a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListAll.json | -| [namespacesListKeysSample.ts][namespaceslistkeyssample] | Gets the Primary and Secondary ConnectionStrings to the namespace x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListKey.json | -| [namespacesListSample.ts][namespaceslistsample] | Lists the available namespaces within a resourceGroup. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceListByResourceGroup.json | -| [namespacesPatchSample.ts][namespacespatchsample] | Patches the existing namespace x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceUpdate.json | -| [namespacesRegenerateKeysSample.ts][namespacesregeneratekeyssample] | Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleRegenrateKey.json | -| [notificationHubsCheckNotificationHubAvailabilitySample.ts][notificationhubschecknotificationhubavailabilitysample] | Checks the availability of the given notificationHub in a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCheckNameAvailability.json | -| [notificationHubsCreateOrUpdateAuthorizationRuleSample.ts][notificationhubscreateorupdateauthorizationrulesample] | Creates/Updates an authorization rule for a NotificationHub x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleCreate.json | -| [notificationHubsCreateOrUpdateSample.ts][notificationhubscreateorupdatesample] | Creates/Update a NotificationHub in a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCreate.json | -| [notificationHubsDebugSendSample.ts][notificationhubsdebugsendsample] | test send a push notification x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDebugSend.json | -| [notificationHubsDeleteAuthorizationRuleSample.ts][notificationhubsdeleteauthorizationrulesample] | Deletes a notificationHub authorization rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleDelete.json | -| [notificationHubsDeleteSample.ts][notificationhubsdeletesample] | Deletes a notification hub associated with a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDelete.json | -| [notificationHubsGetAuthorizationRuleSample.ts][notificationhubsgetauthorizationrulesample] | Gets an authorization rule for a NotificationHub by name. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleGet.json | -| [notificationHubsGetPnsCredentialsSample.ts][notificationhubsgetpnscredentialssample] | Lists the PNS Credentials associated with a notification hub . x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPnsCredentials.json | -| [notificationHubsGetSample.ts][notificationhubsgetsample] | Lists the notification hubs associated with a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubGet.json | -| [notificationHubsListAuthorizationRulesSample.ts][notificationhubslistauthorizationrulessample] | Gets the authorization rules for a NotificationHub. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListAll.json | -| [notificationHubsListKeysSample.ts][notificationhubslistkeyssample] | Gets the Primary and Secondary ConnectionStrings to the NotificationHub x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListKey.json | -| [notificationHubsListSample.ts][notificationhubslistsample] | Lists the notification hubs associated with a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubListByNameSpace.json | -| [notificationHubsPatchSample.ts][notificationhubspatchsample] | Patch a NotificationHub in a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json | -| [notificationHubsRegenerateKeysSample.ts][notificationhubsregeneratekeyssample] | Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleRegenrateKey.json | -| [operationsListSample.ts][operationslistsample] | Lists all of the available NotificationHubs REST API operations. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NHOperationsList.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: - -```bash -npm install -g typescript -``` - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Compile the samples: - -```bash -npm run build -``` - -3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/namespacesCheckAvailabilitySample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env node dist/namespacesCheckAvailabilitySample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[namespacescheckavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCheckAvailabilitySample.ts -[namespacescreateorupdateauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCreateOrUpdateAuthorizationRuleSample.ts -[namespacescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCreateOrUpdateSample.ts -[namespacesdeleteauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesDeleteAuthorizationRuleSample.ts -[namespacesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesDeleteSample.ts -[namespacesgetauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesGetAuthorizationRuleSample.ts -[namespacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesGetSample.ts -[namespaceslistallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListAllSample.ts -[namespaceslistauthorizationrulessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListAuthorizationRulesSample.ts -[namespaceslistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListKeysSample.ts -[namespaceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListSample.ts -[namespacespatchsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesPatchSample.ts -[namespacesregeneratekeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesRegenerateKeysSample.ts -[notificationhubschecknotificationhubavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsCheckNotificationHubAvailabilitySample.ts -[notificationhubscreateorupdateauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts -[notificationhubscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsCreateOrUpdateSample.ts -[notificationhubsdebugsendsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsDebugSendSample.ts -[notificationhubsdeleteauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsDeleteAuthorizationRuleSample.ts -[notificationhubsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsDeleteSample.ts -[notificationhubsgetauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsGetAuthorizationRuleSample.ts -[notificationhubsgetpnscredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsGetPnsCredentialsSample.ts -[notificationhubsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsGetSample.ts -[notificationhubslistauthorizationrulessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsListAuthorizationRulesSample.ts -[notificationhubslistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsListKeysSample.ts -[notificationhubslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsListSample.ts -[notificationhubspatchsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsPatchSample.ts -[notificationhubsregeneratekeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsRegenerateKeysSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/operationsListSample.ts -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-notificationhubs?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/notificationhubs/arm-notificationhubs/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCreateOrUpdateSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCreateOrUpdateSample.ts deleted file mode 100644 index e96dbbd6c13b..000000000000 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCreateOrUpdateSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NamespaceCreateOrUpdateParameters, - NotificationHubsManagementClient -} from "@azure/arm-notificationhubs"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. - * - * @summary Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCreate.json - */ -async function nameSpaceCreate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; - const namespaceName = "nh-sdk-ns"; - const parameters: NamespaceCreateOrUpdateParameters = { - location: "South Central US", - sku: { name: "Standard", tier: "Standard" }, - tags: { tag1: "value1", tag2: "value2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NotificationHubsManagementClient( - credential, - subscriptionId - ); - const result = await client.namespaces.createOrUpdate( - resourceGroupName, - namespaceName, - parameters - ); - console.log(result); -} - -nameSpaceCreate().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesPatchSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesPatchSample.ts deleted file mode 100644 index da2a6fd83e14..000000000000 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesPatchSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NamespacePatchParameters, - NotificationHubsManagementClient -} from "@azure/arm-notificationhubs"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Patches the existing namespace - * - * @summary Patches the existing namespace - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceUpdate.json - */ -async function nameSpaceUpdate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; - const namespaceName = "nh-sdk-ns"; - const parameters: NamespacePatchParameters = { - sku: { name: "Standard", tier: "Standard" }, - tags: { tag1: "value1", tag2: "value2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NotificationHubsManagementClient( - credential, - subscriptionId - ); - const result = await client.namespaces.patch( - resourceGroupName, - namespaceName, - parameters - ); - console.log(result); -} - -nameSpaceUpdate().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/README.md b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/README.md new file mode 100644 index 000000000000..4a27f78a719f --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/README.md @@ -0,0 +1,118 @@ +# client library samples for JavaScript (Beta) + +These sample programs show how to use the JavaScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [namespacesCheckAvailabilitySample.js][namespacescheckavailabilitysample] | Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CheckAvailability.json | +| [namespacesCreateOrUpdateAuthorizationRuleSample.js][namespacescreateorupdateauthorizationrulesample] | Creates an authorization rule for a namespace x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json | +| [namespacesCreateOrUpdateSample.js][namespacescreateorupdatesample] | Creates / Updates a Notification Hub namespace. This operation is idempotent. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CreateOrUpdate.json | +| [namespacesDeleteAuthorizationRuleSample.js][namespacesdeleteauthorizationrulesample] | Deletes a namespace authorization rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleDelete.json | +| [namespacesDeleteSample.js][namespacesdeletesample] | Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Delete.json | +| [namespacesGetAuthorizationRuleSample.js][namespacesgetauthorizationrulesample] | Gets an authorization rule for a namespace by name. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleGet.json | +| [namespacesGetPnsCredentialsSample.js][namespacesgetpnscredentialssample] | Lists the PNS credentials associated with a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PnsCredentialsGet.json | +| [namespacesGetSample.js][namespacesgetsample] | Returns the given namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Get.json | +| [namespacesListAllSample.js][namespaceslistallsample] | Lists all the available namespaces within the subscription. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListBySubscription.json | +| [namespacesListAuthorizationRulesSample.js][namespaceslistauthorizationrulessample] | Gets the authorization rules for a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleList.json | +| [namespacesListKeysSample.js][namespaceslistkeyssample] | Gets the Primary and Secondary ConnectionStrings to the namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleListKeys.json | +| [namespacesListSample.js][namespaceslistsample] | Lists the available namespaces within a resource group. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListByResourceGroup.json | +| [namespacesRegenerateKeysSample.js][namespacesregeneratekeyssample] | Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json | +| [namespacesUpdateSample.js][namespacesupdatesample] | Patches the existing namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Update.json | +| [notificationHubsCheckNotificationHubAvailabilitySample.js][notificationhubschecknotificationhubavailabilitysample] | Checks the availability of the given notificationHub in a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CheckAvailability.json | +| [notificationHubsCreateOrUpdateAuthorizationRuleSample.js][notificationhubscreateorupdateauthorizationrulesample] | Creates/Updates an authorization rule for a NotificationHub x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json | +| [notificationHubsCreateOrUpdateSample.js][notificationhubscreateorupdatesample] | Creates/Update a NotificationHub in a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CreateOrUpdate.json | +| [notificationHubsDebugSendSample.js][notificationhubsdebugsendsample] | Test send a push notification. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/DebugSend.json | +| [notificationHubsDeleteAuthorizationRuleSample.js][notificationhubsdeleteauthorizationrulesample] | Deletes a notificationHub authorization rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json | +| [notificationHubsDeleteSample.js][notificationhubsdeletesample] | Deletes a notification hub associated with a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Delete.json | +| [notificationHubsGetAuthorizationRuleSample.js][notificationhubsgetauthorizationrulesample] | Gets an authorization rule for a NotificationHub by name. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json | +| [notificationHubsGetPnsCredentialsSample.js][notificationhubsgetpnscredentialssample] | Lists the PNS Credentials associated with a notification hub. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/PnsCredentialsGet.json | +| [notificationHubsGetSample.js][notificationhubsgetsample] | Gets the notification hub. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Get.json | +| [notificationHubsListAuthorizationRulesSample.js][notificationhubslistauthorizationrulessample] | Gets the authorization rules for a NotificationHub. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleList.json | +| [notificationHubsListKeysSample.js][notificationhubslistkeyssample] | Gets the Primary and Secondary ConnectionStrings to the NotificationHub x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleListKeys.json | +| [notificationHubsListSample.js][notificationhubslistsample] | Lists the notification hubs associated with a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/List.json | +| [notificationHubsRegenerateKeysSample.js][notificationhubsregeneratekeyssample] | Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleRegenerateKey.json | +| [notificationHubsUpdateSample.js][notificationhubsupdatesample] | Patch a NotificationHub in a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Update.json | +| [operationsListSample.js][operationslistsample] | Lists all available Notification Hubs operations. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NHOperationsList.json | +| [privateEndpointConnectionsDeleteSample.js][privateendpointconnectionsdeletesample] | Deletes the Private Endpoint Connection. This is a public API that can be called directly by Notification Hubs users. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json | +| [privateEndpointConnectionsGetGroupIdSample.js][privateendpointconnectionsgetgroupidsample] | Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceGet.json | +| [privateEndpointConnectionsGetSample.js][privateendpointconnectionsgetsample] | Returns a Private Endpoint Connection with a given name. This is a public API that can be called directly by Notification Hubs users. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json | +| [privateEndpointConnectionsListGroupIdsSample.js][privateendpointconnectionslistgroupidssample] | Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceList.json | +| [privateEndpointConnectionsListSample.js][privateendpointconnectionslistsample] | Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace. This is a public API that can be called directly by Notification Hubs users. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json | +| [privateEndpointConnectionsUpdateSample.js][privateendpointconnectionsupdatesample] | Approves or rejects Private Endpoint Connection. This is a public API that can be called directly by Notification Hubs users. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionUpdate.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +3. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node namespacesCheckAvailabilitySample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx cross-env NOTIFICATIONHUBS_SUBSCRIPTION_ID="" node namespacesCheckAvailabilitySample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[namespacescheckavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCheckAvailabilitySample.js +[namespacescreateorupdateauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCreateOrUpdateAuthorizationRuleSample.js +[namespacescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCreateOrUpdateSample.js +[namespacesdeleteauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesDeleteAuthorizationRuleSample.js +[namespacesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesDeleteSample.js +[namespacesgetauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetAuthorizationRuleSample.js +[namespacesgetpnscredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetPnsCredentialsSample.js +[namespacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetSample.js +[namespaceslistallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListAllSample.js +[namespaceslistauthorizationrulessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListAuthorizationRulesSample.js +[namespaceslistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListKeysSample.js +[namespaceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListSample.js +[namespacesregeneratekeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesRegenerateKeysSample.js +[namespacesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesUpdateSample.js +[notificationhubschecknotificationhubavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsCheckNotificationHubAvailabilitySample.js +[notificationhubscreateorupdateauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsCreateOrUpdateAuthorizationRuleSample.js +[notificationhubscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsCreateOrUpdateSample.js +[notificationhubsdebugsendsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsDebugSendSample.js +[notificationhubsdeleteauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsDeleteAuthorizationRuleSample.js +[notificationhubsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsDeleteSample.js +[notificationhubsgetauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsGetAuthorizationRuleSample.js +[notificationhubsgetpnscredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsGetPnsCredentialsSample.js +[notificationhubsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsGetSample.js +[notificationhubslistauthorizationrulessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsListAuthorizationRulesSample.js +[notificationhubslistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsListKeysSample.js +[notificationhubslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsListSample.js +[notificationhubsregeneratekeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsRegenerateKeysSample.js +[notificationhubsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsUpdateSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/operationsListSample.js +[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsDeleteSample.js +[privateendpointconnectionsgetgroupidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsGetGroupIdSample.js +[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsGetSample.js +[privateendpointconnectionslistgroupidssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsListGroupIdsSample.js +[privateendpointconnectionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsListSample.js +[privateendpointconnectionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsUpdateSample.js +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-notificationhubs?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/notificationhubs/arm-notificationhubs/README.md diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCheckAvailabilitySample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCheckAvailabilitySample.js similarity index 75% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCheckAvailabilitySample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCheckAvailabilitySample.js index d6ab5b55ffec..5358ea9cb826 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCheckAvailabilitySample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCheckAvailabilitySample.js @@ -10,15 +10,17 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. * * @summary Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCheckNameAvailability.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CheckAvailability.json */ -async function nameSpaceCheckNameAvailability() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; +async function namespacesCheckAvailability() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; const parameters = { name: "sdk-Namespace-2924", }; @@ -28,4 +30,8 @@ async function nameSpaceCheckNameAvailability() { console.log(result); } -nameSpaceCheckNameAvailability().catch(console.error); +async function main() { + namespacesCheckAvailability(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCreateOrUpdateAuthorizationRuleSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCreateOrUpdateAuthorizationRuleSample.js similarity index 65% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCreateOrUpdateAuthorizationRuleSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCreateOrUpdateAuthorizationRuleSample.js index e2d5d0df18ff..8cd324030255 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCreateOrUpdateAuthorizationRuleSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCreateOrUpdateAuthorizationRuleSample.js @@ -10,20 +10,22 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Creates an authorization rule for a namespace * * @summary Creates an authorization rule for a namespace - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleCreate.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json */ -async function nameSpaceAuthorizationRuleCreate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesCreateOrUpdateAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "sdk-AuthRules-1788"; const parameters = { - properties: { rights: ["Listen", "Send"] }, + rights: ["Listen", "Send"], }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient(credential, subscriptionId); @@ -31,9 +33,13 @@ async function nameSpaceAuthorizationRuleCreate() { resourceGroupName, namespaceName, authorizationRuleName, - parameters + parameters, ); console.log(result); } -nameSpaceAuthorizationRuleCreate().catch(console.error); +async function main() { + namespacesCreateOrUpdateAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCreateOrUpdateSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCreateOrUpdateSample.js new file mode 100644 index 000000000000..2577452f9a68 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCreateOrUpdateSample.js @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates / Updates a Notification Hub namespace. This operation is idempotent. + * + * @summary Creates / Updates a Notification Hub namespace. This operation is idempotent. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CreateOrUpdate.json + */ +async function namespacesCreateOrUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const parameters = { + location: "South Central US", + networkAcls: { + ipRules: [{ ipMask: "185.48.100.00/24", rights: ["Manage", "Send", "Listen"] }], + publicNetworkRule: { rights: ["Listen"] }, + }, + sku: { name: "Standard", tier: "Standard" }, + tags: { tag1: "value1", tag2: "value2" }, + zoneRedundancy: "Enabled", + }; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient(credential, subscriptionId); + const result = await client.namespaces.beginCreateOrUpdateAndWait( + resourceGroupName, + namespaceName, + parameters, + ); + console.log(result); +} + +async function main() { + namespacesCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesDeleteAuthorizationRuleSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesDeleteAuthorizationRuleSample.js similarity index 66% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesDeleteAuthorizationRuleSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesDeleteAuthorizationRuleSample.js index 9bd0fcd090a6..62b6e6ee861b 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesDeleteAuthorizationRuleSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesDeleteAuthorizationRuleSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Deletes a namespace authorization rule * * @summary Deletes a namespace authorization rule - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleDelete.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleDelete.json */ -async function nameSpaceAuthorizationRuleDelete() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesDeleteAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "RootManageSharedAccessKey"; const credential = new DefaultAzureCredential(); @@ -27,9 +29,13 @@ async function nameSpaceAuthorizationRuleDelete() { const result = await client.namespaces.deleteAuthorizationRule( resourceGroupName, namespaceName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -nameSpaceAuthorizationRuleDelete().catch(console.error); +async function main() { + namespacesDeleteAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesDeleteSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesDeleteSample.js similarity index 65% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesDeleteSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesDeleteSample.js index 7e68c1507676..751f445ebbbc 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesDeleteSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesDeleteSample.js @@ -10,21 +10,27 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. * * @summary Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceDelete.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Delete.json */ -async function nameSpaceDelete() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesDelete() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient(credential, subscriptionId); - const result = await client.namespaces.beginDeleteAndWait(resourceGroupName, namespaceName); + const result = await client.namespaces.delete(resourceGroupName, namespaceName); console.log(result); } -nameSpaceDelete().catch(console.error); +async function main() { + namespacesDelete(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesGetAuthorizationRuleSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetAuthorizationRuleSample.js similarity index 67% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesGetAuthorizationRuleSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetAuthorizationRuleSample.js index 58235eb0d8db..93b960ac9f21 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesGetAuthorizationRuleSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetAuthorizationRuleSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Gets an authorization rule for a namespace by name. * * @summary Gets an authorization rule for a namespace by name. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleGet.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleGet.json */ -async function nameSpaceAuthorizationRuleGet() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesGetAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "RootManageSharedAccessKey"; const credential = new DefaultAzureCredential(); @@ -27,9 +29,13 @@ async function nameSpaceAuthorizationRuleGet() { const result = await client.namespaces.getAuthorizationRule( resourceGroupName, namespaceName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -nameSpaceAuthorizationRuleGet().catch(console.error); +async function main() { + namespacesGetAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetPnsCredentialsSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetPnsCredentialsSample.js new file mode 100644 index 000000000000..906edef19a48 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetPnsCredentialsSample.js @@ -0,0 +1,36 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists the PNS credentials associated with a namespace. + * + * @summary Lists the PNS credentials associated with a namespace. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PnsCredentialsGet.json + */ +async function namespacesGetPnsCredentials() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient(credential, subscriptionId); + const result = await client.namespaces.getPnsCredentials(resourceGroupName, namespaceName); + console.log(result); +} + +async function main() { + namespacesGetPnsCredentials(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesGetSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetSample.js similarity index 59% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesGetSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetSample.js index 24a6318816e1..d9d5cf42f560 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesGetSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** - * This sample demonstrates how to Returns the description for the specified namespace. + * This sample demonstrates how to Returns the given namespace. * - * @summary Returns the description for the specified namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceGet.json + * @summary Returns the given namespace. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Get.json */ -async function nameSpaceGet() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesGet() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient(credential, subscriptionId); @@ -27,4 +29,8 @@ async function nameSpaceGet() { console.log(result); } -nameSpaceGet().catch(console.error); +async function main() { + namespacesGet(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListAllSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListAllSample.js similarity index 69% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListAllSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListAllSample.js index c10b13564318..f7acd5c36571 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListAllSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListAllSample.js @@ -10,15 +10,17 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** - * This sample demonstrates how to Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * This sample demonstrates how to Lists all the available namespaces within the subscription. * - * @summary Lists all the available namespaces within the subscription irrespective of the resourceGroups. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceList.json + * @summary Lists all the available namespaces within the subscription. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListBySubscription.json */ -async function nameSpaceList() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; +async function namespacesListAll() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient(credential, subscriptionId); const resArray = new Array(); @@ -28,4 +30,8 @@ async function nameSpaceList() { console.log(resArray); } -nameSpaceList().catch(console.error); +async function main() { + namespacesListAll(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListAuthorizationRulesSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListAuthorizationRulesSample.js similarity index 66% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListAuthorizationRulesSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListAuthorizationRulesSample.js index 4aeb5ddf55e5..d0a06681af66 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListAuthorizationRulesSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListAuthorizationRulesSample.js @@ -10,27 +10,33 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Gets the authorization rules for a namespace. * * @summary Gets the authorization rules for a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListAll.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleList.json */ -async function nameSpaceAuthorizationRuleListAll() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesListAuthorizationRules() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.namespaces.listAuthorizationRules( resourceGroupName, - namespaceName + namespaceName, )) { resArray.push(item); } console.log(resArray); } -nameSpaceAuthorizationRuleListAll().catch(console.error); +async function main() { + namespacesListAuthorizationRules(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListKeysSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListKeysSample.js similarity index 65% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListKeysSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListKeysSample.js index 8bc410ab830e..9b5af7ed7286 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListKeysSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListKeysSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** - * This sample demonstrates how to Gets the Primary and Secondary ConnectionStrings to the namespace + * This sample demonstrates how to Gets the Primary and Secondary ConnectionStrings to the namespace. * - * @summary Gets the Primary and Secondary ConnectionStrings to the namespace - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListKey.json + * @summary Gets the Primary and Secondary ConnectionStrings to the namespace. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleListKeys.json */ -async function nameSpaceAuthorizationRuleListKey() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesListKeys() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "RootManageSharedAccessKey"; const credential = new DefaultAzureCredential(); @@ -27,9 +29,13 @@ async function nameSpaceAuthorizationRuleListKey() { const result = await client.namespaces.listKeys( resourceGroupName, namespaceName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -nameSpaceAuthorizationRuleListKey().catch(console.error); +async function main() { + namespacesListKeys(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListSample.js similarity index 61% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListSample.js index 1857ae6dc4e6..c9cc47b625f5 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** - * This sample demonstrates how to Lists the available namespaces within a resourceGroup. + * This sample demonstrates how to Lists the available namespaces within a resource group. * - * @summary Lists the available namespaces within a resourceGroup. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceListByResourceGroup.json + * @summary Lists the available namespaces within a resource group. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListByResourceGroup.json */ -async function nameSpaceListByResourceGroup() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesList() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient(credential, subscriptionId); const resArray = new Array(); @@ -29,4 +31,8 @@ async function nameSpaceListByResourceGroup() { console.log(resArray); } -nameSpaceListByResourceGroup().catch(console.error); +async function main() { + namespacesList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesRegenerateKeysSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesRegenerateKeysSample.js similarity index 70% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesRegenerateKeysSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesRegenerateKeysSample.js index ad652866f98e..47abd8352582 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesRegenerateKeysSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesRegenerateKeysSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule * * @summary Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleRegenrateKey.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json */ -async function nameSpaceAuthorizationRuleRegenerateKey() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesRegenerateKeys() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "RootManageSharedAccessKey"; const parameters = { policyKey: "PrimaryKey" }; @@ -29,9 +31,13 @@ async function nameSpaceAuthorizationRuleRegenerateKey() { resourceGroupName, namespaceName, authorizationRuleName, - parameters + parameters, ); console.log(result); } -nameSpaceAuthorizationRuleRegenerateKey().catch(console.error); +async function main() { + namespacesRegenerateKeys(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesUpdateSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesUpdateSample.js new file mode 100644 index 000000000000..1a1ae58d7457 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesUpdateSample.js @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Patches the existing namespace. + * + * @summary Patches the existing namespace. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Update.json + */ +async function namespacesUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const parameters = { + properties: { + pnsCredentials: { + gcmCredential: { + gcmEndpoint: "https://fcm.googleapis.com/fcm/send", + googleApiKey: "#############################", + }, + }, + }, + sku: { name: "Free" }, + tags: { tag1: "value3" }, + }; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient(credential, subscriptionId); + const result = await client.namespaces.update(resourceGroupName, namespaceName, parameters); + console.log(result); +} + +async function main() { + namespacesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsCheckNotificationHubAvailabilitySample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsCheckNotificationHubAvailabilitySample.js similarity index 67% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsCheckNotificationHubAvailabilitySample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsCheckNotificationHubAvailabilitySample.js index 467e28152db4..b7cc629be0f7 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsCheckNotificationHubAvailabilitySample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsCheckNotificationHubAvailabilitySample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Checks the availability of the given notificationHub in a namespace. * * @summary Checks the availability of the given notificationHub in a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCheckNameAvailability.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CheckAvailability.json */ -async function notificationHubCheckNameAvailability() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsCheckNotificationHubAvailability() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "locp-newns"; const parameters = { name: "sdktest", @@ -30,9 +32,13 @@ async function notificationHubCheckNameAvailability() { const result = await client.notificationHubs.checkNotificationHubAvailability( resourceGroupName, namespaceName, - parameters + parameters, ); console.log(result); } -notificationHubCheckNameAvailability().catch(console.error); +async function main() { + notificationHubsCheckNotificationHubAvailability(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsCreateOrUpdateAuthorizationRuleSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsCreateOrUpdateAuthorizationRuleSample.js similarity index 64% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsCreateOrUpdateAuthorizationRuleSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsCreateOrUpdateAuthorizationRuleSample.js index fd1ef0e05f84..5792daa3fe93 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsCreateOrUpdateAuthorizationRuleSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsCreateOrUpdateAuthorizationRuleSample.js @@ -10,21 +10,23 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Creates/Updates an authorization rule for a NotificationHub * * @summary Creates/Updates an authorization rule for a NotificationHub - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleCreate.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json */ -async function notificationHubAuthorizationRuleCreate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsCreateOrUpdateAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; - const authorizationRuleName = "DefaultListenSharedAccessSignature"; + const authorizationRuleName = "MyManageSharedAccessKey"; const parameters = { - properties: { rights: ["Listen", "Send"] }, + rights: ["Listen", "Send"], }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient(credential, subscriptionId); @@ -33,9 +35,13 @@ async function notificationHubAuthorizationRuleCreate() { namespaceName, notificationHubName, authorizationRuleName, - parameters + parameters, ); console.log(result); } -notificationHubAuthorizationRuleCreate().catch(console.error); +async function main() { + notificationHubsCreateOrUpdateAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsCreateOrUpdateSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsCreateOrUpdateSample.js similarity index 65% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsCreateOrUpdateSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsCreateOrUpdateSample.js index 7729bf0c932c..b2491281a81b 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsCreateOrUpdateSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsCreateOrUpdateSample.js @@ -10,30 +10,34 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Creates/Update a NotificationHub in a namespace. * * @summary Creates/Update a NotificationHub in a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCreate.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CreateOrUpdate.json */ -async function notificationHubCreate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsCreateOrUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; - const parameters = { - location: "eastus", - }; + const parameters = { location: "eastus" }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient(credential, subscriptionId); const result = await client.notificationHubs.createOrUpdate( resourceGroupName, namespaceName, notificationHubName, - parameters + parameters, ); console.log(result); } -notificationHubCreate().catch(console.error); +async function main() { + notificationHubsCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsDebugSendSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsDebugSendSample.js similarity index 60% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsDebugSendSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsDebugSendSample.js index 0ce0667c86cd..991c9ec1a2f7 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsDebugSendSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsDebugSendSample.js @@ -10,29 +10,32 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** - * This sample demonstrates how to test send a push notification + * This sample demonstrates how to Test send a push notification. * - * @summary test send a push notification - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDebugSend.json + * @summary Test send a push notification. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/DebugSend.json */ -async function debugsend() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsDebugSend() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; - const parameters = { data: { message: "Hello" } }; - const options = { parameters }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient(credential, subscriptionId); const result = await client.notificationHubs.debugSend( resourceGroupName, namespaceName, notificationHubName, - options ); console.log(result); } -debugsend().catch(console.error); +async function main() { + notificationHubsDebugSend(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsDeleteAuthorizationRuleSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsDeleteAuthorizationRuleSample.js similarity index 67% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsDeleteAuthorizationRuleSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsDeleteAuthorizationRuleSample.js index f57e0b0cae77..77ab11515462 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsDeleteAuthorizationRuleSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsDeleteAuthorizationRuleSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Deletes a notificationHub authorization rule * * @summary Deletes a notificationHub authorization rule - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleDelete.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json */ -async function notificationHubAuthorizationRuleDelete() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsDeleteAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const authorizationRuleName = "DefaultListenSharedAccessSignature"; @@ -29,9 +31,13 @@ async function notificationHubAuthorizationRuleDelete() { resourceGroupName, namespaceName, notificationHubName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -notificationHubAuthorizationRuleDelete().catch(console.error); +async function main() { + notificationHubsDeleteAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsDeleteSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsDeleteSample.js similarity index 68% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsDeleteSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsDeleteSample.js index b6bacfa3111c..7f0b31d2299d 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsDeleteSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsDeleteSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Deletes a notification hub associated with a namespace. * * @summary Deletes a notification hub associated with a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDelete.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Delete.json */ -async function notificationHubDelete() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsDelete() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const credential = new DefaultAzureCredential(); @@ -27,9 +29,13 @@ async function notificationHubDelete() { const result = await client.notificationHubs.delete( resourceGroupName, namespaceName, - notificationHubName + notificationHubName, ); console.log(result); } -notificationHubDelete().catch(console.error); +async function main() { + notificationHubsDelete(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsGetAuthorizationRuleSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsGetAuthorizationRuleSample.js similarity index 68% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsGetAuthorizationRuleSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsGetAuthorizationRuleSample.js index 0d33af1ea648..d0890aace51b 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsGetAuthorizationRuleSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsGetAuthorizationRuleSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Gets an authorization rule for a NotificationHub by name. * * @summary Gets an authorization rule for a NotificationHub by name. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleGet.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json */ -async function notificationHubAuthorizationRuleGet() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsGetAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const authorizationRuleName = "DefaultListenSharedAccessSignature"; @@ -29,9 +31,13 @@ async function notificationHubAuthorizationRuleGet() { resourceGroupName, namespaceName, notificationHubName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -notificationHubAuthorizationRuleGet().catch(console.error); +async function main() { + notificationHubsGetAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsGetPnsCredentialsSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsGetPnsCredentialsSample.js similarity index 64% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsGetPnsCredentialsSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsGetPnsCredentialsSample.js index 4f2a74251b66..187d2236523d 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsGetPnsCredentialsSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsGetPnsCredentialsSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** - * This sample demonstrates how to Lists the PNS Credentials associated with a notification hub . + * This sample demonstrates how to Lists the PNS Credentials associated with a notification hub. * - * @summary Lists the PNS Credentials associated with a notification hub . - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPnsCredentials.json + * @summary Lists the PNS Credentials associated with a notification hub. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/PnsCredentialsGet.json */ -async function notificationHubPnsCredentials() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsGetPnsCredentials() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const credential = new DefaultAzureCredential(); @@ -27,9 +29,13 @@ async function notificationHubPnsCredentials() { const result = await client.notificationHubs.getPnsCredentials( resourceGroupName, namespaceName, - notificationHubName + notificationHubName, ); console.log(result); } -notificationHubPnsCredentials().catch(console.error); +async function main() { + notificationHubsGetPnsCredentials(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsGetSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsGetSample.js similarity index 60% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsGetSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsGetSample.js index cb2f77efa195..989b9bb8e148 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsGetSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsGetSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** - * This sample demonstrates how to Lists the notification hubs associated with a namespace. + * This sample demonstrates how to Gets the notification hub. * - * @summary Lists the notification hubs associated with a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubGet.json + * @summary Gets the notification hub. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Get.json */ -async function notificationHubGet() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsGet() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const credential = new DefaultAzureCredential(); @@ -27,9 +29,13 @@ async function notificationHubGet() { const result = await client.notificationHubs.get( resourceGroupName, namespaceName, - notificationHubName + notificationHubName, ); console.log(result); } -notificationHubGet().catch(console.error); +async function main() { + notificationHubsGet(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsListAuthorizationRulesSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsListAuthorizationRulesSample.js similarity index 67% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsListAuthorizationRulesSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsListAuthorizationRulesSample.js index 8782bbc913cd..34a4ab2a0515 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsListAuthorizationRulesSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsListAuthorizationRulesSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Gets the authorization rules for a NotificationHub. * * @summary Gets the authorization rules for a NotificationHub. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListAll.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleList.json */ -async function notificationHubAuthorizationRuleListAll() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsListAuthorizationRules() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const credential = new DefaultAzureCredential(); @@ -28,11 +30,15 @@ async function notificationHubAuthorizationRuleListAll() { for await (let item of client.notificationHubs.listAuthorizationRules( resourceGroupName, namespaceName, - notificationHubName + notificationHubName, )) { resArray.push(item); } console.log(resArray); } -notificationHubAuthorizationRuleListAll().catch(console.error); +async function main() { + notificationHubsListAuthorizationRules(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsListKeysSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsListKeysSample.js similarity index 69% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsListKeysSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsListKeysSample.js index a4085c7bed58..61dda40911f8 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsListKeysSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsListKeysSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Gets the Primary and Secondary ConnectionStrings to the NotificationHub * * @summary Gets the Primary and Secondary ConnectionStrings to the NotificationHub - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListKey.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleListKeys.json */ -async function notificationHubAuthorizationRuleListKey() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsListKeys() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const authorizationRuleName = "sdk-AuthRules-5800"; @@ -29,9 +31,13 @@ async function notificationHubAuthorizationRuleListKey() { resourceGroupName, namespaceName, notificationHubName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -notificationHubAuthorizationRuleListKey().catch(console.error); +async function main() { + notificationHubsListKeys(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsListSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsListSample.js similarity index 69% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsListSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsListSample.js index 566d296972cb..9f20191c9d24 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsListSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsListSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Lists the notification hubs associated with a namespace. * * @summary Lists the notification hubs associated with a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubListByNameSpace.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/List.json */ -async function notificationHubListByNameSpace() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsList() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient(credential, subscriptionId); @@ -30,4 +32,8 @@ async function notificationHubListByNameSpace() { console.log(resArray); } -notificationHubListByNameSpace().catch(console.error); +async function main() { + notificationHubsList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsRegenerateKeysSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsRegenerateKeysSample.js similarity index 70% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsRegenerateKeysSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsRegenerateKeysSample.js index c67301146335..ca00f744ef43 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsRegenerateKeysSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsRegenerateKeysSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule * * @summary Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleRegenrateKey.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleRegenerateKey.json */ -async function notificationHubAuthorizationRuleRegenrateKey() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsRegenerateKeys() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const authorizationRuleName = "DefaultListenSharedAccessSignature"; @@ -31,9 +33,13 @@ async function notificationHubAuthorizationRuleRegenrateKey() { namespaceName, notificationHubName, authorizationRuleName, - parameters + parameters, ); console.log(result); } -notificationHubAuthorizationRuleRegenrateKey().catch(console.error); +async function main() { + notificationHubsRegenerateKeys(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsPatchSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsUpdateSample.js similarity index 56% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsPatchSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsUpdateSample.js index 45e39714e338..7850fe260b28 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsPatchSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsUpdateSample.js @@ -10,29 +10,40 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Patch a NotificationHub in a namespace. * * @summary Patch a NotificationHub in a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Update.json */ -async function notificationHubPatch() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "sdkresourceGroup"; +async function notificationHubsUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "sdkresourceGroup"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "sdk-notificationHubs-8708"; - const parameters = {}; - const options = { parameters }; + const parameters = { + gcmCredential: { + gcmEndpoint: "https://fcm.googleapis.com/fcm/send", + googleApiKey: "###################################", + }, + registrationTtl: "10675199.02:48:05.4775807", + }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient(credential, subscriptionId); - const result = await client.notificationHubs.patch( + const result = await client.notificationHubs.update( resourceGroupName, namespaceName, notificationHubName, - options + parameters, ); console.log(result); } -notificationHubPatch().catch(console.error); +async function main() { + notificationHubsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/operationsListSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/operationsListSample.js similarity index 64% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/operationsListSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/operationsListSample.js index 54284a5b5111..c2016ecbf5c3 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/operationsListSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/operationsListSample.js @@ -10,15 +10,17 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** - * This sample demonstrates how to Lists all of the available NotificationHubs REST API operations. + * This sample demonstrates how to Lists all available Notification Hubs operations. * - * @summary Lists all of the available NotificationHubs REST API operations. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NHOperationsList.json + * @summary Lists all available Notification Hubs operations. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NHOperationsList.json */ async function operationsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient(credential, subscriptionId); const resArray = new Array(); @@ -28,4 +30,8 @@ async function operationsList() { console.log(resArray); } -operationsList().catch(console.error); +async function main() { + operationsList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/package.json b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/package.json similarity index 80% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/package.json rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/package.json index 52d997a5c997..77eaa7d94e9f 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/package.json +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/package.json @@ -1,8 +1,8 @@ { - "name": "@azure-samples/arm-notificationhubs-js", + "name": "@azure-samples/arm-notificationhubs-js-beta", "private": true, "version": "1.0.0", - "description": " client library samples for JavaScript", + "description": " client library samples for JavaScript (Beta)", "engines": { "node": ">=18.0.0" }, @@ -25,7 +25,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/notificationhubs/arm-notificationhubs", "dependencies": { - "@azure/arm-notificationhubs": "latest", + "@azure/arm-notificationhubs": "next", "dotenv": "latest", "@azure/identity": "^4.0.1" } diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsDeleteSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsDeleteSample.js new file mode 100644 index 000000000000..d9b714df1437 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsDeleteSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes the Private Endpoint Connection. +This is a public API that can be called directly by Notification Hubs users. + * + * @summary Deletes the Private Endpoint Connection. +This is a public API that can be called directly by Notification Hubs users. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json + */ +async function privateEndpointConnectionsDelete() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const privateEndpointConnectionName = "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.beginDeleteAndWait( + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsDelete(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsGetGroupIdSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsGetGroupIdSample.js new file mode 100644 index 000000000000..ae6df2ea8093 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsGetGroupIdSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. +That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + * + * @summary Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. +That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceGet.json + */ +async function privateEndpointConnectionsGetGroupId() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const subResourceName = "namespace"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.getGroupId( + resourceGroupName, + namespaceName, + subResourceName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsGetGroupId(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsGetSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsGetSample.js new file mode 100644 index 000000000000..0336c72555c8 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsGetSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Returns a Private Endpoint Connection with a given name. +This is a public API that can be called directly by Notification Hubs users. + * + * @summary Returns a Private Endpoint Connection with a given name. +This is a public API that can be called directly by Notification Hubs users. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json + */ +async function privateEndpointConnectionsGet() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const privateEndpointConnectionName = "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.get( + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsGet(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsListGroupIdsSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsListGroupIdsSample.js new file mode 100644 index 000000000000..64e4e0f4d585 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsListGroupIdsSample.js @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. +That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + * + * @summary Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. +That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceList.json + */ +async function privateEndpointConnectionsListGroupIds() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.privateEndpointConnections.listGroupIds( + resourceGroupName, + namespaceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + privateEndpointConnectionsListGroupIds(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsListSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsListSample.js new file mode 100644 index 000000000000..419d733472c8 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsListSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace. +This is a public API that can be called directly by Notification Hubs users. + * + * @summary Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace. +This is a public API that can be called directly by Notification Hubs users. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json + */ +async function privateEndpointConnectionsList() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.privateEndpointConnections.list(resourceGroupName, namespaceName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + privateEndpointConnectionsList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsUpdateSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsUpdateSample.js new file mode 100644 index 000000000000..e6ac3aeced4c --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsUpdateSample.js @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Approves or rejects Private Endpoint Connection. +This is a public API that can be called directly by Notification Hubs users. + * + * @summary Approves or rejects Private Endpoint Connection. +This is a public API that can be called directly by Notification Hubs users. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionUpdate.json + */ +async function privateEndpointConnectionsUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const privateEndpointConnectionName = "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e"; + const parameters = { + properties: { + privateEndpoint: {}, + privateLinkServiceConnectionState: { status: "Approved" }, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.beginUpdateAndWait( + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + parameters, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/sample.env b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/sample.env new file mode 100644 index 000000000000..672847a3fea0 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/sample.env @@ -0,0 +1,4 @@ +# App registration secret for AAD authentication +AZURE_CLIENT_SECRET= +AZURE_CLIENT_ID= +AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/README.md b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/README.md new file mode 100644 index 000000000000..2b9bbedfc3b8 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/README.md @@ -0,0 +1,131 @@ +# client library samples for TypeScript (Beta) + +These sample programs show how to use the TypeScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [namespacesCheckAvailabilitySample.ts][namespacescheckavailabilitysample] | Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CheckAvailability.json | +| [namespacesCreateOrUpdateAuthorizationRuleSample.ts][namespacescreateorupdateauthorizationrulesample] | Creates an authorization rule for a namespace x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json | +| [namespacesCreateOrUpdateSample.ts][namespacescreateorupdatesample] | Creates / Updates a Notification Hub namespace. This operation is idempotent. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CreateOrUpdate.json | +| [namespacesDeleteAuthorizationRuleSample.ts][namespacesdeleteauthorizationrulesample] | Deletes a namespace authorization rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleDelete.json | +| [namespacesDeleteSample.ts][namespacesdeletesample] | Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Delete.json | +| [namespacesGetAuthorizationRuleSample.ts][namespacesgetauthorizationrulesample] | Gets an authorization rule for a namespace by name. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleGet.json | +| [namespacesGetPnsCredentialsSample.ts][namespacesgetpnscredentialssample] | Lists the PNS credentials associated with a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PnsCredentialsGet.json | +| [namespacesGetSample.ts][namespacesgetsample] | Returns the given namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Get.json | +| [namespacesListAllSample.ts][namespaceslistallsample] | Lists all the available namespaces within the subscription. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListBySubscription.json | +| [namespacesListAuthorizationRulesSample.ts][namespaceslistauthorizationrulessample] | Gets the authorization rules for a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleList.json | +| [namespacesListKeysSample.ts][namespaceslistkeyssample] | Gets the Primary and Secondary ConnectionStrings to the namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleListKeys.json | +| [namespacesListSample.ts][namespaceslistsample] | Lists the available namespaces within a resource group. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListByResourceGroup.json | +| [namespacesRegenerateKeysSample.ts][namespacesregeneratekeyssample] | Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json | +| [namespacesUpdateSample.ts][namespacesupdatesample] | Patches the existing namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Update.json | +| [notificationHubsCheckNotificationHubAvailabilitySample.ts][notificationhubschecknotificationhubavailabilitysample] | Checks the availability of the given notificationHub in a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CheckAvailability.json | +| [notificationHubsCreateOrUpdateAuthorizationRuleSample.ts][notificationhubscreateorupdateauthorizationrulesample] | Creates/Updates an authorization rule for a NotificationHub x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json | +| [notificationHubsCreateOrUpdateSample.ts][notificationhubscreateorupdatesample] | Creates/Update a NotificationHub in a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CreateOrUpdate.json | +| [notificationHubsDebugSendSample.ts][notificationhubsdebugsendsample] | Test send a push notification. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/DebugSend.json | +| [notificationHubsDeleteAuthorizationRuleSample.ts][notificationhubsdeleteauthorizationrulesample] | Deletes a notificationHub authorization rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json | +| [notificationHubsDeleteSample.ts][notificationhubsdeletesample] | Deletes a notification hub associated with a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Delete.json | +| [notificationHubsGetAuthorizationRuleSample.ts][notificationhubsgetauthorizationrulesample] | Gets an authorization rule for a NotificationHub by name. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json | +| [notificationHubsGetPnsCredentialsSample.ts][notificationhubsgetpnscredentialssample] | Lists the PNS Credentials associated with a notification hub. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/PnsCredentialsGet.json | +| [notificationHubsGetSample.ts][notificationhubsgetsample] | Gets the notification hub. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Get.json | +| [notificationHubsListAuthorizationRulesSample.ts][notificationhubslistauthorizationrulessample] | Gets the authorization rules for a NotificationHub. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleList.json | +| [notificationHubsListKeysSample.ts][notificationhubslistkeyssample] | Gets the Primary and Secondary ConnectionStrings to the NotificationHub x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleListKeys.json | +| [notificationHubsListSample.ts][notificationhubslistsample] | Lists the notification hubs associated with a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/List.json | +| [notificationHubsRegenerateKeysSample.ts][notificationhubsregeneratekeyssample] | Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleRegenerateKey.json | +| [notificationHubsUpdateSample.ts][notificationhubsupdatesample] | Patch a NotificationHub in a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Update.json | +| [operationsListSample.ts][operationslistsample] | Lists all available Notification Hubs operations. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NHOperationsList.json | +| [privateEndpointConnectionsDeleteSample.ts][privateendpointconnectionsdeletesample] | Deletes the Private Endpoint Connection. This is a public API that can be called directly by Notification Hubs users. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json | +| [privateEndpointConnectionsGetGroupIdSample.ts][privateendpointconnectionsgetgroupidsample] | Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceGet.json | +| [privateEndpointConnectionsGetSample.ts][privateendpointconnectionsgetsample] | Returns a Private Endpoint Connection with a given name. This is a public API that can be called directly by Notification Hubs users. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json | +| [privateEndpointConnectionsListGroupIdsSample.ts][privateendpointconnectionslistgroupidssample] | Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceList.json | +| [privateEndpointConnectionsListSample.ts][privateendpointconnectionslistsample] | Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace. This is a public API that can be called directly by Notification Hubs users. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json | +| [privateEndpointConnectionsUpdateSample.ts][privateendpointconnectionsupdatesample] | Approves or rejects Private Endpoint Connection. This is a public API that can be called directly by Notification Hubs users. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionUpdate.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: + +```bash +npm install -g typescript +``` + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Compile the samples: + +```bash +npm run build +``` + +3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +4. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node dist/namespacesCheckAvailabilitySample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx cross-env NOTIFICATIONHUBS_SUBSCRIPTION_ID="" node dist/namespacesCheckAvailabilitySample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[namespacescheckavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCheckAvailabilitySample.ts +[namespacescreateorupdateauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCreateOrUpdateAuthorizationRuleSample.ts +[namespacescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCreateOrUpdateSample.ts +[namespacesdeleteauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesDeleteAuthorizationRuleSample.ts +[namespacesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesDeleteSample.ts +[namespacesgetauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetAuthorizationRuleSample.ts +[namespacesgetpnscredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetPnsCredentialsSample.ts +[namespacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetSample.ts +[namespaceslistallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListAllSample.ts +[namespaceslistauthorizationrulessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListAuthorizationRulesSample.ts +[namespaceslistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListKeysSample.ts +[namespaceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListSample.ts +[namespacesregeneratekeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesRegenerateKeysSample.ts +[namespacesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesUpdateSample.ts +[notificationhubschecknotificationhubavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsCheckNotificationHubAvailabilitySample.ts +[notificationhubscreateorupdateauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts +[notificationhubscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsCreateOrUpdateSample.ts +[notificationhubsdebugsendsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsDebugSendSample.ts +[notificationhubsdeleteauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsDeleteAuthorizationRuleSample.ts +[notificationhubsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsDeleteSample.ts +[notificationhubsgetauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsGetAuthorizationRuleSample.ts +[notificationhubsgetpnscredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsGetPnsCredentialsSample.ts +[notificationhubsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsGetSample.ts +[notificationhubslistauthorizationrulessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsListAuthorizationRulesSample.ts +[notificationhubslistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsListKeysSample.ts +[notificationhubslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsListSample.ts +[notificationhubsregeneratekeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsRegenerateKeysSample.ts +[notificationhubsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsUpdateSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/operationsListSample.ts +[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts +[privateendpointconnectionsgetgroupidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsGetGroupIdSample.ts +[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsGetSample.ts +[privateendpointconnectionslistgroupidssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsListGroupIdsSample.ts +[privateendpointconnectionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsListSample.ts +[privateendpointconnectionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsUpdateSample.ts +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-notificationhubs?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/notificationhubs/arm-notificationhubs/README.md +[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/package.json b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/package.json similarity index 83% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/package.json rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/package.json index a710a35c7d7f..7e8dc89fd838 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/package.json +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/package.json @@ -1,8 +1,8 @@ { - "name": "@azure-samples/arm-notificationhubs-ts", + "name": "@azure-samples/arm-notificationhubs-ts-beta", "private": true, "version": "1.0.0", - "description": " client library samples for TypeScript", + "description": " client library samples for TypeScript (Beta)", "engines": { "node": ">=18.0.0" }, @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/notificationhubs/arm-notificationhubs", "dependencies": { - "@azure/arm-notificationhubs": "latest", + "@azure/arm-notificationhubs": "next", "dotenv": "latest", "@azure/identity": "^4.0.1" }, diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/sample.env b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/sample.env new file mode 100644 index 000000000000..672847a3fea0 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/sample.env @@ -0,0 +1,4 @@ +# App registration secret for AAD authentication +AZURE_CLIENT_SECRET= +AZURE_CLIENT_ID= +AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCheckAvailabilitySample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCheckAvailabilitySample.ts similarity index 70% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCheckAvailabilitySample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCheckAvailabilitySample.ts index 4fdc59e7df8f..f80a2b1de710 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCheckAvailabilitySample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCheckAvailabilitySample.ts @@ -10,28 +10,37 @@ // Licensed under the MIT License. import { CheckAvailabilityParameters, - NotificationHubsManagementClient + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. * * @summary Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCheckNameAvailability.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CheckAvailability.json */ -async function nameSpaceCheckNameAvailability() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; +async function namespacesCheckAvailability() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; const parameters: CheckAvailabilityParameters = { - name: "sdk-Namespace-2924" + name: "sdk-Namespace-2924", }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.checkAvailability(parameters); console.log(result); } -nameSpaceCheckNameAvailability().catch(console.error); +async function main() { + namespacesCheckAvailability(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCreateOrUpdateAuthorizationRuleSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCreateOrUpdateAuthorizationRuleSample.ts similarity index 57% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCreateOrUpdateAuthorizationRuleSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCreateOrUpdateAuthorizationRuleSample.ts index 7ccb8e032e38..809cc9376664 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCreateOrUpdateAuthorizationRuleSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCreateOrUpdateAuthorizationRuleSample.ts @@ -9,37 +9,47 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - SharedAccessAuthorizationRuleCreateOrUpdateParameters, - NotificationHubsManagementClient + SharedAccessAuthorizationRuleResource, + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Creates an authorization rule for a namespace * * @summary Creates an authorization rule for a namespace - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleCreate.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json */ -async function nameSpaceAuthorizationRuleCreate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesCreateOrUpdateAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "sdk-AuthRules-1788"; - const parameters: SharedAccessAuthorizationRuleCreateOrUpdateParameters = { - properties: { rights: ["Listen", "Send"] } + const parameters: SharedAccessAuthorizationRuleResource = { + rights: ["Listen", "Send"], }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.createOrUpdateAuthorizationRule( resourceGroupName, namespaceName, authorizationRuleName, - parameters + parameters, ); console.log(result); } -nameSpaceAuthorizationRuleCreate().catch(console.error); +async function main() { + namespacesCreateOrUpdateAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCreateOrUpdateSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCreateOrUpdateSample.ts new file mode 100644 index 000000000000..022d1f5cf9ab --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCreateOrUpdateSample.ts @@ -0,0 +1,62 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + NamespaceResource, + NotificationHubsManagementClient, +} from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates / Updates a Notification Hub namespace. This operation is idempotent. + * + * @summary Creates / Updates a Notification Hub namespace. This operation is idempotent. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CreateOrUpdate.json + */ +async function namespacesCreateOrUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const parameters: NamespaceResource = { + location: "South Central US", + networkAcls: { + ipRules: [ + { ipMask: "185.48.100.00/24", rights: ["Manage", "Send", "Listen"] }, + ], + publicNetworkRule: { rights: ["Listen"] }, + }, + sku: { name: "Standard", tier: "Standard" }, + tags: { tag1: "value1", tag2: "value2" }, + zoneRedundancy: "Enabled", + }; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.namespaces.beginCreateOrUpdateAndWait( + resourceGroupName, + namespaceName, + parameters, + ); + console.log(result); +} + +async function main() { + namespacesCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesDeleteAuthorizationRuleSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesDeleteAuthorizationRuleSample.ts similarity index 63% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesDeleteAuthorizationRuleSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesDeleteAuthorizationRuleSample.ts index 39fe7bbe2a4c..390c9e067c92 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesDeleteAuthorizationRuleSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesDeleteAuthorizationRuleSample.ts @@ -10,29 +10,39 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Deletes a namespace authorization rule * * @summary Deletes a namespace authorization rule - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleDelete.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleDelete.json */ -async function nameSpaceAuthorizationRuleDelete() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesDeleteAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "RootManageSharedAccessKey"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.deleteAuthorizationRule( resourceGroupName, namespaceName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -nameSpaceAuthorizationRuleDelete().catch(console.error); +async function main() { + namespacesDeleteAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesDeleteSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesDeleteSample.ts similarity index 64% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesDeleteSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesDeleteSample.ts index 41788af22db6..485771ee8b89 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesDeleteSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesDeleteSample.ts @@ -10,27 +10,37 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. * * @summary Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceDelete.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Delete.json */ -async function nameSpaceDelete() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesDelete() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); - const result = await client.namespaces.beginDeleteAndWait( + const result = await client.namespaces.delete( resourceGroupName, - namespaceName + namespaceName, ); console.log(result); } -nameSpaceDelete().catch(console.error); +async function main() { + namespacesDelete(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesGetAuthorizationRuleSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetAuthorizationRuleSample.ts similarity index 64% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesGetAuthorizationRuleSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetAuthorizationRuleSample.ts index e797a3c4035c..c3e9430339be 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesGetAuthorizationRuleSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetAuthorizationRuleSample.ts @@ -10,29 +10,39 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Gets an authorization rule for a namespace by name. * * @summary Gets an authorization rule for a namespace by name. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleGet.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleGet.json */ -async function nameSpaceAuthorizationRuleGet() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesGetAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "RootManageSharedAccessKey"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.getAuthorizationRule( resourceGroupName, namespaceName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -nameSpaceAuthorizationRuleGet().catch(console.error); +async function main() { + namespacesGetAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetPnsCredentialsSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetPnsCredentialsSample.ts new file mode 100644 index 000000000000..8af1433220ab --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetPnsCredentialsSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists the PNS credentials associated with a namespace. + * + * @summary Lists the PNS credentials associated with a namespace. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PnsCredentialsGet.json + */ +async function namespacesGetPnsCredentials() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.namespaces.getPnsCredentials( + resourceGroupName, + namespaceName, + ); + console.log(result); +} + +async function main() { + namespacesGetPnsCredentials(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesGetSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetSample.ts similarity index 57% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesGetSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetSample.ts index 34fcd43f851f..852956365db2 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesGetSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetSample.ts @@ -10,24 +10,34 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Returns the description for the specified namespace. + * This sample demonstrates how to Returns the given namespace. * - * @summary Returns the description for the specified namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceGet.json + * @summary Returns the given namespace. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Get.json */ -async function nameSpaceGet() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesGet() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.get(resourceGroupName, namespaceName); console.log(result); } -nameSpaceGet().catch(console.error); +async function main() { + namespacesGet(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListAllSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListAllSample.ts similarity index 66% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListAllSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListAllSample.ts index 87072d3cc3bf..a53770aea01d 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListAllSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListAllSample.ts @@ -10,19 +10,24 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * This sample demonstrates how to Lists all the available namespaces within the subscription. * - * @summary Lists all the available namespaces within the subscription irrespective of the resourceGroups. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceList.json + * @summary Lists all the available namespaces within the subscription. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListBySubscription.json */ -async function nameSpaceList() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; +async function namespacesListAll() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.namespaces.listAll()) { @@ -31,4 +36,8 @@ async function nameSpaceList() { console.log(resArray); } -nameSpaceList().catch(console.error); +async function main() { + namespacesListAll(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListAuthorizationRulesSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListAuthorizationRulesSample.ts similarity index 64% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListAuthorizationRulesSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListAuthorizationRulesSample.ts index b1c7949e3dd0..47accda124b3 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListAuthorizationRulesSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListAuthorizationRulesSample.ts @@ -10,30 +10,40 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Gets the authorization rules for a namespace. * * @summary Gets the authorization rules for a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListAll.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleList.json */ -async function nameSpaceAuthorizationRuleListAll() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesListAuthorizationRules() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.namespaces.listAuthorizationRules( resourceGroupName, - namespaceName + namespaceName, )) { resArray.push(item); } console.log(resArray); } -nameSpaceAuthorizationRuleListAll().catch(console.error); +async function main() { + namespacesListAuthorizationRules(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListKeysSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListKeysSample.ts similarity index 62% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListKeysSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListKeysSample.ts index 584d1fd12b95..59d6c04be29b 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListKeysSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListKeysSample.ts @@ -10,29 +10,39 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Gets the Primary and Secondary ConnectionStrings to the namespace + * This sample demonstrates how to Gets the Primary and Secondary ConnectionStrings to the namespace. * - * @summary Gets the Primary and Secondary ConnectionStrings to the namespace - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListKey.json + * @summary Gets the Primary and Secondary ConnectionStrings to the namespace. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleListKeys.json */ -async function nameSpaceAuthorizationRuleListKey() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesListKeys() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "RootManageSharedAccessKey"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.listKeys( resourceGroupName, namespaceName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -nameSpaceAuthorizationRuleListKey().catch(console.error); +async function main() { + namespacesListKeys(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListSample.ts similarity index 59% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListSample.ts index 9b278248c444..2d6f55d5f0ad 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListSample.ts @@ -10,20 +10,26 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Lists the available namespaces within a resourceGroup. + * This sample demonstrates how to Lists the available namespaces within a resource group. * - * @summary Lists the available namespaces within a resourceGroup. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceListByResourceGroup.json + * @summary Lists the available namespaces within a resource group. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListByResourceGroup.json */ -async function nameSpaceListByResourceGroup() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesList() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.namespaces.list(resourceGroupName)) { @@ -32,4 +38,8 @@ async function nameSpaceListByResourceGroup() { console.log(resArray); } -nameSpaceListByResourceGroup().catch(console.error); +async function main() { + namespacesList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesRegenerateKeysSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesRegenerateKeysSample.ts similarity index 61% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesRegenerateKeysSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesRegenerateKeysSample.ts index 5fa2210c7c3b..4e6c1aeb758a 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesRegenerateKeysSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesRegenerateKeysSample.ts @@ -9,35 +9,45 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - PolicykeyResource, - NotificationHubsManagementClient + PolicyKeyResource, + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule * * @summary Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleRegenrateKey.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json */ -async function nameSpaceAuthorizationRuleRegenerateKey() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesRegenerateKeys() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "RootManageSharedAccessKey"; - const parameters: PolicykeyResource = { policyKey: "PrimaryKey" }; + const parameters: PolicyKeyResource = { policyKey: "PrimaryKey" }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.regenerateKeys( resourceGroupName, namespaceName, authorizationRuleName, - parameters + parameters, ); console.log(result); } -nameSpaceAuthorizationRuleRegenerateKey().catch(console.error); +async function main() { + namespacesRegenerateKeys(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesUpdateSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesUpdateSample.ts new file mode 100644 index 000000000000..f5600482160e --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesUpdateSample.ts @@ -0,0 +1,62 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + NamespacePatchParameters, + NotificationHubsManagementClient, +} from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Patches the existing namespace. + * + * @summary Patches the existing namespace. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Update.json + */ +async function namespacesUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const parameters: NamespacePatchParameters = { + properties: { + pnsCredentials: { + gcmCredential: { + gcmEndpoint: "https://fcm.googleapis.com/fcm/send", + googleApiKey: "#############################", + }, + }, + }, + sku: { name: "Free" }, + tags: { tag1: "value3" }, + }; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.namespaces.update( + resourceGroupName, + namespaceName, + parameters, + ); + console.log(result); +} + +async function main() { + namespacesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsCheckNotificationHubAvailabilitySample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsCheckNotificationHubAvailabilitySample.ts similarity index 62% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsCheckNotificationHubAvailabilitySample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsCheckNotificationHubAvailabilitySample.ts index 5c141d2210b3..103695f912b6 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsCheckNotificationHubAvailabilitySample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsCheckNotificationHubAvailabilitySample.ts @@ -10,35 +10,45 @@ // Licensed under the MIT License. import { CheckAvailabilityParameters, - NotificationHubsManagementClient + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Checks the availability of the given notificationHub in a namespace. * * @summary Checks the availability of the given notificationHub in a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCheckNameAvailability.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CheckAvailability.json */ -async function notificationHubCheckNameAvailability() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsCheckNotificationHubAvailability() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "locp-newns"; const parameters: CheckAvailabilityParameters = { name: "sdktest", - location: "West Europe" + location: "West Europe", }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.checkNotificationHubAvailability( resourceGroupName, namespaceName, - parameters + parameters, ); console.log(result); } -notificationHubCheckNameAvailability().catch(console.error); +async function main() { + notificationHubsCheckNotificationHubAvailability(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts similarity index 56% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts index 869f7f085a36..3e9893eb3cd3 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts @@ -9,39 +9,49 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - SharedAccessAuthorizationRuleCreateOrUpdateParameters, - NotificationHubsManagementClient + SharedAccessAuthorizationRuleResource, + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Creates/Updates an authorization rule for a NotificationHub * * @summary Creates/Updates an authorization rule for a NotificationHub - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleCreate.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json */ -async function notificationHubAuthorizationRuleCreate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsCreateOrUpdateAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; - const authorizationRuleName = "DefaultListenSharedAccessSignature"; - const parameters: SharedAccessAuthorizationRuleCreateOrUpdateParameters = { - properties: { rights: ["Listen", "Send"] } + const authorizationRuleName = "MyManageSharedAccessKey"; + const parameters: SharedAccessAuthorizationRuleResource = { + rights: ["Listen", "Send"], }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.createOrUpdateAuthorizationRule( resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, - parameters + parameters, ); console.log(result); } -notificationHubAuthorizationRuleCreate().catch(console.error); +async function main() { + notificationHubsCreateOrUpdateAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsCreateOrUpdateSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsCreateOrUpdateSample.ts similarity index 59% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsCreateOrUpdateSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsCreateOrUpdateSample.ts index ced4f99a258f..3bcc8cb8cb7e 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsCreateOrUpdateSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsCreateOrUpdateSample.ts @@ -9,37 +9,45 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - NotificationHubCreateOrUpdateParameters, - NotificationHubsManagementClient + NotificationHubResource, + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Creates/Update a NotificationHub in a namespace. * * @summary Creates/Update a NotificationHub in a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCreate.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CreateOrUpdate.json */ -async function notificationHubCreate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsCreateOrUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; - const parameters: NotificationHubCreateOrUpdateParameters = { - location: "eastus" - }; + const parameters: NotificationHubResource = { location: "eastus" }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.createOrUpdate( resourceGroupName, namespaceName, notificationHubName, - parameters + parameters, ); console.log(result); } -notificationHubCreate().catch(console.error); +async function main() { + notificationHubsCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsDebugSendSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsDebugSendSample.ts similarity index 53% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsDebugSendSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsDebugSendSample.ts index fa63e94e7707..4aab712e97b9 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsDebugSendSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsDebugSendSample.ts @@ -8,37 +8,41 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { - NotificationHubsDebugSendOptionalParams, - NotificationHubsManagementClient -} from "@azure/arm-notificationhubs"; +import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to test send a push notification + * This sample demonstrates how to Test send a push notification. * - * @summary test send a push notification - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDebugSend.json + * @summary Test send a push notification. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/DebugSend.json */ -async function debugsend() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsDebugSend() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; - const parameters: Record = { data: { message: "Hello" } }; - const options: NotificationHubsDebugSendOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.debugSend( resourceGroupName, namespaceName, notificationHubName, - options ); console.log(result); } -debugsend().catch(console.error); +async function main() { + notificationHubsDebugSend(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsDeleteAuthorizationRuleSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsDeleteAuthorizationRuleSample.ts similarity index 65% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsDeleteAuthorizationRuleSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsDeleteAuthorizationRuleSample.ts index ac72f4a32263..f26c4e0c2448 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsDeleteAuthorizationRuleSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsDeleteAuthorizationRuleSample.ts @@ -10,31 +10,41 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Deletes a notificationHub authorization rule * * @summary Deletes a notificationHub authorization rule - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleDelete.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json */ -async function notificationHubAuthorizationRuleDelete() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsDeleteAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const authorizationRuleName = "DefaultListenSharedAccessSignature"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.deleteAuthorizationRule( resourceGroupName, namespaceName, notificationHubName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -notificationHubAuthorizationRuleDelete().catch(console.error); +async function main() { + notificationHubsDeleteAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsDeleteSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsDeleteSample.ts similarity index 65% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsDeleteSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsDeleteSample.ts index 4c70a99ad643..180c06b69169 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsDeleteSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsDeleteSample.ts @@ -10,29 +10,39 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Deletes a notification hub associated with a namespace. * * @summary Deletes a notification hub associated with a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDelete.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Delete.json */ -async function notificationHubDelete() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsDelete() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.delete( resourceGroupName, namespaceName, - notificationHubName + notificationHubName, ); console.log(result); } -notificationHubDelete().catch(console.error); +async function main() { + notificationHubsDelete(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsGetAuthorizationRuleSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsGetAuthorizationRuleSample.ts similarity index 65% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsGetAuthorizationRuleSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsGetAuthorizationRuleSample.ts index 0a83324f0853..f1b1e7f154f2 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsGetAuthorizationRuleSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsGetAuthorizationRuleSample.ts @@ -10,31 +10,41 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Gets an authorization rule for a NotificationHub by name. * * @summary Gets an authorization rule for a NotificationHub by name. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleGet.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json */ -async function notificationHubAuthorizationRuleGet() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsGetAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const authorizationRuleName = "DefaultListenSharedAccessSignature"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.getAuthorizationRule( resourceGroupName, namespaceName, notificationHubName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -notificationHubAuthorizationRuleGet().catch(console.error); +async function main() { + notificationHubsGetAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsGetPnsCredentialsSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsGetPnsCredentialsSample.ts similarity index 61% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsGetPnsCredentialsSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsGetPnsCredentialsSample.ts index 01b38dac0189..1fc721ebb46a 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsGetPnsCredentialsSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsGetPnsCredentialsSample.ts @@ -10,29 +10,39 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Lists the PNS Credentials associated with a notification hub . + * This sample demonstrates how to Lists the PNS Credentials associated with a notification hub. * - * @summary Lists the PNS Credentials associated with a notification hub . - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPnsCredentials.json + * @summary Lists the PNS Credentials associated with a notification hub. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/PnsCredentialsGet.json */ -async function notificationHubPnsCredentials() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsGetPnsCredentials() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.getPnsCredentials( resourceGroupName, namespaceName, - notificationHubName + notificationHubName, ); console.log(result); } -notificationHubPnsCredentials().catch(console.error); +async function main() { + notificationHubsGetPnsCredentials(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsGetSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsGetSample.ts similarity index 57% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsGetSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsGetSample.ts index b9cfe2be30db..cf73171fa712 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsGetSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsGetSample.ts @@ -10,29 +10,39 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Lists the notification hubs associated with a namespace. + * This sample demonstrates how to Gets the notification hub. * - * @summary Lists the notification hubs associated with a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubGet.json + * @summary Gets the notification hub. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Get.json */ -async function notificationHubGet() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsGet() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.get( resourceGroupName, namespaceName, - notificationHubName + notificationHubName, ); console.log(result); } -notificationHubGet().catch(console.error); +async function main() { + notificationHubsGet(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsListAuthorizationRulesSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsListAuthorizationRulesSample.ts similarity index 65% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsListAuthorizationRulesSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsListAuthorizationRulesSample.ts index d542f81f21ec..965a31b72bce 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsListAuthorizationRulesSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsListAuthorizationRulesSample.ts @@ -10,32 +10,42 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Gets the authorization rules for a NotificationHub. * * @summary Gets the authorization rules for a NotificationHub. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListAll.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleList.json */ -async function notificationHubAuthorizationRuleListAll() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsListAuthorizationRules() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.notificationHubs.listAuthorizationRules( resourceGroupName, namespaceName, - notificationHubName + notificationHubName, )) { resArray.push(item); } console.log(resArray); } -notificationHubAuthorizationRuleListAll().catch(console.error); +async function main() { + notificationHubsListAuthorizationRules(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsListKeysSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsListKeysSample.ts similarity index 66% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsListKeysSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsListKeysSample.ts index 91797f29c08a..9cb76d265961 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsListKeysSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsListKeysSample.ts @@ -10,31 +10,41 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Gets the Primary and Secondary ConnectionStrings to the NotificationHub * * @summary Gets the Primary and Secondary ConnectionStrings to the NotificationHub - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListKey.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleListKeys.json */ -async function notificationHubAuthorizationRuleListKey() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsListKeys() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const authorizationRuleName = "sdk-AuthRules-5800"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.listKeys( resourceGroupName, namespaceName, notificationHubName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -notificationHubAuthorizationRuleListKey().catch(console.error); +async function main() { + notificationHubsListKeys(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsListSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsListSample.ts similarity index 65% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsListSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsListSample.ts index 43e455f72fb6..4a7e84a1c4ae 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsListSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsListSample.ts @@ -10,30 +10,40 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Lists the notification hubs associated with a namespace. * * @summary Lists the notification hubs associated with a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubListByNameSpace.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/List.json */ -async function notificationHubListByNameSpace() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsList() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.notificationHubs.list( resourceGroupName, - namespaceName + namespaceName, )) { resArray.push(item); } console.log(resArray); } -notificationHubListByNameSpace().catch(console.error); +async function main() { + notificationHubsList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsRegenerateKeysSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsRegenerateKeysSample.ts similarity index 62% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsRegenerateKeysSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsRegenerateKeysSample.ts index 557b7aa142f5..38ead21fb085 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsRegenerateKeysSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsRegenerateKeysSample.ts @@ -9,37 +9,47 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - PolicykeyResource, - NotificationHubsManagementClient + PolicyKeyResource, + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule * * @summary Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleRegenrateKey.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleRegenerateKey.json */ -async function notificationHubAuthorizationRuleRegenrateKey() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsRegenerateKeys() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const authorizationRuleName = "DefaultListenSharedAccessSignature"; - const parameters: PolicykeyResource = { policyKey: "PrimaryKey" }; + const parameters: PolicyKeyResource = { policyKey: "PrimaryKey" }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.regenerateKeys( resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, - parameters + parameters, ); console.log(result); } -notificationHubAuthorizationRuleRegenrateKey().catch(console.error); +async function main() { + notificationHubsRegenerateKeys(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsPatchSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsUpdateSample.ts similarity index 52% rename from sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsPatchSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsUpdateSample.ts index 20a0cef6f0ce..b0d5ddbbe8b5 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsPatchSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsUpdateSample.ts @@ -10,36 +10,50 @@ // Licensed under the MIT License. import { NotificationHubPatchParameters, - NotificationHubsPatchOptionalParams, - NotificationHubsManagementClient + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Patch a NotificationHub in a namespace. * * @summary Patch a NotificationHub in a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Update.json */ -async function notificationHubPatch() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "sdkresourceGroup"; +async function notificationHubsUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "sdkresourceGroup"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "sdk-notificationHubs-8708"; - const parameters: NotificationHubPatchParameters = {}; - const options: NotificationHubsPatchOptionalParams = { parameters }; + const parameters: NotificationHubPatchParameters = { + gcmCredential: { + gcmEndpoint: "https://fcm.googleapis.com/fcm/send", + googleApiKey: "###################################", + }, + registrationTtl: "10675199.02:48:05.4775807", + }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); - const result = await client.notificationHubs.patch( + const result = await client.notificationHubs.update( resourceGroupName, namespaceName, notificationHubName, - options + parameters, ); console.log(result); } -notificationHubPatch().catch(console.error); +async function main() { + notificationHubsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/operationsListSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/operationsListSample.ts similarity index 61% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/operationsListSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/operationsListSample.ts index 8d5a7ec9db42..ff8bfc43839c 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/operationsListSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/operationsListSample.ts @@ -10,19 +10,24 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Lists all of the available NotificationHubs REST API operations. + * This sample demonstrates how to Lists all available Notification Hubs operations. * - * @summary Lists all of the available NotificationHubs REST API operations. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NHOperationsList.json + * @summary Lists all available Notification Hubs operations. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NHOperationsList.json */ async function operationsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.operations.list()) { @@ -31,4 +36,8 @@ async function operationsList() { console.log(resArray); } -operationsList().catch(console.error); +async function main() { + operationsList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts new file mode 100644 index 000000000000..c7f7fc12587c --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts @@ -0,0 +1,51 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes the Private Endpoint Connection. +This is a public API that can be called directly by Notification Hubs users. + * + * @summary Deletes the Private Endpoint Connection. +This is a public API that can be called directly by Notification Hubs users. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json + */ +async function privateEndpointConnectionsDelete() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const privateEndpointConnectionName = + "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.privateEndpointConnections.beginDeleteAndWait( + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsDelete(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsGetGroupIdSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsGetGroupIdSample.ts new file mode 100644 index 000000000000..3ac6ba4aa810 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsGetGroupIdSample.ts @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. +That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + * + * @summary Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. +That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceGet.json + */ +async function privateEndpointConnectionsGetGroupId() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const subResourceName = "namespace"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.privateEndpointConnections.getGroupId( + resourceGroupName, + namespaceName, + subResourceName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsGetGroupId(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsGetSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsGetSample.ts new file mode 100644 index 000000000000..196a70b5080b --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsGetSample.ts @@ -0,0 +1,51 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Returns a Private Endpoint Connection with a given name. +This is a public API that can be called directly by Notification Hubs users. + * + * @summary Returns a Private Endpoint Connection with a given name. +This is a public API that can be called directly by Notification Hubs users. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json + */ +async function privateEndpointConnectionsGet() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const privateEndpointConnectionName = + "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.privateEndpointConnections.get( + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsGet(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsListGroupIdsSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsListGroupIdsSample.ts new file mode 100644 index 000000000000..d5e0783f240a --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsListGroupIdsSample.ts @@ -0,0 +1,51 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. +That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + * + * @summary Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. +That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceList.json + */ +async function privateEndpointConnectionsListGroupIds() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const resArray = new Array(); + for await (let item of client.privateEndpointConnections.listGroupIds( + resourceGroupName, + namespaceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + privateEndpointConnectionsListGroupIds(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsListSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsListSample.ts new file mode 100644 index 000000000000..fea89497694b --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsListSample.ts @@ -0,0 +1,51 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace. +This is a public API that can be called directly by Notification Hubs users. + * + * @summary Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace. +This is a public API that can be called directly by Notification Hubs users. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json + */ +async function privateEndpointConnectionsList() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const resArray = new Array(); + for await (let item of client.privateEndpointConnections.list( + resourceGroupName, + namespaceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + privateEndpointConnectionsList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsUpdateSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsUpdateSample.ts new file mode 100644 index 000000000000..0ddb213a1c86 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsUpdateSample.ts @@ -0,0 +1,61 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + PrivateEndpointConnectionResource, + NotificationHubsManagementClient, +} from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Approves or rejects Private Endpoint Connection. +This is a public API that can be called directly by Notification Hubs users. + * + * @summary Approves or rejects Private Endpoint Connection. +This is a public API that can be called directly by Notification Hubs users. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionUpdate.json + */ +async function privateEndpointConnectionsUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const privateEndpointConnectionName = + "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e"; + const parameters: PrivateEndpointConnectionResource = { + properties: { + privateEndpoint: {}, + privateLinkServiceConnectionState: { status: "Approved" }, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.privateEndpointConnections.beginUpdateAndWait( + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + parameters, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/tsconfig.json b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/tsconfig.json new file mode 100644 index 000000000000..e26ce2a6d8f7 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "commonjs", + "moduleResolution": "node", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "alwaysStrict": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src/**.ts" + ] +} diff --git a/sdk/notificationhubs/arm-notificationhubs/src/lroImpl.ts b/sdk/notificationhubs/arm-notificationhubs/src/lroImpl.ts index 518d5f053b4e..b27f5ac7209b 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/lroImpl.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/lroImpl.ts @@ -6,29 +6,37 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { AbortSignalLike } from "@azure/abort-controller"; import { LongRunningOperation, LroResponse } from "@azure/core-lro"; -export class LroImpl implements LongRunningOperation { - constructor( - private sendOperationFn: (args: any, spec: any) => Promise>, - private args: Record, - private spec: { - readonly requestBody?: unknown; - readonly path?: string; - readonly httpMethod: string; - } & Record, - public requestPath: string = spec.path!, - public requestMethod: string = spec.httpMethod - ) {} - public async sendInitialRequest(): Promise> { - return this.sendOperationFn(this.args, this.spec); - } - public async sendPollRequest(path: string): Promise> { - const { requestBody, ...restSpec } = this.spec; - return this.sendOperationFn(this.args, { - ...restSpec, - path, - httpMethod: "GET" - }); - } +export function createLroSpec(inputs: { + sendOperationFn: (args: any, spec: any) => Promise>; + args: Record; + spec: { + readonly requestBody?: unknown; + readonly path?: string; + readonly httpMethod: string; + } & Record; +}): LongRunningOperation { + const { args, spec, sendOperationFn } = inputs; + return { + requestMethod: spec.httpMethod, + requestPath: spec.path!, + sendInitialRequest: () => sendOperationFn(args, spec), + sendPollRequest: ( + path: string, + options?: { abortSignal?: AbortSignalLike }, + ) => { + const { requestBody, ...restSpec } = spec; + return sendOperationFn(args, { + ...restSpec, + httpMethod: "GET", + path, + abortSignal: options?.abortSignal, + }); + }, + }; } diff --git a/sdk/notificationhubs/arm-notificationhubs/src/models/index.ts b/sdk/notificationhubs/arm-notificationhubs/src/models/index.ts index d8e8dc92602c..d35fa2d1ed21 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/models/index.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/models/index.ts @@ -8,772 +8,1763 @@ import * as coreClient from "@azure/core-client"; -/** Result of the request to list NotificationHubs operations. It contains a list of operations and a URL link to get the next set of results. */ -export interface OperationListResult { +/** + * Parameters supplied to the Check Name Availability for Namespace and + * NotificationHubs. + */ +export interface CheckAvailabilityParameters { /** - * List of NotificationHubs operations supported by the Microsoft.NotificationHubs resource provider. + * Gets resource Id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Operation[]; + readonly id?: string; + /** Gets or sets resource name */ + name: string; /** - * URL to get the next set of operation list results if there are any. + * Gets resource type * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly type?: string; + /** Gets or sets resource location */ + location?: string; + /** Gets or sets resource tags */ + tags?: { [propertyName: string]: string }; + /** Not used and deprecated since API version 2023-01-01-preview */ + isAvailiable?: boolean; + /** The Sku description for a namespace */ + sku?: Sku; } -/** A NotificationHubs REST API operation */ -export interface Operation { +/** The Sku description for a namespace */ +export interface Sku { + /** Namespace SKU name. */ + name: SkuName; + /** Gets or sets the tier of particular sku */ + tier?: string; + /** Gets or sets the Sku size */ + size?: string; + /** Gets or sets the Sku Family */ + family?: string; + /** Gets or sets the capacity of the resource */ + capacity?: number; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { /** - * Operation name: {provider}/{resource}/{operation} + * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; - /** The object that represents the operation. */ - display?: OperationDisplay; -} - -/** The object that represents the operation. */ -export interface OperationDisplay { + readonly id?: string; /** - * Service provider: Microsoft.NotificationHubs + * The name of the resource * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provider?: string; + readonly name?: string; /** - * Resource on which the operation is performed: Invoice, etc. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resource?: string; + readonly type?: string; /** - * Operation type: Read, write, delete, etc. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly systemData?: SystemData; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; } -/** Error response indicates NotificationHubs service is not able to process the incoming request. The reason is provided in the error message. */ +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ export interface ErrorResponse { - /** Error code. */ - code?: string; - /** Error message indicating why the operation failed. */ - message?: string; + /** The error object. */ + error?: ErrorDetail; } -/** Parameters supplied to the Check Name Availability for Namespace and NotificationHubs. */ -export interface CheckAvailabilityParameters { +/** The error detail. */ +export interface ErrorDetail { /** - * Resource Id + * The error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; - /** Resource name */ - name: string; + readonly code?: string; /** - * Resource type + * The error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; - /** Resource location */ - location?: string; - /** Resource tags */ - tags?: { [propertyName: string]: string }; - /** The sku of the created namespace */ - sku?: Sku; - /** True if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false. */ - isAvailiable?: boolean; -} - -/** The Sku description for a namespace */ -export interface Sku { - /** Name of the notification hub sku */ - name: SkuName; - /** The tier of particular sku */ - tier?: string; - /** The Sku size */ - size?: string; - /** The Sku Family */ - family?: string; - /** The capacity of the resource */ - capacity?: number; -} - -export interface Resource { + readonly message?: string; /** - * Resource Id + * The error target. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly target?: string; /** - * Resource name + * The error details. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly details?: ErrorDetail[]; /** - * Resource type + * The error additional info. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; - /** Resource location */ - location?: string; - /** Resource tags */ - tags?: { [propertyName: string]: string }; - /** The sku of the created namespace */ - sku?: Sku; -} - -/** Parameters supplied to the Patch Namespace operation. */ -export interface NamespacePatchParameters { - /** Resource tags */ - tags?: { [propertyName: string]: string }; - /** The sku of the created namespace */ - sku?: Sku; + readonly additionalInfo?: ErrorAdditionalInfo[]; } -/** Parameters supplied to the CreateOrUpdate Namespace AuthorizationRules. */ -export interface SharedAccessAuthorizationRuleCreateOrUpdateParameters { - /** Properties of the Namespace AuthorizationRules. */ - properties: SharedAccessAuthorizationRuleProperties; +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; } /** SharedAccessAuthorizationRule properties. */ export interface SharedAccessAuthorizationRuleProperties { - /** The rights associated with the rule. */ - rights?: AccessRights[]; + /** Gets or sets the rights associated with the rule. */ + rights: AccessRights[]; /** - * A base64-encoded 256-bit primary key for signing and validating the SAS token. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Gets a base64-encoded 256-bit primary key for signing and + * validating the SAS token. */ - readonly primaryKey?: string; + primaryKey?: string; /** - * A base64-encoded 256-bit primary key for signing and validating the SAS token. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Gets a base64-encoded 256-bit primary key for signing and + * validating the SAS token. */ - readonly secondaryKey?: string; + secondaryKey?: string; /** - * A string that describes the authorization rule. + * Gets a string that describes the authorization rule. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly keyName?: string; /** - * A string that describes the claim type + * Gets the last modified time for this rule * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly claimType?: string; + readonly modifiedTime?: Date; /** - * A string that describes the claim value + * Gets the created time for this rule * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly claimValue?: string; + readonly createdTime?: Date; /** - * The last modified time for this rule + * Gets a string that describes the claim type * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly modifiedTime?: string; + readonly claimType?: string; /** - * The created time for this rule + * Gets a string that describes the claim value * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createdTime?: string; + readonly claimValue?: string; /** - * The revision number for the rule + * Gets the revision number for the rule * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly revision?: number; } -/** The response of the List Namespace operation. */ -export interface NamespaceListResult { - /** Result of the List Namespace operation. */ - value?: NamespaceResource[]; - /** Link to the next set of results. Not empty if Value contains incomplete list of Namespaces */ - nextLink?: string; -} - -/** The response of the List Namespace operation. */ -export interface SharedAccessAuthorizationRuleListResult { - /** Result of the List AuthorizationRules operation. */ - value?: SharedAccessAuthorizationRuleResource[]; - /** Link to the next set of results. Not empty if Value contains incomplete list of AuthorizationRules */ - nextLink?: string; -} - -/** Namespace/NotificationHub Connection String */ -export interface ResourceListKeys { - /** PrimaryConnectionString of the AuthorizationRule. */ - primaryConnectionString?: string; - /** SecondaryConnectionString of the created AuthorizationRule */ - secondaryConnectionString?: string; - /** PrimaryKey of the created AuthorizationRule. */ - primaryKey?: string; - /** SecondaryKey of the created AuthorizationRule */ - secondaryKey?: string; - /** KeyName of the created AuthorizationRule */ - keyName?: string; -} - -/** Namespace/NotificationHub Regenerate Keys */ -export interface PolicykeyResource { - /** Name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. */ - policyKey?: string; -} - /** Description of a NotificationHub ApnsCredential. */ export interface ApnsCredential { - /** The APNS certificate. Specify if using Certificate Authentication Mode. */ + /** Gets or sets the APNS certificate. */ apnsCertificate?: string; - /** The APNS certificate password if it exists. */ + /** Gets or sets the certificate key. */ certificateKey?: string; - /** The APNS endpoint of this credential. If using Certificate Authentication Mode and Sandbox specify 'gateway.sandbox.push.apple.com'. If using Certificate Authentication Mode and Production specify 'gateway.push.apple.com'. If using Token Authentication Mode and Sandbox specify 'https://api.development.push.apple.com:443/3/device'. If using Token Authentication Mode and Production specify 'https://api.push.apple.com:443/3/device'. */ - endpoint?: string; - /** The APNS certificate thumbprint. Specify if using Certificate Authentication Mode. */ + /** Gets or sets the endpoint of this credential. */ + endpoint: string; + /** Gets or sets the APNS certificate Thumbprint */ thumbprint?: string; - /** A 10-character key identifier (kid) key, obtained from your developer account. Specify if using Token Authentication Mode. */ + /** + * Gets or sets a 10-character key identifier (kid) key, obtained from + * your developer account + */ keyId?: string; - /** The name of the application or BundleId. Specify if using Token Authentication Mode. */ + /** Gets or sets the name of the application */ appName?: string; - /** The issuer (iss) registered claim key. The value is a 10-character TeamId, obtained from your developer account. Specify if using Token Authentication Mode. */ + /** + * Gets or sets the issuer (iss) registered claim key, whose value is + * your 10-character Team ID, obtained from your developer account + */ appId?: string; - /** Provider Authentication Token, obtained through your developer account. Specify if using Token Authentication Mode. */ + /** + * Gets or sets provider Authentication Token, obtained through your + * developer account + */ token?: string; } /** Description of a NotificationHub WnsCredential. */ export interface WnsCredential { - /** The package ID for this credential. */ + /** Gets or sets the package ID for this credential. */ packageSid?: string; - /** The secret key. */ + /** Gets or sets the secret key. */ secretKey?: string; - /** The Windows Live endpoint. */ + /** Gets or sets the Windows Live endpoint. */ windowsLiveEndpoint?: string; + /** Ges or sets the WNS Certificate Key. */ + certificateKey?: string; + /** Gets or sets the WNS Certificate. */ + wnsCertificate?: string; } /** Description of a NotificationHub GcmCredential. */ export interface GcmCredential { - /** The FCM legacy endpoint. Default value is 'https://fcm.googleapis.com/fcm/send' */ + /** Gets or sets the GCM endpoint. */ gcmEndpoint?: string; - /** The Google API key. */ - googleApiKey?: string; + /** Gets or sets the Google API key. */ + googleApiKey: string; } /** Description of a NotificationHub MpnsCredential. */ export interface MpnsCredential { - /** The MPNS certificate. */ - mpnsCertificate?: string; - /** The certificate key for this credential. */ - certificateKey?: string; - /** The MPNS certificate Thumbprint */ - thumbprint?: string; + /** Gets or sets the MPNS certificate. */ + mpnsCertificate: string; + /** Gets or sets the certificate key for this credential. */ + certificateKey: string; + /** Gets or sets the MPNS certificate Thumbprint */ + thumbprint: string; } /** Description of a NotificationHub AdmCredential. */ export interface AdmCredential { - /** The client identifier. */ - clientId?: string; - /** The credential secret access key. */ - clientSecret?: string; - /** The URL of the authorization token. */ - authTokenUrl?: string; + /** Gets or sets the client identifier. */ + clientId: string; + /** Gets or sets the credential secret access key. */ + clientSecret: string; + /** Gets or sets the URL of the authorization token. */ + authTokenUrl: string; } /** Description of a NotificationHub BaiduCredential. */ export interface BaiduCredential { - /** Baidu Api Key. */ - baiduApiKey?: string; - /** Baidu Endpoint. */ - baiduEndPoint?: string; - /** Baidu Secret Key */ - baiduSecretKey?: string; + /** Gets or sets baidu Api Key. */ + baiduApiKey: string; + /** Gets or sets baidu Endpoint. */ + baiduEndPoint: string; + /** Gets or sets baidu Secret Key */ + baiduSecretKey: string; } -/** The response of the List NotificationHub operation. */ -export interface NotificationHubListResult { - /** Result of the List NotificationHub operation. */ - value?: NotificationHubResource[]; - /** Link to the next set of results. Not empty if Value contains incomplete list of NotificationHub */ - nextLink?: string; +/** Description of a NotificationHub BrowserCredential. */ +export interface BrowserCredential { + /** Gets or sets web push subject. */ + subject: string; + /** Gets or sets VAPID private key. */ + vapidPrivateKey: string; + /** Gets or sets VAPID public key. */ + vapidPublicKey: string; } -export interface SubResource { - /** Resource Id */ - id?: string; +/** Description of a NotificationHub XiaomiCredential. */ +export interface XiaomiCredential { + /** Gets or sets app secret. */ + appSecret?: string; + /** Gets or sets xiaomi service endpoint. */ + endpoint?: string; } -/** Description of a CheckAvailability resource. */ -export interface CheckAvailabilityResult extends Resource { - /** True if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false. */ - isAvailiable?: boolean; +/** Description of a NotificationHub FcmV1Credential. */ +export interface FcmV1Credential { + /** Gets or sets client email. */ + clientEmail: string; + /** Gets or sets private key. */ + privateKey: string; + /** Gets or sets project id. */ + projectId: string; } -/** Parameters supplied to the CreateOrUpdate Namespace operation. */ -export interface NamespaceCreateOrUpdateParameters extends Resource { - /** The name of the namespace. */ - namePropertiesName?: string; - /** Provisioning state of the Namespace. */ - provisioningState?: string; - /** Specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia East, Australia Southeast, Central US, East US, East US 2, West US, North Central US, South Central US, East Asia, Southeast Asia, Brazil South, Japan East, Japan West, North Europe, West Europe */ - region?: string; +/** Patch parameter for NamespaceResource. */ +export interface NotificationHubPatchParameters { + /** The Sku description for a namespace */ + sku?: Sku; + /** Dictionary of */ + tags?: { [propertyName: string]: string }; + /** Gets or sets the NotificationHub name. */ + name?: string; + /** Gets or sets the RegistrationTtl of the created NotificationHub */ + registrationTtl?: string; /** - * Identifier for Azure Insights metrics + * Gets or sets the AuthorizationRules of the created NotificationHub * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly metricId?: string; - /** Status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting */ - status?: string; - /** The time the namespace was created. */ - createdAt?: Date; - /** The time the namespace was updated. */ - updatedAt?: Date; - /** Endpoint you can use to perform NotificationHub operations. */ - serviceBusEndpoint?: string; - /** The Id of the Azure subscription associated with the namespace. */ - subscriptionId?: string; - /** ScaleUnit where the namespace gets created */ - scaleUnit?: string; - /** Whether or not the namespace is currently enabled. */ - enabled?: boolean; - /** Whether or not the namespace is set as Critical. */ - critical?: boolean; - /** Data center for the namespace */ - dataCenter?: string; - /** The namespace type. */ - namespaceType?: NamespaceType; + readonly authorizationRules?: SharedAccessAuthorizationRuleProperties[]; + /** Description of a NotificationHub ApnsCredential. */ + apnsCredential?: ApnsCredential; + /** Description of a NotificationHub WnsCredential. */ + wnsCredential?: WnsCredential; + /** Description of a NotificationHub GcmCredential. */ + gcmCredential?: GcmCredential; + /** Description of a NotificationHub MpnsCredential. */ + mpnsCredential?: MpnsCredential; + /** Description of a NotificationHub AdmCredential. */ + admCredential?: AdmCredential; + /** Description of a NotificationHub BaiduCredential. */ + baiduCredential?: BaiduCredential; + /** Description of a NotificationHub BrowserCredential. */ + browserCredential?: BrowserCredential; + /** Description of a NotificationHub XiaomiCredential. */ + xiaomiCredential?: XiaomiCredential; + /** Description of a NotificationHub FcmV1Credential. */ + fcmV1Credential?: FcmV1Credential; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly dailyMaxActiveDevices?: number; } -/** Description of a Namespace resource. */ -export interface NamespaceResource extends Resource { - /** The name of the namespace. */ - namePropertiesName?: string; - /** Provisioning state of the Namespace. */ - provisioningState?: string; - /** Specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia East, Australia Southeast, Central US, East US, East US 2, West US, North Central US, South Central US, East Asia, Southeast Asia, Brazil South, Japan East, Japan West, North Europe, West Europe */ - region?: string; +/** The response of the List NotificationHub operation. */ +export interface NotificationHubListResult { /** - * Identifier for Azure Insights metrics + * Gets or sets result of the List AuthorizationRules operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly metricId?: string; - /** Status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting */ - status?: string; - /** The time the namespace was created. */ - createdAt?: Date; - /** The time the namespace was updated. */ - updatedAt?: Date; - /** Endpoint you can use to perform NotificationHub operations. */ - serviceBusEndpoint?: string; - /** The Id of the Azure subscription associated with the namespace. */ - subscriptionId?: string; - /** ScaleUnit where the namespace gets created */ - scaleUnit?: string; - /** Whether or not the namespace is currently enabled. */ - enabled?: boolean; - /** Whether or not the namespace is set as Critical. */ - critical?: boolean; - /** Data center for the namespace */ - dataCenter?: string; - /** The namespace type. */ - namespaceType?: NamespaceType; + readonly value?: NotificationHubResource[]; + /** + * Gets or sets link to the next set of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; } -/** Description of a Namespace AuthorizationRules. */ -export interface SharedAccessAuthorizationRuleResource extends Resource { - /** The rights associated with the rule. */ - rights?: AccessRights[]; +/** Notification result for a single registration. */ +export interface RegistrationResult { /** - * A base64-encoded 256-bit primary key for signing and validating the SAS token. + * PNS type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly primaryKey?: string; + readonly applicationPlatform?: string; /** - * A base64-encoded 256-bit primary key for signing and validating the SAS token. + * PNS handle. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly secondaryKey?: string; + readonly pnsHandle?: string; /** - * A string that describes the authorization rule. + * Registration id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly keyName?: string; + readonly registrationId?: string; /** - * A string that describes the claim type + * Notification outcome. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly claimType?: string; + readonly outcome?: string; +} + +/** The response of the List Namespace operation. */ +export interface SharedAccessAuthorizationRuleListResult { /** - * A string that describes the claim value + * Gets or sets result of the List AuthorizationRules operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly claimValue?: string; + readonly value?: SharedAccessAuthorizationRuleResource[]; + /** + * Gets or sets link to the next set of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** Response for the POST request that returns Namespace or NotificationHub access keys (connection strings). */ +export interface ResourceListKeys { /** - * The last modified time for this rule + * Gets or sets primaryConnectionString of the AuthorizationRule. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly modifiedTime?: string; + readonly primaryConnectionString?: string; /** - * The created time for this rule + * Gets or sets secondaryConnectionString of the created + * AuthorizationRule * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createdTime?: string; + readonly secondaryConnectionString?: string; /** - * The revision number for the rule + * Gets or sets primaryKey of the created AuthorizationRule. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly revision?: number; + readonly primaryKey?: string; + /** + * Gets or sets secondaryKey of the created AuthorizationRule + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly secondaryKey?: string; + /** + * Gets or sets keyName of the created AuthorizationRule + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly keyName?: string; } -/** Parameters supplied to the CreateOrUpdate NotificationHub operation. */ -export interface NotificationHubCreateOrUpdateParameters extends Resource { - /** The NotificationHub name. */ - namePropertiesName?: string; - /** The RegistrationTtl of the created NotificationHub */ - registrationTtl?: string; - /** The AuthorizationRules of the created NotificationHub */ - authorizationRules?: SharedAccessAuthorizationRuleProperties[]; - /** The ApnsCredential of the created NotificationHub */ - apnsCredential?: ApnsCredential; - /** The WnsCredential of the created NotificationHub */ - wnsCredential?: WnsCredential; - /** The GcmCredential of the created NotificationHub */ - gcmCredential?: GcmCredential; - /** The MpnsCredential of the created NotificationHub */ - mpnsCredential?: MpnsCredential; - /** The AdmCredential of the created NotificationHub */ - admCredential?: AdmCredential; - /** The BaiduCredential of the created NotificationHub */ - baiduCredential?: BaiduCredential; +/** Namespace / NotificationHub Regenerate Keys request. */ +export interface PolicyKeyResource { + /** Type of Shared Access Policy Key (primary or secondary). */ + policyKey: PolicyKeyType; } -/** Description of a NotificationHub Resource. */ -export interface NotificationHubResource extends Resource { - /** The NotificationHub name. */ - namePropertiesName?: string; - /** The RegistrationTtl of the created NotificationHub */ - registrationTtl?: string; - /** The AuthorizationRules of the created NotificationHub */ - authorizationRules?: SharedAccessAuthorizationRuleProperties[]; - /** The ApnsCredential of the created NotificationHub */ +/** Collection of Notification Hub or Notification Hub Namespace PNS credentials. */ +export interface PnsCredentials { + /** Description of a NotificationHub AdmCredential. */ + admCredential?: AdmCredential; + /** Description of a NotificationHub ApnsCredential. */ apnsCredential?: ApnsCredential; - /** The WnsCredential of the created NotificationHub */ - wnsCredential?: WnsCredential; - /** The GcmCredential of the created NotificationHub */ + /** Description of a NotificationHub BaiduCredential. */ + baiduCredential?: BaiduCredential; + /** Description of a NotificationHub BrowserCredential. */ + browserCredential?: BrowserCredential; + /** Description of a NotificationHub GcmCredential. */ gcmCredential?: GcmCredential; - /** The MpnsCredential of the created NotificationHub */ + /** Description of a NotificationHub MpnsCredential. */ mpnsCredential?: MpnsCredential; - /** The AdmCredential of the created NotificationHub */ - admCredential?: AdmCredential; - /** The BaiduCredential of the created NotificationHub */ - baiduCredential?: BaiduCredential; + /** Description of a NotificationHub WnsCredential. */ + wnsCredential?: WnsCredential; + /** Description of a NotificationHub XiaomiCredential. */ + xiaomiCredential?: XiaomiCredential; + /** Description of a NotificationHub FcmV1Credential. */ + fcmV1Credential?: FcmV1Credential; } -/** Parameters supplied to the patch NotificationHub operation. */ -export interface NotificationHubPatchParameters extends Resource { - /** The NotificationHub name. */ - namePropertiesName?: string; - /** The RegistrationTtl of the created NotificationHub */ - registrationTtl?: string; - /** The AuthorizationRules of the created NotificationHub */ - authorizationRules?: SharedAccessAuthorizationRuleProperties[]; - /** The ApnsCredential of the created NotificationHub */ - apnsCredential?: ApnsCredential; - /** The WnsCredential of the created NotificationHub */ - wnsCredential?: WnsCredential; - /** The GcmCredential of the created NotificationHub */ - gcmCredential?: GcmCredential; - /** The MpnsCredential of the created NotificationHub */ - mpnsCredential?: MpnsCredential; - /** The AdmCredential of the created NotificationHub */ - admCredential?: AdmCredential; - /** The BaiduCredential of the created NotificationHub */ - baiduCredential?: BaiduCredential; +/** Represents namespace properties. */ +export interface NamespaceProperties { + /** + * Name of the Notification Hubs namespace. This is immutable property, set automatically + * by the service when the namespace is created. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** Defines values for OperationProvisioningState. */ + provisioningState?: OperationProvisioningState; + /** Namespace status. */ + status?: NamespaceStatus; + /** + * Gets or sets whether or not the namespace is currently enabled. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly enabled?: boolean; + /** + * Gets or sets whether or not the namespace is set as Critical. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly critical?: boolean; + /** + * Namespace subscription id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly subscriptionId?: string; + /** + * Region. The value is always set to the same value as Namespace.Location, so we are deprecating + * this property. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly region?: string; + /** + * Azure Insights Metrics id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly metricId?: string; + /** + * Time when the namespace was created. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdAt?: Date; + /** + * Time when the namespace was updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly updatedAt?: Date; + /** Defines values for NamespaceType. */ + namespaceType?: NamespaceType; + /** Allowed replication region */ + replicationRegion?: ReplicationRegion; + /** Namespace SKU name. */ + zoneRedundancy?: ZoneRedundancyPreference; + /** A collection of network authorization rules. */ + networkAcls?: NetworkAcls; + /** Collection of Notification Hub or Notification Hub Namespace PNS credentials. */ + pnsCredentials?: PnsCredentials; + /** + * Gets or sets endpoint you can use to perform NotificationHub + * operations. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly serviceBusEndpoint?: string; + /** + * Private Endpoint Connections for namespace + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointConnections?: PrivateEndpointConnectionResource[]; + /** Gets or sets scaleUnit where the namespace gets created */ + scaleUnit?: string; + /** Deprecated. */ + dataCenter?: string; + /** Type of public network access. */ + publicNetworkAccess?: PublicNetworkAccess; } -/** Description of a NotificationHub Resource. */ -export interface DebugSendResponse extends Resource { - /** successful send */ - success?: number; - /** send failure */ - failure?: number; - /** actual failure description */ - results?: Record; -} - -/** Description of a NotificationHub PNS Credentials. */ -export interface PnsCredentialsResource extends Resource { - /** The ApnsCredential of the created NotificationHub */ - apnsCredential?: ApnsCredential; - /** The WnsCredential of the created NotificationHub */ - wnsCredential?: WnsCredential; - /** The GcmCredential of the created NotificationHub */ - gcmCredential?: GcmCredential; - /** The MpnsCredential of the created NotificationHub */ - mpnsCredential?: MpnsCredential; - /** The AdmCredential of the created NotificationHub */ - admCredential?: AdmCredential; - /** The BaiduCredential of the created NotificationHub */ - baiduCredential?: BaiduCredential; +/** A collection of network authorization rules. */ +export interface NetworkAcls { + /** List of IP rules. */ + ipRules?: IpRule[]; + /** A default (public Internet) network authorization rule, which contains rights if no other network rule matches. */ + publicNetworkRule?: PublicInternetAuthorizationRule; } -/** Known values of {@link SkuName} that the service accepts. */ -export enum KnownSkuName { - /** Free */ - Free = "Free", - /** Basic */ - Basic = "Basic", - /** Standard */ - Standard = "Standard" +/** A network authorization rule that filters traffic based on IP address. */ +export interface IpRule { + /** IP mask. */ + ipMask: string; + /** List of access rights. */ + rights: AccessRights[]; } -/** - * Defines values for SkuName. \ - * {@link KnownSkuName} can be used interchangeably with SkuName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Free** \ - * **Basic** \ - * **Standard** +/** A default (public Internet) network authorization rule, which contains rights if no other network rule matches. */ +export interface PublicInternetAuthorizationRule { + /** List of access rights. */ + rights: AccessRights[]; +} + +/** Private Endpoint Connection properties. */ +export interface PrivateEndpointConnectionProperties { + /** State of Private Endpoint Connection. */ + provisioningState?: PrivateEndpointConnectionProvisioningState; + /** Represents a Private Endpoint that is connected to Notification Hubs namespace using Private Endpoint Connection. */ + privateEndpoint?: RemotePrivateEndpointConnection; + /** + * List of group ids. For Notification Hubs, it always contains a single "namespace" element. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly groupIds?: string[]; + /** State of the Private Link Service connection. */ + privateLinkServiceConnectionState?: RemotePrivateLinkServiceConnectionState; +} + +/** Represents a Private Endpoint that is connected to Notification Hubs namespace using Private Endpoint Connection. */ +export interface RemotePrivateEndpointConnection { + /** + * ARM resource ID of the Private Endpoint. This may belong to different subscription and resource group than a Notification Hubs namespace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; +} + +/** State of the Private Link Service connection. */ +export interface RemotePrivateLinkServiceConnectionState { + /** State of Private Link Connection. */ + status?: PrivateLinkConnectionStatus; + /** + * Human-friendly description. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; + /** + * Human-friendly description of required actions. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly actionsRequired?: string; +} + +/** Patch parameter for NamespaceResource. */ +export interface NamespacePatchParameters { + /** The Sku description for a namespace */ + sku?: Sku; + /** Represents namespace properties. */ + properties?: NamespaceProperties; + /** Dictionary of */ + tags?: { [propertyName: string]: string }; +} + +/** The response of the List Namespace operation. */ +export interface NamespaceListResult { + /** + * Gets or sets result of the List AuthorizationRules operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: NamespaceResource[]; + /** + * Gets or sets link to the next set of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** + * Result of the request to list NotificationHubs operations. It contains + * a list of operations and a URL link to get the next set of results. + */ +export interface OperationListResult { + /** + * Gets list of NotificationHubs operations supported by the + * Microsoft.NotificationHubs resource provider. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: Operation[]; + /** + * Gets URL to get the next set of operation list results if there are + * any. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** A NotificationHubs REST API operation */ +export interface Operation { + /** + * Gets operation name: {provider}/{resource}/{operation} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** The object that represents the operation. */ + display?: OperationDisplay; + /** Optional operation properties. */ + properties?: OperationProperties; + /** + * Gets or sets IsDataAction property. It is used to differentiate management and data plane operations. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isDataAction?: boolean; +} + +/** The object that represents the operation. */ +export interface OperationDisplay { + /** + * Gets service provider: Microsoft.NotificationHubs + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provider?: string; + /** + * Gets resource on which the operation is performed: Invoice, etc. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resource?: string; + /** + * Gets operation type: Read, write, delete, etc. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operation?: string; + /** + * Human-friendly operation description. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; +} + +/** Optional operation properties. */ +export interface OperationProperties { + /** Optional service specification used in Operations API. */ + serviceSpecification?: ServiceSpecification; +} + +/** Optional service specification used in Operations API. */ +export interface ServiceSpecification { + /** + * Log specifications. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly logSpecifications?: LogSpecification[]; + /** + * Metric specification. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly metricSpecifications?: MetricSpecification[]; +} + +/** A single log category specification. */ +export interface LogSpecification { + /** + * Name of the log category. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Display name of the log category. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly displayName?: string; + /** + * Duration of data written to a single blob. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly blobDuration?: string; + /** Category group for the log specification. */ + categoryGroups?: string[]; +} + +/** A metric specification. */ +export interface MetricSpecification { + /** + * Metric name / id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * User-visible metric name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly displayName?: string; + /** + * Description of the metric. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly displayDescription?: string; + /** + * Metric unit. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly unit?: string; + /** + * Type of the aggregation (Average, Minimum, Maximum, Total or Count). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly aggregationType?: string; + /** + * List of availabilities. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly availabilities?: Availability[]; + /** + * List of supported time grain types. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly supportedTimeGrainTypes?: string[]; + /** + * The matching regex pattern to be applied to the field pointed by the "metricsFilterPathSelector" flag in the ARM manifest. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly metricFilterPattern?: string; + /** + * Optional property. If set to true, then zero will be returned for time duration where no metric is emitted / published. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fillGapWithZero?: boolean; +} + +/** Represents metric availability (part of RP operation descriptions). */ +export interface Availability { + /** + * Time grain of the availability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly timeGrain?: string; + /** + * Duration of the availability blob. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly blobDuration?: string; +} + +/** The response of the List Private Endpoint Connections operation. */ +export interface PrivateEndpointConnectionResourceListResult { + /** + * Gets or sets result of the List AuthorizationRules operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: PrivateEndpointConnectionResource[]; + /** + * Gets or sets link to the next set of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** Represents properties of Private Link Resource. */ +export interface PrivateLinkResourceProperties { + /** + * A Group Id for Private Link. For Notification Hubs, it is always set to "namespace". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly groupId?: string; + /** + * Required members. For Notification Hubs, it's always a collection with a single "namespace" item. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly requiredMembers?: string[]; + /** + * Required DNS zone names. For Notification Hubs, it contains two CNames for Service Bus and Notification Hubs zones. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly requiredZoneNames?: string[]; +} + +/** The response of the List Private Link Resources operation. */ +export interface PrivateLinkResourceListResult { + /** + * Gets or sets result of the List AuthorizationRules operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: PrivateLinkResource[]; + /** + * Gets or sets link to the next set of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** + * Part of Private Endpoint description that stores information about a connection between Private Endpoint and Notification Hubs namespace. + * This is internal class, not visible to customers, and we use it only to discover the link identifier. + */ +export interface ConnectionDetails { + /** + * A unique ID of the connection. This is not the ARM id, but rather an internal identifier set by the Networking RP. Notification Hubs code + * does not analyze it. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * IP address of the Private Endpoint. This is not used by Notification Hubs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateIpAddress?: string; + /** + * Link identifier. This is a string representation of an integer that is also encoded in every IPv6 frame received by Front Door, + * and we use it to create implicit authorization rule that allows connection from the associated Private Endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly linkIdentifier?: string; + /** + * Group name. Always "namespace" for Notification Hubs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly groupId?: string; + /** + * Member name. Always "namespace" for Notification Hubs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly memberName?: string; +} + +/** + * Represents a connectivity information to Notification Hubs namespace. This is part of PrivateLinkService proxy that tell + * the Networking RP how to connect to the Notification Hubs namespace. + */ +export interface GroupConnectivityInformation { + /** + * Group id. Always set to "namespace". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly groupId?: string; + /** + * Member name. Always set to "namespace". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly memberName?: string; + /** + * List of customer-visible domain names that point to a Notification Hubs namespace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly customerVisibleFqdns?: string[]; + /** + * One of the domain name from the customer-visible names; this is used internally by Private Link service to make connection to Notification Hubs + * namespace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly internalFqdn?: string; + /** + * Not used by Notification Hubs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly redirectMapId?: string; + /** + * ARM region for Private Link Service. We use the region that contains the connected Notification Hubs namespace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateLinkServiceArmRegion?: string; +} + +/** A customer-visible sub-resource of Private Endpoint, which describe the connection between Private Endpoint and Notification Hubs namespace. */ +export interface PrivateLinkServiceConnection { + /** Name of the Private Link Service connection. */ + name?: string; + /** List of group ids. Always contains a single element - "namespace" - for Notification Hub Namespace. */ + groupIds?: string[]; + /** Request message provided by the user that created the connection. This is usually used when the connection requires manual approval. */ + requestMessage?: string; +} + +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends Resource {} + +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface TrackedResource extends Resource { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The geo-location where the resource lives */ + location: string; +} + +/** Description of a CheckAvailability resource. */ +export interface CheckAvailabilityResult extends ProxyResource { + /** + * Gets or sets true if the name is available and can be used to + * create new Namespace/NotificationHub. Otherwise false. + */ + isAvailiable?: boolean; + /** Deprecated - only for compatibility. */ + location?: string; + /** Deprecated - only for compatibility. */ + tags?: { [propertyName: string]: string }; + /** The Sku description for a namespace */ + sku?: Sku; +} + +/** Description of a NotificationHub Resource. */ +export interface DebugSendResponse extends ProxyResource { + /** Deprecated - only for compatibility. */ + location?: string; + /** Deprecated - only for compatibility. */ + tags?: { [propertyName: string]: string }; + /** + * Gets or sets successful send + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly success?: number; + /** + * Gets or sets send failure + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly failure?: number; + /** + * Gets or sets actual failure description + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly results?: RegistrationResult[]; +} + +/** Response for POST requests that return single SharedAccessAuthorizationRule. */ +export interface SharedAccessAuthorizationRuleResource extends ProxyResource { + /** Deprecated - only for compatibility. */ + location?: string; + /** Deprecated - only for compatibility. */ + tags?: { [propertyName: string]: string }; + /** Gets or sets the rights associated with the rule. */ + rights?: AccessRights[]; + /** + * Gets a base64-encoded 256-bit primary key for signing and + * validating the SAS token. + */ + primaryKey?: string; + /** + * Gets a base64-encoded 256-bit primary key for signing and + * validating the SAS token. + */ + secondaryKey?: string; + /** + * Gets a string that describes the authorization rule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly keyName?: string; + /** + * Gets the last modified time for this rule + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly modifiedTime?: Date; + /** + * Gets the created time for this rule + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdTime?: Date; + /** + * Gets a string that describes the claim type + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly claimType?: string; + /** + * Gets a string that describes the claim value + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly claimValue?: string; + /** + * Gets the revision number for the rule + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly revision?: number; +} + +/** + * Description of a NotificationHub PNS Credentials. This is a response of the POST requests that return namespace or hubs + * PNS credentials. + */ +export interface PnsCredentialsResource extends ProxyResource { + /** Deprecated - only for compatibility. */ + location?: string; + /** Deprecated - only for compatibility. */ + tags?: { [propertyName: string]: string }; + /** Description of a NotificationHub AdmCredential. */ + admCredential?: AdmCredential; + /** Description of a NotificationHub ApnsCredential. */ + apnsCredential?: ApnsCredential; + /** Description of a NotificationHub BaiduCredential. */ + baiduCredential?: BaiduCredential; + /** Description of a NotificationHub BrowserCredential. */ + browserCredential?: BrowserCredential; + /** Description of a NotificationHub GcmCredential. */ + gcmCredential?: GcmCredential; + /** Description of a NotificationHub MpnsCredential. */ + mpnsCredential?: MpnsCredential; + /** Description of a NotificationHub WnsCredential. */ + wnsCredential?: WnsCredential; + /** Description of a NotificationHub XiaomiCredential. */ + xiaomiCredential?: XiaomiCredential; + /** Description of a NotificationHub FcmV1Credential. */ + fcmV1Credential?: FcmV1Credential; +} + +/** Represents a Private Endpoint Connection ARM resource - a sub-resource of Notification Hubs namespace. */ +export interface PrivateEndpointConnectionResource extends ProxyResource { + /** Private Endpoint Connection properties. */ + properties?: PrivateEndpointConnectionProperties; +} + +/** A Private Link Arm Resource. */ +export interface PrivateLinkResource extends ProxyResource { + /** Represents properties of Private Link Resource. */ + properties?: PrivateLinkResourceProperties; +} + +/** Notification Hub Resource. */ +export interface NotificationHubResource extends TrackedResource { + /** The Sku description for a namespace */ + sku?: Sku; + /** Gets or sets the NotificationHub name. */ + namePropertiesName?: string; + /** Gets or sets the RegistrationTtl of the created NotificationHub */ + registrationTtl?: string; + /** + * Gets or sets the AuthorizationRules of the created NotificationHub + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly authorizationRules?: SharedAccessAuthorizationRuleProperties[]; + /** Description of a NotificationHub ApnsCredential. */ + apnsCredential?: ApnsCredential; + /** Description of a NotificationHub WnsCredential. */ + wnsCredential?: WnsCredential; + /** Description of a NotificationHub GcmCredential. */ + gcmCredential?: GcmCredential; + /** Description of a NotificationHub MpnsCredential. */ + mpnsCredential?: MpnsCredential; + /** Description of a NotificationHub AdmCredential. */ + admCredential?: AdmCredential; + /** Description of a NotificationHub BaiduCredential. */ + baiduCredential?: BaiduCredential; + /** Description of a NotificationHub BrowserCredential. */ + browserCredential?: BrowserCredential; + /** Description of a NotificationHub XiaomiCredential. */ + xiaomiCredential?: XiaomiCredential; + /** Description of a NotificationHub FcmV1Credential. */ + fcmV1Credential?: FcmV1Credential; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly dailyMaxActiveDevices?: number; +} + +/** Notification Hubs Namespace Resource. */ +export interface NamespaceResource extends TrackedResource { + /** The Sku description for a namespace */ + sku: Sku; + /** + * Name of the Notification Hubs namespace. This is immutable property, set automatically + * by the service when the namespace is created. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly namePropertiesName?: string; + /** Defines values for OperationProvisioningState. */ + provisioningState?: OperationProvisioningState; + /** Namespace status. */ + status?: NamespaceStatus; + /** + * Gets or sets whether or not the namespace is currently enabled. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly enabled?: boolean; + /** + * Gets or sets whether or not the namespace is set as Critical. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly critical?: boolean; + /** + * Namespace subscription id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly subscriptionId?: string; + /** + * Region. The value is always set to the same value as Namespace.Location, so we are deprecating + * this property. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly region?: string; + /** + * Azure Insights Metrics id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly metricId?: string; + /** + * Time when the namespace was created. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdAt?: Date; + /** + * Time when the namespace was updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly updatedAt?: Date; + /** Defines values for NamespaceType. */ + namespaceType?: NamespaceType; + /** Allowed replication region */ + replicationRegion?: ReplicationRegion; + /** Namespace SKU name. */ + zoneRedundancy?: ZoneRedundancyPreference; + /** A collection of network authorization rules. */ + networkAcls?: NetworkAcls; + /** Collection of Notification Hub or Notification Hub Namespace PNS credentials. */ + pnsCredentials?: PnsCredentials; + /** + * Gets or sets endpoint you can use to perform NotificationHub + * operations. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly serviceBusEndpoint?: string; + /** + * Private Endpoint Connections for namespace + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointConnections?: PrivateEndpointConnectionResource[]; + /** Gets or sets scaleUnit where the namespace gets created */ + scaleUnit?: string; + /** Deprecated. */ + dataCenter?: string; + /** Type of public network access. */ + publicNetworkAccess?: PublicNetworkAccess; +} + +/** Defines headers for PrivateEndpointConnections_delete operation. */ +export interface PrivateEndpointConnectionsDeleteHeaders { + location?: string; +} + +/** Known values of {@link SkuName} that the service accepts. */ +export enum KnownSkuName { + /** Free */ + Free = "Free", + /** Basic */ + Basic = "Basic", + /** Standard */ + Standard = "Standard", +} + +/** + * Defines values for SkuName. \ + * {@link KnownSkuName} can be used interchangeably with SkuName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Free** \ + * **Basic** \ + * **Standard** + */ +export type SkuName = string; + +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key", +} + +/** + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type CreatedByType = string; + +/** Known values of {@link AccessRights} that the service accepts. */ +export enum KnownAccessRights { + /** Manage */ + Manage = "Manage", + /** Send */ + Send = "Send", + /** Listen */ + Listen = "Listen", +} + +/** + * Defines values for AccessRights. \ + * {@link KnownAccessRights} can be used interchangeably with AccessRights, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Manage** \ + * **Send** \ + * **Listen** + */ +export type AccessRights = string; + +/** Known values of {@link PolicyKeyType} that the service accepts. */ +export enum KnownPolicyKeyType { + /** PrimaryKey */ + PrimaryKey = "PrimaryKey", + /** SecondaryKey */ + SecondaryKey = "SecondaryKey", +} + +/** + * Defines values for PolicyKeyType. \ + * {@link KnownPolicyKeyType} can be used interchangeably with PolicyKeyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PrimaryKey** \ + * **SecondaryKey** */ -export type SkuName = string; -/** Defines values for NamespaceType. */ -export type NamespaceType = "Messaging" | "NotificationHub"; -/** Defines values for AccessRights. */ -export type AccessRights = "Manage" | "Send" | "Listen"; +export type PolicyKeyType = string; + +/** Known values of {@link OperationProvisioningState} that the service accepts. */ +export enum KnownOperationProvisioningState { + /** Unknown */ + Unknown = "Unknown", + /** InProgress */ + InProgress = "InProgress", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled", + /** Pending */ + Pending = "Pending", + /** Disabled */ + Disabled = "Disabled", +} -/** Optional parameters. */ -export interface OperationsListOptionalParams - extends coreClient.OperationOptions {} +/** + * Defines values for OperationProvisioningState. \ + * {@link KnownOperationProvisioningState} can be used interchangeably with OperationProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unknown** \ + * **InProgress** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** \ + * **Pending** \ + * **Disabled** + */ +export type OperationProvisioningState = string; + +/** Known values of {@link NamespaceStatus} that the service accepts. */ +export enum KnownNamespaceStatus { + /** Created */ + Created = "Created", + /** Creating */ + Creating = "Creating", + /** Suspended */ + Suspended = "Suspended", + /** Deleting */ + Deleting = "Deleting", +} -/** Contains response data for the list operation. */ -export type OperationsListResponse = OperationListResult; +/** + * Defines values for NamespaceStatus. \ + * {@link KnownNamespaceStatus} can be used interchangeably with NamespaceStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Created** \ + * **Creating** \ + * **Suspended** \ + * **Deleting** + */ +export type NamespaceStatus = string; + +/** Known values of {@link NamespaceType} that the service accepts. */ +export enum KnownNamespaceType { + /** Messaging */ + Messaging = "Messaging", + /** NotificationHub */ + NotificationHub = "NotificationHub", +} + +/** + * Defines values for NamespaceType. \ + * {@link KnownNamespaceType} can be used interchangeably with NamespaceType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Messaging** \ + * **NotificationHub** + */ +export type NamespaceType = string; + +/** Known values of {@link ReplicationRegion} that the service accepts. */ +export enum KnownReplicationRegion { + /** Default */ + Default = "Default", + /** WestUs2 */ + WestUs2 = "WestUs2", + /** NorthEurope */ + NorthEurope = "NorthEurope", + /** AustraliaEast */ + AustraliaEast = "AustraliaEast", + /** BrazilSouth */ + BrazilSouth = "BrazilSouth", + /** SouthEastAsia */ + SouthEastAsia = "SouthEastAsia", + /** SouthAfricaNorth */ + SouthAfricaNorth = "SouthAfricaNorth", + /** None */ + None = "None", +} + +/** + * Defines values for ReplicationRegion. \ + * {@link KnownReplicationRegion} can be used interchangeably with ReplicationRegion, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default** \ + * **WestUs2** \ + * **NorthEurope** \ + * **AustraliaEast** \ + * **BrazilSouth** \ + * **SouthEastAsia** \ + * **SouthAfricaNorth** \ + * **None** + */ +export type ReplicationRegion = string; + +/** Known values of {@link ZoneRedundancyPreference} that the service accepts. */ +export enum KnownZoneRedundancyPreference { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled", +} + +/** + * Defines values for ZoneRedundancyPreference. \ + * {@link KnownZoneRedundancyPreference} can be used interchangeably with ZoneRedundancyPreference, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **Enabled** + */ +export type ZoneRedundancyPreference = string; + +/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ +export enum KnownPrivateEndpointConnectionProvisioningState { + /** Unknown */ + Unknown = "Unknown", + /** Succeeded */ + Succeeded = "Succeeded", + /** Creating */ + Creating = "Creating", + /** Updating */ + Updating = "Updating", + /** UpdatingByProxy */ + UpdatingByProxy = "UpdatingByProxy", + /** Deleting */ + Deleting = "Deleting", + /** DeletingByProxy */ + DeletingByProxy = "DeletingByProxy", + /** Deleted */ + Deleted = "Deleted", +} + +/** + * Defines values for PrivateEndpointConnectionProvisioningState. \ + * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unknown** \ + * **Succeeded** \ + * **Creating** \ + * **Updating** \ + * **UpdatingByProxy** \ + * **Deleting** \ + * **DeletingByProxy** \ + * **Deleted** + */ +export type PrivateEndpointConnectionProvisioningState = string; + +/** Known values of {@link PrivateLinkConnectionStatus} that the service accepts. */ +export enum KnownPrivateLinkConnectionStatus { + /** Disconnected */ + Disconnected = "Disconnected", + /** Pending */ + Pending = "Pending", + /** Approved */ + Approved = "Approved", + /** Rejected */ + Rejected = "Rejected", +} + +/** + * Defines values for PrivateLinkConnectionStatus. \ + * {@link KnownPrivateLinkConnectionStatus} can be used interchangeably with PrivateLinkConnectionStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disconnected** \ + * **Pending** \ + * **Approved** \ + * **Rejected** + */ +export type PrivateLinkConnectionStatus = string; + +/** Known values of {@link PublicNetworkAccess} that the service accepts. */ +export enum KnownPublicNetworkAccess { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled", +} + +/** + * Defines values for PublicNetworkAccess. \ + * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type PublicNetworkAccess = string; /** Optional parameters. */ -export interface OperationsListNextOptionalParams +export interface NotificationHubsCheckNotificationHubAvailabilityOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationListResult; +/** Contains response data for the checkNotificationHubAvailability operation. */ +export type NotificationHubsCheckNotificationHubAvailabilityResponse = + CheckAvailabilityResult; /** Optional parameters. */ -export interface NamespacesCheckAvailabilityOptionalParams +export interface NotificationHubsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkAvailability operation. */ -export type NamespacesCheckAvailabilityResponse = CheckAvailabilityResult; +/** Contains response data for the get operation. */ +export type NotificationHubsGetResponse = NotificationHubResource; /** Optional parameters. */ -export interface NamespacesCreateOrUpdateOptionalParams +export interface NotificationHubsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type NamespacesCreateOrUpdateResponse = NamespaceResource; +export type NotificationHubsCreateOrUpdateResponse = NotificationHubResource; /** Optional parameters. */ -export interface NamespacesPatchOptionalParams +export interface NotificationHubsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the patch operation. */ -export type NamespacesPatchResponse = NamespaceResource; +/** Contains response data for the update operation. */ +export type NotificationHubsUpdateResponse = NotificationHubResource; /** Optional parameters. */ -export interface NamespacesDeleteOptionalParams +export interface NotificationHubsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface NotificationHubsListOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Continuation token. */ + skipToken?: string; + /** Page size. */ + top?: number; } +/** Contains response data for the list operation. */ +export type NotificationHubsListResponse = NotificationHubListResult; + /** Optional parameters. */ -export interface NamespacesGetOptionalParams +export interface NotificationHubsDebugSendOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type NamespacesGetResponse = NamespaceResource; +/** Contains response data for the debugSend operation. */ +export type NotificationHubsDebugSendResponse = DebugSendResponse; /** Optional parameters. */ -export interface NamespacesCreateOrUpdateAuthorizationRuleOptionalParams +export interface NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdateAuthorizationRule operation. */ -export type NamespacesCreateOrUpdateAuthorizationRuleResponse = SharedAccessAuthorizationRuleResource; +export type NotificationHubsCreateOrUpdateAuthorizationRuleResponse = + SharedAccessAuthorizationRuleResource; /** Optional parameters. */ -export interface NamespacesDeleteAuthorizationRuleOptionalParams +export interface NotificationHubsDeleteAuthorizationRuleOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface NamespacesGetAuthorizationRuleOptionalParams +export interface NotificationHubsGetAuthorizationRuleOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getAuthorizationRule operation. */ -export type NamespacesGetAuthorizationRuleResponse = SharedAccessAuthorizationRuleResource; - -/** Optional parameters. */ -export interface NamespacesListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type NamespacesListResponse = NamespaceListResult; - -/** Optional parameters. */ -export interface NamespacesListAllOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listAll operation. */ -export type NamespacesListAllResponse = NamespaceListResult; +export type NotificationHubsGetAuthorizationRuleResponse = + SharedAccessAuthorizationRuleResource; /** Optional parameters. */ -export interface NamespacesListAuthorizationRulesOptionalParams +export interface NotificationHubsListAuthorizationRulesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAuthorizationRules operation. */ -export type NamespacesListAuthorizationRulesResponse = SharedAccessAuthorizationRuleListResult; +export type NotificationHubsListAuthorizationRulesResponse = + SharedAccessAuthorizationRuleListResult; /** Optional parameters. */ -export interface NamespacesListKeysOptionalParams +export interface NotificationHubsListKeysOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listKeys operation. */ -export type NamespacesListKeysResponse = ResourceListKeys; +export type NotificationHubsListKeysResponse = ResourceListKeys; /** Optional parameters. */ -export interface NamespacesRegenerateKeysOptionalParams +export interface NotificationHubsRegenerateKeysOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the regenerateKeys operation. */ -export type NamespacesRegenerateKeysResponse = ResourceListKeys; +export type NotificationHubsRegenerateKeysResponse = ResourceListKeys; /** Optional parameters. */ -export interface NamespacesListNextOptionalParams +export interface NotificationHubsGetPnsCredentialsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type NamespacesListNextResponse = NamespaceListResult; +/** Contains response data for the getPnsCredentials operation. */ +export type NotificationHubsGetPnsCredentialsResponse = PnsCredentialsResource; /** Optional parameters. */ -export interface NamespacesListAllNextOptionalParams +export interface NotificationHubsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAllNext operation. */ -export type NamespacesListAllNextResponse = NamespaceListResult; +/** Contains response data for the listNext operation. */ +export type NotificationHubsListNextResponse = NotificationHubListResult; /** Optional parameters. */ -export interface NamespacesListAuthorizationRulesNextOptionalParams +export interface NotificationHubsListAuthorizationRulesNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAuthorizationRulesNext operation. */ -export type NamespacesListAuthorizationRulesNextResponse = SharedAccessAuthorizationRuleListResult; +export type NotificationHubsListAuthorizationRulesNextResponse = + SharedAccessAuthorizationRuleListResult; /** Optional parameters. */ -export interface NotificationHubsCheckNotificationHubAvailabilityOptionalParams +export interface NamespacesCheckAvailabilityOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkNotificationHubAvailability operation. */ -export type NotificationHubsCheckNotificationHubAvailabilityResponse = CheckAvailabilityResult; +/** Contains response data for the checkAvailability operation. */ +export type NamespacesCheckAvailabilityResponse = CheckAvailabilityResult; /** Optional parameters. */ -export interface NotificationHubsCreateOrUpdateOptionalParams +export interface NamespacesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type NotificationHubsCreateOrUpdateResponse = NotificationHubResource; +/** Contains response data for the get operation. */ +export type NamespacesGetResponse = NamespaceResource; /** Optional parameters. */ -export interface NotificationHubsPatchOptionalParams +export interface NamespacesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Parameters supplied to patch a NotificationHub Resource. */ - parameters?: NotificationHubPatchParameters; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the patch operation. */ -export type NotificationHubsPatchResponse = NotificationHubResource; +/** Contains response data for the createOrUpdate operation. */ +export type NamespacesCreateOrUpdateResponse = NamespaceResource; /** Optional parameters. */ -export interface NotificationHubsDeleteOptionalParams +export interface NamespacesUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the update operation. */ +export type NamespacesUpdateResponse = NamespaceResource; + /** Optional parameters. */ -export interface NotificationHubsGetOptionalParams +export interface NamespacesDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type NotificationHubsGetResponse = NotificationHubResource; +/** Optional parameters. */ +export interface NamespacesListAllOptionalParams + extends coreClient.OperationOptions { + /** Skip token for subsequent requests. */ + skipToken?: string; + /** Maximum number of results to return. */ + top?: number; +} + +/** Contains response data for the listAll operation. */ +export type NamespacesListAllResponse = NamespaceListResult; /** Optional parameters. */ -export interface NotificationHubsDebugSendOptionalParams +export interface NamespacesListOptionalParams extends coreClient.OperationOptions { - /** Debug send parameters */ - parameters?: Record; + /** Skip token for subsequent requests. */ + skipToken?: string; + /** Maximum number of results to return. */ + top?: number; } -/** Contains response data for the debugSend operation. */ -export type NotificationHubsDebugSendResponse = DebugSendResponse; +/** Contains response data for the list operation. */ +export type NamespacesListResponse = NamespaceListResult; /** Optional parameters. */ -export interface NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams +export interface NamespacesCreateOrUpdateAuthorizationRuleOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdateAuthorizationRule operation. */ -export type NotificationHubsCreateOrUpdateAuthorizationRuleResponse = SharedAccessAuthorizationRuleResource; +export type NamespacesCreateOrUpdateAuthorizationRuleResponse = + SharedAccessAuthorizationRuleResource; /** Optional parameters. */ -export interface NotificationHubsDeleteAuthorizationRuleOptionalParams +export interface NamespacesDeleteAuthorizationRuleOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface NotificationHubsGetAuthorizationRuleOptionalParams +export interface NamespacesGetAuthorizationRuleOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getAuthorizationRule operation. */ -export type NotificationHubsGetAuthorizationRuleResponse = SharedAccessAuthorizationRuleResource; - -/** Optional parameters. */ -export interface NotificationHubsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type NotificationHubsListResponse = NotificationHubListResult; +export type NamespacesGetAuthorizationRuleResponse = + SharedAccessAuthorizationRuleResource; /** Optional parameters. */ -export interface NotificationHubsListAuthorizationRulesOptionalParams +export interface NamespacesListAuthorizationRulesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAuthorizationRules operation. */ -export type NotificationHubsListAuthorizationRulesResponse = SharedAccessAuthorizationRuleListResult; +export type NamespacesListAuthorizationRulesResponse = + SharedAccessAuthorizationRuleListResult; /** Optional parameters. */ -export interface NotificationHubsListKeysOptionalParams +export interface NamespacesListKeysOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listKeys operation. */ -export type NotificationHubsListKeysResponse = ResourceListKeys; +export type NamespacesListKeysResponse = ResourceListKeys; /** Optional parameters. */ -export interface NotificationHubsRegenerateKeysOptionalParams +export interface NamespacesRegenerateKeysOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the regenerateKeys operation. */ -export type NotificationHubsRegenerateKeysResponse = ResourceListKeys; +export type NamespacesRegenerateKeysResponse = ResourceListKeys; /** Optional parameters. */ -export interface NotificationHubsGetPnsCredentialsOptionalParams +export interface NamespacesGetPnsCredentialsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getPnsCredentials operation. */ -export type NotificationHubsGetPnsCredentialsResponse = PnsCredentialsResource; +export type NamespacesGetPnsCredentialsResponse = PnsCredentialsResource; /** Optional parameters. */ -export interface NotificationHubsListNextOptionalParams +export interface NamespacesListAllNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAllNext operation. */ +export type NamespacesListAllNextResponse = NamespaceListResult; + +/** Optional parameters. */ +export interface NamespacesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type NotificationHubsListNextResponse = NotificationHubListResult; +export type NamespacesListNextResponse = NamespaceListResult; /** Optional parameters. */ -export interface NotificationHubsListAuthorizationRulesNextOptionalParams +export interface NamespacesListAuthorizationRulesNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAuthorizationRulesNext operation. */ -export type NotificationHubsListAuthorizationRulesNextResponse = SharedAccessAuthorizationRuleListResult; +export type NamespacesListAuthorizationRulesNextResponse = + SharedAccessAuthorizationRuleListResult; + +/** Optional parameters. */ +export interface OperationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; + +/** Optional parameters. */ +export interface OperationsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = OperationListResult; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type PrivateEndpointConnectionsUpdateResponse = + PrivateEndpointConnectionResource; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the delete operation. */ +export type PrivateEndpointConnectionsDeleteResponse = + PrivateEndpointConnectionsDeleteHeaders; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type PrivateEndpointConnectionsGetResponse = + PrivateEndpointConnectionResource; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type PrivateEndpointConnectionsListResponse = + PrivateEndpointConnectionResourceListResult; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsGetGroupIdOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getGroupId operation. */ +export type PrivateEndpointConnectionsGetGroupIdResponse = PrivateLinkResource; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsListGroupIdsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listGroupIds operation. */ +export type PrivateEndpointConnectionsListGroupIdsResponse = + PrivateLinkResourceListResult; /** Optional parameters. */ export interface NotificationHubsManagementClientOptionalParams diff --git a/sdk/notificationhubs/arm-notificationhubs/src/models/mappers.ts b/sdk/notificationhubs/arm-notificationhubs/src/models/mappers.ts index e7d7182bc3f1..3b293ac6d11c 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/models/mappers.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/models/mappers.ts @@ -8,109 +8,6 @@ import * as coreClient from "@azure/core-client"; -export const OperationListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const Operation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Operation", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplay" - } - } - } - } -}; - -export const OperationDisplay: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationDisplay", - modelProperties: { - provider: { - serializedName: "provider", - readOnly: true, - type: { - name: "String" - } - }, - resource: { - serializedName: "resource", - readOnly: true, - type: { - name: "String" - } - }, - operation: { - serializedName: "operation", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - } - } - } -}; - export const CheckAvailabilityParameters: coreClient.CompositeMapper = { type: { name: "Composite", @@ -120,51 +17,54 @@ export const CheckAvailabilityParameters: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { + constraints: { + MinLength: 1, + }, serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, + }, + isAvailiable: { + serializedName: "isAvailiable", + type: { + name: "Boolean", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, - isAvailiable: { - serializedName: "isAvailiable", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; export const Sku: coreClient.CompositeMapper = { @@ -176,35 +76,35 @@ export const Sku: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", type: { - name: "String" - } + name: "String", + }, }, size: { serializedName: "size", type: { - name: "String" - } + name: "String", + }, }, family: { serializedName: "family", type: { - name: "String" - } + name: "String", + }, }, capacity: { serializedName: "capacity", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -216,270 +116,250 @@ export const Resource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, - sku: { - serializedName: "sku", + systemData: { + serializedName: "systemData", type: { name: "Composite", - className: "Sku" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; -export const NamespacePatchParameters: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NamespacePatchParameters", + className: "SystemData", modelProperties: { - tags: { - serializedName: "tags", + createdBy: { + serializedName: "createdBy", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, - sku: { - serializedName: "sku", + createdByType: { + serializedName: "createdByType", type: { - name: "Composite", - className: "Sku" - } - } - } - } + name: "String", + }, + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime", + }, + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String", + }, + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String", + }, + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime", + }, + }, + }, + }, }; -export const SharedAccessAuthorizationRuleCreateOrUpdateParameters: coreClient.CompositeMapper = { +export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharedAccessAuthorizationRuleCreateOrUpdateParameters", + className: "ErrorResponse", modelProperties: { - properties: { - serializedName: "properties", + error: { + serializedName: "error", type: { name: "Composite", - className: "SharedAccessAuthorizationRuleProperties" - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, }; -export const SharedAccessAuthorizationRuleProperties: coreClient.CompositeMapper = { +export const ErrorDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharedAccessAuthorizationRuleProperties", + className: "ErrorDetail", modelProperties: { - rights: { - serializedName: "rights", - type: { - name: "Sequence", - element: { - type: { - name: "Enum", - allowedValues: ["Manage", "Send", "Listen"] - } - } - } - }, - primaryKey: { - serializedName: "primaryKey", - readOnly: true, - type: { - name: "String" - } - }, - secondaryKey: { - serializedName: "secondaryKey", - readOnly: true, - type: { - name: "String" - } - }, - keyName: { - serializedName: "keyName", - readOnly: true, - type: { - name: "String" - } - }, - claimType: { - serializedName: "claimType", - readOnly: true, - type: { - name: "String" - } - }, - claimValue: { - serializedName: "claimValue", + code: { + serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - modifiedTime: { - serializedName: "modifiedTime", + message: { + serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - createdTime: { - serializedName: "createdTime", + target: { + serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - revision: { - serializedName: "revision", + details: { + serializedName: "details", readOnly: true, - type: { - name: "Number" - } - } - } - } -}; - -export const NamespaceListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NamespaceListResult", - modelProperties: { - value: { - serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "NamespaceResource" - } - } - } + className: "ErrorDetail", + }, + }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const SharedAccessAuthorizationRuleListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SharedAccessAuthorizationRuleListResult", - modelProperties: { - value: { - serializedName: "value", + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SharedAccessAuthorizationRuleResource" - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ResourceListKeys: coreClient.CompositeMapper = { +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceListKeys", + className: "ErrorAdditionalInfo", modelProperties: { - primaryConnectionString: { - serializedName: "primaryConnectionString", - type: { - name: "String" - } - }, - secondaryConnectionString: { - serializedName: "secondaryConnectionString", - type: { - name: "String" - } - }, - primaryKey: { - serializedName: "primaryKey", + type: { + serializedName: "type", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - secondaryKey: { - serializedName: "secondaryKey", + info: { + serializedName: "info", + readOnly: true, type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "any" } }, + }, }, - keyName: { - serializedName: "keyName", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const PolicykeyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PolicykeyResource", - modelProperties: { - policyKey: { - serializedName: "policyKey", - type: { - name: "String" - } - } - } - } -}; +export const SharedAccessAuthorizationRuleProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SharedAccessAuthorizationRuleProperties", + modelProperties: { + rights: { + serializedName: "rights", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + primaryKey: { + serializedName: "primaryKey", + type: { + name: "String", + }, + }, + secondaryKey: { + serializedName: "secondaryKey", + type: { + name: "String", + }, + }, + keyName: { + serializedName: "keyName", + readOnly: true, + type: { + name: "String", + }, + }, + modifiedTime: { + serializedName: "modifiedTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + createdTime: { + serializedName: "createdTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + claimType: { + serializedName: "claimType", + readOnly: true, + type: { + name: "String", + }, + }, + claimValue: { + serializedName: "claimValue", + readOnly: true, + type: { + name: "String", + }, + }, + revision: { + serializedName: "revision", + readOnly: true, + type: { + name: "Number", + }, + }, + }, + }, + }; export const ApnsCredential: coreClient.CompositeMapper = { type: { @@ -489,53 +369,57 @@ export const ApnsCredential: coreClient.CompositeMapper = { apnsCertificate: { serializedName: "properties.apnsCertificate", type: { - name: "String" - } + name: "String", + }, }, certificateKey: { serializedName: "properties.certificateKey", type: { - name: "String" - } + name: "String", + }, }, endpoint: { + constraints: { + MinLength: 1, + }, serializedName: "properties.endpoint", + required: true, type: { - name: "String" - } + name: "String", + }, }, thumbprint: { serializedName: "properties.thumbprint", type: { - name: "String" - } + name: "String", + }, }, keyId: { serializedName: "properties.keyId", type: { - name: "String" - } + name: "String", + }, }, appName: { serializedName: "properties.appName", type: { - name: "String" - } + name: "String", + }, }, appId: { serializedName: "properties.appId", type: { - name: "String" - } + name: "String", + }, }, token: { serializedName: "properties.token", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WnsCredential: coreClient.CompositeMapper = { @@ -546,23 +430,35 @@ export const WnsCredential: coreClient.CompositeMapper = { packageSid: { serializedName: "properties.packageSid", type: { - name: "String" - } + name: "String", + }, }, secretKey: { serializedName: "properties.secretKey", type: { - name: "String" - } + name: "String", + }, }, windowsLiveEndpoint: { serializedName: "properties.windowsLiveEndpoint", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + certificateKey: { + serializedName: "properties.certificateKey", + type: { + name: "String", + }, + }, + wnsCertificate: { + serializedName: "properties.wnsCertificate", + type: { + name: "String", + }, + }, + }, + }, }; export const GcmCredential: coreClient.CompositeMapper = { @@ -573,17 +469,21 @@ export const GcmCredential: coreClient.CompositeMapper = { gcmEndpoint: { serializedName: "properties.gcmEndpoint", type: { - name: "String" - } + name: "String", + }, }, googleApiKey: { + constraints: { + MinLength: 1, + }, serializedName: "properties.googleApiKey", + required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MpnsCredential: coreClient.CompositeMapper = { @@ -592,25 +492,37 @@ export const MpnsCredential: coreClient.CompositeMapper = { className: "MpnsCredential", modelProperties: { mpnsCertificate: { + constraints: { + MinLength: 1, + }, serializedName: "properties.mpnsCertificate", + required: true, type: { - name: "String" - } + name: "String", + }, }, certificateKey: { + constraints: { + MinLength: 1, + }, serializedName: "properties.certificateKey", + required: true, type: { - name: "String" - } + name: "String", + }, }, thumbprint: { + constraints: { + MinLength: 1, + }, serializedName: "properties.thumbprint", + required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AdmCredential: coreClient.CompositeMapper = { @@ -619,25 +531,37 @@ export const AdmCredential: coreClient.CompositeMapper = { className: "AdmCredential", modelProperties: { clientId: { + constraints: { + MinLength: 1, + }, serializedName: "properties.clientId", + required: true, type: { - name: "String" - } + name: "String", + }, }, clientSecret: { + constraints: { + MinLength: 1, + }, serializedName: "properties.clientSecret", + required: true, type: { - name: "String" - } + name: "String", + }, }, authTokenUrl: { + constraints: { + MinLength: 1, + }, serializedName: "properties.authTokenUrl", + required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BaiduCredential: coreClient.CompositeMapper = { @@ -646,429 +570,1718 @@ export const BaiduCredential: coreClient.CompositeMapper = { className: "BaiduCredential", modelProperties: { baiduApiKey: { + constraints: { + MinLength: 1, + }, serializedName: "properties.baiduApiKey", + required: true, type: { - name: "String" - } + name: "String", + }, }, baiduEndPoint: { + constraints: { + MinLength: 1, + }, serializedName: "properties.baiduEndPoint", + required: true, type: { - name: "String" - } + name: "String", + }, }, baiduSecretKey: { + constraints: { + MinLength: 1, + }, serializedName: "properties.baiduSecretKey", + required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NotificationHubListResult: coreClient.CompositeMapper = { +export const BrowserCredential: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotificationHubListResult", + className: "BrowserCredential", modelProperties: { - value: { - serializedName: "value", + subject: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.subject", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NotificationHubResource" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", + vapidPrivateKey: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.vapidPrivateKey", + required: true, + type: { + name: "String", + }, + }, + vapidPublicKey: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.vapidPublicKey", + required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SubResource: coreClient.CompositeMapper = { +export const XiaomiCredential: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SubResource", + className: "XiaomiCredential", modelProperties: { - id: { - serializedName: "id", + appSecret: { + serializedName: "properties.appSecret", + type: { + name: "String", + }, + }, + endpoint: { + serializedName: "properties.endpoint", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CheckAvailabilityResult: coreClient.CompositeMapper = { +export const FcmV1Credential: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CheckAvailabilityResult", + className: "FcmV1Credential", modelProperties: { - ...Resource.type.modelProperties, - isAvailiable: { - serializedName: "isAvailiable", + clientEmail: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.clientEmail", + required: true, type: { - name: "Boolean" - } - } - } - } + name: "String", + }, + }, + privateKey: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.privateKey", + required: true, + type: { + name: "String", + }, + }, + projectId: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.projectId", + required: true, + type: { + name: "String", + }, + }, + }, + }, }; -export const NamespaceCreateOrUpdateParameters: coreClient.CompositeMapper = { +export const NotificationHubPatchParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NamespaceCreateOrUpdateParameters", + className: "NotificationHubPatchParameters", modelProperties: { - ...Resource.type.modelProperties, - namePropertiesName: { + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku", + }, + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + name: { serializedName: "properties.name", type: { - name: "String" - } + name: "String", + }, }, - provisioningState: { - serializedName: "properties.provisioningState", + registrationTtl: { + serializedName: "properties.registrationTtl", type: { - name: "String" - } + name: "String", + }, }, - region: { - serializedName: "properties.region", + authorizationRules: { + serializedName: "properties.authorizationRules", + readOnly: true, type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedAccessAuthorizationRuleProperties", + }, + }, + }, }, - metricId: { - serializedName: "properties.metricId", + apnsCredential: { + serializedName: "properties.apnsCredential", + type: { + name: "Composite", + className: "ApnsCredential", + }, + }, + wnsCredential: { + serializedName: "properties.wnsCredential", + type: { + name: "Composite", + className: "WnsCredential", + }, + }, + gcmCredential: { + serializedName: "properties.gcmCredential", + type: { + name: "Composite", + className: "GcmCredential", + }, + }, + mpnsCredential: { + serializedName: "properties.mpnsCredential", + type: { + name: "Composite", + className: "MpnsCredential", + }, + }, + admCredential: { + serializedName: "properties.admCredential", + type: { + name: "Composite", + className: "AdmCredential", + }, + }, + baiduCredential: { + serializedName: "properties.baiduCredential", + type: { + name: "Composite", + className: "BaiduCredential", + }, + }, + browserCredential: { + serializedName: "properties.browserCredential", + type: { + name: "Composite", + className: "BrowserCredential", + }, + }, + xiaomiCredential: { + serializedName: "properties.xiaomiCredential", + type: { + name: "Composite", + className: "XiaomiCredential", + }, + }, + fcmV1Credential: { + serializedName: "properties.fcmV1Credential", + type: { + name: "Composite", + className: "FcmV1Credential", + }, + }, + dailyMaxActiveDevices: { + serializedName: "properties.dailyMaxActiveDevices", readOnly: true, type: { - name: "String" - } + name: "Number", + }, }, - status: { - serializedName: "properties.status", + }, + }, +}; + +export const NotificationHubListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NotificationHubListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NotificationHubResource", + }, + }, + }, }, - createdAt: { - serializedName: "properties.createdAt", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "DateTime" - } + name: "String", + }, }, - updatedAt: { - serializedName: "properties.updatedAt", + }, + }, +}; + +export const RegistrationResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistrationResult", + modelProperties: { + applicationPlatform: { + serializedName: "applicationPlatform", + readOnly: true, type: { - name: "DateTime" - } + name: "String", + }, }, - serviceBusEndpoint: { - serializedName: "properties.serviceBusEndpoint", + pnsHandle: { + serializedName: "pnsHandle", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - subscriptionId: { - serializedName: "properties.subscriptionId", + registrationId: { + serializedName: "registrationId", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - scaleUnit: { - serializedName: "properties.scaleUnit", + outcome: { + serializedName: "outcome", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - enabled: { - serializedName: "properties.enabled", + }, + }, +}; + +export const SharedAccessAuthorizationRuleListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SharedAccessAuthorizationRuleListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedAccessAuthorizationRuleResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ResourceListKeys: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceListKeys", + modelProperties: { + primaryConnectionString: { + serializedName: "primaryConnectionString", + readOnly: true, type: { - name: "Boolean" - } + name: "String", + }, }, - critical: { - serializedName: "properties.critical", + secondaryConnectionString: { + serializedName: "secondaryConnectionString", + readOnly: true, type: { - name: "Boolean" - } + name: "String", + }, }, - dataCenter: { - serializedName: "properties.dataCenter", + primaryKey: { + serializedName: "primaryKey", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - namespaceType: { - serializedName: "properties.namespaceType", + secondaryKey: { + serializedName: "secondaryKey", + readOnly: true, + type: { + name: "String", + }, + }, + keyName: { + serializedName: "keyName", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Messaging", "NotificationHub"] - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NamespaceResource: coreClient.CompositeMapper = { +export const PolicyKeyResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NamespaceResource", + className: "PolicyKeyResource", modelProperties: { - ...Resource.type.modelProperties, - namePropertiesName: { - serializedName: "properties.name", + policyKey: { + serializedName: "policyKey", + required: true, type: { - name: "String" - } + name: "String", + }, }, - provisioningState: { - serializedName: "properties.provisioningState", + }, + }, +}; + +export const PnsCredentials: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PnsCredentials", + modelProperties: { + admCredential: { + serializedName: "admCredential", type: { - name: "String" - } + name: "Composite", + className: "AdmCredential", + }, }, - region: { - serializedName: "properties.region", + apnsCredential: { + serializedName: "apnsCredential", type: { - name: "String" - } + name: "Composite", + className: "ApnsCredential", + }, }, - metricId: { - serializedName: "properties.metricId", + baiduCredential: { + serializedName: "baiduCredential", + type: { + name: "Composite", + className: "BaiduCredential", + }, + }, + browserCredential: { + serializedName: "browserCredential", + type: { + name: "Composite", + className: "BrowserCredential", + }, + }, + gcmCredential: { + serializedName: "gcmCredential", + type: { + name: "Composite", + className: "GcmCredential", + }, + }, + mpnsCredential: { + serializedName: "mpnsCredential", + type: { + name: "Composite", + className: "MpnsCredential", + }, + }, + wnsCredential: { + serializedName: "wnsCredential", + type: { + name: "Composite", + className: "WnsCredential", + }, + }, + xiaomiCredential: { + serializedName: "xiaomiCredential", + type: { + name: "Composite", + className: "XiaomiCredential", + }, + }, + fcmV1Credential: { + serializedName: "fcmV1Credential", + type: { + name: "Composite", + className: "FcmV1Credential", + }, + }, + }, + }, +}; + +export const NamespaceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NamespaceProperties", + modelProperties: { + name: { + serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + provisioningState: { + serializedName: "provisioningState", + type: { + name: "String", + }, }, status: { - serializedName: "properties.status", + serializedName: "status", + type: { + name: "String", + }, + }, + enabled: { + serializedName: "enabled", + readOnly: true, + type: { + name: "Boolean", + }, + }, + critical: { + serializedName: "critical", + readOnly: true, + type: { + name: "Boolean", + }, + }, + subscriptionId: { + serializedName: "subscriptionId", + readOnly: true, + type: { + name: "String", + }, + }, + region: { + serializedName: "region", + readOnly: true, + type: { + name: "String", + }, + }, + metricId: { + serializedName: "metricId", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, createdAt: { - serializedName: "properties.createdAt", + serializedName: "createdAt", + readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, updatedAt: { - serializedName: "properties.updatedAt", + serializedName: "updatedAt", + readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, - serviceBusEndpoint: { - serializedName: "properties.serviceBusEndpoint", + namespaceType: { + serializedName: "namespaceType", type: { - name: "String" - } + name: "String", + }, }, - subscriptionId: { - serializedName: "properties.subscriptionId", + replicationRegion: { + serializedName: "replicationRegion", type: { - name: "String" - } + name: "String", + }, }, - scaleUnit: { - serializedName: "properties.scaleUnit", + zoneRedundancy: { + defaultValue: "Disabled", + serializedName: "zoneRedundancy", type: { - name: "String" - } + name: "String", + }, }, - enabled: { - serializedName: "properties.enabled", + networkAcls: { + serializedName: "networkAcls", type: { - name: "Boolean" - } + name: "Composite", + className: "NetworkAcls", + }, }, - critical: { - serializedName: "properties.critical", + pnsCredentials: { + serializedName: "pnsCredentials", + type: { + name: "Composite", + className: "PnsCredentials", + }, + }, + serviceBusEndpoint: { + serializedName: "serviceBusEndpoint", + readOnly: true, type: { - name: "Boolean" - } + name: "String", + }, + }, + privateEndpointConnections: { + serializedName: "privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnectionResource", + }, + }, + }, + }, + scaleUnit: { + serializedName: "scaleUnit", + type: { + name: "String", + }, }, dataCenter: { - serializedName: "properties.dataCenter", + serializedName: "dataCenter", + type: { + name: "String", + }, + }, + publicNetworkAccess: { + defaultValue: "Enabled", + serializedName: "publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, + }, + }, + }, +}; + +export const NetworkAcls: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkAcls", + modelProperties: { + ipRules: { + serializedName: "ipRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpRule", + }, + }, + }, + }, + publicNetworkRule: { + serializedName: "publicNetworkRule", + type: { + name: "Composite", + className: "PublicInternetAuthorizationRule", + }, + }, + }, + }, +}; + +export const IpRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpRule", + modelProperties: { + ipMask: { + constraints: { + MinLength: 1, + }, + serializedName: "ipMask", + required: true, + type: { + name: "String", + }, + }, + rights: { + serializedName: "rights", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const PublicInternetAuthorizationRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PublicInternetAuthorizationRule", + modelProperties: { + rights: { + serializedName: "rights", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionProperties", + modelProperties: { + provisioningState: { + serializedName: "provisioningState", + type: { + name: "String", + }, + }, + privateEndpoint: { + serializedName: "privateEndpoint", + type: { + name: "Composite", + className: "RemotePrivateEndpointConnection", + }, + }, + groupIds: { + serializedName: "groupIds", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + privateLinkServiceConnectionState: { + serializedName: "privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "RemotePrivateLinkServiceConnectionState", + }, + }, + }, + }, +}; + +export const RemotePrivateEndpointConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RemotePrivateEndpointConnection", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const RemotePrivateLinkServiceConnectionState: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RemotePrivateLinkServiceConnectionState", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + readOnly: true, + type: { + name: "String", + }, + }, + actionsRequired: { + serializedName: "actionsRequired", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const NamespacePatchParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NamespacePatchParameters", + modelProperties: { + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku", + }, + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "NamespaceProperties", + }, + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, +}; + +export const NamespaceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NamespaceListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NamespaceResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const OperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const Operation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay", + }, + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "OperationProperties", + }, + }, + isDataAction: { + serializedName: "isDataAction", + readOnly: true, + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const OperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + readOnly: true, + type: { + name: "String", + }, + }, + resource: { + serializedName: "resource", + readOnly: true, + type: { + name: "String", + }, + }, + operation: { + serializedName: "operation", + readOnly: true, + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const OperationProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationProperties", + modelProperties: { + serviceSpecification: { + serializedName: "serviceSpecification", + type: { + name: "Composite", + className: "ServiceSpecification", + }, + }, + }, + }, +}; + +export const ServiceSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceSpecification", + modelProperties: { + logSpecifications: { + serializedName: "logSpecifications", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogSpecification", + }, + }, + }, + }, + metricSpecifications: { + serializedName: "metricSpecifications", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricSpecification", + }, + }, + }, + }, + }, + }, +}; + +export const LogSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LogSpecification", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + displayName: { + serializedName: "displayName", + readOnly: true, + type: { + name: "String", + }, + }, + blobDuration: { + serializedName: "blobDuration", + readOnly: true, + type: { + name: "String", + }, + }, + categoryGroups: { + serializedName: "categoryGroups", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const MetricSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MetricSpecification", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + displayName: { + serializedName: "displayName", + readOnly: true, + type: { + name: "String", + }, + }, + displayDescription: { + serializedName: "displayDescription", + readOnly: true, + type: { + name: "String", + }, + }, + unit: { + serializedName: "unit", + readOnly: true, + type: { + name: "String", + }, + }, + aggregationType: { + serializedName: "aggregationType", + readOnly: true, + type: { + name: "String", + }, + }, + availabilities: { + serializedName: "availabilities", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Availability", + }, + }, + }, + }, + supportedTimeGrainTypes: { + serializedName: "supportedTimeGrainTypes", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + metricFilterPattern: { + serializedName: "metricFilterPattern", + readOnly: true, + type: { + name: "String", + }, + }, + fillGapWithZero: { + serializedName: "fillGapWithZero", + readOnly: true, + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const Availability: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Availability", + modelProperties: { + timeGrain: { + serializedName: "timeGrain", + readOnly: true, + type: { + name: "String", + }, + }, + blobDuration: { + serializedName: "blobDuration", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const PrivateEndpointConnectionResourceListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PrivateEndpointConnectionResourceListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnectionResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResourceProperties", + modelProperties: { + groupId: { + serializedName: "groupId", + readOnly: true, + type: { + name: "String", + }, + }, + requiredMembers: { + serializedName: "requiredMembers", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + requiredZoneNames: { + serializedName: "requiredZoneNames", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ConnectionDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConnectionDetails", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + privateIpAddress: { + serializedName: "privateIpAddress", + readOnly: true, + type: { + name: "String", + }, + }, + linkIdentifier: { + serializedName: "linkIdentifier", + readOnly: true, + type: { + name: "String", + }, + }, + groupId: { + serializedName: "groupId", + readOnly: true, + type: { + name: "String", + }, + }, + memberName: { + serializedName: "memberName", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GroupConnectivityInformation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GroupConnectivityInformation", + modelProperties: { + groupId: { + serializedName: "groupId", + readOnly: true, + type: { + name: "String", + }, + }, + memberName: { + serializedName: "memberName", + readOnly: true, + type: { + name: "String", + }, + }, + customerVisibleFqdns: { + serializedName: "customerVisibleFqdns", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + internalFqdn: { + serializedName: "internalFqdn", + readOnly: true, + type: { + name: "String", + }, + }, + redirectMapId: { + serializedName: "redirectMapId", + readOnly: true, + type: { + name: "String", + }, + }, + privateLinkServiceArmRegion: { + serializedName: "privateLinkServiceArmRegion", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const PrivateLinkServiceConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkServiceConnection", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + groupIds: { + serializedName: "groupIds", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + requestMessage: { + serializedName: "requestMessage", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties, + }, + }, +}; + +export const TrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - namespaceType: { - serializedName: "properties.namespaceType", + location: { + serializedName: "location", + required: true, type: { - name: "Enum", - allowedValues: ["Messaging", "NotificationHub"] - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SharedAccessAuthorizationRuleResource: coreClient.CompositeMapper = { +export const CheckAvailabilityResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharedAccessAuthorizationRuleResource", + className: "CheckAvailabilityResult", modelProperties: { - ...Resource.type.modelProperties, - rights: { - serializedName: "properties.rights", + ...ProxyResource.type.modelProperties, + isAvailiable: { + serializedName: "isAvailiable", type: { - name: "Sequence", - element: { - type: { - name: "Enum", - allowedValues: ["Manage", "Send", "Listen"] - } - } - } + name: "Boolean", + }, }, - primaryKey: { - serializedName: "properties.primaryKey", - readOnly: true, + location: { + serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, - secondaryKey: { - serializedName: "properties.secondaryKey", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - keyName: { - serializedName: "properties.keyName", - readOnly: true, + sku: { + serializedName: "sku", type: { - name: "String" - } + name: "Composite", + className: "Sku", + }, }, - claimType: { - serializedName: "properties.claimType", - readOnly: true, + }, + }, +}; + +export const DebugSendResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DebugSendResponse", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, - claimValue: { - serializedName: "properties.claimValue", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - modifiedTime: { - serializedName: "properties.modifiedTime", + success: { + serializedName: "properties.success", readOnly: true, type: { - name: "String" - } + name: "Number", + }, }, - createdTime: { - serializedName: "properties.createdTime", + failure: { + serializedName: "properties.failure", readOnly: true, type: { - name: "String" - } + name: "Number", + }, }, - revision: { - serializedName: "properties.revision", + results: { + serializedName: "properties.results", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RegistrationResult", + }, + }, + }, + }, + }, + }, }; -export const NotificationHubCreateOrUpdateParameters: coreClient.CompositeMapper = { +export const SharedAccessAuthorizationRuleResource: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SharedAccessAuthorizationRuleResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + rights: { + serializedName: "properties.rights", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + primaryKey: { + serializedName: "properties.primaryKey", + type: { + name: "String", + }, + }, + secondaryKey: { + serializedName: "properties.secondaryKey", + type: { + name: "String", + }, + }, + keyName: { + serializedName: "properties.keyName", + readOnly: true, + type: { + name: "String", + }, + }, + modifiedTime: { + serializedName: "properties.modifiedTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + createdTime: { + serializedName: "properties.createdTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + claimType: { + serializedName: "properties.claimType", + readOnly: true, + type: { + name: "String", + }, + }, + claimValue: { + serializedName: "properties.claimValue", + readOnly: true, + type: { + name: "String", + }, + }, + revision: { + serializedName: "properties.revision", + readOnly: true, + type: { + name: "Number", + }, + }, + }, + }, + }; + +export const PnsCredentialsResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotificationHubCreateOrUpdateParameters", + className: "PnsCredentialsResource", modelProperties: { - ...Resource.type.modelProperties, - namePropertiesName: { - serializedName: "properties.name", + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, - registrationTtl: { - serializedName: "properties.registrationTtl", + tags: { + serializedName: "tags", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - authorizationRules: { - serializedName: "properties.authorizationRules", + admCredential: { + serializedName: "properties.admCredential", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SharedAccessAuthorizationRuleProperties" - } - } - } + name: "Composite", + className: "AdmCredential", + }, }, apnsCredential: { serializedName: "properties.apnsCredential", type: { name: "Composite", - className: "ApnsCredential" - } + className: "ApnsCredential", + }, }, - wnsCredential: { - serializedName: "properties.wnsCredential", + baiduCredential: { + serializedName: "properties.baiduCredential", type: { name: "Composite", - className: "WnsCredential" - } + className: "BaiduCredential", + }, + }, + browserCredential: { + serializedName: "properties.browserCredential", + type: { + name: "Composite", + className: "BrowserCredential", + }, }, gcmCredential: { serializedName: "properties.gcmCredential", type: { name: "Composite", - className: "GcmCredential" - } + className: "GcmCredential", + }, }, mpnsCredential: { serializedName: "properties.mpnsCredential", type: { name: "Composite", - className: "MpnsCredential" - } + className: "MpnsCredential", + }, }, - admCredential: { - serializedName: "properties.admCredential", + wnsCredential: { + serializedName: "properties.wnsCredential", type: { name: "Composite", - className: "AdmCredential" - } + className: "WnsCredential", + }, }, - baiduCredential: { - serializedName: "properties.baiduCredential", + xiaomiCredential: { + serializedName: "properties.xiaomiCredential", + type: { + name: "Composite", + className: "XiaomiCredential", + }, + }, + fcmV1Credential: { + serializedName: "properties.fcmV1Credential", + type: { + name: "Composite", + className: "FcmV1Credential", + }, + }, + }, + }, +}; + +export const PrivateEndpointConnectionResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "PrivateEndpointConnectionProperties", + }, + }, + }, + }, +}; + +export const PrivateLinkResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", type: { name: "Composite", - className: "BaiduCredential" - } - } - } - } + className: "PrivateLinkResourceProperties", + }, + }, + }, + }, }; export const NotificationHubResource: coreClient.CompositeMapper = { @@ -1076,230 +2289,282 @@ export const NotificationHubResource: coreClient.CompositeMapper = { name: "Composite", className: "NotificationHubResource", modelProperties: { - ...Resource.type.modelProperties, + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku", + }, + }, namePropertiesName: { serializedName: "properties.name", type: { - name: "String" - } + name: "String", + }, }, registrationTtl: { serializedName: "properties.registrationTtl", type: { - name: "String" - } + name: "String", + }, }, authorizationRules: { serializedName: "properties.authorizationRules", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SharedAccessAuthorizationRuleProperties" - } - } - } + className: "SharedAccessAuthorizationRuleProperties", + }, + }, + }, }, apnsCredential: { serializedName: "properties.apnsCredential", type: { name: "Composite", - className: "ApnsCredential" - } + className: "ApnsCredential", + }, }, wnsCredential: { serializedName: "properties.wnsCredential", type: { name: "Composite", - className: "WnsCredential" - } + className: "WnsCredential", + }, }, gcmCredential: { serializedName: "properties.gcmCredential", type: { name: "Composite", - className: "GcmCredential" - } + className: "GcmCredential", + }, }, mpnsCredential: { serializedName: "properties.mpnsCredential", type: { name: "Composite", - className: "MpnsCredential" - } + className: "MpnsCredential", + }, }, admCredential: { serializedName: "properties.admCredential", type: { name: "Composite", - className: "AdmCredential" - } + className: "AdmCredential", + }, }, baiduCredential: { serializedName: "properties.baiduCredential", type: { name: "Composite", - className: "BaiduCredential" - } - } - } - } + className: "BaiduCredential", + }, + }, + browserCredential: { + serializedName: "properties.browserCredential", + type: { + name: "Composite", + className: "BrowserCredential", + }, + }, + xiaomiCredential: { + serializedName: "properties.xiaomiCredential", + type: { + name: "Composite", + className: "XiaomiCredential", + }, + }, + fcmV1Credential: { + serializedName: "properties.fcmV1Credential", + type: { + name: "Composite", + className: "FcmV1Credential", + }, + }, + dailyMaxActiveDevices: { + serializedName: "properties.dailyMaxActiveDevices", + readOnly: true, + type: { + name: "Number", + }, + }, + }, + }, }; -export const NotificationHubPatchParameters: coreClient.CompositeMapper = { +export const NamespaceResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotificationHubPatchParameters", + className: "NamespaceResource", modelProperties: { - ...Resource.type.modelProperties, + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku", + }, + }, namePropertiesName: { serializedName: "properties.name", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - registrationTtl: { - serializedName: "properties.registrationTtl", + provisioningState: { + serializedName: "properties.provisioningState", type: { - name: "String" - } + name: "String", + }, }, - authorizationRules: { - serializedName: "properties.authorizationRules", + status: { + serializedName: "properties.status", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SharedAccessAuthorizationRuleProperties" - } - } - } + name: "String", + }, }, - apnsCredential: { - serializedName: "properties.apnsCredential", + enabled: { + serializedName: "properties.enabled", + readOnly: true, type: { - name: "Composite", - className: "ApnsCredential" - } + name: "Boolean", + }, }, - wnsCredential: { - serializedName: "properties.wnsCredential", + critical: { + serializedName: "properties.critical", + readOnly: true, type: { - name: "Composite", - className: "WnsCredential" - } + name: "Boolean", + }, }, - gcmCredential: { - serializedName: "properties.gcmCredential", + subscriptionId: { + serializedName: "properties.subscriptionId", + readOnly: true, type: { - name: "Composite", - className: "GcmCredential" - } + name: "String", + }, }, - mpnsCredential: { - serializedName: "properties.mpnsCredential", + region: { + serializedName: "properties.region", + readOnly: true, type: { - name: "Composite", - className: "MpnsCredential" - } + name: "String", + }, }, - admCredential: { - serializedName: "properties.admCredential", + metricId: { + serializedName: "properties.metricId", + readOnly: true, type: { - name: "Composite", - className: "AdmCredential" - } + name: "String", + }, }, - baiduCredential: { - serializedName: "properties.baiduCredential", + createdAt: { + serializedName: "properties.createdAt", + readOnly: true, type: { - name: "Composite", - className: "BaiduCredential" - } - } - } - } -}; - -export const DebugSendResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DebugSendResponse", - modelProperties: { - ...Resource.type.modelProperties, - success: { - serializedName: "properties.success", + name: "DateTime", + }, + }, + updatedAt: { + serializedName: "properties.updatedAt", + readOnly: true, type: { - name: "Number" - } + name: "DateTime", + }, }, - failure: { - serializedName: "properties.failure", + namespaceType: { + serializedName: "properties.namespaceType", type: { - name: "Number" - } + name: "String", + }, }, - results: { - serializedName: "properties.results", + replicationRegion: { + serializedName: "properties.replicationRegion", type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } -}; - -export const PnsCredentialsResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PnsCredentialsResource", - modelProperties: { - ...Resource.type.modelProperties, - apnsCredential: { - serializedName: "properties.apnsCredential", + name: "String", + }, + }, + zoneRedundancy: { + defaultValue: "Disabled", + serializedName: "properties.zoneRedundancy", type: { - name: "Composite", - className: "ApnsCredential" - } + name: "String", + }, }, - wnsCredential: { - serializedName: "properties.wnsCredential", + networkAcls: { + serializedName: "properties.networkAcls", type: { name: "Composite", - className: "WnsCredential" - } + className: "NetworkAcls", + }, }, - gcmCredential: { - serializedName: "properties.gcmCredential", + pnsCredentials: { + serializedName: "properties.pnsCredentials", type: { name: "Composite", - className: "GcmCredential" - } + className: "PnsCredentials", + }, }, - mpnsCredential: { - serializedName: "properties.mpnsCredential", + serviceBusEndpoint: { + serializedName: "properties.serviceBusEndpoint", + readOnly: true, type: { - name: "Composite", - className: "MpnsCredential" - } + name: "String", + }, }, - admCredential: { - serializedName: "properties.admCredential", + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, type: { - name: "Composite", - className: "AdmCredential" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnectionResource", + }, + }, + }, }, - baiduCredential: { - serializedName: "properties.baiduCredential", + scaleUnit: { + serializedName: "properties.scaleUnit", type: { - name: "Composite", - className: "BaiduCredential" - } - } - } - } + name: "String", + }, + }, + dataCenter: { + serializedName: "properties.dataCenter", + type: { + name: "String", + }, + }, + publicNetworkAccess: { + defaultValue: "Enabled", + serializedName: "properties.publicNetworkAccess", + type: { + name: "String", + }, + }, + }, + }, }; + +export const PrivateEndpointConnectionsDeleteHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PrivateEndpointConnectionsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; diff --git a/sdk/notificationhubs/arm-notificationhubs/src/models/parameters.ts b/sdk/notificationhubs/arm-notificationhubs/src/models/parameters.ts index 060b7bcfcd59..aaea0d37128d 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/models/parameters.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/models/parameters.ts @@ -9,18 +9,36 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { CheckAvailabilityParameters as CheckAvailabilityParametersMapper, - NamespaceCreateOrUpdateParameters as NamespaceCreateOrUpdateParametersMapper, + NotificationHubResource as NotificationHubResourceMapper, + NotificationHubPatchParameters as NotificationHubPatchParametersMapper, + SharedAccessAuthorizationRuleResource as SharedAccessAuthorizationRuleResourceMapper, + PolicyKeyResource as PolicyKeyResourceMapper, + NamespaceResource as NamespaceResourceMapper, NamespacePatchParameters as NamespacePatchParametersMapper, - SharedAccessAuthorizationRuleCreateOrUpdateParameters as SharedAccessAuthorizationRuleCreateOrUpdateParametersMapper, - PolicykeyResource as PolicykeyResourceMapper, - NotificationHubCreateOrUpdateParameters as NotificationHubCreateOrUpdateParametersMapper, - NotificationHubPatchParameters as NotificationHubPatchParametersMapper + PrivateEndpointConnectionResource as PrivateEndpointConnectionResourceMapper, } from "../models/mappers"; +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], + mapper: { + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", + type: { + name: "String", + }, + }, +}; + +export const parameters: OperationParameter = { + parameterPath: "parameters", + mapper: CheckAvailabilityParametersMapper, +}; + export const accept: OperationParameter = { parameterPath: "accept", mapper: { @@ -28,9 +46,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -39,145 +57,192 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; -export const apiVersion: OperationQueryParameter = { - parameterPath: "apiVersion", +export const subscriptionId: OperationURLParameter = { + parameterPath: "subscriptionId", mapper: { - defaultValue: "2017-04-01", - isConstant: true, - serializedName: "api-version", + serializedName: "subscriptionId", + required: true, type: { - name: "String" - } - } + name: "Uuid", + }, + }, }; -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", +export const resourceGroupName: OperationURLParameter = { + parameterPath: "resourceGroupName", mapper: { - serializedName: "nextLink", + constraints: { + MaxLength: 90, + MinLength: 1, + }, + serializedName: "resourceGroupName", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true }; -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], +export const namespaceName: OperationURLParameter = { + parameterPath: "namespaceName", mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Content-Type", + constraints: { + Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9-]*$"), + MaxLength: 50, + MinLength: 1, + }, + serializedName: "namespaceName", + required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters: OperationParameter = { - parameterPath: "parameters", - mapper: CheckAvailabilityParametersMapper +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2023-10-01-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String", + }, + }, }; -export const subscriptionId: OperationURLParameter = { - parameterPath: "subscriptionId", +export const notificationHubName: OperationURLParameter = { + parameterPath: "notificationHubName", mapper: { - serializedName: "subscriptionId", + constraints: { + Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9-./_]*$"), + MaxLength: 265, + MinLength: 1, + }, + serializedName: "notificationHubName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters1: OperationParameter = { parameterPath: "parameters", - mapper: NamespaceCreateOrUpdateParametersMapper + mapper: NotificationHubResourceMapper, }; -export const resourceGroupName: OperationURLParameter = { - parameterPath: "resourceGroupName", - mapper: { - serializedName: "resourceGroupName", - required: true, - type: { - name: "String" - } - } +export const parameters2: OperationParameter = { + parameterPath: "parameters", + mapper: NotificationHubPatchParametersMapper, }; -export const namespaceName: OperationURLParameter = { - parameterPath: "namespaceName", +export const skipToken: OperationQueryParameter = { + parameterPath: ["options", "skipToken"], mapper: { - serializedName: "namespaceName", - required: true, + serializedName: "$skipToken", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters2: OperationParameter = { - parameterPath: "parameters", - mapper: NamespacePatchParametersMapper +export const top: OperationQueryParameter = { + parameterPath: ["options", "top"], + mapper: { + defaultValue: 100, + serializedName: "$top", + type: { + name: "Number", + }, + }, }; export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: SharedAccessAuthorizationRuleCreateOrUpdateParametersMapper + mapper: SharedAccessAuthorizationRuleResourceMapper, }; export const authorizationRuleName: OperationURLParameter = { parameterPath: "authorizationRuleName", mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9!()*-._]+$"), + MaxLength: 256, + MinLength: 1, + }, serializedName: "authorizationRuleName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters4: OperationParameter = { parameterPath: "parameters", - mapper: PolicykeyResourceMapper + mapper: PolicyKeyResourceMapper, }; -export const parameters5: OperationParameter = { - parameterPath: "parameters", - mapper: NotificationHubCreateOrUpdateParametersMapper -}; - -export const notificationHubName: OperationURLParameter = { - parameterPath: "notificationHubName", +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", mapper: { - serializedName: "notificationHubName", + serializedName: "nextLink", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, + skipEncoding: true, +}; + +export const parameters5: OperationParameter = { + parameterPath: "parameters", + mapper: NamespaceResourceMapper, }; export const parameters6: OperationParameter = { - parameterPath: ["options", "parameters"], - mapper: NotificationHubPatchParametersMapper + parameterPath: "parameters", + mapper: NamespacePatchParametersMapper, }; export const parameters7: OperationParameter = { - parameterPath: ["options", "parameters"], + parameterPath: "parameters", + mapper: PrivateEndpointConnectionResourceMapper, +}; + +export const privateEndpointConnectionName: OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9-]*\\.[a-fA-F0-9\\-]+$"), + MaxLength: 87, + MinLength: 1, + }, + serializedName: "privateEndpointConnectionName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const subResourceName: OperationURLParameter = { + parameterPath: "subResourceName", mapper: { - serializedName: "parameters", + constraints: { + Pattern: new RegExp("^namespace$"), + }, + serializedName: "subResourceName", + required: true, type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } + name: "String", + }, + }, }; diff --git a/sdk/notificationhubs/arm-notificationhubs/src/notificationHubsManagementClient.ts b/sdk/notificationhubs/arm-notificationhubs/src/notificationHubsManagementClient.ts index dac66844e8da..cb76e156c806 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/notificationHubsManagementClient.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/notificationHubsManagementClient.ts @@ -11,37 +11,38 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { - OperationsImpl, + NotificationHubsImpl, NamespacesImpl, - NotificationHubsImpl + OperationsImpl, + PrivateEndpointConnectionsImpl, } from "./operations"; import { - Operations, + NotificationHubs, Namespaces, - NotificationHubs + Operations, + PrivateEndpointConnections, } from "./operationsInterfaces"; import { NotificationHubsManagementClientOptionalParams } from "./models"; export class NotificationHubsManagementClient extends coreClient.ServiceClient { $host: string; - apiVersion: string; subscriptionId: string; + apiVersion: string; /** * Initializes a new instance of the NotificationHubsManagementClient class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure - * subscription. The subscription ID forms part of the URI for every service call. + * @param subscriptionId The ID of the target subscription. The value must be an UUID. * @param options The parameter options */ constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: NotificationHubsManagementClientOptionalParams + options?: NotificationHubsManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -56,10 +57,10 @@ export class NotificationHubsManagementClient extends coreClient.ServiceClient { } const defaults: NotificationHubsManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-notificationhubs/2.1.1`; + const packageDetails = `azsdk-js-arm-notificationhubs/3.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -69,20 +70,21 @@ export class NotificationHubsManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -92,7 +94,7 @@ export class NotificationHubsManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -102,9 +104,9 @@ export class NotificationHubsManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -112,10 +114,11 @@ export class NotificationHubsManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2017-04-01"; - this.operations = new OperationsImpl(this); - this.namespaces = new NamespacesImpl(this); + this.apiVersion = options.apiVersion || "2023-10-01-preview"; this.notificationHubs = new NotificationHubsImpl(this); + this.namespaces = new NamespacesImpl(this); + this.operations = new OperationsImpl(this); + this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -128,7 +131,7 @@ export class NotificationHubsManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -142,12 +145,13 @@ export class NotificationHubsManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } - operations: Operations; - namespaces: Namespaces; notificationHubs: NotificationHubs; + namespaces: Namespaces; + operations: Operations; + privateEndpointConnections: PrivateEndpointConnections; } diff --git a/sdk/notificationhubs/arm-notificationhubs/src/operations/index.ts b/sdk/notificationhubs/arm-notificationhubs/src/operations/index.ts index c93887c25e39..cb17c9777d9d 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/operations/index.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/operations/index.ts @@ -6,6 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./operations"; -export * from "./namespaces"; export * from "./notificationHubs"; +export * from "./namespaces"; +export * from "./operations"; +export * from "./privateEndpointConnections"; diff --git a/sdk/notificationhubs/arm-notificationhubs/src/operations/namespaces.ts b/sdk/notificationhubs/arm-notificationhubs/src/operations/namespaces.ts index 12e206a7da6b..9f2c3911cd2f 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/operations/namespaces.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/operations/namespaces.ts @@ -13,16 +13,20 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { NotificationHubsManagementClient } from "../notificationHubsManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { NamespaceResource, - NamespacesListNextOptionalParams, - NamespacesListOptionalParams, - NamespacesListResponse, NamespacesListAllNextOptionalParams, NamespacesListAllOptionalParams, NamespacesListAllResponse, + NamespacesListNextOptionalParams, + NamespacesListOptionalParams, + NamespacesListResponse, SharedAccessAuthorizationRuleResource, NamespacesListAuthorizationRulesNextOptionalParams, NamespacesListAuthorizationRulesOptionalParams, @@ -30,16 +34,14 @@ import { CheckAvailabilityParameters, NamespacesCheckAvailabilityOptionalParams, NamespacesCheckAvailabilityResponse, - NamespaceCreateOrUpdateParameters, + NamespacesGetOptionalParams, + NamespacesGetResponse, NamespacesCreateOrUpdateOptionalParams, NamespacesCreateOrUpdateResponse, NamespacePatchParameters, - NamespacesPatchOptionalParams, - NamespacesPatchResponse, + NamespacesUpdateOptionalParams, + NamespacesUpdateResponse, NamespacesDeleteOptionalParams, - NamespacesGetOptionalParams, - NamespacesGetResponse, - SharedAccessAuthorizationRuleCreateOrUpdateParameters, NamespacesCreateOrUpdateAuthorizationRuleOptionalParams, NamespacesCreateOrUpdateAuthorizationRuleResponse, NamespacesDeleteAuthorizationRuleOptionalParams, @@ -47,12 +49,14 @@ import { NamespacesGetAuthorizationRuleResponse, NamespacesListKeysOptionalParams, NamespacesListKeysResponse, - PolicykeyResource, + PolicyKeyResource, NamespacesRegenerateKeysOptionalParams, NamespacesRegenerateKeysResponse, - NamespacesListNextResponse, + NamespacesGetPnsCredentialsOptionalParams, + NamespacesGetPnsCredentialsResponse, NamespacesListAllNextResponse, - NamespacesListAuthorizationRulesNextResponse + NamespacesListNextResponse, + NamespacesListAuthorizationRulesNextResponse, } from "../models"; /// @@ -69,16 +73,13 @@ export class NamespacesImpl implements Namespaces { } /** - * Lists the available namespaces within a resourceGroup. - * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the - * method lists all the namespaces within subscription + * Lists all the available namespaces within the subscription. * @param options The options parameters. */ - public list( - resourceGroupName: string, - options?: NamespacesListOptionalParams + public listAll( + options?: NamespacesListAllOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceGroupName, options); + const iter = this.listAllPagingAll(options); return { next() { return iter.next(); @@ -90,31 +91,26 @@ export class NamespacesImpl implements Namespaces { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage(resourceGroupName, options, settings); - } + return this.listAllPagingPage(options, settings); + }, }; } - private async *listPagingPage( - resourceGroupName: string, - options?: NamespacesListOptionalParams, - settings?: PageSettings + private async *listAllPagingPage( + options?: NamespacesListAllOptionalParams, + settings?: PageSettings, ): AsyncIterableIterator { - let result: NamespacesListResponse; + let result: NamespacesListAllResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(resourceGroupName, options); + result = await this._listAll(options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listNext( - resourceGroupName, - continuationToken, - options - ); + result = await this._listAllNext(continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -122,23 +118,24 @@ export class NamespacesImpl implements Namespaces { } } - private async *listPagingAll( - resourceGroupName: string, - options?: NamespacesListOptionalParams + private async *listAllPagingAll( + options?: NamespacesListAllOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listPagingPage(resourceGroupName, options)) { + for await (const page of this.listAllPagingPage(options)) { yield* page; } } /** - * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * Lists the available namespaces within a resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ - public listAll( - options?: NamespacesListAllOptionalParams + public list( + resourceGroupName: string, + options?: NamespacesListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listAllPagingAll(options); + const iter = this.listPagingAll(resourceGroupName, options); return { next() { return iter.next(); @@ -150,26 +147,31 @@ export class NamespacesImpl implements Namespaces { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listAllPagingPage(options, settings); - } + return this.listPagingPage(resourceGroupName, options, settings); + }, }; } - private async *listAllPagingPage( - options?: NamespacesListAllOptionalParams, - settings?: PageSettings + private async *listPagingPage( + resourceGroupName: string, + options?: NamespacesListOptionalParams, + settings?: PageSettings, ): AsyncIterableIterator { - let result: NamespacesListAllResponse; + let result: NamespacesListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listAll(options); + result = await this._list(resourceGroupName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listAllNext(continuationToken, options); + result = await this._listNext( + resourceGroupName, + continuationToken, + options, + ); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -177,29 +179,30 @@ export class NamespacesImpl implements Namespaces { } } - private async *listAllPagingAll( - options?: NamespacesListAllOptionalParams + private async *listPagingAll( + resourceGroupName: string, + options?: NamespacesListOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listAllPagingPage(options)) { + for await (const page of this.listPagingPage(resourceGroupName, options)) { yield* page; } } /** * Gets the authorization rules for a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name * @param options The options parameters. */ public listAuthorizationRules( resourceGroupName: string, namespaceName: string, - options?: NamespacesListAuthorizationRulesOptionalParams + options?: NamespacesListAuthorizationRulesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAuthorizationRulesPagingAll( resourceGroupName, namespaceName, - options + options, ); return { next() { @@ -216,9 +219,9 @@ export class NamespacesImpl implements Namespaces { resourceGroupName, namespaceName, options, - settings + settings, ); - } + }, }; } @@ -226,7 +229,7 @@ export class NamespacesImpl implements Namespaces { resourceGroupName: string, namespaceName: string, options?: NamespacesListAuthorizationRulesOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: NamespacesListAuthorizationRulesResponse; let continuationToken = settings?.continuationToken; @@ -234,7 +237,7 @@ export class NamespacesImpl implements Namespaces { result = await this._listAuthorizationRules( resourceGroupName, namespaceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -246,7 +249,7 @@ export class NamespacesImpl implements Namespaces { resourceGroupName, namespaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -258,12 +261,12 @@ export class NamespacesImpl implements Namespaces { private async *listAuthorizationRulesPagingAll( resourceGroupName: string, namespaceName: string, - options?: NamespacesListAuthorizationRulesOptionalParams + options?: NamespacesListAuthorizationRulesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAuthorizationRulesPagingPage( resourceGroupName, namespaceName, - options + options, )) { yield* page; } @@ -272,87 +275,70 @@ export class NamespacesImpl implements Namespaces { /** * Checks the availability of the given service namespace across all Azure subscriptions. This is * useful because the domain name is created based on the service namespace name. - * @param parameters The namespace name. + * @param parameters Request content. * @param options The options parameters. */ checkAvailability( parameters: CheckAvailabilityParameters, - options?: NamespacesCheckAvailabilityOptionalParams + options?: NamespacesCheckAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { parameters, options }, - checkAvailabilityOperationSpec - ); - } - - /** - * Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. - * This operation is idempotent. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param parameters Parameters supplied to create a Namespace Resource. - * @param options The options parameters. - */ - createOrUpdate( - resourceGroupName: string, - namespaceName: string, - parameters: NamespaceCreateOrUpdateParameters, - options?: NamespacesCreateOrUpdateOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, parameters, options }, - createOrUpdateOperationSpec + checkAvailabilityOperationSpec, ); } /** - * Patches the existing namespace - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param parameters Parameters supplied to patch a Namespace Resource. + * Returns the given namespace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name * @param options The options parameters. */ - patch( + get( resourceGroupName: string, namespaceName: string, - parameters: NamespacePatchParameters, - options?: NamespacesPatchOptionalParams - ): Promise { + options?: NamespacesGetOptionalParams, + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, parameters, options }, - patchOperationSpec + { resourceGroupName, namespaceName, options }, + getOperationSpec, ); } /** - * Deletes an existing namespace. This operation also removes all associated notificationHubs under the - * namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. + * Creates / Updates a Notification Hub namespace. This operation is idempotent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param parameters Request content. * @param options The options parameters. */ - async beginDelete( + async beginCreateOrUpdate( resourceGroupName: string, namespaceName: string, - options?: NamespacesDeleteOptionalParams - ): Promise, void>> { + parameters: NamespaceResource, + options?: NamespacesCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NamespacesCreateOrUpdateResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -361,8 +347,8 @@ export class NamespacesImpl implements Namespaces { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -370,75 +356,126 @@ export class NamespacesImpl implements Namespaces { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, namespaceName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, namespaceName, parameters, options }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + NamespacesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; } /** - * Deletes an existing namespace. This operation also removes all associated notificationHubs under the - * namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. + * Creates / Updates a Notification Hub namespace. This operation is idempotent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param parameters Request content. * @param options The options parameters. */ - async beginDeleteAndWait( + async beginCreateOrUpdateAndWait( resourceGroupName: string, namespaceName: string, - options?: NamespacesDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( + parameters: NamespaceResource, + options?: NamespacesCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( resourceGroupName, namespaceName, - options + parameters, + options, ); return poller.pollUntilDone(); } /** - * Returns the description for the specified namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. + * Patches the existing namespace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param parameters Request content. * @param options The options parameters. */ - get( + update( resourceGroupName: string, namespaceName: string, - options?: NamespacesGetOptionalParams - ): Promise { + parameters: NamespacePatchParameters, + options?: NamespacesUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, namespaceName, parameters, options }, + updateOperationSpec, + ); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the + * namespace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + namespaceName: string, + options?: NamespacesDeleteOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, options }, - getOperationSpec + deleteOperationSpec, + ); + } + + /** + * Lists all the available namespaces within the subscription. + * @param options The options parameters. + */ + private _listAll( + options?: NamespacesListAllOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ options }, listAllOperationSpec); + } + + /** + * Lists the available namespaces within a resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + options?: NamespacesListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listOperationSpec, ); } /** * Creates an authorization rule for a namespace - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param authorizationRuleName Authorization Rule Name. - * @param parameters The shared access authorization rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param authorizationRuleName Authorization Rule Name + * @param parameters Request content. * @param options The options parameters. */ createOrUpdateAuthorizationRule( resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - parameters: SharedAccessAuthorizationRuleCreateOrUpdateParameters, - options?: NamespacesCreateOrUpdateAuthorizationRuleOptionalParams + parameters: SharedAccessAuthorizationRuleResource, + options?: NamespacesCreateOrUpdateAuthorizationRuleOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -446,128 +483,100 @@ export class NamespacesImpl implements Namespaces { namespaceName, authorizationRuleName, parameters, - options + options, }, - createOrUpdateAuthorizationRuleOperationSpec + createOrUpdateAuthorizationRuleOperationSpec, ); } /** * Deletes a namespace authorization rule - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param authorizationRuleName Authorization Rule Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param authorizationRuleName Authorization Rule Name * @param options The options parameters. */ deleteAuthorizationRule( resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - options?: NamespacesDeleteAuthorizationRuleOptionalParams + options?: NamespacesDeleteAuthorizationRuleOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, authorizationRuleName, options }, - deleteAuthorizationRuleOperationSpec + deleteAuthorizationRuleOperationSpec, ); } /** * Gets an authorization rule for a namespace by name. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name - * @param authorizationRuleName Authorization rule name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param authorizationRuleName Authorization Rule Name * @param options The options parameters. */ getAuthorizationRule( resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - options?: NamespacesGetAuthorizationRuleOptionalParams + options?: NamespacesGetAuthorizationRuleOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, authorizationRuleName, options }, - getAuthorizationRuleOperationSpec + getAuthorizationRuleOperationSpec, ); } - /** - * Lists the available namespaces within a resourceGroup. - * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the - * method lists all the namespaces within subscription - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - options?: NamespacesListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, options }, - listOperationSpec - ); - } - - /** - * Lists all the available namespaces within the subscription irrespective of the resourceGroups. - * @param options The options parameters. - */ - private _listAll( - options?: NamespacesListAllOptionalParams - ): Promise { - return this.client.sendOperationRequest({ options }, listAllOperationSpec); - } - /** * Gets the authorization rules for a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name * @param options The options parameters. */ private _listAuthorizationRules( resourceGroupName: string, namespaceName: string, - options?: NamespacesListAuthorizationRulesOptionalParams + options?: NamespacesListAuthorizationRulesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, options }, - listAuthorizationRulesOperationSpec + listAuthorizationRulesOperationSpec, ); } /** - * Gets the Primary and Secondary ConnectionStrings to the namespace - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param authorizationRuleName The connection string of the namespace for the specified - * authorizationRule. + * Gets the Primary and Secondary ConnectionStrings to the namespace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param authorizationRuleName Authorization Rule Name * @param options The options parameters. */ listKeys( resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - options?: NamespacesListKeysOptionalParams + options?: NamespacesListKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, authorizationRuleName, options }, - listKeysOperationSpec + listKeysOperationSpec, ); } /** * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param authorizationRuleName The connection string of the namespace for the specified - * authorizationRule. - * @param parameters Parameters supplied to regenerate the Namespace Authorization Rule Key. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param authorizationRuleName Authorization Rule Name + * @param parameters Request content. * @param options The options parameters. */ regenerateKeys( resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - parameters: PolicykeyResource, - options?: NamespacesRegenerateKeysOptionalParams + parameters: PolicyKeyResource, + options?: NamespacesRegenerateKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -575,27 +584,26 @@ export class NamespacesImpl implements Namespaces { namespaceName, authorizationRuleName, parameters, - options + options, }, - regenerateKeysOperationSpec + regenerateKeysOperationSpec, ); } /** - * ListNext - * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the - * method lists all the namespaces within subscription - * @param nextLink The nextLink from the previous successful call to the List method. + * Lists the PNS credentials associated with a namespace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name * @param options The options parameters. */ - private _listNext( + getPnsCredentials( resourceGroupName: string, - nextLink: string, - options?: NamespacesListNextOptionalParams - ): Promise { + namespaceName: string, + options?: NamespacesGetPnsCredentialsOptionalParams, + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, nextLink, options }, - listNextOperationSpec + { resourceGroupName, namespaceName, options }, + getPnsCredentialsOperationSpec, ); } @@ -606,18 +614,35 @@ export class NamespacesImpl implements Namespaces { */ private _listAllNext( nextLink: string, - options?: NamespacesListAllNextOptionalParams + options?: NamespacesListAllNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listAllNextOperationSpec + listAllNextOperationSpec, + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + nextLink: string, + options?: NamespacesListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listNextOperationSpec, ); } /** * ListAuthorizationRulesNext - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name * @param nextLink The nextLink from the previous successful call to the ListAuthorizationRules method. * @param options The options parameters. */ @@ -625,11 +650,11 @@ export class NamespacesImpl implements Namespaces { resourceGroupName: string, namespaceName: string, nextLink: string, - options?: NamespacesListAuthorizationRulesNextOptionalParams + options?: NamespacesListAuthorizationRulesNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, nextLink, options }, - listAuthorizationRulesNextOperationSpec + listAuthorizationRulesNextOperationSpec, ); } } @@ -637,107 +662,176 @@ export class NamespacesImpl implements Namespaces { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const checkAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNamespaceAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNamespaceAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckAvailabilityResult - } + bodyMapper: Mappers.CheckAvailabilityResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NamespaceResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.namespaceName, + ], + headerParameters: [Parameters.accept], + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.NamespaceResource + bodyMapper: Mappers.NamespaceResource, }, 201: { - bodyMapper: Mappers.NamespaceResource - } + bodyMapper: Mappers.NamespaceResource, + }, + 202: { + bodyMapper: Mappers.NamespaceResource, + }, + 204: { + bodyMapper: Mappers.NamespaceResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters1, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; -const patchOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}", +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.NamespaceResource - } + bodyMapper: Mappers.NamespaceResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters2, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {} }, + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}", +const listAllOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NamespaceResource - } + bodyMapper: Mappers.NamespaceListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken, + Parameters.top, + ], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer, +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NamespaceListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken, + Parameters.top, + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateAuthorizationRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SharedAccessAuthorizationRuleResource - } + bodyMapper: Mappers.SharedAccessAuthorizationRuleResource, + }, + 201: { + bodyMapper: Mappers.SharedAccessAuthorizationRuleResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], @@ -746,35 +840,43 @@ const createOrUpdateAuthorizationRuleOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.authorizationRuleName + Parameters.authorizationRuleName, ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteAuthorizationRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}", httpMethod: "DELETE", - responses: { 200: {}, 204: {} }, + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.authorizationRuleName + Parameters.authorizationRuleName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedAccessAuthorizationRuleResource - } + bodyMapper: Mappers.SharedAccessAuthorizationRuleResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -782,155 +884,156 @@ const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.authorizationRuleName + Parameters.authorizationRuleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces", +const listAuthorizationRulesOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NamespaceListResult - } + bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, + Parameters.namespaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const listAllOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.NamespaceListResult - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer -}; -const listAuthorizationRulesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules", - httpMethod: "GET", +const listKeysOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/listKeys", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult - } + bodyMapper: Mappers.ResourceListKeys, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, + Parameters.authorizationRuleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const listKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys", +const regenerateKeysOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/regenerateKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ResourceListKeys - } + bodyMapper: Mappers.ResourceListKeys, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.authorizationRuleName + Parameters.authorizationRuleName, ], - headerParameters: [Parameters.accept], - serializer + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer, }; -const regenerateKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys", +const getPnsCredentialsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/pnsCredentials", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ResourceListKeys - } + bodyMapper: Mappers.PnsCredentialsResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.authorizationRuleName ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer + headerParameters: [Parameters.accept], + serializer, }; -const listNextOperationSpec: coreClient.OperationSpec = { +const listAllNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NamespaceListResult - } + bodyMapper: Mappers.NamespaceListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const listAllNextOperationSpec: coreClient.OperationSpec = { +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NamespaceListResult - } + bodyMapper: Mappers.NamespaceListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.nextLink, - Parameters.subscriptionId ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAuthorizationRulesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult - } + bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/notificationhubs/arm-notificationhubs/src/operations/notificationHubs.ts b/sdk/notificationhubs/arm-notificationhubs/src/operations/notificationHubs.ts index b9af2043473e..91eab820bb80 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/operations/notificationHubs.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/operations/notificationHubs.ts @@ -25,17 +25,16 @@ import { CheckAvailabilityParameters, NotificationHubsCheckNotificationHubAvailabilityOptionalParams, NotificationHubsCheckNotificationHubAvailabilityResponse, - NotificationHubCreateOrUpdateParameters, + NotificationHubsGetOptionalParams, + NotificationHubsGetResponse, NotificationHubsCreateOrUpdateOptionalParams, NotificationHubsCreateOrUpdateResponse, - NotificationHubsPatchOptionalParams, - NotificationHubsPatchResponse, + NotificationHubPatchParameters, + NotificationHubsUpdateOptionalParams, + NotificationHubsUpdateResponse, NotificationHubsDeleteOptionalParams, - NotificationHubsGetOptionalParams, - NotificationHubsGetResponse, NotificationHubsDebugSendOptionalParams, NotificationHubsDebugSendResponse, - SharedAccessAuthorizationRuleCreateOrUpdateParameters, NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams, NotificationHubsCreateOrUpdateAuthorizationRuleResponse, NotificationHubsDeleteAuthorizationRuleOptionalParams, @@ -43,13 +42,13 @@ import { NotificationHubsGetAuthorizationRuleResponse, NotificationHubsListKeysOptionalParams, NotificationHubsListKeysResponse, - PolicykeyResource, + PolicyKeyResource, NotificationHubsRegenerateKeysOptionalParams, NotificationHubsRegenerateKeysResponse, NotificationHubsGetPnsCredentialsOptionalParams, NotificationHubsGetPnsCredentialsResponse, NotificationHubsListNextResponse, - NotificationHubsListAuthorizationRulesNextResponse + NotificationHubsListAuthorizationRulesNextResponse, } from "../models"; /// @@ -67,14 +66,14 @@ export class NotificationHubsImpl implements NotificationHubs { /** * Lists the notification hubs associated with a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name * @param options The options parameters. */ public list( resourceGroupName: string, namespaceName: string, - options?: NotificationHubsListOptionalParams + options?: NotificationHubsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, namespaceName, options); return { @@ -92,9 +91,9 @@ export class NotificationHubsImpl implements NotificationHubs { resourceGroupName, namespaceName, options, - settings + settings, ); - } + }, }; } @@ -102,7 +101,7 @@ export class NotificationHubsImpl implements NotificationHubs { resourceGroupName: string, namespaceName: string, options?: NotificationHubsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: NotificationHubsListResponse; let continuationToken = settings?.continuationToken; @@ -118,7 +117,7 @@ export class NotificationHubsImpl implements NotificationHubs { resourceGroupName, namespaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -130,12 +129,12 @@ export class NotificationHubsImpl implements NotificationHubs { private async *listPagingAll( resourceGroupName: string, namespaceName: string, - options?: NotificationHubsListOptionalParams + options?: NotificationHubsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, namespaceName, - options + options, )) { yield* page; } @@ -143,22 +142,22 @@ export class NotificationHubsImpl implements NotificationHubs { /** * Gets the authorization rules for a NotificationHub. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name - * @param notificationHubName The notification hub name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name * @param options The options parameters. */ public listAuthorizationRules( resourceGroupName: string, namespaceName: string, notificationHubName: string, - options?: NotificationHubsListAuthorizationRulesOptionalParams + options?: NotificationHubsListAuthorizationRulesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAuthorizationRulesPagingAll( resourceGroupName, namespaceName, notificationHubName, - options + options, ); return { next() { @@ -176,9 +175,9 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName, notificationHubName, options, - settings + settings, ); - } + }, }; } @@ -187,7 +186,7 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName: string, notificationHubName: string, options?: NotificationHubsListAuthorizationRulesOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: NotificationHubsListAuthorizationRulesResponse; let continuationToken = settings?.continuationToken; @@ -196,7 +195,7 @@ export class NotificationHubsImpl implements NotificationHubs { resourceGroupName, namespaceName, notificationHubName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -209,7 +208,7 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName, notificationHubName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -222,13 +221,13 @@ export class NotificationHubsImpl implements NotificationHubs { resourceGroupName: string, namespaceName: string, notificationHubName: string, - options?: NotificationHubsListAuthorizationRulesOptionalParams + options?: NotificationHubsListAuthorizationRulesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAuthorizationRulesPagingPage( resourceGroupName, namespaceName, notificationHubName, - options + options, )) { yield* page; } @@ -236,37 +235,56 @@ export class NotificationHubsImpl implements NotificationHubs { /** * Checks the availability of the given notificationHub in a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param parameters The notificationHub name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param parameters Request content. * @param options The options parameters. */ checkNotificationHubAvailability( resourceGroupName: string, namespaceName: string, parameters: CheckAvailabilityParameters, - options?: NotificationHubsCheckNotificationHubAvailabilityOptionalParams + options?: NotificationHubsCheckNotificationHubAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, parameters, options }, - checkNotificationHubAvailabilityOperationSpec + checkNotificationHubAvailabilityOperationSpec, + ); + } + + /** + * Gets the notification hub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param options The options parameters. + */ + get( + resourceGroupName: string, + namespaceName: string, + notificationHubName: string, + options?: NotificationHubsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, namespaceName, notificationHubName, options }, + getOperationSpec, ); } /** * Creates/Update a NotificationHub in a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. - * @param parameters Parameters supplied to the create/update a NotificationHub Resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param parameters Request content. * @param options The options parameters. */ createOrUpdate( resourceGroupName: string, namespaceName: string, notificationHubName: string, - parameters: NotificationHubCreateOrUpdateParameters, - options?: NotificationHubsCreateOrUpdateOptionalParams + parameters: NotificationHubResource, + options?: NotificationHubsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -274,95 +292,101 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName, notificationHubName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } /** * Patch a NotificationHub in a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param parameters Request content. * @param options The options parameters. */ - patch( + update( resourceGroupName: string, namespaceName: string, notificationHubName: string, - options?: NotificationHubsPatchOptionalParams - ): Promise { + parameters: NotificationHubPatchParameters, + options?: NotificationHubsUpdateOptionalParams, + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, notificationHubName, options }, - patchOperationSpec + { + resourceGroupName, + namespaceName, + notificationHubName, + parameters, + options, + }, + updateOperationSpec, ); } /** * Deletes a notification hub associated with a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name * @param options The options parameters. */ delete( resourceGroupName: string, namespaceName: string, notificationHubName: string, - options?: NotificationHubsDeleteOptionalParams + options?: NotificationHubsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, notificationHubName, options }, - deleteOperationSpec + deleteOperationSpec, ); } /** * Lists the notification hubs associated with a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name * @param options The options parameters. */ - get( + private _list( resourceGroupName: string, namespaceName: string, - notificationHubName: string, - options?: NotificationHubsGetOptionalParams - ): Promise { + options?: NotificationHubsListOptionalParams, + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, notificationHubName, options }, - getOperationSpec + { resourceGroupName, namespaceName, options }, + listOperationSpec, ); } /** - * test send a push notification - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. + * Test send a push notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name * @param options The options parameters. */ debugSend( resourceGroupName: string, namespaceName: string, notificationHubName: string, - options?: NotificationHubsDebugSendOptionalParams + options?: NotificationHubsDebugSendOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, notificationHubName, options }, - debugSendOperationSpec + debugSendOperationSpec, ); } /** * Creates/Updates an authorization rule for a NotificationHub - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. - * @param authorizationRuleName Authorization Rule Name. - * @param parameters The shared access authorization rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param authorizationRuleName Authorization Rule Name + * @param parameters Request content. * @param options The options parameters. */ createOrUpdateAuthorizationRule( @@ -370,8 +394,8 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName: string, notificationHubName: string, authorizationRuleName: string, - parameters: SharedAccessAuthorizationRuleCreateOrUpdateParameters, - options?: NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams + parameters: SharedAccessAuthorizationRuleResource, + options?: NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -380,18 +404,18 @@ export class NotificationHubsImpl implements NotificationHubs { notificationHubName, authorizationRuleName, parameters, - options + options, }, - createOrUpdateAuthorizationRuleOperationSpec + createOrUpdateAuthorizationRuleOperationSpec, ); } /** * Deletes a notificationHub authorization rule - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. - * @param authorizationRuleName Authorization Rule Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param authorizationRuleName Authorization Rule Name * @param options The options parameters. */ deleteAuthorizationRule( @@ -399,7 +423,7 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName: string, notificationHubName: string, authorizationRuleName: string, - options?: NotificationHubsDeleteAuthorizationRuleOptionalParams + options?: NotificationHubsDeleteAuthorizationRuleOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -407,18 +431,18 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName, notificationHubName, authorizationRuleName, - options + options, }, - deleteAuthorizationRuleOperationSpec + deleteAuthorizationRuleOperationSpec, ); } /** * Gets an authorization rule for a NotificationHub by name. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name - * @param notificationHubName The notification hub name. - * @param authorizationRuleName authorization rule name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param authorizationRuleName Authorization Rule Name * @param options The options parameters. */ getAuthorizationRule( @@ -426,7 +450,7 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName: string, notificationHubName: string, authorizationRuleName: string, - options?: NotificationHubsGetAuthorizationRuleOptionalParams + options?: NotificationHubsGetAuthorizationRuleOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -434,55 +458,37 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName, notificationHubName, authorizationRuleName, - options + options, }, - getAuthorizationRuleOperationSpec - ); - } - - /** - * Lists the notification hubs associated with a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - namespaceName: string, - options?: NotificationHubsListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, options }, - listOperationSpec + getAuthorizationRuleOperationSpec, ); } /** * Gets the authorization rules for a NotificationHub. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name - * @param notificationHubName The notification hub name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name * @param options The options parameters. */ private _listAuthorizationRules( resourceGroupName: string, namespaceName: string, notificationHubName: string, - options?: NotificationHubsListAuthorizationRulesOptionalParams + options?: NotificationHubsListAuthorizationRulesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, notificationHubName, options }, - listAuthorizationRulesOperationSpec + listAuthorizationRulesOperationSpec, ); } /** * Gets the Primary and Secondary ConnectionStrings to the NotificationHub - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. - * @param authorizationRuleName The connection string of the NotificationHub for the specified - * authorizationRule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param authorizationRuleName Authorization Rule Name * @param options The options parameters. */ listKeys( @@ -490,7 +496,7 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName: string, notificationHubName: string, authorizationRuleName: string, - options?: NotificationHubsListKeysOptionalParams + options?: NotificationHubsListKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -498,20 +504,19 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName, notificationHubName, authorizationRuleName, - options + options, }, - listKeysOperationSpec + listKeysOperationSpec, ); } /** * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. - * @param authorizationRuleName The connection string of the NotificationHub for the specified - * authorizationRule. - * @param parameters Parameters supplied to regenerate the NotificationHub Authorization Rule Key. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param authorizationRuleName Authorization Rule Name + * @param parameters Request content. * @param options The options parameters. */ regenerateKeys( @@ -519,8 +524,8 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName: string, notificationHubName: string, authorizationRuleName: string, - parameters: PolicykeyResource, - options?: NotificationHubsRegenerateKeysOptionalParams + parameters: PolicyKeyResource, + options?: NotificationHubsRegenerateKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -529,35 +534,35 @@ export class NotificationHubsImpl implements NotificationHubs { notificationHubName, authorizationRuleName, parameters, - options + options, }, - regenerateKeysOperationSpec + regenerateKeysOperationSpec, ); } /** - * Lists the PNS Credentials associated with a notification hub . - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. + * Lists the PNS Credentials associated with a notification hub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name * @param options The options parameters. */ getPnsCredentials( resourceGroupName: string, namespaceName: string, notificationHubName: string, - options?: NotificationHubsGetPnsCredentialsOptionalParams + options?: NotificationHubsGetPnsCredentialsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, notificationHubName, options }, - getPnsCredentialsOperationSpec + getPnsCredentialsOperationSpec, ); } /** * ListNext - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ @@ -565,19 +570,19 @@ export class NotificationHubsImpl implements NotificationHubs { resourceGroupName: string, namespaceName: string, nextLink: string, - options?: NotificationHubsListNextOptionalParams + options?: NotificationHubsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } /** * ListAuthorizationRulesNext - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name - * @param notificationHubName The notification hub name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name * @param nextLink The nextLink from the previous successful call to the ListAuthorizationRules method. * @param options The options parameters. */ @@ -586,7 +591,7 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName: string, notificationHubName: string, nextLink: string, - options?: NotificationHubsListAuthorizationRulesNextOptionalParams + options?: NotificationHubsListAuthorizationRulesNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -594,148 +599,193 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName, notificationHubName, nextLink, - options + options, }, - listAuthorizationRulesNextOperationSpec + listAuthorizationRulesNextOperationSpec, ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const checkNotificationHubAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability", - httpMethod: "POST", +const checkNotificationHubAvailabilityOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CheckAvailabilityResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.namespaceName, + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer, + }; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CheckAvailabilityResult - } + bodyMapper: Mappers.NotificationHubResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, + Parameters.notificationHubName, ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer + headerParameters: [Parameters.accept], + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.NotificationHubResource + bodyMapper: Mappers.NotificationHubResource, }, 201: { - bodyMapper: Mappers.NotificationHubResource - } + bodyMapper: Mappers.NotificationHubResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.notificationHubName + Parameters.notificationHubName, ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; -const patchOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}", +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.NotificationHubResource - } + bodyMapper: Mappers.NotificationHubResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.notificationHubName + Parameters.notificationHubName, ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}", httpMethod: "DELETE", - responses: { 200: {} }, + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.notificationHubName + Parameters.notificationHubName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}", +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NotificationHubResource - } + bodyMapper: Mappers.NotificationHubListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken, + Parameters.top, + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.notificationHubName ], headerParameters: [Parameters.accept], - serializer + serializer, }; const debugSendOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/debugsend", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/debugsend", httpMethod: "POST", responses: { - 201: { - bodyMapper: Mappers.DebugSendResponse - } + 200: { + bodyMapper: Mappers.DebugSendResponse, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.notificationHubName + Parameters.notificationHubName, ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer + headerParameters: [Parameters.accept], + serializer, }; const createOrUpdateAuthorizationRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SharedAccessAuthorizationRuleResource - } + bodyMapper: Mappers.SharedAccessAuthorizationRuleResource, + }, + 201: { + bodyMapper: Mappers.SharedAccessAuthorizationRuleResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], @@ -744,37 +794,22 @@ const createOrUpdateAuthorizationRuleOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, + Parameters.notificationHubName, Parameters.authorizationRuleName, - Parameters.notificationHubName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteAuthorizationRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}", httpMethod: "DELETE", - responses: { 200: {}, 204: {} }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.namespaceName, - Parameters.authorizationRuleName, - Parameters.notificationHubName - ], - serializer -}; -const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}", - httpMethod: "GET", responses: { - 200: { - bodyMapper: Mappers.SharedAccessAuthorizationRuleResource - } + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -782,39 +817,45 @@ const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, + Parameters.notificationHubName, Parameters.authorizationRuleName, - Parameters.notificationHubName ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs", +const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NotificationHubListResult - } + bodyMapper: Mappers.SharedAccessAuthorizationRuleResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, + Parameters.notificationHubName, + Parameters.authorizationRuleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAuthorizationRulesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult - } + bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -822,19 +863,21 @@ const listAuthorizationRulesOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.notificationHubName + Parameters.notificationHubName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/listKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/listKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ResourceListKeys - } + bodyMapper: Mappers.ResourceListKeys, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -842,20 +885,22 @@ const listKeysOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, + Parameters.notificationHubName, Parameters.authorizationRuleName, - Parameters.notificationHubName ], headerParameters: [Parameters.accept], - serializer + serializer, }; const regenerateKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ResourceListKeys - } + bodyMapper: Mappers.ResourceListKeys, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], @@ -864,21 +909,23 @@ const regenerateKeysOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, + Parameters.notificationHubName, Parameters.authorizationRuleName, - Parameters.notificationHubName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const getPnsCredentialsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/pnsCredentials", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/pnsCredentials", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.PnsCredentialsResource - } + bodyMapper: Mappers.PnsCredentialsResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -886,47 +933,51 @@ const getPnsCredentialsOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.notificationHubName + Parameters.notificationHubName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NotificationHubListResult - } + bodyMapper: Mappers.NotificationHubListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAuthorizationRulesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult - } + bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.notificationHubName + Parameters.notificationHubName, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/notificationhubs/arm-notificationhubs/src/operations/operations.ts b/sdk/notificationhubs/arm-notificationhubs/src/operations/operations.ts index 9e0392e17d4d..bfe8e5fa85db 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/operations/operations.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/operations/operations.ts @@ -18,7 +18,7 @@ import { OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, - OperationsListNextResponse + OperationsListNextResponse, } from "../models"; /// @@ -35,11 +35,11 @@ export class OperationsImpl implements Operations { } /** - * Lists all of the available NotificationHubs REST API operations. + * Lists all available Notification Hubs operations. * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -89,11 +89,11 @@ export class OperationsImpl implements Operations { } /** - * Lists all of the available NotificationHubs REST API operations. + * Lists all available Notification Hubs operations. * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class OperationsImpl implements Operations { */ private _listNext( nextLink: string, - options?: OperationsListNextOptionalParams + options?: OperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,30 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/notificationhubs/arm-notificationhubs/src/operations/privateEndpointConnections.ts b/sdk/notificationhubs/arm-notificationhubs/src/operations/privateEndpointConnections.ts new file mode 100644 index 000000000000..d13682cb8c74 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/src/operations/privateEndpointConnections.ts @@ -0,0 +1,629 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { PrivateEndpointConnections } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NotificationHubsManagementClient } from "../notificationHubsManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + PrivateEndpointConnectionResource, + PrivateEndpointConnectionsListOptionalParams, + PrivateEndpointConnectionsListResponse, + PrivateLinkResource, + PrivateEndpointConnectionsListGroupIdsOptionalParams, + PrivateEndpointConnectionsListGroupIdsResponse, + PrivateEndpointConnectionsUpdateOptionalParams, + PrivateEndpointConnectionsUpdateResponse, + PrivateEndpointConnectionsDeleteOptionalParams, + PrivateEndpointConnectionsDeleteResponse, + PrivateEndpointConnectionsGetOptionalParams, + PrivateEndpointConnectionsGetResponse, + PrivateEndpointConnectionsGetGroupIdOptionalParams, + PrivateEndpointConnectionsGetGroupIdResponse, +} from "../models"; + +/// +/** Class containing PrivateEndpointConnections operations. */ +export class PrivateEndpointConnectionsImpl + implements PrivateEndpointConnections +{ + private readonly client: NotificationHubsManagementClient; + + /** + * Initialize a new instance of the class PrivateEndpointConnections class. + * @param client Reference to the service client + */ + constructor(client: NotificationHubsManagementClient) { + this.client = client; + } + + /** + * Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + namespaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, namespaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + namespaceName, + options, + settings, + ); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + namespaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams, + _settings?: PageSettings, + ): AsyncIterableIterator { + let result: PrivateEndpointConnectionsListResponse; + result = await this._list(resourceGroupName, namespaceName, options); + yield result.value || []; + } + + private async *listPagingAll( + resourceGroupName: string, + namespaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + namespaceName, + options, + )) { + yield* page; + } + } + + /** + * Even though this namespace requires subscription id, resource group and namespace name, it returns a + * constant payload (for a given namespacE) every time it's called. + * That's why we don't send it to the sibling RP, but process it directly in the scale unit that + * received the request. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param options The options parameters. + */ + public listGroupIds( + resourceGroupName: string, + namespaceName: string, + options?: PrivateEndpointConnectionsListGroupIdsOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listGroupIdsPagingAll( + resourceGroupName, + namespaceName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listGroupIdsPagingPage( + resourceGroupName, + namespaceName, + options, + settings, + ); + }, + }; + } + + private async *listGroupIdsPagingPage( + resourceGroupName: string, + namespaceName: string, + options?: PrivateEndpointConnectionsListGroupIdsOptionalParams, + _settings?: PageSettings, + ): AsyncIterableIterator { + let result: PrivateEndpointConnectionsListGroupIdsResponse; + result = await this._listGroupIds( + resourceGroupName, + namespaceName, + options, + ); + yield result.value || []; + } + + private async *listGroupIdsPagingAll( + resourceGroupName: string, + namespaceName: string, + options?: PrivateEndpointConnectionsListGroupIdsOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listGroupIdsPagingPage( + resourceGroupName, + namespaceName, + options, + )) { + yield* page; + } + } + + /** + * Approves or rejects Private Endpoint Connection. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param privateEndpointConnectionName Private Endpoint Connection Name + * @param parameters Description of the Private Endpoint Connection resource. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + namespaceName: string, + privateEndpointConnectionName: string, + parameters: PrivateEndpointConnectionResource, + options?: PrivateEndpointConnectionsUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + PrivateEndpointConnectionsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + parameters, + options, + }, + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + PrivateEndpointConnectionsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * Approves or rejects Private Endpoint Connection. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param privateEndpointConnectionName Private Endpoint Connection Name + * @param parameters Description of the Private Endpoint Connection resource. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + namespaceName: string, + privateEndpointConnectionName: string, + parameters: PrivateEndpointConnectionResource, + options?: PrivateEndpointConnectionsUpdateOptionalParams, + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Deletes the Private Endpoint Connection. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param privateEndpointConnectionName Private Endpoint Connection Name + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + namespaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + PrivateEndpointConnectionsDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + options, + }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + PrivateEndpointConnectionsDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Deletes the Private Endpoint Connection. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param privateEndpointConnectionName Private Endpoint Connection Name + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + namespaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Returns a Private Endpoint Connection with a given name. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param privateEndpointConnectionName Private Endpoint Connection Name + * @param options The options parameters. + */ + get( + resourceGroupName: string, + namespaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + options, + }, + getOperationSpec, + ); + } + + /** + * Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + namespaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, namespaceName, options }, + listOperationSpec, + ); + } + + /** + * Even though this namespace requires subscription id, resource group and namespace name, it returns a + * constant payload (for a given namespacE) every time it's called. + * That's why we don't send it to the sibling RP, but process it directly in the scale unit that + * received the request. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param subResourceName Name of the Private Link sub-resource. The only supported sub-resource is + * "namespace" + * @param options The options parameters. + */ + getGroupId( + resourceGroupName: string, + namespaceName: string, + subResourceName: string, + options?: PrivateEndpointConnectionsGetGroupIdOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, namespaceName, subResourceName, options }, + getGroupIdOperationSpec, + ); + } + + /** + * Even though this namespace requires subscription id, resource group and namespace name, it returns a + * constant payload (for a given namespacE) every time it's called. + * That's why we don't send it to the sibling RP, but process it directly in the scale unit that + * received the request. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param options The options parameters. + */ + private _listGroupIds( + resourceGroupName: string, + namespaceName: string, + options?: PrivateEndpointConnectionsListGroupIdsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, namespaceName, options }, + listGroupIdsOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionResource, + }, + 201: { + bodyMapper: Mappers.PrivateEndpointConnectionResource, + }, + 202: { + bodyMapper: Mappers.PrivateEndpointConnectionResource, + }, + 204: { + bodyMapper: Mappers.PrivateEndpointConnectionResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.namespaceName, + Parameters.privateEndpointConnectionName, + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders, + }, + 201: { + headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders, + }, + 202: { + headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders, + }, + 204: { + headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.namespaceName, + Parameters.privateEndpointConnectionName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.namespaceName, + Parameters.privateEndpointConnectionName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionResourceListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.namespaceName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getGroupIdOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateLinkResources/{subResourceName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.namespaceName, + Parameters.subResourceName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listGroupIdsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateLinkResources", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResourceListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.namespaceName, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/index.ts b/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/index.ts index c93887c25e39..cb17c9777d9d 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/index.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/index.ts @@ -6,6 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./operations"; -export * from "./namespaces"; export * from "./notificationHubs"; +export * from "./namespaces"; +export * from "./operations"; +export * from "./privateEndpointConnections"; diff --git a/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/namespaces.ts b/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/namespaces.ts index 9926e4166f52..40c4fcbf3308 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/namespaces.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/namespaces.ts @@ -7,26 +7,24 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { NamespaceResource, - NamespacesListOptionalParams, NamespacesListAllOptionalParams, + NamespacesListOptionalParams, SharedAccessAuthorizationRuleResource, NamespacesListAuthorizationRulesOptionalParams, CheckAvailabilityParameters, NamespacesCheckAvailabilityOptionalParams, NamespacesCheckAvailabilityResponse, - NamespaceCreateOrUpdateParameters, + NamespacesGetOptionalParams, + NamespacesGetResponse, NamespacesCreateOrUpdateOptionalParams, NamespacesCreateOrUpdateResponse, NamespacePatchParameters, - NamespacesPatchOptionalParams, - NamespacesPatchResponse, + NamespacesUpdateOptionalParams, + NamespacesUpdateResponse, NamespacesDeleteOptionalParams, - NamespacesGetOptionalParams, - NamespacesGetResponse, - SharedAccessAuthorizationRuleCreateOrUpdateParameters, NamespacesCreateOrUpdateAuthorizationRuleOptionalParams, NamespacesCreateOrUpdateAuthorizationRuleResponse, NamespacesDeleteAuthorizationRuleOptionalParams, @@ -34,183 +32,198 @@ import { NamespacesGetAuthorizationRuleResponse, NamespacesListKeysOptionalParams, NamespacesListKeysResponse, - PolicykeyResource, + PolicyKeyResource, NamespacesRegenerateKeysOptionalParams, - NamespacesRegenerateKeysResponse + NamespacesRegenerateKeysResponse, + NamespacesGetPnsCredentialsOptionalParams, + NamespacesGetPnsCredentialsResponse, } from "../models"; /// /** Interface representing a Namespaces. */ export interface Namespaces { /** - * Lists the available namespaces within a resourceGroup. - * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the - * method lists all the namespaces within subscription + * Lists all the available namespaces within the subscription. * @param options The options parameters. */ - list( - resourceGroupName: string, - options?: NamespacesListOptionalParams + listAll( + options?: NamespacesListAllOptionalParams, ): PagedAsyncIterableIterator; /** - * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * Lists the available namespaces within a resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ - listAll( - options?: NamespacesListAllOptionalParams + list( + resourceGroupName: string, + options?: NamespacesListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the authorization rules for a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name * @param options The options parameters. */ listAuthorizationRules( resourceGroupName: string, namespaceName: string, - options?: NamespacesListAuthorizationRulesOptionalParams + options?: NamespacesListAuthorizationRulesOptionalParams, ): PagedAsyncIterableIterator; /** * Checks the availability of the given service namespace across all Azure subscriptions. This is * useful because the domain name is created based on the service namespace name. - * @param parameters The namespace name. + * @param parameters Request content. * @param options The options parameters. */ checkAvailability( parameters: CheckAvailabilityParameters, - options?: NamespacesCheckAvailabilityOptionalParams + options?: NamespacesCheckAvailabilityOptionalParams, ): Promise; /** - * Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. - * This operation is idempotent. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param parameters Parameters supplied to create a Namespace Resource. + * Returns the given namespace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name * @param options The options parameters. */ - createOrUpdate( + get( resourceGroupName: string, namespaceName: string, - parameters: NamespaceCreateOrUpdateParameters, - options?: NamespacesCreateOrUpdateOptionalParams - ): Promise; + options?: NamespacesGetOptionalParams, + ): Promise; /** - * Patches the existing namespace - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param parameters Parameters supplied to patch a Namespace Resource. + * Creates / Updates a Notification Hub namespace. This operation is idempotent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param parameters Request content. * @param options The options parameters. */ - patch( + beginCreateOrUpdate( resourceGroupName: string, namespaceName: string, - parameters: NamespacePatchParameters, - options?: NamespacesPatchOptionalParams - ): Promise; + parameters: NamespaceResource, + options?: NamespacesCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NamespacesCreateOrUpdateResponse + > + >; /** - * Deletes an existing namespace. This operation also removes all associated notificationHubs under the - * namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. + * Creates / Updates a Notification Hub namespace. This operation is idempotent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param parameters Request content. * @param options The options parameters. */ - beginDelete( + beginCreateOrUpdateAndWait( resourceGroupName: string, namespaceName: string, - options?: NamespacesDeleteOptionalParams - ): Promise, void>>; + parameters: NamespaceResource, + options?: NamespacesCreateOrUpdateOptionalParams, + ): Promise; /** - * Deletes an existing namespace. This operation also removes all associated notificationHubs under the - * namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. + * Patches the existing namespace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param parameters Request content. * @param options The options parameters. */ - beginDeleteAndWait( + update( resourceGroupName: string, namespaceName: string, - options?: NamespacesDeleteOptionalParams - ): Promise; + parameters: NamespacePatchParameters, + options?: NamespacesUpdateOptionalParams, + ): Promise; /** - * Returns the description for the specified namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the + * namespace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name * @param options The options parameters. */ - get( + delete( resourceGroupName: string, namespaceName: string, - options?: NamespacesGetOptionalParams - ): Promise; + options?: NamespacesDeleteOptionalParams, + ): Promise; /** * Creates an authorization rule for a namespace - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param authorizationRuleName Authorization Rule Name. - * @param parameters The shared access authorization rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param authorizationRuleName Authorization Rule Name + * @param parameters Request content. * @param options The options parameters. */ createOrUpdateAuthorizationRule( resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - parameters: SharedAccessAuthorizationRuleCreateOrUpdateParameters, - options?: NamespacesCreateOrUpdateAuthorizationRuleOptionalParams + parameters: SharedAccessAuthorizationRuleResource, + options?: NamespacesCreateOrUpdateAuthorizationRuleOptionalParams, ): Promise; /** * Deletes a namespace authorization rule - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param authorizationRuleName Authorization Rule Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param authorizationRuleName Authorization Rule Name * @param options The options parameters. */ deleteAuthorizationRule( resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - options?: NamespacesDeleteAuthorizationRuleOptionalParams + options?: NamespacesDeleteAuthorizationRuleOptionalParams, ): Promise; /** * Gets an authorization rule for a namespace by name. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name - * @param authorizationRuleName Authorization rule name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param authorizationRuleName Authorization Rule Name * @param options The options parameters. */ getAuthorizationRule( resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - options?: NamespacesGetAuthorizationRuleOptionalParams + options?: NamespacesGetAuthorizationRuleOptionalParams, ): Promise; /** - * Gets the Primary and Secondary ConnectionStrings to the namespace - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param authorizationRuleName The connection string of the namespace for the specified - * authorizationRule. + * Gets the Primary and Secondary ConnectionStrings to the namespace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param authorizationRuleName Authorization Rule Name * @param options The options parameters. */ listKeys( resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - options?: NamespacesListKeysOptionalParams + options?: NamespacesListKeysOptionalParams, ): Promise; /** * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param authorizationRuleName The connection string of the namespace for the specified - * authorizationRule. - * @param parameters Parameters supplied to regenerate the Namespace Authorization Rule Key. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param authorizationRuleName Authorization Rule Name + * @param parameters Request content. * @param options The options parameters. */ regenerateKeys( resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - parameters: PolicykeyResource, - options?: NamespacesRegenerateKeysOptionalParams + parameters: PolicyKeyResource, + options?: NamespacesRegenerateKeysOptionalParams, ): Promise; + /** + * Lists the PNS credentials associated with a namespace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param options The options parameters. + */ + getPnsCredentials( + resourceGroupName: string, + namespaceName: string, + options?: NamespacesGetPnsCredentialsOptionalParams, + ): Promise; } diff --git a/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/notificationHubs.ts b/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/notificationHubs.ts index 3864c4303140..2bfb7fca6bff 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/notificationHubs.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/notificationHubs.ts @@ -15,17 +15,16 @@ import { CheckAvailabilityParameters, NotificationHubsCheckNotificationHubAvailabilityOptionalParams, NotificationHubsCheckNotificationHubAvailabilityResponse, - NotificationHubCreateOrUpdateParameters, + NotificationHubsGetOptionalParams, + NotificationHubsGetResponse, NotificationHubsCreateOrUpdateOptionalParams, NotificationHubsCreateOrUpdateResponse, - NotificationHubsPatchOptionalParams, - NotificationHubsPatchResponse, + NotificationHubPatchParameters, + NotificationHubsUpdateOptionalParams, + NotificationHubsUpdateResponse, NotificationHubsDeleteOptionalParams, - NotificationHubsGetOptionalParams, - NotificationHubsGetResponse, NotificationHubsDebugSendOptionalParams, NotificationHubsDebugSendResponse, - SharedAccessAuthorizationRuleCreateOrUpdateParameters, NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams, NotificationHubsCreateOrUpdateAuthorizationRuleResponse, NotificationHubsDeleteAuthorizationRuleOptionalParams, @@ -33,11 +32,11 @@ import { NotificationHubsGetAuthorizationRuleResponse, NotificationHubsListKeysOptionalParams, NotificationHubsListKeysResponse, - PolicykeyResource, + PolicyKeyResource, NotificationHubsRegenerateKeysOptionalParams, NotificationHubsRegenerateKeysResponse, NotificationHubsGetPnsCredentialsOptionalParams, - NotificationHubsGetPnsCredentialsResponse + NotificationHubsGetPnsCredentialsResponse, } from "../models"; /// @@ -45,115 +44,117 @@ import { export interface NotificationHubs { /** * Lists the notification hubs associated with a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name * @param options The options parameters. */ list( resourceGroupName: string, namespaceName: string, - options?: NotificationHubsListOptionalParams + options?: NotificationHubsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the authorization rules for a NotificationHub. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name - * @param notificationHubName The notification hub name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name * @param options The options parameters. */ listAuthorizationRules( resourceGroupName: string, namespaceName: string, notificationHubName: string, - options?: NotificationHubsListAuthorizationRulesOptionalParams + options?: NotificationHubsListAuthorizationRulesOptionalParams, ): PagedAsyncIterableIterator; /** * Checks the availability of the given notificationHub in a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param parameters The notificationHub name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param parameters Request content. * @param options The options parameters. */ checkNotificationHubAvailability( resourceGroupName: string, namespaceName: string, parameters: CheckAvailabilityParameters, - options?: NotificationHubsCheckNotificationHubAvailabilityOptionalParams + options?: NotificationHubsCheckNotificationHubAvailabilityOptionalParams, ): Promise; + /** + * Gets the notification hub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param options The options parameters. + */ + get( + resourceGroupName: string, + namespaceName: string, + notificationHubName: string, + options?: NotificationHubsGetOptionalParams, + ): Promise; /** * Creates/Update a NotificationHub in a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. - * @param parameters Parameters supplied to the create/update a NotificationHub Resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param parameters Request content. * @param options The options parameters. */ createOrUpdate( resourceGroupName: string, namespaceName: string, notificationHubName: string, - parameters: NotificationHubCreateOrUpdateParameters, - options?: NotificationHubsCreateOrUpdateOptionalParams + parameters: NotificationHubResource, + options?: NotificationHubsCreateOrUpdateOptionalParams, ): Promise; /** * Patch a NotificationHub in a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param parameters Request content. * @param options The options parameters. */ - patch( + update( resourceGroupName: string, namespaceName: string, notificationHubName: string, - options?: NotificationHubsPatchOptionalParams - ): Promise; + parameters: NotificationHubPatchParameters, + options?: NotificationHubsUpdateOptionalParams, + ): Promise; /** * Deletes a notification hub associated with a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name * @param options The options parameters. */ delete( resourceGroupName: string, namespaceName: string, notificationHubName: string, - options?: NotificationHubsDeleteOptionalParams + options?: NotificationHubsDeleteOptionalParams, ): Promise; /** - * Lists the notification hubs associated with a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - namespaceName: string, - notificationHubName: string, - options?: NotificationHubsGetOptionalParams - ): Promise; - /** - * test send a push notification - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. + * Test send a push notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name * @param options The options parameters. */ debugSend( resourceGroupName: string, namespaceName: string, notificationHubName: string, - options?: NotificationHubsDebugSendOptionalParams + options?: NotificationHubsDebugSendOptionalParams, ): Promise; /** * Creates/Updates an authorization rule for a NotificationHub - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. - * @param authorizationRuleName Authorization Rule Name. - * @param parameters The shared access authorization rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param authorizationRuleName Authorization Rule Name + * @param parameters Request content. * @param options The options parameters. */ createOrUpdateAuthorizationRule( @@ -161,15 +162,15 @@ export interface NotificationHubs { namespaceName: string, notificationHubName: string, authorizationRuleName: string, - parameters: SharedAccessAuthorizationRuleCreateOrUpdateParameters, - options?: NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams + parameters: SharedAccessAuthorizationRuleResource, + options?: NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams, ): Promise; /** * Deletes a notificationHub authorization rule - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. - * @param authorizationRuleName Authorization Rule Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param authorizationRuleName Authorization Rule Name * @param options The options parameters. */ deleteAuthorizationRule( @@ -177,14 +178,14 @@ export interface NotificationHubs { namespaceName: string, notificationHubName: string, authorizationRuleName: string, - options?: NotificationHubsDeleteAuthorizationRuleOptionalParams + options?: NotificationHubsDeleteAuthorizationRuleOptionalParams, ): Promise; /** * Gets an authorization rule for a NotificationHub by name. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name - * @param notificationHubName The notification hub name. - * @param authorizationRuleName authorization rule name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param authorizationRuleName Authorization Rule Name * @param options The options parameters. */ getAuthorizationRule( @@ -192,15 +193,14 @@ export interface NotificationHubs { namespaceName: string, notificationHubName: string, authorizationRuleName: string, - options?: NotificationHubsGetAuthorizationRuleOptionalParams + options?: NotificationHubsGetAuthorizationRuleOptionalParams, ): Promise; /** * Gets the Primary and Secondary ConnectionStrings to the NotificationHub - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. - * @param authorizationRuleName The connection string of the NotificationHub for the specified - * authorizationRule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param authorizationRuleName Authorization Rule Name * @param options The options parameters. */ listKeys( @@ -208,16 +208,15 @@ export interface NotificationHubs { namespaceName: string, notificationHubName: string, authorizationRuleName: string, - options?: NotificationHubsListKeysOptionalParams + options?: NotificationHubsListKeysOptionalParams, ): Promise; /** * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. - * @param authorizationRuleName The connection string of the NotificationHub for the specified - * authorizationRule. - * @param parameters Parameters supplied to regenerate the NotificationHub Authorization Rule Key. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param authorizationRuleName Authorization Rule Name + * @param parameters Request content. * @param options The options parameters. */ regenerateKeys( @@ -225,20 +224,20 @@ export interface NotificationHubs { namespaceName: string, notificationHubName: string, authorizationRuleName: string, - parameters: PolicykeyResource, - options?: NotificationHubsRegenerateKeysOptionalParams + parameters: PolicyKeyResource, + options?: NotificationHubsRegenerateKeysOptionalParams, ): Promise; /** - * Lists the PNS Credentials associated with a notification hub . - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. + * Lists the PNS Credentials associated with a notification hub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name * @param options The options parameters. */ getPnsCredentials( resourceGroupName: string, namespaceName: string, notificationHubName: string, - options?: NotificationHubsGetPnsCredentialsOptionalParams + options?: NotificationHubsGetPnsCredentialsOptionalParams, ): Promise; } diff --git a/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/operations.ts b/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/operations.ts index fd9cb1c618ca..05f96558ebbd 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/operations.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/operations.ts @@ -13,10 +13,10 @@ import { Operation, OperationsListOptionalParams } from "../models"; /** Interface representing a Operations. */ export interface Operations { /** - * Lists all of the available NotificationHubs REST API operations. + * Lists all available Notification Hubs operations. * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/privateEndpointConnections.ts new file mode 100644 index 000000000000..393d2dfdc992 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/privateEndpointConnections.ts @@ -0,0 +1,156 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + PrivateEndpointConnectionResource, + PrivateEndpointConnectionsListOptionalParams, + PrivateLinkResource, + PrivateEndpointConnectionsListGroupIdsOptionalParams, + PrivateEndpointConnectionsUpdateOptionalParams, + PrivateEndpointConnectionsUpdateResponse, + PrivateEndpointConnectionsDeleteOptionalParams, + PrivateEndpointConnectionsDeleteResponse, + PrivateEndpointConnectionsGetOptionalParams, + PrivateEndpointConnectionsGetResponse, + PrivateEndpointConnectionsGetGroupIdOptionalParams, + PrivateEndpointConnectionsGetGroupIdResponse, +} from "../models"; + +/// +/** Interface representing a PrivateEndpointConnections. */ +export interface PrivateEndpointConnections { + /** + * Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param options The options parameters. + */ + list( + resourceGroupName: string, + namespaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Even though this namespace requires subscription id, resource group and namespace name, it returns a + * constant payload (for a given namespacE) every time it's called. + * That's why we don't send it to the sibling RP, but process it directly in the scale unit that + * received the request. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param options The options parameters. + */ + listGroupIds( + resourceGroupName: string, + namespaceName: string, + options?: PrivateEndpointConnectionsListGroupIdsOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Approves or rejects Private Endpoint Connection. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param privateEndpointConnectionName Private Endpoint Connection Name + * @param parameters Description of the Private Endpoint Connection resource. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + namespaceName: string, + privateEndpointConnectionName: string, + parameters: PrivateEndpointConnectionResource, + options?: PrivateEndpointConnectionsUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + PrivateEndpointConnectionsUpdateResponse + > + >; + /** + * Approves or rejects Private Endpoint Connection. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param privateEndpointConnectionName Private Endpoint Connection Name + * @param parameters Description of the Private Endpoint Connection resource. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + namespaceName: string, + privateEndpointConnectionName: string, + parameters: PrivateEndpointConnectionResource, + options?: PrivateEndpointConnectionsUpdateOptionalParams, + ): Promise; + /** + * Deletes the Private Endpoint Connection. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param privateEndpointConnectionName Private Endpoint Connection Name + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + namespaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + PrivateEndpointConnectionsDeleteResponse + > + >; + /** + * Deletes the Private Endpoint Connection. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param privateEndpointConnectionName Private Endpoint Connection Name + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + namespaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsDeleteOptionalParams, + ): Promise; + /** + * Returns a Private Endpoint Connection with a given name. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param privateEndpointConnectionName Private Endpoint Connection Name + * @param options The options parameters. + */ + get( + resourceGroupName: string, + namespaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsGetOptionalParams, + ): Promise; + /** + * Even though this namespace requires subscription id, resource group and namespace name, it returns a + * constant payload (for a given namespacE) every time it's called. + * That's why we don't send it to the sibling RP, but process it directly in the scale unit that + * received the request. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param subResourceName Name of the Private Link sub-resource. The only supported sub-resource is + * "namespace" + * @param options The options parameters. + */ + getGroupId( + resourceGroupName: string, + namespaceName: string, + subResourceName: string, + options?: PrivateEndpointConnectionsGetGroupIdOptionalParams, + ): Promise; +} diff --git a/sdk/notificationhubs/arm-notificationhubs/src/pagingHelper.ts b/sdk/notificationhubs/arm-notificationhubs/src/pagingHelper.ts index d85fc13bce1e..205cccc26592 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/pagingHelper.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/pagingHelper.ts @@ -13,11 +13,11 @@ export interface PageInfo { const pageMap = new WeakMap(); /** - * Given a result page from a pageable operation, returns a - * continuation token that can be used to begin paging from + * Given the last `.value` produced by the `byPage` iterator, + * returns a continuation token that can be used to begin paging from * that point later. - * @param page A result object from calling .byPage() on a paged operation. - * @returns The continuation token that can be passed into byPage(). + * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. + * @returns The continuation token that can be passed into byPage() during future calls. */ export function getContinuationToken(page: unknown): string | undefined { if (typeof page !== "object" || page === null) { @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/notificationhubs/arm-notificationhubs/test/notificationhubs_examples.ts b/sdk/notificationhubs/arm-notificationhubs/test/notificationhubs_examples.ts index 74d180b542c4..d51fc649e30f 100644 --- a/sdk/notificationhubs/arm-notificationhubs/test/notificationhubs_examples.ts +++ b/sdk/notificationhubs/arm-notificationhubs/test/notificationhubs_examples.ts @@ -60,7 +60,20 @@ describe("NotificationHubs test", () => { }); it("namespaces create test", async function () { - const res = await client.namespaces.createOrUpdate(resourceGroup, nameSpaceName, { location: location }); + const res = await client.namespaces.beginCreateOrUpdateAndWait(resourceGroup, + nameSpaceName, + { + networkAcls: { + ipRules: [ + { ipMask: "185.48.100.00/24", rights: ["Manage", "Send", "Listen"] }, + ], + publicNetworkRule: { rights: ["Listen"] }, + }, + zoneRedundancy: "Enabled", + sku: { name: "Standard", tier: "Standard" }, + tags: { tag1: "value1", tag2: "value2" }, + location: location + }, testPollingOptions); assert.equal(res.name, nameSpaceName); }); @@ -71,6 +84,7 @@ describe("NotificationHubs test", () => { it("notificationHubs create test", async function () { const res = await client.notificationHubs.createOrUpdate(resourceGroup, nameSpaceName, notificationhubsName, { location: location }); + await delay(100000); assert.equal(res.name, notificationhubsName); }); @@ -97,6 +111,6 @@ describe("NotificationHubs test", () => { }); it("namespaces delete test", async function () { - const res = await client.namespaces.beginDeleteAndWait(resourceGroup, nameSpaceName, testPollingOptions); + const res = await client.namespaces.delete(resourceGroup, nameSpaceName); }); }); diff --git a/sdk/openai/openai/assets.json b/sdk/openai/openai/assets.json index 53d7b0049f59..0fba4f5078f9 100644 --- a/sdk/openai/openai/assets.json +++ b/sdk/openai/openai/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/openai/openai", - "Tag": "js/openai/openai_6b73e03317" + "Tag": "js/openai/openai_3df73efcf2" } diff --git a/sdk/openai/openai/review/openai.api.md b/sdk/openai/openai/review/openai.api.md index e6c1dcce4230..47152130509c 100644 --- a/sdk/openai/openai/review/openai.api.md +++ b/sdk/openai/openai/review/openai.api.md @@ -219,6 +219,7 @@ export interface ChatCompletions { export interface ChatCompletionsFunctionToolCall { function: FunctionCall; id: string; + index?: number; type: "function"; } diff --git a/sdk/openai/openai/sources/customizations/models/models.ts b/sdk/openai/openai/sources/customizations/models/models.ts index 40539b195492..4381b9a33d23 100644 --- a/sdk/openai/openai/sources/customizations/models/models.ts +++ b/sdk/openai/openai/sources/customizations/models/models.ts @@ -287,6 +287,8 @@ export interface ChatCompletionsFunctionToolCall { function: FunctionCall; /** The ID of the tool call. */ id: string; + /** The index of the tool call. */ + index?: number; } /** diff --git a/sdk/openai/openai/src/models/models.ts b/sdk/openai/openai/src/models/models.ts index adcbd83dcfbb..647feb0ec7f7 100644 --- a/sdk/openai/openai/src/models/models.ts +++ b/sdk/openai/openai/src/models/models.ts @@ -490,6 +490,8 @@ export interface ChatCompletionsFunctionToolCall { function: FunctionCall; /** The ID of the tool call. */ id: string; + /** The index of the tool call. */ + index?: number; } /** diff --git a/sdk/openai/openai/test/public/completions.spec.ts b/sdk/openai/openai/test/public/completions.spec.ts index cbef93243cf7..963af5a7d3e7 100644 --- a/sdk/openai/openai/test/public/completions.spec.ts +++ b/sdk/openai/openai/test/public/completions.spec.ts @@ -514,6 +514,40 @@ describe("OpenAI", function () { ); }); + it("calls toolCalls", async function () { + updateWithSucceeded( + await withDeployments( + getSucceeded( + authMethod, + deployments, + models, + chatCompletionDeployments, + chatCompletionModels, + ), + async (deploymentName) => + bufferAsyncIterable( + await client.streamChatCompletions( + deploymentName, + [{ role: "user", content: "What's the weather like in Boston?" }], + { + tools: [{ type: "function", function: getCurrentWeather }], + }, + ), + ), + (res) => + assertChatCompletionsList(res, { + functions: true, + // The API returns an empty choice in the first event for some + // reason. This should be fixed in the API. + allowEmptyChoices: true, + }), + ), + chatCompletionDeployments, + chatCompletionModels, + authMethod, + ); + }); + it("bring your own data", async function () { if (authMethod === "OpenAIKey") { this.skip(); diff --git a/sdk/openai/openai/test/public/utils/asserts.ts b/sdk/openai/openai/test/public/utils/asserts.ts index fe242cfd8bc0..4820838c2c18 100644 --- a/sdk/openai/openai/test/public/utils/asserts.ts +++ b/sdk/openai/openai/test/public/utils/asserts.ts @@ -180,6 +180,7 @@ function assertToolCall( ): void { assertIf(!stream, functionCall.type, assert.isString); assertIf(!stream, functionCall.id, assert.isString); + assertIf(Boolean(stream), functionCall.index, assert.isNumber); switch (functionCall.type) { case "function": assertFunctionCall(functionCall.function, { stream }); diff --git a/sdk/personalizer/ai-personalizer-rest/tests.yml b/sdk/personalizer/ai-personalizer-rest/tests.yml index dd6c2138ffd0..deef3bff7215 100644 --- a/sdk/personalizer/ai-personalizer-rest/tests.yml +++ b/sdk/personalizer/ai-personalizer-rest/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-rest/ai-personalizer" ServiceDirectory: personalizer diff --git a/sdk/quantum/arm-quantum/CHANGELOG.md b/sdk/quantum/arm-quantum/CHANGELOG.md index b24a9e262401..68aeb3c9f335 100644 --- a/sdk/quantum/arm-quantum/CHANGELOG.md +++ b/sdk/quantum/arm-quantum/CHANGELOG.md @@ -1,15 +1,33 @@ # Release History + +## 1.0.0-beta.2 (2024-03-12) + +**Features** -## 1.0.0-beta.2 (Unreleased) + - Added operation Workspace.listKeys + - Added operation Workspace.regenerateKeys + - Added Interface ApiKey + - Added Interface APIKeys + - Added Interface ListKeysResult + - Added Interface WorkspaceListKeysOptionalParams + - Added Interface WorkspaceRegenerateKeysOptionalParams + - Added Interface WorkspaceResourceProperties + - Added Type Alias KeyType_2 + - Added Type Alias WorkspaceListKeysResponse + - Interface QuantumWorkspace has a new optional parameter properties + - Interface Resource has a new optional parameter systemData + - Added Enum KnownKeyType -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +**Breaking Changes** + - Interface QuantumWorkspace no longer has parameter endpointUri + - Interface QuantumWorkspace no longer has parameter providers + - Interface QuantumWorkspace no longer has parameter provisioningState + - Interface QuantumWorkspace no longer has parameter storageAccount + - Interface QuantumWorkspace no longer has parameter systemData + - Interface QuantumWorkspace no longer has parameter usable + + ## 1.0.0-beta.1 (2023-07-10) The package of @azure/arm-quantum is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). diff --git a/sdk/quantum/arm-quantum/LICENSE b/sdk/quantum/arm-quantum/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/quantum/arm-quantum/LICENSE +++ b/sdk/quantum/arm-quantum/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/quantum/arm-quantum/_meta.json b/sdk/quantum/arm-quantum/_meta.json index 1c0662250c00..973981c83434 100644 --- a/sdk/quantum/arm-quantum/_meta.json +++ b/sdk/quantum/arm-quantum/_meta.json @@ -1,8 +1,8 @@ { - "commit": "0f39a2d56070d2bc4251494525cb8af88583a938", + "commit": "c45a7f47c1901149828eb8a33c74898c554659c0", "readme": "specification/quantum/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\quantum\\resource-manager\\readme.md --use=@autorest/typescript@6.0.5 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\quantum\\resource-manager\\readme.md --use=@autorest/typescript@6.0.17 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", - "use": "@autorest/typescript@6.0.5" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", + "use": "@autorest/typescript@6.0.17" } \ No newline at end of file diff --git a/sdk/quantum/arm-quantum/assets.json b/sdk/quantum/arm-quantum/assets.json index 53b1edde5cf6..531c768c9b23 100644 --- a/sdk/quantum/arm-quantum/assets.json +++ b/sdk/quantum/arm-quantum/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/quantum/arm-quantum", - "Tag": "js/quantum/arm-quantum_7d980c2b33" + "Tag": "js/quantum/arm-quantum_722240f12d" } diff --git a/sdk/quantum/arm-quantum/package.json b/sdk/quantum/arm-quantum/package.json index a018b98e4450..89f2b0779326 100644 --- a/sdk/quantum/arm-quantum/package.json +++ b/sdk/quantum/arm-quantum/package.json @@ -8,12 +8,12 @@ "node": ">=18.0.0" }, "dependencies": { - "@azure/core-lro": "^2.5.3", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -32,19 +32,20 @@ "mkdirp": "^2.1.2", "typescript": "~5.3.3", "uglify-js": "^3.4.9", - "rimraf": "^5.0.5", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "esm": "^3.2.18", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0", - "@types/mocha": "^10.0.0" + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -77,7 +78,6 @@ "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -115,4 +115,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-quantum?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/quantum/arm-quantum/review/arm-quantum.api.md b/sdk/quantum/arm-quantum/review/arm-quantum.api.md index 380466f5b3a1..72db43b076be 100644 --- a/sdk/quantum/arm-quantum/review/arm-quantum.api.md +++ b/sdk/quantum/arm-quantum/review/arm-quantum.api.md @@ -10,6 +10,17 @@ import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { SimplePollerLike } from '@azure/core-lro'; +// @public +export interface ApiKey { + createdAt?: Date; + readonly key?: string; +} + +// @public +export interface APIKeys { + keys?: KeyType_2[]; +} + // @public (undocumented) export class AzureQuantumManagementClient extends coreClient.ServiceClient { // (undocumented) @@ -75,6 +86,10 @@ export interface ErrorResponse { // @public export function getContinuationToken(page: unknown): string | undefined; +// @public +type KeyType_2 = string; +export { KeyType_2 as KeyType } + // @public export enum KnownCreatedByType { Application = "Application", @@ -83,6 +98,12 @@ export enum KnownCreatedByType { User = "User" } +// @public +export enum KnownKeyType { + Primary = "Primary", + Secondary = "Secondary" +} + // @public export enum KnownProvisioningStatus { Failed = "Failed", @@ -116,6 +137,15 @@ export enum KnownUsableStatus { Yes = "Yes" } +// @public +export interface ListKeysResult { + apiKeyEnabled?: boolean; + readonly primaryConnectionString?: string; + primaryKey?: ApiKey; + readonly secondaryConnectionString?: string; + secondaryKey?: ApiKey; +} + // @public export interface Offerings { list(locationName: string, options?: OfferingsListOptionalParams): PagedAsyncIterableIterator; @@ -241,13 +271,8 @@ export type ProvisioningStatus = string; // @public export interface QuantumWorkspace extends TrackedResource { - readonly endpointUri?: string; identity?: QuantumWorkspaceIdentity; - providers?: Provider[]; - readonly provisioningState?: ProvisioningStatus; - storageAccount?: string; - readonly systemData?: SystemData; - readonly usable?: UsableStatus; + properties?: WorkspaceResourceProperties; } // @public @@ -273,6 +298,7 @@ export interface QuotaDimension { export interface Resource { readonly id?: string; readonly name?: string; + readonly systemData?: SystemData; readonly type?: string; } @@ -335,6 +361,8 @@ export type UsableStatus = string; // @public export interface Workspace { checkNameAvailability(locationName: string, checkNameAvailabilityParameters: CheckNameAvailabilityParameters, options?: WorkspaceCheckNameAvailabilityOptionalParams): Promise; + listKeys(resourceGroupName: string, workspaceName: string, options?: WorkspaceListKeysOptionalParams): Promise; + regenerateKeys(resourceGroupName: string, workspaceName: string, keySpecification: APIKeys, options?: WorkspaceRegenerateKeysOptionalParams): Promise; } // @public @@ -344,12 +372,33 @@ export interface WorkspaceCheckNameAvailabilityOptionalParams extends coreClient // @public export type WorkspaceCheckNameAvailabilityResponse = CheckNameAvailabilityResult; +// @public +export interface WorkspaceListKeysOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceListKeysResponse = ListKeysResult; + // @public export interface WorkspaceListResult { nextLink?: string; value?: QuantumWorkspace[]; } +// @public +export interface WorkspaceRegenerateKeysOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceResourceProperties { + apiKeyEnabled?: boolean; + readonly endpointUri?: string; + providers?: Provider[]; + readonly provisioningState?: ProvisioningStatus; + storageAccount?: string; + readonly usable?: UsableStatus; +} + // @public export interface Workspaces { beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, quantumWorkspace: QuantumWorkspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise, WorkspacesCreateOrUpdateResponse>>; diff --git a/sdk/quantum/arm-quantum/samples-dev/offeringsListSample.ts b/sdk/quantum/arm-quantum/samples-dev/offeringsListSample.ts index 673e7bfa6ce6..29c955530383 100644 --- a/sdk/quantum/arm-quantum/samples-dev/offeringsListSample.ts +++ b/sdk/quantum/arm-quantum/samples-dev/offeringsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns the list of all provider offerings available for the given location. * * @summary Returns the list of all provider offerings available for the given location. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/offeringsList.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/offeringsList.json */ async function offeringsList() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples-dev/operationsListSample.ts b/sdk/quantum/arm-quantum/samples-dev/operationsListSample.ts index bee0fde9b457..96b89b8e6b4a 100644 --- a/sdk/quantum/arm-quantum/samples-dev/operationsListSample.ts +++ b/sdk/quantum/arm-quantum/samples-dev/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns list of operations. * * @summary Returns list of operations. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/operations.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/operations.json */ async function operations() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples-dev/workspaceCheckNameAvailabilitySample.ts b/sdk/quantum/arm-quantum/samples-dev/workspaceCheckNameAvailabilitySample.ts index a5992a99db0f..31adc31e3daf 100644 --- a/sdk/quantum/arm-quantum/samples-dev/workspaceCheckNameAvailabilitySample.ts +++ b/sdk/quantum/arm-quantum/samples-dev/workspaceCheckNameAvailabilitySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CheckNameAvailabilityParameters, - AzureQuantumManagementClient + AzureQuantumManagementClient, } from "@azure/arm-quantum"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Check the availability of the resource name. * * @summary Check the availability of the resource name. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesCheckNameAvailability.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesCheckNameAvailability.json */ async function quantumWorkspacesCheckNameAvailability() { const subscriptionId = @@ -30,13 +30,13 @@ async function quantumWorkspacesCheckNameAvailability() { const locationName = "westus2"; const checkNameAvailabilityParameters: CheckNameAvailabilityParameters = { name: "sample-workspace-name", - type: "Microsoft.Quantum/Workspaces" + type: "Microsoft.Quantum/Workspaces", }; const credential = new DefaultAzureCredential(); const client = new AzureQuantumManagementClient(credential, subscriptionId); const result = await client.workspace.checkNameAvailability( locationName, - checkNameAvailabilityParameters + checkNameAvailabilityParameters, ); console.log(result); } diff --git a/sdk/quantum/arm-quantum/samples-dev/workspaceListKeysSample.ts b/sdk/quantum/arm-quantum/samples-dev/workspaceListKeysSample.ts new file mode 100644 index 000000000000..b2044021bb96 --- /dev/null +++ b/sdk/quantum/arm-quantum/samples-dev/workspaceListKeysSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { AzureQuantumManagementClient } from "@azure/arm-quantum"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration. + * + * @summary Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration. + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/listKeys.json + */ +async function listKeys() { + const subscriptionId = + process.env["QUANTUM_SUBSCRIPTION_ID"] || + "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = + process.env["QUANTUM_RESOURCE_GROUP"] || "quantumResourcegroup"; + const workspaceName = "quantumworkspace1"; + const credential = new DefaultAzureCredential(); + const client = new AzureQuantumManagementClient(credential, subscriptionId); + const result = await client.workspace.listKeys( + resourceGroupName, + workspaceName, + ); + console.log(result); +} + +async function main() { + listKeys(); +} + +main().catch(console.error); diff --git a/sdk/quantum/arm-quantum/samples-dev/workspaceRegenerateKeysSample.ts b/sdk/quantum/arm-quantum/samples-dev/workspaceRegenerateKeysSample.ts new file mode 100644 index 000000000000..513b258dcd90 --- /dev/null +++ b/sdk/quantum/arm-quantum/samples-dev/workspaceRegenerateKeysSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { APIKeys, AzureQuantumManagementClient } from "@azure/arm-quantum"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop working immediately. + * + * @summary Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop working immediately. + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/regenerateKey.json + */ +async function regenerateKey() { + const subscriptionId = + process.env["QUANTUM_SUBSCRIPTION_ID"] || + "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = + process.env["QUANTUM_RESOURCE_GROUP"] || "quantumResourcegroup"; + const workspaceName = "quantumworkspace1"; + const keySpecification: APIKeys = { keys: ["Primary", "Secondary"] }; + const credential = new DefaultAzureCredential(); + const client = new AzureQuantumManagementClient(credential, subscriptionId); + const result = await client.workspace.regenerateKeys( + resourceGroupName, + workspaceName, + keySpecification, + ); + console.log(result); +} + +async function main() { + regenerateKey(); +} + +main().catch(console.error); diff --git a/sdk/quantum/arm-quantum/samples-dev/workspacesCreateOrUpdateSample.ts b/sdk/quantum/arm-quantum/samples-dev/workspacesCreateOrUpdateSample.ts index 15e0a43444ce..a1932205c0e3 100644 --- a/sdk/quantum/arm-quantum/samples-dev/workspacesCreateOrUpdateSample.ts +++ b/sdk/quantum/arm-quantum/samples-dev/workspacesCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { QuantumWorkspace, - AzureQuantumManagementClient + AzureQuantumManagementClient, } from "@azure/arm-quantum"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a workspace resource. * * @summary Creates or updates a workspace resource. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesPut.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesPut.json */ async function quantumWorkspacesPut() { const subscriptionId = @@ -32,20 +32,22 @@ async function quantumWorkspacesPut() { const workspaceName = "quantumworkspace1"; const quantumWorkspace: QuantumWorkspace = { location: "West US", - providers: [ - { providerId: "IonQ", providerSku: "Basic" }, - { providerId: "OneQBit", providerSku: "Basic" } - ], - storageAccount: - "/subscriptions/1C4B2828-7D49-494F-933D-061373BE28C2/resourceGroups/quantumResourcegroup/providers/Microsoft.Storage/storageAccounts/testStorageAccount", - identity: { type: "SystemAssigned" } + properties: { + providers: [ + { providerId: "Honeywell", providerSku: "Basic" }, + { providerId: "IonQ", providerSku: "Basic" }, + { providerId: "OneQBit", providerSku: "Basic" }, + ], + storageAccount: + "/subscriptions/1C4B2828-7D49-494F-933D-061373BE28C2/resourceGroups/quantumResourcegroup/providers/Microsoft.Storage/storageAccounts/testStorageAccount", + }, }; const credential = new DefaultAzureCredential(); const client = new AzureQuantumManagementClient(credential, subscriptionId); const result = await client.workspaces.beginCreateOrUpdateAndWait( resourceGroupName, workspaceName, - quantumWorkspace + quantumWorkspace, ); console.log(result); } diff --git a/sdk/quantum/arm-quantum/samples-dev/workspacesDeleteSample.ts b/sdk/quantum/arm-quantum/samples-dev/workspacesDeleteSample.ts index 0b01a6f96c05..36d6d49de20a 100644 --- a/sdk/quantum/arm-quantum/samples-dev/workspacesDeleteSample.ts +++ b/sdk/quantum/arm-quantum/samples-dev/workspacesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a Workspace resource. * * @summary Deletes a Workspace resource. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesDelete.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesDelete.json */ async function quantumWorkspacesDelete() { const subscriptionId = @@ -31,7 +31,7 @@ async function quantumWorkspacesDelete() { const client = new AzureQuantumManagementClient(credential, subscriptionId); const result = await client.workspaces.beginDeleteAndWait( resourceGroupName, - workspaceName + workspaceName, ); console.log(result); } diff --git a/sdk/quantum/arm-quantum/samples-dev/workspacesGetSample.ts b/sdk/quantum/arm-quantum/samples-dev/workspacesGetSample.ts index 56f390083ae3..3e49b825163f 100644 --- a/sdk/quantum/arm-quantum/samples-dev/workspacesGetSample.ts +++ b/sdk/quantum/arm-quantum/samples-dev/workspacesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns the Workspace resource associated with the given name. * * @summary Returns the Workspace resource associated with the given name. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesGet.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesGet.json */ async function quantumWorkspacesGet() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples-dev/workspacesListByResourceGroupSample.ts b/sdk/quantum/arm-quantum/samples-dev/workspacesListByResourceGroupSample.ts index 1d10ae7ccf56..94c45ad6526e 100644 --- a/sdk/quantum/arm-quantum/samples-dev/workspacesListByResourceGroupSample.ts +++ b/sdk/quantum/arm-quantum/samples-dev/workspacesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of Workspaces within a resource group. * * @summary Gets the list of Workspaces within a resource group. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesListResourceGroup.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesListResourceGroup.json */ async function quantumWorkspacesListByResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function quantumWorkspacesListByResourceGroup() { const client = new AzureQuantumManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.workspaces.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/quantum/arm-quantum/samples-dev/workspacesListBySubscriptionSample.ts b/sdk/quantum/arm-quantum/samples-dev/workspacesListBySubscriptionSample.ts index bc11d605a1df..7c1e033499bd 100644 --- a/sdk/quantum/arm-quantum/samples-dev/workspacesListBySubscriptionSample.ts +++ b/sdk/quantum/arm-quantum/samples-dev/workspacesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of Workspaces within a Subscription. * * @summary Gets the list of Workspaces within a Subscription. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesListSubscription.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesListSubscription.json */ async function quantumWorkspacesListBySubscription() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples-dev/workspacesUpdateTagsSample.ts b/sdk/quantum/arm-quantum/samples-dev/workspacesUpdateTagsSample.ts index 0a6197676b5e..e699a5e3a779 100644 --- a/sdk/quantum/arm-quantum/samples-dev/workspacesUpdateTagsSample.ts +++ b/sdk/quantum/arm-quantum/samples-dev/workspacesUpdateTagsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Updates an existing workspace's tags. * * @summary Updates an existing workspace's tags. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesPatch.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesPatch.json */ async function quantumWorkspacesPatchTags() { const subscriptionId = @@ -28,14 +28,14 @@ async function quantumWorkspacesPatchTags() { process.env["QUANTUM_RESOURCE_GROUP"] || "quantumResourcegroup"; const workspaceName = "quantumworkspace1"; const workspaceTags: TagsObject = { - tags: { tag1: "value1", tag2: "value2" } + tags: { tag1: "value1", tag2: "value2" }, }; const credential = new DefaultAzureCredential(); const client = new AzureQuantumManagementClient(credential, subscriptionId); const result = await client.workspaces.updateTags( resourceGroupName, workspaceName, - workspaceTags + workspaceTags, ); console.log(result); } diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/README.md b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/README.md index cbeb76eb4d7f..142128558655 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/README.md +++ b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/README.md @@ -2,17 +2,19 @@ These sample programs show how to use the JavaScript client libraries for in some common scenarios. -| **File Name** | **Description** | -| ------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [offeringsListSample.js][offeringslistsample] | Returns the list of all provider offerings available for the given location. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/offeringsList.json | -| [operationsListSample.js][operationslistsample] | Returns list of operations. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/operations.json | -| [workspaceCheckNameAvailabilitySample.js][workspacechecknameavailabilitysample] | Check the availability of the resource name. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesCheckNameAvailability.json | -| [workspacesCreateOrUpdateSample.js][workspacescreateorupdatesample] | Creates or updates a workspace resource. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesPut.json | -| [workspacesDeleteSample.js][workspacesdeletesample] | Deletes a Workspace resource. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesDelete.json | -| [workspacesGetSample.js][workspacesgetsample] | Returns the Workspace resource associated with the given name. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesGet.json | -| [workspacesListByResourceGroupSample.js][workspaceslistbyresourcegroupsample] | Gets the list of Workspaces within a resource group. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesListResourceGroup.json | -| [workspacesListBySubscriptionSample.js][workspaceslistbysubscriptionsample] | Gets the list of Workspaces within a Subscription. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesListSubscription.json | -| [workspacesUpdateTagsSample.js][workspacesupdatetagssample] | Updates an existing workspace's tags. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesPatch.json | +| **File Name** | **Description** | +| ------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [offeringsListSample.js][offeringslistsample] | Returns the list of all provider offerings available for the given location. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/offeringsList.json | +| [operationsListSample.js][operationslistsample] | Returns list of operations. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/operations.json | +| [workspaceCheckNameAvailabilitySample.js][workspacechecknameavailabilitysample] | Check the availability of the resource name. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesCheckNameAvailability.json | +| [workspaceListKeysSample.js][workspacelistkeyssample] | Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/listKeys.json | +| [workspaceRegenerateKeysSample.js][workspaceregeneratekeyssample] | Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop working immediately. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/regenerateKey.json | +| [workspacesCreateOrUpdateSample.js][workspacescreateorupdatesample] | Creates or updates a workspace resource. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesPut.json | +| [workspacesDeleteSample.js][workspacesdeletesample] | Deletes a Workspace resource. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesDelete.json | +| [workspacesGetSample.js][workspacesgetsample] | Returns the Workspace resource associated with the given name. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesGet.json | +| [workspacesListByResourceGroupSample.js][workspaceslistbyresourcegroupsample] | Gets the list of Workspaces within a resource group. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesListResourceGroup.json | +| [workspacesListBySubscriptionSample.js][workspaceslistbysubscriptionsample] | Gets the list of Workspaces within a Subscription. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesListSubscription.json | +| [workspacesUpdateTagsSample.js][workspacesupdatetagssample] | Updates an existing workspace's tags. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesPatch.json | ## Prerequisites @@ -55,6 +57,8 @@ Take a look at our [API Documentation][apiref] for more information about the AP [offeringslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/javascript/offeringsListSample.js [operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/javascript/operationsListSample.js [workspacechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceCheckNameAvailabilitySample.js +[workspacelistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceListKeysSample.js +[workspaceregeneratekeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceRegenerateKeysSample.js [workspacescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesCreateOrUpdateSample.js [workspacesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesDeleteSample.js [workspacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesGetSample.js diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/offeringsListSample.js b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/offeringsListSample.js index a104b6a915b1..aee12b660b5b 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/offeringsListSample.js +++ b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/offeringsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Returns the list of all provider offerings available for the given location. * * @summary Returns the list of all provider offerings available for the given location. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/offeringsList.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/offeringsList.json */ async function offeringsList() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/operationsListSample.js b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/operationsListSample.js index bccc9f00bfc3..23698d372036 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/operationsListSample.js +++ b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/operationsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Returns list of operations. * * @summary Returns list of operations. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/operations.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/operations.json */ async function operations() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceCheckNameAvailabilitySample.js b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceCheckNameAvailabilitySample.js index 4a644833d104..0fd1f9603adf 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceCheckNameAvailabilitySample.js +++ b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceCheckNameAvailabilitySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Check the availability of the resource name. * * @summary Check the availability of the resource name. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesCheckNameAvailability.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesCheckNameAvailability.json */ async function quantumWorkspacesCheckNameAvailability() { const subscriptionId = @@ -30,7 +30,7 @@ async function quantumWorkspacesCheckNameAvailability() { const client = new AzureQuantumManagementClient(credential, subscriptionId); const result = await client.workspace.checkNameAvailability( locationName, - checkNameAvailabilityParameters + checkNameAvailabilityParameters, ); console.log(result); } diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceListKeysSample.js b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceListKeysSample.js new file mode 100644 index 000000000000..404331fe5c24 --- /dev/null +++ b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceListKeysSample.js @@ -0,0 +1,36 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { AzureQuantumManagementClient } = require("@azure/arm-quantum"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration. + * + * @summary Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration. + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/listKeys.json + */ +async function listKeys() { + const subscriptionId = + process.env["QUANTUM_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = process.env["QUANTUM_RESOURCE_GROUP"] || "quantumResourcegroup"; + const workspaceName = "quantumworkspace1"; + const credential = new DefaultAzureCredential(); + const client = new AzureQuantumManagementClient(credential, subscriptionId); + const result = await client.workspace.listKeys(resourceGroupName, workspaceName); + console.log(result); +} + +async function main() { + listKeys(); +} + +main().catch(console.error); diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceRegenerateKeysSample.js b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceRegenerateKeysSample.js new file mode 100644 index 000000000000..cbf510c633ce --- /dev/null +++ b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceRegenerateKeysSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { AzureQuantumManagementClient } = require("@azure/arm-quantum"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop working immediately. + * + * @summary Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop working immediately. + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/regenerateKey.json + */ +async function regenerateKey() { + const subscriptionId = + process.env["QUANTUM_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = process.env["QUANTUM_RESOURCE_GROUP"] || "quantumResourcegroup"; + const workspaceName = "quantumworkspace1"; + const keySpecification = { keys: ["Primary", "Secondary"] }; + const credential = new DefaultAzureCredential(); + const client = new AzureQuantumManagementClient(credential, subscriptionId); + const result = await client.workspace.regenerateKeys( + resourceGroupName, + workspaceName, + keySpecification, + ); + console.log(result); +} + +async function main() { + regenerateKey(); +} + +main().catch(console.error); diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesCreateOrUpdateSample.js b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesCreateOrUpdateSample.js index bb06bdd31acc..b2a3c9ca0c15 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesCreateOrUpdateSample.js +++ b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates a workspace resource. * * @summary Creates or updates a workspace resource. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesPut.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesPut.json */ async function quantumWorkspacesPut() { const subscriptionId = @@ -25,20 +25,22 @@ async function quantumWorkspacesPut() { const workspaceName = "quantumworkspace1"; const quantumWorkspace = { location: "West US", - providers: [ - { providerId: "IonQ", providerSku: "Basic" }, - { providerId: "OneQBit", providerSku: "Basic" }, - ], - storageAccount: - "/subscriptions/1C4B2828-7D49-494F-933D-061373BE28C2/resourceGroups/quantumResourcegroup/providers/Microsoft.Storage/storageAccounts/testStorageAccount", - identity: { type: "SystemAssigned" }, + properties: { + providers: [ + { providerId: "Honeywell", providerSku: "Basic" }, + { providerId: "IonQ", providerSku: "Basic" }, + { providerId: "OneQBit", providerSku: "Basic" }, + ], + storageAccount: + "/subscriptions/1C4B2828-7D49-494F-933D-061373BE28C2/resourceGroups/quantumResourcegroup/providers/Microsoft.Storage/storageAccounts/testStorageAccount", + }, }; const credential = new DefaultAzureCredential(); const client = new AzureQuantumManagementClient(credential, subscriptionId); const result = await client.workspaces.beginCreateOrUpdateAndWait( resourceGroupName, workspaceName, - quantumWorkspace + quantumWorkspace, ); console.log(result); } diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesDeleteSample.js b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesDeleteSample.js index 34a91018267e..7864c37c7722 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesDeleteSample.js +++ b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes a Workspace resource. * * @summary Deletes a Workspace resource. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesDelete.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesDelete.json */ async function quantumWorkspacesDelete() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesGetSample.js b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesGetSample.js index e5d0043a420f..2fa79d346199 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesGetSample.js +++ b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Returns the Workspace resource associated with the given name. * * @summary Returns the Workspace resource associated with the given name. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesGet.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesGet.json */ async function quantumWorkspacesGet() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesListByResourceGroupSample.js b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesListByResourceGroupSample.js index e110f2d03e87..6f1d27d3a628 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesListByResourceGroupSample.js +++ b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the list of Workspaces within a resource group. * * @summary Gets the list of Workspaces within a resource group. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesListResourceGroup.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesListResourceGroup.json */ async function quantumWorkspacesListByResourceGroup() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesListBySubscriptionSample.js b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesListBySubscriptionSample.js index 0b3292c02f9d..942ac683715e 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesListBySubscriptionSample.js +++ b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the list of Workspaces within a Subscription. * * @summary Gets the list of Workspaces within a Subscription. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesListSubscription.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesListSubscription.json */ async function quantumWorkspacesListBySubscription() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesUpdateTagsSample.js b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesUpdateTagsSample.js index b7669c53465c..e072433672e8 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesUpdateTagsSample.js +++ b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesUpdateTagsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates an existing workspace's tags. * * @summary Updates an existing workspace's tags. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesPatch.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesPatch.json */ async function quantumWorkspacesPatchTags() { const subscriptionId = @@ -31,7 +31,7 @@ async function quantumWorkspacesPatchTags() { const result = await client.workspaces.updateTags( resourceGroupName, workspaceName, - workspaceTags + workspaceTags, ); console.log(result); } diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/README.md b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/README.md index 440b33ffa439..09fc2f9fbffb 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/README.md +++ b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/README.md @@ -2,17 +2,19 @@ These sample programs show how to use the TypeScript client libraries for in some common scenarios. -| **File Name** | **Description** | -| ------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [offeringsListSample.ts][offeringslistsample] | Returns the list of all provider offerings available for the given location. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/offeringsList.json | -| [operationsListSample.ts][operationslistsample] | Returns list of operations. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/operations.json | -| [workspaceCheckNameAvailabilitySample.ts][workspacechecknameavailabilitysample] | Check the availability of the resource name. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesCheckNameAvailability.json | -| [workspacesCreateOrUpdateSample.ts][workspacescreateorupdatesample] | Creates or updates a workspace resource. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesPut.json | -| [workspacesDeleteSample.ts][workspacesdeletesample] | Deletes a Workspace resource. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesDelete.json | -| [workspacesGetSample.ts][workspacesgetsample] | Returns the Workspace resource associated with the given name. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesGet.json | -| [workspacesListByResourceGroupSample.ts][workspaceslistbyresourcegroupsample] | Gets the list of Workspaces within a resource group. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesListResourceGroup.json | -| [workspacesListBySubscriptionSample.ts][workspaceslistbysubscriptionsample] | Gets the list of Workspaces within a Subscription. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesListSubscription.json | -| [workspacesUpdateTagsSample.ts][workspacesupdatetagssample] | Updates an existing workspace's tags. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesPatch.json | +| **File Name** | **Description** | +| ------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [offeringsListSample.ts][offeringslistsample] | Returns the list of all provider offerings available for the given location. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/offeringsList.json | +| [operationsListSample.ts][operationslistsample] | Returns list of operations. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/operations.json | +| [workspaceCheckNameAvailabilitySample.ts][workspacechecknameavailabilitysample] | Check the availability of the resource name. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesCheckNameAvailability.json | +| [workspaceListKeysSample.ts][workspacelistkeyssample] | Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/listKeys.json | +| [workspaceRegenerateKeysSample.ts][workspaceregeneratekeyssample] | Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop working immediately. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/regenerateKey.json | +| [workspacesCreateOrUpdateSample.ts][workspacescreateorupdatesample] | Creates or updates a workspace resource. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesPut.json | +| [workspacesDeleteSample.ts][workspacesdeletesample] | Deletes a Workspace resource. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesDelete.json | +| [workspacesGetSample.ts][workspacesgetsample] | Returns the Workspace resource associated with the given name. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesGet.json | +| [workspacesListByResourceGroupSample.ts][workspaceslistbyresourcegroupsample] | Gets the list of Workspaces within a resource group. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesListResourceGroup.json | +| [workspacesListBySubscriptionSample.ts][workspaceslistbysubscriptionsample] | Gets the list of Workspaces within a Subscription. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesListSubscription.json | +| [workspacesUpdateTagsSample.ts][workspacesupdatetagssample] | Updates an existing workspace's tags. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesPatch.json | ## Prerequisites @@ -67,6 +69,8 @@ Take a look at our [API Documentation][apiref] for more information about the AP [offeringslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/offeringsListSample.ts [operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/operationsListSample.ts [workspacechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceCheckNameAvailabilitySample.ts +[workspacelistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceListKeysSample.ts +[workspaceregeneratekeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceRegenerateKeysSample.ts [workspacescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesCreateOrUpdateSample.ts [workspacesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesDeleteSample.ts [workspacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesGetSample.ts diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/offeringsListSample.ts b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/offeringsListSample.ts index 673e7bfa6ce6..29c955530383 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/offeringsListSample.ts +++ b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/offeringsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns the list of all provider offerings available for the given location. * * @summary Returns the list of all provider offerings available for the given location. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/offeringsList.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/offeringsList.json */ async function offeringsList() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/operationsListSample.ts b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/operationsListSample.ts index bee0fde9b457..96b89b8e6b4a 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/operationsListSample.ts +++ b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns list of operations. * * @summary Returns list of operations. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/operations.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/operations.json */ async function operations() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceCheckNameAvailabilitySample.ts b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceCheckNameAvailabilitySample.ts index a5992a99db0f..31adc31e3daf 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceCheckNameAvailabilitySample.ts +++ b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceCheckNameAvailabilitySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CheckNameAvailabilityParameters, - AzureQuantumManagementClient + AzureQuantumManagementClient, } from "@azure/arm-quantum"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Check the availability of the resource name. * * @summary Check the availability of the resource name. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesCheckNameAvailability.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesCheckNameAvailability.json */ async function quantumWorkspacesCheckNameAvailability() { const subscriptionId = @@ -30,13 +30,13 @@ async function quantumWorkspacesCheckNameAvailability() { const locationName = "westus2"; const checkNameAvailabilityParameters: CheckNameAvailabilityParameters = { name: "sample-workspace-name", - type: "Microsoft.Quantum/Workspaces" + type: "Microsoft.Quantum/Workspaces", }; const credential = new DefaultAzureCredential(); const client = new AzureQuantumManagementClient(credential, subscriptionId); const result = await client.workspace.checkNameAvailability( locationName, - checkNameAvailabilityParameters + checkNameAvailabilityParameters, ); console.log(result); } diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceListKeysSample.ts b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceListKeysSample.ts new file mode 100644 index 000000000000..b2044021bb96 --- /dev/null +++ b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceListKeysSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { AzureQuantumManagementClient } from "@azure/arm-quantum"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration. + * + * @summary Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration. + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/listKeys.json + */ +async function listKeys() { + const subscriptionId = + process.env["QUANTUM_SUBSCRIPTION_ID"] || + "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = + process.env["QUANTUM_RESOURCE_GROUP"] || "quantumResourcegroup"; + const workspaceName = "quantumworkspace1"; + const credential = new DefaultAzureCredential(); + const client = new AzureQuantumManagementClient(credential, subscriptionId); + const result = await client.workspace.listKeys( + resourceGroupName, + workspaceName, + ); + console.log(result); +} + +async function main() { + listKeys(); +} + +main().catch(console.error); diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceRegenerateKeysSample.ts b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceRegenerateKeysSample.ts new file mode 100644 index 000000000000..513b258dcd90 --- /dev/null +++ b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceRegenerateKeysSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { APIKeys, AzureQuantumManagementClient } from "@azure/arm-quantum"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop working immediately. + * + * @summary Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop working immediately. + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/regenerateKey.json + */ +async function regenerateKey() { + const subscriptionId = + process.env["QUANTUM_SUBSCRIPTION_ID"] || + "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = + process.env["QUANTUM_RESOURCE_GROUP"] || "quantumResourcegroup"; + const workspaceName = "quantumworkspace1"; + const keySpecification: APIKeys = { keys: ["Primary", "Secondary"] }; + const credential = new DefaultAzureCredential(); + const client = new AzureQuantumManagementClient(credential, subscriptionId); + const result = await client.workspace.regenerateKeys( + resourceGroupName, + workspaceName, + keySpecification, + ); + console.log(result); +} + +async function main() { + regenerateKey(); +} + +main().catch(console.error); diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesCreateOrUpdateSample.ts b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesCreateOrUpdateSample.ts index 15e0a43444ce..a1932205c0e3 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesCreateOrUpdateSample.ts +++ b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { QuantumWorkspace, - AzureQuantumManagementClient + AzureQuantumManagementClient, } from "@azure/arm-quantum"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a workspace resource. * * @summary Creates or updates a workspace resource. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesPut.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesPut.json */ async function quantumWorkspacesPut() { const subscriptionId = @@ -32,20 +32,22 @@ async function quantumWorkspacesPut() { const workspaceName = "quantumworkspace1"; const quantumWorkspace: QuantumWorkspace = { location: "West US", - providers: [ - { providerId: "IonQ", providerSku: "Basic" }, - { providerId: "OneQBit", providerSku: "Basic" } - ], - storageAccount: - "/subscriptions/1C4B2828-7D49-494F-933D-061373BE28C2/resourceGroups/quantumResourcegroup/providers/Microsoft.Storage/storageAccounts/testStorageAccount", - identity: { type: "SystemAssigned" } + properties: { + providers: [ + { providerId: "Honeywell", providerSku: "Basic" }, + { providerId: "IonQ", providerSku: "Basic" }, + { providerId: "OneQBit", providerSku: "Basic" }, + ], + storageAccount: + "/subscriptions/1C4B2828-7D49-494F-933D-061373BE28C2/resourceGroups/quantumResourcegroup/providers/Microsoft.Storage/storageAccounts/testStorageAccount", + }, }; const credential = new DefaultAzureCredential(); const client = new AzureQuantumManagementClient(credential, subscriptionId); const result = await client.workspaces.beginCreateOrUpdateAndWait( resourceGroupName, workspaceName, - quantumWorkspace + quantumWorkspace, ); console.log(result); } diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesDeleteSample.ts b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesDeleteSample.ts index 0b01a6f96c05..36d6d49de20a 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesDeleteSample.ts +++ b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a Workspace resource. * * @summary Deletes a Workspace resource. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesDelete.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesDelete.json */ async function quantumWorkspacesDelete() { const subscriptionId = @@ -31,7 +31,7 @@ async function quantumWorkspacesDelete() { const client = new AzureQuantumManagementClient(credential, subscriptionId); const result = await client.workspaces.beginDeleteAndWait( resourceGroupName, - workspaceName + workspaceName, ); console.log(result); } diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesGetSample.ts b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesGetSample.ts index 56f390083ae3..3e49b825163f 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesGetSample.ts +++ b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns the Workspace resource associated with the given name. * * @summary Returns the Workspace resource associated with the given name. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesGet.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesGet.json */ async function quantumWorkspacesGet() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesListByResourceGroupSample.ts b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesListByResourceGroupSample.ts index 1d10ae7ccf56..94c45ad6526e 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesListByResourceGroupSample.ts +++ b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of Workspaces within a resource group. * * @summary Gets the list of Workspaces within a resource group. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesListResourceGroup.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesListResourceGroup.json */ async function quantumWorkspacesListByResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function quantumWorkspacesListByResourceGroup() { const client = new AzureQuantumManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.workspaces.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesListBySubscriptionSample.ts b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesListBySubscriptionSample.ts index bc11d605a1df..7c1e033499bd 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesListBySubscriptionSample.ts +++ b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of Workspaces within a Subscription. * * @summary Gets the list of Workspaces within a Subscription. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesListSubscription.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesListSubscription.json */ async function quantumWorkspacesListBySubscription() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesUpdateTagsSample.ts b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesUpdateTagsSample.ts index 0a6197676b5e..e699a5e3a779 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesUpdateTagsSample.ts +++ b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesUpdateTagsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Updates an existing workspace's tags. * * @summary Updates an existing workspace's tags. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesPatch.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesPatch.json */ async function quantumWorkspacesPatchTags() { const subscriptionId = @@ -28,14 +28,14 @@ async function quantumWorkspacesPatchTags() { process.env["QUANTUM_RESOURCE_GROUP"] || "quantumResourcegroup"; const workspaceName = "quantumworkspace1"; const workspaceTags: TagsObject = { - tags: { tag1: "value1", tag2: "value2" } + tags: { tag1: "value1", tag2: "value2" }, }; const credential = new DefaultAzureCredential(); const client = new AzureQuantumManagementClient(credential, subscriptionId); const result = await client.workspaces.updateTags( resourceGroupName, workspaceName, - workspaceTags + workspaceTags, ); console.log(result); } diff --git a/sdk/quantum/arm-quantum/src/azureQuantumManagementClient.ts b/sdk/quantum/arm-quantum/src/azureQuantumManagementClient.ts index 960cce08b1b2..f25f7e635327 100644 --- a/sdk/quantum/arm-quantum/src/azureQuantumManagementClient.ts +++ b/sdk/quantum/arm-quantum/src/azureQuantumManagementClient.ts @@ -11,20 +11,20 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { WorkspacesImpl, OfferingsImpl, OperationsImpl, - WorkspaceImpl + WorkspaceImpl, } from "./operations"; import { Workspaces, Offerings, Operations, - Workspace + Workspace, } from "./operationsInterfaces"; import { AzureQuantumManagementClientOptionalParams } from "./models"; @@ -36,13 +36,13 @@ export class AzureQuantumManagementClient extends coreClient.ServiceClient { /** * Initializes a new instance of the AzureQuantumManagementClient class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The Azure subscription ID. + * @param subscriptionId The ID of the target subscription. The value must be an UUID. * @param options The parameter options */ constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: AzureQuantumManagementClientOptionalParams + options?: AzureQuantumManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -57,7 +57,7 @@ export class AzureQuantumManagementClient extends coreClient.ServiceClient { } const defaults: AzureQuantumManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; const packageDetails = `azsdk-js-arm-quantum/1.0.0-beta.2`; @@ -70,20 +70,21 @@ export class AzureQuantumManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -93,7 +94,7 @@ export class AzureQuantumManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -103,9 +104,9 @@ export class AzureQuantumManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -113,7 +114,7 @@ export class AzureQuantumManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-01-10-preview"; + this.apiVersion = options.apiVersion || "2023-11-13-preview"; this.workspaces = new WorkspacesImpl(this); this.offerings = new OfferingsImpl(this); this.operations = new OperationsImpl(this); @@ -130,7 +131,7 @@ export class AzureQuantumManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -144,7 +145,7 @@ export class AzureQuantumManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } diff --git a/sdk/quantum/arm-quantum/src/lroImpl.ts b/sdk/quantum/arm-quantum/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/quantum/arm-quantum/src/lroImpl.ts +++ b/sdk/quantum/arm-quantum/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/quantum/arm-quantum/src/models/index.ts b/sdk/quantum/arm-quantum/src/models/index.ts index 67b339eb71d6..eb3f2ae7940a 100644 --- a/sdk/quantum/arm-quantum/src/models/index.ts +++ b/sdk/quantum/arm-quantum/src/models/index.ts @@ -8,6 +8,31 @@ import * as coreClient from "@azure/core-client"; +/** Properties of a Workspace */ +export interface WorkspaceResourceProperties { + /** List of Providers selected for this Workspace */ + providers?: Provider[]; + /** + * Whether the current workspace is ready to accept Jobs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly usable?: UsableStatus; + /** + * Provisioning status field + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningStatus; + /** ARM Resource Id of the storage account associated with this workspace. */ + storageAccount?: string; + /** + * The URI of the workspace endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly endpointUri?: string; + /** Indicator of enablement of the Quantum workspace Api keys. */ + apiKeyEnabled?: boolean; +} + /** Information about a Provider. A Provider is an entity that offers Targets to run Azure Quantum Jobs. */ export interface Provider { /** Unique id of this provider. */ @@ -40,26 +65,10 @@ export interface QuantumWorkspaceIdentity { type?: ResourceIdentityType; } -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; -} - /** Common fields that are returned in the response for all Azure Resource Manager resources */ export interface Resource { /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; @@ -73,6 +82,27 @@ export interface Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: string; + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; } /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ @@ -155,7 +185,7 @@ export interface ProviderDescription { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; - /** A list of provider-specific properties. */ + /** Provider properties. */ properties?: ProviderProperties; } @@ -346,6 +376,43 @@ export interface CheckNameAvailabilityResult { readonly message?: string; } +/** Result of list Api keys and connection strings. */ +export interface ListKeysResult { + /** Indicator of enablement of the Quantum workspace Api keys. */ + apiKeyEnabled?: boolean; + /** The quantum workspace primary api key. */ + primaryKey?: ApiKey; + /** The quantum workspace secondary api key. */ + secondaryKey?: ApiKey; + /** + * The connection string of the primary api key. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly primaryConnectionString?: string; + /** + * The connection string of the secondary api key. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly secondaryConnectionString?: string; +} + +/** Azure quantum workspace Api key details. */ +export interface ApiKey { + /** The creation time of the api key. */ + createdAt?: Date; + /** + * The Api key. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly key?: string; +} + +/** List of api keys to be generated. */ +export interface APIKeys { + /** A list of api key names. */ + keys?: KeyType[]; +} + /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ export interface TrackedResource extends Resource { /** Resource tags. */ @@ -356,32 +423,10 @@ export interface TrackedResource extends Resource { /** The resource proxy definition object for quantum workspace. */ export interface QuantumWorkspace extends TrackedResource { + /** Gets or sets the properties. Define quantum workspace's specific properties. */ + properties?: WorkspaceResourceProperties; /** Managed Identity information. */ identity?: QuantumWorkspaceIdentity; - /** - * System metadata - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** List of Providers selected for this Workspace */ - providers?: Provider[]; - /** - * Whether the current workspace is ready to accept Jobs. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly usable?: UsableStatus; - /** - * Provisioning status field - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningStatus; - /** ARM Resource Id of the storage account associated with this workspace. */ - storageAccount?: string; - /** - * The URI of the workspace endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly endpointUri?: string; } /** Known values of {@link Status} that the service accepts. */ @@ -397,7 +442,7 @@ export enum KnownStatus { /** Deleted */ Deleted = "Deleted", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -421,7 +466,7 @@ export enum KnownUsableStatus { /** No */ No = "No", /** Partial */ - Partial = "Partial" + Partial = "Partial", } /** @@ -448,7 +493,7 @@ export enum KnownProvisioningStatus { /** ProviderProvisioning */ ProviderProvisioning = "ProviderProvisioning", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -470,7 +515,7 @@ export enum KnownResourceIdentityType { /** SystemAssigned */ SystemAssigned = "SystemAssigned", /** None */ - None = "None" + None = "None", } /** @@ -492,7 +537,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -507,6 +552,24 @@ export enum KnownCreatedByType { */ export type CreatedByType = string; +/** Known values of {@link KeyType} that the service accepts. */ +export enum KnownKeyType { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary", +} + +/** + * Defines values for KeyType. \ + * {@link KnownKeyType} can be used interchangeably with KeyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Primary** \ + * **Secondary** + */ +export type KeyType = string; + /** Optional parameters. */ export interface WorkspacesGetOptionalParams extends coreClient.OperationOptions {} @@ -603,7 +666,19 @@ export interface WorkspaceCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the checkNameAvailability operation. */ -export type WorkspaceCheckNameAvailabilityResponse = CheckNameAvailabilityResult; +export type WorkspaceCheckNameAvailabilityResponse = + CheckNameAvailabilityResult; + +/** Optional parameters. */ +export interface WorkspaceListKeysOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listKeys operation. */ +export type WorkspaceListKeysResponse = ListKeysResult; + +/** Optional parameters. */ +export interface WorkspaceRegenerateKeysOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface AzureQuantumManagementClientOptionalParams diff --git a/sdk/quantum/arm-quantum/src/models/mappers.ts b/sdk/quantum/arm-quantum/src/models/mappers.ts index 61cc18cd0a62..d0c9b6a219e7 100644 --- a/sdk/quantum/arm-quantum/src/models/mappers.ts +++ b/sdk/quantum/arm-quantum/src/models/mappers.ts @@ -8,6 +8,60 @@ import * as coreClient from "@azure/core-client"; +export const WorkspaceResourceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceResourceProperties", + modelProperties: { + providers: { + serializedName: "providers", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Provider", + }, + }, + }, + }, + usable: { + serializedName: "usable", + readOnly: true, + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + storageAccount: { + serializedName: "storageAccount", + type: { + name: "String", + }, + }, + endpointUri: { + serializedName: "endpointUri", + readOnly: true, + type: { + name: "String", + }, + }, + apiKeyEnabled: { + serializedName: "apiKeyEnabled", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + export const Provider: coreClient.CompositeMapper = { type: { name: "Composite", @@ -16,41 +70,41 @@ export const Provider: coreClient.CompositeMapper = { providerId: { serializedName: "providerId", type: { - name: "String" - } + name: "String", + }, }, providerSku: { serializedName: "providerSku", type: { - name: "String" - } + name: "String", + }, }, instanceUri: { serializedName: "instanceUri", type: { - name: "String" - } + name: "String", + }, }, applicationName: { serializedName: "applicationName", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", type: { - name: "String" - } + name: "String", + }, }, resourceUsageId: { serializedName: "resourceUsageId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const QuantumWorkspaceIdentity: coreClient.CompositeMapper = { @@ -62,24 +116,61 @@ export const QuantumWorkspaceIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const Resource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -90,71 +181,41 @@ export const SystemData: coreClient.CompositeMapper = { createdBy: { serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, createdByType: { serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, lastModifiedByType: { serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", type: { - name: "DateTime" - } - } - } - } -}; - -export const Resource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Resource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } + name: "DateTime", + }, }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - } - } - } + }, + }, }; export const ErrorResponse: coreClient.CompositeMapper = { @@ -166,11 +227,11 @@ export const ErrorResponse: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorDetail" - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, }; export const ErrorDetail: coreClient.CompositeMapper = { @@ -182,22 +243,22 @@ export const ErrorDetail: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -207,10 +268,10 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorDetail" - } - } - } + className: "ErrorDetail", + }, + }, + }, }, additionalInfo: { serializedName: "additionalInfo", @@ -220,13 +281,13 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; export const ErrorAdditionalInfo: coreClient.CompositeMapper = { @@ -238,19 +299,19 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, info: { serializedName: "info", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const TagsObject: coreClient.CompositeMapper = { @@ -262,11 +323,11 @@ export const TagsObject: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const WorkspaceListResult: coreClient.CompositeMapper = { @@ -281,19 +342,19 @@ export const WorkspaceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "QuantumWorkspace" - } - } - } + className: "QuantumWorkspace", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OfferingsListResult: coreClient.CompositeMapper = { @@ -308,19 +369,19 @@ export const OfferingsListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ProviderDescription" - } - } - } + className: "ProviderDescription", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProviderDescription: coreClient.CompositeMapper = { @@ -331,25 +392,25 @@ export const ProviderDescription: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "ProviderProperties" - } - } - } - } + className: "ProviderProperties", + }, + }, + }, + }, }; export const ProviderProperties: coreClient.CompositeMapper = { @@ -361,43 +422,43 @@ export const ProviderProperties: coreClient.CompositeMapper = { serializedName: "description", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, providerType: { serializedName: "providerType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, company: { serializedName: "company", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, defaultEndpoint: { serializedName: "defaultEndpoint", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, aad: { serializedName: "aad", type: { name: "Composite", - className: "ProviderPropertiesAad" - } + className: "ProviderPropertiesAad", + }, }, managedApplication: { serializedName: "managedApplication", type: { name: "Composite", - className: "ProviderPropertiesManagedApplication" - } + className: "ProviderPropertiesManagedApplication", + }, }, targets: { serializedName: "targets", @@ -406,10 +467,10 @@ export const ProviderProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TargetDescription" - } - } - } + className: "TargetDescription", + }, + }, + }, }, skus: { serializedName: "skus", @@ -418,10 +479,10 @@ export const ProviderProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SkuDescription" - } - } - } + className: "SkuDescription", + }, + }, + }, }, quotaDimensions: { serializedName: "quotaDimensions", @@ -430,10 +491,10 @@ export const ProviderProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "QuotaDimension" - } - } - } + className: "QuotaDimension", + }, + }, + }, }, pricingDimensions: { serializedName: "pricingDimensions", @@ -442,13 +503,13 @@ export const ProviderProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PricingDimension" - } - } - } - } - } - } + className: "PricingDimension", + }, + }, + }, + }, + }, + }, }; export const ProviderPropertiesAad: coreClient.CompositeMapper = { @@ -460,43 +521,44 @@ export const ProviderPropertiesAad: coreClient.CompositeMapper = { serializedName: "applicationId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const ProviderPropertiesManagedApplication: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProviderPropertiesManagedApplication", - modelProperties: { - publisherId: { - serializedName: "publisherId", - readOnly: true, - type: { - name: "String" - } + name: "String", + }, }, - offerId: { - serializedName: "offerId", - readOnly: true, - type: { - name: "String" - } - } - } - } + }, + }, }; +export const ProviderPropertiesManagedApplication: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ProviderPropertiesManagedApplication", + modelProperties: { + publisherId: { + serializedName: "publisherId", + readOnly: true, + type: { + name: "String", + }, + }, + offerId: { + serializedName: "offerId", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; + export const TargetDescription: coreClient.CompositeMapper = { type: { name: "Composite", @@ -505,20 +567,20 @@ export const TargetDescription: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, acceptedDataFormats: { serializedName: "acceptedDataFormats", @@ -526,10 +588,10 @@ export const TargetDescription: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, acceptedContentEncodings: { serializedName: "acceptedContentEncodings", @@ -537,13 +599,13 @@ export const TargetDescription: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const SkuDescription: coreClient.CompositeMapper = { @@ -554,38 +616,38 @@ export const SkuDescription: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, restrictedAccessUri: { serializedName: "restrictedAccessUri", type: { - name: "String" - } + name: "String", + }, }, autoAdd: { serializedName: "autoAdd", type: { - name: "Boolean" - } + name: "Boolean", + }, }, targets: { serializedName: "targets", @@ -593,10 +655,10 @@ export const SkuDescription: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, quotaDimensions: { serializedName: "quotaDimensions", @@ -605,10 +667,10 @@ export const SkuDescription: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "QuotaDimension" - } - } - } + className: "QuotaDimension", + }, + }, + }, }, pricingDetails: { serializedName: "pricingDetails", @@ -617,13 +679,13 @@ export const SkuDescription: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PricingDetail" - } - } - } - } - } - } + className: "PricingDetail", + }, + }, + }, + }, + }, + }, }; export const QuotaDimension: coreClient.CompositeMapper = { @@ -634,53 +696,53 @@ export const QuotaDimension: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, scope: { serializedName: "scope", type: { - name: "String" - } + name: "String", + }, }, period: { serializedName: "period", type: { - name: "String" - } + name: "String", + }, }, quota: { serializedName: "quota", type: { - name: "Number" - } + name: "Number", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, unit: { serializedName: "unit", type: { - name: "String" - } + name: "String", + }, }, unitPlural: { serializedName: "unitPlural", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PricingDetail: coreClient.CompositeMapper = { @@ -691,17 +753,17 @@ export const PricingDetail: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PricingDimension: coreClient.CompositeMapper = { @@ -712,17 +774,17 @@ export const PricingDimension: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationsList: coreClient.CompositeMapper = { @@ -733,8 +795,8 @@ export const OperationsList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -744,13 +806,13 @@ export const OperationsList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } - } - } - } + className: "Operation", + }, + }, + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -761,24 +823,24 @@ export const Operation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, isDataAction: { serializedName: "isDataAction", type: { - name: "Boolean" - } + name: "Boolean", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } - } - } - } + className: "OperationDisplay", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -789,29 +851,29 @@ export const OperationDisplay: coreClient.CompositeMapper = { provider: { serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CheckNameAvailabilityParameters: coreClient.CompositeMapper = { @@ -822,18 +884,18 @@ export const CheckNameAvailabilityParameters: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { defaultValue: "Microsoft.Quantum/Workspaces", serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CheckNameAvailabilityResult: coreClient.CompositeMapper = { @@ -844,24 +906,110 @@ export const CheckNameAvailabilityResult: coreClient.CompositeMapper = { nameAvailable: { serializedName: "nameAvailable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, reason: { serializedName: "reason", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const ListKeysResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListKeysResult", + modelProperties: { + apiKeyEnabled: { + serializedName: "apiKeyEnabled", + type: { + name: "Boolean", + }, + }, + primaryKey: { + serializedName: "primaryKey", + type: { + name: "Composite", + className: "ApiKey", + }, + }, + secondaryKey: { + serializedName: "secondaryKey", + type: { + name: "Composite", + className: "ApiKey", + }, + }, + primaryConnectionString: { + serializedName: "primaryConnectionString", + readOnly: true, + type: { + name: "String", + }, + }, + secondaryConnectionString: { + serializedName: "secondaryConnectionString", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ApiKey: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiKey", + modelProperties: { + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime", + }, + }, + key: { + serializedName: "key", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const APIKeys: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "APIKeys", + modelProperties: { + keys: { + serializedName: "keys", + type: { + name: "Sequence", + element: { + defaultValue: "Primary", + type: { + name: "String", + }, + }, + }, + }, + }, + }, }; export const TrackedResource: coreClient.CompositeMapper = { @@ -874,18 +1022,18 @@ export const TrackedResource: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, location: { serializedName: "location", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const QuantumWorkspace: coreClient.CompositeMapper = { @@ -894,59 +1042,20 @@ export const QuantumWorkspace: coreClient.CompositeMapper = { className: "QuantumWorkspace", modelProperties: { ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "QuantumWorkspaceIdentity" - } + className: "WorkspaceResourceProperties", + }, }, - systemData: { - serializedName: "systemData", + identity: { + serializedName: "identity", type: { name: "Composite", - className: "SystemData" - } - }, - providers: { - serializedName: "properties.providers", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Provider" - } - } - } - }, - usable: { - serializedName: "properties.usable", - readOnly: true, - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } + className: "QuantumWorkspaceIdentity", + }, }, - storageAccount: { - serializedName: "properties.storageAccount", - type: { - name: "String" - } - }, - endpointUri: { - serializedName: "properties.endpointUri", - readOnly: true, - type: { - name: "String" - } - } - } - } + }, + }, }; diff --git a/sdk/quantum/arm-quantum/src/models/parameters.ts b/sdk/quantum/arm-quantum/src/models/parameters.ts index ddef0a28c5bf..0e21b91485df 100644 --- a/sdk/quantum/arm-quantum/src/models/parameters.ts +++ b/sdk/quantum/arm-quantum/src/models/parameters.ts @@ -9,12 +9,13 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { QuantumWorkspace as QuantumWorkspaceMapper, TagsObject as TagsObjectMapper, - CheckNameAvailabilityParameters as CheckNameAvailabilityParametersMapper + CheckNameAvailabilityParameters as CheckNameAvailabilityParametersMapper, + APIKeys as APIKeysMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -24,9 +25,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -35,33 +36,37 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const resourceGroupName: OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { + constraints: { + MaxLength: 90, + MinLength: 1, + }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-01-10-preview", + defaultValue: "2023-11-13-preview", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const subscriptionId: OperationURLParameter = { @@ -70,20 +75,23 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "Uuid", + }, + }, }; export const workspaceName: OperationURLParameter = { parameterPath: "workspaceName", mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"), + }, serializedName: "workspaceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const contentType: OperationParameter = { @@ -93,19 +101,19 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const quantumWorkspace: OperationParameter = { parameterPath: "quantumWorkspace", - mapper: QuantumWorkspaceMapper + mapper: QuantumWorkspaceMapper, }; export const workspaceTags: OperationParameter = { parameterPath: "workspaceTags", - mapper: TagsObjectMapper + mapper: TagsObjectMapper, }; export const nextLink: OperationURLParameter = { @@ -114,10 +122,10 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const locationName: OperationURLParameter = { @@ -126,12 +134,17 @@ export const locationName: OperationURLParameter = { serializedName: "locationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const checkNameAvailabilityParameters: OperationParameter = { parameterPath: "checkNameAvailabilityParameters", - mapper: CheckNameAvailabilityParametersMapper + mapper: CheckNameAvailabilityParametersMapper, +}; + +export const keySpecification: OperationParameter = { + parameterPath: "keySpecification", + mapper: APIKeysMapper, }; diff --git a/sdk/quantum/arm-quantum/src/operations/offerings.ts b/sdk/quantum/arm-quantum/src/operations/offerings.ts index 9193302944ca..041fdb366f9e 100644 --- a/sdk/quantum/arm-quantum/src/operations/offerings.ts +++ b/sdk/quantum/arm-quantum/src/operations/offerings.ts @@ -18,7 +18,7 @@ import { OfferingsListNextOptionalParams, OfferingsListOptionalParams, OfferingsListResponse, - OfferingsListNextResponse + OfferingsListNextResponse, } from "../models"; /// @@ -41,7 +41,7 @@ export class OfferingsImpl implements Offerings { */ public list( locationName: string, - options?: OfferingsListOptionalParams + options?: OfferingsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(locationName, options); return { @@ -56,14 +56,14 @@ export class OfferingsImpl implements Offerings { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(locationName, options, settings); - } + }, }; } private async *listPagingPage( locationName: string, options?: OfferingsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OfferingsListResponse; let continuationToken = settings?.continuationToken; @@ -85,7 +85,7 @@ export class OfferingsImpl implements Offerings { private async *listPagingAll( locationName: string, - options?: OfferingsListOptionalParams + options?: OfferingsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(locationName, options)) { yield* page; @@ -99,11 +99,11 @@ export class OfferingsImpl implements Offerings { */ private _list( locationName: string, - options?: OfferingsListOptionalParams + options?: OfferingsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { locationName, options }, - listOperationSpec + listOperationSpec, ); } @@ -116,11 +116,11 @@ export class OfferingsImpl implements Offerings { private _listNext( locationName: string, nextLink: string, - options?: OfferingsListNextOptionalParams + options?: OfferingsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { locationName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -128,43 +128,42 @@ export class OfferingsImpl implements Offerings { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Quantum/locations/{locationName}/offerings", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Quantum/locations/{locationName}/offerings", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OfferingsListResult + bodyMapper: Mappers.OfferingsListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OfferingsListResult + bodyMapper: Mappers.OfferingsListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.locationName + Parameters.locationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/quantum/arm-quantum/src/operations/operations.ts b/sdk/quantum/arm-quantum/src/operations/operations.ts index 813433b7cdac..0eb7a763116f 100644 --- a/sdk/quantum/arm-quantum/src/operations/operations.ts +++ b/sdk/quantum/arm-quantum/src/operations/operations.ts @@ -18,7 +18,7 @@ import { OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, - OperationsListNextResponse + OperationsListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class OperationsImpl implements Operations { */ private _listNext( nextLink: string, - options?: OperationsListNextOptionalParams + options?: OperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationsList + bodyMapper: Mappers.OperationsList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationsList + bodyMapper: Mappers.OperationsList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/quantum/arm-quantum/src/operations/workspace.ts b/sdk/quantum/arm-quantum/src/operations/workspace.ts index b71304e338d8..d029fbfad201 100644 --- a/sdk/quantum/arm-quantum/src/operations/workspace.ts +++ b/sdk/quantum/arm-quantum/src/operations/workspace.ts @@ -14,7 +14,11 @@ import { AzureQuantumManagementClient } from "../azureQuantumManagementClient"; import { CheckNameAvailabilityParameters, WorkspaceCheckNameAvailabilityOptionalParams, - WorkspaceCheckNameAvailabilityResponse + WorkspaceCheckNameAvailabilityResponse, + WorkspaceListKeysOptionalParams, + WorkspaceListKeysResponse, + APIKeys, + WorkspaceRegenerateKeysOptionalParams, } from "../models"; /** Class containing Workspace operations. */ @@ -38,11 +42,50 @@ export class WorkspaceImpl implements Workspace { checkNameAvailability( locationName: string, checkNameAvailabilityParameters: CheckNameAvailabilityParameters, - options?: WorkspaceCheckNameAvailabilityOptionalParams + options?: WorkspaceCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { locationName, checkNameAvailabilityParameters, options }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, + ); + } + + /** + * Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the + * Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key + * regeneration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the quantum workspace resource. + * @param options The options parameters. + */ + listKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceListKeysOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listKeysOperationSpec, + ); + } + + /** + * Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop + * working immediately. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the quantum workspace resource. + * @param keySpecification Which key to regenerate: primary or secondary. + * @param options The options parameters. + */ + regenerateKeys( + resourceGroupName: string, + workspaceName: string, + keySpecification: APIKeys, + options?: WorkspaceRegenerateKeysOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, keySpecification, options }, + regenerateKeysOperationSpec, ); } } @@ -50,25 +93,66 @@ export class WorkspaceImpl implements Workspace { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Quantum/locations/{locationName}/checkNameAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Quantum/locations/{locationName}/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckNameAvailabilityResult + bodyMapper: Mappers.CheckNameAvailabilityResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.checkNameAvailabilityParameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const listKeysOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/listKeys", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ListKeysResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.workspaceName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const regenerateKeysOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/regenerateKey", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.keySpecification, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.workspaceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/quantum/arm-quantum/src/operations/workspaces.ts b/sdk/quantum/arm-quantum/src/operations/workspaces.ts index 269d4a41578f..bbc5583e74c4 100644 --- a/sdk/quantum/arm-quantum/src/operations/workspaces.ts +++ b/sdk/quantum/arm-quantum/src/operations/workspaces.ts @@ -16,7 +16,7 @@ import { AzureQuantumManagementClient } from "../azureQuantumManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -36,7 +36,7 @@ import { WorkspacesUpdateTagsResponse, WorkspacesDeleteOptionalParams, WorkspacesListBySubscriptionNextResponse, - WorkspacesListByResourceGroupNextResponse + WorkspacesListByResourceGroupNextResponse, } from "../models"; /// @@ -57,7 +57,7 @@ export class WorkspacesImpl implements Workspaces { * @param options The options parameters. */ public listBySubscription( - options?: WorkspacesListBySubscriptionOptionalParams + options?: WorkspacesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -72,13 +72,13 @@ export class WorkspacesImpl implements Workspaces { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: WorkspacesListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WorkspacesListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -99,7 +99,7 @@ export class WorkspacesImpl implements Workspaces { } private async *listBySubscriptionPagingAll( - options?: WorkspacesListBySubscriptionOptionalParams + options?: WorkspacesListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -108,12 +108,12 @@ export class WorkspacesImpl implements Workspaces { /** * Gets the list of Workspaces within a resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ public listByResourceGroup( resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams + options?: WorkspacesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -130,16 +130,16 @@ export class WorkspacesImpl implements Workspaces { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: WorkspacesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WorkspacesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -154,7 +154,7 @@ export class WorkspacesImpl implements Workspaces { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -165,11 +165,11 @@ export class WorkspacesImpl implements Workspaces { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams + options?: WorkspacesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -177,24 +177,24 @@ export class WorkspacesImpl implements Workspaces { /** * Returns the Workspace resource associated with the given name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the quantum workspace resource. * @param options The options parameters. */ get( resourceGroupName: string, workspaceName: string, - options?: WorkspacesGetOptionalParams + options?: WorkspacesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - getOperationSpec + getOperationSpec, ); } /** * Creates or updates a workspace resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the quantum workspace resource. * @param quantumWorkspace Workspace details. * @param options The options parameters. @@ -203,7 +203,7 @@ export class WorkspacesImpl implements Workspaces { resourceGroupName: string, workspaceName: string, quantumWorkspace: QuantumWorkspace, - options?: WorkspacesCreateOrUpdateOptionalParams + options?: WorkspacesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -212,21 +212,20 @@ export class WorkspacesImpl implements Workspaces { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -235,8 +234,8 @@ export class WorkspacesImpl implements Workspaces { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -244,15 +243,15 @@ export class WorkspacesImpl implements Workspaces { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, workspaceName, quantumWorkspace, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< WorkspacesCreateOrUpdateResponse, @@ -260,7 +259,7 @@ export class WorkspacesImpl implements Workspaces { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -268,7 +267,7 @@ export class WorkspacesImpl implements Workspaces { /** * Creates or updates a workspace resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the quantum workspace resource. * @param quantumWorkspace Workspace details. * @param options The options parameters. @@ -277,20 +276,20 @@ export class WorkspacesImpl implements Workspaces { resourceGroupName: string, workspaceName: string, quantumWorkspace: QuantumWorkspace, - options?: WorkspacesCreateOrUpdateOptionalParams + options?: WorkspacesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, workspaceName, quantumWorkspace, - options + options, ); return poller.pollUntilDone(); } /** * Updates an existing workspace's tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the quantum workspace resource. * @param workspaceTags Parameters supplied to update tags. * @param options The options parameters. @@ -299,42 +298,41 @@ export class WorkspacesImpl implements Workspaces { resourceGroupName: string, workspaceName: string, workspaceTags: TagsObject, - options?: WorkspacesUpdateTagsOptionalParams + options?: WorkspacesUpdateTagsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, workspaceTags, options }, - updateTagsOperationSpec + updateTagsOperationSpec, ); } /** * Deletes a Workspace resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the quantum workspace resource. * @param options The options parameters. */ async beginDelete( resourceGroupName: string, workspaceName: string, - options?: WorkspacesDeleteOptionalParams + options?: WorkspacesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -343,8 +341,8 @@ export class WorkspacesImpl implements Workspaces { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -352,19 +350,20 @@ export class WorkspacesImpl implements Workspaces { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, workspaceName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -372,19 +371,19 @@ export class WorkspacesImpl implements Workspaces { /** * Deletes a Workspace resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the quantum workspace resource. * @param options The options parameters. */ async beginDeleteAndWait( resourceGroupName: string, workspaceName: string, - options?: WorkspacesDeleteOptionalParams + options?: WorkspacesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, workspaceName, - options + options, ); return poller.pollUntilDone(); } @@ -394,26 +393,26 @@ export class WorkspacesImpl implements Workspaces { * @param options The options parameters. */ private _listBySubscription( - options?: WorkspacesListBySubscriptionOptionalParams + options?: WorkspacesListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } /** * Gets the list of Workspaces within a resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ private _listByResourceGroup( resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams + options?: WorkspacesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -424,28 +423,28 @@ export class WorkspacesImpl implements Workspaces { */ private _listBySubscriptionNext( nextLink: string, - options?: WorkspacesListBySubscriptionNextOptionalParams + options?: WorkspacesListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } /** * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. * @param options The options parameters. */ private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: WorkspacesListByResourceGroupNextOptionalParams + options?: WorkspacesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -453,47 +452,45 @@ export class WorkspacesImpl implements Workspaces { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.QuantumWorkspace + bodyMapper: Mappers.QuantumWorkspace, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.QuantumWorkspace + bodyMapper: Mappers.QuantumWorkspace, }, 201: { - bodyMapper: Mappers.QuantumWorkspace + bodyMapper: Mappers.QuantumWorkspace, }, 202: { - bodyMapper: Mappers.QuantumWorkspace + bodyMapper: Mappers.QuantumWorkspace, }, 204: { - bodyMapper: Mappers.QuantumWorkspace + bodyMapper: Mappers.QuantumWorkspace, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.quantumWorkspace, queryParameters: [Parameters.apiVersion], @@ -501,23 +498,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateTagsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.QuantumWorkspace + bodyMapper: Mappers.QuantumWorkspace, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.workspaceTags, queryParameters: [Parameters.apiVersion], @@ -525,15 +521,14 @@ const updateTagsOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}", httpMethod: "DELETE", responses: { 200: {}, @@ -541,93 +536,91 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Quantum/workspaces", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Quantum/workspaces", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkspaceListResult + bodyMapper: Mappers.WorkspaceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkspaceListResult + bodyMapper: Mappers.WorkspaceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkspaceListResult + bodyMapper: Mappers.WorkspaceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkspaceListResult + bodyMapper: Mappers.WorkspaceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/quantum/arm-quantum/src/operationsInterfaces/offerings.ts b/sdk/quantum/arm-quantum/src/operationsInterfaces/offerings.ts index 8ae818d90725..5e6945bee606 100644 --- a/sdk/quantum/arm-quantum/src/operationsInterfaces/offerings.ts +++ b/sdk/quantum/arm-quantum/src/operationsInterfaces/offerings.ts @@ -19,6 +19,6 @@ export interface Offerings { */ list( locationName: string, - options?: OfferingsListOptionalParams + options?: OfferingsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/quantum/arm-quantum/src/operationsInterfaces/operations.ts b/sdk/quantum/arm-quantum/src/operationsInterfaces/operations.ts index 0c50b09b459e..87b5a4492376 100644 --- a/sdk/quantum/arm-quantum/src/operationsInterfaces/operations.ts +++ b/sdk/quantum/arm-quantum/src/operationsInterfaces/operations.ts @@ -17,6 +17,6 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/quantum/arm-quantum/src/operationsInterfaces/workspace.ts b/sdk/quantum/arm-quantum/src/operationsInterfaces/workspace.ts index 04e44aaa243d..d54bef1db250 100644 --- a/sdk/quantum/arm-quantum/src/operationsInterfaces/workspace.ts +++ b/sdk/quantum/arm-quantum/src/operationsInterfaces/workspace.ts @@ -9,7 +9,11 @@ import { CheckNameAvailabilityParameters, WorkspaceCheckNameAvailabilityOptionalParams, - WorkspaceCheckNameAvailabilityResponse + WorkspaceCheckNameAvailabilityResponse, + WorkspaceListKeysOptionalParams, + WorkspaceListKeysResponse, + APIKeys, + WorkspaceRegenerateKeysOptionalParams, } from "../models"; /** Interface representing a Workspace. */ @@ -23,6 +27,33 @@ export interface Workspace { checkNameAvailability( locationName: string, checkNameAvailabilityParameters: CheckNameAvailabilityParameters, - options?: WorkspaceCheckNameAvailabilityOptionalParams + options?: WorkspaceCheckNameAvailabilityOptionalParams, ): Promise; + /** + * Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the + * Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key + * regeneration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the quantum workspace resource. + * @param options The options parameters. + */ + listKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceListKeysOptionalParams, + ): Promise; + /** + * Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop + * working immediately. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the quantum workspace resource. + * @param keySpecification Which key to regenerate: primary or secondary. + * @param options The options parameters. + */ + regenerateKeys( + resourceGroupName: string, + workspaceName: string, + keySpecification: APIKeys, + options?: WorkspaceRegenerateKeysOptionalParams, + ): Promise; } diff --git a/sdk/quantum/arm-quantum/src/operationsInterfaces/workspaces.ts b/sdk/quantum/arm-quantum/src/operationsInterfaces/workspaces.ts index 13a0a3cc9f10..7b2da8ec7f09 100644 --- a/sdk/quantum/arm-quantum/src/operationsInterfaces/workspaces.ts +++ b/sdk/quantum/arm-quantum/src/operationsInterfaces/workspaces.ts @@ -19,7 +19,7 @@ import { TagsObject, WorkspacesUpdateTagsOptionalParams, WorkspacesUpdateTagsResponse, - WorkspacesDeleteOptionalParams + WorkspacesDeleteOptionalParams, } from "../models"; /// @@ -30,31 +30,31 @@ export interface Workspaces { * @param options The options parameters. */ listBySubscription( - options?: WorkspacesListBySubscriptionOptionalParams + options?: WorkspacesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the list of Workspaces within a resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ listByResourceGroup( resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams + options?: WorkspacesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Returns the Workspace resource associated with the given name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the quantum workspace resource. * @param options The options parameters. */ get( resourceGroupName: string, workspaceName: string, - options?: WorkspacesGetOptionalParams + options?: WorkspacesGetOptionalParams, ): Promise; /** * Creates or updates a workspace resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the quantum workspace resource. * @param quantumWorkspace Workspace details. * @param options The options parameters. @@ -63,7 +63,7 @@ export interface Workspaces { resourceGroupName: string, workspaceName: string, quantumWorkspace: QuantumWorkspace, - options?: WorkspacesCreateOrUpdateOptionalParams + options?: WorkspacesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -72,7 +72,7 @@ export interface Workspaces { >; /** * Creates or updates a workspace resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the quantum workspace resource. * @param quantumWorkspace Workspace details. * @param options The options parameters. @@ -81,11 +81,11 @@ export interface Workspaces { resourceGroupName: string, workspaceName: string, quantumWorkspace: QuantumWorkspace, - options?: WorkspacesCreateOrUpdateOptionalParams + options?: WorkspacesCreateOrUpdateOptionalParams, ): Promise; /** * Updates an existing workspace's tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the quantum workspace resource. * @param workspaceTags Parameters supplied to update tags. * @param options The options parameters. @@ -94,28 +94,28 @@ export interface Workspaces { resourceGroupName: string, workspaceName: string, workspaceTags: TagsObject, - options?: WorkspacesUpdateTagsOptionalParams + options?: WorkspacesUpdateTagsOptionalParams, ): Promise; /** * Deletes a Workspace resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the quantum workspace resource. * @param options The options parameters. */ beginDelete( resourceGroupName: string, workspaceName: string, - options?: WorkspacesDeleteOptionalParams + options?: WorkspacesDeleteOptionalParams, ): Promise, void>>; /** * Deletes a Workspace resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the quantum workspace resource. * @param options The options parameters. */ beginDeleteAndWait( resourceGroupName: string, workspaceName: string, - options?: WorkspacesDeleteOptionalParams + options?: WorkspacesDeleteOptionalParams, ): Promise; } diff --git a/sdk/quantum/arm-quantum/src/pagingHelper.ts b/sdk/quantum/arm-quantum/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/quantum/arm-quantum/src/pagingHelper.ts +++ b/sdk/quantum/arm-quantum/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/quantum/arm-quantum/test/quantum_operations_test.spec.ts b/sdk/quantum/arm-quantum/test/quantum_operations_test.spec.ts index a796d725e78b..4b08bd51c18c 100644 --- a/sdk/quantum/arm-quantum/test/quantum_operations_test.spec.ts +++ b/sdk/quantum/arm-quantum/test/quantum_operations_test.spec.ts @@ -64,16 +64,19 @@ describe("quantum test", () => { resourcename, { location, - providers: [ - { - providerId: "microsoft-qc", - providerSku: "learn-and-develop", - } - ], - storageAccount: "/subscriptions/" + subscriptionId + "/resourcegroups/" + resourceGroup + "/providers/Microsoft.Storage/storageAccounts/czwtestsa", + properties: { + providers: [ + { + providerId: "microsoft-qc", + providerSku: "learn-and-develop", + } + ], + storageAccount: "/subscriptions/" + subscriptionId + "/resourcegroups/" + resourceGroup + "/providers/Microsoft.Storage/storageAccounts/czwtestsa", + }, identity: { type: "SystemAssigned" } }, testPollingOptions); + await delay(10000); assert.equal(res.name, resourcename); }); diff --git a/sdk/schemaregistry/schema-registry-avro/package.json b/sdk/schemaregistry/schema-registry-avro/package.json index 3d3df5b55ac8..78aeb4769ba2 100644 --- a/sdk/schemaregistry/schema-registry-avro/package.json +++ b/sdk/schemaregistry/schema-registry-avro/package.json @@ -23,7 +23,7 @@ "extract-api": "tsc -p . && api-extractor run --local", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "dev-tool run test:browser", - "integration-test:node": "dev-tool run test:node-js-input --use-esm-workaround=true -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js", diff --git a/sdk/schemaregistry/schema-registry-avro/tests.yml b/sdk/schemaregistry/schema-registry-avro/tests.yml index cea4d80d975c..fc4a5a73a65e 100644 --- a/sdk/schemaregistry/schema-registry-avro/tests.yml +++ b/sdk/schemaregistry/schema-registry-avro/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/schema-registry-avro" ServiceDirectory: schemaregistry diff --git a/sdk/schemaregistry/schema-registry-json/tests.yml b/sdk/schemaregistry/schema-registry-json/tests.yml index f02e495f9bb9..d6a6beb63b6a 100644 --- a/sdk/schemaregistry/schema-registry-json/tests.yml +++ b/sdk/schemaregistry/schema-registry-json/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/schema-registry-json" ServiceDirectory: schemaregistry diff --git a/sdk/schemaregistry/schema-registry/tests.yml b/sdk/schemaregistry/schema-registry/tests.yml index 7a059eb3a2eb..1b1fdad4f778 100644 --- a/sdk/schemaregistry/schema-registry/tests.yml +++ b/sdk/schemaregistry/schema-registry/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/schema-registry" ServiceDirectory: schemaregistry diff --git a/sdk/search/arm-search/CHANGELOG.md b/sdk/search/arm-search/CHANGELOG.md index 41926e74cd3e..7c0d9d8b72ad 100644 --- a/sdk/search/arm-search/CHANGELOG.md +++ b/sdk/search/arm-search/CHANGELOG.md @@ -1,5 +1,58 @@ # Release History +## 3.3.0-beta.1 (2024-03-12) + +**Features** + + - Added operation group NetworkSecurityPerimeterConfigurations + - Added Interface NetworkSecurityPerimeterConfiguration + - Added Interface NetworkSecurityPerimeterConfigurationListResult + - Added Interface NetworkSecurityPerimeterConfigurationsGetOptionalParams + - Added Interface NetworkSecurityPerimeterConfigurationsListByServiceNextOptionalParams + - Added Interface NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams + - Added Interface NetworkSecurityPerimeterConfigurationsReconcileHeaders + - Added Interface NetworkSecurityPerimeterConfigurationsReconcileOptionalParams + - Added Interface NSPConfigAccessRule + - Added Interface NSPConfigAccessRuleProperties + - Added Interface NSPConfigAssociation + - Added Interface NSPConfigNetworkSecurityPerimeterRule + - Added Interface NSPConfigPerimeter + - Added Interface NSPConfigProfile + - Added Interface NSPProvisioningIssue + - Added Interface NSPProvisioningIssueProperties + - Added Interface OperationAvailability + - Added Interface OperationLogsSpecification + - Added Interface OperationMetricDimension + - Added Interface OperationMetricsSpecification + - Added Interface OperationProperties + - Added Interface OperationServiceSpecification + - Added Interface ProxyResource + - Added Interface UserAssignedManagedIdentity + - Added Type Alias NetworkSecurityPerimeterConfigurationsGetResponse + - Added Type Alias NetworkSecurityPerimeterConfigurationsListByServiceNextResponse + - Added Type Alias NetworkSecurityPerimeterConfigurationsListByServiceResponse + - Added Type Alias NetworkSecurityPerimeterConfigurationsReconcileResponse + - Added Type Alias SearchBypass + - Added Type Alias SearchDisabledDataExfiltrationOption + - Interface CloudError has a new optional parameter message + - Interface Identity has a new optional parameter userAssignedIdentities + - Interface NetworkRuleSet has a new optional parameter bypass + - Interface Operation has a new optional parameter isDataAction + - Interface Operation has a new optional parameter origin + - Interface Operation has a new optional parameter properties + - Interface SearchService has a new optional parameter disabledDataExfiltrationOptions + - Interface SearchService has a new optional parameter eTag + - Interface SearchServiceUpdate has a new optional parameter disabledDataExfiltrationOptions + - Interface SearchServiceUpdate has a new optional parameter eTag + - Added Enum KnownIdentityType + - Added Enum KnownPublicNetworkAccess + - Added Enum KnownSearchBypass + - Added Enum KnownSearchDisabledDataExfiltrationOption + - Added Enum KnownSharedPrivateLinkResourceProvisioningState + - Added Enum KnownSharedPrivateLinkResourceStatus + - Added Enum KnownSkuName + + ## 3.2.0 (2023-10-09) **Features** diff --git a/sdk/search/arm-search/LICENSE b/sdk/search/arm-search/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/search/arm-search/LICENSE +++ b/sdk/search/arm-search/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/search/arm-search/README.md b/sdk/search/arm-search/README.md index 34902b6166a2..1b4e86b147a2 100644 --- a/sdk/search/arm-search/README.md +++ b/sdk/search/arm-search/README.md @@ -6,7 +6,7 @@ Client that can be used to manage Azure AI Search services and API keys. [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/search/arm-search) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-search) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-search) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-search?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/search/arm-search/_meta.json b/sdk/search/arm-search/_meta.json index 3cb9a904799c..8704ffcb5b3e 100644 --- a/sdk/search/arm-search/_meta.json +++ b/sdk/search/arm-search/_meta.json @@ -1,8 +1,8 @@ { - "commit": "663ea6835c33bca216b63f777227db6a459a06b3", + "commit": "3004d02873a4b583ba6a3966a370f1ba19b5da1d", "readme": "specification/search/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\search\\resource-manager\\readme.md --use=@autorest/typescript@6.0.9 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\search\\resource-manager\\readme.md --use=@autorest/typescript@6.0.17 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", - "use": "@autorest/typescript@6.0.9" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", + "use": "@autorest/typescript@6.0.17" } \ No newline at end of file diff --git a/sdk/search/arm-search/assets.json b/sdk/search/arm-search/assets.json index 3eea717ff72e..330c0ed2c3e8 100644 --- a/sdk/search/arm-search/assets.json +++ b/sdk/search/arm-search/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/search/arm-search", - "Tag": "js/search/arm-search_58040c667d" + "Tag": "js/search/arm-search_19f57c5c47" } diff --git a/sdk/search/arm-search/package.json b/sdk/search/arm-search/package.json index 6abbc6f5364f..88672b8f0335 100644 --- a/sdk/search/arm-search/package.json +++ b/sdk/search/arm-search/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for SearchManagementClient.", - "version": "3.2.0", + "version": "3.3.0-beta.1", "engines": { "node": ">=18.0.0" }, @@ -12,8 +12,8 @@ "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.12.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -29,22 +29,23 @@ "types": "./types/arm-search.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.31.1", - "mkdirp": "^1.0.4", + "mkdirp": "^2.1.2", "typescript": "~5.3.3", "uglify-js": "^3.4.9", "rimraf": "^5.0.0", "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "esm": "^3.2.18", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0", - "@types/mocha": "^10.0.0" + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -77,7 +78,6 @@ "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -115,4 +115,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-search?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/search/arm-search/review/arm-search.api.md b/sdk/search/arm-search/review/arm-search.api.md index f1917eedf83a..1b63508b013d 100644 --- a/sdk/search/arm-search/review/arm-search.api.md +++ b/sdk/search/arm-search/review/arm-search.api.md @@ -65,6 +65,7 @@ export interface CheckNameAvailabilityOutput { // @public export interface CloudError { error?: CloudErrorBody; + message?: string; } // @public @@ -103,16 +104,27 @@ export interface Identity { readonly principalId?: string; readonly tenantId?: string; type: IdentityType; + userAssignedIdentities?: { + [propertyName: string]: UserAssignedManagedIdentity; + }; } // @public -export type IdentityType = "None" | "SystemAssigned"; +export type IdentityType = string; // @public export interface IpRule { value?: string; } +// @public +export enum KnownIdentityType { + None = "None", + SystemAssigned = "SystemAssigned", + SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", + UserAssigned = "UserAssigned" +} + // @public export enum KnownPrivateLinkServiceConnectionProvisioningState { Canceled = "Canceled", @@ -123,6 +135,23 @@ export enum KnownPrivateLinkServiceConnectionProvisioningState { Updating = "Updating" } +// @public +export enum KnownPublicNetworkAccess { + Disabled = "disabled", + Enabled = "enabled" +} + +// @public +export enum KnownSearchBypass { + AzurePortal = "AzurePortal", + None = "None" +} + +// @public +export enum KnownSearchDisabledDataExfiltrationOption { + All = "All" +} + // @public export enum KnownSearchSemanticSearch { Disabled = "disabled", @@ -137,6 +166,34 @@ export enum KnownSharedPrivateLinkResourceAsyncOperationResult { Succeeded = "Succeeded" } +// @public +export enum KnownSharedPrivateLinkResourceProvisioningState { + Deleting = "Deleting", + Failed = "Failed", + Incomplete = "Incomplete", + Succeeded = "Succeeded", + Updating = "Updating" +} + +// @public +export enum KnownSharedPrivateLinkResourceStatus { + Approved = "Approved", + Disconnected = "Disconnected", + Pending = "Pending", + Rejected = "Rejected" +} + +// @public +export enum KnownSkuName { + Basic = "basic", + Free = "free", + Standard = "standard", + Standard2 = "standard2", + Standard3 = "standard3", + StorageOptimizedL1 = "storage_optimized_l1", + StorageOptimizedL2 = "storage_optimized_l2" +} + // @public export enum KnownUnavailableNameReason { AlreadyExists = "AlreadyExists", @@ -151,13 +208,163 @@ export interface ListQueryKeysResult { // @public export interface NetworkRuleSet { + bypass?: SearchBypass; ipRules?: IpRule[]; } +// @public +export interface NetworkSecurityPerimeterConfiguration extends ProxyResource { + networkSecurityPerimeter?: NSPConfigPerimeter; + profile?: NSPConfigProfile; + // (undocumented) + provisioningIssues?: NSPProvisioningIssue[]; + readonly provisioningState?: string; + resourceAssociation?: NSPConfigAssociation; +} + +// @public +export interface NetworkSecurityPerimeterConfigurationListResult { + readonly nextLink?: string; + readonly value?: NetworkSecurityPerimeterConfiguration[]; +} + +// @public +export interface NetworkSecurityPerimeterConfigurations { + beginReconcile(resourceGroupName: string, searchServiceName: string, nspConfigName: string, options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams): Promise, NetworkSecurityPerimeterConfigurationsReconcileResponse>>; + beginReconcileAndWait(resourceGroupName: string, searchServiceName: string, nspConfigName: string, options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams): Promise; + get(resourceGroupName: string, searchServiceName: string, nspConfigName: string, options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams): Promise; + listByService(resourceGroupName: string, searchServiceName: string, options?: NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface NetworkSecurityPerimeterConfigurationsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkSecurityPerimeterConfigurationsGetResponse = NetworkSecurityPerimeterConfiguration; + +// @public +export interface NetworkSecurityPerimeterConfigurationsListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkSecurityPerimeterConfigurationsListByServiceNextResponse = NetworkSecurityPerimeterConfigurationListResult; + +// @public +export interface NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkSecurityPerimeterConfigurationsListByServiceResponse = NetworkSecurityPerimeterConfigurationListResult; + +// @public +export interface NetworkSecurityPerimeterConfigurationsReconcileHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface NetworkSecurityPerimeterConfigurationsReconcileOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NetworkSecurityPerimeterConfigurationsReconcileResponse = NetworkSecurityPerimeterConfigurationsReconcileHeaders; + +// @public +export interface NSPConfigAccessRule { + // (undocumented) + name?: string; + properties?: NSPConfigAccessRuleProperties; +} + +// @public +export interface NSPConfigAccessRuleProperties { + // (undocumented) + addressPrefixes?: string[]; + // (undocumented) + direction?: string; + // (undocumented) + fullyQualifiedDomainNames?: string[]; + // (undocumented) + networkSecurityPerimeters?: NSPConfigNetworkSecurityPerimeterRule[]; + // (undocumented) + subscriptions?: string[]; +} + +// @public +export interface NSPConfigAssociation { + // (undocumented) + accessMode?: string; + // (undocumented) + name?: string; +} + +// @public +export interface NSPConfigNetworkSecurityPerimeterRule { + // (undocumented) + id?: string; + // (undocumented) + location?: string; + // (undocumented) + perimeterGuid?: string; +} + +// @public +export interface NSPConfigPerimeter { + // (undocumented) + id?: string; + // (undocumented) + location?: string; + // (undocumented) + perimeterGuid?: string; +} + +// @public +export interface NSPConfigProfile { + // (undocumented) + accessRules?: NSPConfigAccessRule[]; + // (undocumented) + accessRulesVersion?: string; + // (undocumented) + name?: string; +} + +// @public +export interface NSPProvisioningIssue { + // (undocumented) + name?: string; + properties?: NSPProvisioningIssueProperties; +} + +// @public +export interface NSPProvisioningIssueProperties { + // (undocumented) + description?: string; + // (undocumented) + issueType?: string; + // (undocumented) + severity?: string; + // (undocumented) + suggestedAccessRules?: string[]; + // (undocumented) + suggestedResourceIds?: string[]; +} + // @public export interface Operation { readonly display?: OperationDisplay; + readonly isDataAction?: boolean; readonly name?: string; + readonly origin?: string; + readonly properties?: OperationProperties; +} + +// @public +export interface OperationAvailability { + readonly blobDuration?: string; + readonly timeGrain?: string; } // @public @@ -174,11 +381,46 @@ export interface OperationListResult { readonly value?: Operation[]; } +// @public +export interface OperationLogsSpecification { + readonly blobDuration?: string; + readonly displayName?: string; + readonly name?: string; +} + +// @public +export interface OperationMetricDimension { + readonly displayName?: string; + readonly name?: string; +} + +// @public +export interface OperationMetricsSpecification { + readonly aggregationType?: string; + readonly availabilities?: OperationAvailability[]; + readonly dimensions?: OperationMetricDimension[]; + readonly displayDescription?: string; + readonly displayName?: string; + readonly name?: string; + readonly unit?: string; +} + +// @public +export interface OperationProperties { + readonly serviceSpecification?: OperationServiceSpecification; +} + // @public export interface Operations { list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface OperationServiceSpecification { + readonly logSpecifications?: OperationLogsSpecification[]; + readonly metricSpecifications?: OperationMetricsSpecification[]; +} + // @public export interface OperationsListOptionalParams extends coreClient.OperationOptions { } @@ -306,7 +548,11 @@ export type PrivateLinkServiceConnectionStatus = "Pending" | "Approved" | "Rejec export type ProvisioningState = "succeeded" | "provisioning" | "failed"; // @public -export type PublicNetworkAccess = "enabled" | "disabled"; +export interface ProxyResource extends Resource { +} + +// @public +export type PublicNetworkAccess = string; // @public export interface QueryKey { @@ -378,6 +624,12 @@ export interface Resource { readonly type?: string; } +// @public +export type SearchBypass = string; + +// @public +export type SearchDisabledDataExfiltrationOption = string; + // @public export type SearchEncryptionComplianceStatus = "Compliant" | "NonCompliant"; @@ -394,6 +646,8 @@ export class SearchManagementClient extends coreClient.ServiceClient { // (undocumented) apiVersion: string; // (undocumented) + networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations; + // (undocumented) operations: Operations; // (undocumented) privateEndpointConnections: PrivateEndpointConnections; @@ -430,8 +684,10 @@ export type SearchSemanticSearch = string; // @public export interface SearchService extends TrackedResource { authOptions?: DataPlaneAuthOptions; + disabledDataExfiltrationOptions?: SearchDisabledDataExfiltrationOption[]; disableLocalAuth?: boolean; encryptionWithCmk?: EncryptionWithCmk; + readonly eTag?: string; hostingMode?: HostingMode; identity?: Identity; networkRuleSet?: NetworkRuleSet; @@ -454,13 +710,15 @@ export interface SearchServiceListResult { } // @public -export type SearchServiceStatus = "running" | "provisioning" | "deleting" | "degraded" | "disabled" | "error"; +export type SearchServiceStatus = "running" | "provisioning" | "deleting" | "degraded" | "disabled" | "error" | "stopped"; // @public export interface SearchServiceUpdate extends Resource { authOptions?: DataPlaneAuthOptions; + disabledDataExfiltrationOptions?: SearchDisabledDataExfiltrationOption[]; disableLocalAuth?: boolean; encryptionWithCmk?: EncryptionWithCmk; + readonly eTag?: string; hostingMode?: HostingMode; identity?: Identity; location?: string; @@ -601,7 +859,7 @@ export interface SharedPrivateLinkResourceProperties { } // @public -export type SharedPrivateLinkResourceProvisioningState = "Updating" | "Deleting" | "Failed" | "Succeeded" | "Incomplete"; +export type SharedPrivateLinkResourceProvisioningState = string; // @public export interface SharedPrivateLinkResources { @@ -655,7 +913,7 @@ export interface SharedPrivateLinkResourcesListByServiceOptionalParams extends c export type SharedPrivateLinkResourcesListByServiceResponse = SharedPrivateLinkResourceListResult; // @public -export type SharedPrivateLinkResourceStatus = "Pending" | "Approved" | "Rejected" | "Disconnected"; +export type SharedPrivateLinkResourceStatus = string; // @public export interface Sku { @@ -663,7 +921,7 @@ export interface Sku { } // @public -export type SkuName = "free" | "basic" | "standard" | "standard2" | "standard3" | "storage_optimized_l1" | "storage_optimized_l2"; +export type SkuName = string; // @public export interface TrackedResource extends Resource { @@ -705,6 +963,12 @@ export interface UsagesListBySubscriptionOptionalParams extends coreClient.Opera // @public export type UsagesListBySubscriptionResponse = QuotaUsagesListResult; +// @public +export interface UserAssignedManagedIdentity { + readonly clientId?: string; + readonly principalId?: string; +} + // (No @packageDocumentation comment for this package) ``` diff --git a/sdk/search/arm-search/samples-dev/adminKeysGetSample.ts b/sdk/search/arm-search/samples-dev/adminKeysGetSample.ts index be40c1734259..81733aafebf8 100644 --- a/sdk/search/arm-search/samples-dev/adminKeysGetSample.ts +++ b/sdk/search/arm-search/samples-dev/adminKeysGetSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service. + * This sample demonstrates how to Gets the primary and secondary admin API keys for the specified Azure AI Search service. * - * @summary Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchGetAdminKeys.json + * @summary Gets the primary and secondary admin API keys for the specified Azure AI Search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchGetAdminKeys.json */ async function searchGetAdminKeys() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -28,7 +28,7 @@ async function searchGetAdminKeys() { const client = new SearchManagementClient(credential, subscriptionId); const result = await client.adminKeys.get( resourceGroupName, - searchServiceName + searchServiceName, ); console.log(result); } diff --git a/sdk/search/arm-search/samples-dev/adminKeysRegenerateSample.ts b/sdk/search/arm-search/samples-dev/adminKeysRegenerateSample.ts index 5a929f7d4a13..7bfdcce19d4f 100644 --- a/sdk/search/arm-search/samples-dev/adminKeysRegenerateSample.ts +++ b/sdk/search/arm-search/samples-dev/adminKeysRegenerateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time. * * @summary Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchRegenerateAdminKey.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchRegenerateAdminKey.json */ async function searchRegenerateAdminKey() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function searchRegenerateAdminKey() { const result = await client.adminKeys.regenerate( resourceGroupName, searchServiceName, - keyKind + keyKind, ); console.log(result); } diff --git a/sdk/search/arm-search/samples-dev/networkSecurityPerimeterConfigurationsGetSample.ts b/sdk/search/arm-search/samples-dev/networkSecurityPerimeterConfigurationsGetSample.ts new file mode 100644 index 000000000000..3e90ba68cecc --- /dev/null +++ b/sdk/search/arm-search/samples-dev/networkSecurityPerimeterConfigurationsGetSample.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a network security perimeter configuration. + * + * @summary Gets a network security perimeter configuration. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsGet.json + */ +async function getAnNspConfigByName() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const nspConfigName = "00000001-2222-3333-4444-111144444444.assoc1"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.networkSecurityPerimeterConfigurations.get( + resourceGroupName, + searchServiceName, + nspConfigName, + ); + console.log(result); +} + +async function main() { + getAnNspConfigByName(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.ts b/sdk/search/arm-search/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.ts new file mode 100644 index 000000000000..feeb6bbab14c --- /dev/null +++ b/sdk/search/arm-search/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a list of network security perimeter configurations for a search service. + * + * @summary Gets a list of network security perimeter configurations for a search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsListByService.json + */ +async function listNspConfigsBySearchService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.networkSecurityPerimeterConfigurations.listByService( + resourceGroupName, + searchServiceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listNspConfigsBySearchService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.ts b/sdk/search/arm-search/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.ts new file mode 100644 index 000000000000..647222db3231 --- /dev/null +++ b/sdk/search/arm-search/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Reconcile network security perimeter configuration for the Azure AI Search resource provider. This triggers a manual resync with network security perimeter configurations by ensuring the search service carries the latest configuration. + * + * @summary Reconcile network security perimeter configuration for the Azure AI Search resource provider. This triggers a manual resync with network security perimeter configurations by ensuring the search service carries the latest configuration. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsReconcile.json + */ +async function reconcileNspConfig() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const nspConfigName = "00000001-2222-3333-4444-111144444444.assoc1"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = + await client.networkSecurityPerimeterConfigurations.beginReconcileAndWait( + resourceGroupName, + searchServiceName, + nspConfigName, + ); + console.log(result); +} + +async function main() { + reconcileNspConfig(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples-dev/operationsListSample.ts b/sdk/search/arm-search/samples-dev/operationsListSample.ts index bbe167426caf..2e38e7a1f140 100644 --- a/sdk/search/arm-search/samples-dev/operationsListSample.ts +++ b/sdk/search/arm-search/samples-dev/operationsListSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Lists all of the available REST API operations of the Microsoft.Search provider. * * @summary Lists all of the available REST API operations of the Microsoft.Search provider. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/OperationsList.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListOperations.json */ -async function operationsList() { +async function searchListOperations() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -34,7 +34,7 @@ async function operationsList() { } async function main() { - operationsList(); + searchListOperations(); } main().catch(console.error); diff --git a/sdk/search/arm-search/samples-dev/privateEndpointConnectionsDeleteSample.ts b/sdk/search/arm-search/samples-dev/privateEndpointConnectionsDeleteSample.ts index 0146a22337a7..6d492d97979d 100644 --- a/sdk/search/arm-search/samples-dev/privateEndpointConnectionsDeleteSample.ts +++ b/sdk/search/arm-search/samples-dev/privateEndpointConnectionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Disconnects the private endpoint connection and deletes it from the search service. * * @summary Disconnects the private endpoint connection and deletes it from the search service. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/DeletePrivateEndpointConnection.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/DeletePrivateEndpointConnection.json */ async function privateEndpointConnectionDelete() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function privateEndpointConnectionDelete() { const result = await client.privateEndpointConnections.delete( resourceGroupName, searchServiceName, - privateEndpointConnectionName + privateEndpointConnectionName, ); console.log(result); } diff --git a/sdk/search/arm-search/samples-dev/privateEndpointConnectionsGetSample.ts b/sdk/search/arm-search/samples-dev/privateEndpointConnectionsGetSample.ts index 66d7935ea188..58f44338e4f3 100644 --- a/sdk/search/arm-search/samples-dev/privateEndpointConnectionsGetSample.ts +++ b/sdk/search/arm-search/samples-dev/privateEndpointConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the private endpoint connection to the search service in the given resource group. * * @summary Gets the details of the private endpoint connection to the search service in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/GetPrivateEndpointConnection.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetPrivateEndpointConnection.json */ async function privateEndpointConnectionGet() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function privateEndpointConnectionGet() { const result = await client.privateEndpointConnections.get( resourceGroupName, searchServiceName, - privateEndpointConnectionName + privateEndpointConnectionName, ); console.log(result); } diff --git a/sdk/search/arm-search/samples-dev/privateEndpointConnectionsListByServiceSample.ts b/sdk/search/arm-search/samples-dev/privateEndpointConnectionsListByServiceSample.ts index dd1f1eeee370..287f544b7b6d 100644 --- a/sdk/search/arm-search/samples-dev/privateEndpointConnectionsListByServiceSample.ts +++ b/sdk/search/arm-search/samples-dev/privateEndpointConnectionsListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all private endpoint connections in the given service. * * @summary Gets a list of all private endpoint connections in the given service. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/ListPrivateEndpointConnectionsByService.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListPrivateEndpointConnectionsByService.json */ async function listPrivateEndpointConnectionsByService() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function listPrivateEndpointConnectionsByService() { const resArray = new Array(); for await (let item of client.privateEndpointConnections.listByService( resourceGroupName, - searchServiceName + searchServiceName, )) { resArray.push(item); } diff --git a/sdk/search/arm-search/samples-dev/privateEndpointConnectionsUpdateSample.ts b/sdk/search/arm-search/samples-dev/privateEndpointConnectionsUpdateSample.ts index 4c3edfb49169..de3b80a92213 100644 --- a/sdk/search/arm-search/samples-dev/privateEndpointConnectionsUpdateSample.ts +++ b/sdk/search/arm-search/samples-dev/privateEndpointConnectionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { PrivateEndpointConnection, - SearchManagementClient + SearchManagementClient, } from "@azure/arm-search"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -18,10 +18,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Updates a Private Endpoint connection to the search service in the given resource group. + * This sample demonstrates how to Updates a private endpoint connection to the search service in the given resource group. * - * @summary Updates a Private Endpoint connection to the search service in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/UpdatePrivateEndpointConnection.json + * @summary Updates a private endpoint connection to the search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/UpdatePrivateEndpointConnection.json */ async function privateEndpointConnectionUpdate() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -32,10 +32,10 @@ async function privateEndpointConnectionUpdate() { const privateEndpointConnection: PrivateEndpointConnection = { properties: { privateLinkServiceConnectionState: { - description: "Rejected for some reason", - status: "Rejected" - } - } + description: "Rejected for some reason.", + status: "Rejected", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function privateEndpointConnectionUpdate() { resourceGroupName, searchServiceName, privateEndpointConnectionName, - privateEndpointConnection + privateEndpointConnection, ); console.log(result); } diff --git a/sdk/search/arm-search/samples-dev/privateLinkResourcesListSupportedSample.ts b/sdk/search/arm-search/samples-dev/privateLinkResourcesListSupportedSample.ts index f91762bde24c..ede3faec04e3 100644 --- a/sdk/search/arm-search/samples-dev/privateLinkResourcesListSupportedSample.ts +++ b/sdk/search/arm-search/samples-dev/privateLinkResourcesListSupportedSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all supported private link resource types for the given service. * * @summary Gets a list of all supported private link resource types for the given service. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/ListSupportedPrivateLinkResources.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListSupportedPrivateLinkResources.json */ async function listSupportedPrivateLinkResources() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function listSupportedPrivateLinkResources() { const resArray = new Array(); for await (let item of client.privateLinkResources.listSupported( resourceGroupName, - searchServiceName + searchServiceName, )) { resArray.push(item); } diff --git a/sdk/search/arm-search/samples-dev/queryKeysCreateSample.ts b/sdk/search/arm-search/samples-dev/queryKeysCreateSample.ts index b1d595920d16..ceb045cfdcb7 100644 --- a/sdk/search/arm-search/samples-dev/queryKeysCreateSample.ts +++ b/sdk/search/arm-search/samples-dev/queryKeysCreateSample.ts @@ -18,19 +18,20 @@ dotenv.config(); * This sample demonstrates how to Generates a new query key for the specified search service. You can create up to 50 query keys per service. * * @summary Generates a new query key for the specified search service. You can create up to 50 query keys per service. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateQueryKey.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateQueryKey.json */ async function searchCreateQueryKey() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; const searchServiceName = "mysearchservice"; - const name = "Query key for browser-based clients"; + const name = + "An API key granting read-only access to the documents collection of an index."; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.queryKeys.create( resourceGroupName, searchServiceName, - name + name, ); console.log(result); } diff --git a/sdk/search/arm-search/samples-dev/queryKeysDeleteSample.ts b/sdk/search/arm-search/samples-dev/queryKeysDeleteSample.ts index ffec9ae6fd6d..1bb57af82d39 100644 --- a/sdk/search/arm-search/samples-dev/queryKeysDeleteSample.ts +++ b/sdk/search/arm-search/samples-dev/queryKeysDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it. * * @summary Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchDeleteQueryKey.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchDeleteQueryKey.json */ async function searchDeleteQueryKey() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function searchDeleteQueryKey() { const result = await client.queryKeys.delete( resourceGroupName, searchServiceName, - key + key, ); console.log(result); } diff --git a/sdk/search/arm-search/samples-dev/queryKeysListBySearchServiceSample.ts b/sdk/search/arm-search/samples-dev/queryKeysListBySearchServiceSample.ts index 9bf9b4cc1636..f5f9534d4918 100644 --- a/sdk/search/arm-search/samples-dev/queryKeysListBySearchServiceSample.ts +++ b/sdk/search/arm-search/samples-dev/queryKeysListBySearchServiceSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Returns the list of query API keys for the given Azure Cognitive Search service. + * This sample demonstrates how to Returns the list of query API keys for the given Azure AI Search service. * - * @summary Returns the list of query API keys for the given Azure Cognitive Search service. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchListQueryKeysBySearchService.json + * @summary Returns the list of query API keys for the given Azure AI Search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListQueryKeysBySearchService.json */ async function searchListQueryKeysBySearchService() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function searchListQueryKeysBySearchService() { const resArray = new Array(); for await (let item of client.queryKeys.listBySearchService( resourceGroupName, - searchServiceName + searchServiceName, )) { resArray.push(item); } diff --git a/sdk/search/arm-search/samples-dev/servicesCheckNameAvailabilitySample.ts b/sdk/search/arm-search/samples-dev/servicesCheckNameAvailabilitySample.ts index 2745681c1cfb..4323782dcc95 100644 --- a/sdk/search/arm-search/samples-dev/servicesCheckNameAvailabilitySample.ts +++ b/sdk/search/arm-search/samples-dev/servicesCheckNameAvailabilitySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Checks whether or not the given search service name is available for use. Search service names must be globally unique since they are part of the service URI (https://.search.windows.net). * * @summary Checks whether or not the given search service name is available for use. Search service names must be globally unique since they are part of the service URI (https://.search.windows.net). - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCheckNameAvailability.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCheckNameAvailability.json */ async function searchCheckNameAvailability() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/search/arm-search/samples-dev/servicesCreateOrUpdateSample.ts b/sdk/search/arm-search/samples-dev/servicesCreateOrUpdateSample.ts index aba772befac0..18e9c3ed5b16 100644 --- a/sdk/search/arm-search/samples-dev/servicesCreateOrUpdateSample.ts +++ b/sdk/search/arm-search/samples-dev/servicesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. * * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateOrUpdateService.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateService.json */ async function searchCreateOrUpdateService() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,14 +30,14 @@ async function searchCreateOrUpdateService() { partitionCount: 1, replicaCount: 3, sku: { name: "standard" }, - tags: { appName: "My e-commerce app" } + tags: { appName: "My e-commerce app" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.beginCreateOrUpdateAndWait( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -46,7 +46,7 @@ async function searchCreateOrUpdateService() { * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. * * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateOrUpdateServiceAuthOptions.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceAuthOptions.json */ async function searchCreateOrUpdateServiceAuthOptions() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -54,21 +54,21 @@ async function searchCreateOrUpdateServiceAuthOptions() { const searchServiceName = "mysearchservice"; const service: SearchService = { authOptions: { - aadOrApiKey: { aadAuthFailureMode: "http401WithBearerChallenge" } + aadOrApiKey: { aadAuthFailureMode: "http401WithBearerChallenge" }, }, hostingMode: "default", location: "westus", partitionCount: 1, replicaCount: 3, sku: { name: "standard" }, - tags: { appName: "My e-commerce app" } + tags: { appName: "My e-commerce app" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.beginCreateOrUpdateAndWait( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -77,7 +77,7 @@ async function searchCreateOrUpdateServiceAuthOptions() { * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. * * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateOrUpdateServiceDisableLocalAuth.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceDisableLocalAuth.json */ async function searchCreateOrUpdateServiceDisableLocalAuth() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -90,14 +90,14 @@ async function searchCreateOrUpdateServiceDisableLocalAuth() { partitionCount: 1, replicaCount: 3, sku: { name: "standard" }, - tags: { appName: "My e-commerce app" } + tags: { appName: "My e-commerce app" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.beginCreateOrUpdateAndWait( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -106,7 +106,7 @@ async function searchCreateOrUpdateServiceDisableLocalAuth() { * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. * * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints.json */ async function searchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -119,14 +119,14 @@ async function searchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints() { publicNetworkAccess: "disabled", replicaCount: 3, sku: { name: "standard" }, - tags: { appName: "My e-commerce app" } + tags: { appName: "My e-commerce app" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.beginCreateOrUpdateAndWait( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -135,7 +135,7 @@ async function searchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints() { * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. * * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs.json */ async function searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -145,19 +145,19 @@ async function searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs() { hostingMode: "default", location: "westus", networkRuleSet: { - ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }] + ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }], }, partitionCount: 1, replicaCount: 1, sku: { name: "standard" }, - tags: { appName: "My e-commerce app" } + tags: { appName: "My e-commerce app" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.beginCreateOrUpdateAndWait( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -166,7 +166,39 @@ async function searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs() { * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. * * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateOrUpdateServiceWithCmkEnforcement.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass.json + */ +async function searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchService = { + hostingMode: "default", + location: "westus", + networkRuleSet: { + bypass: "AzurePortal", + ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }], + }, + partitionCount: 1, + replicaCount: 1, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceWithCmkEnforcement.json */ async function searchCreateOrUpdateServiceWithCmkEnforcement() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -179,14 +211,14 @@ async function searchCreateOrUpdateServiceWithCmkEnforcement() { partitionCount: 1, replicaCount: 3, sku: { name: "standard" }, - tags: { appName: "My e-commerce app" } + tags: { appName: "My e-commerce app" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.beginCreateOrUpdateAndWait( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -195,7 +227,36 @@ async function searchCreateOrUpdateServiceWithCmkEnforcement() { * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. * * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateOrUpdateServiceWithIdentity.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceWithDataExfiltration.json + */ +async function searchCreateOrUpdateServiceWithDataExfiltration() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchService = { + disabledDataExfiltrationOptions: ["All"], + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceWithIdentity.json */ async function searchCreateOrUpdateServiceWithIdentity() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -203,19 +264,25 @@ async function searchCreateOrUpdateServiceWithIdentity() { const searchServiceName = "mysearchservice"; const service: SearchService = { hostingMode: "default", - identity: { type: "SystemAssigned" }, + identity: { + type: "SystemAssigned, UserAssigned", + userAssignedIdentities: { + "/subscriptions/00000000000000000000000000000000/resourcegroups/rg1/providers/MicrosoftManagedIdentity/userAssignedIdentities/userMi": + {}, + }, + }, location: "westus", partitionCount: 1, replicaCount: 3, sku: { name: "standard" }, - tags: { appName: "My e-commerce app" } + tags: { appName: "My e-commerce app" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.beginCreateOrUpdateAndWait( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -224,7 +291,7 @@ async function searchCreateOrUpdateServiceWithIdentity() { * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. * * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateOrUpdateWithSemanticSearch.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateWithSemanticSearch.json */ async function searchCreateOrUpdateWithSemanticSearch() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -237,14 +304,14 @@ async function searchCreateOrUpdateWithSemanticSearch() { replicaCount: 3, semanticSearch: "free", sku: { name: "standard" }, - tags: { appName: "My e-commerce app" } + tags: { appName: "My e-commerce app" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.beginCreateOrUpdateAndWait( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -255,7 +322,9 @@ async function main() { searchCreateOrUpdateServiceDisableLocalAuth(); searchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints(); searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs(); + searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass(); searchCreateOrUpdateServiceWithCmkEnforcement(); + searchCreateOrUpdateServiceWithDataExfiltration(); searchCreateOrUpdateServiceWithIdentity(); searchCreateOrUpdateWithSemanticSearch(); } diff --git a/sdk/search/arm-search/samples-dev/servicesDeleteSample.ts b/sdk/search/arm-search/samples-dev/servicesDeleteSample.ts index ea91fc7cea30..934ea94708ed 100644 --- a/sdk/search/arm-search/samples-dev/servicesDeleteSample.ts +++ b/sdk/search/arm-search/samples-dev/servicesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a search service in the given resource group, along with its associated resources. * * @summary Deletes a search service in the given resource group, along with its associated resources. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchDeleteService.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchDeleteService.json */ async function searchDeleteService() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -28,7 +28,7 @@ async function searchDeleteService() { const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.delete( resourceGroupName, - searchServiceName + searchServiceName, ); console.log(result); } diff --git a/sdk/search/arm-search/samples-dev/servicesGetSample.ts b/sdk/search/arm-search/samples-dev/servicesGetSample.ts index ea520af4efc8..a6b102d2f393 100644 --- a/sdk/search/arm-search/samples-dev/servicesGetSample.ts +++ b/sdk/search/arm-search/samples-dev/servicesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the search service with the given name in the given resource group. * * @summary Gets the search service with the given name in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchGetService.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchGetService.json */ async function searchGetService() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -28,7 +28,7 @@ async function searchGetService() { const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.get( resourceGroupName, - searchServiceName + searchServiceName, ); console.log(result); } diff --git a/sdk/search/arm-search/samples-dev/servicesListByResourceGroupSample.ts b/sdk/search/arm-search/samples-dev/servicesListByResourceGroupSample.ts index efd6b2613b0b..d2d98157ef85 100644 --- a/sdk/search/arm-search/samples-dev/servicesListByResourceGroupSample.ts +++ b/sdk/search/arm-search/samples-dev/servicesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all Search services in the given resource group. * * @summary Gets a list of all Search services in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchListServicesByResourceGroup.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListServicesByResourceGroup.json */ async function searchListServicesByResourceGroup() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -27,7 +27,7 @@ async function searchListServicesByResourceGroup() { const client = new SearchManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.services.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/search/arm-search/samples-dev/servicesListBySubscriptionSample.ts b/sdk/search/arm-search/samples-dev/servicesListBySubscriptionSample.ts index f6a638abbb30..c20d277bd4e3 100644 --- a/sdk/search/arm-search/samples-dev/servicesListBySubscriptionSample.ts +++ b/sdk/search/arm-search/samples-dev/servicesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all Search services in the given subscription. * * @summary Gets a list of all Search services in the given subscription. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchListServicesBySubscription.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListServicesBySubscription.json */ async function searchListServicesBySubscription() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/search/arm-search/samples-dev/servicesUpdateSample.ts b/sdk/search/arm-search/samples-dev/servicesUpdateSample.ts index 9a83e4b2b138..04949fc7d969 100644 --- a/sdk/search/arm-search/samples-dev/servicesUpdateSample.ts +++ b/sdk/search/arm-search/samples-dev/servicesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Updates an existing search service in the given resource group. * * @summary Updates an existing search service in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchUpdateService.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateService.json */ async function searchUpdateService() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -26,14 +26,14 @@ async function searchUpdateService() { const searchServiceName = "mysearchservice"; const service: SearchServiceUpdate = { replicaCount: 2, - tags: { appName: "My e-commerce app", newTag: "Adding a new tag" } + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.update( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -42,7 +42,7 @@ async function searchUpdateService() { * This sample demonstrates how to Updates an existing search service in the given resource group. * * @summary Updates an existing search service in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchUpdateServiceAuthOptions.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceAuthOptions.json */ async function searchUpdateServiceAuthOptions() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -50,17 +50,17 @@ async function searchUpdateServiceAuthOptions() { const searchServiceName = "mysearchservice"; const service: SearchServiceUpdate = { authOptions: { - aadOrApiKey: { aadAuthFailureMode: "http401WithBearerChallenge" } + aadOrApiKey: { aadAuthFailureMode: "http401WithBearerChallenge" }, }, replicaCount: 2, - tags: { appName: "My e-commerce app", newTag: "Adding a new tag" } + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.update( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -69,7 +69,7 @@ async function searchUpdateServiceAuthOptions() { * This sample demonstrates how to Updates an existing search service in the given resource group. * * @summary Updates an existing search service in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchUpdateServiceDisableLocalAuth.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceDisableLocalAuth.json */ async function searchUpdateServiceDisableLocalAuth() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -78,14 +78,14 @@ async function searchUpdateServiceDisableLocalAuth() { const service: SearchServiceUpdate = { disableLocalAuth: true, replicaCount: 2, - tags: { appName: "My e-commerce app", newTag: "Adding a new tag" } + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.update( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -94,7 +94,7 @@ async function searchUpdateServiceDisableLocalAuth() { * This sample demonstrates how to Updates an existing search service in the given resource group. * * @summary Updates an existing search service in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchUpdateServiceToAllowAccessFromPrivateEndpoints.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceToAllowAccessFromPrivateEndpoints.json */ async function searchUpdateServiceToAllowAccessFromPrivateEndpoints() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -103,14 +103,14 @@ async function searchUpdateServiceToAllowAccessFromPrivateEndpoints() { const service: SearchServiceUpdate = { partitionCount: 1, publicNetworkAccess: "disabled", - replicaCount: 1 + replicaCount: 1, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.update( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -119,7 +119,7 @@ async function searchUpdateServiceToAllowAccessFromPrivateEndpoints() { * This sample demonstrates how to Updates an existing search service in the given resource group. * * @summary Updates an existing search service in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchUpdateServiceToAllowAccessFromPublicCustomIPs.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceToAllowAccessFromPublicCustomIPs.json */ async function searchUpdateServiceToAllowAccessFromPublicCustomIPs() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -127,18 +127,18 @@ async function searchUpdateServiceToAllowAccessFromPublicCustomIPs() { const searchServiceName = "mysearchservice"; const service: SearchServiceUpdate = { networkRuleSet: { - ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }] + ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }], }, partitionCount: 1, publicNetworkAccess: "enabled", - replicaCount: 3 + replicaCount: 3, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.update( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -147,7 +147,36 @@ async function searchUpdateServiceToAllowAccessFromPublicCustomIPs() { * This sample demonstrates how to Updates an existing search service in the given resource group. * * @summary Updates an existing search service in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchUpdateServiceToRemoveIdentity.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass.json + */ +async function searchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchServiceUpdate = { + networkRuleSet: { + bypass: "AzurePortal", + ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }], + }, + partitionCount: 1, + publicNetworkAccess: "enabled", + replicaCount: 3, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceToRemoveIdentity.json */ async function searchUpdateServiceToRemoveIdentity() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -155,14 +184,14 @@ async function searchUpdateServiceToRemoveIdentity() { const searchServiceName = "mysearchservice"; const service: SearchServiceUpdate = { identity: { type: "None" }, - sku: { name: "standard" } + sku: { name: "standard" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.update( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -171,7 +200,7 @@ async function searchUpdateServiceToRemoveIdentity() { * This sample demonstrates how to Updates an existing search service in the given resource group. * * @summary Updates an existing search service in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchUpdateServiceWithCmkEnforcement.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceWithCmkEnforcement.json */ async function searchUpdateServiceWithCmkEnforcement() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -180,14 +209,39 @@ async function searchUpdateServiceWithCmkEnforcement() { const service: SearchServiceUpdate = { encryptionWithCmk: { enforcement: "Enabled" }, replicaCount: 2, - tags: { appName: "My e-commerce app", newTag: "Adding a new tag" } + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceWithDataExfiltration.json + */ +async function searchUpdateServiceWithDataExfiltration() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchServiceUpdate = { + disabledDataExfiltrationOptions: ["All"], + replicaCount: 2, + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.update( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -196,7 +250,7 @@ async function searchUpdateServiceWithCmkEnforcement() { * This sample demonstrates how to Updates an existing search service in the given resource group. * * @summary Updates an existing search service in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchUpdateServiceWithSemanticSearch.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceWithSemanticSearch.json */ async function searchUpdateServiceWithSemanticSearch() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -205,14 +259,14 @@ async function searchUpdateServiceWithSemanticSearch() { const service: SearchServiceUpdate = { replicaCount: 2, semanticSearch: "standard", - tags: { appName: "My e-commerce app", newTag: "Adding a new tag" } + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.update( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -223,8 +277,10 @@ async function main() { searchUpdateServiceDisableLocalAuth(); searchUpdateServiceToAllowAccessFromPrivateEndpoints(); searchUpdateServiceToAllowAccessFromPublicCustomIPs(); + searchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass(); searchUpdateServiceToRemoveIdentity(); searchUpdateServiceWithCmkEnforcement(); + searchUpdateServiceWithDataExfiltration(); searchUpdateServiceWithSemanticSearch(); } diff --git a/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesCreateOrUpdateSample.ts b/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesCreateOrUpdateSample.ts index 222107676f69..df6788d5903b 100644 --- a/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesCreateOrUpdateSample.ts +++ b/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { SharedPrivateLinkResource, - SearchManagementClient + SearchManagementClient, } from "@azure/arm-search"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Initiates the creation or update of a shared private link resource managed by the search service in the given resource group. * * @summary Initiates the creation or update of a shared private link resource managed by the search service in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/CreateOrUpdateSharedPrivateLinkResource.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/CreateOrUpdateSharedPrivateLinkResource.json */ async function sharedPrivateLinkResourceCreateOrUpdate() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -34,17 +34,18 @@ async function sharedPrivateLinkResourceCreateOrUpdate() { privateLinkResourceId: "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/storageAccountName", requestMessage: "please approve", - resourceRegion: undefined - } + resourceRegion: undefined, + }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); - const result = await client.sharedPrivateLinkResources.beginCreateOrUpdateAndWait( - resourceGroupName, - searchServiceName, - sharedPrivateLinkResourceName, - sharedPrivateLinkResource - ); + const result = + await client.sharedPrivateLinkResources.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + sharedPrivateLinkResourceName, + sharedPrivateLinkResource, + ); console.log(result); } diff --git a/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesDeleteSample.ts b/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesDeleteSample.ts index 17766bbbf78f..20699b031063 100644 --- a/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesDeleteSample.ts +++ b/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Initiates the deletion of the shared private link resource from the search service. * * @summary Initiates the deletion of the shared private link resource from the search service. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/DeleteSharedPrivateLinkResource.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/DeleteSharedPrivateLinkResource.json */ async function sharedPrivateLinkResourceDelete() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function sharedPrivateLinkResourceDelete() { const result = await client.sharedPrivateLinkResources.beginDeleteAndWait( resourceGroupName, searchServiceName, - sharedPrivateLinkResourceName + sharedPrivateLinkResourceName, ); console.log(result); } diff --git a/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesGetSample.ts b/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesGetSample.ts index bda8b185f21a..6f0aa6e28212 100644 --- a/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesGetSample.ts +++ b/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the shared private link resource managed by the search service in the given resource group. * * @summary Gets the details of the shared private link resource managed by the search service in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/GetSharedPrivateLinkResource.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetSharedPrivateLinkResource.json */ async function sharedPrivateLinkResourceGet() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function sharedPrivateLinkResourceGet() { const result = await client.sharedPrivateLinkResources.get( resourceGroupName, searchServiceName, - sharedPrivateLinkResourceName + sharedPrivateLinkResourceName, ); console.log(result); } diff --git a/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesListByServiceSample.ts b/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesListByServiceSample.ts index 2a780830d4a0..2930e326088d 100644 --- a/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesListByServiceSample.ts +++ b/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all shared private link resources managed by the given service. * * @summary Gets a list of all shared private link resources managed by the given service. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/ListSharedPrivateLinkResourcesByService.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListSharedPrivateLinkResourcesByService.json */ async function listSharedPrivateLinkResourcesByService() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function listSharedPrivateLinkResourcesByService() { const resArray = new Array(); for await (let item of client.sharedPrivateLinkResources.listByService( resourceGroupName, - searchServiceName + searchServiceName, )) { resArray.push(item); } diff --git a/sdk/search/arm-search/samples-dev/usageBySubscriptionSkuSample.ts b/sdk/search/arm-search/samples-dev/usageBySubscriptionSkuSample.ts index d35b8c9a8abd..3f781a83a983 100644 --- a/sdk/search/arm-search/samples-dev/usageBySubscriptionSkuSample.ts +++ b/sdk/search/arm-search/samples-dev/usageBySubscriptionSkuSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the quota usage for a search sku in the given subscription. * * @summary Gets the quota usage for a search sku in the given subscription. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/GetQuotaUsage.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetQuotaUsage.json */ async function getQuotaUsage() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/search/arm-search/samples-dev/usagesListBySubscriptionSample.ts b/sdk/search/arm-search/samples-dev/usagesListBySubscriptionSample.ts index d60fb477938e..f58911eefd8a 100644 --- a/sdk/search/arm-search/samples-dev/usagesListBySubscriptionSample.ts +++ b/sdk/search/arm-search/samples-dev/usagesListBySubscriptionSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Gets a list of all Search quota usages in the given subscription. + * This sample demonstrates how to Get a list of all Azure AI Search quota usages across the subscription. * - * @summary Gets a list of all Search quota usages in the given subscription. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/GetQuotaUsagesList.json + * @summary Get a list of all Azure AI Search quota usages across the subscription. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetQuotaUsagesList.json */ async function getQuotaUsagesList() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/README.md b/sdk/search/arm-search/samples/v3-beta/javascript/README.md new file mode 100644 index 000000000000..9b24f28acb6a --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/README.md @@ -0,0 +1,102 @@ +# client library samples for JavaScript (Beta) + +These sample programs show how to use the JavaScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [adminKeysGetSample.js][adminkeysgetsample] | Gets the primary and secondary admin API keys for the specified Azure AI Search service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchGetAdminKeys.json | +| [adminKeysRegenerateSample.js][adminkeysregeneratesample] | Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchRegenerateAdminKey.json | +| [networkSecurityPerimeterConfigurationsGetSample.js][networksecurityperimeterconfigurationsgetsample] | Gets a network security perimeter configuration. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsGet.json | +| [networkSecurityPerimeterConfigurationsListByServiceSample.js][networksecurityperimeterconfigurationslistbyservicesample] | Gets a list of network security perimeter configurations for a search service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsListByService.json | +| [networkSecurityPerimeterConfigurationsReconcileSample.js][networksecurityperimeterconfigurationsreconcilesample] | Reconcile network security perimeter configuration for the Azure AI Search resource provider. This triggers a manual resync with network security perimeter configurations by ensuring the search service carries the latest configuration. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsReconcile.json | +| [operationsListSample.js][operationslistsample] | Lists all of the available REST API operations of the Microsoft.Search provider. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListOperations.json | +| [privateEndpointConnectionsDeleteSample.js][privateendpointconnectionsdeletesample] | Disconnects the private endpoint connection and deletes it from the search service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/DeletePrivateEndpointConnection.json | +| [privateEndpointConnectionsGetSample.js][privateendpointconnectionsgetsample] | Gets the details of the private endpoint connection to the search service in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetPrivateEndpointConnection.json | +| [privateEndpointConnectionsListByServiceSample.js][privateendpointconnectionslistbyservicesample] | Gets a list of all private endpoint connections in the given service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListPrivateEndpointConnectionsByService.json | +| [privateEndpointConnectionsUpdateSample.js][privateendpointconnectionsupdatesample] | Updates a private endpoint connection to the search service in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/UpdatePrivateEndpointConnection.json | +| [privateLinkResourcesListSupportedSample.js][privatelinkresourceslistsupportedsample] | Gets a list of all supported private link resource types for the given service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListSupportedPrivateLinkResources.json | +| [queryKeysCreateSample.js][querykeyscreatesample] | Generates a new query key for the specified search service. You can create up to 50 query keys per service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateQueryKey.json | +| [queryKeysDeleteSample.js][querykeysdeletesample] | Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchDeleteQueryKey.json | +| [queryKeysListBySearchServiceSample.js][querykeyslistbysearchservicesample] | Returns the list of query API keys for the given Azure AI Search service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListQueryKeysBySearchService.json | +| [servicesCheckNameAvailabilitySample.js][serviceschecknameavailabilitysample] | Checks whether or not the given search service name is available for use. Search service names must be globally unique since they are part of the service URI (https://.search.windows.net). x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCheckNameAvailability.json | +| [servicesCreateOrUpdateSample.js][servicescreateorupdatesample] | Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateService.json | +| [servicesDeleteSample.js][servicesdeletesample] | Deletes a search service in the given resource group, along with its associated resources. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchDeleteService.json | +| [servicesGetSample.js][servicesgetsample] | Gets the search service with the given name in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchGetService.json | +| [servicesListByResourceGroupSample.js][serviceslistbyresourcegroupsample] | Gets a list of all Search services in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListServicesByResourceGroup.json | +| [servicesListBySubscriptionSample.js][serviceslistbysubscriptionsample] | Gets a list of all Search services in the given subscription. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListServicesBySubscription.json | +| [servicesUpdateSample.js][servicesupdatesample] | Updates an existing search service in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateService.json | +| [sharedPrivateLinkResourcesCreateOrUpdateSample.js][sharedprivatelinkresourcescreateorupdatesample] | Initiates the creation or update of a shared private link resource managed by the search service in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/CreateOrUpdateSharedPrivateLinkResource.json | +| [sharedPrivateLinkResourcesDeleteSample.js][sharedprivatelinkresourcesdeletesample] | Initiates the deletion of the shared private link resource from the search service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/DeleteSharedPrivateLinkResource.json | +| [sharedPrivateLinkResourcesGetSample.js][sharedprivatelinkresourcesgetsample] | Gets the details of the shared private link resource managed by the search service in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetSharedPrivateLinkResource.json | +| [sharedPrivateLinkResourcesListByServiceSample.js][sharedprivatelinkresourceslistbyservicesample] | Gets a list of all shared private link resources managed by the given service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListSharedPrivateLinkResourcesByService.json | +| [usageBySubscriptionSkuSample.js][usagebysubscriptionskusample] | Gets the quota usage for a search sku in the given subscription. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetQuotaUsage.json | +| [usagesListBySubscriptionSample.js][usageslistbysubscriptionsample] | Get a list of all Azure AI Search quota usages across the subscription. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetQuotaUsagesList.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +3. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node adminKeysGetSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx cross-env SEARCH_SUBSCRIPTION_ID="" SEARCH_RESOURCE_GROUP="" node adminKeysGetSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[adminkeysgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/adminKeysGetSample.js +[adminkeysregeneratesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/adminKeysRegenerateSample.js +[networksecurityperimeterconfigurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsGetSample.js +[networksecurityperimeterconfigurationslistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsListByServiceSample.js +[networksecurityperimeterconfigurationsreconcilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsReconcileSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/operationsListSample.js +[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsDeleteSample.js +[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsGetSample.js +[privateendpointconnectionslistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsListByServiceSample.js +[privateendpointconnectionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsUpdateSample.js +[privatelinkresourceslistsupportedsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/privateLinkResourcesListSupportedSample.js +[querykeyscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/queryKeysCreateSample.js +[querykeysdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/queryKeysDeleteSample.js +[querykeyslistbysearchservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/queryKeysListBySearchServiceSample.js +[serviceschecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/servicesCheckNameAvailabilitySample.js +[servicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/servicesCreateOrUpdateSample.js +[servicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/servicesDeleteSample.js +[servicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/servicesGetSample.js +[serviceslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/servicesListByResourceGroupSample.js +[serviceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/servicesListBySubscriptionSample.js +[servicesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/servicesUpdateSample.js +[sharedprivatelinkresourcescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesCreateOrUpdateSample.js +[sharedprivatelinkresourcesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesDeleteSample.js +[sharedprivatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesGetSample.js +[sharedprivatelinkresourceslistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesListByServiceSample.js +[usagebysubscriptionskusample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/usageBySubscriptionSkuSample.js +[usageslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/usagesListBySubscriptionSample.js +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-search?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/search/arm-search/README.md diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/adminKeysGetSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/adminKeysGetSample.js new file mode 100644 index 000000000000..01c2b855d737 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/adminKeysGetSample.js @@ -0,0 +1,35 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the primary and secondary admin API keys for the specified Azure AI Search service. + * + * @summary Gets the primary and secondary admin API keys for the specified Azure AI Search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchGetAdminKeys.json + */ +async function searchGetAdminKeys() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.adminKeys.get(resourceGroupName, searchServiceName); + console.log(result); +} + +async function main() { + searchGetAdminKeys(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/adminKeysRegenerateSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/adminKeysRegenerateSample.js new file mode 100644 index 000000000000..2188a3c69757 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/adminKeysRegenerateSample.js @@ -0,0 +1,36 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time. + * + * @summary Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchRegenerateAdminKey.json + */ +async function searchRegenerateAdminKey() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const keyKind = "primary"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.adminKeys.regenerate(resourceGroupName, searchServiceName, keyKind); + console.log(result); +} + +async function main() { + searchRegenerateAdminKey(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsGetSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsGetSample.js new file mode 100644 index 000000000000..9f7e5141028f --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsGetSample.js @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a network security perimeter configuration. + * + * @summary Gets a network security perimeter configuration. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsGet.json + */ +async function getAnNspConfigByName() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const nspConfigName = "00000001-2222-3333-4444-111144444444.assoc1"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.networkSecurityPerimeterConfigurations.get( + resourceGroupName, + searchServiceName, + nspConfigName, + ); + console.log(result); +} + +async function main() { + getAnNspConfigByName(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsListByServiceSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsListByServiceSample.js new file mode 100644 index 000000000000..f59095f3b83f --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsListByServiceSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a list of network security perimeter configurations for a search service. + * + * @summary Gets a list of network security perimeter configurations for a search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsListByService.json + */ +async function listNspConfigsBySearchService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.networkSecurityPerimeterConfigurations.listByService( + resourceGroupName, + searchServiceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listNspConfigsBySearchService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsReconcileSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsReconcileSample.js new file mode 100644 index 000000000000..8b31491f14f7 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsReconcileSample.js @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Reconcile network security perimeter configuration for the Azure AI Search resource provider. This triggers a manual resync with network security perimeter configurations by ensuring the search service carries the latest configuration. + * + * @summary Reconcile network security perimeter configuration for the Azure AI Search resource provider. This triggers a manual resync with network security perimeter configurations by ensuring the search service carries the latest configuration. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsReconcile.json + */ +async function reconcileNspConfig() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const nspConfigName = "00000001-2222-3333-4444-111144444444.assoc1"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.networkSecurityPerimeterConfigurations.beginReconcileAndWait( + resourceGroupName, + searchServiceName, + nspConfigName, + ); + console.log(result); +} + +async function main() { + reconcileNspConfig(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/operationsListSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/operationsListSample.js new file mode 100644 index 000000000000..231481dd3afd --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/operationsListSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists all of the available REST API operations of the Microsoft.Search provider. + * + * @summary Lists all of the available REST API operations of the Microsoft.Search provider. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListOperations.json + */ +async function searchListOperations() { + const subscriptionId = + process.env["SEARCH_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + searchListOperations(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/package.json b/sdk/search/arm-search/samples/v3-beta/javascript/package.json new file mode 100644 index 000000000000..2ee5a56f34b7 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/package.json @@ -0,0 +1,32 @@ +{ + "name": "@azure-samples/arm-search-js-beta", + "private": true, + "version": "1.0.0", + "description": " client library samples for JavaScript (Beta)", + "engines": { + "node": ">=18.0.0" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/search/arm-search" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/search/arm-search", + "dependencies": { + "@azure/arm-search": "next", + "dotenv": "latest", + "@azure/identity": "^4.0.1" + } +} diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsDeleteSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsDeleteSample.js new file mode 100644 index 000000000000..e1e3043195c8 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsDeleteSample.js @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Disconnects the private endpoint connection and deletes it from the search service. + * + * @summary Disconnects the private endpoint connection and deletes it from the search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/DeletePrivateEndpointConnection.json + */ +async function privateEndpointConnectionDelete() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const privateEndpointConnectionName = "testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.delete( + resourceGroupName, + searchServiceName, + privateEndpointConnectionName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionDelete(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsGetSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsGetSample.js new file mode 100644 index 000000000000..55263e1ea487 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsGetSample.js @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the details of the private endpoint connection to the search service in the given resource group. + * + * @summary Gets the details of the private endpoint connection to the search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetPrivateEndpointConnection.json + */ +async function privateEndpointConnectionGet() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const privateEndpointConnectionName = "testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.get( + resourceGroupName, + searchServiceName, + privateEndpointConnectionName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionGet(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsListByServiceSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsListByServiceSample.js new file mode 100644 index 000000000000..a6d286a9bf18 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsListByServiceSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a list of all private endpoint connections in the given service. + * + * @summary Gets a list of all private endpoint connections in the given service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListPrivateEndpointConnectionsByService.json + */ +async function listPrivateEndpointConnectionsByService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.privateEndpointConnections.listByService( + resourceGroupName, + searchServiceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listPrivateEndpointConnectionsByService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsUpdateSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsUpdateSample.js new file mode 100644 index 000000000000..637bd5cea08f --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsUpdateSample.js @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Updates a private endpoint connection to the search service in the given resource group. + * + * @summary Updates a private endpoint connection to the search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/UpdatePrivateEndpointConnection.json + */ +async function privateEndpointConnectionUpdate() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const privateEndpointConnectionName = "testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546"; + const privateEndpointConnection = { + properties: { + privateLinkServiceConnectionState: { + description: "Rejected for some reason.", + status: "Rejected", + }, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.update( + resourceGroupName, + searchServiceName, + privateEndpointConnectionName, + privateEndpointConnection, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionUpdate(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/privateLinkResourcesListSupportedSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/privateLinkResourcesListSupportedSample.js new file mode 100644 index 000000000000..b15f71c1ec26 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/privateLinkResourcesListSupportedSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a list of all supported private link resource types for the given service. + * + * @summary Gets a list of all supported private link resource types for the given service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListSupportedPrivateLinkResources.json + */ +async function listSupportedPrivateLinkResources() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.privateLinkResources.listSupported( + resourceGroupName, + searchServiceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listSupportedPrivateLinkResources(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/queryKeysCreateSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/queryKeysCreateSample.js new file mode 100644 index 000000000000..0b8459c27207 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/queryKeysCreateSample.js @@ -0,0 +1,36 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Generates a new query key for the specified search service. You can create up to 50 query keys per service. + * + * @summary Generates a new query key for the specified search service. You can create up to 50 query keys per service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateQueryKey.json + */ +async function searchCreateQueryKey() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const name = "An API key granting read-only access to the documents collection of an index."; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.queryKeys.create(resourceGroupName, searchServiceName, name); + console.log(result); +} + +async function main() { + searchCreateQueryKey(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/queryKeysDeleteSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/queryKeysDeleteSample.js new file mode 100644 index 000000000000..91f9471c14a8 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/queryKeysDeleteSample.js @@ -0,0 +1,36 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it. + * + * @summary Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchDeleteQueryKey.json + */ +async function searchDeleteQueryKey() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const key = ""; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.queryKeys.delete(resourceGroupName, searchServiceName, key); + console.log(result); +} + +async function main() { + searchDeleteQueryKey(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/queryKeysListBySearchServiceSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/queryKeysListBySearchServiceSample.js new file mode 100644 index 000000000000..96429be50e9c --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/queryKeysListBySearchServiceSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Returns the list of query API keys for the given Azure AI Search service. + * + * @summary Returns the list of query API keys for the given Azure AI Search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListQueryKeysBySearchService.json + */ +async function searchListQueryKeysBySearchService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.queryKeys.listBySearchService( + resourceGroupName, + searchServiceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + searchListQueryKeysBySearchService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/sample.env b/sdk/search/arm-search/samples/v3-beta/javascript/sample.env new file mode 100644 index 000000000000..672847a3fea0 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/sample.env @@ -0,0 +1,4 @@ +# App registration secret for AAD authentication +AZURE_CLIENT_SECRET= +AZURE_CLIENT_ID= +AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/servicesCheckNameAvailabilitySample.js b/sdk/search/arm-search/samples/v3-beta/javascript/servicesCheckNameAvailabilitySample.js new file mode 100644 index 000000000000..a15fbbe68292 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/servicesCheckNameAvailabilitySample.js @@ -0,0 +1,34 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Checks whether or not the given search service name is available for use. Search service names must be globally unique since they are part of the service URI (https://.search.windows.net). + * + * @summary Checks whether or not the given search service name is available for use. Search service names must be globally unique since they are part of the service URI (https://.search.windows.net). + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCheckNameAvailability.json + */ +async function searchCheckNameAvailability() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const name = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.checkNameAvailability(name); + console.log(result); +} + +async function main() { + searchCheckNameAvailability(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/servicesCreateOrUpdateSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/servicesCreateOrUpdateSample.js new file mode 100644 index 000000000000..0586ee5ed7e4 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/servicesCreateOrUpdateSample.js @@ -0,0 +1,330 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateService.json + */ +async function searchCreateOrUpdateService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceAuthOptions.json + */ +async function searchCreateOrUpdateServiceAuthOptions() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + authOptions: { + aadOrApiKey: { aadAuthFailureMode: "http401WithBearerChallenge" }, + }, + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceDisableLocalAuth.json + */ +async function searchCreateOrUpdateServiceDisableLocalAuth() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + disableLocalAuth: true, + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints.json + */ +async function searchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + hostingMode: "default", + location: "westus", + partitionCount: 1, + publicNetworkAccess: "disabled", + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs.json + */ +async function searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + hostingMode: "default", + location: "westus", + networkRuleSet: { + ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }], + }, + partitionCount: 1, + replicaCount: 1, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass.json + */ +async function searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + hostingMode: "default", + location: "westus", + networkRuleSet: { + bypass: "AzurePortal", + ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }], + }, + partitionCount: 1, + replicaCount: 1, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceWithCmkEnforcement.json + */ +async function searchCreateOrUpdateServiceWithCmkEnforcement() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + encryptionWithCmk: { enforcement: "Enabled" }, + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceWithDataExfiltration.json + */ +async function searchCreateOrUpdateServiceWithDataExfiltration() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + disabledDataExfiltrationOptions: ["All"], + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceWithIdentity.json + */ +async function searchCreateOrUpdateServiceWithIdentity() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + hostingMode: "default", + identity: { + type: "SystemAssigned, UserAssigned", + userAssignedIdentities: { + "/subscriptions/00000000000000000000000000000000/resourcegroups/rg1/providers/MicrosoftManagedIdentity/userAssignedIdentities/userMi": + {}, + }, + }, + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateWithSemanticSearch.json + */ +async function searchCreateOrUpdateWithSemanticSearch() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + semanticSearch: "free", + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +async function main() { + searchCreateOrUpdateService(); + searchCreateOrUpdateServiceAuthOptions(); + searchCreateOrUpdateServiceDisableLocalAuth(); + searchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints(); + searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs(); + searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass(); + searchCreateOrUpdateServiceWithCmkEnforcement(); + searchCreateOrUpdateServiceWithDataExfiltration(); + searchCreateOrUpdateServiceWithIdentity(); + searchCreateOrUpdateWithSemanticSearch(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/servicesDeleteSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/servicesDeleteSample.js new file mode 100644 index 000000000000..eb91fbbb59e0 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/servicesDeleteSample.js @@ -0,0 +1,35 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes a search service in the given resource group, along with its associated resources. + * + * @summary Deletes a search service in the given resource group, along with its associated resources. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchDeleteService.json + */ +async function searchDeleteService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.delete(resourceGroupName, searchServiceName); + console.log(result); +} + +async function main() { + searchDeleteService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/servicesGetSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/servicesGetSample.js new file mode 100644 index 000000000000..11993ebbb11a --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/servicesGetSample.js @@ -0,0 +1,35 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the search service with the given name in the given resource group. + * + * @summary Gets the search service with the given name in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchGetService.json + */ +async function searchGetService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.get(resourceGroupName, searchServiceName); + console.log(result); +} + +async function main() { + searchGetService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/servicesListByResourceGroupSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/servicesListByResourceGroupSample.js new file mode 100644 index 000000000000..9b71d08b27cc --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/servicesListByResourceGroupSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a list of all Search services in the given resource group. + * + * @summary Gets a list of all Search services in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListServicesByResourceGroup.json + */ +async function searchListServicesByResourceGroup() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.services.listByResourceGroup(resourceGroupName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + searchListServicesByResourceGroup(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/servicesListBySubscriptionSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/servicesListBySubscriptionSample.js new file mode 100644 index 000000000000..39658e5fc05e --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/servicesListBySubscriptionSample.js @@ -0,0 +1,36 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a list of all Search services in the given subscription. + * + * @summary Gets a list of all Search services in the given subscription. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListServicesBySubscription.json + */ +async function searchListServicesBySubscription() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.services.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + searchListServicesBySubscription(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/servicesUpdateSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/servicesUpdateSample.js new file mode 100644 index 000000000000..046ce643d6aa --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/servicesUpdateSample.js @@ -0,0 +1,245 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateService.json + */ +async function searchUpdateService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + replicaCount: 2, + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update(resourceGroupName, searchServiceName, service); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceAuthOptions.json + */ +async function searchUpdateServiceAuthOptions() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + authOptions: { + aadOrApiKey: { aadAuthFailureMode: "http401WithBearerChallenge" }, + }, + replicaCount: 2, + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update(resourceGroupName, searchServiceName, service); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceDisableLocalAuth.json + */ +async function searchUpdateServiceDisableLocalAuth() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + disableLocalAuth: true, + replicaCount: 2, + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update(resourceGroupName, searchServiceName, service); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceToAllowAccessFromPrivateEndpoints.json + */ +async function searchUpdateServiceToAllowAccessFromPrivateEndpoints() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + partitionCount: 1, + publicNetworkAccess: "disabled", + replicaCount: 1, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update(resourceGroupName, searchServiceName, service); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceToAllowAccessFromPublicCustomIPs.json + */ +async function searchUpdateServiceToAllowAccessFromPublicCustomIPs() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + networkRuleSet: { + ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }], + }, + partitionCount: 1, + publicNetworkAccess: "enabled", + replicaCount: 3, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update(resourceGroupName, searchServiceName, service); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass.json + */ +async function searchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + networkRuleSet: { + bypass: "AzurePortal", + ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }], + }, + partitionCount: 1, + publicNetworkAccess: "enabled", + replicaCount: 3, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update(resourceGroupName, searchServiceName, service); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceToRemoveIdentity.json + */ +async function searchUpdateServiceToRemoveIdentity() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + identity: { type: "None" }, + sku: { name: "standard" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update(resourceGroupName, searchServiceName, service); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceWithCmkEnforcement.json + */ +async function searchUpdateServiceWithCmkEnforcement() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + encryptionWithCmk: { enforcement: "Enabled" }, + replicaCount: 2, + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update(resourceGroupName, searchServiceName, service); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceWithDataExfiltration.json + */ +async function searchUpdateServiceWithDataExfiltration() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + disabledDataExfiltrationOptions: ["All"], + replicaCount: 2, + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update(resourceGroupName, searchServiceName, service); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceWithSemanticSearch.json + */ +async function searchUpdateServiceWithSemanticSearch() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + replicaCount: 2, + semanticSearch: "standard", + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update(resourceGroupName, searchServiceName, service); + console.log(result); +} + +async function main() { + searchUpdateService(); + searchUpdateServiceAuthOptions(); + searchUpdateServiceDisableLocalAuth(); + searchUpdateServiceToAllowAccessFromPrivateEndpoints(); + searchUpdateServiceToAllowAccessFromPublicCustomIPs(); + searchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass(); + searchUpdateServiceToRemoveIdentity(); + searchUpdateServiceWithCmkEnforcement(); + searchUpdateServiceWithDataExfiltration(); + searchUpdateServiceWithSemanticSearch(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesCreateOrUpdateSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesCreateOrUpdateSample.js new file mode 100644 index 000000000000..640164c7347f --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesCreateOrUpdateSample.js @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Initiates the creation or update of a shared private link resource managed by the search service in the given resource group. + * + * @summary Initiates the creation or update of a shared private link resource managed by the search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/CreateOrUpdateSharedPrivateLinkResource.json + */ +async function sharedPrivateLinkResourceCreateOrUpdate() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const sharedPrivateLinkResourceName = "testResource"; + const sharedPrivateLinkResource = { + properties: { + groupId: "blob", + privateLinkResourceId: + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/storageAccountName", + requestMessage: "please approve", + resourceRegion: undefined, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.sharedPrivateLinkResources.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + sharedPrivateLinkResourceName, + sharedPrivateLinkResource, + ); + console.log(result); +} + +async function main() { + sharedPrivateLinkResourceCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesDeleteSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesDeleteSample.js new file mode 100644 index 000000000000..b3d7d6301b0a --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesDeleteSample.js @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Initiates the deletion of the shared private link resource from the search service. + * + * @summary Initiates the deletion of the shared private link resource from the search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/DeleteSharedPrivateLinkResource.json + */ +async function sharedPrivateLinkResourceDelete() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const sharedPrivateLinkResourceName = "testResource"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.sharedPrivateLinkResources.beginDeleteAndWait( + resourceGroupName, + searchServiceName, + sharedPrivateLinkResourceName, + ); + console.log(result); +} + +async function main() { + sharedPrivateLinkResourceDelete(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesGetSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesGetSample.js new file mode 100644 index 000000000000..2cfbc0b88b82 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesGetSample.js @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the details of the shared private link resource managed by the search service in the given resource group. + * + * @summary Gets the details of the shared private link resource managed by the search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetSharedPrivateLinkResource.json + */ +async function sharedPrivateLinkResourceGet() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const sharedPrivateLinkResourceName = "testResource"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.sharedPrivateLinkResources.get( + resourceGroupName, + searchServiceName, + sharedPrivateLinkResourceName, + ); + console.log(result); +} + +async function main() { + sharedPrivateLinkResourceGet(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesListByServiceSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesListByServiceSample.js new file mode 100644 index 000000000000..0d31b345639f --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesListByServiceSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a list of all shared private link resources managed by the given service. + * + * @summary Gets a list of all shared private link resources managed by the given service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListSharedPrivateLinkResourcesByService.json + */ +async function listSharedPrivateLinkResourcesByService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.sharedPrivateLinkResources.listByService( + resourceGroupName, + searchServiceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listSharedPrivateLinkResourcesByService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/usageBySubscriptionSkuSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/usageBySubscriptionSkuSample.js new file mode 100644 index 000000000000..aa940b8698b0 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/usageBySubscriptionSkuSample.js @@ -0,0 +1,35 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the quota usage for a search sku in the given subscription. + * + * @summary Gets the quota usage for a search sku in the given subscription. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetQuotaUsage.json + */ +async function getQuotaUsage() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const location = "westus"; + const skuName = "free"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.usageBySubscriptionSku(location, skuName); + console.log(result); +} + +async function main() { + getQuotaUsage(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/usagesListBySubscriptionSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/usagesListBySubscriptionSample.js new file mode 100644 index 000000000000..e4b6054ced52 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/usagesListBySubscriptionSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get a list of all Azure AI Search quota usages across the subscription. + * + * @summary Get a list of all Azure AI Search quota usages across the subscription. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetQuotaUsagesList.json + */ +async function getQuotaUsagesList() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const location = "westus"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.usages.listBySubscription(location)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + getQuotaUsagesList(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/README.md b/sdk/search/arm-search/samples/v3-beta/typescript/README.md new file mode 100644 index 000000000000..c57256d5b101 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/README.md @@ -0,0 +1,115 @@ +# client library samples for TypeScript (Beta) + +These sample programs show how to use the TypeScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [adminKeysGetSample.ts][adminkeysgetsample] | Gets the primary and secondary admin API keys for the specified Azure AI Search service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchGetAdminKeys.json | +| [adminKeysRegenerateSample.ts][adminkeysregeneratesample] | Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchRegenerateAdminKey.json | +| [networkSecurityPerimeterConfigurationsGetSample.ts][networksecurityperimeterconfigurationsgetsample] | Gets a network security perimeter configuration. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsGet.json | +| [networkSecurityPerimeterConfigurationsListByServiceSample.ts][networksecurityperimeterconfigurationslistbyservicesample] | Gets a list of network security perimeter configurations for a search service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsListByService.json | +| [networkSecurityPerimeterConfigurationsReconcileSample.ts][networksecurityperimeterconfigurationsreconcilesample] | Reconcile network security perimeter configuration for the Azure AI Search resource provider. This triggers a manual resync with network security perimeter configurations by ensuring the search service carries the latest configuration. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsReconcile.json | +| [operationsListSample.ts][operationslistsample] | Lists all of the available REST API operations of the Microsoft.Search provider. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListOperations.json | +| [privateEndpointConnectionsDeleteSample.ts][privateendpointconnectionsdeletesample] | Disconnects the private endpoint connection and deletes it from the search service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/DeletePrivateEndpointConnection.json | +| [privateEndpointConnectionsGetSample.ts][privateendpointconnectionsgetsample] | Gets the details of the private endpoint connection to the search service in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetPrivateEndpointConnection.json | +| [privateEndpointConnectionsListByServiceSample.ts][privateendpointconnectionslistbyservicesample] | Gets a list of all private endpoint connections in the given service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListPrivateEndpointConnectionsByService.json | +| [privateEndpointConnectionsUpdateSample.ts][privateendpointconnectionsupdatesample] | Updates a private endpoint connection to the search service in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/UpdatePrivateEndpointConnection.json | +| [privateLinkResourcesListSupportedSample.ts][privatelinkresourceslistsupportedsample] | Gets a list of all supported private link resource types for the given service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListSupportedPrivateLinkResources.json | +| [queryKeysCreateSample.ts][querykeyscreatesample] | Generates a new query key for the specified search service. You can create up to 50 query keys per service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateQueryKey.json | +| [queryKeysDeleteSample.ts][querykeysdeletesample] | Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchDeleteQueryKey.json | +| [queryKeysListBySearchServiceSample.ts][querykeyslistbysearchservicesample] | Returns the list of query API keys for the given Azure AI Search service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListQueryKeysBySearchService.json | +| [servicesCheckNameAvailabilitySample.ts][serviceschecknameavailabilitysample] | Checks whether or not the given search service name is available for use. Search service names must be globally unique since they are part of the service URI (https://.search.windows.net). x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCheckNameAvailability.json | +| [servicesCreateOrUpdateSample.ts][servicescreateorupdatesample] | Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateService.json | +| [servicesDeleteSample.ts][servicesdeletesample] | Deletes a search service in the given resource group, along with its associated resources. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchDeleteService.json | +| [servicesGetSample.ts][servicesgetsample] | Gets the search service with the given name in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchGetService.json | +| [servicesListByResourceGroupSample.ts][serviceslistbyresourcegroupsample] | Gets a list of all Search services in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListServicesByResourceGroup.json | +| [servicesListBySubscriptionSample.ts][serviceslistbysubscriptionsample] | Gets a list of all Search services in the given subscription. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListServicesBySubscription.json | +| [servicesUpdateSample.ts][servicesupdatesample] | Updates an existing search service in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateService.json | +| [sharedPrivateLinkResourcesCreateOrUpdateSample.ts][sharedprivatelinkresourcescreateorupdatesample] | Initiates the creation or update of a shared private link resource managed by the search service in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/CreateOrUpdateSharedPrivateLinkResource.json | +| [sharedPrivateLinkResourcesDeleteSample.ts][sharedprivatelinkresourcesdeletesample] | Initiates the deletion of the shared private link resource from the search service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/DeleteSharedPrivateLinkResource.json | +| [sharedPrivateLinkResourcesGetSample.ts][sharedprivatelinkresourcesgetsample] | Gets the details of the shared private link resource managed by the search service in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetSharedPrivateLinkResource.json | +| [sharedPrivateLinkResourcesListByServiceSample.ts][sharedprivatelinkresourceslistbyservicesample] | Gets a list of all shared private link resources managed by the given service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListSharedPrivateLinkResourcesByService.json | +| [usageBySubscriptionSkuSample.ts][usagebysubscriptionskusample] | Gets the quota usage for a search sku in the given subscription. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetQuotaUsage.json | +| [usagesListBySubscriptionSample.ts][usageslistbysubscriptionsample] | Get a list of all Azure AI Search quota usages across the subscription. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetQuotaUsagesList.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: + +```bash +npm install -g typescript +``` + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Compile the samples: + +```bash +npm run build +``` + +3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +4. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node dist/adminKeysGetSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx cross-env SEARCH_SUBSCRIPTION_ID="" SEARCH_RESOURCE_GROUP="" node dist/adminKeysGetSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[adminkeysgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/adminKeysGetSample.ts +[adminkeysregeneratesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/adminKeysRegenerateSample.ts +[networksecurityperimeterconfigurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsGetSample.ts +[networksecurityperimeterconfigurationslistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsListByServiceSample.ts +[networksecurityperimeterconfigurationsreconcilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsReconcileSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/operationsListSample.ts +[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts +[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsGetSample.ts +[privateendpointconnectionslistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsListByServiceSample.ts +[privateendpointconnectionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsUpdateSample.ts +[privatelinkresourceslistsupportedsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/privateLinkResourcesListSupportedSample.ts +[querykeyscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysCreateSample.ts +[querykeysdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysDeleteSample.ts +[querykeyslistbysearchservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysListBySearchServiceSample.ts +[serviceschecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesCheckNameAvailabilitySample.ts +[servicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesCreateOrUpdateSample.ts +[servicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesDeleteSample.ts +[servicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesGetSample.ts +[serviceslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesListByResourceGroupSample.ts +[serviceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesListBySubscriptionSample.ts +[servicesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesUpdateSample.ts +[sharedprivatelinkresourcescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesCreateOrUpdateSample.ts +[sharedprivatelinkresourcesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesDeleteSample.ts +[sharedprivatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesGetSample.ts +[sharedprivatelinkresourceslistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesListByServiceSample.ts +[usagebysubscriptionskusample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/usageBySubscriptionSkuSample.ts +[usageslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/usagesListBySubscriptionSample.ts +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-search?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/search/arm-search/README.md +[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/package.json b/sdk/search/arm-search/samples/v3-beta/typescript/package.json new file mode 100644 index 000000000000..c148413f633f --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/package.json @@ -0,0 +1,41 @@ +{ + "name": "@azure-samples/arm-search-ts-beta", + "private": true, + "version": "1.0.0", + "description": " client library samples for TypeScript (Beta)", + "engines": { + "node": ">=18.0.0" + }, + "scripts": { + "build": "tsc", + "prebuild": "rimraf dist/" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/search/arm-search" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/search/arm-search", + "dependencies": { + "@azure/arm-search": "next", + "dotenv": "latest", + "@azure/identity": "^4.0.1" + }, + "devDependencies": { + "@types/node": "^18.0.0", + "typescript": "~5.3.3", + "rimraf": "latest" + } +} diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/sample.env b/sdk/search/arm-search/samples/v3-beta/typescript/sample.env new file mode 100644 index 000000000000..672847a3fea0 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/sample.env @@ -0,0 +1,4 @@ +# App registration secret for AAD authentication +AZURE_CLIENT_SECRET= +AZURE_CLIENT_ID= +AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/adminKeysGetSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/adminKeysGetSample.ts new file mode 100644 index 000000000000..81733aafebf8 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/adminKeysGetSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the primary and secondary admin API keys for the specified Azure AI Search service. + * + * @summary Gets the primary and secondary admin API keys for the specified Azure AI Search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchGetAdminKeys.json + */ +async function searchGetAdminKeys() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.adminKeys.get( + resourceGroupName, + searchServiceName, + ); + console.log(result); +} + +async function main() { + searchGetAdminKeys(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/adminKeysRegenerateSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/adminKeysRegenerateSample.ts new file mode 100644 index 000000000000..7bfdcce19d4f --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/adminKeysRegenerateSample.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time. + * + * @summary Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchRegenerateAdminKey.json + */ +async function searchRegenerateAdminKey() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const keyKind = "primary"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.adminKeys.regenerate( + resourceGroupName, + searchServiceName, + keyKind, + ); + console.log(result); +} + +async function main() { + searchRegenerateAdminKey(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsGetSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsGetSample.ts new file mode 100644 index 000000000000..3e90ba68cecc --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsGetSample.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a network security perimeter configuration. + * + * @summary Gets a network security perimeter configuration. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsGet.json + */ +async function getAnNspConfigByName() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const nspConfigName = "00000001-2222-3333-4444-111144444444.assoc1"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.networkSecurityPerimeterConfigurations.get( + resourceGroupName, + searchServiceName, + nspConfigName, + ); + console.log(result); +} + +async function main() { + getAnNspConfigByName(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsListByServiceSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsListByServiceSample.ts new file mode 100644 index 000000000000..feeb6bbab14c --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsListByServiceSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a list of network security perimeter configurations for a search service. + * + * @summary Gets a list of network security perimeter configurations for a search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsListByService.json + */ +async function listNspConfigsBySearchService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.networkSecurityPerimeterConfigurations.listByService( + resourceGroupName, + searchServiceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listNspConfigsBySearchService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsReconcileSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsReconcileSample.ts new file mode 100644 index 000000000000..647222db3231 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsReconcileSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Reconcile network security perimeter configuration for the Azure AI Search resource provider. This triggers a manual resync with network security perimeter configurations by ensuring the search service carries the latest configuration. + * + * @summary Reconcile network security perimeter configuration for the Azure AI Search resource provider. This triggers a manual resync with network security perimeter configurations by ensuring the search service carries the latest configuration. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsReconcile.json + */ +async function reconcileNspConfig() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const nspConfigName = "00000001-2222-3333-4444-111144444444.assoc1"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = + await client.networkSecurityPerimeterConfigurations.beginReconcileAndWait( + resourceGroupName, + searchServiceName, + nspConfigName, + ); + console.log(result); +} + +async function main() { + reconcileNspConfig(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/operationsListSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/operationsListSample.ts new file mode 100644 index 000000000000..2e38e7a1f140 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/operationsListSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists all of the available REST API operations of the Microsoft.Search provider. + * + * @summary Lists all of the available REST API operations of the Microsoft.Search provider. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListOperations.json + */ +async function searchListOperations() { + const subscriptionId = + process.env["SEARCH_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + searchListOperations(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts new file mode 100644 index 000000000000..6d492d97979d --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Disconnects the private endpoint connection and deletes it from the search service. + * + * @summary Disconnects the private endpoint connection and deletes it from the search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/DeletePrivateEndpointConnection.json + */ +async function privateEndpointConnectionDelete() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const privateEndpointConnectionName = + "testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.delete( + resourceGroupName, + searchServiceName, + privateEndpointConnectionName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionDelete(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsGetSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsGetSample.ts new file mode 100644 index 000000000000..58f44338e4f3 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsGetSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the details of the private endpoint connection to the search service in the given resource group. + * + * @summary Gets the details of the private endpoint connection to the search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetPrivateEndpointConnection.json + */ +async function privateEndpointConnectionGet() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const privateEndpointConnectionName = + "testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.get( + resourceGroupName, + searchServiceName, + privateEndpointConnectionName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionGet(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsListByServiceSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsListByServiceSample.ts new file mode 100644 index 000000000000..287f544b7b6d --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsListByServiceSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a list of all private endpoint connections in the given service. + * + * @summary Gets a list of all private endpoint connections in the given service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListPrivateEndpointConnectionsByService.json + */ +async function listPrivateEndpointConnectionsByService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.privateEndpointConnections.listByService( + resourceGroupName, + searchServiceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listPrivateEndpointConnectionsByService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsUpdateSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsUpdateSample.ts new file mode 100644 index 000000000000..de3b80a92213 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsUpdateSample.ts @@ -0,0 +1,55 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + PrivateEndpointConnection, + SearchManagementClient, +} from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Updates a private endpoint connection to the search service in the given resource group. + * + * @summary Updates a private endpoint connection to the search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/UpdatePrivateEndpointConnection.json + */ +async function privateEndpointConnectionUpdate() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const privateEndpointConnectionName = + "testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546"; + const privateEndpointConnection: PrivateEndpointConnection = { + properties: { + privateLinkServiceConnectionState: { + description: "Rejected for some reason.", + status: "Rejected", + }, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.update( + resourceGroupName, + searchServiceName, + privateEndpointConnectionName, + privateEndpointConnection, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionUpdate(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/privateLinkResourcesListSupportedSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/privateLinkResourcesListSupportedSample.ts new file mode 100644 index 000000000000..ede3faec04e3 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/privateLinkResourcesListSupportedSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a list of all supported private link resource types for the given service. + * + * @summary Gets a list of all supported private link resource types for the given service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListSupportedPrivateLinkResources.json + */ +async function listSupportedPrivateLinkResources() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.privateLinkResources.listSupported( + resourceGroupName, + searchServiceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listSupportedPrivateLinkResources(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysCreateSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysCreateSample.ts new file mode 100644 index 000000000000..ceb045cfdcb7 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysCreateSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Generates a new query key for the specified search service. You can create up to 50 query keys per service. + * + * @summary Generates a new query key for the specified search service. You can create up to 50 query keys per service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateQueryKey.json + */ +async function searchCreateQueryKey() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const name = + "An API key granting read-only access to the documents collection of an index."; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.queryKeys.create( + resourceGroupName, + searchServiceName, + name, + ); + console.log(result); +} + +async function main() { + searchCreateQueryKey(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysDeleteSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysDeleteSample.ts new file mode 100644 index 000000000000..1bb57af82d39 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysDeleteSample.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it. + * + * @summary Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchDeleteQueryKey.json + */ +async function searchDeleteQueryKey() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const key = ""; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.queryKeys.delete( + resourceGroupName, + searchServiceName, + key, + ); + console.log(result); +} + +async function main() { + searchDeleteQueryKey(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysListBySearchServiceSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysListBySearchServiceSample.ts new file mode 100644 index 000000000000..f5f9534d4918 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysListBySearchServiceSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Returns the list of query API keys for the given Azure AI Search service. + * + * @summary Returns the list of query API keys for the given Azure AI Search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListQueryKeysBySearchService.json + */ +async function searchListQueryKeysBySearchService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.queryKeys.listBySearchService( + resourceGroupName, + searchServiceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + searchListQueryKeysBySearchService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesCheckNameAvailabilitySample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesCheckNameAvailabilitySample.ts new file mode 100644 index 000000000000..4323782dcc95 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesCheckNameAvailabilitySample.ts @@ -0,0 +1,36 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Checks whether or not the given search service name is available for use. Search service names must be globally unique since they are part of the service URI (https://.search.windows.net). + * + * @summary Checks whether or not the given search service name is available for use. Search service names must be globally unique since they are part of the service URI (https://.search.windows.net). + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCheckNameAvailability.json + */ +async function searchCheckNameAvailability() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const name = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.checkNameAvailability(name); + console.log(result); +} + +async function main() { + searchCheckNameAvailability(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesCreateOrUpdateSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesCreateOrUpdateSample.ts new file mode 100644 index 000000000000..18e9c3ed5b16 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesCreateOrUpdateSample.ts @@ -0,0 +1,332 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchService, SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateService.json + */ +async function searchCreateOrUpdateService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchService = { + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceAuthOptions.json + */ +async function searchCreateOrUpdateServiceAuthOptions() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchService = { + authOptions: { + aadOrApiKey: { aadAuthFailureMode: "http401WithBearerChallenge" }, + }, + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceDisableLocalAuth.json + */ +async function searchCreateOrUpdateServiceDisableLocalAuth() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchService = { + disableLocalAuth: true, + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints.json + */ +async function searchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchService = { + hostingMode: "default", + location: "westus", + partitionCount: 1, + publicNetworkAccess: "disabled", + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs.json + */ +async function searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchService = { + hostingMode: "default", + location: "westus", + networkRuleSet: { + ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }], + }, + partitionCount: 1, + replicaCount: 1, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass.json + */ +async function searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchService = { + hostingMode: "default", + location: "westus", + networkRuleSet: { + bypass: "AzurePortal", + ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }], + }, + partitionCount: 1, + replicaCount: 1, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceWithCmkEnforcement.json + */ +async function searchCreateOrUpdateServiceWithCmkEnforcement() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchService = { + encryptionWithCmk: { enforcement: "Enabled" }, + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceWithDataExfiltration.json + */ +async function searchCreateOrUpdateServiceWithDataExfiltration() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchService = { + disabledDataExfiltrationOptions: ["All"], + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceWithIdentity.json + */ +async function searchCreateOrUpdateServiceWithIdentity() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchService = { + hostingMode: "default", + identity: { + type: "SystemAssigned, UserAssigned", + userAssignedIdentities: { + "/subscriptions/00000000000000000000000000000000/resourcegroups/rg1/providers/MicrosoftManagedIdentity/userAssignedIdentities/userMi": + {}, + }, + }, + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateWithSemanticSearch.json + */ +async function searchCreateOrUpdateWithSemanticSearch() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchService = { + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + semanticSearch: "free", + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +async function main() { + searchCreateOrUpdateService(); + searchCreateOrUpdateServiceAuthOptions(); + searchCreateOrUpdateServiceDisableLocalAuth(); + searchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints(); + searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs(); + searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass(); + searchCreateOrUpdateServiceWithCmkEnforcement(); + searchCreateOrUpdateServiceWithDataExfiltration(); + searchCreateOrUpdateServiceWithIdentity(); + searchCreateOrUpdateWithSemanticSearch(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesDeleteSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesDeleteSample.ts new file mode 100644 index 000000000000..934ea94708ed --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesDeleteSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a search service in the given resource group, along with its associated resources. + * + * @summary Deletes a search service in the given resource group, along with its associated resources. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchDeleteService.json + */ +async function searchDeleteService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.delete( + resourceGroupName, + searchServiceName, + ); + console.log(result); +} + +async function main() { + searchDeleteService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesGetSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesGetSample.ts new file mode 100644 index 000000000000..a6b102d2f393 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesGetSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the search service with the given name in the given resource group. + * + * @summary Gets the search service with the given name in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchGetService.json + */ +async function searchGetService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.get( + resourceGroupName, + searchServiceName, + ); + console.log(result); +} + +async function main() { + searchGetService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesListByResourceGroupSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesListByResourceGroupSample.ts new file mode 100644 index 000000000000..d2d98157ef85 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesListByResourceGroupSample.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a list of all Search services in the given resource group. + * + * @summary Gets a list of all Search services in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListServicesByResourceGroup.json + */ +async function searchListServicesByResourceGroup() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.services.listByResourceGroup( + resourceGroupName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + searchListServicesByResourceGroup(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesListBySubscriptionSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesListBySubscriptionSample.ts new file mode 100644 index 000000000000..c20d277bd4e3 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesListBySubscriptionSample.ts @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a list of all Search services in the given subscription. + * + * @summary Gets a list of all Search services in the given subscription. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListServicesBySubscription.json + */ +async function searchListServicesBySubscription() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.services.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + searchListServicesBySubscription(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesUpdateSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesUpdateSample.ts new file mode 100644 index 000000000000..04949fc7d969 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesUpdateSample.ts @@ -0,0 +1,287 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchServiceUpdate, SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateService.json + */ +async function searchUpdateService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchServiceUpdate = { + replicaCount: 2, + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceAuthOptions.json + */ +async function searchUpdateServiceAuthOptions() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchServiceUpdate = { + authOptions: { + aadOrApiKey: { aadAuthFailureMode: "http401WithBearerChallenge" }, + }, + replicaCount: 2, + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceDisableLocalAuth.json + */ +async function searchUpdateServiceDisableLocalAuth() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchServiceUpdate = { + disableLocalAuth: true, + replicaCount: 2, + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceToAllowAccessFromPrivateEndpoints.json + */ +async function searchUpdateServiceToAllowAccessFromPrivateEndpoints() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchServiceUpdate = { + partitionCount: 1, + publicNetworkAccess: "disabled", + replicaCount: 1, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceToAllowAccessFromPublicCustomIPs.json + */ +async function searchUpdateServiceToAllowAccessFromPublicCustomIPs() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchServiceUpdate = { + networkRuleSet: { + ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }], + }, + partitionCount: 1, + publicNetworkAccess: "enabled", + replicaCount: 3, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass.json + */ +async function searchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchServiceUpdate = { + networkRuleSet: { + bypass: "AzurePortal", + ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }], + }, + partitionCount: 1, + publicNetworkAccess: "enabled", + replicaCount: 3, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceToRemoveIdentity.json + */ +async function searchUpdateServiceToRemoveIdentity() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchServiceUpdate = { + identity: { type: "None" }, + sku: { name: "standard" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceWithCmkEnforcement.json + */ +async function searchUpdateServiceWithCmkEnforcement() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchServiceUpdate = { + encryptionWithCmk: { enforcement: "Enabled" }, + replicaCount: 2, + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceWithDataExfiltration.json + */ +async function searchUpdateServiceWithDataExfiltration() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchServiceUpdate = { + disabledDataExfiltrationOptions: ["All"], + replicaCount: 2, + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceWithSemanticSearch.json + */ +async function searchUpdateServiceWithSemanticSearch() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchServiceUpdate = { + replicaCount: 2, + semanticSearch: "standard", + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +async function main() { + searchUpdateService(); + searchUpdateServiceAuthOptions(); + searchUpdateServiceDisableLocalAuth(); + searchUpdateServiceToAllowAccessFromPrivateEndpoints(); + searchUpdateServiceToAllowAccessFromPublicCustomIPs(); + searchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass(); + searchUpdateServiceToRemoveIdentity(); + searchUpdateServiceWithCmkEnforcement(); + searchUpdateServiceWithDataExfiltration(); + searchUpdateServiceWithSemanticSearch(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesCreateOrUpdateSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesCreateOrUpdateSample.ts new file mode 100644 index 000000000000..df6788d5903b --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesCreateOrUpdateSample.ts @@ -0,0 +1,56 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + SharedPrivateLinkResource, + SearchManagementClient, +} from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Initiates the creation or update of a shared private link resource managed by the search service in the given resource group. + * + * @summary Initiates the creation or update of a shared private link resource managed by the search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/CreateOrUpdateSharedPrivateLinkResource.json + */ +async function sharedPrivateLinkResourceCreateOrUpdate() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const sharedPrivateLinkResourceName = "testResource"; + const sharedPrivateLinkResource: SharedPrivateLinkResource = { + properties: { + groupId: "blob", + privateLinkResourceId: + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/storageAccountName", + requestMessage: "please approve", + resourceRegion: undefined, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = + await client.sharedPrivateLinkResources.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + sharedPrivateLinkResourceName, + sharedPrivateLinkResource, + ); + console.log(result); +} + +async function main() { + sharedPrivateLinkResourceCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesDeleteSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesDeleteSample.ts new file mode 100644 index 000000000000..20699b031063 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesDeleteSample.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Initiates the deletion of the shared private link resource from the search service. + * + * @summary Initiates the deletion of the shared private link resource from the search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/DeleteSharedPrivateLinkResource.json + */ +async function sharedPrivateLinkResourceDelete() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const sharedPrivateLinkResourceName = "testResource"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.sharedPrivateLinkResources.beginDeleteAndWait( + resourceGroupName, + searchServiceName, + sharedPrivateLinkResourceName, + ); + console.log(result); +} + +async function main() { + sharedPrivateLinkResourceDelete(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesGetSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesGetSample.ts new file mode 100644 index 000000000000..6f0aa6e28212 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesGetSample.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the details of the shared private link resource managed by the search service in the given resource group. + * + * @summary Gets the details of the shared private link resource managed by the search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetSharedPrivateLinkResource.json + */ +async function sharedPrivateLinkResourceGet() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const sharedPrivateLinkResourceName = "testResource"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.sharedPrivateLinkResources.get( + resourceGroupName, + searchServiceName, + sharedPrivateLinkResourceName, + ); + console.log(result); +} + +async function main() { + sharedPrivateLinkResourceGet(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesListByServiceSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesListByServiceSample.ts new file mode 100644 index 000000000000..2930e326088d --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesListByServiceSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a list of all shared private link resources managed by the given service. + * + * @summary Gets a list of all shared private link resources managed by the given service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListSharedPrivateLinkResourcesByService.json + */ +async function listSharedPrivateLinkResourcesByService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.sharedPrivateLinkResources.listByService( + resourceGroupName, + searchServiceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listSharedPrivateLinkResourcesByService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/usageBySubscriptionSkuSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/usageBySubscriptionSkuSample.ts new file mode 100644 index 000000000000..3f781a83a983 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/usageBySubscriptionSkuSample.ts @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the quota usage for a search sku in the given subscription. + * + * @summary Gets the quota usage for a search sku in the given subscription. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetQuotaUsage.json + */ +async function getQuotaUsage() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const location = "westus"; + const skuName = "free"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.usageBySubscriptionSku(location, skuName); + console.log(result); +} + +async function main() { + getQuotaUsage(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/usagesListBySubscriptionSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/usagesListBySubscriptionSample.ts new file mode 100644 index 000000000000..f58911eefd8a --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/usagesListBySubscriptionSample.ts @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get a list of all Azure AI Search quota usages across the subscription. + * + * @summary Get a list of all Azure AI Search quota usages across the subscription. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetQuotaUsagesList.json + */ +async function getQuotaUsagesList() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const location = "westus"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.usages.listBySubscription(location)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + getQuotaUsagesList(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/tsconfig.json b/sdk/search/arm-search/samples/v3-beta/typescript/tsconfig.json new file mode 100644 index 000000000000..e26ce2a6d8f7 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "commonjs", + "moduleResolution": "node", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "alwaysStrict": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src/**.ts" + ] +} diff --git a/sdk/search/arm-search/src/lroImpl.ts b/sdk/search/arm-search/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/search/arm-search/src/lroImpl.ts +++ b/sdk/search/arm-search/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/search/arm-search/src/models/index.ts b/sdk/search/arm-search/src/models/index.ts index cd80f5fe1313..318cd6464f2b 100644 --- a/sdk/search/arm-search/src/models/index.ts +++ b/sdk/search/arm-search/src/models/index.ts @@ -8,10 +8,10 @@ import * as coreClient from "@azure/core-client"; -/** The result of the request to list REST API operations. It contains a list of operations and a URL to get the next set of results. */ +/** The result of the request to list REST API operations. It contains a list of operations and a URL to get the next set of results. */ export interface OperationListResult { /** - * The list of operations supported by the resource provider. + * The list of operations by Azure AI Search, some supported by the resource provider and others by data plane APIs. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: Operation[]; @@ -34,6 +34,21 @@ export interface Operation { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly display?: OperationDisplay; + /** + * Describes if the specified operation is a data plane API operation. Operations where this value is not true are supported directly by the resource provider. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isDataAction?: boolean; + /** + * Describes which originating entities are allowed to invoke this operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly origin?: string; + /** + * Describes additional properties for this operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly properties?: OperationProperties; } /** The object that describes the operation. */ @@ -60,10 +75,121 @@ export interface OperationDisplay { readonly description?: string; } +/** Describes additional properties for this operation. */ +export interface OperationProperties { + /** + * Specifications of the service for this operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly serviceSpecification?: OperationServiceSpecification; +} + +/** Specifications of the service for this operation. */ +export interface OperationServiceSpecification { + /** + * Specifications of metrics for this operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly metricSpecifications?: OperationMetricsSpecification[]; + /** + * Specifications of logs for this operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly logSpecifications?: OperationLogsSpecification[]; +} + +/** Specifications of one type of metric for this operation. */ +export interface OperationMetricsSpecification { + /** + * The name of the metric specification. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The display name of the metric specification. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly displayName?: string; + /** + * The display description of the metric specification. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly displayDescription?: string; + /** + * The unit for the metric specification. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly unit?: string; + /** + * The type of aggregation for the metric specification. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly aggregationType?: string; + /** + * Dimensions for the metric specification. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly dimensions?: OperationMetricDimension[]; + /** + * Availabilities for the metric specification. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly availabilities?: OperationAvailability[]; +} + +/** Describes a particular dimension for the metric specification. */ +export interface OperationMetricDimension { + /** + * The name of the dimension. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The display name of the dimension. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly displayName?: string; +} + +/** Describes a particular availability for the metric specification. */ +export interface OperationAvailability { + /** + * The time grain for the dimension. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly timeGrain?: string; + /** + * The blob duration for the dimension. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly blobDuration?: string; +} + +/** Specifications of one type of log for this operation. */ +export interface OperationLogsSpecification { + /** + * The name of the log specification. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The display name of the log specification. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly displayName?: string; + /** + * The blob duration for the log specification. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly blobDuration?: string; +} + /** Contains information about an API error. */ export interface CloudError { /** Describes a particular API error with an error code and a message. */ error?: CloudErrorBody; + /** A brief description of the error that hints at what went wrong (for details/debugging information refer to the 'error.message' property). */ + message?: string; } /** Describes a particular API error with an error code and a message. */ @@ -78,7 +204,7 @@ export interface CloudErrorBody { details?: CloudErrorBody[]; } -/** Response containing the primary and secondary admin API keys for a given Azure Cognitive Search service. */ +/** Response containing the primary and secondary admin API keys for a given Azure AI Search service. */ export interface AdminKeyResult { /** * The primary admin API key of the search service. @@ -92,10 +218,10 @@ export interface AdminKeyResult { readonly secondaryKey?: string; } -/** Describes an API key for a given Azure Cognitive Search service that has permissions for query operations only. */ +/** Describes an API key for a given Azure AI Search service that conveys read-only permissions on the docs collection of an index. */ export interface QueryKey { /** - * The name of the query API key; may be empty. + * The name of the query API key. Query names are optional, but assigning a name can help you remember how it's used. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; @@ -106,10 +232,10 @@ export interface QueryKey { readonly key?: string; } -/** Response containing the query API keys for a given Azure Cognitive Search service. */ +/** Response containing the query API keys for a given Azure AI Search service. */ export interface ListQueryKeysResult { /** - * The query keys for the Azure Cognitive Search service. + * The query keys for the Azure AI Search service. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: QueryKey[]; @@ -120,64 +246,66 @@ export interface ListQueryKeysResult { readonly nextLink?: string; } -/** Network specific rules that determine how the Azure Cognitive Search service may be reached. */ +/** Network specific rules that determine how the Azure AI Search service may be reached. */ export interface NetworkRuleSet { /** A list of IP restriction rules that defines the inbound network(s) with allowing access to the search service endpoint. At the meantime, all other public IP networks are blocked by the firewall. These restriction rules are applied only when the 'publicNetworkAccess' of the search service is 'enabled'; otherwise, traffic over public interface is not allowed even with any public IP rules, and private endpoint connections would be the exclusive access method. */ ipRules?: IpRule[]; + /** Possible origins of inbound traffic that can bypass the rules defined in the 'ipRules' section. */ + bypass?: SearchBypass; } -/** The IP restriction rule of the Azure Cognitive Search service. */ +/** The IP restriction rule of the Azure AI Search service. */ export interface IpRule { /** Value corresponding to a single IPv4 address (eg., 123.1.2.3) or an IP range in CIDR format (eg., 123.1.2.3/24) to be allowed. */ value?: string; } -/** Describes a policy that determines how resources within the search service are to be encrypted with Customer Managed Keys. */ +/** Describes a policy that determines how resources within the search service are to be encrypted with customer managed keys. */ export interface EncryptionWithCmk { - /** Describes how a search service should enforce having one or more non customer encrypted resources. */ + /** Describes how a search service should enforce compliance if it finds objects that aren't encrypted with the customer-managed key. */ enforcement?: SearchEncryptionWithCmk; /** - * Describes whether the search service is compliant or not with respect to having non customer encrypted resources. If a service has more than one non customer encrypted resource and 'Enforcement' is 'enabled' then the service will be marked as 'nonCompliant'. + * Returns the status of search service compliance with respect to non-CMK-encrypted objects. If a service has more than one unencrypted object, and enforcement is enabled, the service is marked as noncompliant. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly encryptionComplianceStatus?: SearchEncryptionComplianceStatus; } -/** Defines the options for how the data plane API of a Search service authenticates requests. This cannot be set if 'disableLocalAuth' is set to true. */ +/** Defines the options for how the search service authenticates a data plane request. This cannot be set if 'disableLocalAuth' is set to true. */ export interface DataPlaneAuthOptions { - /** Indicates that only the API key needs to be used for authentication. */ + /** Indicates that only the API key can be used for authentication. */ apiKeyOnly?: Record; - /** Indicates that either the API key or an access token from Azure Active Directory can be used for authentication. */ + /** Indicates that either the API key or an access token from a Microsoft Entra ID tenant can be used for authentication. */ aadOrApiKey?: DataPlaneAadOrApiKeyAuthOption; } -/** Indicates that either the API key or an access token from Azure Active Directory can be used for authentication. */ +/** Indicates that either the API key or an access token from a Microsoft Entra ID tenant can be used for authentication. */ export interface DataPlaneAadOrApiKeyAuthOption { - /** Describes what response the data plane API of a Search service would send for requests that failed authentication. */ + /** Describes what response the data plane API of a search service would send for requests that failed authentication. */ aadAuthFailureMode?: AadAuthFailureMode; } -/** Describes the properties of an existing Private Endpoint connection to the Azure Cognitive Search service. */ +/** Describes the properties of an existing private endpoint connection to the search service. */ export interface PrivateEndpointConnectionProperties { /** The private endpoint resource from Microsoft.Network provider. */ privateEndpoint?: PrivateEndpointConnectionPropertiesPrivateEndpoint; - /** Describes the current state of an existing Private Link Service connection to the Azure Private Endpoint. */ + /** Describes the current state of an existing Azure Private Link service connection to the private endpoint. */ privateLinkServiceConnectionState?: PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState; - /** The group id from the provider of resource the private link service connection is for. */ + /** The group ID of the Azure resource for which the private link service is for. */ groupId?: string; - /** The provisioning state of the private link service connection. Can be Updating, Deleting, Failed, Succeeded, or Incomplete */ + /** The provisioning state of the private link service connection. Valid values are Updating, Deleting, Failed, Succeeded, Incomplete, or Canceled. */ provisioningState?: PrivateLinkServiceConnectionProvisioningState; } /** The private endpoint resource from Microsoft.Network provider. */ export interface PrivateEndpointConnectionPropertiesPrivateEndpoint { - /** The resource id of the private endpoint resource from Microsoft.Network provider. */ + /** The resource ID of the private endpoint resource from Microsoft.Network provider. */ id?: string; } -/** Describes the current state of an existing Private Link Service connection to the Azure Private Endpoint. */ +/** Describes the current state of an existing Azure Private Link service connection to the private endpoint. */ export interface PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState { - /** Status of the the private link service connection. Can be Pending, Approved, Rejected, or Disconnected. */ + /** Status of the the private link service connection. Valid values are Pending, Approved, Rejected, or Disconnected. */ status?: PrivateLinkServiceConnectionStatus; /** The description for the private link service connection state. */ description?: string; @@ -204,29 +332,29 @@ export interface Resource { readonly type?: string; } -/** Describes the properties of an existing Shared Private Link Resource managed by the Azure Cognitive Search service. */ +/** Describes the properties of an existing shared private link resource managed by the Azure AI Search service. */ export interface SharedPrivateLinkResourceProperties { - /** The resource id of the resource the shared private link resource is for. */ + /** The resource ID of the resource the shared private link resource is for. */ privateLinkResourceId?: string; - /** The group id from the provider of resource the shared private link resource is for. */ + /** The group ID from the provider of resource the shared private link resource is for. */ groupId?: string; - /** The request message for requesting approval of the shared private link resource. */ + /** The message for requesting approval of the shared private link resource. */ requestMessage?: string; - /** Optional. Can be used to specify the Azure Resource Manager location of the resource to which a shared private link is to be created. This is only required for those resources whose DNS configuration are regional (such as Azure Kubernetes Service). */ + /** Optional. Can be used to specify the Azure Resource Manager location of the resource for which a shared private link is being created. This is only required for those resources whose DNS configuration are regional (such as Azure Kubernetes Service). */ resourceRegion?: string; - /** Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected. */ + /** Status of the shared private link resource. Valid values are Pending, Approved, Rejected or Disconnected. */ status?: SharedPrivateLinkResourceStatus; - /** The provisioning state of the shared private link resource. Can be Updating, Deleting, Failed, Succeeded or Incomplete. */ + /** The provisioning state of the shared private link resource. Valid values are Updating, Deleting, Failed, Succeeded or Incomplete. */ provisioningState?: SharedPrivateLinkResourceProvisioningState; } -/** Defines the SKU of an Azure Cognitive Search Service, which determines price tier and capacity limits. */ +/** Defines the SKU of a search service, which determines billing rate and capacity limits. */ export interface Sku { /** The SKU of the search service. Valid values include: 'free': Shared service. 'basic': Dedicated service with up to 3 replicas. 'standard': Dedicated service with up to 12 partitions and 12 replicas. 'standard2': Similar to standard, but with more capacity per search unit. 'standard3': The largest Standard offering with up to 12 partitions and 12 replicas (or up to 3 partitions with more indexes if you also set the hostingMode property to 'highDensity'). 'storage_optimized_l1': Supports 1TB per partition, up to 12 partitions. 'storage_optimized_l2': Supports 2TB per partition, up to 12 partitions.' */ name?: SkuName; } -/** Identity for the resource. */ +/** Details about the search service identity. A null value indicates that the search service has no identity assigned. */ export interface Identity { /** * The principal ID of the system-assigned identity of the search service. @@ -238,14 +366,32 @@ export interface Identity { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly tenantId?: string; - /** The identity type. */ + /** The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an identity created by the system and a set of user assigned identities. The type 'None' will remove all identities from the service. */ type: IdentityType; + /** The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource IDs in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ + userAssignedIdentities?: { + [propertyName: string]: UserAssignedManagedIdentity; + }; +} + +/** The details of the user assigned managed identity assigned to the search service. */ +export interface UserAssignedManagedIdentity { + /** + * The principal ID of user assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The client ID of user assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly clientId?: string; } -/** Response containing a list of Azure Cognitive Search services. */ +/** Response containing a list of Azure AI Search services. */ export interface SearchServiceListResult { /** - * The list of Search services. + * The list of search services. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: SearchService[]; @@ -265,7 +411,7 @@ export interface PrivateLinkResourcesResult { readonly value?: PrivateLinkResource[]; } -/** Describes the properties of a supported private link resource for the Azure Cognitive Search service. For a given API version, this represents the 'supported' groupIds when creating a shared private link resource. */ +/** Describes the properties of a supported private link resource for the Azure AI Search service. For a given API version, this represents the 'supported' groupIds when creating a shared private link resource. */ export interface PrivateLinkResourceProperties { /** * The group ID of the private link resource. @@ -283,49 +429,49 @@ export interface PrivateLinkResourceProperties { */ readonly requiredZoneNames?: string[]; /** - * The list of resources that are onboarded to private link service, that are supported by Azure Cognitive Search. + * The list of resources that are onboarded to private link service, that are supported by Azure AI Search. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly shareablePrivateLinkResourceTypes?: ShareablePrivateLinkResourceType[]; } -/** Describes an resource type that has been onboarded to private link service, supported by Azure Cognitive Search. */ +/** Describes an resource type that has been onboarded to private link service, supported by Azure AI Search. */ export interface ShareablePrivateLinkResourceType { /** - * The name of the resource type that has been onboarded to private link service, supported by Azure Cognitive Search. + * The name of the resource type that has been onboarded to private link service, supported by Azure AI Search. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * Describes the properties of a resource type that has been onboarded to private link service, supported by Azure Cognitive Search. + * Describes the properties of a resource type that has been onboarded to private link service, supported by Azure AI Search. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly properties?: ShareablePrivateLinkResourceProperties; } -/** Describes the properties of a resource type that has been onboarded to private link service, supported by Azure Cognitive Search. */ +/** Describes the properties of a resource type that has been onboarded to private link service, supported by Azure AI Search. */ export interface ShareablePrivateLinkResourceProperties { /** - * The resource provider type for the resource that has been onboarded to private link service, supported by Azure Cognitive Search. + * The resource provider type for the resource that has been onboarded to private link service, supported by Azure AI Search. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: string; /** - * The resource provider group id for the resource that has been onboarded to private link service, supported by Azure Cognitive Search. + * The resource provider group id for the resource that has been onboarded to private link service, supported by Azure AI Search. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly groupId?: string; /** - * The description of the resource type that has been onboarded to private link service, supported by Azure Cognitive Search. + * The description of the resource type that has been onboarded to private link service, supported by Azure AI Search. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly description?: string; } -/** Response containing a list of Private Endpoint connections. */ +/** Response containing a list of private endpoint connections. */ export interface PrivateEndpointConnectionListResult { /** - * The list of Private Endpoint connections. + * The list of private endpoint connections. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: PrivateEndpointConnection[]; @@ -336,10 +482,10 @@ export interface PrivateEndpointConnectionListResult { readonly nextLink?: string; } -/** Response containing a list of Shared Private Link Resources. */ +/** Response containing a list of shared private link resources. */ export interface SharedPrivateLinkResourceListResult { /** - * The list of Shared Private Link Resources. + * The list of shared private link resources. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: SharedPrivateLinkResource[]; @@ -374,10 +520,10 @@ export interface CheckNameAvailabilityOutput { readonly message?: string; } -/** Response containing the quota usage information for all the supported skus of Azure Cognitive Search service. */ +/** Response containing the quota usage information for all the supported SKUs of Azure AI Search. */ export interface QuotaUsagesListResult { /** - * The quota usages for the SKUs supported by Azure Cognitive Search. + * The quota usages for the SKUs supported by Azure AI Search. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: QuotaUsageResult[]; @@ -388,46 +534,119 @@ export interface QuotaUsagesListResult { readonly nextLink?: string; } -/** Describes the quota usage for a particular sku supported by Azure Cognitive Search. */ +/** Describes the quota usage for a particular SKU. */ export interface QuotaUsageResult { - /** The resource id of the quota usage sku endpoint for Microsoft.Search provider. */ + /** The resource ID of the quota usage SKU endpoint for Microsoft.Search provider. */ id?: string; - /** The unit of measurement for the search sku. */ + /** The unit of measurement for the search SKU. */ unit?: string; - /** The currently used up value for the particular search sku. */ + /** The currently used up value for the particular search SKU. */ currentValue?: number; - /** The quota limit for the particular search sku. */ + /** The quota limit for the particular search SKU. */ limit?: number; /** - * The name of the sku supported by Azure Cognitive Search. + * The name of the SKU supported by Azure AI Search. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: QuotaUsageResultName; } -/** The name of the sku supported by Azure Cognitive Search. */ +/** The name of the SKU supported by Azure AI Search. */ export interface QuotaUsageResultName { - /** The sku name supported by Azure Cognitive Search. */ + /** The SKU name supported by Azure AI Search. */ value?: string; - /** The localized string value for the sku supported by Azure Cognitive Search. */ + /** The localized string value for the SKU name. */ localizedValue?: string; } -/** The details of a long running asynchronous shared private link resource operation */ +/** A list of network security perimeter configurations for a server. */ +export interface NetworkSecurityPerimeterConfigurationListResult { + /** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: NetworkSecurityPerimeterConfiguration[]; + /** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** The perimeter for a network security perimeter configuration. */ +export interface NSPConfigPerimeter { + id?: string; + perimeterGuid?: string; + location?: string; +} + +/** The resource association for the network security perimeter. */ +export interface NSPConfigAssociation { + name?: string; + accessMode?: string; +} + +/** The profile for a network security perimeter configuration. */ +export interface NSPConfigProfile { + name?: string; + accessRulesVersion?: string; + accessRules?: NSPConfigAccessRule[]; +} + +/** An access rule for a network security perimeter configuration. */ +export interface NSPConfigAccessRule { + name?: string; + /** The properties for the access rules in a network security perimeter configuration. */ + properties?: NSPConfigAccessRuleProperties; +} + +/** The properties for the access rules in a network security perimeter configuration. */ +export interface NSPConfigAccessRuleProperties { + direction?: string; + addressPrefixes?: string[]; + fullyQualifiedDomainNames?: string[]; + subscriptions?: string[]; + networkSecurityPerimeters?: NSPConfigNetworkSecurityPerimeterRule[]; +} + +/** The network security perimeter properties present in a configuration rule. */ +export interface NSPConfigNetworkSecurityPerimeterRule { + id?: string; + perimeterGuid?: string; + location?: string; +} + +/** An object to describe any issues with provisioning network security perimeters to a search service. */ +export interface NSPProvisioningIssue { + name?: string; + /** The properties to describe any issues with provisioning network security perimeters to a search service. */ + properties?: NSPProvisioningIssueProperties; +} + +/** The properties to describe any issues with provisioning network security perimeters to a search service. */ +export interface NSPProvisioningIssueProperties { + issueType?: string; + severity?: string; + description?: string; + suggestedResourceIds?: string[]; + suggestedAccessRules?: string[]; +} + +/** The details of a long running asynchronous shared private link resource operation. */ export interface AsyncOperationResult { /** The current status of the long running asynchronous shared private link resource operation. */ status?: SharedPrivateLinkResourceAsyncOperationResult; } -/** Describes an existing Private Endpoint connection to the Azure Cognitive Search service. */ +/** Describes an existing private endpoint connection to the Azure AI Search service. */ export interface PrivateEndpointConnection extends Resource { - /** Describes the properties of an existing Private Endpoint connection to the Azure Cognitive Search service. */ + /** Describes the properties of an existing private endpoint connection to the Azure AI Search service. */ properties?: PrivateEndpointConnectionProperties; } -/** Describes a Shared Private Link Resource managed by the Azure Cognitive Search service. */ +/** Describes a shared private link resource managed by the Azure AI Search service. */ export interface SharedPrivateLinkResource extends Resource { - /** Describes the properties of a Shared Private Link Resource managed by the Azure Cognitive Search service. */ + /** Describes the properties of a shared private link resource managed by the Azure AI Search service. */ properties?: SharedPrivateLinkResourceProperties; } @@ -439,15 +658,15 @@ export interface TrackedResource extends Resource { location: string; } -/** The parameters used to update an Azure Cognitive Search service. */ +/** The parameters used to update an Azure AI Search service. */ export interface SearchServiceUpdate extends Resource { - /** The SKU of the Search Service, which determines price tier and capacity limits. This property is required when creating a new Search Service. */ + /** The SKU of the search service, which determines price tier and capacity limits. This property is required when creating a new search service. */ sku?: Sku; - /** The geographic location of the resource. This must be one of the supported and registered Azure Geo Regions (for example, West US, East US, Southeast Asia, and so forth). This property is required when creating a new resource. */ + /** The geographic location of the resource. This must be one of the supported and registered Azure geo regions (for example, West US, East US, Southeast Asia, and so forth). This property is required when creating a new resource. */ location?: string; /** Tags to help categorize the resource in the Azure portal. */ tags?: { [propertyName: string]: string }; - /** The identity of the resource. */ + /** Details about the search service identity. A null value indicates that the search service has no identity assigned. */ identity?: Identity; /** The number of replicas in the search service. If specified, it must be a value between 1 and 12 inclusive for standard SKUs or between 1 and 3 inclusive for basic SKU. */ replicaCount?: number; @@ -458,7 +677,7 @@ export interface SearchServiceUpdate extends Resource { /** This value can be set to 'enabled' to avoid breaking changes on existing customer resources and templates. If set to 'disabled', traffic over public interface is not allowed, and private endpoint connections would be the exclusive access method. */ publicNetworkAccess?: PublicNetworkAccess; /** - * The status of the search service. Possible values include: 'running': The search service is running and no provisioning operations are underway. 'provisioning': The search service is being provisioned or scaled up or down. 'deleting': The search service is being deleted. 'degraded': The search service is degraded. This can occur when the underlying search units are not healthy. The search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The search service is disabled. In this state, the service will reject all API requests. 'error': The search service is in an error state. If your service is in the degraded, disabled, or error states, it means the Azure Cognitive Search team is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. + * The status of the search service. Possible values include: 'running': The search service is running and no provisioning operations are underway. 'provisioning': The search service is being provisioned or scaled up or down. 'deleting': The search service is being deleted. 'degraded': The search service is degraded. This can occur when the underlying search units are not healthy. The search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The search service is disabled. In this state, the service will reject all API requests. 'error': The search service is in an error state. 'stopped': The search service is in a subscription that's disabled. If your service is in the degraded, disabled, or error states, it means the Azure AI Search team is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: SearchServiceStatus; @@ -472,40 +691,50 @@ export interface SearchServiceUpdate extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; - /** Network specific rules that determine how the Azure Cognitive Search service may be reached. */ + /** Network specific rules that determine how the Azure AI Search service may be reached. */ networkRuleSet?: NetworkRuleSet; + /** A list of data exfiltration scenarios that are explicitly disallowed for the search service. Currently, the only supported value is 'All' to disable all possible data export scenarios with more fine grained controls planned for the future. */ + disabledDataExfiltrationOptions?: SearchDisabledDataExfiltrationOption[]; /** Specifies any policy regarding encryption of resources (such as indexes) using customer manager keys within a search service. */ encryptionWithCmk?: EncryptionWithCmk; /** When set to true, calls to the search service will not be permitted to utilize API keys for authentication. This cannot be set to true if 'dataPlaneAuthOptions' are defined. */ disableLocalAuth?: boolean; /** Defines the options for how the data plane API of a search service authenticates requests. This cannot be set if 'disableLocalAuth' is set to true. */ authOptions?: DataPlaneAuthOptions; + /** Sets options that control the availability of semantic search. This configuration is only possible for certain Azure AI Search SKUs in certain locations. */ + semanticSearch?: SearchSemanticSearch; /** - * The list of private endpoint connections to the Azure Cognitive Search service. + * The list of private endpoint connections to the Azure AI Search service. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly privateEndpointConnections?: PrivateEndpointConnection[]; - /** Sets options that control the availability of semantic search. This configuration is only possible for certain Azure Cognitive Search SKUs in certain locations. */ - semanticSearch?: SearchSemanticSearch; /** - * The list of shared private link resources managed by the Azure Cognitive Search service. + * The list of shared private link resources managed by the Azure AI Search service. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly sharedPrivateLinkResources?: SharedPrivateLinkResource[]; + /** + * A system generated property representing the service's etag that can be for optimistic concurrency control during updates. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly eTag?: string; } -/** Describes a supported private link resource for the Azure Cognitive Search service. */ +/** Describes a supported private link resource for the Azure AI Search service. */ export interface PrivateLinkResource extends Resource { /** - * Describes the properties of a supported private link resource for the Azure Cognitive Search service. + * Describes the properties of a supported private link resource for the Azure AI Search service. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly properties?: PrivateLinkResourceProperties; } -/** Describes an Azure Cognitive Search service and its current state. */ +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends Resource {} + +/** Describes an Azure AI Search service and its current state. */ export interface SearchService extends TrackedResource { - /** The SKU of the Search Service, which determines price tier and capacity limits. This property is required when creating a new Search Service. */ + /** The SKU of the search service, which determines price tier and capacity limits. This property is required when creating a new search service. */ sku?: Sku; /** The identity of the resource. */ identity?: Identity; @@ -518,7 +747,7 @@ export interface SearchService extends TrackedResource { /** This value can be set to 'enabled' to avoid breaking changes on existing customer resources and templates. If set to 'disabled', traffic over public interface is not allowed, and private endpoint connections would be the exclusive access method. */ publicNetworkAccess?: PublicNetworkAccess; /** - * The status of the search service. Possible values include: 'running': The search service is running and no provisioning operations are underway. 'provisioning': The search service is being provisioned or scaled up or down. 'deleting': The search service is being deleted. 'degraded': The search service is degraded. This can occur when the underlying search units are not healthy. The search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The search service is disabled. In this state, the service will reject all API requests. 'error': The search service is in an error state. If your service is in the degraded, disabled, or error states, it means the Azure Cognitive Search team is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. + * The status of the search service. Possible values include: 'running': The search service is running and no provisioning operations are underway. 'provisioning': The search service is being provisioned or scaled up or down. 'deleting': The search service is being deleted. 'degraded': The search service is degraded. This can occur when the underlying search units are not healthy. The search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The search service is disabled. In this state, the service will reject all API requests. 'error': The search service is in an error state. 'stopped': The search service is in a subscription that's disabled. If your service is in the degraded, disabled, or error states, it means the Azure AI Search team is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: SearchServiceStatus; @@ -532,26 +761,51 @@ export interface SearchService extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; - /** Network specific rules that determine how the Azure Cognitive Search service may be reached. */ + /** Network specific rules that determine how the Azure AI Search service may be reached. */ networkRuleSet?: NetworkRuleSet; + /** A list of data exfiltration scenarios that are explicitly disallowed for the search service. Currently, the only supported value is 'All' to disable all possible data export scenarios with more fine grained controls planned for the future. */ + disabledDataExfiltrationOptions?: SearchDisabledDataExfiltrationOption[]; /** Specifies any policy regarding encryption of resources (such as indexes) using customer manager keys within a search service. */ encryptionWithCmk?: EncryptionWithCmk; /** When set to true, calls to the search service will not be permitted to utilize API keys for authentication. This cannot be set to true if 'dataPlaneAuthOptions' are defined. */ disableLocalAuth?: boolean; /** Defines the options for how the data plane API of a search service authenticates requests. This cannot be set if 'disableLocalAuth' is set to true. */ authOptions?: DataPlaneAuthOptions; + /** Sets options that control the availability of semantic search. This configuration is only possible for certain Azure AI Search SKUs in certain locations. */ + semanticSearch?: SearchSemanticSearch; /** - * The list of private endpoint connections to the Azure Cognitive Search service. + * The list of private endpoint connections to the Azure AI Search service. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly privateEndpointConnections?: PrivateEndpointConnection[]; - /** Sets options that control the availability of semantic search. This configuration is only possible for certain Azure Cognitive Search SKUs in certain locations. */ - semanticSearch?: SearchSemanticSearch; /** - * The list of shared private link resources managed by the Azure Cognitive Search service. + * The list of shared private link resources managed by the Azure AI Search service. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly sharedPrivateLinkResources?: SharedPrivateLinkResource[]; + /** + * A system generated property representing the service's etag that can be for optimistic concurrency control during updates. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly eTag?: string; +} + +/** Network security perimeter configuration for a server. */ +export interface NetworkSecurityPerimeterConfiguration extends ProxyResource { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly provisioningState?: string; + /** The perimeter for a network security perimeter configuration. */ + networkSecurityPerimeter?: NSPConfigPerimeter; + /** The resource association for the network security perimeter. */ + resourceAssociation?: NSPConfigAssociation; + /** The profile for a network security perimeter configuration. */ + profile?: NSPConfigProfile; + provisioningIssues?: NSPProvisioningIssue[]; +} + +/** Defines headers for NetworkSecurityPerimeterConfigurations_reconcile operation. */ +export interface NetworkSecurityPerimeterConfigurationsReconcileHeaders { + location?: string; } /** Parameter group */ @@ -560,6 +814,78 @@ export interface SearchManagementRequestOptions { clientRequestId?: string; } +/** Known values of {@link PublicNetworkAccess} that the service accepts. */ +export enum KnownPublicNetworkAccess { + /** The search service is accessible from traffic originating from the public internet. */ + Enabled = "enabled", + /** The search service is not accessible from traffic originating from the public internet. Access is only permitted over approved private endpoint connections. */ + Disabled = "disabled", +} + +/** + * Defines values for PublicNetworkAccess. \ + * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **enabled**: The search service is accessible from traffic originating from the public internet. \ + * **disabled**: The search service is not accessible from traffic originating from the public internet. Access is only permitted over approved private endpoint connections. + */ +export type PublicNetworkAccess = string; + +/** Known values of {@link SearchBypass} that the service accepts. */ +export enum KnownSearchBypass { + /** Indicates that no origin can bypass the rules defined in the 'ipRules' section. This is the default. */ + None = "None", + /** Indicates that requests originating from the Azure portal can bypass the rules defined in the 'ipRules' section. */ + AzurePortal = "AzurePortal", +} + +/** + * Defines values for SearchBypass. \ + * {@link KnownSearchBypass} can be used interchangeably with SearchBypass, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: Indicates that no origin can bypass the rules defined in the 'ipRules' section. This is the default. \ + * **AzurePortal**: Indicates that requests originating from the Azure portal can bypass the rules defined in the 'ipRules' section. + */ +export type SearchBypass = string; + +/** Known values of {@link SearchDisabledDataExfiltrationOption} that the service accepts. */ +export enum KnownSearchDisabledDataExfiltrationOption { + /** Indicates that all data exfiltration scenarios are disabled. */ + All = "All", +} + +/** + * Defines values for SearchDisabledDataExfiltrationOption. \ + * {@link KnownSearchDisabledDataExfiltrationOption} can be used interchangeably with SearchDisabledDataExfiltrationOption, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **All**: Indicates that all data exfiltration scenarios are disabled. + */ +export type SearchDisabledDataExfiltrationOption = string; + +/** Known values of {@link SearchSemanticSearch} that the service accepts. */ +export enum KnownSearchSemanticSearch { + /** Indicates that semantic reranker is disabled for the search service. This is the default. */ + Disabled = "disabled", + /** Enables semantic reranker on a search service and indicates that it is to be used within the limits of the free plan. The free plan would cap the volume of semantic ranking requests and is offered at no extra charge. This is the default for newly provisioned search services. */ + Free = "free", + /** Enables semantic reranker on a search service as a billable feature, with higher throughput and volume of semantically reranked queries. */ + Standard = "standard", +} + +/** + * Defines values for SearchSemanticSearch. \ + * {@link KnownSearchSemanticSearch} can be used interchangeably with SearchSemanticSearch, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **disabled**: Indicates that semantic reranker is disabled for the search service. This is the default. \ + * **free**: Enables semantic reranker on a search service and indicates that it is to be used within the limits of the free plan. The free plan would cap the volume of semantic ranking requests and is offered at no extra charge. This is the default for newly provisioned search services. \ + * **standard**: Enables semantic reranker on a search service as a billable feature, with higher throughput and volume of semantically reranked queries. + */ +export type SearchSemanticSearch = string; + /** Known values of {@link PrivateLinkServiceConnectionProvisioningState} that the service accepts. */ export enum KnownPrivateLinkServiceConnectionProvisioningState { /** The private link service connection is in the process of being created along with other resources for it to be fully functional. */ @@ -572,8 +898,8 @@ export enum KnownPrivateLinkServiceConnectionProvisioningState { Succeeded = "Succeeded", /** Provisioning request for the private link service connection resource has been accepted but the process of creation has not commenced yet. */ Incomplete = "Incomplete", - /** Provisioning request for the private link service connection resource has been canceled */ - Canceled = "Canceled" + /** Provisioning request for the private link service connection resource has been canceled. */ + Canceled = "Canceled", } /** @@ -586,37 +912,124 @@ export enum KnownPrivateLinkServiceConnectionProvisioningState { * **Failed**: The private link service connection has failed to be provisioned or deleted. \ * **Succeeded**: The private link service connection has finished provisioning and is ready for approval. \ * **Incomplete**: Provisioning request for the private link service connection resource has been accepted but the process of creation has not commenced yet. \ - * **Canceled**: Provisioning request for the private link service connection resource has been canceled + * **Canceled**: Provisioning request for the private link service connection resource has been canceled. */ export type PrivateLinkServiceConnectionProvisioningState = string; -/** Known values of {@link SearchSemanticSearch} that the service accepts. */ -export enum KnownSearchSemanticSearch { - /** Indicates that semantic search is disabled for the search service. */ - Disabled = "disabled", - /** Enables semantic search on a search service and indicates that it is to be used within the limits of the free tier. This would cap the volume of semantic search requests and is offered at no extra charge. This is the default for newly provisioned search services. */ +/** Known values of {@link SharedPrivateLinkResourceStatus} that the service accepts. */ +export enum KnownSharedPrivateLinkResourceStatus { + /** The shared private link resource has been created and is pending approval. */ + Pending = "Pending", + /** The shared private link resource is approved and is ready for use. */ + Approved = "Approved", + /** The shared private link resource has been rejected and cannot be used. */ + Rejected = "Rejected", + /** The shared private link resource has been removed from the service. */ + Disconnected = "Disconnected", +} + +/** + * Defines values for SharedPrivateLinkResourceStatus. \ + * {@link KnownSharedPrivateLinkResourceStatus} can be used interchangeably with SharedPrivateLinkResourceStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Pending**: The shared private link resource has been created and is pending approval. \ + * **Approved**: The shared private link resource is approved and is ready for use. \ + * **Rejected**: The shared private link resource has been rejected and cannot be used. \ + * **Disconnected**: The shared private link resource has been removed from the service. + */ +export type SharedPrivateLinkResourceStatus = string; + +/** Known values of {@link SharedPrivateLinkResourceProvisioningState} that the service accepts. */ +export enum KnownSharedPrivateLinkResourceProvisioningState { + /** The shared private link resource is in the process of being created along with other resources for it to be fully functional. */ + Updating = "Updating", + /** The shared private link resource is in the process of being deleted. */ + Deleting = "Deleting", + /** The shared private link resource has failed to be provisioned or deleted. */ + Failed = "Failed", + /** The shared private link resource has finished provisioning and is ready for approval. */ + Succeeded = "Succeeded", + /** Provisioning request for the shared private link resource has been accepted but the process of creation has not commenced yet. */ + Incomplete = "Incomplete", +} + +/** + * Defines values for SharedPrivateLinkResourceProvisioningState. \ + * {@link KnownSharedPrivateLinkResourceProvisioningState} can be used interchangeably with SharedPrivateLinkResourceProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Updating**: The shared private link resource is in the process of being created along with other resources for it to be fully functional. \ + * **Deleting**: The shared private link resource is in the process of being deleted. \ + * **Failed**: The shared private link resource has failed to be provisioned or deleted. \ + * **Succeeded**: The shared private link resource has finished provisioning and is ready for approval. \ + * **Incomplete**: Provisioning request for the shared private link resource has been accepted but the process of creation has not commenced yet. + */ +export type SharedPrivateLinkResourceProvisioningState = string; + +/** Known values of {@link SkuName} that the service accepts. */ +export enum KnownSkuName { + /** Free tier, with no SLA guarantees and a subset of the features offered on billable tiers. */ Free = "free", - /** Enables semantic search on a search service as a billable feature, with higher throughput and volume of semantic search queries. */ - Standard = "standard" + /** Billable tier for a dedicated service having up to 3 replicas. */ + Basic = "basic", + /** Billable tier for a dedicated service having up to 12 partitions and 12 replicas. */ + Standard = "standard", + /** Similar to 'standard', but with more capacity per search unit. */ + Standard2 = "standard2", + /** The largest Standard offering with up to 12 partitions and 12 replicas (or up to 3 partitions with more indexes if you also set the hostingMode property to 'highDensity'). */ + Standard3 = "standard3", + /** Billable tier for a dedicated service that supports 1TB per partition, up to 12 partitions. */ + StorageOptimizedL1 = "storage_optimized_l1", + /** Billable tier for a dedicated service that supports 2TB per partition, up to 12 partitions. */ + StorageOptimizedL2 = "storage_optimized_l2", } /** - * Defines values for SearchSemanticSearch. \ - * {@link KnownSearchSemanticSearch} can be used interchangeably with SearchSemanticSearch, + * Defines values for SkuName. \ + * {@link KnownSkuName} can be used interchangeably with SkuName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **disabled**: Indicates that semantic search is disabled for the search service. \ - * **free**: Enables semantic search on a search service and indicates that it is to be used within the limits of the free tier. This would cap the volume of semantic search requests and is offered at no extra charge. This is the default for newly provisioned search services. \ - * **standard**: Enables semantic search on a search service as a billable feature, with higher throughput and volume of semantic search queries. + * **free**: Free tier, with no SLA guarantees and a subset of the features offered on billable tiers. \ + * **basic**: Billable tier for a dedicated service having up to 3 replicas. \ + * **standard**: Billable tier for a dedicated service having up to 12 partitions and 12 replicas. \ + * **standard2**: Similar to 'standard', but with more capacity per search unit. \ + * **standard3**: The largest Standard offering with up to 12 partitions and 12 replicas (or up to 3 partitions with more indexes if you also set the hostingMode property to 'highDensity'). \ + * **storage_optimized_l1**: Billable tier for a dedicated service that supports 1TB per partition, up to 12 partitions. \ + * **storage_optimized_l2**: Billable tier for a dedicated service that supports 2TB per partition, up to 12 partitions. */ -export type SearchSemanticSearch = string; +export type SkuName = string; + +/** Known values of {@link IdentityType} that the service accepts. */ +export enum KnownIdentityType { + /** Indicates that any identity associated with the search service needs to be removed. */ + None = "None", + /** Indicates that system-assigned identity for the search service will be enabled. */ + SystemAssigned = "SystemAssigned", + /** Indicates that one or more user assigned identities will be assigned to the search service. */ + UserAssigned = "UserAssigned", + /** Indicates that system-assigned identity for the search service will be enabled along with the assignment of one or more user assigned identities. */ + SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", +} + +/** + * Defines values for IdentityType. \ + * {@link KnownIdentityType} can be used interchangeably with IdentityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: Indicates that any identity associated with the search service needs to be removed. \ + * **SystemAssigned**: Indicates that system-assigned identity for the search service will be enabled. \ + * **UserAssigned**: Indicates that one or more user assigned identities will be assigned to the search service. \ + * **SystemAssigned, UserAssigned**: Indicates that system-assigned identity for the search service will be enabled along with the assignment of one or more user assigned identities. + */ +export type IdentityType = string; /** Known values of {@link UnavailableNameReason} that the service accepts. */ export enum KnownUnavailableNameReason { - /** The search service name does not match naming requirements. */ + /** The search service name doesn't match naming requirements. */ Invalid = "Invalid", /** The search service name is already assigned to a different search service. */ - AlreadyExists = "AlreadyExists" + AlreadyExists = "AlreadyExists", } /** @@ -624,7 +1037,7 @@ export enum KnownUnavailableNameReason { * {@link KnownUnavailableNameReason} can be used interchangeably with UnavailableNameReason, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Invalid**: The search service name does not match naming requirements. \ + * **Invalid**: The search service name doesn't match naming requirements. \ * **AlreadyExists**: The search service name is already assigned to a different search service. */ export type UnavailableNameReason = string; @@ -636,7 +1049,7 @@ export enum KnownSharedPrivateLinkResourceAsyncOperationResult { /** Succeeded */ Succeeded = "Succeeded", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -653,8 +1066,6 @@ export type SharedPrivateLinkResourceAsyncOperationResult = string; export type AdminKeyKind = "primary" | "secondary"; /** Defines values for HostingMode. */ export type HostingMode = "default" | "highDensity"; -/** Defines values for PublicNetworkAccess. */ -export type PublicNetworkAccess = "enabled" | "disabled"; /** Defines values for SearchServiceStatus. */ export type SearchServiceStatus = | "running" @@ -662,7 +1073,8 @@ export type SearchServiceStatus = | "deleting" | "degraded" | "disabled" - | "error"; + | "error" + | "stopped"; /** Defines values for ProvisioningState. */ export type ProvisioningState = "succeeded" | "provisioning" | "failed"; /** Defines values for SearchEncryptionWithCmk. */ @@ -677,30 +1089,6 @@ export type PrivateLinkServiceConnectionStatus = | "Approved" | "Rejected" | "Disconnected"; -/** Defines values for SharedPrivateLinkResourceStatus. */ -export type SharedPrivateLinkResourceStatus = - | "Pending" - | "Approved" - | "Rejected" - | "Disconnected"; -/** Defines values for SharedPrivateLinkResourceProvisioningState. */ -export type SharedPrivateLinkResourceProvisioningState = - | "Updating" - | "Deleting" - | "Failed" - | "Succeeded" - | "Incomplete"; -/** Defines values for SkuName. */ -export type SkuName = - | "free" - | "basic" - | "standard" - | "standard2" - | "standard3" - | "storage_optimized_l1" - | "storage_optimized_l2"; -/** Defines values for IdentityType. */ -export type IdentityType = "None" | "SystemAssigned"; /** Optional parameters. */ export interface OperationsListOptionalParams @@ -864,7 +1252,8 @@ export interface PrivateLinkResourcesListSupportedOptionalParams } /** Contains response data for the listSupported operation. */ -export type PrivateLinkResourcesListSupportedResponse = PrivateLinkResourcesResult; +export type PrivateLinkResourcesListSupportedResponse = + PrivateLinkResourcesResult; /** Optional parameters. */ export interface PrivateEndpointConnectionsUpdateOptionalParams @@ -874,7 +1263,8 @@ export interface PrivateEndpointConnectionsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type PrivateEndpointConnectionsUpdateResponse = PrivateEndpointConnection; +export type PrivateEndpointConnectionsUpdateResponse = + PrivateEndpointConnection; /** Optional parameters. */ export interface PrivateEndpointConnectionsGetOptionalParams @@ -894,7 +1284,8 @@ export interface PrivateEndpointConnectionsDeleteOptionalParams } /** Contains response data for the delete operation. */ -export type PrivateEndpointConnectionsDeleteResponse = PrivateEndpointConnection; +export type PrivateEndpointConnectionsDeleteResponse = + PrivateEndpointConnection; /** Optional parameters. */ export interface PrivateEndpointConnectionsListByServiceOptionalParams @@ -904,7 +1295,8 @@ export interface PrivateEndpointConnectionsListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type PrivateEndpointConnectionsListByServiceResponse = PrivateEndpointConnectionListResult; +export type PrivateEndpointConnectionsListByServiceResponse = + PrivateEndpointConnectionListResult; /** Optional parameters. */ export interface PrivateEndpointConnectionsListByServiceNextOptionalParams @@ -914,7 +1306,8 @@ export interface PrivateEndpointConnectionsListByServiceNextOptionalParams } /** Contains response data for the listByServiceNext operation. */ -export type PrivateEndpointConnectionsListByServiceNextResponse = PrivateEndpointConnectionListResult; +export type PrivateEndpointConnectionsListByServiceNextResponse = + PrivateEndpointConnectionListResult; /** Optional parameters. */ export interface SharedPrivateLinkResourcesCreateOrUpdateOptionalParams @@ -928,7 +1321,8 @@ export interface SharedPrivateLinkResourcesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type SharedPrivateLinkResourcesCreateOrUpdateResponse = SharedPrivateLinkResource; +export type SharedPrivateLinkResourcesCreateOrUpdateResponse = + SharedPrivateLinkResource; /** Optional parameters. */ export interface SharedPrivateLinkResourcesGetOptionalParams @@ -959,7 +1353,8 @@ export interface SharedPrivateLinkResourcesListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type SharedPrivateLinkResourcesListByServiceResponse = SharedPrivateLinkResourceListResult; +export type SharedPrivateLinkResourcesListByServiceResponse = + SharedPrivateLinkResourceListResult; /** Optional parameters. */ export interface SharedPrivateLinkResourcesListByServiceNextOptionalParams @@ -969,7 +1364,8 @@ export interface SharedPrivateLinkResourcesListByServiceNextOptionalParams } /** Contains response data for the listByServiceNext operation. */ -export type SharedPrivateLinkResourcesListByServiceNextResponse = SharedPrivateLinkResourceListResult; +export type SharedPrivateLinkResourcesListByServiceNextResponse = + SharedPrivateLinkResourceListResult; /** Optional parameters. */ export interface UsagesListBySubscriptionOptionalParams @@ -1001,6 +1397,43 @@ export interface UsageBySubscriptionSkuOptionalParams /** Contains response data for the usageBySubscriptionSku operation. */ export type UsageBySubscriptionSkuResponse = QuotaUsageResult; +/** Optional parameters. */ +export interface NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByService operation. */ +export type NetworkSecurityPerimeterConfigurationsListByServiceResponse = + NetworkSecurityPerimeterConfigurationListResult; + +/** Optional parameters. */ +export interface NetworkSecurityPerimeterConfigurationsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type NetworkSecurityPerimeterConfigurationsGetResponse = + NetworkSecurityPerimeterConfiguration; + +/** Optional parameters. */ +export interface NetworkSecurityPerimeterConfigurationsReconcileOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the reconcile operation. */ +export type NetworkSecurityPerimeterConfigurationsReconcileResponse = + NetworkSecurityPerimeterConfigurationsReconcileHeaders; + +/** Optional parameters. */ +export interface NetworkSecurityPerimeterConfigurationsListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type NetworkSecurityPerimeterConfigurationsListByServiceNextResponse = + NetworkSecurityPerimeterConfigurationListResult; + /** Optional parameters. */ export interface SearchManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/search/arm-search/src/models/mappers.ts b/sdk/search/arm-search/src/models/mappers.ts index 0c50cefe47f2..8210568d8670 100644 --- a/sdk/search/arm-search/src/models/mappers.ts +++ b/sdk/search/arm-search/src/models/mappers.ts @@ -21,20 +21,20 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } + className: "Operation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -46,18 +46,40 @@ export const Operation: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } - } - } - } + className: "OperationDisplay", + }, + }, + isDataAction: { + serializedName: "isDataAction", + readOnly: true, + nullable: true, + type: { + name: "Boolean", + }, + }, + origin: { + serializedName: "origin", + readOnly: true, + type: { + name: "String", + }, + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "OperationProperties", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -69,32 +91,229 @@ export const OperationDisplay: coreClient.CompositeMapper = { serializedName: "provider", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const OperationProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationProperties", + modelProperties: { + serviceSpecification: { + serializedName: "serviceSpecification", + type: { + name: "Composite", + className: "OperationServiceSpecification", + }, + }, + }, + }, +}; + +export const OperationServiceSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationServiceSpecification", + modelProperties: { + metricSpecifications: { + serializedName: "metricSpecifications", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationMetricsSpecification", + }, + }, + }, + }, + logSpecifications: { + serializedName: "logSpecifications", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationLogsSpecification", + }, + }, + }, + }, + }, + }, +}; + +export const OperationMetricsSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationMetricsSpecification", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + displayName: { + serializedName: "displayName", + readOnly: true, + type: { + name: "String", + }, + }, + displayDescription: { + serializedName: "displayDescription", + readOnly: true, + type: { + name: "String", + }, + }, + unit: { + serializedName: "unit", + readOnly: true, + type: { + name: "String", + }, + }, + aggregationType: { + serializedName: "aggregationType", + readOnly: true, + type: { + name: "String", + }, + }, + dimensions: { + serializedName: "dimensions", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationMetricDimension", + }, + }, + }, + }, + availabilities: { + serializedName: "availabilities", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationAvailability", + }, + }, + }, + }, + }, + }, +}; + +export const OperationMetricDimension: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationMetricDimension", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + displayName: { + serializedName: "displayName", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const OperationAvailability: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationAvailability", + modelProperties: { + timeGrain: { + serializedName: "timeGrain", + readOnly: true, + type: { + name: "String", + }, + }, + blobDuration: { + serializedName: "blobDuration", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const OperationLogsSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationLogsSpecification", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + displayName: { + serializedName: "displayName", + readOnly: true, + type: { + name: "String", + }, + }, + blobDuration: { + serializedName: "blobDuration", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, }; export const CloudError: coreClient.CompositeMapper = { @@ -106,11 +325,17 @@ export const CloudError: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "CloudErrorBody" - } - } - } - } + className: "CloudErrorBody", + }, + }, + message: { + serializedName: "message", + type: { + name: "String", + }, + }, + }, + }, }; export const CloudErrorBody: coreClient.CompositeMapper = { @@ -121,20 +346,20 @@ export const CloudErrorBody: coreClient.CompositeMapper = { code: { serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -143,13 +368,13 @@ export const CloudErrorBody: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudErrorBody" - } - } - } - } - } - } + className: "CloudErrorBody", + }, + }, + }, + }, + }, + }, }; export const AdminKeyResult: coreClient.CompositeMapper = { @@ -161,18 +386,18 @@ export const AdminKeyResult: coreClient.CompositeMapper = { serializedName: "primaryKey", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, secondaryKey: { serializedName: "secondaryKey", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const QueryKey: coreClient.CompositeMapper = { @@ -184,18 +409,18 @@ export const QueryKey: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, key: { serializedName: "key", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ListQueryKeysResult: coreClient.CompositeMapper = { @@ -211,20 +436,20 @@ export const ListQueryKeysResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "QueryKey" - } - } - } + className: "QueryKey", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetworkRuleSet: coreClient.CompositeMapper = { @@ -239,13 +464,19 @@ export const NetworkRuleSet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IpRule" - } - } - } - } - } - } + className: "IpRule", + }, + }, + }, + }, + bypass: { + serializedName: "bypass", + type: { + name: "String", + }, + }, + }, + }, }; export const IpRule: coreClient.CompositeMapper = { @@ -256,11 +487,11 @@ export const IpRule: coreClient.CompositeMapper = { value: { serializedName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EncryptionWithCmk: coreClient.CompositeMapper = { @@ -272,19 +503,19 @@ export const EncryptionWithCmk: coreClient.CompositeMapper = { serializedName: "enforcement", type: { name: "Enum", - allowedValues: ["Disabled", "Enabled", "Unspecified"] - } + allowedValues: ["Disabled", "Enabled", "Unspecified"], + }, }, encryptionComplianceStatus: { serializedName: "encryptionComplianceStatus", readOnly: true, type: { name: "Enum", - allowedValues: ["Compliant", "NonCompliant"] - } - } - } - } + allowedValues: ["Compliant", "NonCompliant"], + }, + }, + }, + }, }; export const DataPlaneAuthOptions: coreClient.CompositeMapper = { @@ -296,18 +527,18 @@ export const DataPlaneAuthOptions: coreClient.CompositeMapper = { serializedName: "apiKeyOnly", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, aadOrApiKey: { serializedName: "aadOrApiKey", type: { name: "Composite", - className: "DataPlaneAadOrApiKeyAuthOption" - } - } - } - } + className: "DataPlaneAadOrApiKeyAuthOption", + }, + }, + }, + }, }; export const DataPlaneAadOrApiKeyAuthOption: coreClient.CompositeMapper = { @@ -319,11 +550,11 @@ export const DataPlaneAadOrApiKeyAuthOption: coreClient.CompositeMapper = { serializedName: "aadAuthFailureMode", type: { name: "Enum", - allowedValues: ["http403", "http401WithBearerChallenge"] - } - } - } - } + allowedValues: ["http403", "http401WithBearerChallenge"], + }, + }, + }, + }, }; export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { @@ -335,77 +566,79 @@ export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { serializedName: "privateEndpoint", type: { name: "Composite", - className: "PrivateEndpointConnectionPropertiesPrivateEndpoint" - } + className: "PrivateEndpointConnectionPropertiesPrivateEndpoint", + }, }, privateLinkServiceConnectionState: { serializedName: "privateLinkServiceConnectionState", type: { name: "Composite", className: - "PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState" - } + "PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState", + }, }, groupId: { serializedName: "groupId", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", type: { - name: "String" - } - } - } - } -}; - -export const PrivateEndpointConnectionPropertiesPrivateEndpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnectionPropertiesPrivateEndpoint", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: - "PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState", - modelProperties: { - status: { - serializedName: "status", - type: { - name: "Enum", - allowedValues: ["Pending", "Approved", "Rejected", "Disconnected"] - } +export const PrivateEndpointConnectionPropertiesPrivateEndpoint: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PrivateEndpointConnectionPropertiesPrivateEndpoint", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, }, - description: { - serializedName: "description", - type: { - name: "String" - } + }, + }; + +export const PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: + "PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "Enum", + allowedValues: ["Pending", "Approved", "Rejected", "Disconnected"], + }, + }, + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + actionsRequired: { + defaultValue: "None", + serializedName: "actionsRequired", + type: { + name: "String", + }, + }, }, - actionsRequired: { - defaultValue: "None", - serializedName: "actionsRequired", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const Resource: coreClient.CompositeMapper = { type: { @@ -416,25 +649,25 @@ export const Resource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SharedPrivateLinkResourceProperties: coreClient.CompositeMapper = { @@ -445,49 +678,41 @@ export const SharedPrivateLinkResourceProperties: coreClient.CompositeMapper = { privateLinkResourceId: { serializedName: "privateLinkResourceId", type: { - name: "String" - } + name: "String", + }, }, groupId: { serializedName: "groupId", type: { - name: "String" - } + name: "String", + }, }, requestMessage: { serializedName: "requestMessage", type: { - name: "String" - } + name: "String", + }, }, resourceRegion: { serializedName: "resourceRegion", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", type: { - name: "Enum", - allowedValues: ["Pending", "Approved", "Rejected", "Disconnected"] - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", type: { - name: "Enum", - allowedValues: [ - "Updating", - "Deleting", - "Failed", - "Succeeded", - "Incomplete" - ] - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Sku: coreClient.CompositeMapper = { @@ -498,20 +723,11 @@ export const Sku: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "Enum", - allowedValues: [ - "free", - "basic", - "standard", - "standard2", - "standard3", - "storage_optimized_l1", - "storage_optimized_l2" - ] - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Identity: coreClient.CompositeMapper = { @@ -523,26 +739,60 @@ export const Identity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", required: true, type: { - name: "Enum", - allowedValues: ["None", "SystemAssigned"] - } - } - } - } + name: "String", + }, + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "UserAssignedManagedIdentity", + }, + }, + }, + }, + }, + }, +}; + +export const UserAssignedManagedIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserAssignedManagedIdentity", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "String", + }, + }, + clientId: { + serializedName: "clientId", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, }; export const SearchServiceListResult: coreClient.CompositeMapper = { @@ -558,20 +808,20 @@ export const SearchServiceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchService" - } - } - } + className: "SearchService", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResourcesResult: coreClient.CompositeMapper = { @@ -587,13 +837,13 @@ export const PrivateLinkResourcesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" - } - } - } - } - } - } + className: "PrivateLinkResource", + }, + }, + }, + }, + }, + }, }; export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { @@ -605,8 +855,8 @@ export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { serializedName: "groupId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, requiredMembers: { serializedName: "requiredMembers", @@ -615,10 +865,10 @@ export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, requiredZoneNames: { serializedName: "requiredZoneNames", @@ -627,10 +877,10 @@ export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, shareablePrivateLinkResourceTypes: { serializedName: "shareablePrivateLinkResourceTypes", @@ -640,267 +890,560 @@ export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ShareablePrivateLinkResourceType" - } - } - } - } - } - } + className: "ShareablePrivateLinkResourceType", + }, + }, + }, + }, + }, + }, +}; + +export const ShareablePrivateLinkResourceType: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ShareablePrivateLinkResourceType", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ShareablePrivateLinkResourceProperties", + }, + }, + }, + }, +}; + +export const ShareablePrivateLinkResourceProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ShareablePrivateLinkResourceProperties", + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + groupId: { + serializedName: "groupId", + readOnly: true, + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const SharedPrivateLinkResourceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SharedPrivateLinkResourceListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedPrivateLinkResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const CheckNameAvailabilityInput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CheckNameAvailabilityInput", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + typeParam: { + defaultValue: "searchServices", + isConstant: true, + serializedName: "type", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const CheckNameAvailabilityOutput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CheckNameAvailabilityOutput", + modelProperties: { + isNameAvailable: { + serializedName: "nameAvailable", + readOnly: true, + type: { + name: "Boolean", + }, + }, + reason: { + serializedName: "reason", + readOnly: true, + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const QuotaUsagesListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QuotaUsagesListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QuotaUsageResult", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const QuotaUsageResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QuotaUsageResult", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + unit: { + serializedName: "unit", + type: { + name: "String", + }, + }, + currentValue: { + serializedName: "currentValue", + type: { + name: "Number", + }, + }, + limit: { + serializedName: "limit", + type: { + name: "Number", + }, + }, + name: { + serializedName: "name", + type: { + name: "Composite", + className: "QuotaUsageResultName", + }, + }, + }, + }, +}; + +export const QuotaUsageResultName: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QuotaUsageResultName", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "String", + }, + }, + localizedValue: { + serializedName: "localizedValue", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const NetworkSecurityPerimeterConfigurationListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfigurationListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfiguration", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const NSPConfigPerimeter: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigPerimeter", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + perimeterGuid: { + serializedName: "perimeterGuid", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const NSPConfigAssociation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigAssociation", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + accessMode: { + serializedName: "accessMode", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const NSPConfigProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigProfile", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + accessRulesVersion: { + serializedName: "accessRulesVersion", + type: { + name: "String", + }, + }, + accessRules: { + serializedName: "accessRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NSPConfigAccessRule", + }, + }, + }, + }, + }, + }, }; -export const ShareablePrivateLinkResourceType: coreClient.CompositeMapper = { +export const NSPConfigAccessRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ShareablePrivateLinkResourceType", + className: "NSPConfigAccessRule", modelProperties: { name: { serializedName: "name", - readOnly: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "ShareablePrivateLinkResourceProperties" - } - } - } - } + className: "NSPConfigAccessRuleProperties", + }, + }, + }, + }, }; -export const ShareablePrivateLinkResourceProperties: coreClient.CompositeMapper = { +export const NSPConfigAccessRuleProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ShareablePrivateLinkResourceProperties", + className: "NSPConfigAccessRuleProperties", modelProperties: { - type: { - serializedName: "type", - readOnly: true, + direction: { + serializedName: "direction", type: { - name: "String" - } + name: "String", + }, }, - groupId: { - serializedName: "groupId", - readOnly: true, + addressPrefixes: { + serializedName: "addressPrefixes", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - description: { - serializedName: "description", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnectionListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + fullyQualifiedDomainNames: { + serializedName: "fullyQualifiedDomainNames", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + name: "String", + }, + }, + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + subscriptions: { + serializedName: "subscriptions", type: { - name: "String" - } - } - } - } -}; - -export const SharedPrivateLinkResourceListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SharedPrivateLinkResourceListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + networkSecurityPerimeters: { + serializedName: "networkSecurityPerimeters", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SharedPrivateLinkResource" - } - } - } + className: "NSPConfigNetworkSecurityPerimeterRule", + }, + }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const CheckNameAvailabilityInput: coreClient.CompositeMapper = { +export const NSPConfigNetworkSecurityPerimeterRule: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NSPConfigNetworkSecurityPerimeterRule", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + perimeterGuid: { + serializedName: "perimeterGuid", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const NSPProvisioningIssue: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CheckNameAvailabilityInput", + className: "NSPProvisioningIssue", modelProperties: { name: { serializedName: "name", - required: true, type: { - name: "String" - } + name: "String", + }, }, - typeParam: { - defaultValue: "searchServices", - isConstant: true, - serializedName: "type", + properties: { + serializedName: "properties", type: { - name: "String" - } - } - } - } + name: "Composite", + className: "NSPProvisioningIssueProperties", + }, + }, + }, + }, }; -export const CheckNameAvailabilityOutput: coreClient.CompositeMapper = { +export const NSPProvisioningIssueProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CheckNameAvailabilityOutput", + className: "NSPProvisioningIssueProperties", modelProperties: { - isNameAvailable: { - serializedName: "nameAvailable", - readOnly: true, + issueType: { + serializedName: "issueType", type: { - name: "Boolean" - } + name: "String", + }, }, - reason: { - serializedName: "reason", - readOnly: true, + severity: { + serializedName: "severity", type: { - name: "String" - } + name: "String", + }, }, - message: { - serializedName: "message", - readOnly: true, + description: { + serializedName: "description", type: { - name: "String" - } - } - } - } -}; - -export const QuotaUsagesListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "QuotaUsagesListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + name: "String", + }, + }, + suggestedResourceIds: { + serializedName: "suggestedResourceIds", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "QuotaUsageResult" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const QuotaUsageResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "QuotaUsageResult", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - unit: { - serializedName: "unit", - type: { - name: "String" - } - }, - currentValue: { - serializedName: "currentValue", - type: { - name: "Number" - } - }, - limit: { - serializedName: "limit", - type: { - name: "Number" - } + name: "String", + }, + }, + }, }, - name: { - serializedName: "name", - type: { - name: "Composite", - className: "QuotaUsageResultName" - } - } - } - } -}; - -export const QuotaUsageResultName: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "QuotaUsageResultName", - modelProperties: { - value: { - serializedName: "value", + suggestedAccessRules: { + serializedName: "suggestedAccessRules", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - localizedValue: { - serializedName: "localizedValue", - type: { - name: "String" - } - } - } - } + }, + }, }; export const AsyncOperationResult: coreClient.CompositeMapper = { @@ -911,11 +1454,11 @@ export const AsyncOperationResult: coreClient.CompositeMapper = { status: { serializedName: "status", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpointConnection: coreClient.CompositeMapper = { @@ -928,11 +1471,11 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "PrivateEndpointConnectionProperties" - } - } - } - } + className: "PrivateEndpointConnectionProperties", + }, + }, + }, + }, }; export const SharedPrivateLinkResource: coreClient.CompositeMapper = { @@ -945,11 +1488,11 @@ export const SharedPrivateLinkResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "SharedPrivateLinkResourceProperties" - } - } - } - } + className: "SharedPrivateLinkResourceProperties", + }, + }, + }, + }, }; export const TrackedResource: coreClient.CompositeMapper = { @@ -962,18 +1505,18 @@ export const TrackedResource: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, location: { serializedName: "location", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SearchServiceUpdate: coreClient.CompositeMapper = { @@ -986,66 +1529,65 @@ export const SearchServiceUpdate: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "Identity" - } + className: "Identity", + }, }, replicaCount: { defaultValue: 1, constraints: { InclusiveMaximum: 12, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.replicaCount", type: { - name: "Number" - } + name: "Number", + }, }, partitionCount: { defaultValue: 1, constraints: { InclusiveMaximum: 12, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.partitionCount", type: { - name: "Number" - } + name: "Number", + }, }, hostingMode: { defaultValue: "default", serializedName: "properties.hostingMode", type: { name: "Enum", - allowedValues: ["default", "highDensity"] - } + allowedValues: ["default", "highDensity"], + }, }, publicNetworkAccess: { defaultValue: "enabled", serializedName: "properties.publicNetworkAccess", type: { - name: "Enum", - allowedValues: ["enabled", "disabled"] - } + name: "String", + }, }, status: { serializedName: "properties.status", @@ -1058,52 +1600,71 @@ export const SearchServiceUpdate: coreClient.CompositeMapper = { "deleting", "degraded", "disabled", - "error" - ] - } + "error", + "stopped", + ], + }, }, statusDetails: { serializedName: "properties.statusDetails", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { name: "Enum", - allowedValues: ["succeeded", "provisioning", "failed"] - } + allowedValues: ["succeeded", "provisioning", "failed"], + }, }, networkRuleSet: { serializedName: "properties.networkRuleSet", type: { name: "Composite", - className: "NetworkRuleSet" - } + className: "NetworkRuleSet", + }, + }, + disabledDataExfiltrationOptions: { + serializedName: "properties.disabledDataExfiltrationOptions", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, encryptionWithCmk: { serializedName: "properties.encryptionWithCmk", type: { name: "Composite", - className: "EncryptionWithCmk" - } + className: "EncryptionWithCmk", + }, }, disableLocalAuth: { serializedName: "properties.disableLocalAuth", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, authOptions: { serializedName: "properties.authOptions", type: { name: "Composite", - className: "DataPlaneAuthOptions" - } + className: "DataPlaneAuthOptions", + }, + }, + semanticSearch: { + serializedName: "properties.semanticSearch", + nullable: true, + type: { + name: "String", + }, }, privateEndpointConnections: { serializedName: "properties.privateEndpointConnections", @@ -1113,17 +1674,10 @@ export const SearchServiceUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } - }, - semanticSearch: { - serializedName: "properties.semanticSearch", - nullable: true, - type: { - name: "String" - } + className: "PrivateEndpointConnection", + }, + }, + }, }, sharedPrivateLinkResources: { serializedName: "properties.sharedPrivateLinkResources", @@ -1133,13 +1687,20 @@ export const SearchServiceUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SharedPrivateLinkResource" - } - } - } - } - } - } + className: "SharedPrivateLinkResource", + }, + }, + }, + }, + eTag: { + serializedName: "properties.eTag", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResource: coreClient.CompositeMapper = { @@ -1152,11 +1713,21 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "PrivateLinkResourceProperties" - } - } - } - } + className: "PrivateLinkResourceProperties", + }, + }, + }, + }, +}; + +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties, + }, + }, }; export const SearchService: coreClient.CompositeMapper = { @@ -1169,53 +1740,52 @@ export const SearchService: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "Identity" - } + className: "Identity", + }, }, replicaCount: { defaultValue: 1, constraints: { InclusiveMaximum: 12, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.replicaCount", type: { - name: "Number" - } + name: "Number", + }, }, partitionCount: { defaultValue: 1, constraints: { InclusiveMaximum: 12, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.partitionCount", type: { - name: "Number" - } + name: "Number", + }, }, hostingMode: { defaultValue: "default", serializedName: "properties.hostingMode", type: { name: "Enum", - allowedValues: ["default", "highDensity"] - } + allowedValues: ["default", "highDensity"], + }, }, publicNetworkAccess: { defaultValue: "enabled", serializedName: "properties.publicNetworkAccess", type: { - name: "Enum", - allowedValues: ["enabled", "disabled"] - } + name: "String", + }, }, status: { serializedName: "properties.status", @@ -1228,52 +1798,71 @@ export const SearchService: coreClient.CompositeMapper = { "deleting", "degraded", "disabled", - "error" - ] - } + "error", + "stopped", + ], + }, }, statusDetails: { serializedName: "properties.statusDetails", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { name: "Enum", - allowedValues: ["succeeded", "provisioning", "failed"] - } + allowedValues: ["succeeded", "provisioning", "failed"], + }, }, networkRuleSet: { serializedName: "properties.networkRuleSet", type: { name: "Composite", - className: "NetworkRuleSet" - } + className: "NetworkRuleSet", + }, + }, + disabledDataExfiltrationOptions: { + serializedName: "properties.disabledDataExfiltrationOptions", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, encryptionWithCmk: { serializedName: "properties.encryptionWithCmk", type: { name: "Composite", - className: "EncryptionWithCmk" - } + className: "EncryptionWithCmk", + }, }, disableLocalAuth: { serializedName: "properties.disableLocalAuth", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, authOptions: { serializedName: "properties.authOptions", type: { name: "Composite", - className: "DataPlaneAuthOptions" - } + className: "DataPlaneAuthOptions", + }, + }, + semanticSearch: { + serializedName: "properties.semanticSearch", + nullable: true, + type: { + name: "String", + }, }, privateEndpointConnections: { serializedName: "properties.privateEndpointConnections", @@ -1283,17 +1872,10 @@ export const SearchService: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } - }, - semanticSearch: { - serializedName: "properties.semanticSearch", - nullable: true, - type: { - name: "String" - } + className: "PrivateEndpointConnection", + }, + }, + }, }, sharedPrivateLinkResources: { serializedName: "properties.sharedPrivateLinkResources", @@ -1303,11 +1885,85 @@ export const SearchService: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SharedPrivateLinkResource" - } - } - } - } - } - } + className: "SharedPrivateLinkResource", + }, + }, + }, + }, + eTag: { + serializedName: "properties.eTag", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, }; + +export const NetworkSecurityPerimeterConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfiguration", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + networkSecurityPerimeter: { + serializedName: "properties.networkSecurityPerimeter", + type: { + name: "Composite", + className: "NSPConfigPerimeter", + }, + }, + resourceAssociation: { + serializedName: "properties.resourceAssociation", + type: { + name: "Composite", + className: "NSPConfigAssociation", + }, + }, + profile: { + serializedName: "properties.profile", + type: { + name: "Composite", + className: "NSPConfigProfile", + }, + }, + provisioningIssues: { + serializedName: "properties.provisioningIssues", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NSPProvisioningIssue", + }, + }, + }, + }, + }, + }, + }; + +export const NetworkSecurityPerimeterConfigurationsReconcileHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfigurationsReconcileHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; diff --git a/sdk/search/arm-search/src/models/parameters.ts b/sdk/search/arm-search/src/models/parameters.ts index b9f3c5a22729..c8d0e4f50a30 100644 --- a/sdk/search/arm-search/src/models/parameters.ts +++ b/sdk/search/arm-search/src/models/parameters.ts @@ -9,14 +9,14 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { SearchService as SearchServiceMapper, SearchServiceUpdate as SearchServiceUpdateMapper, CheckNameAvailabilityInput as CheckNameAvailabilityInputMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, - SharedPrivateLinkResource as SharedPrivateLinkResourceMapper + SharedPrivateLinkResource as SharedPrivateLinkResourceMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -26,9 +26,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -37,22 +37,22 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-11-01", + defaultValue: "2024-03-01-preview", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceGroupName: OperationURLParameter = { @@ -61,34 +61,37 @@ export const resourceGroupName: OperationURLParameter = { serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const searchServiceName: OperationURLParameter = { parameterPath: "searchServiceName", mapper: { + constraints: { + Pattern: new RegExp("^(?=.{2,60}$)[a-z0-9][a-z0-9]+(-[a-z0-9]+)*$"), + }, serializedName: "searchServiceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const clientRequestId: OperationParameter = { parameterPath: [ "options", "searchManagementRequestOptions", - "clientRequestId" + "clientRequestId", ], mapper: { serializedName: "x-ms-client-request-id", type: { - name: "Uuid" - } - } + name: "Uuid", + }, + }, }; export const subscriptionId: OperationURLParameter = { @@ -97,9 +100,9 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const keyKind: OperationURLParameter = { @@ -109,9 +112,9 @@ export const keyKind: OperationURLParameter = { required: true, type: { name: "Enum", - allowedValues: ["primary", "secondary"] - } - } + allowedValues: ["primary", "secondary"], + }, + }, }; export const name: OperationURLParameter = { @@ -120,9 +123,9 @@ export const name: OperationURLParameter = { serializedName: "name", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const key: OperationURLParameter = { @@ -131,9 +134,9 @@ export const key: OperationURLParameter = { serializedName: "key", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -142,10 +145,10 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const contentType: OperationParameter = { @@ -155,34 +158,45 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const service: OperationParameter = { parameterPath: "service", - mapper: SearchServiceMapper + mapper: SearchServiceMapper, +}; + +export const searchServiceName1: OperationURLParameter = { + parameterPath: "searchServiceName", + mapper: { + serializedName: "searchServiceName", + required: true, + type: { + name: "String", + }, + }, }; export const service1: OperationParameter = { parameterPath: "service", - mapper: SearchServiceUpdateMapper + mapper: SearchServiceUpdateMapper, }; export const name1: OperationParameter = { parameterPath: "name", - mapper: CheckNameAvailabilityInputMapper + mapper: CheckNameAvailabilityInputMapper, }; export const typeParam: OperationParameter = { parameterPath: "typeParam", - mapper: CheckNameAvailabilityInputMapper + mapper: CheckNameAvailabilityInputMapper, }; export const privateEndpointConnection: OperationParameter = { parameterPath: "privateEndpointConnection", - mapper: PrivateEndpointConnectionMapper + mapper: PrivateEndpointConnectionMapper, }; export const privateEndpointConnectionName: OperationURLParameter = { @@ -191,14 +205,14 @@ export const privateEndpointConnectionName: OperationURLParameter = { serializedName: "privateEndpointConnectionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const sharedPrivateLinkResource: OperationParameter = { parameterPath: "sharedPrivateLinkResource", - mapper: SharedPrivateLinkResourceMapper + mapper: SharedPrivateLinkResourceMapper, }; export const sharedPrivateLinkResourceName: OperationURLParameter = { @@ -207,9 +221,9 @@ export const sharedPrivateLinkResourceName: OperationURLParameter = { serializedName: "sharedPrivateLinkResourceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const location: OperationURLParameter = { @@ -218,9 +232,9 @@ export const location: OperationURLParameter = { serializedName: "location", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const skuName: OperationURLParameter = { @@ -229,7 +243,25 @@ export const skuName: OperationURLParameter = { serializedName: "skuName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, +}; + +export const nspConfigName: OperationURLParameter = { + parameterPath: "nspConfigName", + mapper: { + constraints: { + Pattern: new RegExp( + "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}\\.[a-z][a-z0-9]*$", + ), + MaxLength: 100, + MinLength: 38, + }, + serializedName: "nspConfigName", + required: true, + type: { + name: "String", + }, + }, }; diff --git a/sdk/search/arm-search/src/operations/adminKeys.ts b/sdk/search/arm-search/src/operations/adminKeys.ts index 4c0578328d81..9cd6560886d3 100644 --- a/sdk/search/arm-search/src/operations/adminKeys.ts +++ b/sdk/search/arm-search/src/operations/adminKeys.ts @@ -16,7 +16,7 @@ import { AdminKeysGetResponse, AdminKeyKind, AdminKeysRegenerateOptionalParams, - AdminKeysRegenerateResponse + AdminKeysRegenerateResponse, } from "../models"; /** Class containing AdminKeys operations. */ @@ -32,21 +32,21 @@ export class AdminKeysImpl implements AdminKeys { } /** - * Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service. + * Gets the primary and secondary admin API keys for the specified Azure AI Search service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ get( resourceGroupName: string, searchServiceName: string, - options?: AdminKeysGetOptionalParams + options?: AdminKeysGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -55,8 +55,8 @@ export class AdminKeysImpl implements AdminKeys { * time. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param keyKind Specifies which key to regenerate. Valid values include 'primary' and 'secondary'. * @param options The options parameters. */ @@ -64,11 +64,11 @@ export class AdminKeysImpl implements AdminKeys { resourceGroupName: string, searchServiceName: string, keyKind: AdminKeyKind, - options?: AdminKeysRegenerateOptionalParams + options?: AdminKeysRegenerateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, keyKind, options }, - regenerateOperationSpec + regenerateOperationSpec, ); } } @@ -76,38 +76,36 @@ export class AdminKeysImpl implements AdminKeys { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listAdminKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listAdminKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AdminKeyResult + bodyMapper: Mappers.AdminKeyResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.searchServiceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const regenerateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/regenerateAdminKey/{keyKind}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/regenerateAdminKey/{keyKind}", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AdminKeyResult + bodyMapper: Mappers.AdminKeyResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -115,8 +113,8 @@ const regenerateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.searchServiceName, Parameters.subscriptionId, - Parameters.keyKind + Parameters.keyKind, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; diff --git a/sdk/search/arm-search/src/operations/index.ts b/sdk/search/arm-search/src/operations/index.ts index f60f5a357ae2..e8c3c318ae97 100644 --- a/sdk/search/arm-search/src/operations/index.ts +++ b/sdk/search/arm-search/src/operations/index.ts @@ -14,3 +14,4 @@ export * from "./privateLinkResources"; export * from "./privateEndpointConnections"; export * from "./sharedPrivateLinkResources"; export * from "./usages"; +export * from "./networkSecurityPerimeterConfigurations"; diff --git a/sdk/search/arm-search/src/operations/networkSecurityPerimeterConfigurations.ts b/sdk/search/arm-search/src/operations/networkSecurityPerimeterConfigurations.ts new file mode 100644 index 000000000000..3e0763a32861 --- /dev/null +++ b/sdk/search/arm-search/src/operations/networkSecurityPerimeterConfigurations.ts @@ -0,0 +1,400 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { NetworkSecurityPerimeterConfigurations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SearchManagementClient } from "../searchManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + NetworkSecurityPerimeterConfiguration, + NetworkSecurityPerimeterConfigurationsListByServiceNextOptionalParams, + NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams, + NetworkSecurityPerimeterConfigurationsListByServiceResponse, + NetworkSecurityPerimeterConfigurationsGetOptionalParams, + NetworkSecurityPerimeterConfigurationsGetResponse, + NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, + NetworkSecurityPerimeterConfigurationsReconcileResponse, + NetworkSecurityPerimeterConfigurationsListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing NetworkSecurityPerimeterConfigurations operations. */ +export class NetworkSecurityPerimeterConfigurationsImpl + implements NetworkSecurityPerimeterConfigurations +{ + private readonly client: SearchManagementClient; + + /** + * Initialize a new instance of the class NetworkSecurityPerimeterConfigurations class. + * @param client Reference to the service client + */ + constructor(client: SearchManagementClient) { + this.client = client; + } + + /** + * Gets a list of network security perimeter configurations for a search service. + * @param resourceGroupName The name of the resource group within the current subscription. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + searchServiceName: string, + options?: NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + searchServiceName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + searchServiceName, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + searchServiceName: string, + options?: NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: NetworkSecurityPerimeterConfigurationsListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + searchServiceName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + searchServiceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + searchServiceName: string, + options?: NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + searchServiceName, + options, + )) { + yield* page; + } + } + + /** + * Gets a list of network security perimeter configurations for a search service. + * @param resourceGroupName The name of the resource group within the current subscription. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + searchServiceName: string, + options?: NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, searchServiceName, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets a network security perimeter configuration. + * @param resourceGroupName The name of the resource group within the current subscription. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param nspConfigName The network security configuration name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + searchServiceName: string, + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, searchServiceName, nspConfigName, options }, + getOperationSpec, + ); + } + + /** + * Reconcile network security perimeter configuration for the Azure AI Search resource provider. This + * triggers a manual resync with network security perimeter configurations by ensuring the search + * service carries the latest configuration. + * @param resourceGroupName The name of the resource group within the current subscription. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param nspConfigName The network security configuration name. + * @param options The options parameters. + */ + async beginReconcile( + resourceGroupName: string, + searchServiceName: string, + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NetworkSecurityPerimeterConfigurationsReconcileResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, searchServiceName, nspConfigName, options }, + spec: reconcileOperationSpec, + }); + const poller = await createHttpPoller< + NetworkSecurityPerimeterConfigurationsReconcileResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Reconcile network security perimeter configuration for the Azure AI Search resource provider. This + * triggers a manual resync with network security perimeter configurations by ensuring the search + * service carries the latest configuration. + * @param resourceGroupName The name of the resource group within the current subscription. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param nspConfigName The network security configuration name. + * @param options The options parameters. + */ + async beginReconcileAndWait( + resourceGroupName: string, + searchServiceName: string, + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, + ): Promise { + const poller = await this.beginReconcile( + resourceGroupName, + searchServiceName, + nspConfigName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group within the current subscription. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + searchServiceName: string, + nextLink: string, + options?: NetworkSecurityPerimeterConfigurationsListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, searchServiceName, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/networkSecurityPerimeterConfigurations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.searchServiceName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/networkSecurityPerimeterConfigurations/{nspConfigName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.searchServiceName, + Parameters.subscriptionId, + Parameters.nspConfigName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const reconcileOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/networkSecurityPerimeterConfigurations/{nspConfigName}/reconcile", + httpMethod: "POST", + responses: { + 200: { + headersMapper: + Mappers.NetworkSecurityPerimeterConfigurationsReconcileHeaders, + }, + 201: { + headersMapper: + Mappers.NetworkSecurityPerimeterConfigurationsReconcileHeaders, + }, + 202: { + headersMapper: + Mappers.NetworkSecurityPerimeterConfigurationsReconcileHeaders, + }, + 204: { + headersMapper: + Mappers.NetworkSecurityPerimeterConfigurationsReconcileHeaders, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.searchServiceName, + Parameters.subscriptionId, + Parameters.nspConfigName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.searchServiceName, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/search/arm-search/src/operations/operations.ts b/sdk/search/arm-search/src/operations/operations.ts index 97a24c9dc8f7..6db09f807116 100644 --- a/sdk/search/arm-search/src/operations/operations.ts +++ b/sdk/search/arm-search/src/operations/operations.ts @@ -15,7 +15,7 @@ import { SearchManagementClient } from "../searchManagementClient"; import { Operation, OperationsListOptionalParams, - OperationsListResponse + OperationsListResponse, } from "../models"; /// @@ -36,7 +36,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -51,13 +51,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; result = await this._list(options); @@ -65,7 +65,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -77,7 +77,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -90,14 +90,14 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/search/arm-search/src/operations/privateEndpointConnections.ts b/sdk/search/arm-search/src/operations/privateEndpointConnections.ts index 0763faabb0f6..0455cc061eac 100644 --- a/sdk/search/arm-search/src/operations/privateEndpointConnections.ts +++ b/sdk/search/arm-search/src/operations/privateEndpointConnections.ts @@ -24,13 +24,14 @@ import { PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsDeleteOptionalParams, PrivateEndpointConnectionsDeleteResponse, - PrivateEndpointConnectionsListByServiceNextResponse + PrivateEndpointConnectionsListByServiceNextResponse, } from "../models"; /// /** Class containing PrivateEndpointConnections operations. */ export class PrivateEndpointConnectionsImpl - implements PrivateEndpointConnections { + implements PrivateEndpointConnections +{ private readonly client: SearchManagementClient; /** @@ -45,19 +46,19 @@ export class PrivateEndpointConnectionsImpl * Gets a list of all private endpoint connections in the given service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ public listByService( resourceGroupName: string, searchServiceName: string, - options?: PrivateEndpointConnectionsListByServiceOptionalParams + options?: PrivateEndpointConnectionsListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, searchServiceName, - options + options, ); return { next() { @@ -74,9 +75,9 @@ export class PrivateEndpointConnectionsImpl resourceGroupName, searchServiceName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +85,7 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, searchServiceName: string, options?: PrivateEndpointConnectionsListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateEndpointConnectionsListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -92,7 +93,7 @@ export class PrivateEndpointConnectionsImpl result = await this._listByService( resourceGroupName, searchServiceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -104,7 +105,7 @@ export class PrivateEndpointConnectionsImpl resourceGroupName, searchServiceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -116,25 +117,25 @@ export class PrivateEndpointConnectionsImpl private async *listByServicePagingAll( resourceGroupName: string, searchServiceName: string, - options?: PrivateEndpointConnectionsListByServiceOptionalParams + options?: PrivateEndpointConnectionsListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, searchServiceName, - options + options, )) { yield* page; } } /** - * Updates a Private Endpoint connection to the search service in the given resource group. + * Updates a private endpoint connection to the search service in the given resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. - * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure - * Cognitive Search service with the specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure AI + * Search service with the specified resource group. * @param privateEndpointConnection The definition of the private endpoint connection to update. * @param options The options parameters. */ @@ -143,7 +144,7 @@ export class PrivateEndpointConnectionsImpl searchServiceName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsUpdateOptionalParams + options?: PrivateEndpointConnectionsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -151,9 +152,9 @@ export class PrivateEndpointConnectionsImpl searchServiceName, privateEndpointConnectionName, privateEndpointConnection, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -162,26 +163,26 @@ export class PrivateEndpointConnectionsImpl * group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. - * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure - * Cognitive Search service with the specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure AI + * Search service with the specified resource group. * @param options The options parameters. */ get( resourceGroupName: string, searchServiceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetOptionalParams + options?: PrivateEndpointConnectionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, privateEndpointConnectionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -189,26 +190,26 @@ export class PrivateEndpointConnectionsImpl * Disconnects the private endpoint connection and deletes it from the search service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. - * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure - * Cognitive Search service with the specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure AI + * Search service with the specified resource group. * @param options The options parameters. */ delete( resourceGroupName: string, searchServiceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams + options?: PrivateEndpointConnectionsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, privateEndpointConnectionName, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -216,18 +217,18 @@ export class PrivateEndpointConnectionsImpl * Gets a list of all private endpoint connections in the given service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ private _listByService( resourceGroupName: string, searchServiceName: string, - options?: PrivateEndpointConnectionsListByServiceOptionalParams + options?: PrivateEndpointConnectionsListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -235,8 +236,8 @@ export class PrivateEndpointConnectionsImpl * ListByServiceNext * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. */ @@ -244,11 +245,11 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, searchServiceName: string, nextLink: string, - options?: PrivateEndpointConnectionsListByServiceNextOptionalParams + options?: PrivateEndpointConnectionsListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -256,16 +257,15 @@ export class PrivateEndpointConnectionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.privateEndpointConnection, queryParameters: [Parameters.apiVersion], @@ -274,27 +274,26 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.searchServiceName, Parameters.subscriptionId, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [ Parameters.accept, Parameters.clientRequestId, - Parameters.contentType + Parameters.contentType, ], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -302,23 +301,22 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.searchServiceName, Parameters.subscriptionId, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 404: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -326,51 +324,50 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.searchServiceName, Parameters.subscriptionId, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult + bodyMapper: Mappers.PrivateEndpointConnectionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.searchServiceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult + bodyMapper: Mappers.PrivateEndpointConnectionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.searchServiceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; diff --git a/sdk/search/arm-search/src/operations/privateLinkResources.ts b/sdk/search/arm-search/src/operations/privateLinkResources.ts index ccefb51c5798..5689e546a62f 100644 --- a/sdk/search/arm-search/src/operations/privateLinkResources.ts +++ b/sdk/search/arm-search/src/operations/privateLinkResources.ts @@ -15,7 +15,7 @@ import { SearchManagementClient } from "../searchManagementClient"; import { PrivateLinkResource, PrivateLinkResourcesListSupportedOptionalParams, - PrivateLinkResourcesListSupportedResponse + PrivateLinkResourcesListSupportedResponse, } from "../models"; /// @@ -35,19 +35,19 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { * Gets a list of all supported private link resource types for the given service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ public listSupported( resourceGroupName: string, searchServiceName: string, - options?: PrivateLinkResourcesListSupportedOptionalParams + options?: PrivateLinkResourcesListSupportedOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listSupportedPagingAll( resourceGroupName, searchServiceName, - options + options, ); return { next() { @@ -64,9 +64,9 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { resourceGroupName, searchServiceName, options, - settings + settings, ); - } + }, }; } @@ -74,13 +74,13 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { resourceGroupName: string, searchServiceName: string, options?: PrivateLinkResourcesListSupportedOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateLinkResourcesListSupportedResponse; result = await this._listSupported( resourceGroupName, searchServiceName, - options + options, ); yield result.value || []; } @@ -88,12 +88,12 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { private async *listSupportedPagingAll( resourceGroupName: string, searchServiceName: string, - options?: PrivateLinkResourcesListSupportedOptionalParams + options?: PrivateLinkResourcesListSupportedOptionalParams, ): AsyncIterableIterator { for await (const page of this.listSupportedPagingPage( resourceGroupName, searchServiceName, - options + options, )) { yield* page; } @@ -103,18 +103,18 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { * Gets a list of all supported private link resource types for the given service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ private _listSupported( resourceGroupName: string, searchServiceName: string, - options?: PrivateLinkResourcesListSupportedOptionalParams + options?: PrivateLinkResourcesListSupportedOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, options }, - listSupportedOperationSpec + listSupportedOperationSpec, ); } } @@ -122,24 +122,23 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listSupportedOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResourcesResult + bodyMapper: Mappers.PrivateLinkResourcesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.searchServiceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; diff --git a/sdk/search/arm-search/src/operations/queryKeys.ts b/sdk/search/arm-search/src/operations/queryKeys.ts index 4cb29f5000db..a3cfccc41930 100644 --- a/sdk/search/arm-search/src/operations/queryKeys.ts +++ b/sdk/search/arm-search/src/operations/queryKeys.ts @@ -21,7 +21,7 @@ import { QueryKeysCreateOptionalParams, QueryKeysCreateResponse, QueryKeysDeleteOptionalParams, - QueryKeysListBySearchServiceNextResponse + QueryKeysListBySearchServiceNextResponse, } from "../models"; /// @@ -38,22 +38,22 @@ export class QueryKeysImpl implements QueryKeys { } /** - * Returns the list of query API keys for the given Azure Cognitive Search service. + * Returns the list of query API keys for the given Azure AI Search service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ public listBySearchService( resourceGroupName: string, searchServiceName: string, - options?: QueryKeysListBySearchServiceOptionalParams + options?: QueryKeysListBySearchServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySearchServicePagingAll( resourceGroupName, searchServiceName, - options + options, ); return { next() { @@ -70,9 +70,9 @@ export class QueryKeysImpl implements QueryKeys { resourceGroupName, searchServiceName, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class QueryKeysImpl implements QueryKeys { resourceGroupName: string, searchServiceName: string, options?: QueryKeysListBySearchServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: QueryKeysListBySearchServiceResponse; let continuationToken = settings?.continuationToken; @@ -88,7 +88,7 @@ export class QueryKeysImpl implements QueryKeys { result = await this._listBySearchService( resourceGroupName, searchServiceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -100,7 +100,7 @@ export class QueryKeysImpl implements QueryKeys { resourceGroupName, searchServiceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -112,12 +112,12 @@ export class QueryKeysImpl implements QueryKeys { private async *listBySearchServicePagingAll( resourceGroupName: string, searchServiceName: string, - options?: QueryKeysListBySearchServiceOptionalParams + options?: QueryKeysListBySearchServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySearchServicePagingPage( resourceGroupName, searchServiceName, - options + options, )) { yield* page; } @@ -128,8 +128,8 @@ export class QueryKeysImpl implements QueryKeys { * service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param name The name of the new query API key. * @param options The options parameters. */ @@ -137,30 +137,30 @@ export class QueryKeysImpl implements QueryKeys { resourceGroupName: string, searchServiceName: string, name: string, - options?: QueryKeysCreateOptionalParams + options?: QueryKeysCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, name, options }, - createOperationSpec + createOperationSpec, ); } /** - * Returns the list of query API keys for the given Azure Cognitive Search service. + * Returns the list of query API keys for the given Azure AI Search service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ private _listBySearchService( resourceGroupName: string, searchServiceName: string, - options?: QueryKeysListBySearchServiceOptionalParams + options?: QueryKeysListBySearchServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, options }, - listBySearchServiceOperationSpec + listBySearchServiceOperationSpec, ); } @@ -169,8 +169,8 @@ export class QueryKeysImpl implements QueryKeys { * regenerating a query key is to delete and then recreate it. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param key The query key to be deleted. Query keys are identified by value, not by name. * @param options The options parameters. */ @@ -178,11 +178,11 @@ export class QueryKeysImpl implements QueryKeys { resourceGroupName: string, searchServiceName: string, key: string, - options?: QueryKeysDeleteOptionalParams + options?: QueryKeysDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, key, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -190,8 +190,8 @@ export class QueryKeysImpl implements QueryKeys { * ListBySearchServiceNext * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param nextLink The nextLink from the previous successful call to the ListBySearchService method. * @param options The options parameters. */ @@ -199,11 +199,11 @@ export class QueryKeysImpl implements QueryKeys { resourceGroupName: string, searchServiceName: string, nextLink: string, - options?: QueryKeysListBySearchServiceNextOptionalParams + options?: QueryKeysListBySearchServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, nextLink, options }, - listBySearchServiceNextOperationSpec + listBySearchServiceNextOperationSpec, ); } } @@ -211,16 +211,15 @@ export class QueryKeysImpl implements QueryKeys { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/createQueryKey/{name}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/createQueryKey/{name}", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.QueryKey + bodyMapper: Mappers.QueryKey, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -228,44 +227,42 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.searchServiceName, Parameters.subscriptionId, - Parameters.name + Parameters.name, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listBySearchServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listQueryKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listQueryKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ListQueryKeysResult + bodyMapper: Mappers.ListQueryKeysResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.searchServiceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/deleteQueryKey/{key}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/deleteQueryKey/{key}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, 404: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -273,29 +270,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.searchServiceName, Parameters.subscriptionId, - Parameters.key + Parameters.key, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listBySearchServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListQueryKeysResult + bodyMapper: Mappers.ListQueryKeysResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.searchServiceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; diff --git a/sdk/search/arm-search/src/operations/services.ts b/sdk/search/arm-search/src/operations/services.ts index 393aa8a5e9b9..2aa2a4474b3e 100644 --- a/sdk/search/arm-search/src/operations/services.ts +++ b/sdk/search/arm-search/src/operations/services.ts @@ -16,7 +16,7 @@ import { SearchManagementClient } from "../searchManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -38,7 +38,7 @@ import { ServicesCheckNameAvailabilityOptionalParams, ServicesCheckNameAvailabilityResponse, ServicesListByResourceGroupNextResponse, - ServicesListBySubscriptionNextResponse + ServicesListBySubscriptionNextResponse, } from "../models"; /// @@ -62,7 +62,7 @@ export class ServicesImpl implements Services { */ public listByResourceGroup( resourceGroupName: string, - options?: ServicesListByResourceGroupOptionalParams + options?: ServicesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -79,16 +79,16 @@ export class ServicesImpl implements Services { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: ServicesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ServicesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -103,7 +103,7 @@ export class ServicesImpl implements Services { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -114,11 +114,11 @@ export class ServicesImpl implements Services { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ServicesListByResourceGroupOptionalParams + options?: ServicesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -129,7 +129,7 @@ export class ServicesImpl implements Services { * @param options The options parameters. */ public listBySubscription( - options?: ServicesListBySubscriptionOptionalParams + options?: ServicesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -144,13 +144,13 @@ export class ServicesImpl implements Services { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: ServicesListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ServicesListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -171,7 +171,7 @@ export class ServicesImpl implements Services { } private async *listBySubscriptionPagingAll( - options?: ServicesListBySubscriptionOptionalParams + options?: ServicesListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -183,12 +183,12 @@ export class ServicesImpl implements Services { * exists, all properties will be updated with the given values. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service to create or update. Search - * service names must only contain lowercase letters, digits or dashes, cannot use dash as the first - * two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 - * characters in length. Search service names must be globally unique since they are part of the - * service URI (https://.search.windows.net). You cannot change the service name after the - * service is created. + * @param searchServiceName The name of the Azure AI Search service to create or update. Search service + * names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or + * last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in + * length. Search service names must be globally unique since they are part of the service URI + * (https://.search.windows.net). You cannot change the service name after the service is + * created. * @param service The definition of the search service to create or update. * @param options The options parameters. */ @@ -196,7 +196,7 @@ export class ServicesImpl implements Services { resourceGroupName: string, searchServiceName: string, service: SearchService, - options?: ServicesCreateOrUpdateOptionalParams + options?: ServicesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -205,21 +205,20 @@ export class ServicesImpl implements Services { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -228,8 +227,8 @@ export class ServicesImpl implements Services { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -237,22 +236,22 @@ export class ServicesImpl implements Services { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, searchServiceName, service, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ServicesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -263,12 +262,12 @@ export class ServicesImpl implements Services { * exists, all properties will be updated with the given values. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service to create or update. Search - * service names must only contain lowercase letters, digits or dashes, cannot use dash as the first - * two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 - * characters in length. Search service names must be globally unique since they are part of the - * service URI (https://.search.windows.net). You cannot change the service name after the - * service is created. + * @param searchServiceName The name of the Azure AI Search service to create or update. Search service + * names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or + * last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in + * length. Search service names must be globally unique since they are part of the service URI + * (https://.search.windows.net). You cannot change the service name after the service is + * created. * @param service The definition of the search service to create or update. * @param options The options parameters. */ @@ -276,13 +275,13 @@ export class ServicesImpl implements Services { resourceGroupName: string, searchServiceName: string, service: SearchService, - options?: ServicesCreateOrUpdateOptionalParams + options?: ServicesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, searchServiceName, service, - options + options, ); return poller.pollUntilDone(); } @@ -291,7 +290,7 @@ export class ServicesImpl implements Services { * Updates an existing search service in the given resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service to update. + * @param searchServiceName The name of the Azure AI Search service to update. * @param service The definition of the search service to update. * @param options The options parameters. */ @@ -299,11 +298,11 @@ export class ServicesImpl implements Services { resourceGroupName: string, searchServiceName: string, service: SearchServiceUpdate, - options?: ServicesUpdateOptionalParams + options?: ServicesUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, service, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -311,18 +310,18 @@ export class ServicesImpl implements Services { * Gets the search service with the given name in the given resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ get( resourceGroupName: string, searchServiceName: string, - options?: ServicesGetOptionalParams + options?: ServicesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -330,18 +329,18 @@ export class ServicesImpl implements Services { * Deletes a search service in the given resource group, along with its associated resources. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ delete( resourceGroupName: string, searchServiceName: string, - options?: ServicesDeleteOptionalParams + options?: ServicesDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -353,11 +352,11 @@ export class ServicesImpl implements Services { */ private _listByResourceGroup( resourceGroupName: string, - options?: ServicesListByResourceGroupOptionalParams + options?: ServicesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -366,11 +365,11 @@ export class ServicesImpl implements Services { * @param options The options parameters. */ private _listBySubscription( - options?: ServicesListBySubscriptionOptionalParams + options?: ServicesListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -384,11 +383,11 @@ export class ServicesImpl implements Services { */ checkNameAvailability( name: string, - options?: ServicesCheckNameAvailabilityOptionalParams + options?: ServicesCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { name, options }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, ); } @@ -402,11 +401,11 @@ export class ServicesImpl implements Services { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ServicesListByResourceGroupNextOptionalParams + options?: ServicesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -417,11 +416,11 @@ export class ServicesImpl implements Services { */ private _listBySubscriptionNext( nextLink: string, - options?: ServicesListBySubscriptionNextOptionalParams + options?: ServicesListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } } @@ -429,214 +428,207 @@ export class ServicesImpl implements Services { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SearchService + bodyMapper: Mappers.SearchService, }, 201: { - bodyMapper: Mappers.SearchService + bodyMapper: Mappers.SearchService, }, 202: { - bodyMapper: Mappers.SearchService + bodyMapper: Mappers.SearchService, }, 204: { - bodyMapper: Mappers.SearchService + bodyMapper: Mappers.SearchService, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.service, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, - Parameters.searchServiceName, - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.searchServiceName1, ], headerParameters: [ Parameters.accept, Parameters.clientRequestId, - Parameters.contentType + Parameters.contentType, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.SearchService + bodyMapper: Mappers.SearchService, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.service1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, - Parameters.searchServiceName, - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.searchServiceName1, ], headerParameters: [ Parameters.accept, Parameters.clientRequestId, - Parameters.contentType + Parameters.contentType, ], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SearchService + bodyMapper: Mappers.SearchService, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.searchServiceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, 404: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.searchServiceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SearchServiceListResult + bodyMapper: Mappers.SearchServiceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Search/searchServices", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Search/searchServices", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SearchServiceListResult + bodyMapper: Mappers.SearchServiceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Search/checkNameAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Search/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckNameAvailabilityOutput + bodyMapper: Mappers.CheckNameAvailabilityOutput, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: { parameterPath: { name: ["name"], typeParam: ["typeParam"] }, - mapper: { ...Mappers.CheckNameAvailabilityInput, required: true } + mapper: { ...Mappers.CheckNameAvailabilityInput, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [ Parameters.accept, Parameters.clientRequestId, - Parameters.contentType + Parameters.contentType, ], mediaType: "json", - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SearchServiceListResult + bodyMapper: Mappers.SearchServiceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SearchServiceListResult + bodyMapper: Mappers.SearchServiceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; diff --git a/sdk/search/arm-search/src/operations/sharedPrivateLinkResources.ts b/sdk/search/arm-search/src/operations/sharedPrivateLinkResources.ts index 68fcb6ae4998..d83d37f9c188 100644 --- a/sdk/search/arm-search/src/operations/sharedPrivateLinkResources.ts +++ b/sdk/search/arm-search/src/operations/sharedPrivateLinkResources.ts @@ -16,7 +16,7 @@ import { SearchManagementClient } from "../searchManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,13 +29,14 @@ import { SharedPrivateLinkResourcesGetOptionalParams, SharedPrivateLinkResourcesGetResponse, SharedPrivateLinkResourcesDeleteOptionalParams, - SharedPrivateLinkResourcesListByServiceNextResponse + SharedPrivateLinkResourcesListByServiceNextResponse, } from "../models"; /// /** Class containing SharedPrivateLinkResources operations. */ export class SharedPrivateLinkResourcesImpl - implements SharedPrivateLinkResources { + implements SharedPrivateLinkResources +{ private readonly client: SearchManagementClient; /** @@ -50,19 +51,19 @@ export class SharedPrivateLinkResourcesImpl * Gets a list of all shared private link resources managed by the given service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ public listByService( resourceGroupName: string, searchServiceName: string, - options?: SharedPrivateLinkResourcesListByServiceOptionalParams + options?: SharedPrivateLinkResourcesListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, searchServiceName, - options + options, ); return { next() { @@ -79,9 +80,9 @@ export class SharedPrivateLinkResourcesImpl resourceGroupName, searchServiceName, options, - settings + settings, ); - } + }, }; } @@ -89,7 +90,7 @@ export class SharedPrivateLinkResourcesImpl resourceGroupName: string, searchServiceName: string, options?: SharedPrivateLinkResourcesListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SharedPrivateLinkResourcesListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -97,7 +98,7 @@ export class SharedPrivateLinkResourcesImpl result = await this._listByService( resourceGroupName, searchServiceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -109,7 +110,7 @@ export class SharedPrivateLinkResourcesImpl resourceGroupName, searchServiceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -121,12 +122,12 @@ export class SharedPrivateLinkResourcesImpl private async *listByServicePagingAll( resourceGroupName: string, searchServiceName: string, - options?: SharedPrivateLinkResourcesListByServiceOptionalParams + options?: SharedPrivateLinkResourcesListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, searchServiceName, - options + options, )) { yield* page; } @@ -137,10 +138,10 @@ export class SharedPrivateLinkResourcesImpl * the given resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the - * Azure Cognitive Search service within the specified resource group. + * Azure AI Search service within the specified resource group. * @param sharedPrivateLinkResource The definition of the shared private link resource to create or * update. * @param options The options parameters. @@ -150,7 +151,7 @@ export class SharedPrivateLinkResourcesImpl searchServiceName: string, sharedPrivateLinkResourceName: string, sharedPrivateLinkResource: SharedPrivateLinkResource, - options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams + options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -159,21 +160,20 @@ export class SharedPrivateLinkResourcesImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -182,8 +182,8 @@ export class SharedPrivateLinkResourcesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -191,8 +191,8 @@ export class SharedPrivateLinkResourcesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -203,9 +203,9 @@ export class SharedPrivateLinkResourcesImpl searchServiceName, sharedPrivateLinkResourceName, sharedPrivateLinkResource, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< SharedPrivateLinkResourcesCreateOrUpdateResponse, @@ -213,7 +213,7 @@ export class SharedPrivateLinkResourcesImpl >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -224,10 +224,10 @@ export class SharedPrivateLinkResourcesImpl * the given resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the - * Azure Cognitive Search service within the specified resource group. + * Azure AI Search service within the specified resource group. * @param sharedPrivateLinkResource The definition of the shared private link resource to create or * update. * @param options The options parameters. @@ -237,14 +237,14 @@ export class SharedPrivateLinkResourcesImpl searchServiceName: string, sharedPrivateLinkResourceName: string, sharedPrivateLinkResource: SharedPrivateLinkResource, - options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams + options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, searchServiceName, sharedPrivateLinkResourceName, sharedPrivateLinkResource, - options + options, ); return poller.pollUntilDone(); } @@ -254,26 +254,26 @@ export class SharedPrivateLinkResourcesImpl * resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the - * Azure Cognitive Search service within the specified resource group. + * Azure AI Search service within the specified resource group. * @param options The options parameters. */ get( resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, - options?: SharedPrivateLinkResourcesGetOptionalParams + options?: SharedPrivateLinkResourcesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, sharedPrivateLinkResourceName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -281,35 +281,34 @@ export class SharedPrivateLinkResourcesImpl * Initiates the deletion of the shared private link resource from the search service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the - * Azure Cognitive Search service within the specified resource group. + * Azure AI Search service within the specified resource group. * @param options The options parameters. */ async beginDelete( resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, - options?: SharedPrivateLinkResourcesDeleteOptionalParams + options?: SharedPrivateLinkResourcesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -318,8 +317,8 @@ export class SharedPrivateLinkResourcesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -327,8 +326,8 @@ export class SharedPrivateLinkResourcesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -338,14 +337,14 @@ export class SharedPrivateLinkResourcesImpl resourceGroupName, searchServiceName, sharedPrivateLinkResourceName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -355,23 +354,23 @@ export class SharedPrivateLinkResourcesImpl * Initiates the deletion of the shared private link resource from the search service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the - * Azure Cognitive Search service within the specified resource group. + * Azure AI Search service within the specified resource group. * @param options The options parameters. */ async beginDeleteAndWait( resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, - options?: SharedPrivateLinkResourcesDeleteOptionalParams + options?: SharedPrivateLinkResourcesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, searchServiceName, sharedPrivateLinkResourceName, - options + options, ); return poller.pollUntilDone(); } @@ -380,18 +379,18 @@ export class SharedPrivateLinkResourcesImpl * Gets a list of all shared private link resources managed by the given service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ private _listByService( resourceGroupName: string, searchServiceName: string, - options?: SharedPrivateLinkResourcesListByServiceOptionalParams + options?: SharedPrivateLinkResourcesListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -399,8 +398,8 @@ export class SharedPrivateLinkResourcesImpl * ListByServiceNext * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. */ @@ -408,11 +407,11 @@ export class SharedPrivateLinkResourcesImpl resourceGroupName: string, searchServiceName: string, nextLink: string, - options?: SharedPrivateLinkResourcesListByServiceNextOptionalParams + options?: SharedPrivateLinkResourcesListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -420,25 +419,24 @@ export class SharedPrivateLinkResourcesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SharedPrivateLinkResource + bodyMapper: Mappers.SharedPrivateLinkResource, }, 201: { - bodyMapper: Mappers.SharedPrivateLinkResource + bodyMapper: Mappers.SharedPrivateLinkResource, }, 202: { - bodyMapper: Mappers.SharedPrivateLinkResource + bodyMapper: Mappers.SharedPrivateLinkResource, }, 204: { - bodyMapper: Mappers.SharedPrivateLinkResource + bodyMapper: Mappers.SharedPrivateLinkResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.sharedPrivateLinkResource, queryParameters: [Parameters.apiVersion], @@ -447,27 +445,26 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.searchServiceName, Parameters.subscriptionId, - Parameters.sharedPrivateLinkResourceName + Parameters.sharedPrivateLinkResourceName, ], headerParameters: [ Parameters.accept, Parameters.clientRequestId, - Parameters.contentType + Parameters.contentType, ], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedPrivateLinkResource + bodyMapper: Mappers.SharedPrivateLinkResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -475,14 +472,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.searchServiceName, Parameters.subscriptionId, - Parameters.sharedPrivateLinkResourceName + Parameters.sharedPrivateLinkResourceName, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}", httpMethod: "DELETE", responses: { 200: {}, @@ -490,8 +486,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -499,51 +495,50 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.searchServiceName, Parameters.subscriptionId, - Parameters.sharedPrivateLinkResourceName + Parameters.sharedPrivateLinkResourceName, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedPrivateLinkResourceListResult + bodyMapper: Mappers.SharedPrivateLinkResourceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.searchServiceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedPrivateLinkResourceListResult + bodyMapper: Mappers.SharedPrivateLinkResourceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.searchServiceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; diff --git a/sdk/search/arm-search/src/operations/usages.ts b/sdk/search/arm-search/src/operations/usages.ts index da16917cf77c..42bbcdeea1f7 100644 --- a/sdk/search/arm-search/src/operations/usages.ts +++ b/sdk/search/arm-search/src/operations/usages.ts @@ -18,7 +18,7 @@ import { UsagesListBySubscriptionNextOptionalParams, UsagesListBySubscriptionOptionalParams, UsagesListBySubscriptionResponse, - UsagesListBySubscriptionNextResponse + UsagesListBySubscriptionNextResponse, } from "../models"; /// @@ -35,13 +35,13 @@ export class UsagesImpl implements Usages { } /** - * Gets a list of all Search quota usages in the given subscription. + * Get a list of all Azure AI Search quota usages across the subscription. * @param location The unique location name for a Microsoft Azure geographic region. * @param options The options parameters. */ public listBySubscription( location: string, - options?: UsagesListBySubscriptionOptionalParams + options?: UsagesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(location, options); return { @@ -56,14 +56,14 @@ export class UsagesImpl implements Usages { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(location, options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( location: string, options?: UsagesListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: UsagesListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -78,7 +78,7 @@ export class UsagesImpl implements Usages { result = await this._listBySubscriptionNext( location, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -89,28 +89,28 @@ export class UsagesImpl implements Usages { private async *listBySubscriptionPagingAll( location: string, - options?: UsagesListBySubscriptionOptionalParams + options?: UsagesListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage( location, - options + options, )) { yield* page; } } /** - * Gets a list of all Search quota usages in the given subscription. + * Get a list of all Azure AI Search quota usages across the subscription. * @param location The unique location name for a Microsoft Azure geographic region. * @param options The options parameters. */ private _listBySubscription( location: string, - options?: UsagesListBySubscriptionOptionalParams + options?: UsagesListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -123,11 +123,11 @@ export class UsagesImpl implements Usages { private _listBySubscriptionNext( location: string, nextLink: string, - options?: UsagesListBySubscriptionNextOptionalParams + options?: UsagesListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } } @@ -135,43 +135,42 @@ export class UsagesImpl implements Usages { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.QuotaUsagesListResult + bodyMapper: Mappers.QuotaUsagesListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.QuotaUsagesListResult + bodyMapper: Mappers.QuotaUsagesListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; diff --git a/sdk/search/arm-search/src/operationsInterfaces/adminKeys.ts b/sdk/search/arm-search/src/operationsInterfaces/adminKeys.ts index d0309d912727..a5fe08a21b23 100644 --- a/sdk/search/arm-search/src/operationsInterfaces/adminKeys.ts +++ b/sdk/search/arm-search/src/operationsInterfaces/adminKeys.ts @@ -11,31 +11,31 @@ import { AdminKeysGetResponse, AdminKeyKind, AdminKeysRegenerateOptionalParams, - AdminKeysRegenerateResponse + AdminKeysRegenerateResponse, } from "../models"; /** Interface representing a AdminKeys. */ export interface AdminKeys { /** - * Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service. + * Gets the primary and secondary admin API keys for the specified Azure AI Search service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ get( resourceGroupName: string, searchServiceName: string, - options?: AdminKeysGetOptionalParams + options?: AdminKeysGetOptionalParams, ): Promise; /** * Regenerates either the primary or secondary admin API key. You can only regenerate one key at a * time. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param keyKind Specifies which key to regenerate. Valid values include 'primary' and 'secondary'. * @param options The options parameters. */ @@ -43,6 +43,6 @@ export interface AdminKeys { resourceGroupName: string, searchServiceName: string, keyKind: AdminKeyKind, - options?: AdminKeysRegenerateOptionalParams + options?: AdminKeysRegenerateOptionalParams, ): Promise; } diff --git a/sdk/search/arm-search/src/operationsInterfaces/index.ts b/sdk/search/arm-search/src/operationsInterfaces/index.ts index f60f5a357ae2..e8c3c318ae97 100644 --- a/sdk/search/arm-search/src/operationsInterfaces/index.ts +++ b/sdk/search/arm-search/src/operationsInterfaces/index.ts @@ -14,3 +14,4 @@ export * from "./privateLinkResources"; export * from "./privateEndpointConnections"; export * from "./sharedPrivateLinkResources"; export * from "./usages"; +export * from "./networkSecurityPerimeterConfigurations"; diff --git a/sdk/search/arm-search/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts b/sdk/search/arm-search/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts new file mode 100644 index 000000000000..c404ae78ddff --- /dev/null +++ b/sdk/search/arm-search/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts @@ -0,0 +1,90 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + NetworkSecurityPerimeterConfiguration, + NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams, + NetworkSecurityPerimeterConfigurationsGetOptionalParams, + NetworkSecurityPerimeterConfigurationsGetResponse, + NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, + NetworkSecurityPerimeterConfigurationsReconcileResponse, +} from "../models"; + +/// +/** Interface representing a NetworkSecurityPerimeterConfigurations. */ +export interface NetworkSecurityPerimeterConfigurations { + /** + * Gets a list of network security perimeter configurations for a search service. + * @param resourceGroupName The name of the resource group within the current subscription. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + searchServiceName: string, + options?: NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets a network security perimeter configuration. + * @param resourceGroupName The name of the resource group within the current subscription. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param nspConfigName The network security configuration name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + searchServiceName: string, + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams, + ): Promise; + /** + * Reconcile network security perimeter configuration for the Azure AI Search resource provider. This + * triggers a manual resync with network security perimeter configurations by ensuring the search + * service carries the latest configuration. + * @param resourceGroupName The name of the resource group within the current subscription. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param nspConfigName The network security configuration name. + * @param options The options parameters. + */ + beginReconcile( + resourceGroupName: string, + searchServiceName: string, + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NetworkSecurityPerimeterConfigurationsReconcileResponse + > + >; + /** + * Reconcile network security perimeter configuration for the Azure AI Search resource provider. This + * triggers a manual resync with network security perimeter configurations by ensuring the search + * service carries the latest configuration. + * @param resourceGroupName The name of the resource group within the current subscription. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param nspConfigName The network security configuration name. + * @param options The options parameters. + */ + beginReconcileAndWait( + resourceGroupName: string, + searchServiceName: string, + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, + ): Promise; +} diff --git a/sdk/search/arm-search/src/operationsInterfaces/operations.ts b/sdk/search/arm-search/src/operationsInterfaces/operations.ts index 1b035e0e851c..21813182553e 100644 --- a/sdk/search/arm-search/src/operationsInterfaces/operations.ts +++ b/sdk/search/arm-search/src/operationsInterfaces/operations.ts @@ -17,6 +17,6 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/search/arm-search/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/search/arm-search/src/operationsInterfaces/privateEndpointConnections.ts index b5d44e398ab2..19528b1e2609 100644 --- a/sdk/search/arm-search/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/search/arm-search/src/operationsInterfaces/privateEndpointConnections.ts @@ -15,7 +15,7 @@ import { PrivateEndpointConnectionsGetOptionalParams, PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsDeleteOptionalParams, - PrivateEndpointConnectionsDeleteResponse + PrivateEndpointConnectionsDeleteResponse, } from "../models"; /// @@ -25,23 +25,23 @@ export interface PrivateEndpointConnections { * Gets a list of all private endpoint connections in the given service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ listByService( resourceGroupName: string, searchServiceName: string, - options?: PrivateEndpointConnectionsListByServiceOptionalParams + options?: PrivateEndpointConnectionsListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** - * Updates a Private Endpoint connection to the search service in the given resource group. + * Updates a private endpoint connection to the search service in the given resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. - * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure - * Cognitive Search service with the specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure AI + * Search service with the specified resource group. * @param privateEndpointConnection The definition of the private endpoint connection to update. * @param options The options parameters. */ @@ -50,39 +50,39 @@ export interface PrivateEndpointConnections { searchServiceName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsUpdateOptionalParams + options?: PrivateEndpointConnectionsUpdateOptionalParams, ): Promise; /** * Gets the details of the private endpoint connection to the search service in the given resource * group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. - * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure - * Cognitive Search service with the specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure AI + * Search service with the specified resource group. * @param options The options parameters. */ get( resourceGroupName: string, searchServiceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetOptionalParams + options?: PrivateEndpointConnectionsGetOptionalParams, ): Promise; /** * Disconnects the private endpoint connection and deletes it from the search service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. - * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure - * Cognitive Search service with the specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure AI + * Search service with the specified resource group. * @param options The options parameters. */ delete( resourceGroupName: string, searchServiceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams + options?: PrivateEndpointConnectionsDeleteOptionalParams, ): Promise; } diff --git a/sdk/search/arm-search/src/operationsInterfaces/privateLinkResources.ts b/sdk/search/arm-search/src/operationsInterfaces/privateLinkResources.ts index 69c7b1d93468..5deb1bcff118 100644 --- a/sdk/search/arm-search/src/operationsInterfaces/privateLinkResources.ts +++ b/sdk/search/arm-search/src/operationsInterfaces/privateLinkResources.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PrivateLinkResource, - PrivateLinkResourcesListSupportedOptionalParams + PrivateLinkResourcesListSupportedOptionalParams, } from "../models"; /// @@ -19,13 +19,13 @@ export interface PrivateLinkResources { * Gets a list of all supported private link resource types for the given service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ listSupported( resourceGroupName: string, searchServiceName: string, - options?: PrivateLinkResourcesListSupportedOptionalParams + options?: PrivateLinkResourcesListSupportedOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/search/arm-search/src/operationsInterfaces/queryKeys.ts b/sdk/search/arm-search/src/operationsInterfaces/queryKeys.ts index f456bdff3650..725f9c29ca65 100644 --- a/sdk/search/arm-search/src/operationsInterfaces/queryKeys.ts +++ b/sdk/search/arm-search/src/operationsInterfaces/queryKeys.ts @@ -12,32 +12,32 @@ import { QueryKeysListBySearchServiceOptionalParams, QueryKeysCreateOptionalParams, QueryKeysCreateResponse, - QueryKeysDeleteOptionalParams + QueryKeysDeleteOptionalParams, } from "../models"; /// /** Interface representing a QueryKeys. */ export interface QueryKeys { /** - * Returns the list of query API keys for the given Azure Cognitive Search service. + * Returns the list of query API keys for the given Azure AI Search service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ listBySearchService( resourceGroupName: string, searchServiceName: string, - options?: QueryKeysListBySearchServiceOptionalParams + options?: QueryKeysListBySearchServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Generates a new query key for the specified search service. You can create up to 50 query keys per * service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param name The name of the new query API key. * @param options The options parameters. */ @@ -45,15 +45,15 @@ export interface QueryKeys { resourceGroupName: string, searchServiceName: string, name: string, - options?: QueryKeysCreateOptionalParams + options?: QueryKeysCreateOptionalParams, ): Promise; /** * Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for * regenerating a query key is to delete and then recreate it. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param key The query key to be deleted. Query keys are identified by value, not by name. * @param options The options parameters. */ @@ -61,6 +61,6 @@ export interface QueryKeys { resourceGroupName: string, searchServiceName: string, key: string, - options?: QueryKeysDeleteOptionalParams + options?: QueryKeysDeleteOptionalParams, ): Promise; } diff --git a/sdk/search/arm-search/src/operationsInterfaces/services.ts b/sdk/search/arm-search/src/operationsInterfaces/services.ts index d681f4434bba..691410455fb5 100644 --- a/sdk/search/arm-search/src/operationsInterfaces/services.ts +++ b/sdk/search/arm-search/src/operationsInterfaces/services.ts @@ -21,7 +21,7 @@ import { ServicesGetResponse, ServicesDeleteOptionalParams, ServicesCheckNameAvailabilityOptionalParams, - ServicesCheckNameAvailabilityResponse + ServicesCheckNameAvailabilityResponse, } from "../models"; /// @@ -35,26 +35,26 @@ export interface Services { */ listByResourceGroup( resourceGroupName: string, - options?: ServicesListByResourceGroupOptionalParams + options?: ServicesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a list of all Search services in the given subscription. * @param options The options parameters. */ listBySubscription( - options?: ServicesListBySubscriptionOptionalParams + options?: ServicesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a search service in the given resource group. If the search service already * exists, all properties will be updated with the given values. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service to create or update. Search - * service names must only contain lowercase letters, digits or dashes, cannot use dash as the first - * two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 - * characters in length. Search service names must be globally unique since they are part of the - * service URI (https://.search.windows.net). You cannot change the service name after the - * service is created. + * @param searchServiceName The name of the Azure AI Search service to create or update. Search service + * names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or + * last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in + * length. Search service names must be globally unique since they are part of the service URI + * (https://.search.windows.net). You cannot change the service name after the service is + * created. * @param service The definition of the search service to create or update. * @param options The options parameters. */ @@ -62,7 +62,7 @@ export interface Services { resourceGroupName: string, searchServiceName: string, service: SearchService, - options?: ServicesCreateOrUpdateOptionalParams + options?: ServicesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -74,12 +74,12 @@ export interface Services { * exists, all properties will be updated with the given values. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service to create or update. Search - * service names must only contain lowercase letters, digits or dashes, cannot use dash as the first - * two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 - * characters in length. Search service names must be globally unique since they are part of the - * service URI (https://.search.windows.net). You cannot change the service name after the - * service is created. + * @param searchServiceName The name of the Azure AI Search service to create or update. Search service + * names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or + * last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in + * length. Search service names must be globally unique since they are part of the service URI + * (https://.search.windows.net). You cannot change the service name after the service is + * created. * @param service The definition of the search service to create or update. * @param options The options parameters. */ @@ -87,13 +87,13 @@ export interface Services { resourceGroupName: string, searchServiceName: string, service: SearchService, - options?: ServicesCreateOrUpdateOptionalParams + options?: ServicesCreateOrUpdateOptionalParams, ): Promise; /** * Updates an existing search service in the given resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service to update. + * @param searchServiceName The name of the Azure AI Search service to update. * @param service The definition of the search service to update. * @param options The options parameters. */ @@ -101,33 +101,33 @@ export interface Services { resourceGroupName: string, searchServiceName: string, service: SearchServiceUpdate, - options?: ServicesUpdateOptionalParams + options?: ServicesUpdateOptionalParams, ): Promise; /** * Gets the search service with the given name in the given resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ get( resourceGroupName: string, searchServiceName: string, - options?: ServicesGetOptionalParams + options?: ServicesGetOptionalParams, ): Promise; /** * Deletes a search service in the given resource group, along with its associated resources. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ delete( resourceGroupName: string, searchServiceName: string, - options?: ServicesDeleteOptionalParams + options?: ServicesDeleteOptionalParams, ): Promise; /** * Checks whether or not the given search service name is available for use. Search service names must @@ -139,6 +139,6 @@ export interface Services { */ checkNameAvailability( name: string, - options?: ServicesCheckNameAvailabilityOptionalParams + options?: ServicesCheckNameAvailabilityOptionalParams, ): Promise; } diff --git a/sdk/search/arm-search/src/operationsInterfaces/sharedPrivateLinkResources.ts b/sdk/search/arm-search/src/operationsInterfaces/sharedPrivateLinkResources.ts index f5d34e9b4015..66cb5c606d2e 100644 --- a/sdk/search/arm-search/src/operationsInterfaces/sharedPrivateLinkResources.ts +++ b/sdk/search/arm-search/src/operationsInterfaces/sharedPrivateLinkResources.ts @@ -15,7 +15,7 @@ import { SharedPrivateLinkResourcesCreateOrUpdateResponse, SharedPrivateLinkResourcesGetOptionalParams, SharedPrivateLinkResourcesGetResponse, - SharedPrivateLinkResourcesDeleteOptionalParams + SharedPrivateLinkResourcesDeleteOptionalParams, } from "../models"; /// @@ -25,24 +25,24 @@ export interface SharedPrivateLinkResources { * Gets a list of all shared private link resources managed by the given service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ listByService( resourceGroupName: string, searchServiceName: string, - options?: SharedPrivateLinkResourcesListByServiceOptionalParams + options?: SharedPrivateLinkResourcesListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Initiates the creation or update of a shared private link resource managed by the search service in * the given resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the - * Azure Cognitive Search service within the specified resource group. + * Azure AI Search service within the specified resource group. * @param sharedPrivateLinkResource The definition of the shared private link resource to create or * update. * @param options The options parameters. @@ -52,7 +52,7 @@ export interface SharedPrivateLinkResources { searchServiceName: string, sharedPrivateLinkResourceName: string, sharedPrivateLinkResource: SharedPrivateLinkResource, - options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams + options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -64,10 +64,10 @@ export interface SharedPrivateLinkResources { * the given resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the - * Azure Cognitive Search service within the specified resource group. + * Azure AI Search service within the specified resource group. * @param sharedPrivateLinkResource The definition of the shared private link resource to create or * update. * @param options The options parameters. @@ -77,55 +77,55 @@ export interface SharedPrivateLinkResources { searchServiceName: string, sharedPrivateLinkResourceName: string, sharedPrivateLinkResource: SharedPrivateLinkResource, - options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams + options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams, ): Promise; /** * Gets the details of the shared private link resource managed by the search service in the given * resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the - * Azure Cognitive Search service within the specified resource group. + * Azure AI Search service within the specified resource group. * @param options The options parameters. */ get( resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, - options?: SharedPrivateLinkResourcesGetOptionalParams + options?: SharedPrivateLinkResourcesGetOptionalParams, ): Promise; /** * Initiates the deletion of the shared private link resource from the search service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the - * Azure Cognitive Search service within the specified resource group. + * Azure AI Search service within the specified resource group. * @param options The options parameters. */ beginDelete( resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, - options?: SharedPrivateLinkResourcesDeleteOptionalParams + options?: SharedPrivateLinkResourcesDeleteOptionalParams, ): Promise, void>>; /** * Initiates the deletion of the shared private link resource from the search service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the - * Azure Cognitive Search service within the specified resource group. + * Azure AI Search service within the specified resource group. * @param options The options parameters. */ beginDeleteAndWait( resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, - options?: SharedPrivateLinkResourcesDeleteOptionalParams + options?: SharedPrivateLinkResourcesDeleteOptionalParams, ): Promise; } diff --git a/sdk/search/arm-search/src/operationsInterfaces/usages.ts b/sdk/search/arm-search/src/operationsInterfaces/usages.ts index 18cfe26e6d6b..c560fb083128 100644 --- a/sdk/search/arm-search/src/operationsInterfaces/usages.ts +++ b/sdk/search/arm-search/src/operationsInterfaces/usages.ts @@ -9,19 +9,19 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { QuotaUsageResult, - UsagesListBySubscriptionOptionalParams + UsagesListBySubscriptionOptionalParams, } from "../models"; /// /** Interface representing a Usages. */ export interface Usages { /** - * Gets a list of all Search quota usages in the given subscription. + * Get a list of all Azure AI Search quota usages across the subscription. * @param location The unique location name for a Microsoft Azure geographic region. * @param options The options parameters. */ listBySubscription( location: string, - options?: UsagesListBySubscriptionOptionalParams + options?: UsagesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/search/arm-search/src/pagingHelper.ts b/sdk/search/arm-search/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/search/arm-search/src/pagingHelper.ts +++ b/sdk/search/arm-search/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/search/arm-search/src/searchManagementClient.ts b/sdk/search/arm-search/src/searchManagementClient.ts index e042653e4671..c470c0249436 100644 --- a/sdk/search/arm-search/src/searchManagementClient.ts +++ b/sdk/search/arm-search/src/searchManagementClient.ts @@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { @@ -22,7 +22,8 @@ import { PrivateLinkResourcesImpl, PrivateEndpointConnectionsImpl, SharedPrivateLinkResourcesImpl, - UsagesImpl + UsagesImpl, + NetworkSecurityPerimeterConfigurationsImpl, } from "./operations"; import { Operations, @@ -32,14 +33,15 @@ import { PrivateLinkResources, PrivateEndpointConnections, SharedPrivateLinkResources, - Usages + Usages, + NetworkSecurityPerimeterConfigurations, } from "./operationsInterfaces"; import * as Parameters from "./models/parameters"; import * as Mappers from "./models/mappers"; import { SearchManagementClientOptionalParams, UsageBySubscriptionSkuOptionalParams, - UsageBySubscriptionSkuResponse + UsageBySubscriptionSkuResponse, } from "./models"; export class SearchManagementClient extends coreClient.ServiceClient { @@ -57,7 +59,7 @@ export class SearchManagementClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: SearchManagementClientOptionalParams + options?: SearchManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -72,10 +74,10 @@ export class SearchManagementClient extends coreClient.ServiceClient { } const defaults: SearchManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-search/3.2.0`; + const packageDetails = `azsdk-js-arm-search/3.3.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -85,20 +87,21 @@ export class SearchManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -108,7 +111,7 @@ export class SearchManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -118,9 +121,9 @@ export class SearchManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -128,7 +131,7 @@ export class SearchManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-11-01"; + this.apiVersion = options.apiVersion || "2024-03-01-preview"; this.operations = new OperationsImpl(this); this.adminKeys = new AdminKeysImpl(this); this.queryKeys = new QueryKeysImpl(this); @@ -137,6 +140,8 @@ export class SearchManagementClient extends coreClient.ServiceClient { this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.sharedPrivateLinkResources = new SharedPrivateLinkResourcesImpl(this); this.usages = new UsagesImpl(this); + this.networkSecurityPerimeterConfigurations = + new NetworkSecurityPerimeterConfigurationsImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -149,7 +154,7 @@ export class SearchManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -163,7 +168,7 @@ export class SearchManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } @@ -171,17 +176,17 @@ export class SearchManagementClient extends coreClient.ServiceClient { /** * Gets the quota usage for a search sku in the given subscription. * @param location The unique location name for a Microsoft Azure geographic region. - * @param skuName The unique search service sku name supported by Azure Cognitive Search. + * @param skuName The unique SKU name that identifies a billable tier. * @param options The options parameters. */ usageBySubscriptionSku( location: string, skuName: string, - options?: UsageBySubscriptionSkuOptionalParams + options?: UsageBySubscriptionSkuOptionalParams, ): Promise { return this.sendOperationRequest( { location, skuName, options }, - usageBySubscriptionSkuOperationSpec + usageBySubscriptionSkuOperationSpec, ); } @@ -193,29 +198,29 @@ export class SearchManagementClient extends coreClient.ServiceClient { privateEndpointConnections: PrivateEndpointConnections; sharedPrivateLinkResources: SharedPrivateLinkResources; usages: Usages; + networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations; } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const usageBySubscriptionSkuOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages/{skuName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages/{skuName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.QuotaUsageResult + bodyMapper: Mappers.QuotaUsageResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location, - Parameters.skuName + Parameters.skuName, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; diff --git a/sdk/search/perf-tests/search-documents/package.json b/sdk/search/perf-tests/search-documents/package.json index 0a4ae52496eb..bac570a8227d 100644 --- a/sdk/search/perf-tests/search-documents/package.json +++ b/sdk/search/perf-tests/search-documents/package.json @@ -9,7 +9,7 @@ "license": "ISC", "dependencies": { "@azure/identity": "^4.0.1", - "@azure/search-documents": "12.0.0-beta.4", + "@azure/search-documents": "12.1.0-beta.1", "@azure/test-utils-perf": "^1.0.0", "dotenv": "^16.0.0" }, diff --git a/sdk/search/search-documents/.eslintrc.json b/sdk/search/search-documents/.eslintrc.json new file mode 100644 index 000000000000..0149781a33a9 --- /dev/null +++ b/sdk/search/search-documents/.eslintrc.json @@ -0,0 +1,14 @@ +{ + "overrides": [ + { + "files": ["samples-dev/**.ts"], + "rules": { + // Suppresses errors for the custom TSDoc syntax we use for docs + "tsdoc/syntax": "off", + // Suppresses spurious missing dependency error as ESLint thinks the sample's runtime deps + // should be runtime deps for us too + "import/no-extraneous-dependencies": "off" + } + } + ] +} diff --git a/sdk/search/search-documents/.vscode/settings.json b/sdk/search/search-documents/.vscode/settings.json deleted file mode 100644 index 0d6ed784aae2..000000000000 --- a/sdk/search/search-documents/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "cSpell.words": ["hnsw", "openai"] -} diff --git a/sdk/search/search-documents/CHANGELOG.md b/sdk/search/search-documents/CHANGELOG.md index 6bfd637e16b7..f8395e4fdb7b 100644 --- a/sdk/search/search-documents/CHANGELOG.md +++ b/sdk/search/search-documents/CHANGELOG.md @@ -1,5 +1,97 @@ # Release History +## 12.1.0-beta.1 (2024-02-06) + +### Breaking Changes + +- Refactor in alignment with v12 [#28576](https://github.com/Azure/azure-sdk-for-js/pull/28576) + - Replace or replace the following types/properties + - Use `ExhaustiveKnnAlgorithmConfiguration` in place of + - `ExhaustiveKnnVectorSearchAlgorithmConfiguration` + - Use `HnswAlgorithmConfiguration` in place of + - `HnswVectorSearchAlgorithmConfiguration` + - Use `PIIDetectionSkill.categories` in place of + - `PIIDetectionSkill.piiCategories` + - Use `QueryAnswer` in place of + - `Answers` + - `AnswersOption` + - `QueryAnswerType` + - Use `QueryAnswerResult` in place of + - `AnswerResult` + - Use `QueryCaption` in place of + - `Captions` + - `QueryCaptionType` + - Use `QueryCaptionResult` in place of + - `CaptionResult` + - Use `SearchRequestOptions.VectorSearchOptions.filterMode` in place of + - `SearchRequestOptions.vectorFilterMode` + - Use `SearchRequestOptions.VectorSearchOptions.queries` in place of + - `SearchRequestOptions.vectorQueries` + - Use `SearchRequestOptions.semanticSearchOptions.answers` in place of + - `SearchRequestOptions.answers` + - Use `SearchRequestOptions.semanticSearchOptions.captions` in place of + - `SearchRequestOptions.captions` + - Use `SearchRequestOptions.semanticSearchOptions.configurationName` in place of + - `SearchRequestOptions.semanticConfiguration` + - Use `SearchRequestOptions.semanticSearchOptions.debugMode` in place of + - `SearchRequestOptions.debugMode` + - Use `SearchRequestOptions.semanticSearchOptions.errorMode` in place of + - `SearchRequestOptions.semanticErrorHandlingMode` + - Use `SearchRequestOptions.semanticSearchOptions.maxWaitInMilliseconds` in place of + - `SearchRequestOptions.semanticMaxWaitInMilliseconds` + - Use `SearchRequestOptions.semanticSearchOptions.semanticFields` in place of + - `SearchRequestOptions.semanticFields` + - Use `SearchRequestOptions.semanticSearchOptions.semanticQuery` in place of + - `SearchRequestOptions.semanticQuery` + - Use `SemanticErrorMode` in place of + - `SemanticErrorHandlingMode` + - Use `SemanticErrorReason` in place of + - `SemanticPartialResponseReason` + - Use `SemanticPrioritizedFields` in place of + - `PrioritizedFields` + - Use `SemanticSearch` in place of + - `SemanticSettings` + - Use `SemanticSearchResultsType` in place of + - `SemanticPartialResponseType` + - Use `SimpleField.vectorSearchProfileName` in place of + - `SimpleField.vectorSearchProfile` + - Use `VectorSearchProfile.algorithmConfigurationName` in place of + - `VectorSearchProfile.algorithm` + - Narrow some enum property types to the respective string literal union + - `BlobIndexerDataToExtract` + - `BlobIndexerImageAction` + - `BlobIndexerParsingMode` + - `BlobIndexerPDFTextRotationAlgorithm` + - `CustomEntityLookupSkillLanguage` + - `EntityCategory` + - `EntityRecognitionSkillLanguage` + - `ImageAnalysisSkillLanguage` + - `ImageDetail` + - `IndexerExecutionEnvironment` + - `KeyPhraseExtractionSkillLanguage` + - `OcrSkillLanguage` + - `RegexFlags` + - `SearchIndexerDataSourceType` + - `SentimentSkillLanguage` + - `SplitSkillLanguage` + - `TextSplitMode` + - `TextTranslationSkillLanguage` + - `VisualFeature` + - Remove `KnownLexicalAnalyzerName` as a duplicate of `KnownAnalyzerNames` + - Remove `KnownCharFilterName` as a duplicate of `KnownCharFilterNames` + - Remove `KnownTokenFilterName` as a duplicate of `KnownTokenFilterNames` + - Remove `SearchRequest` as a duplicate of `SearchRequestOptions` + +### Features Added + +- Add vector compression [#28772](https://github.com/Azure/azure-sdk-for-js/pull/28772) + - Service-side scalar quantization of your vector data + - Optional reranking with full-precision vectors + - Optional oversampling of documents when reranking compressed vectors +- Add `Edm.Half`, `Edm.Int16`, and `Edm.SByte` vector spaces [#28772](https://github.com/Azure/azure-sdk-for-js/pull/28772) +- Add non-persistent vector usage through `SimpleField.stored` [#28772](https://github.com/Azure/azure-sdk-for-js/pull/28772) +- Expose the internal HTTP pipeline to allow users to send raw requests with it + ## 12.0.0-beta.4 (2023-10-11) ### Features Added diff --git a/sdk/search/search-documents/README.md b/sdk/search/search-documents/README.md index ea4102243066..1205f66565a3 100644 --- a/sdk/search/search-documents/README.md +++ b/sdk/search/search-documents/README.md @@ -17,7 +17,7 @@ The Azure AI Search service is well suited for the following application scenari * In a search client application, implement query logic and user experiences similar to commercial web search engines and chat-style apps. -Use the Azure.Search.Documents client library to: +Use the @azure/search-documents client library to: * Submit queries using vector, keyword, and hybrid query forms. * Implement filtered queries for metadata, geospatial search, faceted navigation, @@ -349,14 +349,14 @@ interface Hotel { hotelId?: string; hotelName?: string | null; description?: string | null; - descriptionVector?: Array | null; + descriptionVector?: Array; parkingIncluded?: boolean | null; lastRenovationDate?: Date | null; rating?: number | null; rooms?: Array<{ beds?: number | null; description?: string | null; - } | null>; + }>; } const client = new SearchClient( diff --git a/sdk/search/search-documents/api-extractor.json b/sdk/search/search-documents/api-extractor.json index 5f593659b1e3..b8a764c0c59a 100644 --- a/sdk/search/search-documents/api-extractor.json +++ b/sdk/search/search-documents/api-extractor.json @@ -10,15 +10,10 @@ }, "dtsRollup": { "enabled": true, - "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/search-documents.d.ts" + "publicTrimmedFilePath": "./types/search-documents.d.ts", + "untrimmedFilePath": "" }, "messages": { - "tsdocMessageReporting": { - "default": { - "logLevel": "none" - } - }, "extractorMessageReporting": { "ae-missing-release-tag": { "logLevel": "none" @@ -26,6 +21,11 @@ "ae-unresolved-link": { "logLevel": "none" } + }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } } } } diff --git a/sdk/search/search-documents/assets.json b/sdk/search/search-documents/assets.json index e373b7adce0d..27cf47b60609 100644 --- a/sdk/search/search-documents/assets.json +++ b/sdk/search/search-documents/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/search/search-documents", - "Tag": "js/search/search-documents_f8e9f163e2" + "Tag": "js/search/search-documents_b75f2ec5af" } diff --git a/sdk/search/search-documents/openai-patch.diff b/sdk/search/search-documents/openai-patch.diff deleted file mode 100644 index cfc7beb7faf2..000000000000 --- a/sdk/search/search-documents/openai-patch.diff +++ /dev/null @@ -1,4 +0,0 @@ -6c6 -< "main": "dist/index.js", ---- -> "main": "dist/index.cjs", diff --git a/sdk/search/search-documents/package.json b/sdk/search/search-documents/package.json index 1ad535945142..20dcc97af993 100644 --- a/sdk/search/search-documents/package.json +++ b/sdk/search/search-documents/package.json @@ -1,6 +1,6 @@ { "name": "@azure/search-documents", - "version": "12.0.0-beta.4", + "version": "12.1.0-beta.1", "description": "Azure client library to use Cognitive Search for node.js and browser.", "sdk-type": "client", "main": "dist/index.js", @@ -8,37 +8,37 @@ "types": "types/search-documents.d.ts", "scripts": { "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit", + "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", "build:browser": "tsc -p . && dev-tool run bundle", "build:node": "tsc -p . && dev-tool run bundle", "build:samples": "echo Obsolete.", - "execute:samples": "dev-tool samples run samples-dev", "build:test": "tsc -p . && dev-tool run bundle", - "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf --glob dist dist-* temp types *.tgz *.log", + "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/Service.md & autorest --typescript swagger/Data.md & wait", "generate:embeddings": "ts-node scripts/generateSampleEmbeddings.ts", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", - "lint": "eslint package.json api-extractor.json src test --ext .ts", + "lint": "eslint package.json api-extractor.json src test samples-dev --ext .ts", + "lint:fix": "eslint package.json api-extractor.json src test samples-dev --ext .ts --fix --fix-type [problem,suggestion]", "pack": "npm pack 2>&1", + "test": "npm run build:test && npm run unit-test", "test:browser": "npm run build:test && npm run unit-test:browser", "test:node": "npm run build:test && npm run unit-test:node", - "test": "npm run build:test && npm run unit-test", + "unit-test": "npm run unit-test:node && npm run unit-test:browser", "unit-test:browser": "dev-tool run test:browser", - "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 \"test/**/*.spec.ts\" \"test/**/**/*.spec.ts\"", - "unit-test": "npm run unit-test:node && npm run unit-test:browser" + "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 \"test/**/*.spec.ts\" \"test/**/**/*.spec.ts\"" }, "files": [ - "dist/", - "dist-esm/src/", - "types/search-documents.d.ts", + "LICENSE", "README.md", - "LICENSE" + "dist-esm/src/", + "dist/", + "types/search-documents.d.ts" ], "browser": { "./dist-esm/src/base64.js": "./dist-esm/src/base64.browser.js", @@ -47,12 +47,8 @@ "//metadata": { "constantPaths": [ { - "path": "swagger/Service.md", - "prefix": "package-version" - }, - { - "path": "swagger/Data.md", - "prefix": "package-version" + "path": "src/constants.ts", + "prefix": "SDK_VERSION" }, { "path": "src/generated/data/searchClient.ts", @@ -63,8 +59,12 @@ "prefix": "packageDetails" }, { - "path": "src/constants.ts", - "prefix": "SDK_VERSION" + "path": "swagger/Data.md", + "prefix": "package-version" + }, + { + "path": "swagger/Service.md", + "prefix": "package-version" } ] }, @@ -84,31 +84,34 @@ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/search/search-documents/", "sideEffects": false, "dependencies": { - "@azure/core-client": "^1.3.0", "@azure/core-auth": "^1.3.0", + "@azure/core-client": "^1.3.0", + "@azure/core-http-compat": "^2.0.1", "@azure/core-paging": "^1.1.1", - "@azure/core-tracing": "^1.0.0", "@azure/core-rest-pipeline": "^1.3.0", - "@azure/core-http-compat": "^2.0.1", + "@azure/core-tracing": "^1.0.0", "@azure/logger": "^1.0.0", - "tslib": "^2.2.0", - "events": "^3.0.0" + "events": "^3.0.0", + "tslib": "^2.2.0" }, "devDependencies": { - "@azure/openai": "1.0.0-beta.12", - "@azure/test-utils": "^1.0.0", + "@azure-tools/test-recorder": "^3.0.0", + "@azure/core-util": "^1.6.1", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@azure-tools/test-recorder": "^3.0.0", + "@azure/openai": "1.0.0-beta.12", + "@azure/test-utils": "^1.0.0", "@microsoft/api-extractor": "^7.31.1", "@types/chai": "^4.1.6", "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", "@types/sinon": "^17.0.0", + "c8": "^8.0.0", "chai": "^4.2.0", "cross-env": "^7.0.2", "dotenv": "^16.0.0", "eslint": "^8.0.0", + "esm": "^3.2.18", "inherits": "^2.0.3", "karma": "^6.2.0", "karma-chrome-launcher": "^3.0.0", @@ -122,13 +125,11 @@ "karma-mocha-reporter": "^2.2.5", "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", - "c8": "^8.0.0", "rimraf": "^5.0.5", "sinon": "^17.0.0", "ts-node": "^10.0.0", "typescript": "~5.3.3", - "util": "^0.12.1", - "esm": "^3.2.18" + "util": "^0.12.1" }, "//sampleConfiguration": { "productName": "Azure Search Documents", diff --git a/sdk/search/search-documents/review/search-documents.api.md b/sdk/search/search-documents/review/search-documents.api.md index 5621ebf3918c..556eb019c8a4 100644 --- a/sdk/search/search-documents/review/search-documents.api.md +++ b/sdk/search/search-documents/review/search-documents.api.md @@ -11,6 +11,7 @@ import { ExtendedCommonClientOptions } from '@azure/core-http-compat'; import { KeyCredential } from '@azure/core-auth'; import { OperationOptions } from '@azure/core-client'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; +import { Pipeline } from '@azure/core-rest-pipeline'; import { RestError } from '@azure/core-rest-pipeline'; import { TokenCredential } from '@azure/core-auth'; @@ -27,12 +28,12 @@ export interface AnalyzedTokenInfo { // @public export interface AnalyzeRequest { - analyzerName?: string; - charFilters?: string[]; + analyzerName?: LexicalAnalyzerName; + charFilters?: CharFilterName[]; normalizerName?: LexicalNormalizerName; text: string; - tokenFilters?: string[]; - tokenizerName?: string; + tokenFilters?: TokenFilterName[]; + tokenizerName?: LexicalTokenizerName; } // @public @@ -44,31 +45,10 @@ export interface AnalyzeResult { export type AnalyzeTextOptions = OperationOptions & AnalyzeRequest; // @public -export interface AnswerResult { - [property: string]: any; - readonly highlights?: string; - readonly key: string; - readonly score: number; - readonly text: string; -} - -// @public -export type Answers = string; - -// @public -export type AnswersOptions = { - answers: "extractive"; - count?: number; - threshold?: number; -} | { - answers: "none"; -}; - -// @public -export type AsciiFoldingTokenFilter = BaseTokenFilter & { +export interface AsciiFoldingTokenFilter extends BaseTokenFilter { odatatype: "#Microsoft.Azure.Search.AsciiFoldingTokenFilter"; preserveOriginal?: boolean; -}; +} // @public export interface AutocompleteItem { @@ -109,15 +89,15 @@ export interface AzureActiveDirectoryApplicationCredentials { export { AzureKeyCredential } // @public -export type AzureMachineLearningSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Custom.AmlSkill"; - scoringUri?: string; +export interface AzureMachineLearningSkill extends BaseSearchIndexerSkill { authenticationKey?: string; + degreeOfParallelism?: number; + odatatype: "#Microsoft.Skills.Custom.AmlSkill"; + region?: string; resourceId?: string; + scoringUri?: string; timeout?: string; - region?: string; - degreeOfParallelism?: number; -}; +} // @public export interface AzureOpenAIEmbeddingSkill extends BaseSearchIndexerSkill { @@ -205,6 +185,31 @@ export interface BaseSearchIndexerSkill { outputs: OutputFieldMappingEntry[]; } +// @public +export interface BaseSearchRequestOptions = SelectFields> { + facets?: string[]; + filter?: string; + highlightFields?: string; + highlightPostTag?: string; + highlightPreTag?: string; + includeTotalCount?: boolean; + minimumCoverage?: number; + orderBy?: string[]; + queryLanguage?: QueryLanguage; + queryType?: QueryType; + scoringParameters?: string[]; + scoringProfile?: string; + scoringStatistics?: ScoringStatistics; + searchFields?: SearchFieldArray; + searchMode?: SearchMode; + select?: SelectArray; + sessionId?: string; + skip?: number; + speller?: Speller; + top?: number; + vectorSearchOptions?: VectorSearchOptions; +} + // @public export interface BaseTokenFilter { name: string; @@ -217,6 +222,7 @@ export interface BaseVectorQuery { fields?: SearchFieldArray; kind: VectorQueryKind; kNearestNeighborsCount?: number; + oversampling?: number; } // @public @@ -225,41 +231,39 @@ export interface BaseVectorSearchAlgorithmConfiguration { name: string; } +// @public +export interface BaseVectorSearchCompressionConfiguration { + defaultOversampling?: number; + kind: "scalarQuantization"; + name: string; + rerankWithOriginalVectors?: boolean; +} + // @public export interface BaseVectorSearchVectorizer { kind: VectorSearchVectorizerKind; name: string; } -// @public -export type BlobIndexerDataToExtract = string; +// @public (undocumented) +export type BlobIndexerDataToExtract = "storageMetadata" | "allMetadata" | "contentAndMetadata"; -// @public -export type BlobIndexerImageAction = string; +// @public (undocumented) +export type BlobIndexerImageAction = "none" | "generateNormalizedImages" | "generateNormalizedImagePerPage"; -// @public -export type BlobIndexerParsingMode = string; +// @public (undocumented) +export type BlobIndexerParsingMode = "default" | "text" | "delimitedText" | "json" | "jsonArray" | "jsonLines"; -// @public -export type BlobIndexerPDFTextRotationAlgorithm = string; +// @public (undocumented) +export type BlobIndexerPDFTextRotationAlgorithm = "none" | "detectAngles"; // @public -export type BM25Similarity = Similarity & { - odatatype: "#Microsoft.Azure.Search.BM25Similarity"; - k1?: number; +export interface BM25Similarity extends Similarity { b?: number; -}; - -// @public -export interface CaptionResult { - [property: string]: any; - readonly highlights?: string; - readonly text?: string; + k1?: number; + odatatype: "#Microsoft.Azure.Search.BM25Similarity"; } -// @public -export type Captions = string; - // @public export type CharFilter = MappingCharFilter | PatternReplaceCharFilter; @@ -267,42 +271,42 @@ export type CharFilter = MappingCharFilter | PatternReplaceCharFilter; export type CharFilterName = string; // @public -export type CjkBigramTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.CjkBigramTokenFilter"; +export interface CjkBigramTokenFilter extends BaseTokenFilter { ignoreScripts?: CjkBigramTokenFilterScripts[]; + odatatype: "#Microsoft.Azure.Search.CjkBigramTokenFilter"; outputUnigrams?: boolean; -}; +} // @public export type CjkBigramTokenFilterScripts = "han" | "hiragana" | "katakana" | "hangul"; // @public -export type ClassicSimilarity = Similarity & { +export interface ClassicSimilarity extends Similarity { odatatype: "#Microsoft.Azure.Search.ClassicSimilarity"; -}; +} // @public -export type ClassicTokenizer = BaseLexicalTokenizer & { - odatatype: "#Microsoft.Azure.Search.ClassicTokenizer"; +export interface ClassicTokenizer extends BaseLexicalTokenizer { maxTokenLength?: number; -}; + odatatype: "#Microsoft.Azure.Search.ClassicTokenizer"; +} // @public export type CognitiveServicesAccount = DefaultCognitiveServicesAccount | CognitiveServicesAccountKey; // @public -export type CognitiveServicesAccountKey = BaseCognitiveServicesAccount & { - odatatype: "#Microsoft.Azure.Search.CognitiveServicesByKey"; +export interface CognitiveServicesAccountKey extends BaseCognitiveServicesAccount { key: string; -}; + odatatype: "#Microsoft.Azure.Search.CognitiveServicesByKey"; +} // @public -export type CommonGramTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.CommonGramTokenFilter"; +export interface CommonGramTokenFilter extends BaseTokenFilter { commonWords: string[]; ignoreCase?: boolean; + odatatype: "#Microsoft.Azure.Search.CommonGramTokenFilter"; useQueryMode?: boolean; -}; +} // @public export type ComplexDataType = "Edm.ComplexType" | "Collection(Edm.ComplexType)"; @@ -315,9 +319,9 @@ export interface ComplexField { } // @public -export type ConditionalSkill = BaseSearchIndexerSkill & { +export interface ConditionalSkill extends BaseSearchIndexerSkill { odatatype: "#Microsoft.Skills.Util.ConditionalSkill"; -}; +} // @public export interface CorsOptions { @@ -387,11 +391,11 @@ export type CreateSynonymMapOptions = OperationOptions; // @public export interface CustomAnalyzer { - charFilters?: string[]; + charFilters?: CharFilterName[]; name: string; odatatype: "#Microsoft.Azure.Search.CustomAnalyzer"; - tokenFilters?: string[]; - tokenizerName: string; + tokenFilters?: TokenFilterName[]; + tokenizerName: LexicalTokenizerName; } // @public @@ -419,25 +423,25 @@ export interface CustomEntityAlias { } // @public -export type CustomEntityLookupSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Text.CustomEntityLookupSkill"; +export interface CustomEntityLookupSkill extends BaseSearchIndexerSkill { defaultLanguageCode?: CustomEntityLookupSkillLanguage; entitiesDefinitionUri?: string; - inlineEntitiesDefinition?: CustomEntity[]; - globalDefaultCaseSensitive?: boolean; globalDefaultAccentSensitive?: boolean; + globalDefaultCaseSensitive?: boolean; globalDefaultFuzzyEditDistance?: number; -}; + inlineEntitiesDefinition?: CustomEntity[]; + odatatype: "#Microsoft.Skills.Text.CustomEntityLookupSkill"; +} -// @public -export type CustomEntityLookupSkillLanguage = string; +// @public (undocumented) +export type CustomEntityLookupSkillLanguage = "da" | "de" | "en" | "es" | "fi" | "fr" | "it" | "ko" | "pt"; // @public -export type CustomNormalizer = BaseLexicalNormalizer & { +export interface CustomNormalizer extends BaseLexicalNormalizer { + charFilters?: CharFilterName[]; odatatype: "#Microsoft.Azure.Search.CustomNormalizer"; tokenFilters?: TokenFilterName[]; - charFilters?: CharFilterName[]; -}; +} // @public export type CustomVectorizer = BaseVectorSearchVectorizer & { @@ -471,9 +475,9 @@ export const DEFAULT_FLUSH_WINDOW: number; export const DEFAULT_RETRY_COUNT: number; // @public -export type DefaultCognitiveServicesAccount = BaseCognitiveServicesAccount & { +export interface DefaultCognitiveServicesAccount extends BaseCognitiveServicesAccount { odatatype: "#Microsoft.Azure.Search.DefaultCognitiveServices"; -}; +} // @public export interface DeleteAliasOptions extends OperationOptions { @@ -509,20 +513,20 @@ export interface DeleteSynonymMapOptions extends OperationOptions { } // @public -export type DictionaryDecompounderTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.DictionaryDecompounderTokenFilter"; - wordList: string[]; - minWordSize?: number; - minSubwordSize?: number; +export interface DictionaryDecompounderTokenFilter extends BaseTokenFilter { maxSubwordSize?: number; + minSubwordSize?: number; + minWordSize?: number; + odatatype: "#Microsoft.Azure.Search.DictionaryDecompounderTokenFilter"; onlyLongestMatch?: boolean; -}; + wordList: string[]; +} // @public -export type DistanceScoringFunction = BaseScoringFunction & { - type: "distance"; +export interface DistanceScoringFunction extends BaseScoringFunction { parameters: DistanceScoringParameters; -}; + type: "distance"; +} // @public export interface DistanceScoringParameters { @@ -536,14 +540,14 @@ export interface DocumentDebugInfo { } // @public -export type DocumentExtractionSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Util.DocumentExtractionSkill"; - parsingMode?: string; - dataToExtract?: string; +export interface DocumentExtractionSkill extends BaseSearchIndexerSkill { configuration?: { [propertyName: string]: any; }; -}; + dataToExtract?: string; + odatatype: "#Microsoft.Skills.Util.DocumentExtractionSkill"; + parsingMode?: string; +} // @public export interface EdgeNGramTokenFilter { @@ -558,70 +562,86 @@ export interface EdgeNGramTokenFilter { export type EdgeNGramTokenFilterSide = "front" | "back"; // @public -export type EdgeNGramTokenizer = BaseLexicalTokenizer & { - odatatype: "#Microsoft.Azure.Search.EdgeNGramTokenizer"; - minGram?: number; +export interface EdgeNGramTokenizer extends BaseLexicalTokenizer { maxGram?: number; + minGram?: number; + odatatype: "#Microsoft.Azure.Search.EdgeNGramTokenizer"; tokenChars?: TokenCharacterKind[]; -}; +} // @public -export type ElisionTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.ElisionTokenFilter"; +export interface ElisionTokenFilter extends BaseTokenFilter { articles?: string[]; -}; + odatatype: "#Microsoft.Azure.Search.ElisionTokenFilter"; +} -// @public -export type EntityCategory = string; +// @public (undocumented) +export type EntityCategory = "location" | "organization" | "person" | "quantity" | "datetime" | "url" | "email"; // @public -export type EntityLinkingSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Text.V3.EntityLinkingSkill"; +export interface EntityLinkingSkill extends BaseSearchIndexerSkill { defaultLanguageCode?: string; minimumPrecision?: number; modelVersion?: string; -}; + odatatype: "#Microsoft.Skills.Text.V3.EntityLinkingSkill"; +} // @public @deprecated -export type EntityRecognitionSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Text.EntityRecognitionSkill"; +export interface EntityRecognitionSkill extends BaseSearchIndexerSkill { categories?: EntityCategory[]; defaultLanguageCode?: EntityRecognitionSkillLanguage; includeTypelessEntities?: boolean; minimumPrecision?: number; -}; + odatatype: "#Microsoft.Skills.Text.EntityRecognitionSkill"; +} -// @public -export type EntityRecognitionSkillLanguage = string; +// @public (undocumented) +export type EntityRecognitionSkillLanguage = "ar" | "cs" | "zh-Hans" | "zh-Hant" | "da" | "nl" | "en" | "fi" | "fr" | "de" | "el" | "hu" | "it" | "ja" | "ko" | "no" | "pl" | "pt-PT" | "pt-BR" | "ru" | "es" | "sv" | "tr"; // @public -export type EntityRecognitionSkillV3 = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Text.V3.EntityRecognitionSkill"; +export interface EntityRecognitionSkillV3 extends BaseSearchIndexerSkill { categories?: string[]; defaultLanguageCode?: string; minimumPrecision?: number; modelVersion?: string; -}; + odatatype: "#Microsoft.Skills.Text.V3.EntityRecognitionSkill"; +} // @public (undocumented) export type ExcludedODataTypes = Date | GeographyPoint; // @public -export interface ExhaustiveKnnParameters { - metric?: VectorSearchAlgorithmMetric; -} - -// @public -export type ExhaustiveKnnVectorSearchAlgorithmConfiguration = BaseVectorSearchAlgorithmConfiguration & { +export type ExhaustiveKnnAlgorithmConfiguration = BaseVectorSearchAlgorithmConfiguration & { kind: "exhaustiveKnn"; parameters?: ExhaustiveKnnParameters; }; +// @public +export interface ExhaustiveKnnParameters { + metric?: VectorSearchAlgorithmMetric; +} + // @public (undocumented) export type ExtractDocumentKey = { [K in keyof TModel as TModel[K] extends string | undefined ? K : never]: TModel[K]; }; +// @public +export interface ExtractiveQueryAnswer { + // (undocumented) + answerType: "extractive"; + count?: number; + threshold?: number; +} + +// @public +export interface ExtractiveQueryCaption { + // (undocumented) + captionType: "extractive"; + // (undocumented) + highlight?: boolean; +} + // @public export interface FacetResult { [property: string]: any; @@ -644,10 +664,10 @@ export interface FieldMappingFunction { } // @public -export type FreshnessScoringFunction = BaseScoringFunction & { - type: "freshness"; +export interface FreshnessScoringFunction extends BaseScoringFunction { parameters: FreshnessScoringParameters; -}; + type: "freshness"; +} // @public export interface FreshnessScoringParameters { @@ -698,9 +718,15 @@ export type GetSkillSetOptions = OperationOptions; export type GetSynonymMapsOptions = OperationOptions; // @public -export type HighWaterMarkChangeDetectionPolicy = BaseDataChangeDetectionPolicy & { - odatatype: "#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy"; +export interface HighWaterMarkChangeDetectionPolicy extends BaseDataChangeDetectionPolicy { highWaterMarkColumnName: string; + odatatype: "#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy"; +} + +// @public +export type HnswAlgorithmConfiguration = BaseVectorSearchAlgorithmConfiguration & { + kind: "hnsw"; + parameters?: HnswParameters; }; // @public @@ -712,47 +738,49 @@ export interface HnswParameters { } // @public -export type HnswVectorSearchAlgorithmConfiguration = BaseVectorSearchAlgorithmConfiguration & { - kind: "hnsw"; - parameters?: HnswParameters; -}; +export interface ImageAnalysisSkill extends BaseSearchIndexerSkill { + defaultLanguageCode?: ImageAnalysisSkillLanguage; + details?: ImageDetail[]; + odatatype: "#Microsoft.Skills.Vision.ImageAnalysisSkill"; + visualFeatures?: VisualFeature[]; +} // @public -export type ImageAnalysisSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Vision.ImageAnalysisSkill"; +export interface ImageAnalysisSkill extends BaseSearchIndexerSkill { defaultLanguageCode?: ImageAnalysisSkillLanguage; - visualFeatures?: VisualFeature[]; details?: ImageDetail[]; -}; + odatatype: "#Microsoft.Skills.Vision.ImageAnalysisSkill"; + visualFeatures?: VisualFeature[]; +} -// @public -export type ImageAnalysisSkillLanguage = string; +// @public (undocumented) +export type ImageAnalysisSkillLanguage = "ar" | "az" | "bg" | "bs" | "ca" | "cs" | "cy" | "da" | "de" | "el" | "en" | "es" | "et" | "eu" | "fi" | "fr" | "ga" | "gl" | "he" | "hi" | "hr" | "hu" | "id" | "it" | "ja" | "kk" | "ko" | "lt" | "lv" | "mk" | "ms" | "nb" | "nl" | "pl" | "prs" | "pt-BR" | "pt" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sr-Cyrl" | "sr-Latn" | "sv" | "th" | "tr" | "uk" | "vi" | "zh" | "zh-Hans" | "zh-Hant"; -// @public -export type ImageDetail = string; +// @public (undocumented) +export type ImageDetail = "celebrities" | "landmarks"; // @public export type IndexActionType = "upload" | "merge" | "mergeOrUpload" | "delete"; // @public -export type IndexDocumentsAction = { +export type IndexDocumentsAction = { __actionType: IndexActionType; -} & Partial; +} & Partial; // @public -export class IndexDocumentsBatch { - constructor(actions?: IndexDocumentsAction[]); - readonly actions: IndexDocumentsAction[]; - delete(keyName: keyof T, keyValues: string[]): void; - delete(documents: T[]): void; - merge(documents: T[]): void; - mergeOrUpload(documents: T[]): void; - upload(documents: T[]): void; +export class IndexDocumentsBatch { + constructor(actions?: IndexDocumentsAction[]); + readonly actions: IndexDocumentsAction[]; + delete(keyName: keyof TModel, keyValues: string[]): void; + delete(documents: TModel[]): void; + merge(documents: TModel[]): void; + mergeOrUpload(documents: TModel[]): void; + upload(documents: TModel[]): void; } // @public -export interface IndexDocumentsClient { - indexDocuments(batch: IndexDocumentsBatch, options: IndexDocumentsOptions): Promise; +export interface IndexDocumentsClient { + indexDocuments(batch: IndexDocumentsBatch, options: IndexDocumentsOptions): Promise; } // @public @@ -765,8 +793,8 @@ export interface IndexDocumentsResult { readonly results: IndexingResult[]; } -// @public -export type IndexerExecutionEnvironment = string; +// @public (undocumented) +export type IndexerExecutionEnvironment = "standard" | "private"; // @public export interface IndexerExecutionResult { @@ -857,7 +885,7 @@ export type IndexIterator = PagedAsyncIterableIterator; // @public -export type IndexProjectionMode = "skipIndexingParentDocuments" | "includeIndexingParentDocuments"; +export type IndexProjectionMode = string; // @public export interface InputFieldMappingEntry { @@ -868,29 +896,29 @@ export interface InputFieldMappingEntry { } // @public -export type KeepTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.KeepTokenFilter"; +export interface KeepTokenFilter extends BaseTokenFilter { keepWords: string[]; lowerCaseKeepWords?: boolean; -}; + odatatype: "#Microsoft.Azure.Search.KeepTokenFilter"; +} // @public -export type KeyPhraseExtractionSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Text.KeyPhraseExtractionSkill"; +export interface KeyPhraseExtractionSkill extends BaseSearchIndexerSkill { defaultLanguageCode?: KeyPhraseExtractionSkillLanguage; maxKeyPhraseCount?: number; modelVersion?: string; -}; + odatatype: "#Microsoft.Skills.Text.KeyPhraseExtractionSkill"; +} -// @public -export type KeyPhraseExtractionSkillLanguage = string; +// @public (undocumented) +export type KeyPhraseExtractionSkillLanguage = "da" | "nl" | "en" | "fi" | "fr" | "de" | "it" | "ja" | "ko" | "no" | "pl" | "pt-PT" | "pt-BR" | "ru" | "es" | "sv"; // @public -export type KeywordMarkerTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.KeywordMarkerTokenFilter"; - keywords: string[]; +export interface KeywordMarkerTokenFilter extends BaseTokenFilter { ignoreCase?: boolean; -}; + keywords: string[]; + odatatype: "#Microsoft.Azure.Search.KeywordMarkerTokenFilter"; +} // @public export interface KeywordTokenizer { @@ -996,12 +1024,6 @@ export enum KnownAnalyzerNames { ZhHantMicrosoft = "zh-Hant.microsoft" } -// @public -export enum KnownAnswers { - Extractive = "extractive", - None = "none" -} - // @public export enum KnownBlobIndexerDataToExtract { AllMetadata = "allMetadata", @@ -1155,6 +1177,12 @@ export enum KnownImageDetail { Landmarks = "landmarks" } +// @public +export enum KnownIndexerExecutionEnvironment { + Private = "private", + Standard = "standard" +} + // @public export enum KnownIndexerExecutionStatusDetail { ResetDocs = "resetDocs" @@ -1166,6 +1194,12 @@ export enum KnownIndexingMode { IndexingResetDocs = "indexingResetDocs" } +// @public +export enum KnownIndexProjectionMode { + IncludeIndexingParentDocuments = "includeIndexingParentDocuments", + SkipIndexingParentDocuments = "skipIndexingParentDocuments" +} + // @public export enum KnownKeyPhraseExtractionSkillLanguage { Da = "da", @@ -1284,29 +1318,48 @@ export enum KnownLexicalAnalyzerName { } // @public -export enum KnownLexicalNormalizerName { +enum KnownLexicalNormalizerName { AsciiFolding = "asciifolding", Elision = "elision", Lowercase = "lowercase", Standard = "standard", Uppercase = "uppercase" } +export { KnownLexicalNormalizerName } +export { KnownLexicalNormalizerName as KnownNormalizerNames } // @public -export enum KnownLineEnding { - CarriageReturn = "carriageReturn", - CarriageReturnLineFeed = "carriageReturnLineFeed", - LineFeed = "lineFeed", - Space = "space" -} - -// @public -export enum KnownOcrSkillLanguage { - Af = "af", - Anp = "anp", - Ar = "ar", - Ast = "ast", - Awa = "awa", +export enum KnownLexicalTokenizerName { + Classic = "classic", + EdgeNGram = "edgeNGram", + Keyword = "keyword_v2", + Letter = "letter", + Lowercase = "lowercase", + MicrosoftLanguageStemmingTokenizer = "microsoft_language_stemming_tokenizer", + MicrosoftLanguageTokenizer = "microsoft_language_tokenizer", + NGram = "nGram", + PathHierarchy = "path_hierarchy_v2", + Pattern = "pattern", + Standard = "standard_v2", + UaxUrlEmail = "uax_url_email", + Whitespace = "whitespace" +} + +// @public +export enum KnownLineEnding { + CarriageReturn = "carriageReturn", + CarriageReturnLineFeed = "carriageReturnLineFeed", + LineFeed = "lineFeed", + Space = "space" +} + +// @public +export enum KnownOcrSkillLanguage { + Af = "af", + Anp = "anp", + Ar = "ar", + Ast = "ast", + Awa = "awa", Az = "az", Be = "be", BeCyrl = "be-cyrl", @@ -1481,15 +1534,9 @@ export enum KnownPIIDetectionSkillMaskingMode { } // @public -export enum KnownQueryAnswerType { - Extractive = "extractive", - None = "none" -} - -// @public -export enum KnownQueryCaptionType { - Extractive = "extractive", - None = "none" +export enum KnownQueryDebugMode { + Disabled = "disabled", + Semantic = "semantic" } // @public @@ -1603,6 +1650,32 @@ export enum KnownSearchIndexerDataSourceType { MySql = "mysql" } +// @public +export enum KnownSemanticErrorMode { + Fail = "fail", + Partial = "partial" +} + +// @public +export enum KnownSemanticErrorReason { + CapacityOverloaded = "capacityOverloaded", + MaxWaitExceeded = "maxWaitExceeded", + Transient = "transient" +} + +// @public +export enum KnownSemanticFieldState { + Partial = "partial", + Unused = "unused", + Used = "used" +} + +// @public +export enum KnownSemanticSearchResultsType { + BaseResults = "baseResults", + RerankedResults = "rerankedResults" +} + // @public export enum KnownSentimentSkillLanguage { Da = "da", @@ -1630,15 +1703,39 @@ export enum KnownSpeller { // @public export enum KnownSplitSkillLanguage { + Am = "am", + Bs = "bs", + Cs = "cs", Da = "da", De = "de", En = "en", Es = "es", + Et = "et", Fi = "fi", Fr = "fr", + He = "he", + Hi = "hi", + Hr = "hr", + Hu = "hu", + Id = "id", + Is = "is", It = "it", + Ja = "ja", Ko = "ko", - Pt = "pt" + Lv = "lv", + Nb = "nb", + Nl = "nl", + Pl = "pl", + Pt = "pt", + PtBr = "pt-br", + Ru = "ru", + Sk = "sk", + Sl = "sl", + Sr = "sr", + Sv = "sv", + Tr = "tr", + Ur = "ur", + Zh = "zh" } // @public @@ -1816,6 +1913,28 @@ export enum KnownTokenizerNames { Whitespace = "whitespace" } +// @public +export enum KnownVectorQueryKind { + $DO_NOT_NORMALIZE$_text = "text", + Vector = "vector" +} + +// @public +export enum KnownVectorSearchCompressionKind { + ScalarQuantization = "scalarQuantization" +} + +// @public +export enum KnownVectorSearchCompressionTargetDataType { + Int8 = "int8" +} + +// @public +export enum KnownVectorSearchVectorizerKind { + AzureOpenAI = "azureOpenAI", + CustomWebApi = "customWebApi" +} + // @public export enum KnownVisualFeature { Adult = "adult", @@ -1828,18 +1947,18 @@ export enum KnownVisualFeature { } // @public -export type LanguageDetectionSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Text.LanguageDetectionSkill"; +export interface LanguageDetectionSkill extends BaseSearchIndexerSkill { defaultCountryHint?: string; modelVersion?: string; -}; + odatatype: "#Microsoft.Skills.Text.LanguageDetectionSkill"; +} // @public -export type LengthTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.LengthTokenFilter"; - minLength?: number; +export interface LengthTokenFilter extends BaseTokenFilter { maxLength?: number; -}; + minLength?: number; + odatatype: "#Microsoft.Azure.Search.LengthTokenFilter"; +} // @public export type LexicalAnalyzer = CustomAnalyzer | PatternAnalyzer | LuceneStandardAnalyzer | StopAnalyzer; @@ -1857,11 +1976,14 @@ export type LexicalNormalizerName = string; export type LexicalTokenizer = ClassicTokenizer | EdgeNGramTokenizer | KeywordTokenizer | MicrosoftLanguageTokenizer | MicrosoftLanguageStemmingTokenizer | NGramTokenizer | PathHierarchyTokenizer | PatternTokenizer | LuceneStandardTokenizer | UaxUrlEmailTokenizer; // @public -export type LimitTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.LimitTokenFilter"; - maxTokenCount?: number; +export type LexicalTokenizerName = string; + +// @public +export interface LimitTokenFilter extends BaseTokenFilter { consumeAllTokens?: boolean; -}; + maxTokenCount?: number; + odatatype: "#Microsoft.Azure.Search.LimitTokenFilter"; +} // @public export type LineEnding = string; @@ -1890,11 +2012,11 @@ export type ListSkillsetsOptions = OperationOptions; export type ListSynonymMapsOptions = OperationOptions; // @public -export type LuceneStandardAnalyzer = BaseLexicalAnalyzer & { - odatatype: "#Microsoft.Azure.Search.StandardAnalyzer"; +export interface LuceneStandardAnalyzer extends BaseLexicalAnalyzer { maxTokenLength?: number; + odatatype: "#Microsoft.Azure.Search.StandardAnalyzer"; stopwords?: string[]; -}; +} // @public export interface LuceneStandardTokenizer { @@ -1904,10 +2026,10 @@ export interface LuceneStandardTokenizer { } // @public -export type MagnitudeScoringFunction = BaseScoringFunction & { - type: "magnitude"; +export interface MagnitudeScoringFunction extends BaseScoringFunction { parameters: MagnitudeScoringParameters; -}; + type: "magnitude"; +} // @public export interface MagnitudeScoringParameters { @@ -1917,10 +2039,10 @@ export interface MagnitudeScoringParameters { } // @public -export type MappingCharFilter = BaseCharFilter & { - odatatype: "#Microsoft.Azure.Search.MappingCharFilter"; +export interface MappingCharFilter extends BaseCharFilter { mappings: string[]; -}; + odatatype: "#Microsoft.Azure.Search.MappingCharFilter"; +} // @public export type MergeDocumentsOptions = IndexDocumentsOptions; @@ -1929,27 +2051,27 @@ export type MergeDocumentsOptions = IndexDocumentsOptions; export type MergeOrUploadDocumentsOptions = IndexDocumentsOptions; // @public -export type MergeSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Text.MergeSkill"; - insertPreTag?: string; +export interface MergeSkill extends BaseSearchIndexerSkill { insertPostTag?: string; -}; + insertPreTag?: string; + odatatype: "#Microsoft.Skills.Text.MergeSkill"; +} // @public -export type MicrosoftLanguageStemmingTokenizer = BaseLexicalTokenizer & { - odatatype: "#Microsoft.Azure.Search.MicrosoftLanguageStemmingTokenizer"; - maxTokenLength?: number; +export interface MicrosoftLanguageStemmingTokenizer extends BaseLexicalTokenizer { isSearchTokenizer?: boolean; language?: MicrosoftStemmingTokenizerLanguage; -}; + maxTokenLength?: number; + odatatype: "#Microsoft.Azure.Search.MicrosoftLanguageStemmingTokenizer"; +} // @public -export type MicrosoftLanguageTokenizer = BaseLexicalTokenizer & { - odatatype: "#Microsoft.Azure.Search.MicrosoftLanguageTokenizer"; - maxTokenLength?: number; +export interface MicrosoftLanguageTokenizer extends BaseLexicalTokenizer { isSearchTokenizer?: boolean; language?: MicrosoftTokenizerLanguage; -}; + maxTokenLength?: number; + odatatype: "#Microsoft.Azure.Search.MicrosoftLanguageTokenizer"; +} // @public export type MicrosoftStemmingTokenizerLanguage = "arabic" | "bangla" | "bulgarian" | "catalan" | "croatian" | "czech" | "danish" | "dutch" | "english" | "estonian" | "finnish" | "french" | "german" | "greek" | "gujarati" | "hebrew" | "hindi" | "hungarian" | "icelandic" | "indonesian" | "italian" | "kannada" | "latvian" | "lithuanian" | "malay" | "malayalam" | "marathi" | "norwegianBokmaal" | "polish" | "portuguese" | "portugueseBrazilian" | "punjabi" | "romanian" | "russian" | "serbianCyrillic" | "serbianLatin" | "slovak" | "slovenian" | "spanish" | "swedish" | "tamil" | "telugu" | "turkish" | "ukrainian" | "urdu"; @@ -1961,9 +2083,9 @@ export type MicrosoftTokenizerLanguage = "bangla" | "bulgarian" | "catalan" | "c export type NarrowedModel = SelectFields> = (() => T extends TModel ? true : false) extends () => T extends never ? true : false ? TModel : (() => T extends TModel ? true : false) extends () => T extends object ? true : false ? TModel : (() => T extends TModel ? true : false) extends () => T extends any ? true : false ? TModel : (() => T extends TModel ? true : false) extends () => T extends unknown ? true : false ? TModel : (() => T extends TFields ? true : false) extends () => T extends never ? true : false ? never : (() => T extends TFields ? true : false) extends () => T extends SelectFields ? true : false ? TModel : SearchPick; // @public -export type NativeBlobSoftDeleteDeletionDetectionPolicy = BaseDataDeletionDetectionPolicy & { +export interface NativeBlobSoftDeleteDeletionDetectionPolicy extends BaseDataDeletionDetectionPolicy { odatatype: "#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy"; -}; +} // @public export interface NGramTokenFilter { @@ -1974,23 +2096,22 @@ export interface NGramTokenFilter { } // @public -export type NGramTokenizer = BaseLexicalTokenizer & { - odatatype: "#Microsoft.Azure.Search.NGramTokenizer"; - minGram?: number; +export interface NGramTokenizer extends BaseLexicalTokenizer { maxGram?: number; + minGram?: number; + odatatype: "#Microsoft.Azure.Search.NGramTokenizer"; tokenChars?: TokenCharacterKind[]; -}; +} // @public -export type OcrSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Vision.OcrSkill"; +export interface OcrSkill extends BaseSearchIndexerSkill { defaultLanguageCode?: OcrSkillLanguage; + odatatype: "#Microsoft.Skills.Vision.OcrSkill"; shouldDetectOrientation?: boolean; - lineEnding?: LineEnding; -}; +} -// @public -export type OcrSkillLanguage = string; +// @public (undocumented) +export type OcrSkillLanguage = "af" | "sq" | "anp" | "ar" | "ast" | "awa" | "az" | "bfy" | "eu" | "be" | "be-cyrl" | "be-latn" | "bho" | "bi" | "brx" | "bs" | "bra" | "br" | "bg" | "bns" | "bua" | "ca" | "ceb" | "rab" | "ch" | "hne" | "zh-Hans" | "zh-Hant" | "kw" | "co" | "crh" | "hr" | "cs" | "da" | "prs" | "dhi" | "doi" | "nl" | "en" | "myv" | "et" | "fo" | "fj" | "fil" | "fi" | "fr" | "fur" | "gag" | "gl" | "de" | "gil" | "gon" | "el" | "kl" | "gvr" | "ht" | "hlb" | "hni" | "bgc" | "haw" | "hi" | "mww" | "hoc" | "hu" | "is" | "smn" | "id" | "ia" | "iu" | "ga" | "it" | "ja" | "Jns" | "jv" | "kea" | "kac" | "xnr" | "krc" | "kaa-cyrl" | "kaa" | "csb" | "kk-cyrl" | "kk-latn" | "klr" | "kha" | "quc" | "ko" | "kfq" | "kpy" | "kos" | "kum" | "ku-arab" | "ku-latn" | "kru" | "ky" | "lkt" | "la" | "lt" | "dsb" | "smj" | "lb" | "bfz" | "ms" | "mt" | "kmj" | "gv" | "mi" | "mr" | "mn" | "cnr-cyrl" | "cnr-latn" | "nap" | "ne" | "niu" | "nog" | "sme" | "nb" | "no" | "oc" | "os" | "ps" | "fa" | "pl" | "pt" | "pa" | "ksh" | "ro" | "rm" | "ru" | "sck" | "sm" | "sa" | "sat" | "sco" | "gd" | "sr" | "sr-Cyrl" | "sr-Latn" | "xsr" | "srx" | "sms" | "sk" | "sl" | "so" | "sma" | "es" | "sw" | "sv" | "tg" | "tt" | "tet" | "thf" | "to" | "tr" | "tk" | "tyv" | "hsb" | "ur" | "ug" | "uz-arab" | "uz-cyrl" | "uz" | "vo" | "wae" | "cy" | "fy" | "yua" | "za" | "zu" | "unk"; // @public export function odata(strings: TemplateStringsArray, ...values: unknown[]): string; @@ -2002,14 +2123,14 @@ export interface OutputFieldMappingEntry { } // @public -export type PathHierarchyTokenizer = BaseLexicalTokenizer & { - odatatype: "#Microsoft.Azure.Search.PathHierarchyTokenizerV2"; +export interface PathHierarchyTokenizer extends BaseLexicalTokenizer { delimiter?: string; - replacement?: string; maxTokenLength?: number; - reverseTokenOrder?: boolean; numberOfTokensToSkip?: number; -}; + odatatype: "#Microsoft.Azure.Search.PathHierarchyTokenizerV2"; + replacement?: string; + reverseTokenOrder?: boolean; +} // @public export interface PatternAnalyzer { @@ -2022,25 +2143,25 @@ export interface PatternAnalyzer { } // @public -export type PatternCaptureTokenFilter = BaseTokenFilter & { +export interface PatternCaptureTokenFilter extends BaseTokenFilter { odatatype: "#Microsoft.Azure.Search.PatternCaptureTokenFilter"; patterns: string[]; preserveOriginal?: boolean; -}; +} // @public -export type PatternReplaceCharFilter = BaseCharFilter & { +export interface PatternReplaceCharFilter extends BaseCharFilter { odatatype: "#Microsoft.Azure.Search.PatternReplaceCharFilter"; pattern: string; replacement: string; -}; +} // @public -export type PatternReplaceTokenFilter = BaseTokenFilter & { +export interface PatternReplaceTokenFilter extends BaseTokenFilter { odatatype: "#Microsoft.Azure.Search.PatternReplaceTokenFilter"; pattern: string; replacement: string; -}; +} // @public export interface PatternTokenizer { @@ -2055,42 +2176,51 @@ export interface PatternTokenizer { export type PhoneticEncoder = "metaphone" | "doubleMetaphone" | "soundex" | "refinedSoundex" | "caverphone1" | "caverphone2" | "cologne" | "nysiis" | "koelnerPhonetik" | "haasePhonetik" | "beiderMorse"; // @public -export type PhoneticTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.PhoneticTokenFilter"; +export interface PhoneticTokenFilter extends BaseTokenFilter { encoder?: PhoneticEncoder; + odatatype: "#Microsoft.Azure.Search.PhoneticTokenFilter"; replaceOriginalTokens?: boolean; -}; +} // @public -export type PIIDetectionSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Text.PIIDetectionSkill"; +export interface PIIDetectionSkill extends BaseSearchIndexerSkill { + categories?: string[]; defaultLanguageCode?: string; - minimumPrecision?: number; - maskingMode?: PIIDetectionSkillMaskingMode; + domain?: string; maskingCharacter?: string; + maskingMode?: PIIDetectionSkillMaskingMode; + minimumPrecision?: number; modelVersion?: string; - piiCategories?: string[]; - domain?: string; -}; + odatatype: "#Microsoft.Skills.Text.PIIDetectionSkill"; +} + +// @public (undocumented) +export type PIIDetectionSkillMaskingMode = "none" | "replace"; // @public -export type PIIDetectionSkillMaskingMode = string; +export type QueryAnswer = ExtractiveQueryAnswer; // @public -export interface PrioritizedFields { - prioritizedContentFields?: SemanticField[]; - prioritizedKeywordsFields?: SemanticField[]; - titleField?: SemanticField; +export interface QueryAnswerResult { + [property: string]: any; + readonly highlights?: string; + readonly key: string; + readonly score: number; + readonly text: string; } // @public -export type QueryAnswerType = string; +export type QueryCaption = ExtractiveQueryCaption; // @public -export type QueryCaptionType = string; +export interface QueryCaptionResult { + [property: string]: any; + readonly highlights?: string; + readonly text?: string; +} // @public -export type QueryDebugMode = "disabled" | "semantic"; +export type QueryDebugMode = string; // @public export type QueryLanguage = string; @@ -2114,14 +2244,8 @@ export type QuerySpellerType = string; // @public export type QueryType = "simple" | "full" | "semantic"; -// @public -export interface RawVectorQuery extends BaseVectorQuery { - kind: "vector"; - vector?: number[]; -} - -// @public -export type RegexFlags = string; +// @public (undocumented) +export type RegexFlags = "CANON_EQ" | "CASE_INSENSITIVE" | "COMMENTS" | "DOTALL" | "LITERAL" | "MULTILINE" | "UNICODE_CASE" | "UNIX_LINES"; // @public export interface ResetDocumentsOptions extends OperationOptions { @@ -2147,6 +2271,17 @@ export interface ResourceCounter { // @public export type RunIndexerOptions = OperationOptions; +// @public +export interface ScalarQuantizationCompressionConfiguration extends BaseVectorSearchCompressionConfiguration { + kind: "scalarQuantization"; + parameters?: ScalarQuantizationParameters; +} + +// @public +export interface ScalarQuantizationParameters { + quantizedDataType?: VectorSearchCompressionTargetDataType; +} + // @public export type ScoringFunction = DistanceScoringFunction | FreshnessScoringFunction | MagnitudeScoringFunction | TagScoringFunction; @@ -2189,6 +2324,7 @@ export class SearchClient implements IndexDocumentsClient readonly indexName: string; mergeDocuments(documents: TModel[], options?: MergeDocumentsOptions): Promise; mergeOrUploadDocuments(documents: TModel[], options?: MergeOrUploadDocumentsOptions): Promise; + readonly pipeline: Pipeline; search>(searchText?: string, options?: SearchOptions): Promise>; readonly serviceVersion: string; suggest = never>(searchText: string, suggesterName: string, options?: SuggestOptions): Promise>; @@ -2216,14 +2352,14 @@ export interface SearchDocumentsResult = (() => T extends TModel ? true : false) extends () => T extends object ? true : false ? readonly string[] : readonly SelectFields[]; // @public -export type SearchFieldDataType = "Edm.String" | "Edm.Int32" | "Edm.Int64" | "Edm.Double" | "Edm.Boolean" | "Edm.DateTimeOffset" | "Edm.GeographyPoint" | "Collection(Edm.String)" | "Collection(Edm.Int32)" | "Collection(Edm.Int64)" | "Collection(Edm.Double)" | "Collection(Edm.Boolean)" | "Collection(Edm.DateTimeOffset)" | "Collection(Edm.GeographyPoint)" | "Collection(Edm.Single)"; +export type SearchFieldDataType = "Edm.String" | "Edm.Int32" | "Edm.Int64" | "Edm.Double" | "Edm.Boolean" | "Edm.DateTimeOffset" | "Edm.GeographyPoint" | "Collection(Edm.String)" | "Collection(Edm.Int32)" | "Collection(Edm.Int64)" | "Collection(Edm.Double)" | "Collection(Edm.Boolean)" | "Collection(Edm.DateTimeOffset)" | "Collection(Edm.GeographyPoint)" | "Collection(Edm.Single)" | "Collection(Edm.Half)" | "Collection(Edm.Int16)" | "Collection(Edm.SByte)"; // @public export interface SearchIndex { @@ -2247,7 +2383,7 @@ export interface SearchIndex { name: string; normalizers?: LexicalNormalizer[]; scoringProfiles?: ScoringProfile[]; - semanticSettings?: SemanticSettings; + semanticSearch?: SemanticSearch; similarity?: SimilarityAlgorithm; suggesters?: SearchSuggester[]; tokenFilters?: TokenFilter[]; @@ -2285,6 +2421,7 @@ export class SearchIndexClient { listIndexesNames(options?: ListIndexesOptions): IndexNameIterator; listSynonymMaps(options?: ListSynonymMapsOptions): Promise>; listSynonymMapsNames(options?: ListSynonymMapsOptions): Promise>; + readonly pipeline: Pipeline; readonly serviceVersion: string; } @@ -2345,6 +2482,7 @@ export class SearchIndexerClient { listIndexersNames(options?: ListIndexersOptions): Promise>; listSkillsets(options?: ListSkillsetsOptions): Promise>; listSkillsetsNames(options?: ListSkillsetsOptions): Promise>; + readonly pipeline: Pipeline; resetDocuments(indexerName: string, options?: ResetDocumentsOptions): Promise; resetIndexer(indexerName: string, options?: ResetIndexerOptions): Promise; resetSkills(skillsetName: string, options?: ResetSkillsOptions): Promise; @@ -2370,9 +2508,9 @@ export interface SearchIndexerDataContainer { export type SearchIndexerDataIdentity = SearchIndexerDataNoneIdentity | SearchIndexerDataUserAssignedIdentity; // @public -export type SearchIndexerDataNoneIdentity = BaseSearchIndexerDataIdentity & { +export interface SearchIndexerDataNoneIdentity extends BaseSearchIndexerDataIdentity { odatatype: "#Microsoft.Azure.Search.DataNoneIdentity"; -}; +} // @public export interface SearchIndexerDataSourceConnection { @@ -2388,14 +2526,14 @@ export interface SearchIndexerDataSourceConnection { type: SearchIndexerDataSourceType; } -// @public -export type SearchIndexerDataSourceType = string; +// @public (undocumented) +export type SearchIndexerDataSourceType = "azuresql" | "cosmosdb" | "azureblob" | "azuretable" | "mysql" | "adlsgen2"; // @public -export type SearchIndexerDataUserAssignedIdentity = BaseSearchIndexerDataIdentity & { +export interface SearchIndexerDataUserAssignedIdentity extends BaseSearchIndexerDataIdentity { odatatype: "#Microsoft.Azure.Search.DataUserAssignedIdentity"; userAssignedIdentity: string; -}; +} // @public export interface SearchIndexerError { @@ -2435,15 +2573,17 @@ export interface SearchIndexerKnowledgeStore { } // @public -export type SearchIndexerKnowledgeStoreBlobProjectionSelector = SearchIndexerKnowledgeStoreProjectionSelector & { +export interface SearchIndexerKnowledgeStoreBlobProjectionSelector extends SearchIndexerKnowledgeStoreProjectionSelector { storageContainer: string; -}; +} // @public -export type SearchIndexerKnowledgeStoreFileProjectionSelector = SearchIndexerKnowledgeStoreBlobProjectionSelector & {}; +export interface SearchIndexerKnowledgeStoreFileProjectionSelector extends SearchIndexerKnowledgeStoreBlobProjectionSelector { +} // @public -export type SearchIndexerKnowledgeStoreObjectProjectionSelector = SearchIndexerKnowledgeStoreBlobProjectionSelector & {}; +export interface SearchIndexerKnowledgeStoreObjectProjectionSelector extends SearchIndexerKnowledgeStoreBlobProjectionSelector { +} // @public export interface SearchIndexerKnowledgeStoreParameters { @@ -2468,9 +2608,9 @@ export interface SearchIndexerKnowledgeStoreProjectionSelector { } // @public -export type SearchIndexerKnowledgeStoreTableProjectionSelector = SearchIndexerKnowledgeStoreProjectionSelector & { +export interface SearchIndexerKnowledgeStoreTableProjectionSelector extends SearchIndexerKnowledgeStoreProjectionSelector { tableName: string; -}; +} // @public (undocumented) export interface SearchIndexerLimits { @@ -2480,7 +2620,7 @@ export interface SearchIndexerLimits { } // @public -export type SearchIndexerSkill = ConditionalSkill | KeyPhraseExtractionSkill | OcrSkill | ImageAnalysisSkill | LanguageDetectionSkill | ShaperSkill | MergeSkill | EntityRecognitionSkill | SentimentSkill | SplitSkill | PIIDetectionSkill | EntityRecognitionSkillV3 | EntityLinkingSkill | SentimentSkillV3 | CustomEntityLookupSkill | TextTranslationSkill | DocumentExtractionSkill | WebApiSkill | AzureMachineLearningSkill | AzureOpenAIEmbeddingSkill; +export type SearchIndexerSkill = AzureMachineLearningSkill | AzureOpenAIEmbeddingSkill | ConditionalSkill | CustomEntityLookupSkill | DocumentExtractionSkill | EntityLinkingSkill | EntityRecognitionSkill | EntityRecognitionSkillV3 | ImageAnalysisSkill | KeyPhraseExtractionSkill | LanguageDetectionSkill | MergeSkill | OcrSkill | PIIDetectionSkill | SentimentSkill | SentimentSkillV3 | ShaperSkill | SplitSkill | TextTranslationSkill | WebApiSkill; // @public export interface SearchIndexerSkillset { @@ -2565,7 +2705,7 @@ export type SearchIndexingBufferedSenderUploadDocumentsOptions = OperationOption export interface SearchIndexStatistics { readonly documentCount: number; readonly storageSize: number; - readonly vectorIndexSize?: number; + readonly vectorIndexSize: number; } // @public @@ -2586,73 +2726,15 @@ UnionToIntersection | Extract : never> & {}; // @public -export interface SearchRequest { - answers?: QueryAnswerType; - captions?: QueryCaptionType; - debugMode?: QueryDebugMode; - facets?: string[]; - filter?: string; - highlightFields?: string; - highlightPostTag?: string; - highlightPreTag?: string; - includeTotalCount?: boolean; - minimumCoverage?: number; - orderBy?: string; - queryLanguage?: QueryLanguage; - queryType?: QueryType; - scoringParameters?: string[]; - scoringProfile?: string; - scoringStatistics?: ScoringStatistics; - searchFields?: string; - searchMode?: SearchMode; - searchText?: string; - select?: string; - semanticConfiguration?: string; - semanticErrorHandlingMode?: SemanticErrorHandlingMode; - semanticFields?: string; - semanticMaxWaitInMilliseconds?: number; - semanticQuery?: string; - sessionId?: string; - skip?: number; - speller?: QuerySpellerType; - top?: number; - vectorFilterMode?: VectorFilterMode; - vectorQueries?: VectorQuery[]; -} +export type SearchRequestOptions = SelectFields> = BaseSearchRequestOptions & SearchRequestQueryTypeOptions; -// @public -export interface SearchRequestOptions = SelectFields> { - answers?: Answers | AnswersOptions; - captions?: Captions; - debugMode?: QueryDebugMode; - facets?: string[]; - filter?: string; - highlightFields?: string; - highlightPostTag?: string; - highlightPreTag?: string; - includeTotalCount?: boolean; - minimumCoverage?: number; - orderBy?: string[]; - queryLanguage?: QueryLanguage; - queryType?: QueryType; - scoringParameters?: string[]; - scoringProfile?: string; - scoringStatistics?: ScoringStatistics; - searchFields?: SearchFieldArray; - searchMode?: SearchMode; - select?: SelectArray; - semanticConfiguration?: string; - semanticErrorHandlingMode?: SemanticErrorHandlingMode; - semanticFields?: string[]; - semanticMaxWaitInMilliseconds?: number; - semanticQuery?: string; - sessionId?: string; - skip?: number; - speller?: Speller; - top?: number; - vectorFilterMode?: VectorFilterMode; - vectorQueries?: VectorQuery[]; -} +// @public (undocumented) +export type SearchRequestQueryTypeOptions = { + queryType: "semantic"; + semanticSearchOptions: SemanticSearchOptions; +} | { + queryType?: "simple" | "full"; +}; // @public export interface SearchResourceEncryptionKey { @@ -2671,7 +2753,7 @@ export type SearchResult]?: string[]; }; - readonly captions?: CaptionResult[]; + readonly captions?: QueryCaptionResult[]; document: NarrowedModel; readonly documentDebugInfo?: DocumentDebugInfo[]; }; @@ -2700,7 +2782,7 @@ export type SelectFields = (() => T extends TModel ? t // @public export interface SemanticConfiguration { name: string; - prioritizedFields: PrioritizedFields; + prioritizedFields: SemanticPrioritizedFields; } // @public @@ -2711,46 +2793,65 @@ export interface SemanticDebugInfo { readonly titleField?: QueryResultDocumentSemanticField; } -// @public -export type SemanticErrorHandlingMode = "partial" | "fail"; +// @public (undocumented) +export type SemanticErrorMode = "partial" | "fail"; + +// @public (undocumented) +export type SemanticErrorReason = "maxWaitExceeded" | "capacityOverloaded" | "transient"; // @public export interface SemanticField { // (undocumented) - name?: string; + name: string; } // @public -export type SemanticFieldState = "used" | "unused" | "partial"; +export type SemanticFieldState = string; // @public -export type SemanticPartialResponseReason = "maxWaitExceeded" | "capacityOverloaded" | "transient"; +export interface SemanticPrioritizedFields { + contentFields?: SemanticField[]; + keywordsFields?: SemanticField[]; + titleField?: SemanticField; +} // @public -export type SemanticPartialResponseType = "baseResults" | "rerankedResults"; +export interface SemanticSearch { + configurations?: SemanticConfiguration[]; + defaultConfigurationName?: string; +} // @public -export interface SemanticSettings { - configurations?: SemanticConfiguration[]; - defaultConfiguration?: string; +export interface SemanticSearchOptions { + answers?: QueryAnswer; + captions?: QueryCaption; + configurationName?: string; + debugMode?: QueryDebugMode; + errorMode?: SemanticErrorMode; + maxWaitInMilliseconds?: number; + semanticFields?: string[]; + semanticQuery?: string; } +// @public (undocumented) +export type SemanticSearchResultsType = "baseResults" | "rerankedResults"; + // @public @deprecated -export type SentimentSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Text.SentimentSkill"; +export interface SentimentSkill extends BaseSearchIndexerSkill { defaultLanguageCode?: SentimentSkillLanguage; -}; + odatatype: "#Microsoft.Skills.Text.SentimentSkill"; +} -// @public -export type SentimentSkillLanguage = string; +// @public (undocumented) +export type SentimentSkillLanguage = "da" | "nl" | "en" | "fi" | "fr" | "de" | "el" | "it" | "no" | "pl" | "pt-PT" | "ru" | "es" | "sv" | "tr"; // @public -export type SentimentSkillV3 = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Text.V3.SentimentSkill"; +export interface SentimentSkillV3 extends BaseSearchIndexerSkill { defaultLanguageCode?: string; includeOpinionMining?: boolean; modelVersion?: string; -}; + odatatype: "#Microsoft.Skills.Text.V3.SentimentSkill"; +} // @public export interface ServiceCounters { @@ -2774,20 +2875,20 @@ export interface ServiceLimits { } // @public -export type ShaperSkill = BaseSearchIndexerSkill & { +export interface ShaperSkill extends BaseSearchIndexerSkill { odatatype: "#Microsoft.Skills.Util.ShaperSkill"; -}; +} // @public -export type ShingleTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.ShingleTokenFilter"; +export interface ShingleTokenFilter extends BaseTokenFilter { + filterToken?: string; maxShingleSize?: number; minShingleSize?: number; + odatatype: "#Microsoft.Azure.Search.ShingleTokenFilter"; outputUnigrams?: boolean; outputUnigramsIfNoShingles?: boolean; tokenSeparator?: string; - filterToken?: string; -}; +} // @public export interface Similarity { @@ -2810,81 +2911,80 @@ export interface SimpleField { searchable?: boolean; searchAnalyzerName?: LexicalAnalyzerName; sortable?: boolean; + stored?: boolean; synonymMapNames?: string[]; type: SearchFieldDataType; vectorSearchDimensions?: number; - vectorSearchProfile?: string; + vectorSearchProfileName?: string; } // @public -export type SnowballTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.SnowballTokenFilter"; +export interface SnowballTokenFilter extends BaseTokenFilter { language: SnowballTokenFilterLanguage; -}; + odatatype: "#Microsoft.Azure.Search.SnowballTokenFilter"; +} // @public export type SnowballTokenFilterLanguage = "armenian" | "basque" | "catalan" | "danish" | "dutch" | "english" | "finnish" | "french" | "german" | "german2" | "hungarian" | "italian" | "kp" | "lovins" | "norwegian" | "porter" | "portuguese" | "romanian" | "russian" | "spanish" | "swedish" | "turkish"; // @public -export type SoftDeleteColumnDeletionDetectionPolicy = BaseDataDeletionDetectionPolicy & { +export interface SoftDeleteColumnDeletionDetectionPolicy extends BaseDataDeletionDetectionPolicy { odatatype: "#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy"; softDeleteColumnName?: string; softDeleteMarkerValue?: string; -}; +} // @public export type Speller = string; // @public -export type SplitSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Text.SplitSkill"; +export interface SplitSkill extends BaseSearchIndexerSkill { defaultLanguageCode?: SplitSkillLanguage; - textSplitMode?: TextSplitMode; maxPageLength?: number; - pageOverlapLength?: number; - maximumPagesToTake?: number; -}; + odatatype: "#Microsoft.Skills.Text.SplitSkill"; + textSplitMode?: TextSplitMode; +} -// @public -export type SplitSkillLanguage = string; +// @public (undocumented) +export type SplitSkillLanguage = "am" | "bs" | "cs" | "da" | "de" | "en" | "es" | "et" | "fi" | "fr" | "he" | "hi" | "hr" | "hu" | "id" | "is" | "it" | "ja" | "ko" | "lv" | "nb" | "nl" | "pl" | "pt" | "pt-br" | "ru" | "sk" | "sl" | "sr" | "sv" | "tr" | "ur" | "zh"; // @public -export type SqlIntegratedChangeTrackingPolicy = BaseDataChangeDetectionPolicy & { +export interface SqlIntegratedChangeTrackingPolicy extends BaseDataChangeDetectionPolicy { odatatype: "#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy"; -}; +} // @public -export type StemmerOverrideTokenFilter = BaseTokenFilter & { +export interface StemmerOverrideTokenFilter extends BaseTokenFilter { odatatype: "#Microsoft.Azure.Search.StemmerOverrideTokenFilter"; rules: string[]; -}; +} // @public -export type StemmerTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.StemmerTokenFilter"; +export interface StemmerTokenFilter extends BaseTokenFilter { language: StemmerTokenFilterLanguage; -}; + odatatype: "#Microsoft.Azure.Search.StemmerTokenFilter"; +} // @public export type StemmerTokenFilterLanguage = "arabic" | "armenian" | "basque" | "brazilian" | "bulgarian" | "catalan" | "czech" | "danish" | "dutch" | "dutchKp" | "english" | "lightEnglish" | "minimalEnglish" | "possessiveEnglish" | "porter2" | "lovins" | "finnish" | "lightFinnish" | "french" | "lightFrench" | "minimalFrench" | "galician" | "minimalGalician" | "german" | "german2" | "lightGerman" | "minimalGerman" | "greek" | "hindi" | "hungarian" | "lightHungarian" | "indonesian" | "irish" | "italian" | "lightItalian" | "sorani" | "latvian" | "norwegian" | "lightNorwegian" | "minimalNorwegian" | "lightNynorsk" | "minimalNynorsk" | "portuguese" | "lightPortuguese" | "minimalPortuguese" | "portugueseRslp" | "romanian" | "russian" | "lightRussian" | "spanish" | "lightSpanish" | "swedish" | "lightSwedish" | "turkish"; // @public -export type StopAnalyzer = BaseLexicalAnalyzer & { +export interface StopAnalyzer extends BaseLexicalAnalyzer { odatatype: "#Microsoft.Azure.Search.StopAnalyzer"; stopwords?: string[]; -}; +} // @public export type StopwordsList = "arabic" | "armenian" | "basque" | "brazilian" | "bulgarian" | "catalan" | "czech" | "danish" | "dutch" | "english" | "finnish" | "french" | "galician" | "german" | "greek" | "hindi" | "hungarian" | "indonesian" | "irish" | "italian" | "latvian" | "norwegian" | "persian" | "portuguese" | "romanian" | "russian" | "sorani" | "spanish" | "swedish" | "thai" | "turkish"; // @public -export type StopwordsTokenFilter = BaseTokenFilter & { +export interface StopwordsTokenFilter extends BaseTokenFilter { + ignoreCase?: boolean; odatatype: "#Microsoft.Azure.Search.StopwordsTokenFilter"; + removeTrailingStopWords?: boolean; stopwords?: string[]; stopwordsList?: StopwordsList; - ignoreCase?: boolean; - removeTrailingStopWords?: boolean; -}; +} // @public export interface SuggestDocumentsResult = SelectFields> { @@ -2926,37 +3026,37 @@ export interface SynonymMap { } // @public -export type SynonymTokenFilter = BaseTokenFilter & { +export interface SynonymTokenFilter extends BaseTokenFilter { + expand?: boolean; + ignoreCase?: boolean; odatatype: "#Microsoft.Azure.Search.SynonymTokenFilter"; synonyms: string[]; - ignoreCase?: boolean; - expand?: boolean; -}; +} // @public -export type TagScoringFunction = BaseScoringFunction & { - type: "tag"; +export interface TagScoringFunction extends BaseScoringFunction { parameters: TagScoringParameters; -}; + type: "tag"; +} // @public export interface TagScoringParameters { tagsParameter: string; } -// @public -export type TextSplitMode = string; +// @public (undocumented) +export type TextSplitMode = "pages" | "sentences"; // @public -export type TextTranslationSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Text.TranslationSkill"; - defaultToLanguageCode: TextTranslationSkillLanguage; +export interface TextTranslationSkill extends BaseSearchIndexerSkill { defaultFromLanguageCode?: TextTranslationSkillLanguage; + defaultToLanguageCode: TextTranslationSkillLanguage; + odatatype: "#Microsoft.Skills.Text.TranslationSkill"; suggestedFrom?: TextTranslationSkillLanguage; -}; +} -// @public -export type TextTranslationSkillLanguage = string; +// @public (undocumented) +export type TextTranslationSkillLanguage = "af" | "ar" | "bn" | "bs" | "bg" | "yue" | "ca" | "zh-Hans" | "zh-Hant" | "hr" | "cs" | "da" | "nl" | "en" | "et" | "fj" | "fil" | "fi" | "fr" | "de" | "el" | "ht" | "he" | "hi" | "mww" | "hu" | "is" | "id" | "it" | "ja" | "sw" | "tlh" | "tlh-Latn" | "tlh-Piqd" | "ko" | "lv" | "lt" | "mg" | "ms" | "mt" | "nb" | "fa" | "pl" | "pt" | "pt-br" | "pt-PT" | "otq" | "ro" | "ru" | "sm" | "sr-Cyrl" | "sr-Latn" | "sk" | "sl" | "es" | "sv" | "ty" | "ta" | "te" | "th" | "to" | "tr" | "uk" | "ur" | "vi" | "cy" | "yua" | "ga" | "kn" | "mi" | "ml" | "pa"; // @public export interface TextWeights { @@ -2975,30 +3075,30 @@ export type TokenFilter = AsciiFoldingTokenFilter | CjkBigramTokenFilter | Commo export type TokenFilterName = string; // @public -export type TruncateTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.TruncateTokenFilter"; +export interface TruncateTokenFilter extends BaseTokenFilter { length?: number; -}; + odatatype: "#Microsoft.Azure.Search.TruncateTokenFilter"; +} // @public -export type UaxUrlEmailTokenizer = BaseLexicalTokenizer & { - odatatype: "#Microsoft.Azure.Search.UaxUrlEmailTokenizer"; +export interface UaxUrlEmailTokenizer extends BaseLexicalTokenizer { maxTokenLength?: number; -}; + odatatype: "#Microsoft.Azure.Search.UaxUrlEmailTokenizer"; +} // @public (undocumented) export type UnionToIntersection = (Union extends unknown ? (_: Union) => unknown : never) extends (_: infer I) => unknown ? I : never; // @public -export type UniqueTokenFilter = BaseTokenFilter & { +export interface UniqueTokenFilter extends BaseTokenFilter { odatatype: "#Microsoft.Azure.Search.UniqueTokenFilter"; onlyOnSamePosition?: boolean; -}; +} // @public export type UploadDocumentsOptions = IndexDocumentsOptions; -// @public +// @public (undocumented) export type VectorFilterMode = "postFilter" | "preFilter"; // @public @@ -3008,7 +3108,13 @@ export interface VectorizableTextQuery extends BaseVector } // @public -export type VectorQuery = RawVectorQuery | VectorizableTextQuery; +export interface VectorizedQuery extends BaseVectorQuery { + kind: "vector"; + vector: number[]; +} + +// @public +export type VectorQuery = VectorizedQuery | VectorizableTextQuery; // @public (undocumented) export type VectorQueryKind = "vector" | "text"; @@ -3016,22 +3122,39 @@ export type VectorQueryKind = "vector" | "text"; // @public export interface VectorSearch { algorithms?: VectorSearchAlgorithmConfiguration[]; + compressions?: VectorSearchCompressionConfiguration[]; profiles?: VectorSearchProfile[]; vectorizers?: VectorSearchVectorizer[]; } // @public -export type VectorSearchAlgorithmConfiguration = HnswVectorSearchAlgorithmConfiguration | ExhaustiveKnnVectorSearchAlgorithmConfiguration; +export type VectorSearchAlgorithmConfiguration = HnswAlgorithmConfiguration | ExhaustiveKnnAlgorithmConfiguration; // @public (undocumented) export type VectorSearchAlgorithmKind = "hnsw" | "exhaustiveKnn"; -// @public +// @public (undocumented) export type VectorSearchAlgorithmMetric = "cosine" | "euclidean" | "dotProduct"; +// @public +export type VectorSearchCompressionConfiguration = ScalarQuantizationCompressionConfiguration; + +// @public +export type VectorSearchCompressionKind = string; + +// @public +export type VectorSearchCompressionTargetDataType = string; + +// @public +export interface VectorSearchOptions { + filterMode?: VectorFilterMode; + queries: VectorQuery[]; +} + // @public export interface VectorSearchProfile { - algorithm: string; + algorithmConfigurationName: string; + compressionConfigurationName?: string; name: string; vectorizer?: string; } @@ -3042,8 +3165,8 @@ export type VectorSearchVectorizer = AzureOpenAIVectorizer | CustomVectorizer; // @public (undocumented) export type VectorSearchVectorizerKind = "azureOpenAI" | "customWebApi"; -// @public -export type VisualFeature = string; +// @public (undocumented) +export type VisualFeature = "adult" | "brands" | "categories" | "description" | "faces" | "objects" | "tags"; // @public export interface WebApiSkill extends BaseSearchIndexerSkill { @@ -3061,19 +3184,19 @@ export interface WebApiSkill extends BaseSearchIndexerSkill { } // @public -export type WordDelimiterTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.WordDelimiterTokenFilter"; - generateWordParts?: boolean; - generateNumberParts?: boolean; - catenateWords?: boolean; - catenateNumbers?: boolean; +export interface WordDelimiterTokenFilter extends BaseTokenFilter { catenateAll?: boolean; - splitOnCaseChange?: boolean; + catenateNumbers?: boolean; + catenateWords?: boolean; + generateNumberParts?: boolean; + generateWordParts?: boolean; + odatatype: "#Microsoft.Azure.Search.WordDelimiterTokenFilter"; preserveOriginal?: boolean; + protectedWords?: string[]; + splitOnCaseChange?: boolean; splitOnNumerics?: boolean; stemEnglishPossessive?: boolean; - protectedWords?: string[]; -}; +} // (No @packageDocumentation comment for this package) diff --git a/sdk/search/search-documents/sample.env b/sdk/search/search-documents/sample.env index 7ed5a179d66e..86f0916725d2 100644 --- a/sdk/search/search-documents/sample.env +++ b/sdk/search/search-documents/sample.env @@ -8,13 +8,13 @@ SEARCH_API_ADMIN_KEY_ALT= ENDPOINT= # The endpoint for the OpenAI service. -OPENAI_ENDPOINT= +AZURE_OPENAI_ENDPOINT= # The key for the OpenAI service. -OPENAI_KEY= +AZURE_OPENAI_KEY= # The name of the OpenAI deployment you'd like your tests to use. -OPENAI_DEPLOYMENT_NAME= +AZURE_OPENAI_DEPLOYMENT_NAME= # Our tests assume that TEST_MODE is "playback" by default. You can # change it to "record" to generate new recordings, or "live" to bypass the recorder entirely. diff --git a/sdk/search/search-documents/samples-dev/bufferedSenderAutoFlushSize.ts b/sdk/search/search-documents/samples-dev/bufferedSenderAutoFlushSize.ts index 0141cc035720..d873c2d86bf2 100644 --- a/sdk/search/search-documents/samples-dev/bufferedSenderAutoFlushSize.ts +++ b/sdk/search/search-documents/samples-dev/bufferedSenderAutoFlushSize.ts @@ -6,14 +6,14 @@ */ import { - SearchIndexingBufferedSender, AzureKeyCredential, - SearchClient, GeographyPoint, + SearchClient, SearchIndexClient, + SearchIndexingBufferedSender, } from "@azure/search-documents"; -import { createIndex, documentKeyRetriever, WAIT_TIME, delay } from "./setup"; import { Hotel } from "./interfaces"; +import { createIndex, delay, documentKeyRetriever, WAIT_TIME } from "./setup"; import * as dotenv from "dotenv"; dotenv.config(); @@ -58,7 +58,7 @@ function getDocumentsArray(size: number): Hotel[] { return array; } -async function main() { +async function main(): Promise { if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); return; @@ -105,9 +105,9 @@ async function main() { }); const documents: Hotel[] = getDocumentsArray(1001); - bufferedClient.uploadDocuments(documents); + await bufferedClient.uploadDocuments(documents); - await WAIT_TIME; + await delay(WAIT_TIME); let count = await searchClient.getDocumentsCount(); while (count !== documents.length) { @@ -122,7 +122,6 @@ async function main() { } finally { await indexClient.deleteIndex(TEST_INDEX_NAME); } - await delay(WAIT_TIME); } main(); diff --git a/sdk/search/search-documents/samples-dev/bufferedSenderAutoFlushTimer.ts b/sdk/search/search-documents/samples-dev/bufferedSenderAutoFlushTimer.ts index db58ae2cd0fb..9ac74a28c295 100644 --- a/sdk/search/search-documents/samples-dev/bufferedSenderAutoFlushTimer.ts +++ b/sdk/search/search-documents/samples-dev/bufferedSenderAutoFlushTimer.ts @@ -6,15 +6,15 @@ */ import { - SearchIndexingBufferedSender, AzureKeyCredential, - SearchClient, + DEFAULT_FLUSH_WINDOW, GeographyPoint, + SearchClient, SearchIndexClient, - DEFAULT_FLUSH_WINDOW, + SearchIndexingBufferedSender, } from "@azure/search-documents"; -import { createIndex, documentKeyRetriever, WAIT_TIME, delay } from "./setup"; import { Hotel } from "./interfaces"; +import { createIndex, delay, documentKeyRetriever, WAIT_TIME } from "./setup"; import * as dotenv from "dotenv"; dotenv.config(); @@ -30,7 +30,7 @@ const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const TEST_INDEX_NAME = "example-index-sample-5"; -export async function main() { +export async function main(): Promise { if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); return; @@ -76,7 +76,7 @@ export async function main() { console.log(response); }); - bufferedClient.uploadDocuments([ + await bufferedClient.uploadDocuments([ { hotelId: "1", description: @@ -112,7 +112,6 @@ export async function main() { } finally { await indexClient.deleteIndex(TEST_INDEX_NAME); } - await delay(WAIT_TIME); } main(); diff --git a/sdk/search/search-documents/samples-dev/bufferedSenderManualFlush.ts b/sdk/search/search-documents/samples-dev/bufferedSenderManualFlush.ts index 30cdea51244b..889cd5856fe7 100644 --- a/sdk/search/search-documents/samples-dev/bufferedSenderManualFlush.ts +++ b/sdk/search/search-documents/samples-dev/bufferedSenderManualFlush.ts @@ -6,14 +6,14 @@ */ import { - SearchIndexingBufferedSender, AzureKeyCredential, - SearchClient, GeographyPoint, + SearchClient, SearchIndexClient, + SearchIndexingBufferedSender, } from "@azure/search-documents"; -import { createIndex, documentKeyRetriever, WAIT_TIME, delay } from "./setup"; import { Hotel } from "./interfaces"; +import { createIndex, delay, documentKeyRetriever, WAIT_TIME } from "./setup"; import * as dotenv from "dotenv"; dotenv.config(); @@ -27,7 +27,7 @@ const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const TEST_INDEX_NAME = "example-index-sample-6"; -export async function main() { +export async function main(): Promise { if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); return; diff --git a/sdk/search/search-documents/samples-dev/dataSourceConnectionOperations.ts b/sdk/search/search-documents/samples-dev/dataSourceConnectionOperations.ts index e534e770a04a..1ca1ce4d5048 100644 --- a/sdk/search/search-documents/samples-dev/dataSourceConnectionOperations.ts +++ b/sdk/search/search-documents/samples-dev/dataSourceConnectionOperations.ts @@ -6,8 +6,8 @@ */ import { - SearchIndexerClient, AzureKeyCredential, + SearchIndexerClient, SearchIndexerDataSourceConnection, } from "@azure/search-documents"; @@ -17,12 +17,12 @@ dotenv.config(); const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const connectionString = process.env.CONNECTION_STRING || ""; -const dataSourceConnectionName = "example-ds-connection-sample-1"; +const TEST_DATA_SOURCE_CONNECTION_NAME = "example-ds-connection-sample-1"; async function createDataSourceConnection( dataSourceConnectionName: string, client: SearchIndexerClient, -) { +): Promise { console.log(`Creating DS Connection Operation`); const dataSourceConnection: SearchIndexerDataSourceConnection = { name: dataSourceConnectionName, @@ -39,7 +39,7 @@ async function createDataSourceConnection( async function getAndUpdateDataSourceConnection( dataSourceConnectionName: string, client: SearchIndexerClient, -) { +): Promise { console.log(`Get And Update DS Connection Operation`); const ds: SearchIndexerDataSourceConnection = await client.getDataSourceConnection(dataSourceConnectionName); @@ -48,14 +48,14 @@ async function getAndUpdateDataSourceConnection( await client.createOrUpdateDataSourceConnection(ds); } -async function listDataSourceConnections(client: SearchIndexerClient) { +async function listDataSourceConnections(client: SearchIndexerClient): Promise { console.log(`List DS Connection Operation`); const listOfDataSourceConnections: Array = await client.listDataSourceConnections(); console.log(`List of Data Source Connections`); console.log(`*******************************`); - for (let ds of listOfDataSourceConnections) { + for (const ds of listOfDataSourceConnections) { console.log(`Name: ${ds.name}`); console.log(`Description: ${ds.description}`); console.log(`Connection String: ${ds.connectionString}`); @@ -72,12 +72,12 @@ async function listDataSourceConnections(client: SearchIndexerClient) { async function deleteDataSourceConnection( dataSourceConnectionName: string, client: SearchIndexerClient, -) { +): Promise { console.log(`Deleting DS Connection Operation`); await client.deleteDataSourceConnection(dataSourceConnectionName); } -async function main() { +async function main(): Promise { console.log(`Running DS Connection Operations Sample....`); if (!endpoint || !apiKey || !connectionString) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); @@ -85,11 +85,11 @@ async function main() { } const client = new SearchIndexerClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createDataSourceConnection(dataSourceConnectionName, client); - await getAndUpdateDataSourceConnection(dataSourceConnectionName, client); + await createDataSourceConnection(TEST_DATA_SOURCE_CONNECTION_NAME, client); + await getAndUpdateDataSourceConnection(TEST_DATA_SOURCE_CONNECTION_NAME, client); await listDataSourceConnections(client); } finally { - await deleteDataSourceConnection(dataSourceConnectionName, client); + await deleteDataSourceConnection(TEST_DATA_SOURCE_CONNECTION_NAME, client); } } diff --git a/sdk/search/search-documents/samples-dev/indexOperations.ts b/sdk/search/search-documents/samples-dev/indexOperations.ts index 92d47b8680a2..7774897f3fbc 100644 --- a/sdk/search/search-documents/samples-dev/indexOperations.ts +++ b/sdk/search/search-documents/samples-dev/indexOperations.ts @@ -6,9 +6,9 @@ */ import { - SearchIndexClient, AzureKeyCredential, SearchIndex, + SearchIndexClient, SearchIndexStatistics, } from "@azure/search-documents"; @@ -17,9 +17,9 @@ dotenv.config(); const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; -const indexName = "example-index-sample-1"; +const TEST_INDEX_NAME = "example-index-sample-1"; -async function createIndex(indexName: string, client: SearchIndexClient) { +async function createIndex(indexName: string, client: SearchIndexClient): Promise { console.log(`Creating Index Operation`); const index: SearchIndex = { name: indexName, @@ -62,7 +62,7 @@ async function createIndex(indexName: string, client: SearchIndexClient) { await client.createIndex(index); } -async function getAndUpdateIndex(indexName: string, client: SearchIndexClient) { +async function getAndUpdateIndex(indexName: string, client: SearchIndexClient): Promise { console.log(`Get And Update Index Operation`); const index: SearchIndex = await client.getIndex(indexName); index.fields.push({ @@ -73,14 +73,14 @@ async function getAndUpdateIndex(indexName: string, client: SearchIndexClient) { await client.createOrUpdateIndex(index); } -async function getIndexStatistics(indexName: string, client: SearchIndexClient) { +async function getIndexStatistics(indexName: string, client: SearchIndexClient): Promise { console.log(`Get Index Statistics Operation`); const statistics: SearchIndexStatistics = await client.getIndexStatistics(indexName); console.log(`Document Count: ${statistics.documentCount}`); console.log(`Storage Size: ${statistics.storageSize}`); } -async function getServiceStatistics(client: SearchIndexClient) { +async function getServiceStatistics(client: SearchIndexClient): Promise { console.log(`Get Service Statistics Operation`); const { counters, limits } = await client.getServiceStatistics(); console.log(`Counters`); @@ -116,7 +116,7 @@ async function getServiceStatistics(client: SearchIndexClient) { ); } -async function listIndexes(client: SearchIndexClient) { +async function listIndexes(client: SearchIndexClient): Promise { console.log(`List Indexes Operation`); const result = await client.listIndexes(); let listOfIndexes = await result.next(); @@ -132,12 +132,12 @@ async function listIndexes(client: SearchIndexClient) { } } -async function deleteIndex(indexName: string, client: SearchIndexClient) { +async function deleteIndex(indexName: string, client: SearchIndexClient): Promise { console.log(`Deleting Index Operation`); await client.deleteIndex(indexName); } -async function main() { +async function main(): Promise { console.log(`Running Index Operations Sample....`); if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); @@ -145,13 +145,13 @@ async function main() { } const client = new SearchIndexClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createIndex(indexName, client); - await getAndUpdateIndex(indexName, client); - await getIndexStatistics(indexName, client); + await createIndex(TEST_INDEX_NAME, client); + await getAndUpdateIndex(TEST_INDEX_NAME, client); + await getIndexStatistics(TEST_INDEX_NAME, client); await getServiceStatistics(client); await listIndexes(client); } finally { - await deleteIndex(indexName, client); + await deleteIndex(TEST_INDEX_NAME, client); } } diff --git a/sdk/search/search-documents/samples-dev/indexerOperations.ts b/sdk/search/search-documents/samples-dev/indexerOperations.ts index 2ab6b5b43696..5cb8ddd8e62d 100644 --- a/sdk/search/search-documents/samples-dev/indexerOperations.ts +++ b/sdk/search/search-documents/samples-dev/indexerOperations.ts @@ -6,9 +6,9 @@ */ import { - SearchIndexerClient, AzureKeyCredential, SearchIndexer, + SearchIndexerClient, SearchIndexerStatus, } from "@azure/search-documents"; @@ -20,9 +20,9 @@ const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const dataSourceName = process.env.DATA_SOURCE_NAME || ""; const targetIndexName = process.env.TARGET_INDEX_NAME || ""; -const indexerName = "example-indexer-sample-1"; +const TEST_INDEXER_NAME = "example-indexer-sample-1"; -async function createIndexer(indexerName: string, client: SearchIndexerClient) { +async function createIndexer(indexerName: string, client: SearchIndexerClient): Promise { console.log(`Creating Indexer Operation`); const indexer: SearchIndexer = { name: indexerName, @@ -34,7 +34,10 @@ async function createIndexer(indexerName: string, client: SearchIndexerClient) { await client.createIndexer(indexer); } -async function getAndUpdateIndexer(indexerName: string, client: SearchIndexerClient) { +async function getAndUpdateIndexer( + indexerName: string, + client: SearchIndexerClient, +): Promise { console.log(`Get And Update Indexer Operation`); const indexer: SearchIndexer = await client.getIndexer(indexerName); indexer.isDisabled = true; @@ -43,7 +46,7 @@ async function getAndUpdateIndexer(indexerName: string, client: SearchIndexerCli await client.createOrUpdateIndexer(indexer); } -async function getIndexerStatus(indexerName: string, client: SearchIndexerClient) { +async function getIndexerStatus(indexerName: string, client: SearchIndexerClient): Promise { console.log(`Get Indexer Status Operation`); const indexerStatus: SearchIndexerStatus = await client.getIndexerStatus(indexerName); console.log(`Status: ${indexerStatus.status}`); @@ -56,7 +59,7 @@ async function getIndexerStatus(indexerName: string, client: SearchIndexerClient console.log(`MaxRunTime: ${indexerStatus.limits.maxRunTime}`); } -async function listIndexers(client: SearchIndexerClient) { +async function listIndexers(client: SearchIndexerClient): Promise { console.log(`List Indexers Operation`); const listOfIndexers: Array = await client.listIndexers(); @@ -82,22 +85,22 @@ async function listIndexers(client: SearchIndexerClient) { } } -async function resetIndexer(indexerName: string, client: SearchIndexerClient) { +async function resetIndexer(indexerName: string, client: SearchIndexerClient): Promise { console.log(`Reset Indexer Operation`); await client.resetIndexer(indexerName); } -async function deleteIndexer(indexerName: string, client: SearchIndexerClient) { +async function deleteIndexer(indexerName: string, client: SearchIndexerClient): Promise { console.log(`Deleting Indexer Operation`); await client.deleteIndexer(indexerName); } -async function runIndexer(indexerName: string, client: SearchIndexerClient) { +async function runIndexer(indexerName: string, client: SearchIndexerClient): Promise { console.log(`Run Indexer Operation`); await client.runIndexer(indexerName); } -async function main() { +async function main(): Promise { console.log(`Running Indexer Operations Sample....`); if (!endpoint || !apiKey || !dataSourceName || !targetIndexName) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); @@ -105,14 +108,14 @@ async function main() { } const client = new SearchIndexerClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createIndexer(indexerName, client); - await getAndUpdateIndexer(indexerName, client); - await getIndexerStatus(indexerName, client); + await createIndexer(TEST_INDEXER_NAME, client); + await getAndUpdateIndexer(TEST_INDEXER_NAME, client); + await getIndexerStatus(TEST_INDEXER_NAME, client); await listIndexers(client); - await resetIndexer(indexerName, client); - await runIndexer(indexerName, client); + await resetIndexer(TEST_INDEXER_NAME, client); + await runIndexer(TEST_INDEXER_NAME, client); } finally { - await deleteIndexer(indexerName, client); + await deleteIndexer(TEST_INDEXER_NAME, client); } } diff --git a/sdk/search/search-documents/samples-dev/interfaces.ts b/sdk/search/search-documents/samples-dev/interfaces.ts index 9a75788ca0a2..494148e11c3c 100644 --- a/sdk/search/search-documents/samples-dev/interfaces.ts +++ b/sdk/search/search-documents/samples-dev/interfaces.ts @@ -14,11 +14,11 @@ export interface Hotel { hotelId?: string; hotelName?: string | null; description?: string | null; - descriptionVectorEn?: number[] | null; - descriptionVectorFr?: number[] | null; + descriptionVectorEn?: number[]; + descriptionVectorFr?: number[]; descriptionFr?: string | null; category?: string | null; - tags?: string[] | null; + tags?: string[]; parkingIncluded?: boolean | null; smokingAllowed?: boolean | null; lastRenovationDate?: Date | null; @@ -40,5 +40,5 @@ export interface Hotel { sleepsCount?: number | null; smokingAllowed?: boolean | null; tags?: string[] | null; - }> | null; + }>; } diff --git a/sdk/search/search-documents/samples-dev/searchClientOperations.ts b/sdk/search/search-documents/samples-dev/searchClientOperations.ts index df00cd6b8bc4..ced0541bb0fc 100644 --- a/sdk/search/search-documents/samples-dev/searchClientOperations.ts +++ b/sdk/search/search-documents/samples-dev/searchClientOperations.ts @@ -7,13 +7,13 @@ import { AzureKeyCredential, - SearchClient, GeographyPoint, + SearchClient, SearchIndexClient, SelectFields, } from "@azure/search-documents"; -import { createIndex, WAIT_TIME, delay } from "./setup"; import { Hotel } from "./interfaces"; +import { createIndex, delay, WAIT_TIME } from "./setup"; import * as dotenv from "dotenv"; dotenv.config(); @@ -25,7 +25,7 @@ const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const TEST_INDEX_NAME = "example-index-sample-2"; -async function main() { +async function main(): Promise { if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); return; diff --git a/sdk/search/search-documents/samples-dev/setup.ts b/sdk/search/search-documents/samples-dev/setup.ts index 0cdafdf01a85..eb6322bcb704 100644 --- a/sdk/search/search-documents/samples-dev/setup.ts +++ b/sdk/search/search-documents/samples-dev/setup.ts @@ -6,9 +6,9 @@ * @azsdk-util */ -import { SearchIndexClient, SearchIndex, KnownAnalyzerNames } from "@azure/search-documents"; -import { Hotel } from "./interfaces"; +import { KnownAnalyzerNames, SearchIndex, SearchIndexClient } from "@azure/search-documents"; import { env } from "process"; +import { Hotel } from "./interfaces"; export const WAIT_TIME = 4000; @@ -55,14 +55,14 @@ export async function createIndex(client: SearchIndexClient, name: string): Prom name: "descriptionVectorEn", searchable: true, vectorSearchDimensions: 1536, - vectorSearchProfile: "vector-search-profile", + vectorSearchProfileName: "vector-search-profile", }, { type: "Collection(Edm.Single)", name: "descriptionVectorFr", searchable: true, vectorSearchDimensions: 1536, - vectorSearchProfile: "vector-search-profile", + vectorSearchProfileName: "vector-search-profile", }, { type: "Edm.String", @@ -255,16 +255,16 @@ export async function createIndex(client: SearchIndexClient, name: string): Prom name: "vector-search-vectorizer", kind: "azureOpenAI", azureOpenAIParameters: { - resourceUri: env.OPENAI_ENDPOINT, - apiKey: env.OPENAI_KEY, - deploymentId: env.OPENAI_DEPLOYMENT_NAME, + resourceUri: env.AZURE_OPENAI_ENDPOINT, + apiKey: env.AZURE_OPENAI_KEY, + deploymentId: env.AZURE_OPENAI_DEPLOYMENT_NAME, }, }, ], profiles: [ { name: "vector-search-profile", - algorithm: "vector-search-algorithm", + algorithmConfigurationName: "vector-search-algorithm", vectorizer: "vector-search-vectorizer", }, ], diff --git a/sdk/search/search-documents/samples-dev/skillSetOperations.ts b/sdk/search/search-documents/samples-dev/skillSetOperations.ts index c8fc4162aa9b..e9c5fcee5511 100644 --- a/sdk/search/search-documents/samples-dev/skillSetOperations.ts +++ b/sdk/search/search-documents/samples-dev/skillSetOperations.ts @@ -6,8 +6,8 @@ */ import { - SearchIndexerClient, AzureKeyCredential, + SearchIndexerClient, SearchIndexerSkillset, } from "@azure/search-documents"; @@ -17,9 +17,9 @@ dotenv.config(); const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; -const skillsetName = "example-skillset-sample-1"; +const TEST_SKILLSET_NAME = "example-skillset-sample-1"; -async function createSkillset(skillsetName: string, client: SearchIndexerClient) { +async function createSkillset(skillsetName: string, client: SearchIndexerClient): Promise { console.log(`Creating Skillset Operation`); const skillset: SearchIndexerSkillset = { name: skillsetName, @@ -57,7 +57,10 @@ async function createSkillset(skillsetName: string, client: SearchIndexerClient) await client.createSkillset(skillset); } -async function getAndUpdateSkillset(skillsetName: string, client: SearchIndexerClient) { +async function getAndUpdateSkillset( + skillsetName: string, + client: SearchIndexerClient, +): Promise { console.log(`Get And Update Skillset Operation`); const skillset: SearchIndexerSkillset = await client.getSkillset(skillsetName); @@ -75,26 +78,26 @@ async function getAndUpdateSkillset(skillsetName: string, client: SearchIndexerC await client.createOrUpdateSkillset(skillset); } -async function listSkillsets(client: SearchIndexerClient) { +async function listSkillsets(client: SearchIndexerClient): Promise { console.log(`List Skillset Operation`); const listOfSkillsets: Array = await client.listSkillsets(); console.log(`\tList of Skillsets`); console.log(`\t******************`); - for (let skillset of listOfSkillsets) { + for (const skillset of listOfSkillsets) { console.log(`Name: ${skillset.name}`); console.log(`Description: ${skillset.description}`); console.log(`Skills`); console.log(`******`); - for (let skill of skillset.skills) { + for (const skill of skillset.skills) { console.log(`ODataType: ${skill.odatatype}`); console.log(`Inputs`); - for (let input of skill.inputs) { + for (const input of skill.inputs) { console.log(`\tName: ${input.name}`); console.log(`\tSource: ${input.source}`); } console.log(`Outputs`); - for (let output of skill.outputs) { + for (const output of skill.outputs) { console.log(`\tName: ${output.name}`); console.log(`\tTarget Name: ${output.targetName}`); } @@ -102,12 +105,12 @@ async function listSkillsets(client: SearchIndexerClient) { } } -async function deleteSkillset(skillsetName: string, client: SearchIndexerClient) { +async function deleteSkillset(skillsetName: string, client: SearchIndexerClient): Promise { console.log(`Deleting Skillset Operation`); await client.deleteSkillset(skillsetName); } -async function main() { +async function main(): Promise { console.log(`Running Skillset Operations Sample....`); if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); @@ -115,11 +118,11 @@ async function main() { } const client = new SearchIndexerClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createSkillset(skillsetName, client); - await getAndUpdateSkillset(skillsetName, client); + await createSkillset(TEST_SKILLSET_NAME, client); + await getAndUpdateSkillset(TEST_SKILLSET_NAME, client); await listSkillsets(client); } finally { - await deleteSkillset(skillsetName, client); + await deleteSkillset(TEST_SKILLSET_NAME, client); } } diff --git a/sdk/search/search-documents/samples-dev/stickySession.ts b/sdk/search/search-documents/samples-dev/stickySession.ts new file mode 100644 index 000000000000..8f91d1a0fa97 --- /dev/null +++ b/sdk/search/search-documents/samples-dev/stickySession.ts @@ -0,0 +1,84 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +/** + * @summary Demonstrates user sticky sessions, a way to reduce inconsistent behavior by targeting a + * single replica. + */ + +import { + AzureKeyCredential, + odata, + SearchClient, + SearchIndexClient, +} from "@azure/search-documents"; +import { Hotel } from "./interfaces"; +import { createIndex, delay, WAIT_TIME } from "./setup"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +/** + * If you're querying a replicated index, Azure AI Search may target any replica with your queries. + * As these replicas may not be in a consistent state, the service may appear to have inconsistent + * states between distinct queries. To avoid this, you can use a sticky session. A sticky session + * is used to indicate to the Azure AI Search service that you'd like all requests with the same + * `sessionId` to be directed to the same replica. The service will then make a best effort to do + * so. + * + * Please see the + * {@link https://learn.microsoft.com/en-us/azure/search/index-similarity-and-scoring#scoring-statistics-and-sticky-sessions | documentation} + * for more information. + */ +const endpoint = process.env.ENDPOINT || ""; +const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; +const TEST_INDEX_NAME = "example-index-sample-3"; + +async function main(): Promise { + if (!endpoint || !apiKey) { + console.error( + "Be sure to set valid values for `endpoint` and `apiKey` with proper authorization.", + ); + return; + } + + const credential = new AzureKeyCredential(apiKey); + const indexClient: SearchIndexClient = new SearchIndexClient(endpoint, credential); + const searchClient: SearchClient = indexClient.getSearchClient(TEST_INDEX_NAME); + + // The session id is defined by the user. + const sessionId = "session1"; + + try { + await createIndex(indexClient, TEST_INDEX_NAME); + await delay(WAIT_TIME); + + // The service will make a best effort attempt to direct these queries to the same replica. As + // this overrides load balancing, excessive use of the same `sessionId` may result in + // performance degradation. Be sure to use a distinct `sessionId` for each sticky session. + const ratingQueries = [2, 4]; + for (const rating of ratingQueries) { + const response = await searchClient.search("*", { + filter: odata`rating ge ${rating}`, + sessionId, + }); + + const hotelNames = []; + for await (const result of response.results) { + const hotelName = result.document.hotelName; + if (typeof hotelName === "string") { + hotelNames.push(hotelName); + } + } + + if (hotelNames.length) { + console.log(`Hotels with at least a rating of ${rating}:`); + hotelNames.forEach(console.log); + } + } + } finally { + await indexClient.deleteIndex(TEST_INDEX_NAME); + } +} + +main(); diff --git a/sdk/search/search-documents/samples-dev/synonymMapOperations.ts b/sdk/search/search-documents/samples-dev/synonymMapOperations.ts index 56bcf98f75c5..b7fbfb174a3c 100644 --- a/sdk/search/search-documents/samples-dev/synonymMapOperations.ts +++ b/sdk/search/search-documents/samples-dev/synonymMapOperations.ts @@ -5,16 +5,16 @@ * @summary Demonstrates the SynonymMap Operations. */ -import { SearchIndexClient, AzureKeyCredential, SynonymMap } from "@azure/search-documents"; +import { AzureKeyCredential, SearchIndexClient, SynonymMap } from "@azure/search-documents"; import * as dotenv from "dotenv"; dotenv.config(); const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; -const synonymMapName = "example-synonymmap-sample-1"; +const TEST_SYNONYM_MAP_NAME = "example-synonymmap-sample-1"; -async function createSynonymMap(synonymMapName: string, client: SearchIndexClient) { +async function createSynonymMap(synonymMapName: string, client: SearchIndexClient): Promise { console.log(`Creating SynonymMap Operation`); const sm: SynonymMap = { name: synonymMapName, @@ -23,7 +23,10 @@ async function createSynonymMap(synonymMapName: string, client: SearchIndexClien await client.createSynonymMap(sm); } -async function getAndUpdateSynonymMap(synonymMapName: string, client: SearchIndexClient) { +async function getAndUpdateSynonymMap( + synonymMapName: string, + client: SearchIndexClient, +): Promise { console.log(`Get And Update SynonymMap Operation`); const sm: SynonymMap = await client.getSynonymMap(synonymMapName); console.log(`Update synonyms Synonym Map my-synonymmap`); @@ -31,27 +34,27 @@ async function getAndUpdateSynonymMap(synonymMapName: string, client: SearchInde await client.createOrUpdateSynonymMap(sm); } -async function listSynonymMaps(client: SearchIndexClient) { +async function listSynonymMaps(client: SearchIndexClient): Promise { console.log(`List SynonymMaps Operation`); const listOfSynonymMaps: Array = await client.listSynonymMaps(); console.log(`List of SynonymMaps`); console.log(`*******************`); - for (let sm of listOfSynonymMaps) { + for (const sm of listOfSynonymMaps) { console.log(`Name: ${sm.name}`); console.log(`Synonyms`); - for (let synonym of sm.synonyms) { + for (const synonym of sm.synonyms) { console.log(synonym); } } } -async function deleteSynonymMap(synonymMapName: string, client: SearchIndexClient) { +async function deleteSynonymMap(synonymMapName: string, client: SearchIndexClient): Promise { console.log(`Deleting SynonymMap Operation`); await client.deleteSynonymMap(synonymMapName); } -async function main() { +async function main(): Promise { console.log(`Running Index Operations Sample....`); if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); @@ -59,11 +62,11 @@ async function main() { } const client = new SearchIndexClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createSynonymMap(synonymMapName, client); - await getAndUpdateSynonymMap(synonymMapName, client); + await createSynonymMap(TEST_SYNONYM_MAP_NAME, client); + await getAndUpdateSynonymMap(TEST_SYNONYM_MAP_NAME, client); await listSynonymMaps(client); } finally { - await deleteSynonymMap(synonymMapName, client); + await deleteSynonymMap(TEST_SYNONYM_MAP_NAME, client); } } diff --git a/sdk/search/search-documents/samples-dev/vectorSearch.ts b/sdk/search/search-documents/samples-dev/vectorSearch.ts index 1fe322bde927..c08d6831381d 100644 --- a/sdk/search/search-documents/samples-dev/vectorSearch.ts +++ b/sdk/search/search-documents/samples-dev/vectorSearch.ts @@ -7,12 +7,12 @@ import { AzureKeyCredential, - SearchClient, GeographyPoint, + SearchClient, SearchIndexClient, } from "@azure/search-documents"; -import { createIndex, WAIT_TIME, delay } from "./setup"; import { Hotel } from "./interfaces"; +import { createIndex, delay, WAIT_TIME } from "./setup"; import * as dotenv from "dotenv"; import { fancyStayEnVector, fancyStayFrVector, luxuryQueryVector } from "./vectors"; @@ -25,7 +25,7 @@ const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const TEST_INDEX_NAME = "example-index-sample-7"; -async function main() { +async function main(): Promise { if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); return; @@ -81,30 +81,32 @@ async function main() { await delay(WAIT_TIME); const searchResults = await searchClient.search("*", { - vectorQueries: [ - { - kind: "vector", - fields: ["descriptionVectorEn"], - kNearestNeighborsCount: 3, - // An embedding of the query "What are the most luxurious hotels?" - vector: luxuryQueryVector, - }, - // Multi-vector search is supported - { - kind: "vector", - fields: ["descriptionVectorFr"], - kNearestNeighborsCount: 3, - vector: luxuryQueryVector, - }, - // The index can be configured with a vectorizer to generate text embeddings - // from a text query - { - kind: "text", - fields: ["descriptionVectorFr"], - kNearestNeighborsCount: 3, - text: "What are the most luxurious hotels?", - }, - ], + vectorSearchOptions: { + queries: [ + { + kind: "vector", + fields: ["descriptionVectorEn"], + kNearestNeighborsCount: 3, + // An embedding of the query "What are the most luxurious hotels?" + vector: luxuryQueryVector, + }, + // Multi-vector search is supported + { + kind: "vector", + fields: ["descriptionVectorFr"], + kNearestNeighborsCount: 3, + vector: luxuryQueryVector, + }, + // The index can be configured with a vectorizer to generate text embeddings + // from a text query + { + kind: "text", + fields: ["descriptionVectorFr"], + kNearestNeighborsCount: 3, + text: "What are the most luxurious hotels?", + }, + ], + }, }); for await (const result of searchResults.results) { diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/README.md b/sdk/search/search-documents/samples/v12-beta/javascript/README.md index 167160ba32eb..0b8fcfa0bb45 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/README.md +++ b/sdk/search/search-documents/samples/v12-beta/javascript/README.md @@ -13,18 +13,19 @@ urlFragment: search-documents-javascript-beta These sample programs show how to use the JavaScript client libraries for Azure Search Documents in some common scenarios. -| **File Name** | **Description** | -| ------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| [bufferedSenderAutoFlushSize.js][bufferedsenderautoflushsize] | Demonstrates the SearchIndexingBufferedSender with Autoflush based on size. | -| [bufferedSenderAutoFlushTimer.js][bufferedsenderautoflushtimer] | Demonstrates the SearchIndexingBufferedSender with Autoflush based on timer. | -| [bufferedSenderManualFlush.js][bufferedsendermanualflush] | Demonstrates the SearchIndexingBufferedSender with Manual Flush. | -| [dataSourceConnectionOperations.js][datasourceconnectionoperations] | Demonstrates the DataSource Connection Operations. | -| [indexOperations.js][indexoperations] | Demonstrates the Index Operations. | -| [indexerOperations.js][indexeroperations] | Demonstrates the Indexer Operations. | -| [searchClientOperations.js][searchclientoperations] | Demonstrates the SearchClient. | -| [skillSetOperations.js][skillsetoperations] | Demonstrates the Skillset Operations. | -| [synonymMapOperations.js][synonymmapoperations] | Demonstrates the SynonymMap Operations. | -| [vectorSearch.js][vectorsearch] | Demonstrates vector search | +| **File Name** | **Description** | +| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| [bufferedSenderAutoFlushSize.js][bufferedsenderautoflushsize] | Demonstrates the SearchIndexingBufferedSender with Autoflush based on size. | +| [bufferedSenderAutoFlushTimer.js][bufferedsenderautoflushtimer] | Demonstrates the SearchIndexingBufferedSender with Autoflush based on timer. | +| [bufferedSenderManualFlush.js][bufferedsendermanualflush] | Demonstrates the SearchIndexingBufferedSender with Manual Flush. | +| [dataSourceConnectionOperations.js][datasourceconnectionoperations] | Demonstrates the DataSource Connection Operations. | +| [indexOperations.js][indexoperations] | Demonstrates the Index Operations. | +| [indexerOperations.js][indexeroperations] | Demonstrates the Indexer Operations. | +| [searchClientOperations.js][searchclientoperations] | Demonstrates the SearchClient. | +| [skillSetOperations.js][skillsetoperations] | Demonstrates the Skillset Operations. | +| [stickySession.js][stickysession] | Demonstrates user sticky sessions, a way to reduce inconsistent behavior by targeting a single replica. | +| [synonymMapOperations.js][synonymmapoperations] | Demonstrates the SynonymMap Operations. | +| [vectorSearch.js][vectorsearch] | Demonstrates vector search | ## Prerequisites @@ -74,6 +75,7 @@ Take a look at our [API Documentation][apiref] for more information about the AP [indexeroperations]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/samples/v12-beta/javascript/indexerOperations.js [searchclientoperations]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/samples/v12-beta/javascript/searchClientOperations.js [skillsetoperations]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/samples/v12-beta/javascript/skillSetOperations.js +[stickysession]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/samples/v12-beta/javascript/stickySession.js [synonymmapoperations]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/samples/v12-beta/javascript/synonymMapOperations.js [vectorsearch]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/samples/v12-beta/javascript/vectorSearch.js [apiref]: https://docs.microsoft.com/javascript/api/@azure/search-documents diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/bufferedSenderAutoFlushSize.js b/sdk/search/search-documents/samples/v12-beta/javascript/bufferedSenderAutoFlushSize.js index c3a7a3975c5a..cc9418f9c822 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/bufferedSenderAutoFlushSize.js +++ b/sdk/search/search-documents/samples/v12-beta/javascript/bufferedSenderAutoFlushSize.js @@ -6,13 +6,13 @@ */ const { - SearchIndexingBufferedSender, AzureKeyCredential, - SearchClient, GeographyPoint, + SearchClient, SearchIndexClient, + SearchIndexingBufferedSender, } = require("@azure/search-documents"); -const { createIndex, documentKeyRetriever, WAIT_TIME, delay } = require("./setup"); +const { createIndex, delay, documentKeyRetriever, WAIT_TIME } = require("./setup"); require("dotenv").config(); @@ -95,9 +95,9 @@ async function main() { }); const documents = getDocumentsArray(1001); - bufferedClient.uploadDocuments(documents); + await bufferedClient.uploadDocuments(documents); - await WAIT_TIME; + await delay(WAIT_TIME); let count = await searchClient.getDocumentsCount(); while (count !== documents.length) { @@ -112,7 +112,6 @@ async function main() { } finally { await indexClient.deleteIndex(TEST_INDEX_NAME); } - await delay(WAIT_TIME); } main(); diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/bufferedSenderAutoFlushTimer.js b/sdk/search/search-documents/samples/v12-beta/javascript/bufferedSenderAutoFlushTimer.js index 215ec97af8e8..c0009fc9b021 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/bufferedSenderAutoFlushTimer.js +++ b/sdk/search/search-documents/samples/v12-beta/javascript/bufferedSenderAutoFlushTimer.js @@ -6,14 +6,14 @@ */ const { - SearchIndexingBufferedSender, AzureKeyCredential, - SearchClient, + DEFAULT_FLUSH_WINDOW, GeographyPoint, + SearchClient, SearchIndexClient, - DEFAULT_FLUSH_WINDOW, + SearchIndexingBufferedSender, } = require("@azure/search-documents"); -const { createIndex, documentKeyRetriever, WAIT_TIME, delay } = require("./setup"); +const { createIndex, delay, documentKeyRetriever, WAIT_TIME } = require("./setup"); require("dotenv").config(); @@ -66,7 +66,7 @@ async function main() { console.log(response); }); - bufferedClient.uploadDocuments([ + await bufferedClient.uploadDocuments([ { hotelId: "1", description: @@ -102,7 +102,6 @@ async function main() { } finally { await indexClient.deleteIndex(TEST_INDEX_NAME); } - await delay(WAIT_TIME); } main(); diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/bufferedSenderManualFlush.js b/sdk/search/search-documents/samples/v12-beta/javascript/bufferedSenderManualFlush.js index bdbb2d8ad5d1..974e5a073373 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/bufferedSenderManualFlush.js +++ b/sdk/search/search-documents/samples/v12-beta/javascript/bufferedSenderManualFlush.js @@ -6,13 +6,13 @@ */ const { - SearchIndexingBufferedSender, AzureKeyCredential, - SearchClient, GeographyPoint, + SearchClient, SearchIndexClient, + SearchIndexingBufferedSender, } = require("@azure/search-documents"); -const { createIndex, documentKeyRetriever, WAIT_TIME, delay } = require("./setup"); +const { createIndex, delay, documentKeyRetriever, WAIT_TIME } = require("./setup"); require("dotenv").config(); diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/dataSourceConnectionOperations.js b/sdk/search/search-documents/samples/v12-beta/javascript/dataSourceConnectionOperations.js index 7a6cbda2e070..5b7e8b336b7b 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/dataSourceConnectionOperations.js +++ b/sdk/search/search-documents/samples/v12-beta/javascript/dataSourceConnectionOperations.js @@ -5,14 +5,14 @@ * @summary Demonstrates the DataSource Connection Operations. */ -const { SearchIndexerClient, AzureKeyCredential } = require("@azure/search-documents"); +const { AzureKeyCredential, SearchIndexerClient } = require("@azure/search-documents"); require("dotenv").config(); const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const connectionString = process.env.CONNECTION_STRING || ""; -const dataSourceConnectionName = "example-ds-connection-sample-1"; +const TEST_DATA_SOURCE_CONNECTION_NAME = "example-ds-connection-sample-1"; async function createDataSourceConnection(dataSourceConnectionName, client) { console.log(`Creating DS Connection Operation`); @@ -42,7 +42,7 @@ async function listDataSourceConnections(client) { console.log(`List of Data Source Connections`); console.log(`*******************************`); - for (let ds of listOfDataSourceConnections) { + for (const ds of listOfDataSourceConnections) { console.log(`Name: ${ds.name}`); console.log(`Description: ${ds.description}`); console.log(`Connection String: ${ds.connectionString}`); @@ -69,11 +69,11 @@ async function main() { } const client = new SearchIndexerClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createDataSourceConnection(dataSourceConnectionName, client); - await getAndUpdateDataSourceConnection(dataSourceConnectionName, client); + await createDataSourceConnection(TEST_DATA_SOURCE_CONNECTION_NAME, client); + await getAndUpdateDataSourceConnection(TEST_DATA_SOURCE_CONNECTION_NAME, client); await listDataSourceConnections(client); } finally { - await deleteDataSourceConnection(dataSourceConnectionName, client); + await deleteDataSourceConnection(TEST_DATA_SOURCE_CONNECTION_NAME, client); } } diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/indexOperations.js b/sdk/search/search-documents/samples/v12-beta/javascript/indexOperations.js index 612da181eca3..c1a5239c3ba9 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/indexOperations.js +++ b/sdk/search/search-documents/samples/v12-beta/javascript/indexOperations.js @@ -5,13 +5,13 @@ * @summary Demonstrates the Index Operations. */ -const { SearchIndexClient, AzureKeyCredential } = require("@azure/search-documents"); +const { AzureKeyCredential, SearchIndexClient } = require("@azure/search-documents"); require("dotenv").config(); const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; -const indexName = "example-index-sample-1"; +const TEST_INDEX_NAME = "example-index-sample-1"; async function createIndex(indexName, client) { console.log(`Creating Index Operation`); @@ -103,10 +103,10 @@ async function getServiceStatistics(client) { console.log(`\tMax Fields Per Index: ${limits.maxFieldsPerIndex}`); console.log(`\tMax Field Nesting Depth Per Index: ${limits.maxFieldNestingDepthPerIndex}`); console.log( - `\tMax Complex Collection Fields Per Index: ${limits.maxComplexCollectionFieldsPerIndex}` + `\tMax Complex Collection Fields Per Index: ${limits.maxComplexCollectionFieldsPerIndex}`, ); console.log( - `\tMax Complex Objects In Collections Per Document: ${limits.maxComplexObjectsInCollectionsPerDocument}` + `\tMax Complex Objects In Collections Per Document: ${limits.maxComplexObjectsInCollectionsPerDocument}`, ); } @@ -139,13 +139,13 @@ async function main() { } const client = new SearchIndexClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createIndex(indexName, client); - await getAndUpdateIndex(indexName, client); - await getIndexStatistics(indexName, client); + await createIndex(TEST_INDEX_NAME, client); + await getAndUpdateIndex(TEST_INDEX_NAME, client); + await getIndexStatistics(TEST_INDEX_NAME, client); await getServiceStatistics(client); await listIndexes(client); } finally { - await deleteIndex(indexName, client); + await deleteIndex(TEST_INDEX_NAME, client); } } diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/indexerOperations.js b/sdk/search/search-documents/samples/v12-beta/javascript/indexerOperations.js index 52dffff86848..59b549220540 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/indexerOperations.js +++ b/sdk/search/search-documents/samples/v12-beta/javascript/indexerOperations.js @@ -5,7 +5,7 @@ * @summary Demonstrates the Indexer Operations. */ -const { SearchIndexerClient, AzureKeyCredential } = require("@azure/search-documents"); +const { AzureKeyCredential, SearchIndexerClient } = require("@azure/search-documents"); require("dotenv").config(); @@ -14,7 +14,7 @@ const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const dataSourceName = process.env.DATA_SOURCE_NAME || ""; const targetIndexName = process.env.TARGET_INDEX_NAME || ""; -const indexerName = "example-indexer-sample-1"; +const TEST_INDEXER_NAME = "example-indexer-sample-1"; async function createIndexer(indexerName, client) { console.log(`Creating Indexer Operation`); @@ -44,7 +44,7 @@ async function getIndexerStatus(indexerName, client) { console.log(`Limits`); console.log(`******`); console.log( - `MaxDocumentContentCharactersToExtract: ${indexerStatus.limits.maxDocumentContentCharactersToExtract}` + `MaxDocumentContentCharactersToExtract: ${indexerStatus.limits.maxDocumentContentCharactersToExtract}`, ); console.log(`MaxDocumentExtractionSize: ${indexerStatus.limits.maxDocumentExtractionSize}`); console.log(`MaxRunTime: ${indexerStatus.limits.maxRunTime}`); @@ -99,14 +99,14 @@ async function main() { } const client = new SearchIndexerClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createIndexer(indexerName, client); - await getAndUpdateIndexer(indexerName, client); - await getIndexerStatus(indexerName, client); + await createIndexer(TEST_INDEXER_NAME, client); + await getAndUpdateIndexer(TEST_INDEXER_NAME, client); + await getIndexerStatus(TEST_INDEXER_NAME, client); await listIndexers(client); - await resetIndexer(indexerName, client); - await runIndexer(indexerName, client); + await resetIndexer(TEST_INDEXER_NAME, client); + await runIndexer(TEST_INDEXER_NAME, client); } finally { - await deleteIndexer(indexerName, client); + await deleteIndexer(TEST_INDEXER_NAME, client); } } diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/sample.env b/sdk/search/search-documents/samples/v12-beta/javascript/sample.env index 13954cec21bd..86f0916725d2 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/sample.env +++ b/sdk/search/search-documents/samples/v12-beta/javascript/sample.env @@ -11,10 +11,10 @@ ENDPOINT= AZURE_OPENAI_ENDPOINT= # The key for the OpenAI service. -OPENAI_KEY= +AZURE_OPENAI_KEY= # The name of the OpenAI deployment you'd like your tests to use. -OPENAI_DEPLOYMENT_NAME= +AZURE_OPENAI_DEPLOYMENT_NAME= # Our tests assume that TEST_MODE is "playback" by default. You can # change it to "record" to generate new recordings, or "live" to bypass the recorder entirely. diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/searchClientOperations.js b/sdk/search/search-documents/samples/v12-beta/javascript/searchClientOperations.js index d212bcbe400b..0745f6807406 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/searchClientOperations.js +++ b/sdk/search/search-documents/samples/v12-beta/javascript/searchClientOperations.js @@ -7,11 +7,11 @@ const { AzureKeyCredential, - SearchClient, GeographyPoint, + SearchClient, SearchIndexClient, } = require("@azure/search-documents"); -const { createIndex, WAIT_TIME, delay } = require("./setup"); +const { createIndex, delay, WAIT_TIME } = require("./setup"); require("dotenv").config(); diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/setup.js b/sdk/search/search-documents/samples/v12-beta/javascript/setup.js index 52540e166a54..450c2f392ba1 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/setup.js +++ b/sdk/search/search-documents/samples/v12-beta/javascript/setup.js @@ -53,14 +53,14 @@ async function createIndex(client, name) { name: "descriptionVectorEn", searchable: true, vectorSearchDimensions: 1536, - vectorSearchProfile: "vector-search-profile", + vectorSearchProfileName: "vector-search-profile", }, { type: "Collection(Edm.Single)", name: "descriptionVectorFr", searchable: true, vectorSearchDimensions: 1536, - vectorSearchProfile: "vector-search-profile", + vectorSearchProfileName: "vector-search-profile", }, { type: "Edm.String", @@ -254,15 +254,15 @@ async function createIndex(client, name) { kind: "azureOpenAI", azureOpenAIParameters: { resourceUri: env.AZURE_OPENAI_ENDPOINT, - apiKey: env.OPENAI_KEY, - deploymentId: env.OPENAI_DEPLOYMENT_NAME, + apiKey: env.AZURE_OPENAI_KEY, + deploymentId: env.AZURE_OPENAI_DEPLOYMENT_NAME, }, }, ], profiles: [ { name: "vector-search-profile", - algorithm: "vector-search-algorithm", + algorithmConfigurationName: "vector-search-algorithm", vectorizer: "vector-search-vectorizer", }, ], diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/skillSetOperations.js b/sdk/search/search-documents/samples/v12-beta/javascript/skillSetOperations.js index 1111b5817434..fc8edb586a66 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/skillSetOperations.js +++ b/sdk/search/search-documents/samples/v12-beta/javascript/skillSetOperations.js @@ -5,14 +5,14 @@ * @summary Demonstrates the Skillset Operations. */ -const { SearchIndexerClient, AzureKeyCredential } = require("@azure/search-documents"); +const { AzureKeyCredential, SearchIndexerClient } = require("@azure/search-documents"); require("dotenv").config(); const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; -const skillsetName = "example-skillset-sample-1"; +const TEST_SKILLSET_NAME = "example-skillset-sample-1"; async function createSkillset(skillsetName, client) { console.log(`Creating Skillset Operation`); @@ -76,20 +76,20 @@ async function listSkillsets(client) { console.log(`\tList of Skillsets`); console.log(`\t******************`); - for (let skillset of listOfSkillsets) { + for (const skillset of listOfSkillsets) { console.log(`Name: ${skillset.name}`); console.log(`Description: ${skillset.description}`); console.log(`Skills`); console.log(`******`); - for (let skill of skillset.skills) { + for (const skill of skillset.skills) { console.log(`ODataType: ${skill.odatatype}`); console.log(`Inputs`); - for (let input of skill.inputs) { + for (const input of skill.inputs) { console.log(`\tName: ${input.name}`); console.log(`\tSource: ${input.source}`); } console.log(`Outputs`); - for (let output of skill.outputs) { + for (const output of skill.outputs) { console.log(`\tName: ${output.name}`); console.log(`\tTarget Name: ${output.targetName}`); } @@ -110,11 +110,11 @@ async function main() { } const client = new SearchIndexerClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createSkillset(skillsetName, client); - await getAndUpdateSkillset(skillsetName, client); + await createSkillset(TEST_SKILLSET_NAME, client); + await getAndUpdateSkillset(TEST_SKILLSET_NAME, client); await listSkillsets(client); } finally { - await deleteSkillset(skillsetName, client); + await deleteSkillset(TEST_SKILLSET_NAME, client); } } diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/stickySession.js b/sdk/search/search-documents/samples/v12-beta/javascript/stickySession.js new file mode 100644 index 000000000000..9f4955fbf4d0 --- /dev/null +++ b/sdk/search/search-documents/samples/v12-beta/javascript/stickySession.js @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +/** + * @summary Demonstrates user sticky sessions, a way to reduce inconsistent behavior by targeting a + * single replica. + */ + +const { AzureKeyCredential, odata, SearchIndexClient } = require("@azure/search-documents"); +const { createIndex, delay, WAIT_TIME } = require("./setup"); + +require("dotenv").config(); + +/** + * If you're querying a replicated index, Azure AI Search may target any replica with your queries. + * As these replicas may not be in a consistent state, the service may appear to have inconsistent + * states between distinct queries. To avoid this, you can use a sticky session. A sticky session + * is used to indicate to the Azure AI Search service that you'd like all requests with the same + * `sessionId` to be directed to the same replica. The service will then make a best effort to do + * so. + * + * Please see the + * {@link https://learn.microsoft.com/en-us/azure/search/index-similarity-and-scoring#scoring-statistics-and-sticky-sessions | documentation} + * for more information. + */ +const endpoint = process.env.ENDPOINT || ""; +const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; +const TEST_INDEX_NAME = "example-index-sample-3"; + +async function main() { + if (!endpoint || !apiKey) { + console.error( + "Be sure to set valid values for `endpoint` and `apiKey` with proper authorization.", + ); + return; + } + + const credential = new AzureKeyCredential(apiKey); + const indexClient = new SearchIndexClient(endpoint, credential); + const searchClient = indexClient.getSearchClient(TEST_INDEX_NAME); + + // The session id is defined by the user. + const sessionId = "session1"; + + try { + await createIndex(indexClient, TEST_INDEX_NAME); + await delay(WAIT_TIME); + + // The service will make a best effort attempt to direct these queries to the same replica. As + // this overrides load balancing, excessive use of the same `sessionId` may result in + // performance degradation. Be sure to use a distinct `sessionId` for each sticky session. + const ratingQueries = [2, 4]; + for (const rating of ratingQueries) { + const response = await searchClient.search("*", { + filter: odata`rating ge ${rating}`, + sessionId, + }); + + const hotelNames = []; + for await (const result of response.results) { + const hotelName = result.document.hotelName; + if (typeof hotelName === "string") { + hotelNames.push(hotelName); + } + } + + if (hotelNames.length) { + console.log(`Hotels with at least a rating of ${rating}:`); + hotelNames.forEach(console.log); + } + } + } finally { + await indexClient.deleteIndex(TEST_INDEX_NAME); + } +} + +main(); diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/synonymMapOperations.js b/sdk/search/search-documents/samples/v12-beta/javascript/synonymMapOperations.js index 65860f6d7b86..272bf7d39057 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/synonymMapOperations.js +++ b/sdk/search/search-documents/samples/v12-beta/javascript/synonymMapOperations.js @@ -5,13 +5,13 @@ * @summary Demonstrates the SynonymMap Operations. */ -const { SearchIndexClient, AzureKeyCredential } = require("@azure/search-documents"); +const { AzureKeyCredential, SearchIndexClient } = require("@azure/search-documents"); require("dotenv").config(); const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; -const synonymMapName = "example-synonymmap-sample-1"; +const TEST_SYNONYM_MAP_NAME = "example-synonymmap-sample-1"; async function createSynonymMap(synonymMapName, client) { console.log(`Creating SynonymMap Operation`); @@ -36,10 +36,10 @@ async function listSynonymMaps(client) { console.log(`List of SynonymMaps`); console.log(`*******************`); - for (let sm of listOfSynonymMaps) { + for (const sm of listOfSynonymMaps) { console.log(`Name: ${sm.name}`); console.log(`Synonyms`); - for (let synonym of sm.synonyms) { + for (const synonym of sm.synonyms) { console.log(synonym); } } @@ -58,11 +58,11 @@ async function main() { } const client = new SearchIndexClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createSynonymMap(synonymMapName, client); - await getAndUpdateSynonymMap(synonymMapName, client); + await createSynonymMap(TEST_SYNONYM_MAP_NAME, client); + await getAndUpdateSynonymMap(TEST_SYNONYM_MAP_NAME, client); await listSynonymMaps(client); } finally { - await deleteSynonymMap(synonymMapName, client); + await deleteSynonymMap(TEST_SYNONYM_MAP_NAME, client); } } diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/vectorSearch.js b/sdk/search/search-documents/samples/v12-beta/javascript/vectorSearch.js index 79c1fe2fb086..c7a42109b136 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/vectorSearch.js +++ b/sdk/search/search-documents/samples/v12-beta/javascript/vectorSearch.js @@ -7,11 +7,11 @@ const { AzureKeyCredential, - SearchClient, GeographyPoint, + SearchClient, SearchIndexClient, } = require("@azure/search-documents"); -const { createIndex, WAIT_TIME, delay } = require("./setup"); +const { createIndex, delay, WAIT_TIME } = require("./setup"); const dotenv = require("dotenv"); const { fancyStayEnVector, fancyStayFrVector, luxuryQueryVector } = require("./vectors"); @@ -76,30 +76,32 @@ async function main() { await delay(WAIT_TIME); const searchResults = await searchClient.search("*", { - vectorQueries: [ - { - kind: "vector", - fields: ["descriptionVectorEn"], - kNearestNeighborsCount: 3, - // An embedding of the query "What are the most luxurious hotels?" - vector: luxuryQueryVector, - }, - // Multi-vector search is supported - { - kind: "vector", - fields: ["descriptionVectorFr"], - kNearestNeighborsCount: 3, - vector: luxuryQueryVector, - }, - // The index can be configured with a vectorizer to generate text embeddings - // from a text query - { - kind: "text", - fields: ["descriptionVectorFr"], - kNearestNeighborsCount: 3, - text: "What are the most luxurious hotels?", - }, - ], + vectorSearchOptions: { + queries: [ + { + kind: "vector", + fields: ["descriptionVectorEn"], + kNearestNeighborsCount: 3, + // An embedding of the query "What are the most luxurious hotels?" + vector: luxuryQueryVector, + }, + // Multi-vector search is supported + { + kind: "vector", + fields: ["descriptionVectorFr"], + kNearestNeighborsCount: 3, + vector: luxuryQueryVector, + }, + // The index can be configured with a vectorizer to generate text embeddings + // from a text query + { + kind: "text", + fields: ["descriptionVectorFr"], + kNearestNeighborsCount: 3, + text: "What are the most luxurious hotels?", + }, + ], + }, }); for await (const result of searchResults.results) { diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/README.md b/sdk/search/search-documents/samples/v12-beta/typescript/README.md index da0592d5a261..9bb632d3e01c 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/README.md +++ b/sdk/search/search-documents/samples/v12-beta/typescript/README.md @@ -13,18 +13,19 @@ urlFragment: search-documents-typescript-beta These sample programs show how to use the TypeScript client libraries for Azure Search Documents in some common scenarios. -| **File Name** | **Description** | -| ------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| [bufferedSenderAutoFlushSize.ts][bufferedsenderautoflushsize] | Demonstrates the SearchIndexingBufferedSender with Autoflush based on size. | -| [bufferedSenderAutoFlushTimer.ts][bufferedsenderautoflushtimer] | Demonstrates the SearchIndexingBufferedSender with Autoflush based on timer. | -| [bufferedSenderManualFlush.ts][bufferedsendermanualflush] | Demonstrates the SearchIndexingBufferedSender with Manual Flush. | -| [dataSourceConnectionOperations.ts][datasourceconnectionoperations] | Demonstrates the DataSource Connection Operations. | -| [indexOperations.ts][indexoperations] | Demonstrates the Index Operations. | -| [indexerOperations.ts][indexeroperations] | Demonstrates the Indexer Operations. | -| [searchClientOperations.ts][searchclientoperations] | Demonstrates the SearchClient. | -| [skillSetOperations.ts][skillsetoperations] | Demonstrates the Skillset Operations. | -| [synonymMapOperations.ts][synonymmapoperations] | Demonstrates the SynonymMap Operations. | -| [vectorSearch.ts][vectorsearch] | Demonstrates vector search | +| **File Name** | **Description** | +| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| [bufferedSenderAutoFlushSize.ts][bufferedsenderautoflushsize] | Demonstrates the SearchIndexingBufferedSender with Autoflush based on size. | +| [bufferedSenderAutoFlushTimer.ts][bufferedsenderautoflushtimer] | Demonstrates the SearchIndexingBufferedSender with Autoflush based on timer. | +| [bufferedSenderManualFlush.ts][bufferedsendermanualflush] | Demonstrates the SearchIndexingBufferedSender with Manual Flush. | +| [dataSourceConnectionOperations.ts][datasourceconnectionoperations] | Demonstrates the DataSource Connection Operations. | +| [indexOperations.ts][indexoperations] | Demonstrates the Index Operations. | +| [indexerOperations.ts][indexeroperations] | Demonstrates the Indexer Operations. | +| [searchClientOperations.ts][searchclientoperations] | Demonstrates the SearchClient. | +| [skillSetOperations.ts][skillsetoperations] | Demonstrates the Skillset Operations. | +| [stickySession.ts][stickysession] | Demonstrates user sticky sessions, a way to reduce inconsistent behavior by targeting a single replica. | +| [synonymMapOperations.ts][synonymmapoperations] | Demonstrates the SynonymMap Operations. | +| [vectorSearch.ts][vectorsearch] | Demonstrates vector search | ## Prerequisites @@ -86,6 +87,7 @@ Take a look at our [API Documentation][apiref] for more information about the AP [indexeroperations]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/samples/v12-beta/typescript/src/indexerOperations.ts [searchclientoperations]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/samples/v12-beta/typescript/src/searchClientOperations.ts [skillsetoperations]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/samples/v12-beta/typescript/src/skillSetOperations.ts +[stickysession]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/samples/v12-beta/typescript/src/stickySession.ts [synonymmapoperations]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/samples/v12-beta/typescript/src/synonymMapOperations.ts [vectorsearch]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/samples/v12-beta/typescript/src/vectorSearch.ts [apiref]: https://docs.microsoft.com/javascript/api/@azure/search-documents diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/sample.env b/sdk/search/search-documents/samples/v12-beta/typescript/sample.env index 13954cec21bd..86f0916725d2 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/sample.env +++ b/sdk/search/search-documents/samples/v12-beta/typescript/sample.env @@ -11,10 +11,10 @@ ENDPOINT= AZURE_OPENAI_ENDPOINT= # The key for the OpenAI service. -OPENAI_KEY= +AZURE_OPENAI_KEY= # The name of the OpenAI deployment you'd like your tests to use. -OPENAI_DEPLOYMENT_NAME= +AZURE_OPENAI_DEPLOYMENT_NAME= # Our tests assume that TEST_MODE is "playback" by default. You can # change it to "record" to generate new recordings, or "live" to bypass the recorder entirely. diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/bufferedSenderAutoFlushSize.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/bufferedSenderAutoFlushSize.ts index 6d8f7d22509f..d873c2d86bf2 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/src/bufferedSenderAutoFlushSize.ts +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/bufferedSenderAutoFlushSize.ts @@ -6,14 +6,14 @@ */ import { - SearchIndexingBufferedSender, AzureKeyCredential, - SearchClient, GeographyPoint, + SearchClient, SearchIndexClient, + SearchIndexingBufferedSender, } from "@azure/search-documents"; -import { createIndex, documentKeyRetriever, WAIT_TIME, delay } from "./setup"; import { Hotel } from "./interfaces"; +import { createIndex, delay, documentKeyRetriever, WAIT_TIME } from "./setup"; import * as dotenv from "dotenv"; dotenv.config(); @@ -58,7 +58,7 @@ function getDocumentsArray(size: number): Hotel[] { return array; } -async function main() { +async function main(): Promise { if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); return; @@ -70,7 +70,7 @@ async function main() { const searchClient: SearchClient = new SearchClient( endpoint, TEST_INDEX_NAME, - credential + credential, ); const indexClient: SearchIndexClient = new SearchIndexClient(endpoint, credential); @@ -83,7 +83,7 @@ async function main() { documentKeyRetriever, { autoFlush: true, - } + }, ); bufferedClient.on("batchAdded", (response: any) => { @@ -105,9 +105,9 @@ async function main() { }); const documents: Hotel[] = getDocumentsArray(1001); - bufferedClient.uploadDocuments(documents); + await bufferedClient.uploadDocuments(documents); - await WAIT_TIME; + await delay(WAIT_TIME); let count = await searchClient.getDocumentsCount(); while (count !== documents.length) { @@ -122,7 +122,6 @@ async function main() { } finally { await indexClient.deleteIndex(TEST_INDEX_NAME); } - await delay(WAIT_TIME); } main(); diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/bufferedSenderAutoFlushTimer.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/bufferedSenderAutoFlushTimer.ts index 9b4c33e51157..9ac74a28c295 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/src/bufferedSenderAutoFlushTimer.ts +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/bufferedSenderAutoFlushTimer.ts @@ -6,15 +6,15 @@ */ import { - SearchIndexingBufferedSender, AzureKeyCredential, - SearchClient, + DEFAULT_FLUSH_WINDOW, GeographyPoint, + SearchClient, SearchIndexClient, - DEFAULT_FLUSH_WINDOW, + SearchIndexingBufferedSender, } from "@azure/search-documents"; -import { createIndex, documentKeyRetriever, WAIT_TIME, delay } from "./setup"; import { Hotel } from "./interfaces"; +import { createIndex, delay, documentKeyRetriever, WAIT_TIME } from "./setup"; import * as dotenv from "dotenv"; dotenv.config(); @@ -30,7 +30,7 @@ const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const TEST_INDEX_NAME = "example-index-sample-5"; -export async function main() { +export async function main(): Promise { if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); return; @@ -42,7 +42,7 @@ export async function main() { const searchClient: SearchClient = new SearchClient( endpoint, TEST_INDEX_NAME, - credential + credential, ); const indexClient: SearchIndexClient = new SearchIndexClient(endpoint, credential); @@ -55,7 +55,7 @@ export async function main() { documentKeyRetriever, { autoFlush: true, - } + }, ); bufferedClient.on("batchAdded", (response: any) => { @@ -76,7 +76,7 @@ export async function main() { console.log(response); }); - bufferedClient.uploadDocuments([ + await bufferedClient.uploadDocuments([ { hotelId: "1", description: @@ -112,7 +112,6 @@ export async function main() { } finally { await indexClient.deleteIndex(TEST_INDEX_NAME); } - await delay(WAIT_TIME); } main(); diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/bufferedSenderManualFlush.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/bufferedSenderManualFlush.ts index 6c77acff8e2e..889cd5856fe7 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/src/bufferedSenderManualFlush.ts +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/bufferedSenderManualFlush.ts @@ -6,14 +6,14 @@ */ import { - SearchIndexingBufferedSender, AzureKeyCredential, - SearchClient, GeographyPoint, + SearchClient, SearchIndexClient, + SearchIndexingBufferedSender, } from "@azure/search-documents"; -import { createIndex, documentKeyRetriever, WAIT_TIME, delay } from "./setup"; import { Hotel } from "./interfaces"; +import { createIndex, delay, documentKeyRetriever, WAIT_TIME } from "./setup"; import * as dotenv from "dotenv"; dotenv.config(); @@ -27,7 +27,7 @@ const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const TEST_INDEX_NAME = "example-index-sample-6"; -export async function main() { +export async function main(): Promise { if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); return; @@ -39,7 +39,7 @@ export async function main() { const searchClient: SearchClient = new SearchClient( endpoint, TEST_INDEX_NAME, - credential + credential, ); const indexClient: SearchIndexClient = new SearchIndexClient(endpoint, credential); @@ -52,7 +52,7 @@ export async function main() { documentKeyRetriever, { autoFlush: false, - } + }, ); bufferedClient.on("batchAdded", (response: any) => { diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/dataSourceConnectionOperations.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/dataSourceConnectionOperations.ts index 49c45e886cc3..1ca1ce4d5048 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/src/dataSourceConnectionOperations.ts +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/dataSourceConnectionOperations.ts @@ -6,8 +6,8 @@ */ import { - SearchIndexerClient, AzureKeyCredential, + SearchIndexerClient, SearchIndexerDataSourceConnection, } from "@azure/search-documents"; @@ -17,12 +17,12 @@ dotenv.config(); const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const connectionString = process.env.CONNECTION_STRING || ""; -const dataSourceConnectionName = "example-ds-connection-sample-1"; +const TEST_DATA_SOURCE_CONNECTION_NAME = "example-ds-connection-sample-1"; async function createDataSourceConnection( dataSourceConnectionName: string, - client: SearchIndexerClient -) { + client: SearchIndexerClient, +): Promise { console.log(`Creating DS Connection Operation`); const dataSourceConnection: SearchIndexerDataSourceConnection = { name: dataSourceConnectionName, @@ -38,25 +38,24 @@ async function createDataSourceConnection( async function getAndUpdateDataSourceConnection( dataSourceConnectionName: string, - client: SearchIndexerClient -) { + client: SearchIndexerClient, +): Promise { console.log(`Get And Update DS Connection Operation`); - const ds: SearchIndexerDataSourceConnection = await client.getDataSourceConnection( - dataSourceConnectionName - ); + const ds: SearchIndexerDataSourceConnection = + await client.getDataSourceConnection(dataSourceConnectionName); ds.container.name = "Listings_5K_KingCounty_WA"; console.log(`Updating Container Name of Datasource Connection ${dataSourceConnectionName}`); await client.createOrUpdateDataSourceConnection(ds); } -async function listDataSourceConnections(client: SearchIndexerClient) { +async function listDataSourceConnections(client: SearchIndexerClient): Promise { console.log(`List DS Connection Operation`); const listOfDataSourceConnections: Array = await client.listDataSourceConnections(); console.log(`List of Data Source Connections`); console.log(`*******************************`); - for (let ds of listOfDataSourceConnections) { + for (const ds of listOfDataSourceConnections) { console.log(`Name: ${ds.name}`); console.log(`Description: ${ds.description}`); console.log(`Connection String: ${ds.connectionString}`); @@ -72,13 +71,13 @@ async function listDataSourceConnections(client: SearchIndexerClient) { async function deleteDataSourceConnection( dataSourceConnectionName: string, - client: SearchIndexerClient -) { + client: SearchIndexerClient, +): Promise { console.log(`Deleting DS Connection Operation`); await client.deleteDataSourceConnection(dataSourceConnectionName); } -async function main() { +async function main(): Promise { console.log(`Running DS Connection Operations Sample....`); if (!endpoint || !apiKey || !connectionString) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); @@ -86,11 +85,11 @@ async function main() { } const client = new SearchIndexerClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createDataSourceConnection(dataSourceConnectionName, client); - await getAndUpdateDataSourceConnection(dataSourceConnectionName, client); + await createDataSourceConnection(TEST_DATA_SOURCE_CONNECTION_NAME, client); + await getAndUpdateDataSourceConnection(TEST_DATA_SOURCE_CONNECTION_NAME, client); await listDataSourceConnections(client); } finally { - await deleteDataSourceConnection(dataSourceConnectionName, client); + await deleteDataSourceConnection(TEST_DATA_SOURCE_CONNECTION_NAME, client); } } diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/indexOperations.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/indexOperations.ts index 9ba3e3da83b9..7774897f3fbc 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/src/indexOperations.ts +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/indexOperations.ts @@ -6,9 +6,9 @@ */ import { - SearchIndexClient, AzureKeyCredential, SearchIndex, + SearchIndexClient, SearchIndexStatistics, } from "@azure/search-documents"; @@ -17,9 +17,9 @@ dotenv.config(); const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; -const indexName = "example-index-sample-1"; +const TEST_INDEX_NAME = "example-index-sample-1"; -async function createIndex(indexName: string, client: SearchIndexClient) { +async function createIndex(indexName: string, client: SearchIndexClient): Promise { console.log(`Creating Index Operation`); const index: SearchIndex = { name: indexName, @@ -62,7 +62,7 @@ async function createIndex(indexName: string, client: SearchIndexClient) { await client.createIndex(index); } -async function getAndUpdateIndex(indexName: string, client: SearchIndexClient) { +async function getAndUpdateIndex(indexName: string, client: SearchIndexClient): Promise { console.log(`Get And Update Index Operation`); const index: SearchIndex = await client.getIndex(indexName); index.fields.push({ @@ -73,14 +73,14 @@ async function getAndUpdateIndex(indexName: string, client: SearchIndexClient) { await client.createOrUpdateIndex(index); } -async function getIndexStatistics(indexName: string, client: SearchIndexClient) { +async function getIndexStatistics(indexName: string, client: SearchIndexClient): Promise { console.log(`Get Index Statistics Operation`); const statistics: SearchIndexStatistics = await client.getIndexStatistics(indexName); console.log(`Document Count: ${statistics.documentCount}`); console.log(`Storage Size: ${statistics.storageSize}`); } -async function getServiceStatistics(client: SearchIndexClient) { +async function getServiceStatistics(client: SearchIndexClient): Promise { console.log(`Get Service Statistics Operation`); const { counters, limits } = await client.getServiceStatistics(); console.log(`Counters`); @@ -109,14 +109,14 @@ async function getServiceStatistics(client: SearchIndexClient) { console.log(`\tMax Fields Per Index: ${limits.maxFieldsPerIndex}`); console.log(`\tMax Field Nesting Depth Per Index: ${limits.maxFieldNestingDepthPerIndex}`); console.log( - `\tMax Complex Collection Fields Per Index: ${limits.maxComplexCollectionFieldsPerIndex}` + `\tMax Complex Collection Fields Per Index: ${limits.maxComplexCollectionFieldsPerIndex}`, ); console.log( - `\tMax Complex Objects In Collections Per Document: ${limits.maxComplexObjectsInCollectionsPerDocument}` + `\tMax Complex Objects In Collections Per Document: ${limits.maxComplexObjectsInCollectionsPerDocument}`, ); } -async function listIndexes(client: SearchIndexClient) { +async function listIndexes(client: SearchIndexClient): Promise { console.log(`List Indexes Operation`); const result = await client.listIndexes(); let listOfIndexes = await result.next(); @@ -132,12 +132,12 @@ async function listIndexes(client: SearchIndexClient) { } } -async function deleteIndex(indexName: string, client: SearchIndexClient) { +async function deleteIndex(indexName: string, client: SearchIndexClient): Promise { console.log(`Deleting Index Operation`); await client.deleteIndex(indexName); } -async function main() { +async function main(): Promise { console.log(`Running Index Operations Sample....`); if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); @@ -145,13 +145,13 @@ async function main() { } const client = new SearchIndexClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createIndex(indexName, client); - await getAndUpdateIndex(indexName, client); - await getIndexStatistics(indexName, client); + await createIndex(TEST_INDEX_NAME, client); + await getAndUpdateIndex(TEST_INDEX_NAME, client); + await getIndexStatistics(TEST_INDEX_NAME, client); await getServiceStatistics(client); await listIndexes(client); } finally { - await deleteIndex(indexName, client); + await deleteIndex(TEST_INDEX_NAME, client); } } diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/indexerOperations.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/indexerOperations.ts index 1e61c2374071..5cb8ddd8e62d 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/src/indexerOperations.ts +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/indexerOperations.ts @@ -6,9 +6,9 @@ */ import { - SearchIndexerClient, AzureKeyCredential, SearchIndexer, + SearchIndexerClient, SearchIndexerStatus, } from "@azure/search-documents"; @@ -20,9 +20,9 @@ const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const dataSourceName = process.env.DATA_SOURCE_NAME || ""; const targetIndexName = process.env.TARGET_INDEX_NAME || ""; -const indexerName = "example-indexer-sample-1"; +const TEST_INDEXER_NAME = "example-indexer-sample-1"; -async function createIndexer(indexerName: string, client: SearchIndexerClient) { +async function createIndexer(indexerName: string, client: SearchIndexerClient): Promise { console.log(`Creating Indexer Operation`); const indexer: SearchIndexer = { name: indexerName, @@ -34,7 +34,10 @@ async function createIndexer(indexerName: string, client: SearchIndexerClient) { await client.createIndexer(indexer); } -async function getAndUpdateIndexer(indexerName: string, client: SearchIndexerClient) { +async function getAndUpdateIndexer( + indexerName: string, + client: SearchIndexerClient, +): Promise { console.log(`Get And Update Indexer Operation`); const indexer: SearchIndexer = await client.getIndexer(indexerName); indexer.isDisabled = true; @@ -43,20 +46,20 @@ async function getAndUpdateIndexer(indexerName: string, client: SearchIndexerCli await client.createOrUpdateIndexer(indexer); } -async function getIndexerStatus(indexerName: string, client: SearchIndexerClient) { +async function getIndexerStatus(indexerName: string, client: SearchIndexerClient): Promise { console.log(`Get Indexer Status Operation`); const indexerStatus: SearchIndexerStatus = await client.getIndexerStatus(indexerName); console.log(`Status: ${indexerStatus.status}`); console.log(`Limits`); console.log(`******`); console.log( - `MaxDocumentContentCharactersToExtract: ${indexerStatus.limits.maxDocumentContentCharactersToExtract}` + `MaxDocumentContentCharactersToExtract: ${indexerStatus.limits.maxDocumentContentCharactersToExtract}`, ); console.log(`MaxDocumentExtractionSize: ${indexerStatus.limits.maxDocumentExtractionSize}`); console.log(`MaxRunTime: ${indexerStatus.limits.maxRunTime}`); } -async function listIndexers(client: SearchIndexerClient) { +async function listIndexers(client: SearchIndexerClient): Promise { console.log(`List Indexers Operation`); const listOfIndexers: Array = await client.listIndexers(); @@ -82,22 +85,22 @@ async function listIndexers(client: SearchIndexerClient) { } } -async function resetIndexer(indexerName: string, client: SearchIndexerClient) { +async function resetIndexer(indexerName: string, client: SearchIndexerClient): Promise { console.log(`Reset Indexer Operation`); await client.resetIndexer(indexerName); } -async function deleteIndexer(indexerName: string, client: SearchIndexerClient) { +async function deleteIndexer(indexerName: string, client: SearchIndexerClient): Promise { console.log(`Deleting Indexer Operation`); await client.deleteIndexer(indexerName); } -async function runIndexer(indexerName: string, client: SearchIndexerClient) { +async function runIndexer(indexerName: string, client: SearchIndexerClient): Promise { console.log(`Run Indexer Operation`); await client.runIndexer(indexerName); } -async function main() { +async function main(): Promise { console.log(`Running Indexer Operations Sample....`); if (!endpoint || !apiKey || !dataSourceName || !targetIndexName) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); @@ -105,14 +108,14 @@ async function main() { } const client = new SearchIndexerClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createIndexer(indexerName, client); - await getAndUpdateIndexer(indexerName, client); - await getIndexerStatus(indexerName, client); + await createIndexer(TEST_INDEXER_NAME, client); + await getAndUpdateIndexer(TEST_INDEXER_NAME, client); + await getIndexerStatus(TEST_INDEXER_NAME, client); await listIndexers(client); - await resetIndexer(indexerName, client); - await runIndexer(indexerName, client); + await resetIndexer(TEST_INDEXER_NAME, client); + await runIndexer(TEST_INDEXER_NAME, client); } finally { - await deleteIndexer(indexerName, client); + await deleteIndexer(TEST_INDEXER_NAME, client); } } diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/interfaces.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/interfaces.ts index fc116d4805ed..f6ac5440b95e 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/src/interfaces.ts +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/interfaces.ts @@ -11,11 +11,11 @@ export interface Hotel { hotelId?: string; hotelName?: string | null; description?: string | null; - descriptionVectorEn?: number[] | null; - descriptionVectorFr?: number[] | null; + descriptionVectorEn?: number[]; + descriptionVectorFr?: number[]; descriptionFr?: string | null; category?: string | null; - tags?: string[] | null; + tags?: string[]; parkingIncluded?: boolean | null; smokingAllowed?: boolean | null; lastRenovationDate?: Date | null; @@ -37,5 +37,5 @@ export interface Hotel { sleepsCount?: number | null; smokingAllowed?: boolean | null; tags?: string[] | null; - }> | null; + }>; } diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/searchClientOperations.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/searchClientOperations.ts index 4949728c3e32..ced0541bb0fc 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/src/searchClientOperations.ts +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/searchClientOperations.ts @@ -7,13 +7,13 @@ import { AzureKeyCredential, - SearchClient, GeographyPoint, + SearchClient, SearchIndexClient, SelectFields, } from "@azure/search-documents"; -import { createIndex, WAIT_TIME, delay } from "./setup"; import { Hotel } from "./interfaces"; +import { createIndex, delay, WAIT_TIME } from "./setup"; import * as dotenv from "dotenv"; dotenv.config(); @@ -25,7 +25,7 @@ const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const TEST_INDEX_NAME = "example-index-sample-2"; -async function main() { +async function main(): Promise { if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); return; @@ -40,7 +40,7 @@ async function main() { const searchClient: SearchClient = new SearchClient( endpoint, TEST_INDEX_NAME, - credential + credential, ); const indexClient: SearchIndexClient = new SearchIndexClient(endpoint, credential); diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/setup.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/setup.ts index a876b9f0a44b..fabc4db10450 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/src/setup.ts +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/setup.ts @@ -5,9 +5,9 @@ * Defines the utility methods. */ -import { SearchIndexClient, SearchIndex, KnownAnalyzerNames } from "@azure/search-documents"; -import { Hotel } from "./interfaces"; +import { KnownAnalyzerNames, SearchIndex, SearchIndexClient } from "@azure/search-documents"; import { env } from "process"; +import { Hotel } from "./interfaces"; export const WAIT_TIME = 4000; @@ -54,14 +54,14 @@ export async function createIndex(client: SearchIndexClient, name: string): Prom name: "descriptionVectorEn", searchable: true, vectorSearchDimensions: 1536, - vectorSearchProfile: "vector-search-profile", + vectorSearchProfileName: "vector-search-profile", }, { type: "Collection(Edm.Single)", name: "descriptionVectorFr", searchable: true, vectorSearchDimensions: 1536, - vectorSearchProfile: "vector-search-profile", + vectorSearchProfileName: "vector-search-profile", }, { type: "Edm.String", @@ -255,15 +255,15 @@ export async function createIndex(client: SearchIndexClient, name: string): Prom kind: "azureOpenAI", azureOpenAIParameters: { resourceUri: env.AZURE_OPENAI_ENDPOINT, - apiKey: env.OPENAI_KEY, - deploymentId: env.OPENAI_DEPLOYMENT_NAME, + apiKey: env.AZURE_OPENAI_KEY, + deploymentId: env.AZURE_OPENAI_DEPLOYMENT_NAME, }, }, ], profiles: [ { name: "vector-search-profile", - algorithm: "vector-search-algorithm", + algorithmConfigurationName: "vector-search-algorithm", vectorizer: "vector-search-vectorizer", }, ], diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/skillSetOperations.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/skillSetOperations.ts index c8fc4162aa9b..e9c5fcee5511 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/src/skillSetOperations.ts +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/skillSetOperations.ts @@ -6,8 +6,8 @@ */ import { - SearchIndexerClient, AzureKeyCredential, + SearchIndexerClient, SearchIndexerSkillset, } from "@azure/search-documents"; @@ -17,9 +17,9 @@ dotenv.config(); const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; -const skillsetName = "example-skillset-sample-1"; +const TEST_SKILLSET_NAME = "example-skillset-sample-1"; -async function createSkillset(skillsetName: string, client: SearchIndexerClient) { +async function createSkillset(skillsetName: string, client: SearchIndexerClient): Promise { console.log(`Creating Skillset Operation`); const skillset: SearchIndexerSkillset = { name: skillsetName, @@ -57,7 +57,10 @@ async function createSkillset(skillsetName: string, client: SearchIndexerClient) await client.createSkillset(skillset); } -async function getAndUpdateSkillset(skillsetName: string, client: SearchIndexerClient) { +async function getAndUpdateSkillset( + skillsetName: string, + client: SearchIndexerClient, +): Promise { console.log(`Get And Update Skillset Operation`); const skillset: SearchIndexerSkillset = await client.getSkillset(skillsetName); @@ -75,26 +78,26 @@ async function getAndUpdateSkillset(skillsetName: string, client: SearchIndexerC await client.createOrUpdateSkillset(skillset); } -async function listSkillsets(client: SearchIndexerClient) { +async function listSkillsets(client: SearchIndexerClient): Promise { console.log(`List Skillset Operation`); const listOfSkillsets: Array = await client.listSkillsets(); console.log(`\tList of Skillsets`); console.log(`\t******************`); - for (let skillset of listOfSkillsets) { + for (const skillset of listOfSkillsets) { console.log(`Name: ${skillset.name}`); console.log(`Description: ${skillset.description}`); console.log(`Skills`); console.log(`******`); - for (let skill of skillset.skills) { + for (const skill of skillset.skills) { console.log(`ODataType: ${skill.odatatype}`); console.log(`Inputs`); - for (let input of skill.inputs) { + for (const input of skill.inputs) { console.log(`\tName: ${input.name}`); console.log(`\tSource: ${input.source}`); } console.log(`Outputs`); - for (let output of skill.outputs) { + for (const output of skill.outputs) { console.log(`\tName: ${output.name}`); console.log(`\tTarget Name: ${output.targetName}`); } @@ -102,12 +105,12 @@ async function listSkillsets(client: SearchIndexerClient) { } } -async function deleteSkillset(skillsetName: string, client: SearchIndexerClient) { +async function deleteSkillset(skillsetName: string, client: SearchIndexerClient): Promise { console.log(`Deleting Skillset Operation`); await client.deleteSkillset(skillsetName); } -async function main() { +async function main(): Promise { console.log(`Running Skillset Operations Sample....`); if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); @@ -115,11 +118,11 @@ async function main() { } const client = new SearchIndexerClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createSkillset(skillsetName, client); - await getAndUpdateSkillset(skillsetName, client); + await createSkillset(TEST_SKILLSET_NAME, client); + await getAndUpdateSkillset(TEST_SKILLSET_NAME, client); await listSkillsets(client); } finally { - await deleteSkillset(skillsetName, client); + await deleteSkillset(TEST_SKILLSET_NAME, client); } } diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/stickySession.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/stickySession.ts new file mode 100644 index 000000000000..8f91d1a0fa97 --- /dev/null +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/stickySession.ts @@ -0,0 +1,84 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +/** + * @summary Demonstrates user sticky sessions, a way to reduce inconsistent behavior by targeting a + * single replica. + */ + +import { + AzureKeyCredential, + odata, + SearchClient, + SearchIndexClient, +} from "@azure/search-documents"; +import { Hotel } from "./interfaces"; +import { createIndex, delay, WAIT_TIME } from "./setup"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +/** + * If you're querying a replicated index, Azure AI Search may target any replica with your queries. + * As these replicas may not be in a consistent state, the service may appear to have inconsistent + * states between distinct queries. To avoid this, you can use a sticky session. A sticky session + * is used to indicate to the Azure AI Search service that you'd like all requests with the same + * `sessionId` to be directed to the same replica. The service will then make a best effort to do + * so. + * + * Please see the + * {@link https://learn.microsoft.com/en-us/azure/search/index-similarity-and-scoring#scoring-statistics-and-sticky-sessions | documentation} + * for more information. + */ +const endpoint = process.env.ENDPOINT || ""; +const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; +const TEST_INDEX_NAME = "example-index-sample-3"; + +async function main(): Promise { + if (!endpoint || !apiKey) { + console.error( + "Be sure to set valid values for `endpoint` and `apiKey` with proper authorization.", + ); + return; + } + + const credential = new AzureKeyCredential(apiKey); + const indexClient: SearchIndexClient = new SearchIndexClient(endpoint, credential); + const searchClient: SearchClient = indexClient.getSearchClient(TEST_INDEX_NAME); + + // The session id is defined by the user. + const sessionId = "session1"; + + try { + await createIndex(indexClient, TEST_INDEX_NAME); + await delay(WAIT_TIME); + + // The service will make a best effort attempt to direct these queries to the same replica. As + // this overrides load balancing, excessive use of the same `sessionId` may result in + // performance degradation. Be sure to use a distinct `sessionId` for each sticky session. + const ratingQueries = [2, 4]; + for (const rating of ratingQueries) { + const response = await searchClient.search("*", { + filter: odata`rating ge ${rating}`, + sessionId, + }); + + const hotelNames = []; + for await (const result of response.results) { + const hotelName = result.document.hotelName; + if (typeof hotelName === "string") { + hotelNames.push(hotelName); + } + } + + if (hotelNames.length) { + console.log(`Hotels with at least a rating of ${rating}:`); + hotelNames.forEach(console.log); + } + } + } finally { + await indexClient.deleteIndex(TEST_INDEX_NAME); + } +} + +main(); diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/synonymMapOperations.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/synonymMapOperations.ts index 56bcf98f75c5..b7fbfb174a3c 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/src/synonymMapOperations.ts +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/synonymMapOperations.ts @@ -5,16 +5,16 @@ * @summary Demonstrates the SynonymMap Operations. */ -import { SearchIndexClient, AzureKeyCredential, SynonymMap } from "@azure/search-documents"; +import { AzureKeyCredential, SearchIndexClient, SynonymMap } from "@azure/search-documents"; import * as dotenv from "dotenv"; dotenv.config(); const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; -const synonymMapName = "example-synonymmap-sample-1"; +const TEST_SYNONYM_MAP_NAME = "example-synonymmap-sample-1"; -async function createSynonymMap(synonymMapName: string, client: SearchIndexClient) { +async function createSynonymMap(synonymMapName: string, client: SearchIndexClient): Promise { console.log(`Creating SynonymMap Operation`); const sm: SynonymMap = { name: synonymMapName, @@ -23,7 +23,10 @@ async function createSynonymMap(synonymMapName: string, client: SearchIndexClien await client.createSynonymMap(sm); } -async function getAndUpdateSynonymMap(synonymMapName: string, client: SearchIndexClient) { +async function getAndUpdateSynonymMap( + synonymMapName: string, + client: SearchIndexClient, +): Promise { console.log(`Get And Update SynonymMap Operation`); const sm: SynonymMap = await client.getSynonymMap(synonymMapName); console.log(`Update synonyms Synonym Map my-synonymmap`); @@ -31,27 +34,27 @@ async function getAndUpdateSynonymMap(synonymMapName: string, client: SearchInde await client.createOrUpdateSynonymMap(sm); } -async function listSynonymMaps(client: SearchIndexClient) { +async function listSynonymMaps(client: SearchIndexClient): Promise { console.log(`List SynonymMaps Operation`); const listOfSynonymMaps: Array = await client.listSynonymMaps(); console.log(`List of SynonymMaps`); console.log(`*******************`); - for (let sm of listOfSynonymMaps) { + for (const sm of listOfSynonymMaps) { console.log(`Name: ${sm.name}`); console.log(`Synonyms`); - for (let synonym of sm.synonyms) { + for (const synonym of sm.synonyms) { console.log(synonym); } } } -async function deleteSynonymMap(synonymMapName: string, client: SearchIndexClient) { +async function deleteSynonymMap(synonymMapName: string, client: SearchIndexClient): Promise { console.log(`Deleting SynonymMap Operation`); await client.deleteSynonymMap(synonymMapName); } -async function main() { +async function main(): Promise { console.log(`Running Index Operations Sample....`); if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); @@ -59,11 +62,11 @@ async function main() { } const client = new SearchIndexClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createSynonymMap(synonymMapName, client); - await getAndUpdateSynonymMap(synonymMapName, client); + await createSynonymMap(TEST_SYNONYM_MAP_NAME, client); + await getAndUpdateSynonymMap(TEST_SYNONYM_MAP_NAME, client); await listSynonymMaps(client); } finally { - await deleteSynonymMap(synonymMapName, client); + await deleteSynonymMap(TEST_SYNONYM_MAP_NAME, client); } } diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/vectorSearch.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/vectorSearch.ts index 7f1771a94898..c08d6831381d 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/src/vectorSearch.ts +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/vectorSearch.ts @@ -7,12 +7,12 @@ import { AzureKeyCredential, - SearchClient, GeographyPoint, + SearchClient, SearchIndexClient, } from "@azure/search-documents"; -import { createIndex, WAIT_TIME, delay } from "./setup"; import { Hotel } from "./interfaces"; +import { createIndex, delay, WAIT_TIME } from "./setup"; import * as dotenv from "dotenv"; import { fancyStayEnVector, fancyStayFrVector, luxuryQueryVector } from "./vectors"; @@ -25,7 +25,7 @@ const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const TEST_INDEX_NAME = "example-index-sample-7"; -async function main() { +async function main(): Promise { if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); return; @@ -36,7 +36,7 @@ async function main() { const searchClient: SearchClient = new SearchClient( endpoint, TEST_INDEX_NAME, - credential + credential, ); const indexClient: SearchIndexClient = new SearchIndexClient(endpoint, credential); @@ -81,30 +81,32 @@ async function main() { await delay(WAIT_TIME); const searchResults = await searchClient.search("*", { - vectorQueries: [ - { - kind: "vector", - fields: ["descriptionVectorEn"], - kNearestNeighborsCount: 3, - // An embedding of the query "What are the most luxurious hotels?" - vector: luxuryQueryVector, - }, - // Multi-vector search is supported - { - kind: "vector", - fields: ["descriptionVectorFr"], - kNearestNeighborsCount: 3, - vector: luxuryQueryVector, - }, - // The index can be configured with a vectorizer to generate text embeddings - // from a text query - { - kind: "text", - fields: ["descriptionVectorFr"], - kNearestNeighborsCount: 3, - text: "What are the most luxurious hotels?", - }, - ], + vectorSearchOptions: { + queries: [ + { + kind: "vector", + fields: ["descriptionVectorEn"], + kNearestNeighborsCount: 3, + // An embedding of the query "What are the most luxurious hotels?" + vector: luxuryQueryVector, + }, + // Multi-vector search is supported + { + kind: "vector", + fields: ["descriptionVectorFr"], + kNearestNeighborsCount: 3, + vector: luxuryQueryVector, + }, + // The index can be configured with a vectorizer to generate text embeddings + // from a text query + { + kind: "text", + fields: ["descriptionVectorFr"], + kNearestNeighborsCount: 3, + text: "What are the most luxurious hotels?", + }, + ], + }, }); for await (const result of searchResults.results) { diff --git a/sdk/search/search-documents/samples/v12/javascript/sample.env b/sdk/search/search-documents/samples/v12/javascript/sample.env index 13954cec21bd..86f0916725d2 100644 --- a/sdk/search/search-documents/samples/v12/javascript/sample.env +++ b/sdk/search/search-documents/samples/v12/javascript/sample.env @@ -11,10 +11,10 @@ ENDPOINT= AZURE_OPENAI_ENDPOINT= # The key for the OpenAI service. -OPENAI_KEY= +AZURE_OPENAI_KEY= # The name of the OpenAI deployment you'd like your tests to use. -OPENAI_DEPLOYMENT_NAME= +AZURE_OPENAI_DEPLOYMENT_NAME= # Our tests assume that TEST_MODE is "playback" by default. You can # change it to "record" to generate new recordings, or "live" to bypass the recorder entirely. diff --git a/sdk/search/search-documents/samples/v12/typescript/sample.env b/sdk/search/search-documents/samples/v12/typescript/sample.env index 13954cec21bd..86f0916725d2 100644 --- a/sdk/search/search-documents/samples/v12/typescript/sample.env +++ b/sdk/search/search-documents/samples/v12/typescript/sample.env @@ -11,10 +11,10 @@ ENDPOINT= AZURE_OPENAI_ENDPOINT= # The key for the OpenAI service. -OPENAI_KEY= +AZURE_OPENAI_KEY= # The name of the OpenAI deployment you'd like your tests to use. -OPENAI_DEPLOYMENT_NAME= +AZURE_OPENAI_DEPLOYMENT_NAME= # Our tests assume that TEST_MODE is "playback" by default. You can # change it to "record" to generate new recordings, or "live" to bypass the recorder entirely. diff --git a/sdk/search/search-documents/scripts/generateSampleEmbeddings.ts b/sdk/search/search-documents/scripts/generateSampleEmbeddings.ts index e907782a02a3..e6e49ef8582b 100644 --- a/sdk/search/search-documents/scripts/generateSampleEmbeddings.ts +++ b/sdk/search/search-documents/scripts/generateSampleEmbeddings.ts @@ -29,8 +29,8 @@ const inputs = [ async function main() { const client = new OpenAIClient( - process.env.OPENAI_ENDPOINT!, - new AzureKeyCredential(process.env.OPENAI_KEY!) + process.env.AZURE_OPENAI_ENDPOINT!, + new AzureKeyCredential(process.env.AZURE_OPENAI_KEY!) ); const writeStream = createWriteStream(outputPath, { mode: 0o755 }); @@ -43,7 +43,7 @@ async function main() { const expressions = await Promise.all( inputs.map(async ({ ident, text, comment }) => { - const result = await client.getEmbeddings(process.env.OPENAI_DEPLOYMENT_NAME!, [text]); + const result = await client.getEmbeddings(process.env.AZURE_OPENAI_DEPLOYMENT_NAME!, [text]); const embedding = result.data[0].embedding; return `// ${comment}\nexport const ${ident} = [${embedding.toString()}];\n\n`; }) diff --git a/sdk/search/search-documents/src/constants.ts b/sdk/search/search-documents/src/constants.ts index feed49d24387..54e960727fd9 100644 --- a/sdk/search/search-documents/src/constants.ts +++ b/sdk/search/search-documents/src/constants.ts @@ -1,4 +1,4 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -export const SDK_VERSION: string = "12.0.0-beta.4"; +const SDK_VERSION: string = "12.1.0-beta.1"; diff --git a/sdk/search/search-documents/src/errorModels.ts b/sdk/search/search-documents/src/errorModels.ts new file mode 100644 index 000000000000..fa0dc909d9da --- /dev/null +++ b/sdk/search/search-documents/src/errorModels.ts @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +/** + * Common error response for all Azure Resource Manager APIs to return error details for failed + * operations. (This also follows the OData error response format.). + */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; +} + +/** The error detail. */ +export interface ErrorDetail { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; +} diff --git a/sdk/search/search-documents/src/generated/data/models/index.ts b/sdk/search/search-documents/src/generated/data/models/index.ts index b47e7ca25446..4a59236c0149 100644 --- a/sdk/search/search-documents/src/generated/data/models/index.ts +++ b/sdk/search/search-documents/src/generated/data/models/index.ts @@ -11,32 +11,62 @@ import * as coreHttpCompat from "@azure/core-http-compat"; export type VectorQueryUnion = | VectorQuery - | RawVectorQuery + | VectorizedQuery | VectorizableTextQuery; -/** Describes an error condition for the Azure Cognitive Search API. */ -export interface SearchError { +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; +} + +/** The error detail. */ +export interface ErrorDetail { /** - * One of a server-defined set of error codes. + * The error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly code?: string; /** - * A human-readable representation of the error. + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message: string; + readonly target?: string; /** - * An array of details about specific errors that led to this reported error. + * The error details. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly details?: SearchError[]; + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; } /** Response containing search results from an index. */ export interface SearchDocumentsResult { /** - * The total count of results found by the search operation, or null if the count was not requested. If present, the count may be greater than the number of results in this response. This can happen if you use the $top or $skip parameters, or if Azure Cognitive Search can't return all the requested documents in a single Search response. + * The total count of results found by the search operation, or null if the count was not requested. If present, the count may be greater than the number of results in this response. This can happen if you use the $top or $skip parameters, or if the query can't return all the requested documents in a single response. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly count?: number; @@ -54,29 +84,29 @@ export interface SearchDocumentsResult { * The answers query results for the search operation; null if the answers query parameter was not specified or set to 'none'. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly answers?: AnswerResult[]; + readonly answers?: QueryAnswerResult[]; /** - * Continuation JSON payload returned when Azure Cognitive Search can't return all the requested results in a single Search response. You can use this JSON along with @odata.nextLink to formulate another POST Search request to get the next part of the search response. + * Continuation JSON payload returned when the query can't return all the requested results in a single response. You can use this JSON along with @odata.nextLink to formulate another POST Search request to get the next part of the search response. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextPageParameters?: SearchRequest; /** - * Reason that a partial response was returned for a semantic search request. + * Reason that a partial response was returned for a semantic ranking request. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly semanticPartialResponseReason?: SemanticPartialResponseReason; + readonly semanticPartialResponseReason?: SemanticErrorReason; /** - * Type of partial response that was returned for a semantic search request. + * Type of partial response that was returned for a semantic ranking request. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly semanticPartialResponseType?: SemanticPartialResponseType; + readonly semanticPartialResponseType?: SemanticSearchResultsType; /** * The sequence of results returned by the query. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly results: SearchResult[]; /** - * Continuation URL returned when Azure Cognitive Search can't return all the requested results in a single Search response. You can use this URL to formulate another GET or POST Search request to get the next part of the search response. Make sure to use the same verb (GET or POST) as the request that produced this response. + * Continuation URL returned when the query can't return all the requested results in a single response. You can use this URL to formulate another GET or POST Search request to get the next part of the search response. Make sure to use the same verb (GET or POST) as the request that produced this response. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; @@ -94,7 +124,7 @@ export interface FacetResult { } /** An answer is a text passage extracted from the contents of the most relevant documents that matched the query. Answers are extracted from the top search results. Answer candidates are scored and the top answers are selected. */ -export interface AnswerResult { +export interface QueryAnswerResult { /** Describes unknown properties. The value of an unknown property can be of "any" type. */ [property: string]: any; /** @@ -150,12 +180,12 @@ export interface SearchRequest { /** Allows setting a separate search query that will be solely used for semantic reranking, semantic captions and semantic answers. Is useful for scenarios where there is a need to use different queries between the base retrieval and ranking phase, and the L2 semantic phase. */ semanticQuery?: string; /** The name of a semantic configuration that will be used when processing documents for queries of type semantic. */ - semanticConfiguration?: string; + semanticConfigurationName?: string; /** Allows the user to choose whether a semantic call should fail completely, or to return partial results (default). */ - semanticErrorHandling?: SemanticErrorHandling; + semanticErrorHandling?: SemanticErrorMode; /** Allows the user to set an upper bound on the amount of time it takes for semantic enrichment to finish processing before the request fails. */ semanticMaxWaitInMilliseconds?: number; - /** Enables a debugging tool that can be used to further explore your Semantic search results. */ + /** Enables a debugging tool that can be used to further explore your reranked results. */ debug?: QueryDebugMode; /** A full-text search query expression; Use "*" or omit this parameter to match all documents. */ searchText?: string; @@ -177,7 +207,7 @@ export interface SearchRequest { top?: number; /** A value that specifies whether captions should be returned as part of the search response. */ captions?: QueryCaptionType; - /** The comma-separated list of field names used for semantic search. */ + /** The comma-separated list of field names used for semantic ranking. */ semanticFields?: string; /** The query parameters for vector and hybrid search queries. */ vectorQueries?: VectorQueryUnion[]; @@ -195,6 +225,8 @@ export interface VectorQuery { fields?: string; /** When true, triggers an exhaustive k-nearest neighbor search across all vectors within the vector index. Useful for scenarios where exact matches are critical, such as determining ground truth values. */ exhaustive?: boolean; + /** Oversampling factor. Minimum value is 1. It overrides the 'defaultOversampling' parameter configured in the index definition. It can be set only when 'rerankWithOriginalVectors' is true. This parameter is only permitted when a compression method is used on the underlying vector field. */ + oversampling?: number; } /** Contains a document found by a search query, plus associated metadata. */ @@ -210,7 +242,7 @@ export interface SearchResult { * The relevance score computed by the semantic ranker for the top search results. Search results are sorted by the RerankerScore first and then by the Score. RerankerScore is only returned for queries of type 'semantic'. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly rerankerScore?: number; + readonly _rerankerScore?: number; /** * Text fragments from the document that indicate the matching search terms, organized by each applicable field; null if hit highlighting was not enabled for the query. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -220,7 +252,7 @@ export interface SearchResult { * Captions are the most representative passages from the document relatively to the search query. They are often used as document summary. Captions are only returned for queries of type 'semantic'. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly captions?: CaptionResult[]; + readonly _captions?: QueryCaptionResult[]; /** * Contains debugging information that can be used to further explore your search results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -229,7 +261,7 @@ export interface SearchResult { } /** Captions are the most representative passages from the document relatively to the search query. They are often used as document summary. Captions are only returned for queries of type 'semantic'.. */ -export interface CaptionResult { +export interface QueryCaptionResult { /** Describes unknown properties. The value of an unknown property can be of "any" type. */ [property: string]: any; /** @@ -247,7 +279,7 @@ export interface CaptionResult { /** Contains debugging information that can be used to further explore your search results. */ export interface DocumentDebugInfo { /** - * Contains debugging information specific to semantic search queries. + * Contains debugging information specific to semantic ranking requests. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly semantic?: SemanticDebugInfo; @@ -460,20 +492,20 @@ export interface AutocompleteRequest { } /** The query parameters to use for vector search when a raw vector value is provided. */ -export type RawVectorQuery = VectorQuery & { +export interface VectorizedQuery extends VectorQuery { /** Polymorphic discriminator, which specifies the different types this object can be */ kind: "vector"; /** The vector representation of a search query. */ - vector?: number[]; -}; + vector: number[]; +} /** The query parameters to use for vector search when a text value that needs to be vectorized is provided. */ -export type VectorizableTextQuery = VectorQuery & { +export interface VectorizableTextQuery extends VectorQuery { /** Polymorphic discriminator, which specifies the different types this object can be */ kind: "text"; /** The text to be vectorized to perform a vector search query. */ - text?: string; -}; + text: string; +} /** Parameter group */ export interface SearchOptions { @@ -504,7 +536,7 @@ export interface SearchOptions { /** The name of the semantic configuration that lists which fields should be used for semantic ranking, captions, highlights, and answers */ semanticConfiguration?: string; /** Allows the user to choose whether a semantic call should fail completely, or to return partial results (default). */ - semanticErrorHandling?: SemanticErrorHandling; + semanticErrorHandling?: SemanticErrorMode; /** Allows the user to set an upper bound on the amount of time it takes for semantic enrichment to finish processing before the request fails. */ semanticMaxWaitInMilliseconds?: number; /** Enables a debugging tool that can be used to further explore your search results. */ @@ -515,8 +547,8 @@ export interface SearchOptions { queryLanguage?: QueryLanguage; /** Improve search recall by spell-correcting individual search query terms. */ speller?: Speller; - /** This parameter is only valid if the query type is 'semantic'. If set, the query returns answers extracted from key passages in the highest ranked documents. The number of answers returned can be configured by appending the pipe character '|' followed by the 'count-' option after the answers parameter value, such as 'extractive|count-3'. Default count is 1. The confidence threshold can be configured by appending the pipe character '|' followed by the 'threshold-' option after the answers parameter value, such as 'extractive|threshold-0.9'. Default threshold is 0.7. */ - answers?: Answers; + /** This parameter is only valid if the query type is `semantic`. If set, the query returns answers extracted from key passages in the highest ranked documents. The number of answers returned can be configured by appending the pipe character `|` followed by the `count-` option after the answers parameter value, such as `extractive|count-3`. Default count is 1. The confidence threshold can be configured by appending the pipe character `|` followed by the `threshold-` option after the answers parameter value, such as `extractive|threshold-0.9`. Default threshold is 0.7. */ + answers?: QueryAnswerType; /** A value that specifies whether any or all of the search terms must be matched in order to count the document as a match. */ searchMode?: SearchMode; /** A value that specifies whether we want to calculate scoring statistics (such as document frequency) globally for more consistent scoring, or locally, for lower latency. */ @@ -529,9 +561,9 @@ export interface SearchOptions { skip?: number; /** The number of search results to retrieve. This can be used in conjunction with $skip to implement client-side paging of search results. If results are truncated due to server-side paging, the response will include a continuation token that can be used to issue another Search request for the next page of results. */ top?: number; - /** This parameter is only valid if the query type is 'semantic'. If set, the query returns captions extracted from key passages in the highest ranked documents. When Captions is set to 'extractive', highlighting is enabled by default, and can be configured by appending the pipe character '|' followed by the 'highlight-' option, such as 'extractive|highlight-true'. Defaults to 'None'. */ - captions?: Captions; - /** The list of field names used for semantic search. */ + /** This parameter is only valid if the query type is `semantic`. If set, the query returns captions extracted from key passages in the highest ranked documents. When Captions is set to `extractive`, highlighting is enabled by default, and can be configured by appending the pipe character `|` followed by the `highlight-` option, such as `extractive|highlight-true`. Defaults to `None`. */ + captions?: QueryCaptionType; + /** The list of field names used for semantic ranking. */ semanticFields?: string[]; } @@ -577,45 +609,45 @@ export interface AutocompleteOptions { top?: number; } -/** Known values of {@link ApiVersion20231001Preview} that the service accepts. */ -export enum KnownApiVersion20231001Preview { - /** Api Version '2023-10-01-Preview' */ - TwoThousandTwentyThree1001Preview = "2023-10-01-Preview" +/** Known values of {@link ApiVersion20240301Preview} that the service accepts. */ +export enum KnownApiVersion20240301Preview { + /** Api Version '2024-03-01-Preview' */ + TwoThousandTwentyFour0301Preview = "2024-03-01-Preview", } /** - * Defines values for ApiVersion20231001Preview. \ - * {@link KnownApiVersion20231001Preview} can be used interchangeably with ApiVersion20231001Preview, + * Defines values for ApiVersion20240301Preview. \ + * {@link KnownApiVersion20240301Preview} can be used interchangeably with ApiVersion20240301Preview, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **2023-10-01-Preview**: Api Version '2023-10-01-Preview' + * **2024-03-01-Preview**: Api Version '2024-03-01-Preview' */ -export type ApiVersion20231001Preview = string; +export type ApiVersion20240301Preview = string; -/** Known values of {@link SemanticErrorHandling} that the service accepts. */ -export enum KnownSemanticErrorHandling { +/** Known values of {@link SemanticErrorMode} that the service accepts. */ +export enum KnownSemanticErrorMode { /** If the semantic processing fails, partial results still return. The definition of partial results depends on what semantic step failed and what was the reason for failure. */ Partial = "partial", /** If there is an exception during the semantic processing step, the query will fail and return the appropriate HTTP code depending on the error. */ - Fail = "fail" + Fail = "fail", } /** - * Defines values for SemanticErrorHandling. \ - * {@link KnownSemanticErrorHandling} can be used interchangeably with SemanticErrorHandling, + * Defines values for SemanticErrorMode. \ + * {@link KnownSemanticErrorMode} can be used interchangeably with SemanticErrorMode, * this enum contains the known values that the service supports. * ### Known values supported by the service * **partial**: If the semantic processing fails, partial results still return. The definition of partial results depends on what semantic step failed and what was the reason for failure. \ * **fail**: If there is an exception during the semantic processing step, the query will fail and return the appropriate HTTP code depending on the error. */ -export type SemanticErrorHandling = string; +export type SemanticErrorMode = string; /** Known values of {@link QueryDebugMode} that the service accepts. */ export enum KnownQueryDebugMode { /** No query debugging information will be returned. */ Disabled = "disabled", - /** Allows the user to further explore their Semantic search results. */ - Semantic = "semantic" + /** Allows the user to further explore their reranked results. */ + Semantic = "semantic", } /** @@ -624,7 +656,7 @@ export enum KnownQueryDebugMode { * this enum contains the known values that the service supports. * ### Known values supported by the service * **disabled**: No query debugging information will be returned. \ - * **semantic**: Allows the user to further explore their Semantic search results. + * **semantic**: Allows the user to further explore their reranked results. */ export type QueryDebugMode = string; @@ -732,7 +764,7 @@ export enum KnownQueryLanguage { LvLv = "lv-lv", /** Query language value for Estonian (Estonia). */ EtEe = "et-ee", - /** Query language value for Catalan (Spain). */ + /** Query language value for Catalan. */ CaEs = "ca-es", /** Query language value for Finnish (Finland). */ FiFi = "fi-fi", @@ -750,9 +782,9 @@ export enum KnownQueryLanguage { HyAm = "hy-am", /** Query language value for Bengali (India). */ BnIn = "bn-in", - /** Query language value for Basque (Spain). */ + /** Query language value for Basque. */ EuEs = "eu-es", - /** Query language value for Galician (Spain). */ + /** Query language value for Galician. */ GlEs = "gl-es", /** Query language value for Gujarati (India). */ GuIn = "gu-in", @@ -773,7 +805,7 @@ export enum KnownQueryLanguage { /** Query language value for Telugu (India). */ TeIn = "te-in", /** Query language value for Urdu (Pakistan). */ - UrPk = "ur-pk" + UrPk = "ur-pk", } /** @@ -832,7 +864,7 @@ export enum KnownQueryLanguage { * **uk-ua**: Query language value for Ukrainian (Ukraine). \ * **lv-lv**: Query language value for Latvian (Latvia). \ * **et-ee**: Query language value for Estonian (Estonia). \ - * **ca-es**: Query language value for Catalan (Spain). \ + * **ca-es**: Query language value for Catalan. \ * **fi-fi**: Query language value for Finnish (Finland). \ * **sr-ba**: Query language value for Serbian (Bosnia and Herzegovina). \ * **sr-me**: Query language value for Serbian (Montenegro). \ @@ -841,8 +873,8 @@ export enum KnownQueryLanguage { * **nb-no**: Query language value for Norwegian (Norway). \ * **hy-am**: Query language value for Armenian (Armenia). \ * **bn-in**: Query language value for Bengali (India). \ - * **eu-es**: Query language value for Basque (Spain). \ - * **gl-es**: Query language value for Galician (Spain). \ + * **eu-es**: Query language value for Basque. \ + * **gl-es**: Query language value for Galician. \ * **gu-in**: Query language value for Gujarati (India). \ * **he-il**: Query language value for Hebrew (Israel). \ * **ga-ie**: Query language value for Irish (Ireland). \ @@ -861,7 +893,7 @@ export enum KnownSpeller { /** Speller not enabled. */ None = "none", /** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */ - Lexicon = "lexicon" + Lexicon = "lexicon", } /** @@ -874,48 +906,48 @@ export enum KnownSpeller { */ export type Speller = string; -/** Known values of {@link Answers} that the service accepts. */ -export enum KnownAnswers { +/** Known values of {@link QueryAnswerType} that the service accepts. */ +export enum KnownQueryAnswerType { /** Do not return answers for the query. */ None = "none", /** Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. */ - Extractive = "extractive" + Extractive = "extractive", } /** - * Defines values for Answers. \ - * {@link KnownAnswers} can be used interchangeably with Answers, + * Defines values for QueryAnswerType. \ + * {@link KnownQueryAnswerType} can be used interchangeably with QueryAnswerType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **none**: Do not return answers for the query. \ * **extractive**: Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. */ -export type Answers = string; +export type QueryAnswerType = string; -/** Known values of {@link Captions} that the service accepts. */ -export enum KnownCaptions { +/** Known values of {@link QueryCaptionType} that the service accepts. */ +export enum KnownQueryCaptionType { /** Do not return captions for the query. */ None = "none", /** Extracts captions from the matching documents that contain passages relevant to the search query. */ - Extractive = "extractive" + Extractive = "extractive", } /** - * Defines values for Captions. \ - * {@link KnownCaptions} can be used interchangeably with Captions, + * Defines values for QueryCaptionType. \ + * {@link KnownQueryCaptionType} can be used interchangeably with QueryCaptionType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **none**: Do not return captions for the query. \ * **extractive**: Extracts captions from the matching documents that contain passages relevant to the search query. */ -export type Captions = string; +export type QueryCaptionType = string; /** Known values of {@link QuerySpellerType} that the service accepts. */ export enum KnownQuerySpellerType { /** Speller not enabled. */ None = "none", /** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */ - Lexicon = "lexicon" + Lexicon = "lexicon", } /** @@ -928,48 +960,12 @@ export enum KnownQuerySpellerType { */ export type QuerySpellerType = string; -/** Known values of {@link QueryAnswerType} that the service accepts. */ -export enum KnownQueryAnswerType { - /** Do not return answers for the query. */ - None = "none", - /** Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. */ - Extractive = "extractive" -} - -/** - * Defines values for QueryAnswerType. \ - * {@link KnownQueryAnswerType} can be used interchangeably with QueryAnswerType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **none**: Do not return answers for the query. \ - * **extractive**: Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. - */ -export type QueryAnswerType = string; - -/** Known values of {@link QueryCaptionType} that the service accepts. */ -export enum KnownQueryCaptionType { - /** Do not return captions for the query. */ - None = "none", - /** Extracts captions from the matching documents that contain passages relevant to the search query. */ - Extractive = "extractive" -} - -/** - * Defines values for QueryCaptionType. \ - * {@link KnownQueryCaptionType} can be used interchangeably with QueryCaptionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **none**: Do not return captions for the query. \ - * **extractive**: Extracts captions from the matching documents that contain passages relevant to the search query. - */ -export type QueryCaptionType = string; - /** Known values of {@link VectorQueryKind} that the service accepts. */ export enum KnownVectorQueryKind { /** Vector query where a raw vector value is provided. */ Vector = "vector", /** Vector query where a text value that needs to be vectorized is provided. */ - $DO_NOT_NORMALIZE$_text = "text" + $DO_NOT_NORMALIZE$_text = "text", } /** @@ -987,7 +983,7 @@ export enum KnownVectorFilterMode { /** The filter will be applied after the candidate set of vector results is returned. Depending on the filter selectivity, this can result in fewer results than requested by the parameter 'k'. */ PostFilter = "postFilter", /** The filter will be applied before the search query. */ - PreFilter = "preFilter" + PreFilter = "preFilter", } /** @@ -1000,44 +996,44 @@ export enum KnownVectorFilterMode { */ export type VectorFilterMode = string; -/** Known values of {@link SemanticPartialResponseReason} that the service accepts. */ -export enum KnownSemanticPartialResponseReason { +/** Known values of {@link SemanticErrorReason} that the service accepts. */ +export enum KnownSemanticErrorReason { /** If 'semanticMaxWaitInMilliseconds' was set and the semantic processing duration exceeded that value. Only the base results were returned. */ MaxWaitExceeded = "maxWaitExceeded", /** The request was throttled. Only the base results were returned. */ CapacityOverloaded = "capacityOverloaded", /** At least one step of the semantic process failed. */ - Transient = "transient" + Transient = "transient", } /** - * Defines values for SemanticPartialResponseReason. \ - * {@link KnownSemanticPartialResponseReason} can be used interchangeably with SemanticPartialResponseReason, + * Defines values for SemanticErrorReason. \ + * {@link KnownSemanticErrorReason} can be used interchangeably with SemanticErrorReason, * this enum contains the known values that the service supports. * ### Known values supported by the service * **maxWaitExceeded**: If 'semanticMaxWaitInMilliseconds' was set and the semantic processing duration exceeded that value. Only the base results were returned. \ * **capacityOverloaded**: The request was throttled. Only the base results were returned. \ * **transient**: At least one step of the semantic process failed. */ -export type SemanticPartialResponseReason = string; +export type SemanticErrorReason = string; -/** Known values of {@link SemanticPartialResponseType} that the service accepts. */ -export enum KnownSemanticPartialResponseType { +/** Known values of {@link SemanticSearchResultsType} that the service accepts. */ +export enum KnownSemanticSearchResultsType { /** Results without any semantic enrichment or reranking. */ BaseResults = "baseResults", /** Results have been reranked with the reranker model and will include semantic captions. They will not include any answers, answers highlights or caption highlights. */ - RerankedResults = "rerankedResults" + RerankedResults = "rerankedResults", } /** - * Defines values for SemanticPartialResponseType. \ - * {@link KnownSemanticPartialResponseType} can be used interchangeably with SemanticPartialResponseType, + * Defines values for SemanticSearchResultsType. \ + * {@link KnownSemanticSearchResultsType} can be used interchangeably with SemanticSearchResultsType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **baseResults**: Results without any semantic enrichment or reranking. \ * **rerankedResults**: Results have been reranked with the reranker model and will include semantic captions. They will not include any answers, answers highlights or caption highlights. */ -export type SemanticPartialResponseType = string; +export type SemanticSearchResultsType = string; /** Known values of {@link SemanticFieldState} that the service accepts. */ export enum KnownSemanticFieldState { @@ -1046,7 +1042,7 @@ export enum KnownSemanticFieldState { /** The field was not used for semantic enrichment. */ Unused = "unused", /** The field was partially used for semantic enrichment. */ - Partial = "partial" + Partial = "partial", } /** diff --git a/sdk/search/search-documents/src/generated/data/models/mappers.ts b/sdk/search/search-documents/src/generated/data/models/mappers.ts index 55e0804bd400..ea5538d25ccb 100644 --- a/sdk/search/search-documents/src/generated/data/models/mappers.ts +++ b/sdk/search/search-documents/src/generated/data/models/mappers.ts @@ -8,25 +8,47 @@ import * as coreClient from "@azure/core-client"; -export const SearchError: coreClient.CompositeMapper = { +export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SearchError", + className: "ErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetail", + }, + }, + }, + }, +}; + +export const ErrorDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorDetail", modelProperties: { code: { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", - required: true, readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String", + }, }, details: { serializedName: "details", @@ -36,13 +58,50 @@ export const SearchError: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchError" - } - } - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, +}; + +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + info: { + serializedName: "info", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const SearchDocumentsResult: coreClient.CompositeMapper = { @@ -54,15 +113,15 @@ export const SearchDocumentsResult: coreClient.CompositeMapper = { serializedName: "@odata\\.count", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, coverage: { serializedName: "@search\\.coverage", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, facets: { serializedName: "@search\\.facets", @@ -72,10 +131,12 @@ export const SearchDocumentsResult: coreClient.CompositeMapper = { value: { type: { name: "Sequence", - element: { type: { name: "Composite", className: "FacetResult" } } - } - } - } + element: { + type: { name: "Composite", className: "FacetResult" }, + }, + }, + }, + }, }, answers: { serializedName: "@search\\.answers", @@ -86,31 +147,31 @@ export const SearchDocumentsResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AnswerResult" - } - } - } + className: "QueryAnswerResult", + }, + }, + }, }, nextPageParameters: { serializedName: "@search\\.nextPageParameters", type: { name: "Composite", - className: "SearchRequest" - } + className: "SearchRequest", + }, }, semanticPartialResponseReason: { serializedName: "@search\\.semanticPartialResponseReason", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, semanticPartialResponseType: { serializedName: "@search\\.semanticPartialResponseType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, results: { serializedName: "value", @@ -121,20 +182,20 @@ export const SearchDocumentsResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchResult" - } - } - } + className: "SearchResult", + }, + }, + }, }, nextLink: { serializedName: "@odata\\.nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const FacetResult: coreClient.CompositeMapper = { @@ -147,17 +208,17 @@ export const FacetResult: coreClient.CompositeMapper = { serializedName: "count", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; -export const AnswerResult: coreClient.CompositeMapper = { +export const QueryAnswerResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AnswerResult", + className: "QueryAnswerResult", additionalProperties: { type: { name: "Object" } }, modelProperties: { score: { @@ -165,35 +226,35 @@ export const AnswerResult: coreClient.CompositeMapper = { required: true, readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, key: { serializedName: "key", required: true, readOnly: true, type: { - name: "String" - } + name: "String", + }, }, text: { serializedName: "text", required: true, readOnly: true, type: { - name: "String" - } + name: "String", + }, }, highlights: { serializedName: "highlights", readOnly: true, nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SearchRequest: coreClient.CompositeMapper = { @@ -204,8 +265,8 @@ export const SearchRequest: coreClient.CompositeMapper = { includeTotalResultCount: { serializedName: "count", type: { - name: "Boolean" - } + name: "Boolean", + }, }, facets: { serializedName: "facets", @@ -213,66 +274,66 @@ export const SearchRequest: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, filter: { serializedName: "filter", type: { - name: "String" - } + name: "String", + }, }, highlightFields: { serializedName: "highlight", type: { - name: "String" - } + name: "String", + }, }, highlightPostTag: { serializedName: "highlightPostTag", type: { - name: "String" - } + name: "String", + }, }, highlightPreTag: { serializedName: "highlightPreTag", type: { - name: "String" - } + name: "String", + }, }, minimumCoverage: { serializedName: "minimumCoverage", type: { - name: "Number" - } + name: "Number", + }, }, orderBy: { serializedName: "orderby", type: { - name: "String" - } + name: "String", + }, }, queryType: { serializedName: "queryType", type: { name: "Enum", - allowedValues: ["simple", "full", "semantic"] - } + allowedValues: ["simple", "full", "semantic"], + }, }, scoringStatistics: { serializedName: "scoringStatistics", type: { name: "Enum", - allowedValues: ["local", "global"] - } + allowedValues: ["local", "global"], + }, }, sessionId: { serializedName: "sessionId", type: { - name: "String" - } + name: "String", + }, }, scoringParameters: { serializedName: "scoringParameters", @@ -280,117 +341,117 @@ export const SearchRequest: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, scoringProfile: { serializedName: "scoringProfile", type: { - name: "String" - } + name: "String", + }, }, semanticQuery: { serializedName: "semanticQuery", type: { - name: "String" - } + name: "String", + }, }, - semanticConfiguration: { + semanticConfigurationName: { serializedName: "semanticConfiguration", type: { - name: "String" - } + name: "String", + }, }, semanticErrorHandling: { serializedName: "semanticErrorHandling", type: { - name: "String" - } + name: "String", + }, }, semanticMaxWaitInMilliseconds: { constraints: { - InclusiveMinimum: 700 + InclusiveMinimum: 700, }, serializedName: "semanticMaxWaitInMilliseconds", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, debug: { serializedName: "debug", type: { - name: "String" - } + name: "String", + }, }, searchText: { serializedName: "search", type: { - name: "String" - } + name: "String", + }, }, searchFields: { serializedName: "searchFields", type: { - name: "String" - } + name: "String", + }, }, searchMode: { serializedName: "searchMode", type: { name: "Enum", - allowedValues: ["any", "all"] - } + allowedValues: ["any", "all"], + }, }, queryLanguage: { serializedName: "queryLanguage", type: { - name: "String" - } + name: "String", + }, }, speller: { serializedName: "speller", type: { - name: "String" - } + name: "String", + }, }, answers: { serializedName: "answers", type: { - name: "String" - } + name: "String", + }, }, select: { serializedName: "select", type: { - name: "String" - } + name: "String", + }, }, skip: { serializedName: "skip", type: { - name: "Number" - } + name: "Number", + }, }, top: { serializedName: "top", type: { - name: "Number" - } + name: "Number", + }, }, captions: { serializedName: "captions", type: { - name: "String" - } + name: "String", + }, }, semanticFields: { serializedName: "semanticFields", type: { - name: "String" - } + name: "String", + }, }, vectorQueries: { serializedName: "vectorQueries", @@ -399,19 +460,19 @@ export const SearchRequest: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VectorQuery" - } - } - } + className: "VectorQuery", + }, + }, + }, }, vectorFilterMode: { serializedName: "vectorFilterMode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VectorQuery: coreClient.CompositeMapper = { @@ -421,36 +482,42 @@ export const VectorQuery: coreClient.CompositeMapper = { uberParent: "VectorQuery", polymorphicDiscriminator: { serializedName: "kind", - clientName: "kind" + clientName: "kind", }, modelProperties: { kind: { serializedName: "kind", required: true, type: { - name: "String" - } + name: "String", + }, }, kNearestNeighborsCount: { serializedName: "k", type: { - name: "Number" - } + name: "Number", + }, }, fields: { serializedName: "fields", type: { - name: "String" - } + name: "String", + }, }, exhaustive: { serializedName: "exhaustive", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + oversampling: { + serializedName: "oversampling", + type: { + name: "Number", + }, + }, + }, + }, }; export const SearchResult: coreClient.CompositeMapper = { @@ -464,16 +531,16 @@ export const SearchResult: coreClient.CompositeMapper = { required: true, readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, - rerankerScore: { + _rerankerScore: { serializedName: "@search\\.rerankerScore", readOnly: true, nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, _highlights: { serializedName: "@search\\.highlights", @@ -481,11 +548,11 @@ export const SearchResult: coreClient.CompositeMapper = { type: { name: "Dictionary", value: { - type: { name: "Sequence", element: { type: { name: "String" } } } - } - } + type: { name: "Sequence", element: { type: { name: "String" } } }, + }, + }, }, - captions: { + _captions: { serializedName: "@search\\.captions", readOnly: true, nullable: true, @@ -494,10 +561,10 @@ export const SearchResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CaptionResult" - } - } - } + className: "QueryCaptionResult", + }, + }, + }, }, documentDebugInfo: { serializedName: "@search\\.documentDebugInfo", @@ -508,38 +575,38 @@ export const SearchResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DocumentDebugInfo" - } - } - } - } - } - } + className: "DocumentDebugInfo", + }, + }, + }, + }, + }, + }, }; -export const CaptionResult: coreClient.CompositeMapper = { +export const QueryCaptionResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CaptionResult", + className: "QueryCaptionResult", additionalProperties: { type: { name: "Object" } }, modelProperties: { text: { serializedName: "text", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, highlights: { serializedName: "highlights", readOnly: true, nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DocumentDebugInfo: coreClient.CompositeMapper = { @@ -551,11 +618,11 @@ export const DocumentDebugInfo: coreClient.CompositeMapper = { serializedName: "semantic", type: { name: "Composite", - className: "SemanticDebugInfo" - } - } - } - } + className: "SemanticDebugInfo", + }, + }, + }, + }, }; export const SemanticDebugInfo: coreClient.CompositeMapper = { @@ -567,8 +634,8 @@ export const SemanticDebugInfo: coreClient.CompositeMapper = { serializedName: "titleField", type: { name: "Composite", - className: "QueryResultDocumentSemanticField" - } + className: "QueryResultDocumentSemanticField", + }, }, contentFields: { serializedName: "contentFields", @@ -578,10 +645,10 @@ export const SemanticDebugInfo: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "QueryResultDocumentSemanticField" - } - } - } + className: "QueryResultDocumentSemanticField", + }, + }, + }, }, keywordFields: { serializedName: "keywordFields", @@ -591,20 +658,20 @@ export const SemanticDebugInfo: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "QueryResultDocumentSemanticField" - } - } - } + className: "QueryResultDocumentSemanticField", + }, + }, + }, }, rerankerInput: { serializedName: "rerankerInput", type: { name: "Composite", - className: "QueryResultDocumentRerankerInput" - } - } - } - } + className: "QueryResultDocumentRerankerInput", + }, + }, + }, + }, }; export const QueryResultDocumentSemanticField: coreClient.CompositeMapper = { @@ -616,18 +683,18 @@ export const QueryResultDocumentSemanticField: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, state: { serializedName: "state", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const QueryResultDocumentRerankerInput: coreClient.CompositeMapper = { @@ -639,25 +706,25 @@ export const QueryResultDocumentRerankerInput: coreClient.CompositeMapper = { serializedName: "title", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, content: { serializedName: "content", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, keywords: { serializedName: "keywords", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SuggestDocumentsResult: coreClient.CompositeMapper = { @@ -674,20 +741,20 @@ export const SuggestDocumentsResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SuggestResult" - } - } - } + className: "SuggestResult", + }, + }, + }, }, coverage: { serializedName: "@search\\.coverage", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const SuggestResult: coreClient.CompositeMapper = { @@ -701,11 +768,11 @@ export const SuggestResult: coreClient.CompositeMapper = { required: true, readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SuggestRequest: coreClient.CompositeMapper = { @@ -716,73 +783,73 @@ export const SuggestRequest: coreClient.CompositeMapper = { filter: { serializedName: "filter", type: { - name: "String" - } + name: "String", + }, }, useFuzzyMatching: { serializedName: "fuzzy", type: { - name: "Boolean" - } + name: "Boolean", + }, }, highlightPostTag: { serializedName: "highlightPostTag", type: { - name: "String" - } + name: "String", + }, }, highlightPreTag: { serializedName: "highlightPreTag", type: { - name: "String" - } + name: "String", + }, }, minimumCoverage: { serializedName: "minimumCoverage", type: { - name: "Number" - } + name: "Number", + }, }, orderBy: { serializedName: "orderby", type: { - name: "String" - } + name: "String", + }, }, searchText: { serializedName: "search", required: true, type: { - name: "String" - } + name: "String", + }, }, searchFields: { serializedName: "searchFields", type: { - name: "String" - } + name: "String", + }, }, select: { serializedName: "select", type: { - name: "String" - } + name: "String", + }, }, suggesterName: { serializedName: "suggesterName", required: true, type: { - name: "String" - } + name: "String", + }, }, top: { serializedName: "top", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const IndexBatch: coreClient.CompositeMapper = { @@ -798,13 +865,13 @@ export const IndexBatch: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IndexAction" - } - } - } - } - } - } + className: "IndexAction", + }, + }, + }, + }, + }, + }, }; export const IndexAction: coreClient.CompositeMapper = { @@ -818,11 +885,11 @@ export const IndexAction: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["upload", "merge", "mergeOrUpload", "delete"] - } - } - } - } + allowedValues: ["upload", "merge", "mergeOrUpload", "delete"], + }, + }, + }, + }, }; export const IndexDocumentsResult: coreClient.CompositeMapper = { @@ -839,13 +906,13 @@ export const IndexDocumentsResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IndexingResult" - } - } - } - } - } - } + className: "IndexingResult", + }, + }, + }, + }, + }, + }, }; export const IndexingResult: coreClient.CompositeMapper = { @@ -858,34 +925,34 @@ export const IndexingResult: coreClient.CompositeMapper = { required: true, readOnly: true, type: { - name: "String" - } + name: "String", + }, }, errorMessage: { serializedName: "errorMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, succeeded: { serializedName: "status", required: true, readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, statusCode: { serializedName: "statusCode", required: true, readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const AutocompleteResult: coreClient.CompositeMapper = { @@ -897,8 +964,8 @@ export const AutocompleteResult: coreClient.CompositeMapper = { serializedName: "@search\\.coverage", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, results: { serializedName: "value", @@ -909,13 +976,13 @@ export const AutocompleteResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AutocompleteItem" - } - } - } - } - } - } + className: "AutocompleteItem", + }, + }, + }, + }, + }, + }, }; export const AutocompleteItem: coreClient.CompositeMapper = { @@ -928,19 +995,19 @@ export const AutocompleteItem: coreClient.CompositeMapper = { required: true, readOnly: true, type: { - name: "String" - } + name: "String", + }, }, queryPlusText: { serializedName: "queryPlusText", required: true, readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AutocompleteRequest: coreClient.CompositeMapper = { @@ -952,91 +1019,92 @@ export const AutocompleteRequest: coreClient.CompositeMapper = { serializedName: "search", required: true, type: { - name: "String" - } + name: "String", + }, }, autocompleteMode: { serializedName: "autocompleteMode", type: { name: "Enum", - allowedValues: ["oneTerm", "twoTerms", "oneTermWithContext"] - } + allowedValues: ["oneTerm", "twoTerms", "oneTermWithContext"], + }, }, filter: { serializedName: "filter", type: { - name: "String" - } + name: "String", + }, }, useFuzzyMatching: { serializedName: "fuzzy", type: { - name: "Boolean" - } + name: "Boolean", + }, }, highlightPostTag: { serializedName: "highlightPostTag", type: { - name: "String" - } + name: "String", + }, }, highlightPreTag: { serializedName: "highlightPreTag", type: { - name: "String" - } + name: "String", + }, }, minimumCoverage: { serializedName: "minimumCoverage", type: { - name: "Number" - } + name: "Number", + }, }, searchFields: { serializedName: "searchFields", type: { - name: "String" - } + name: "String", + }, }, suggesterName: { serializedName: "suggesterName", required: true, type: { - name: "String" - } + name: "String", + }, }, top: { serializedName: "top", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; -export const RawVectorQuery: coreClient.CompositeMapper = { +export const VectorizedQuery: coreClient.CompositeMapper = { serializedName: "vector", type: { name: "Composite", - className: "RawVectorQuery", + className: "VectorizedQuery", uberParent: "VectorQuery", polymorphicDiscriminator: VectorQuery.type.polymorphicDiscriminator, modelProperties: { ...VectorQuery.type.modelProperties, vector: { serializedName: "vector", + required: true, type: { name: "Sequence", element: { type: { - name: "Number" - } - } - } - } - } - } + name: "Number", + }, + }, + }, + }, + }, + }, }; export const VectorizableTextQuery: coreClient.CompositeMapper = { @@ -1050,16 +1118,17 @@ export const VectorizableTextQuery: coreClient.CompositeMapper = { ...VectorQuery.type.modelProperties, text: { serializedName: "text", + required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export let discriminators = { VectorQuery: VectorQuery, - "VectorQuery.vector": RawVectorQuery, - "VectorQuery.text": VectorizableTextQuery + "VectorQuery.vector": VectorizedQuery, + "VectorQuery.text": VectorizableTextQuery, }; diff --git a/sdk/search/search-documents/src/generated/data/models/parameters.ts b/sdk/search/search-documents/src/generated/data/models/parameters.ts index c44b306974f9..81a3eb705736 100644 --- a/sdk/search/search-documents/src/generated/data/models/parameters.ts +++ b/sdk/search/search-documents/src/generated/data/models/parameters.ts @@ -9,13 +9,13 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { SearchRequest as SearchRequestMapper, SuggestRequest as SuggestRequestMapper, IndexBatch as IndexBatchMapper, - AutocompleteRequest as AutocompleteRequestMapper + AutocompleteRequest as AutocompleteRequestMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -25,9 +25,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const endpoint: OperationURLParameter = { @@ -36,10 +36,10 @@ export const endpoint: OperationURLParameter = { serializedName: "endpoint", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const indexName: OperationURLParameter = { @@ -48,9 +48,9 @@ export const indexName: OperationURLParameter = { serializedName: "indexName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion: OperationQueryParameter = { @@ -59,9 +59,9 @@ export const apiVersion: OperationQueryParameter = { serializedName: "api-version", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const searchText: OperationQueryParameter = { @@ -69,9 +69,9 @@ export const searchText: OperationQueryParameter = { mapper: { serializedName: "search", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const includeTotalResultCount: OperationQueryParameter = { @@ -79,9 +79,9 @@ export const includeTotalResultCount: OperationQueryParameter = { mapper: { serializedName: "$count", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const facets: OperationQueryParameter = { @@ -92,12 +92,12 @@ export const facets: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "Multi" + collectionFormat: "Multi", }; export const filter: OperationQueryParameter = { @@ -105,9 +105,9 @@ export const filter: OperationQueryParameter = { mapper: { serializedName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const highlightFields: OperationQueryParameter = { @@ -118,12 +118,12 @@ export const highlightFields: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "CSV" + collectionFormat: "CSV", }; export const highlightPostTag: OperationQueryParameter = { @@ -131,9 +131,9 @@ export const highlightPostTag: OperationQueryParameter = { mapper: { serializedName: "highlightPostTag", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const highlightPreTag: OperationQueryParameter = { @@ -141,9 +141,9 @@ export const highlightPreTag: OperationQueryParameter = { mapper: { serializedName: "highlightPreTag", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const minimumCoverage: OperationQueryParameter = { @@ -151,9 +151,9 @@ export const minimumCoverage: OperationQueryParameter = { mapper: { serializedName: "minimumCoverage", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const orderBy: OperationQueryParameter = { @@ -164,12 +164,12 @@ export const orderBy: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "CSV" + collectionFormat: "CSV", }; export const queryType: OperationQueryParameter = { @@ -178,9 +178,9 @@ export const queryType: OperationQueryParameter = { serializedName: "queryType", type: { name: "Enum", - allowedValues: ["simple", "full", "semantic"] - } - } + allowedValues: ["simple", "full", "semantic"], + }, + }, }; export const scoringParameters: OperationQueryParameter = { @@ -191,12 +191,12 @@ export const scoringParameters: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "Multi" + collectionFormat: "Multi", }; export const scoringProfile: OperationQueryParameter = { @@ -204,9 +204,9 @@ export const scoringProfile: OperationQueryParameter = { mapper: { serializedName: "scoringProfile", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const semanticQuery: OperationQueryParameter = { @@ -214,9 +214,9 @@ export const semanticQuery: OperationQueryParameter = { mapper: { serializedName: "semanticQuery", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const semanticConfiguration: OperationQueryParameter = { @@ -224,9 +224,9 @@ export const semanticConfiguration: OperationQueryParameter = { mapper: { serializedName: "semanticConfiguration", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const semanticErrorHandling: OperationQueryParameter = { @@ -234,22 +234,22 @@ export const semanticErrorHandling: OperationQueryParameter = { mapper: { serializedName: "semanticErrorHandling", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const semanticMaxWaitInMilliseconds: OperationQueryParameter = { parameterPath: ["options", "searchOptions", "semanticMaxWaitInMilliseconds"], mapper: { constraints: { - InclusiveMinimum: 700 + InclusiveMinimum: 700, }, serializedName: "semanticMaxWaitInMilliseconds", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const debug: OperationQueryParameter = { @@ -257,9 +257,9 @@ export const debug: OperationQueryParameter = { mapper: { serializedName: "debug", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const searchFields: OperationQueryParameter = { @@ -270,12 +270,12 @@ export const searchFields: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "CSV" + collectionFormat: "CSV", }; export const queryLanguage: OperationQueryParameter = { @@ -283,9 +283,9 @@ export const queryLanguage: OperationQueryParameter = { mapper: { serializedName: "queryLanguage", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const speller: OperationQueryParameter = { @@ -293,9 +293,9 @@ export const speller: OperationQueryParameter = { mapper: { serializedName: "speller", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const answers: OperationQueryParameter = { @@ -303,9 +303,9 @@ export const answers: OperationQueryParameter = { mapper: { serializedName: "answers", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const searchMode: OperationQueryParameter = { @@ -314,9 +314,9 @@ export const searchMode: OperationQueryParameter = { serializedName: "searchMode", type: { name: "Enum", - allowedValues: ["any", "all"] - } - } + allowedValues: ["any", "all"], + }, + }, }; export const scoringStatistics: OperationQueryParameter = { @@ -325,9 +325,9 @@ export const scoringStatistics: OperationQueryParameter = { serializedName: "scoringStatistics", type: { name: "Enum", - allowedValues: ["local", "global"] - } - } + allowedValues: ["local", "global"], + }, + }, }; export const sessionId: OperationQueryParameter = { @@ -335,9 +335,9 @@ export const sessionId: OperationQueryParameter = { mapper: { serializedName: "sessionId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const select: OperationQueryParameter = { @@ -348,12 +348,12 @@ export const select: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "CSV" + collectionFormat: "CSV", }; export const skip: OperationQueryParameter = { @@ -361,9 +361,9 @@ export const skip: OperationQueryParameter = { mapper: { serializedName: "$skip", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const top: OperationQueryParameter = { @@ -371,9 +371,9 @@ export const top: OperationQueryParameter = { mapper: { serializedName: "$top", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const captions: OperationQueryParameter = { @@ -381,9 +381,9 @@ export const captions: OperationQueryParameter = { mapper: { serializedName: "captions", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const semanticFields: OperationQueryParameter = { @@ -394,12 +394,12 @@ export const semanticFields: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "CSV" + collectionFormat: "CSV", }; export const contentType: OperationParameter = { @@ -409,14 +409,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const searchRequest: OperationParameter = { parameterPath: "searchRequest", - mapper: SearchRequestMapper + mapper: SearchRequestMapper, }; export const key: OperationURLParameter = { @@ -425,9 +425,9 @@ export const key: OperationURLParameter = { serializedName: "key", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const selectedFields: OperationQueryParameter = { @@ -438,12 +438,12 @@ export const selectedFields: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "CSV" + collectionFormat: "CSV", }; export const searchText1: OperationQueryParameter = { @@ -452,9 +452,9 @@ export const searchText1: OperationQueryParameter = { serializedName: "search", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const suggesterName: OperationQueryParameter = { @@ -463,9 +463,9 @@ export const suggesterName: OperationQueryParameter = { serializedName: "suggesterName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const filter1: OperationQueryParameter = { @@ -473,9 +473,9 @@ export const filter1: OperationQueryParameter = { mapper: { serializedName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const useFuzzyMatching: OperationQueryParameter = { @@ -483,9 +483,9 @@ export const useFuzzyMatching: OperationQueryParameter = { mapper: { serializedName: "fuzzy", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const highlightPostTag1: OperationQueryParameter = { @@ -493,9 +493,9 @@ export const highlightPostTag1: OperationQueryParameter = { mapper: { serializedName: "highlightPostTag", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const highlightPreTag1: OperationQueryParameter = { @@ -503,9 +503,9 @@ export const highlightPreTag1: OperationQueryParameter = { mapper: { serializedName: "highlightPreTag", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const minimumCoverage1: OperationQueryParameter = { @@ -513,9 +513,9 @@ export const minimumCoverage1: OperationQueryParameter = { mapper: { serializedName: "minimumCoverage", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const orderBy1: OperationQueryParameter = { @@ -526,12 +526,12 @@ export const orderBy1: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "CSV" + collectionFormat: "CSV", }; export const searchFields1: OperationQueryParameter = { @@ -542,12 +542,12 @@ export const searchFields1: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "CSV" + collectionFormat: "CSV", }; export const select1: OperationQueryParameter = { @@ -558,12 +558,12 @@ export const select1: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "CSV" + collectionFormat: "CSV", }; export const top1: OperationQueryParameter = { @@ -571,19 +571,19 @@ export const top1: OperationQueryParameter = { mapper: { serializedName: "$top", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const suggestRequest: OperationParameter = { parameterPath: "suggestRequest", - mapper: SuggestRequestMapper + mapper: SuggestRequestMapper, }; export const batch: OperationParameter = { parameterPath: "batch", - mapper: IndexBatchMapper + mapper: IndexBatchMapper, }; export const autocompleteMode: OperationQueryParameter = { @@ -592,9 +592,9 @@ export const autocompleteMode: OperationQueryParameter = { serializedName: "autocompleteMode", type: { name: "Enum", - allowedValues: ["oneTerm", "twoTerms", "oneTermWithContext"] - } - } + allowedValues: ["oneTerm", "twoTerms", "oneTermWithContext"], + }, + }, }; export const filter2: OperationQueryParameter = { @@ -602,9 +602,9 @@ export const filter2: OperationQueryParameter = { mapper: { serializedName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const useFuzzyMatching1: OperationQueryParameter = { @@ -612,9 +612,9 @@ export const useFuzzyMatching1: OperationQueryParameter = { mapper: { serializedName: "fuzzy", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const highlightPostTag2: OperationQueryParameter = { @@ -622,9 +622,9 @@ export const highlightPostTag2: OperationQueryParameter = { mapper: { serializedName: "highlightPostTag", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const highlightPreTag2: OperationQueryParameter = { @@ -632,9 +632,9 @@ export const highlightPreTag2: OperationQueryParameter = { mapper: { serializedName: "highlightPreTag", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const minimumCoverage2: OperationQueryParameter = { @@ -642,9 +642,9 @@ export const minimumCoverage2: OperationQueryParameter = { mapper: { serializedName: "minimumCoverage", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const searchFields2: OperationQueryParameter = { @@ -655,12 +655,12 @@ export const searchFields2: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "CSV" + collectionFormat: "CSV", }; export const top2: OperationQueryParameter = { @@ -668,12 +668,12 @@ export const top2: OperationQueryParameter = { mapper: { serializedName: "$top", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const autocompleteRequest: OperationParameter = { parameterPath: "autocompleteRequest", - mapper: AutocompleteRequestMapper + mapper: AutocompleteRequestMapper, }; diff --git a/sdk/search/search-documents/src/generated/data/operations/documents.ts b/sdk/search/search-documents/src/generated/data/operations/documents.ts index b5983df1ca11..45e2d4a84660 100644 --- a/sdk/search/search-documents/src/generated/data/operations/documents.ts +++ b/sdk/search/search-documents/src/generated/data/operations/documents.ts @@ -33,7 +33,7 @@ import { DocumentsAutocompleteGetResponse, AutocompleteRequest, DocumentsAutocompletePostOptionalParams, - DocumentsAutocompletePostResponse + DocumentsAutocompletePostResponse, } from "../models"; /** Class containing Documents operations. */ @@ -53,7 +53,7 @@ export class DocumentsImpl implements Documents { * @param options The options parameters. */ count( - options?: DocumentsCountOptionalParams + options?: DocumentsCountOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, countOperationSpec); } @@ -63,11 +63,11 @@ export class DocumentsImpl implements Documents { * @param options The options parameters. */ searchGet( - options?: DocumentsSearchGetOptionalParams + options?: DocumentsSearchGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - searchGetOperationSpec + searchGetOperationSpec, ); } @@ -78,11 +78,11 @@ export class DocumentsImpl implements Documents { */ searchPost( searchRequest: SearchRequest, - options?: DocumentsSearchPostOptionalParams + options?: DocumentsSearchPostOptionalParams, ): Promise { return this.client.sendOperationRequest( { searchRequest, options }, - searchPostOperationSpec + searchPostOperationSpec, ); } @@ -93,7 +93,7 @@ export class DocumentsImpl implements Documents { */ get( key: string, - options?: DocumentsGetOptionalParams + options?: DocumentsGetOptionalParams, ): Promise { return this.client.sendOperationRequest({ key, options }, getOperationSpec); } @@ -109,11 +109,11 @@ export class DocumentsImpl implements Documents { suggestGet( searchText: string, suggesterName: string, - options?: DocumentsSuggestGetOptionalParams + options?: DocumentsSuggestGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { searchText, suggesterName, options }, - suggestGetOperationSpec + suggestGetOperationSpec, ); } @@ -124,11 +124,11 @@ export class DocumentsImpl implements Documents { */ suggestPost( suggestRequest: SuggestRequest, - options?: DocumentsSuggestPostOptionalParams + options?: DocumentsSuggestPostOptionalParams, ): Promise { return this.client.sendOperationRequest( { suggestRequest, options }, - suggestPostOperationSpec + suggestPostOperationSpec, ); } @@ -139,11 +139,11 @@ export class DocumentsImpl implements Documents { */ index( batch: IndexBatch, - options?: DocumentsIndexOptionalParams + options?: DocumentsIndexOptionalParams, ): Promise { return this.client.sendOperationRequest( { batch, options }, - indexOperationSpec + indexOperationSpec, ); } @@ -157,11 +157,11 @@ export class DocumentsImpl implements Documents { autocompleteGet( searchText: string, suggesterName: string, - options?: DocumentsAutocompleteGetOptionalParams + options?: DocumentsAutocompleteGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { searchText, suggesterName, options }, - autocompleteGetOperationSpec + autocompleteGetOperationSpec, ); } @@ -172,11 +172,11 @@ export class DocumentsImpl implements Documents { */ autocompletePost( autocompleteRequest: AutocompleteRequest, - options?: DocumentsAutocompletePostOptionalParams + options?: DocumentsAutocompletePostOptionalParams, ): Promise { return this.client.sendOperationRequest( { autocompleteRequest, options }, - autocompletePostOperationSpec + autocompletePostOperationSpec, ); } } @@ -188,27 +188,27 @@ const countOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: { type: { name: "Number" } } + bodyMapper: { type: { name: "Number" } }, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexName], headerParameters: [Parameters.accept], - serializer + serializer, }; const searchGetOperationSpec: coreClient.OperationSpec = { path: "/docs", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SearchDocumentsResult + bodyMapper: Mappers.SearchDocumentsResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ Parameters.apiVersion, @@ -240,29 +240,29 @@ const searchGetOperationSpec: coreClient.OperationSpec = { Parameters.skip, Parameters.top, Parameters.captions, - Parameters.semanticFields + Parameters.semanticFields, ], urlParameters: [Parameters.endpoint, Parameters.indexName], headerParameters: [Parameters.accept], - serializer + serializer, }; const searchPostOperationSpec: coreClient.OperationSpec = { path: "/docs/search.post.search", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.SearchDocumentsResult + bodyMapper: Mappers.SearchDocumentsResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.searchRequest, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { path: "/docs('{key}')", @@ -270,28 +270,28 @@ const getOperationSpec: coreClient.OperationSpec = { responses: { 200: { bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + type: { name: "Dictionary", value: { type: { name: "any" } } }, + }, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.selectedFields], urlParameters: [Parameters.endpoint, Parameters.indexName, Parameters.key], headerParameters: [Parameters.accept], - serializer + serializer, }; const suggestGetOperationSpec: coreClient.OperationSpec = { path: "/docs/search.suggest", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SuggestDocumentsResult + bodyMapper: Mappers.SuggestDocumentsResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ Parameters.apiVersion, @@ -305,61 +305,61 @@ const suggestGetOperationSpec: coreClient.OperationSpec = { Parameters.orderBy1, Parameters.searchFields1, Parameters.select1, - Parameters.top1 + Parameters.top1, ], urlParameters: [Parameters.endpoint, Parameters.indexName], headerParameters: [Parameters.accept], - serializer + serializer, }; const suggestPostOperationSpec: coreClient.OperationSpec = { path: "/docs/search.post.suggest", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.SuggestDocumentsResult + bodyMapper: Mappers.SuggestDocumentsResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.suggestRequest, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const indexOperationSpec: coreClient.OperationSpec = { path: "/docs/search.index", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.IndexDocumentsResult + bodyMapper: Mappers.IndexDocumentsResult, }, 207: { - bodyMapper: Mappers.IndexDocumentsResult + bodyMapper: Mappers.IndexDocumentsResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.batch, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const autocompleteGetOperationSpec: coreClient.OperationSpec = { path: "/docs/search.autocomplete", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AutocompleteResult + bodyMapper: Mappers.AutocompleteResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ Parameters.apiVersion, @@ -372,27 +372,27 @@ const autocompleteGetOperationSpec: coreClient.OperationSpec = { Parameters.highlightPreTag2, Parameters.minimumCoverage2, Parameters.searchFields2, - Parameters.top2 + Parameters.top2, ], urlParameters: [Parameters.endpoint, Parameters.indexName], headerParameters: [Parameters.accept], - serializer + serializer, }; const autocompletePostOperationSpec: coreClient.OperationSpec = { path: "/docs/search.post.autocomplete", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AutocompleteResult + bodyMapper: Mappers.AutocompleteResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.autocompleteRequest, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/search/search-documents/src/generated/data/operationsInterfaces/documents.ts b/sdk/search/search-documents/src/generated/data/operationsInterfaces/documents.ts index 7ec698d585c8..2cedcc7c4163 100644 --- a/sdk/search/search-documents/src/generated/data/operationsInterfaces/documents.ts +++ b/sdk/search/search-documents/src/generated/data/operationsInterfaces/documents.ts @@ -28,7 +28,7 @@ import { DocumentsAutocompleteGetResponse, AutocompleteRequest, DocumentsAutocompletePostOptionalParams, - DocumentsAutocompletePostResponse + DocumentsAutocompletePostResponse, } from "../models"; /** Interface representing a Documents. */ @@ -38,14 +38,14 @@ export interface Documents { * @param options The options parameters. */ count( - options?: DocumentsCountOptionalParams + options?: DocumentsCountOptionalParams, ): Promise; /** * Searches for documents in the index. * @param options The options parameters. */ searchGet( - options?: DocumentsSearchGetOptionalParams + options?: DocumentsSearchGetOptionalParams, ): Promise; /** * Searches for documents in the index. @@ -54,7 +54,7 @@ export interface Documents { */ searchPost( searchRequest: SearchRequest, - options?: DocumentsSearchPostOptionalParams + options?: DocumentsSearchPostOptionalParams, ): Promise; /** * Retrieves a document from the index. @@ -63,7 +63,7 @@ export interface Documents { */ get( key: string, - options?: DocumentsGetOptionalParams + options?: DocumentsGetOptionalParams, ): Promise; /** * Suggests documents in the index that match the given partial query text. @@ -76,7 +76,7 @@ export interface Documents { suggestGet( searchText: string, suggesterName: string, - options?: DocumentsSuggestGetOptionalParams + options?: DocumentsSuggestGetOptionalParams, ): Promise; /** * Suggests documents in the index that match the given partial query text. @@ -85,7 +85,7 @@ export interface Documents { */ suggestPost( suggestRequest: SuggestRequest, - options?: DocumentsSuggestPostOptionalParams + options?: DocumentsSuggestPostOptionalParams, ): Promise; /** * Sends a batch of document write actions to the index. @@ -94,7 +94,7 @@ export interface Documents { */ index( batch: IndexBatch, - options?: DocumentsIndexOptionalParams + options?: DocumentsIndexOptionalParams, ): Promise; /** * Autocompletes incomplete query terms based on input text and matching terms in the index. @@ -106,7 +106,7 @@ export interface Documents { autocompleteGet( searchText: string, suggesterName: string, - options?: DocumentsAutocompleteGetOptionalParams + options?: DocumentsAutocompleteGetOptionalParams, ): Promise; /** * Autocompletes incomplete query terms based on input text and matching terms in the index. @@ -115,6 +115,6 @@ export interface Documents { */ autocompletePost( autocompleteRequest: AutocompleteRequest, - options?: DocumentsAutocompletePostOptionalParams + options?: DocumentsAutocompletePostOptionalParams, ): Promise; } diff --git a/sdk/search/search-documents/src/generated/data/searchClient.ts b/sdk/search/search-documents/src/generated/data/searchClient.ts index 6058360aa395..72f9e9f4f56f 100644 --- a/sdk/search/search-documents/src/generated/data/searchClient.ts +++ b/sdk/search/search-documents/src/generated/data/searchClient.ts @@ -7,18 +7,23 @@ */ import * as coreHttpCompat from "@azure/core-http-compat"; +import { + PipelineRequest, + PipelineResponse, + SendRequest, +} from "@azure/core-rest-pipeline"; import { DocumentsImpl } from "./operations"; import { Documents } from "./operationsInterfaces"; import { - ApiVersion20231001Preview, - SearchClientOptionalParams + ApiVersion20240301Preview, + SearchClientOptionalParams, } from "./models"; /** @internal */ export class SearchClient extends coreHttpCompat.ExtendedServiceClient { endpoint: string; indexName: string; - apiVersion: ApiVersion20231001Preview; + apiVersion: ApiVersion20240301Preview; /** * Initializes a new instance of the SearchClient class. @@ -30,8 +35,8 @@ export class SearchClient extends coreHttpCompat.ExtendedServiceClient { constructor( endpoint: string, indexName: string, - apiVersion: ApiVersion20231001Preview, - options?: SearchClientOptionalParams + apiVersion: ApiVersion20240301Preview, + options?: SearchClientOptionalParams, ) { if (endpoint === undefined) { throw new Error("'endpoint' cannot be null"); @@ -48,10 +53,10 @@ export class SearchClient extends coreHttpCompat.ExtendedServiceClient { options = {}; } const defaults: SearchClientOptionalParams = { - requestContentType: "application/json; charset=utf-8" + requestContentType: "application/json; charset=utf-8", }; - const packageDetails = `azsdk-js-search-documents/12.0.0-beta.4`; + const packageDetails = `azsdk-js-search-documents/12.1.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -61,12 +66,12 @@ export class SearchClient extends coreHttpCompat.ExtendedServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, - baseUri: + endpoint: options.endpoint ?? options.baseUri ?? - "{endpoint}/indexes('{indexName}')" + "{endpoint}/indexes('{indexName}')", }; super(optionsWithDefaults); // Parameter assignments @@ -74,6 +79,35 @@ export class SearchClient extends coreHttpCompat.ExtendedServiceClient { this.indexName = indexName; this.apiVersion = apiVersion; this.documents = new DocumentsImpl(this); + this.addCustomApiVersionPolicy(apiVersion); + } + + /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ + private addCustomApiVersionPolicy(apiVersion?: string) { + if (!apiVersion) { + return; + } + const apiVersionPolicy = { + name: "CustomApiVersionPolicy", + async sendRequest( + request: PipelineRequest, + next: SendRequest, + ): Promise { + const param = request.url.split("?"); + if (param.length > 1) { + const newParams = param[1].split("&").map((item) => { + if (item.indexOf("api-version") > -1) { + return "api-version=" + apiVersion; + } else { + return item; + } + }); + request.url = param[0] + "?" + newParams.join("&"); + } + return next(request); + }, + }; + this.pipeline.addPolicy(apiVersionPolicy); } documents: Documents; diff --git a/sdk/search/search-documents/src/generated/service/models/index.ts b/sdk/search/search-documents/src/generated/service/models/index.ts index 053e943618dc..6d61aa20aa2e 100644 --- a/sdk/search/search-documents/src/generated/service/models/index.ts +++ b/sdk/search/search-documents/src/generated/service/models/index.ts @@ -108,12 +108,15 @@ export type LexicalNormalizerUnion = LexicalNormalizer | CustomNormalizer; export type SimilarityUnion = Similarity | ClassicSimilarity | BM25Similarity; export type VectorSearchAlgorithmConfigurationUnion = | VectorSearchAlgorithmConfiguration - | HnswVectorSearchAlgorithmConfiguration - | ExhaustiveKnnVectorSearchAlgorithmConfiguration; + | HnswAlgorithmConfiguration + | ExhaustiveKnnAlgorithmConfiguration; export type VectorSearchVectorizerUnion = | VectorSearchVectorizer | AzureOpenAIVectorizer | CustomVectorizer; +export type BaseVectorSearchCompressionConfigurationUnion = + | BaseVectorSearchCompressionConfiguration + | ScalarQuantizationCompressionConfiguration; /** Represents a datasource definition, which can be used to configure an indexer. */ export interface SearchIndexerDataSource { @@ -135,13 +138,13 @@ export interface SearchIndexerDataSource { dataDeletionDetectionPolicy?: DataDeletionDetectionPolicyUnion; /** The ETag of the data source. */ etag?: string; - /** A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your datasource definition when you want full assurance that no one, not even Microsoft, can decrypt your data source definition in Azure Cognitive Search. Once you have encrypted your data source definition, it will always remain encrypted. Azure Cognitive Search will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your datasource definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. */ + /** A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your datasource definition when you want full assurance that no one, not even Microsoft, can decrypt your data source definition. Once you have encrypted your data source definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your datasource definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. */ encryptionKey?: SearchResourceEncryptionKey; } /** Represents credentials that can be used to connect to a datasource. */ export interface DataSourceCredentials { - /** The connection string for the datasource. Set to '' if you do not want the connection string updated. */ + /** The connection string for the datasource. Set to `` (with brackets) if you don't want the connection string updated. Set to `` if you want to remove the connection string value from the datasource. */ connectionString?: string; } @@ -177,13 +180,13 @@ export interface DataDeletionDetectionPolicy { | "#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy"; } -/** A customer-managed encryption key in Azure Key Vault. Keys that you create and manage can be used to encrypt or decrypt data-at-rest in Azure Cognitive Search, such as indexes and synonym maps. */ +/** A customer-managed encryption key in Azure Key Vault. Keys that you create and manage can be used to encrypt or decrypt data-at-rest, such as indexes and synonym maps. */ export interface SearchResourceEncryptionKey { /** The name of your Azure Key Vault key to be used to encrypt your data at rest. */ keyName: string; /** The version of your Azure Key Vault key to be used to encrypt your data at rest. */ keyVersion: string; - /** The URI of your Azure Key Vault, also referred to as DNS name, that contains the key to be used to encrypt your data at rest. An example URI might be https://my-keyvault-name.vault.azure.net. */ + /** The URI of your Azure Key Vault, also referred to as DNS name, that contains the key to be used to encrypt your data at rest. An example URI might be `https://my-keyvault-name.vault.azure.net`. */ vaultUri: string; /** Optional Azure Active Directory credentials used for accessing your Azure Key Vault. Not required if using managed identity instead. */ accessCredentials?: AzureActiveDirectoryApplicationCredentials; @@ -199,23 +202,53 @@ export interface AzureActiveDirectoryApplicationCredentials { applicationSecret?: string; } -/** Describes an error condition for the Azure Cognitive Search API. */ -export interface SearchError { +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; +} + +/** The error detail. */ +export interface ErrorDetail { /** - * One of a server-defined set of error codes. + * The error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly code?: string; /** - * A human-readable representation of the error. + * The error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message: string; + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; /** - * An array of details about specific errors that led to this reported error. + * The additional info. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly details?: SearchError[]; + readonly info?: Record; } /** Response from a List Datasources request. If successful, it includes the full definitions of all datasources. */ @@ -258,7 +291,7 @@ export interface SearchIndexer { isDisabled?: boolean; /** The ETag of the indexer. */ etag?: string; - /** A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your indexer definition (as well as indexer execution status) when you want full assurance that no one, not even Microsoft, can decrypt them in Azure Cognitive Search. Once you have encrypted your indexer definition, it will always remain encrypted. Azure Cognitive Search will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your indexer definition (and indexer execution status) will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. */ + /** A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your indexer definition (as well as indexer execution status) when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your indexer definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your indexer definition (and indexer execution status) will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. */ encryptionKey?: SearchResourceEncryptionKey; /** Adds caching to an enrichment pipeline to allow for incremental modification steps without having to rebuild the index every time. */ cache?: SearchIndexerCache; @@ -574,15 +607,15 @@ export interface SearchIndexerSkillset { description?: string; /** A list of skills in the skillset. */ skills: SearchIndexerSkillUnion[]; - /** Details about cognitive services to be used when running skills. */ + /** Details about the Azure AI service to be used when running skills. */ cognitiveServicesAccount?: CognitiveServicesAccountUnion; - /** Definition of additional projections to azure blob, table, or files, of enriched data. */ + /** Definition of additional projections to Azure blob, table, or files, of enriched data. */ knowledgeStore?: SearchIndexerKnowledgeStore; /** Definition of additional projections to secondary search index(es). */ indexProjections?: SearchIndexerIndexProjections; /** The ETag of the skillset. */ etag?: string; - /** A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your skillset definition when you want full assurance that no one, not even Microsoft, can decrypt your skillset definition in Azure Cognitive Search. Once you have encrypted your skillset definition, it will always remain encrypted. Azure Cognitive Search will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your skillset definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. */ + /** A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your skillset definition when you want full assurance that no one, not even Microsoft, can decrypt your skillset definition. Once you have encrypted your skillset definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your skillset definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. */ encryptionKey?: SearchResourceEncryptionKey; } @@ -642,13 +675,13 @@ export interface OutputFieldMappingEntry { targetName?: string; } -/** Base type for describing any cognitive service resource attached to a skillset. */ +/** Base type for describing any Azure AI service resource attached to a skillset. */ export interface CognitiveServicesAccount { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: | "#Microsoft.Azure.Search.DefaultCognitiveServices" | "#Microsoft.Azure.Search.CognitiveServicesByKey"; - /** Description of the cognitive service resource attached to a skillset. */ + /** Description of the Azure AI service resource attached to a skillset. */ description?: string; } @@ -746,7 +779,7 @@ export interface SynonymMap { format: "solr"; /** A series of synonym rules in the specified synonym map format. The rules must be separated by newlines. */ synonyms: string; - /** A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your data when you want full assurance that no one, not even Microsoft, can decrypt your data in Azure Cognitive Search. Once you have encrypted your data, it will always remain encrypted. Azure Cognitive Search will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your data will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. */ + /** A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your data when you want full assurance that no one, not even Microsoft, can decrypt your data. Once you have encrypted your data, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your data will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. */ encryptionKey?: SearchResourceEncryptionKey; /** The ETag of the synonym map. */ etag?: string; @@ -785,12 +818,12 @@ export interface SearchIndex { charFilters?: CharFilterUnion[]; /** The normalizers for the index. */ normalizers?: LexicalNormalizerUnion[]; - /** A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your data when you want full assurance that no one, not even Microsoft, can decrypt your data in Azure Cognitive Search. Once you have encrypted your data, it will always remain encrypted. Azure Cognitive Search will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your data will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. */ + /** A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your data when you want full assurance that no one, not even Microsoft, can decrypt your data. Once you have encrypted your data, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your data will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. */ encryptionKey?: SearchResourceEncryptionKey; /** The type of similarity algorithm to be used when scoring and ranking the documents matching a search query. The similarity algorithm can only be defined at index creation time and cannot be modified on existing indexes. If null, the ClassicSimilarity algorithm is used. */ similarity?: SimilarityUnion; /** Defines parameters for a search index that influence semantic capabilities. */ - semanticSettings?: SemanticSettings; + semanticSearch?: SemanticSearch; /** Contains configuration options related to vector search. */ vectorSearch?: VectorSearch; /** The ETag of the index. */ @@ -805,13 +838,15 @@ export interface SearchField { type: SearchFieldDataType; /** A value indicating whether the field uniquely identifies documents in the index. Exactly one top-level field in each index must be chosen as the key field and it must be of type Edm.String. Key fields can be used to look up documents directly and update or delete specific documents. Default is false for simple fields and null for complex fields. */ key?: boolean; - /** A value indicating whether the field can be returned in a search result. You can disable this option if you want to use a field (for example, margin) as a filter, sorting, or scoring mechanism but do not want the field to be visible to the end user. This property must be true for key fields, and it must be null for complex fields. This property can be changed on existing fields. Enabling this property does not cause any increase in index storage requirements. Default is true for simple fields and null for complex fields. */ + /** A value indicating whether the field can be returned in a search result. You can disable this option if you want to use a field (for example, margin) as a filter, sorting, or scoring mechanism but do not want the field to be visible to the end user. This property must be true for key fields, and it must be null for complex fields. This property can be changed on existing fields. Enabling this property does not cause any increase in index storage requirements. Default is true for simple fields, false for vector fields, and null for complex fields. */ retrievable?: boolean; - /** A value indicating whether the field is full-text searchable. This means it will undergo analysis such as word-breaking during indexing. If you set a searchable field to a value like "sunny day", internally it will be split into the individual tokens "sunny" and "day". This enables full-text searches for these terms. Fields of type Edm.String or Collection(Edm.String) are searchable by default. This property must be false for simple fields of other non-string data types, and it must be null for complex fields. Note: searchable fields consume extra space in your index since Azure Cognitive Search will store an additional tokenized version of the field value for full-text searches. If you want to save space in your index and you don't need a field to be included in searches, set searchable to false. */ + /** An immutable value indicating whether the field will be persisted separately on disk to be returned in a search result. You can disable this option if you don't plan to return the field contents in a search response to save on storage overhead. This can only be set during index creation and only for vector fields. This property cannot be changed for existing fields or set as false for new fields. If this property is set as false, the property 'retrievable' must also be set to false. This property must be true or unset for key fields, for new fields, and for non-vector fields, and it must be null for complex fields. Disabling this property will reduce index storage requirements. The default is true for vector fields. */ + stored?: boolean; + /** A value indicating whether the field is full-text searchable. This means it will undergo analysis such as word-breaking during indexing. If you set a searchable field to a value like "sunny day", internally it will be split into the individual tokens "sunny" and "day". This enables full-text searches for these terms. Fields of type Edm.String or Collection(Edm.String) are searchable by default. This property must be false for simple fields of other non-string data types, and it must be null for complex fields. Note: searchable fields consume extra space in your index to accommodate additional tokenized versions of the field value for full-text searches. If you want to save space in your index and you don't need a field to be included in searches, set searchable to false. */ searchable?: boolean; /** A value indicating whether to enable the field to be referenced in $filter queries. filterable differs from searchable in how strings are handled. Fields of type Edm.String or Collection(Edm.String) that are filterable do not undergo word-breaking, so comparisons are for exact matches only. For example, if you set such a field f to "sunny day", $filter=f eq 'sunny' will find no matches, but $filter=f eq 'sunny day' will. This property must be null for complex fields. Default is true for simple fields and null for complex fields. */ filterable?: boolean; - /** A value indicating whether to enable the field to be referenced in $orderby expressions. By default Azure Cognitive Search sorts results by score, but in many experiences users will want to sort by fields in the documents. A simple field can be sortable only if it is single-valued (it has a single value in the scope of the parent document). Simple collection fields cannot be sortable, since they are multi-valued. Simple sub-fields of complex collections are also multi-valued, and therefore cannot be sortable. This is true whether it's an immediate parent field, or an ancestor field, that's the complex collection. Complex fields cannot be sortable and the sortable property must be null for such fields. The default for sortable is true for single-valued simple fields, false for multi-valued simple fields, and null for complex fields. */ + /** A value indicating whether to enable the field to be referenced in $orderby expressions. By default, the search engine sorts results by score, but in many experiences users will want to sort by fields in the documents. A simple field can be sortable only if it is single-valued (it has a single value in the scope of the parent document). Simple collection fields cannot be sortable, since they are multi-valued. Simple sub-fields of complex collections are also multi-valued, and therefore cannot be sortable. This is true whether it's an immediate parent field, or an ancestor field, that's the complex collection. Complex fields cannot be sortable and the sortable property must be null for such fields. The default for sortable is true for single-valued simple fields, false for multi-valued simple fields, and null for complex fields. */ sortable?: boolean; /** A value indicating whether to enable the field to be referenced in facet queries. Typically used in a presentation of search results that includes hit count by category (for example, search for digital cameras and see hits by brand, by megapixels, by price, and so on). This property must be null for complex fields. Fields of type Edm.GeographyPoint or Collection(Edm.GeographyPoint) cannot be facetable. Default is true for all other simple fields. */ facetable?: boolean; @@ -826,7 +861,7 @@ export interface SearchField { /** The dimensionality of the vector field. */ vectorSearchDimensions?: number; /** The name of the vector search profile that specifies the algorithm and vectorizer to use when searching the vector field. */ - vectorSearchProfile?: string; + vectorSearchProfileName?: string; /** A list of the names of synonym maps to associate with this field. This option can be used only with searchable fields. Currently only one synonym map per field is supported. Assigning a synonym map to a field ensures that query terms targeting that field are expanded at query-time using the rules in the synonym map. This attribute can be changed on existing fields. Must be null or an empty collection for complex fields. */ synonymMaps?: string[]; /** A list of sub-fields if this is a field of type Edm.ComplexType or Collection(Edm.ComplexType). Must be null or empty for simple fields. */ @@ -973,9 +1008,9 @@ export interface Similarity { } /** Defines parameters for a search index that influence semantic capabilities. */ -export interface SemanticSettings { +export interface SemanticSearch { /** Allows you to set the name of a default semantic configuration in your index, making it optional to pass it on as a query parameter every time. */ - defaultConfiguration?: string; + defaultConfigurationName?: string; /** The semantic configurations for the index. */ configurations?: SemanticConfiguration[]; } @@ -985,32 +1020,34 @@ export interface SemanticConfiguration { /** The name of the semantic configuration. */ name: string; /** Describes the title, content, and keyword fields to be used for semantic ranking, captions, highlights, and answers. At least one of the three sub properties (titleField, prioritizedKeywordsFields and prioritizedContentFields) need to be set. */ - prioritizedFields: PrioritizedFields; + prioritizedFields: SemanticPrioritizedFields; } /** Describes the title, content, and keywords fields to be used for semantic ranking, captions, highlights, and answers. */ -export interface PrioritizedFields { +export interface SemanticPrioritizedFields { /** Defines the title field to be used for semantic ranking, captions, highlights, and answers. If you don't have a title field in your index, leave this blank. */ titleField?: SemanticField; /** Defines the content fields to be used for semantic ranking, captions, highlights, and answers. For the best result, the selected fields should contain text in natural language form. The order of the fields in the array represents their priority. Fields with lower priority may get truncated if the content is long. */ - prioritizedContentFields?: SemanticField[]; + contentFields?: SemanticField[]; /** Defines the keyword fields to be used for semantic ranking, captions, highlights, and answers. For the best result, the selected fields should contain a list of keywords. The order of the fields in the array represents their priority. Fields with lower priority may get truncated if the content is long. */ - prioritizedKeywordsFields?: SemanticField[]; + keywordsFields?: SemanticField[]; } /** A field that is used as part of the semantic configuration. */ export interface SemanticField { - name?: string; + name: string; } /** Contains configuration options related to vector search. */ export interface VectorSearch { /** Defines combinations of configurations to use with vector search. */ profiles?: VectorSearchProfile[]; - /** Contains configuration options specific to the algorithm used during indexing and/or querying. */ + /** Contains configuration options specific to the algorithm used during indexing or querying. */ algorithms?: VectorSearchAlgorithmConfigurationUnion[]; /** Contains configuration options on how to vectorize text vector queries. */ vectorizers?: VectorSearchVectorizerUnion[]; + /** Contains configuration options specific to the compression method used during indexing or querying. */ + compressions?: BaseVectorSearchCompressionConfigurationUnion[]; } /** Defines a combination of configurations to use with vector search. */ @@ -1018,12 +1055,14 @@ export interface VectorSearchProfile { /** The name to associate with this particular vector search profile. */ name: string; /** The name of the vector search algorithm configuration that specifies the algorithm and optional parameters. */ - algorithm: string; + algorithmConfigurationName: string; /** The name of the kind of vectorization method being configured for use with vector search. */ vectorizer?: string; + /** The name of the compression method configuration that specifies the compression method and optional parameters. */ + compressionConfigurationName?: string; } -/** Contains configuration options specific to the algorithm used during indexing and/or querying. */ +/** Contains configuration options specific to the algorithm used during indexing or querying. */ export interface VectorSearchAlgorithmConfiguration { /** Polymorphic discriminator, which specifies the different types this object can be */ kind: "hnsw" | "exhaustiveKnn"; @@ -1031,7 +1070,7 @@ export interface VectorSearchAlgorithmConfiguration { name: string; } -/** Contains specific details for a vectorization method to be used during query time. */ +/** Specifies the vectorization method to be used during query time. */ export interface VectorSearchVectorizer { /** Polymorphic discriminator, which specifies the different types this object can be */ kind: "azureOpenAI" | "customWebApi"; @@ -1039,6 +1078,18 @@ export interface VectorSearchVectorizer { name: string; } +/** Contains configuration options specific to the compression method used during indexing or querying. */ +export interface BaseVectorSearchCompressionConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "scalarQuantization"; + /** The name to associate with this particular configuration. */ + name: string; + /** If set to true, once the ordered set of results calculated using compressed vectors are obtained, they will be reranked again by recalculating the full-precision similarity scores. This will improve recall at the expense of latency. */ + rerankWithOriginalVectors?: boolean; + /** Default oversampling factor. Oversampling will internally request more documents (specified by this multiplier) in the initial search. This increases the set of results that will be reranked using recomputed similarity scores from full-precision vectors. Minimum value is 1, meaning no oversampling (1x). This parameter can only be set when rerankWithOriginalVectors is true. Higher values improve recall at the expense of latency. */ + defaultOversampling?: number; +} + /** Response from a List Indexes request. If successful, it includes the full definitions of all indexes. */ export interface ListIndexesResult { /** @@ -1182,7 +1233,7 @@ export interface ServiceLimits { maxComplexObjectsInCollectionsPerDocument?: number; } -/** Contains the parameters specific to hnsw algorithm. */ +/** Contains the parameters specific to the HNSW algorithm. */ export interface HnswParameters { /** The number of bi-directional links created for every new element during construction. Increasing this parameter value may improve recall and reduce retrieval times for datasets with high intrinsic dimensionality at the expense of increased memory consumption and longer indexing time. */ m?: number; @@ -1200,25 +1251,31 @@ export interface ExhaustiveKnnParameters { metric?: VectorSearchAlgorithmMetric; } -/** Contains the parameters specific to using an Azure Open AI service for vectorization at query time. */ +/** Contains the parameters specific to Scalar Quantization. */ +export interface ScalarQuantizationParameters { + /** The quantized data type of compressed vector values. */ + quantizedDataType?: VectorSearchCompressionTargetDataType; +} + +/** Specifies the parameters for connecting to the Azure OpenAI resource. */ export interface AzureOpenAIParameters { - /** The resource uri for your Azure Open AI resource. */ + /** The resource URI of the Azure OpenAI resource. */ resourceUri?: string; - /** ID of your Azure Open AI model deployment on the designated resource. */ + /** ID of the Azure OpenAI model deployment on the designated resource. */ deploymentId?: string; - /** API key for the designated Azure Open AI resource. */ + /** API key of the designated Azure OpenAI resource. */ apiKey?: string; /** The user-assigned managed identity used for outbound connections. */ authIdentity?: SearchIndexerDataIdentityUnion; } -/** Contains the parameters specific to generating vector embeddings via a custom endpoint. */ -export interface CustomVectorizerParameters { - /** The uri for the Web API. */ +/** Specifies the properties for connecting to a user-defined vectorizer. */ +export interface CustomWebApiParameters { + /** The URI of the Web API providing the vectorizer. */ uri?: string; - /** The headers required to make the http request. */ + /** The headers required to make the HTTP request. */ httpHeaders?: { [propertyName: string]: string }; - /** The method for the http request. */ + /** The method for the HTTP request. */ httpMethod?: string; /** The desired timeout for the request. Default is 30 seconds. */ timeout?: string; @@ -1299,190 +1356,196 @@ export interface CustomEntityAlias { } /** Clears the identity property of a datasource. */ -export type SearchIndexerDataNoneIdentity = SearchIndexerDataIdentity & { +export interface SearchIndexerDataNoneIdentity + extends SearchIndexerDataIdentity { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.DataNoneIdentity"; -}; +} /** Specifies the identity for a datasource to use. */ -export type SearchIndexerDataUserAssignedIdentity = SearchIndexerDataIdentity & { +export interface SearchIndexerDataUserAssignedIdentity + extends SearchIndexerDataIdentity { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.DataUserAssignedIdentity"; /** The fully qualified Azure resource Id of a user assigned managed identity typically in the form "/subscriptions/12345678-1234-1234-1234-1234567890ab/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId" that should have been assigned to the search service. */ userAssignedIdentity: string; -}; +} /** Defines a data change detection policy that captures changes based on the value of a high water mark column. */ -export type HighWaterMarkChangeDetectionPolicy = DataChangeDetectionPolicy & { +export interface HighWaterMarkChangeDetectionPolicy + extends DataChangeDetectionPolicy { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy"; /** The name of the high water mark column. */ highWaterMarkColumnName: string; -}; +} /** Defines a data change detection policy that captures changes using the Integrated Change Tracking feature of Azure SQL Database. */ -export type SqlIntegratedChangeTrackingPolicy = DataChangeDetectionPolicy & { +export interface SqlIntegratedChangeTrackingPolicy + extends DataChangeDetectionPolicy { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy"; -}; +} /** Defines a data deletion detection policy that implements a soft-deletion strategy. It determines whether an item should be deleted based on the value of a designated 'soft delete' column. */ -export type SoftDeleteColumnDeletionDetectionPolicy = DataDeletionDetectionPolicy & { +export interface SoftDeleteColumnDeletionDetectionPolicy + extends DataDeletionDetectionPolicy { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy"; /** The name of the column to use for soft-deletion detection. */ softDeleteColumnName?: string; /** The marker value that identifies an item as deleted. */ softDeleteMarkerValue?: string; -}; +} /** Defines a data deletion detection policy utilizing Azure Blob Storage's native soft delete feature for deletion detection. */ -export type NativeBlobSoftDeleteDeletionDetectionPolicy = DataDeletionDetectionPolicy & { +export interface NativeBlobSoftDeleteDeletionDetectionPolicy + extends DataDeletionDetectionPolicy { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy"; -}; +} /** A skill that enables scenarios that require a Boolean operation to determine the data to assign to an output. */ -export type ConditionalSkill = SearchIndexerSkill & { +export interface ConditionalSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Util.ConditionalSkill"; -}; +} /** A skill that uses text analytics for key phrase extraction. */ -export type KeyPhraseExtractionSkill = SearchIndexerSkill & { +export interface KeyPhraseExtractionSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.KeyPhraseExtractionSkill"; - /** A value indicating which language code to use. Default is en. */ + /** A value indicating which language code to use. Default is `en`. */ defaultLanguageCode?: KeyPhraseExtractionSkillLanguage; /** A number indicating how many key phrases to return. If absent, all identified key phrases will be returned. */ maxKeyPhraseCount?: number; /** The version of the model to use when calling the Text Analytics service. It will default to the latest available when not specified. We recommend you do not specify this value unless absolutely necessary. */ modelVersion?: string; -}; +} /** A skill that extracts text from image files. */ -export type OcrSkill = SearchIndexerSkill & { +export interface OcrSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Vision.OcrSkill"; - /** A value indicating which language code to use. Default is en. */ + /** A value indicating which language code to use. Default is `en`. */ defaultLanguageCode?: OcrSkillLanguage; /** A value indicating to turn orientation detection on or not. Default is false. */ shouldDetectOrientation?: boolean; /** Defines the sequence of characters to use between the lines of text recognized by the OCR skill. The default value is "space". */ lineEnding?: LineEnding; -}; +} /** A skill that analyzes image files. It extracts a rich set of visual features based on the image content. */ -export type ImageAnalysisSkill = SearchIndexerSkill & { +export interface ImageAnalysisSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Vision.ImageAnalysisSkill"; - /** A value indicating which language code to use. Default is en. */ + /** A value indicating which language code to use. Default is `en`. */ defaultLanguageCode?: ImageAnalysisSkillLanguage; /** A list of visual features. */ visualFeatures?: VisualFeature[]; /** A string indicating which domain-specific details to return. */ details?: ImageDetail[]; -}; +} /** A skill that detects the language of input text and reports a single language code for every document submitted on the request. The language code is paired with a score indicating the confidence of the analysis. */ -export type LanguageDetectionSkill = SearchIndexerSkill & { +export interface LanguageDetectionSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.LanguageDetectionSkill"; /** A country code to use as a hint to the language detection model if it cannot disambiguate the language. */ defaultCountryHint?: string; /** The version of the model to use when calling the Text Analytics service. It will default to the latest available when not specified. We recommend you do not specify this value unless absolutely necessary. */ modelVersion?: string; -}; +} /** A skill for reshaping the outputs. It creates a complex type to support composite fields (also known as multipart fields). */ -export type ShaperSkill = SearchIndexerSkill & { +export interface ShaperSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Util.ShaperSkill"; -}; +} /** A skill for merging two or more strings into a single unified string, with an optional user-defined delimiter separating each component part. */ -export type MergeSkill = SearchIndexerSkill & { +export interface MergeSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.MergeSkill"; /** The tag indicates the start of the merged text. By default, the tag is an empty space. */ insertPreTag?: string; /** The tag indicates the end of the merged text. By default, the tag is an empty space. */ insertPostTag?: string; -}; +} /** * This skill is deprecated. Use the V3.EntityRecognitionSkill instead. * * @deprecated */ -export type EntityRecognitionSkill = SearchIndexerSkill & { +export interface EntityRecognitionSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.EntityRecognitionSkill"; /** A list of entity categories that should be extracted. */ categories?: EntityCategory[]; - /** A value indicating which language code to use. Default is en. */ + /** A value indicating which language code to use. Default is `en`. */ defaultLanguageCode?: EntityRecognitionSkillLanguage; /** Determines whether or not to include entities which are well known but don't conform to a pre-defined type. If this configuration is not set (default), set to null or set to false, entities which don't conform to one of the pre-defined types will not be surfaced. */ includeTypelessEntities?: boolean; /** A value between 0 and 1 that be used to only include entities whose confidence score is greater than the value specified. If not set (default), or if explicitly set to null, all entities will be included. */ minimumPrecision?: number; -}; +} /** * This skill is deprecated. Use the V3.SentimentSkill instead. * * @deprecated */ -export type SentimentSkill = SearchIndexerSkill & { +export interface SentimentSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.SentimentSkill"; - /** A value indicating which language code to use. Default is en. */ + /** A value indicating which language code to use. Default is `en`. */ defaultLanguageCode?: SentimentSkillLanguage; -}; +} /** Using the Text Analytics API, evaluates unstructured text and for each record, provides sentiment labels (such as "negative", "neutral" and "positive") based on the highest confidence score found by the service at a sentence and document-level. */ -export type SentimentSkillV3 = SearchIndexerSkill & { +export interface SentimentSkillV3 extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.V3.SentimentSkill"; - /** A value indicating which language code to use. Default is en. */ + /** A value indicating which language code to use. Default is `en`. */ defaultLanguageCode?: string; /** If set to true, the skill output will include information from Text Analytics for opinion mining, namely targets (nouns or verbs) and their associated assessment (adjective) in the text. Default is false. */ includeOpinionMining?: boolean; /** The version of the model to use when calling the Text Analytics service. It will default to the latest available when not specified. We recommend you do not specify this value unless absolutely necessary. */ modelVersion?: string; -}; +} /** Using the Text Analytics API, extracts linked entities from text. */ -export type EntityLinkingSkill = SearchIndexerSkill & { +export interface EntityLinkingSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.V3.EntityLinkingSkill"; - /** A value indicating which language code to use. Default is en. */ + /** A value indicating which language code to use. Default is `en`. */ defaultLanguageCode?: string; /** A value between 0 and 1 that be used to only include entities whose confidence score is greater than the value specified. If not set (default), or if explicitly set to null, all entities will be included. */ minimumPrecision?: number; /** The version of the model to use when calling the Text Analytics service. It will default to the latest available when not specified. We recommend you do not specify this value unless absolutely necessary. */ modelVersion?: string; -}; +} /** Using the Text Analytics API, extracts entities of different types from text. */ -export type EntityRecognitionSkillV3 = SearchIndexerSkill & { +export interface EntityRecognitionSkillV3 extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.V3.EntityRecognitionSkill"; /** A list of entity categories that should be extracted. */ categories?: string[]; - /** A value indicating which language code to use. Default is en. */ + /** A value indicating which language code to use. Default is `en`. */ defaultLanguageCode?: string; /** A value between 0 and 1 that be used to only include entities whose confidence score is greater than the value specified. If not set (default), or if explicitly set to null, all entities will be included. */ minimumPrecision?: number; - /** The version of the model to use when calling the Text Analytics service. It will default to the latest available when not specified. We recommend you do not specify this value unless absolutely necessary. */ + /** The version of the model to use when calling the Text Analytics API. It will default to the latest available when not specified. We recommend you do not specify this value unless absolutely necessary. */ modelVersion?: string; -}; +} /** Using the Text Analytics API, extracts personal information from an input text and gives you the option of masking it. */ -export type PIIDetectionSkill = SearchIndexerSkill & { +export interface PIIDetectionSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.PIIDetectionSkill"; - /** A value indicating which language code to use. Default is en. */ + /** A value indicating which language code to use. Default is `en`. */ defaultLanguageCode?: string; /** A value between 0 and 1 that be used to only include entities whose confidence score is greater than the value specified. If not set (default), or if explicitly set to null, all entities will be included. */ minimumPrecision?: number; @@ -1493,16 +1556,16 @@ export type PIIDetectionSkill = SearchIndexerSkill & { /** The version of the model to use when calling the Text Analytics service. It will default to the latest available when not specified. We recommend you do not specify this value unless absolutely necessary. */ modelVersion?: string; /** A list of PII entity categories that should be extracted and masked. */ - piiCategories?: string[]; + categories?: string[]; /** If specified, will set the PII domain to include only a subset of the entity categories. Possible values include: 'phi', 'none'. Default is 'none'. */ domain?: string; -}; +} /** A skill to split a string into chunks of text. */ -export type SplitSkill = SearchIndexerSkill & { +export interface SplitSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.SplitSkill"; - /** A value indicating which language code to use. Default is en. */ + /** A value indicating which language code to use. Default is `en`. */ defaultLanguageCode?: SplitSkillLanguage; /** A value indicating which split mode to perform. */ textSplitMode?: TextSplitMode; @@ -1512,13 +1575,13 @@ export type SplitSkill = SearchIndexerSkill & { pageOverlapLength?: number; /** Only applicable when textSplitMode is set to 'pages'. If specified, the SplitSkill will discontinue splitting after processing the first 'maximumPagesToTake' pages, in order to improve performance when only a few initial pages are needed from each document. */ maximumPagesToTake?: number; -}; +} /** A skill looks for text from a custom, user-defined list of words and phrases. */ -export type CustomEntityLookupSkill = SearchIndexerSkill & { +export interface CustomEntityLookupSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.CustomEntityLookupSkill"; - /** A value indicating which language code to use. Default is en. */ + /** A value indicating which language code to use. Default is `en`. */ defaultLanguageCode?: CustomEntityLookupSkillLanguage; /** Path to a JSON or CSV file containing all the target text to match against. This entity definition is read at the beginning of an indexer run. Any updates to this file during an indexer run will not take effect until subsequent runs. This config must be accessible over HTTPS. */ entitiesDefinitionUri?: string; @@ -1530,22 +1593,22 @@ export type CustomEntityLookupSkill = SearchIndexerSkill & { globalDefaultAccentSensitive?: boolean; /** A global flag for FuzzyEditDistance. If FuzzyEditDistance is not set in CustomEntity, this value will be the default value. */ globalDefaultFuzzyEditDistance?: number; -}; +} /** A skill to translate text from one language to another. */ -export type TextTranslationSkill = SearchIndexerSkill & { +export interface TextTranslationSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.TranslationSkill"; /** The language code to translate documents into for documents that don't specify the to language explicitly. */ defaultToLanguageCode: TextTranslationSkillLanguage; /** The language code to translate documents from for documents that don't specify the from language explicitly. */ defaultFromLanguageCode?: TextTranslationSkillLanguage; - /** The language code to translate documents from when neither the fromLanguageCode input nor the defaultFromLanguageCode parameter are provided, and the automatic language detection is unsuccessful. Default is en. */ + /** The language code to translate documents from when neither the fromLanguageCode input nor the defaultFromLanguageCode parameter are provided, and the automatic language detection is unsuccessful. Default is `en`. */ suggestedFrom?: TextTranslationSkillLanguage; -}; +} /** A skill that extracts content from a file within the enrichment pipeline. */ -export type DocumentExtractionSkill = SearchIndexerSkill & { +export interface DocumentExtractionSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Util.DocumentExtractionSkill"; /** The parsingMode for the skill. Will be set to 'default' if not defined. */ @@ -1554,10 +1617,10 @@ export type DocumentExtractionSkill = SearchIndexerSkill & { dataToExtract?: string; /** A dictionary of configurations for the skill. */ configuration?: { [propertyName: string]: any }; -}; +} /** A skill that can call a Web API endpoint, allowing you to extend a skillset by having it call your custom code. */ -export type WebApiSkill = SearchIndexerSkill & { +export interface WebApiSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Custom.WebApiSkill"; /** The url for the Web API. */ @@ -1576,10 +1639,10 @@ export type WebApiSkill = SearchIndexerSkill & { authResourceId?: string; /** The user-assigned managed identity used for outbound connections. If an authResourceId is provided and it's not specified, the system-assigned managed identity is used. On updates to the indexer, if the identity is unspecified, the value remains unchanged. If set to "none", the value of this property is cleared. */ authIdentity?: SearchIndexerDataIdentityUnion; -}; +} /** The AML skill allows you to extend AI enrichment with a custom Azure Machine Learning (AML) model. Once an AML model is trained and deployed, an AML skill integrates it into AI enrichment. */ -export type AzureMachineLearningSkill = SearchIndexerSkill & { +export interface AzureMachineLearningSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Custom.AmlSkill"; /** (Required for no authentication or key authentication) The scoring URI of the AML service to which the JSON payload will be sent. Only the https URI scheme is allowed. */ @@ -1594,82 +1657,85 @@ export type AzureMachineLearningSkill = SearchIndexerSkill & { region?: string; /** (Optional) When specified, indicates the number of calls the indexer will make in parallel to the endpoint you have provided. You can decrease this value if your endpoint is failing under too high of a request load, or raise it if your endpoint is able to accept more requests and you would like an increase in the performance of the indexer. If not set, a default value of 5 is used. The degreeOfParallelism can be set to a maximum of 10 and a minimum of 1. */ degreeOfParallelism?: number; -}; +} -/** Allows you to generate a vector embedding for a given text input using the Azure Open AI service. */ -export type AzureOpenAIEmbeddingSkill = SearchIndexerSkill & { +/** Allows you to generate a vector embedding for a given text input using the Azure OpenAI resource. */ +export interface AzureOpenAIEmbeddingSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill"; - /** The resource uri for your Azure Open AI resource. */ + /** The resource URI for your Azure OpenAI resource. */ resourceUri?: string; - /** ID of your Azure Open AI model deployment on the designated resource. */ + /** ID of your Azure OpenAI model deployment on the designated resource. */ deploymentId?: string; - /** API key for the designated Azure Open AI resource. */ + /** API key for the designated Azure OpenAI resource. */ apiKey?: string; /** The user-assigned managed identity used for outbound connections. */ authIdentity?: SearchIndexerDataIdentityUnion; -}; +} -/** An empty object that represents the default cognitive service resource for a skillset. */ -export type DefaultCognitiveServicesAccount = CognitiveServicesAccount & { +/** An empty object that represents the default Azure AI service resource for a skillset. */ +export interface DefaultCognitiveServicesAccount + extends CognitiveServicesAccount { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.DefaultCognitiveServices"; -}; +} -/** A cognitive service resource provisioned with a key that is attached to a skillset. */ -export type CognitiveServicesAccountKey = CognitiveServicesAccount & { +/** The multi-region account key of an Azure AI service resource that's attached to a skillset. */ +export interface CognitiveServicesAccountKey extends CognitiveServicesAccount { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.CognitiveServicesByKey"; - /** The key used to provision the cognitive service resource attached to a skillset. */ + /** The key used to provision the Azure AI service resource attached to a skillset. */ key: string; -}; +} /** Description for what data to store in Azure Tables. */ -export type SearchIndexerKnowledgeStoreTableProjectionSelector = SearchIndexerKnowledgeStoreProjectionSelector & { +export interface SearchIndexerKnowledgeStoreTableProjectionSelector + extends SearchIndexerKnowledgeStoreProjectionSelector { /** Name of the Azure table to store projected data in. */ tableName: string; -}; +} /** Abstract class to share properties between concrete selectors. */ -export type SearchIndexerKnowledgeStoreBlobProjectionSelector = SearchIndexerKnowledgeStoreProjectionSelector & { +export interface SearchIndexerKnowledgeStoreBlobProjectionSelector + extends SearchIndexerKnowledgeStoreProjectionSelector { /** Blob container to store projections in. */ storageContainer: string; -}; +} /** Defines a function that boosts scores based on distance from a geographic location. */ -export type DistanceScoringFunction = ScoringFunction & { +export interface DistanceScoringFunction extends ScoringFunction { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "distance"; /** Parameter values for the distance scoring function. */ parameters: DistanceScoringParameters; -}; +} /** Defines a function that boosts scores based on the value of a date-time field. */ -export type FreshnessScoringFunction = ScoringFunction & { +export interface FreshnessScoringFunction extends ScoringFunction { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "freshness"; /** Parameter values for the freshness scoring function. */ parameters: FreshnessScoringParameters; -}; +} /** Defines a function that boosts scores based on the magnitude of a numeric field. */ -export type MagnitudeScoringFunction = ScoringFunction & { +export interface MagnitudeScoringFunction extends ScoringFunction { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "magnitude"; /** Parameter values for the magnitude scoring function. */ parameters: MagnitudeScoringParameters; -}; +} /** Defines a function that boosts scores of documents with string values matching a given list of tags. */ -export type TagScoringFunction = ScoringFunction & { +export interface TagScoringFunction extends ScoringFunction { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "tag"; /** Parameter values for the tag scoring function. */ parameters: TagScoringParameters; -}; +} /** Allows you to take control over the process of converting text into indexable/searchable tokens. It's a user-defined configuration consisting of a single predefined tokenizer and one or more filters. The tokenizer is responsible for breaking text into tokens, and the filters for modifying tokens emitted by the tokenizer. */ -export type CustomAnalyzer = LexicalAnalyzer & { +export interface CustomAnalyzer extends LexicalAnalyzer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.CustomAnalyzer"; /** The name of the tokenizer to use to divide continuous text into a sequence of tokens, such as breaking a sentence into words. KnownTokenizerNames is an enum containing known values. */ @@ -1678,10 +1744,10 @@ export type CustomAnalyzer = LexicalAnalyzer & { tokenFilters?: string[]; /** A list of character filters used to prepare input text before it is processed by the tokenizer. For instance, they can replace certain characters or symbols. The filters are run in the order in which they are listed. */ charFilters?: string[]; -}; +} /** Flexibly separates text into terms via a regular expression pattern. This analyzer is implemented using Apache Lucene. */ -export type PatternAnalyzer = LexicalAnalyzer & { +export interface PatternAnalyzer extends LexicalAnalyzer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.PatternAnalyzer"; /** A value indicating whether terms should be lower-cased. Default is true. */ @@ -1692,36 +1758,36 @@ export type PatternAnalyzer = LexicalAnalyzer & { flags?: string; /** A list of stopwords. */ stopwords?: string[]; -}; +} /** Standard Apache Lucene analyzer; Composed of the standard tokenizer, lowercase filter and stop filter. */ -export type LuceneStandardAnalyzer = LexicalAnalyzer & { +export interface LuceneStandardAnalyzer extends LexicalAnalyzer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.StandardAnalyzer"; /** The maximum token length. Default is 255. Tokens longer than the maximum length are split. The maximum token length that can be used is 300 characters. */ maxTokenLength?: number; /** A list of stopwords. */ stopwords?: string[]; -}; +} /** Divides text at non-letters; Applies the lowercase and stopword token filters. This analyzer is implemented using Apache Lucene. */ -export type StopAnalyzer = LexicalAnalyzer & { +export interface StopAnalyzer extends LexicalAnalyzer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.StopAnalyzer"; /** A list of stopwords. */ stopwords?: string[]; -}; +} /** Grammar-based tokenizer that is suitable for processing most European-language documents. This tokenizer is implemented using Apache Lucene. */ -export type ClassicTokenizer = LexicalTokenizer & { +export interface ClassicTokenizer extends LexicalTokenizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.ClassicTokenizer"; /** The maximum token length. Default is 255. Tokens longer than the maximum length are split. The maximum token length that can be used is 300 characters. */ maxTokenLength?: number; -}; +} /** Tokenizes the input from an edge into n-grams of the given size(s). This tokenizer is implemented using Apache Lucene. */ -export type EdgeNGramTokenizer = LexicalTokenizer & { +export interface EdgeNGramTokenizer extends LexicalTokenizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.EdgeNGramTokenizer"; /** The minimum n-gram length. Default is 1. Maximum is 300. Must be less than the value of maxGram. */ @@ -1730,26 +1796,26 @@ export type EdgeNGramTokenizer = LexicalTokenizer & { maxGram?: number; /** Character classes to keep in the tokens. */ tokenChars?: TokenCharacterKind[]; -}; +} /** Emits the entire input as a single token. This tokenizer is implemented using Apache Lucene. */ -export type KeywordTokenizer = LexicalTokenizer & { +export interface KeywordTokenizer extends LexicalTokenizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.KeywordTokenizer"; /** The read buffer size in bytes. Default is 256. */ bufferSize?: number; -}; +} /** Emits the entire input as a single token. This tokenizer is implemented using Apache Lucene. */ -export type KeywordTokenizerV2 = LexicalTokenizer & { +export interface KeywordTokenizerV2 extends LexicalTokenizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.KeywordTokenizerV2"; /** The maximum token length. Default is 256. Tokens longer than the maximum length are split. The maximum token length that can be used is 300 characters. */ maxTokenLength?: number; -}; +} /** Divides text using language-specific rules. */ -export type MicrosoftLanguageTokenizer = LexicalTokenizer & { +export interface MicrosoftLanguageTokenizer extends LexicalTokenizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.MicrosoftLanguageTokenizer"; /** The maximum token length. Tokens longer than the maximum length are split. Maximum token length that can be used is 300 characters. Tokens longer than 300 characters are first split into tokens of length 300 and then each of those tokens is split based on the max token length set. Default is 255. */ @@ -1758,10 +1824,10 @@ export type MicrosoftLanguageTokenizer = LexicalTokenizer & { isSearchTokenizer?: boolean; /** The language to use. The default is English. */ language?: MicrosoftTokenizerLanguage; -}; +} /** Divides text using language-specific rules and reduces words to their base forms. */ -export type MicrosoftLanguageStemmingTokenizer = LexicalTokenizer & { +export interface MicrosoftLanguageStemmingTokenizer extends LexicalTokenizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.MicrosoftLanguageStemmingTokenizer"; /** The maximum token length. Tokens longer than the maximum length are split. Maximum token length that can be used is 300 characters. Tokens longer than 300 characters are first split into tokens of length 300 and then each of those tokens is split based on the max token length set. Default is 255. */ @@ -1770,10 +1836,10 @@ export type MicrosoftLanguageStemmingTokenizer = LexicalTokenizer & { isSearchTokenizer?: boolean; /** The language to use. The default is English. */ language?: MicrosoftStemmingTokenizerLanguage; -}; +} /** Tokenizes the input into n-grams of the given size(s). This tokenizer is implemented using Apache Lucene. */ -export type NGramTokenizer = LexicalTokenizer & { +export interface NGramTokenizer extends LexicalTokenizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.NGramTokenizer"; /** The minimum n-gram length. Default is 1. Maximum is 300. Must be less than the value of maxGram. */ @@ -1782,10 +1848,10 @@ export type NGramTokenizer = LexicalTokenizer & { maxGram?: number; /** Character classes to keep in the tokens. */ tokenChars?: TokenCharacterKind[]; -}; +} /** Tokenizer for path-like hierarchies. This tokenizer is implemented using Apache Lucene. */ -export type PathHierarchyTokenizerV2 = LexicalTokenizer & { +export interface PathHierarchyTokenizerV2 extends LexicalTokenizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.PathHierarchyTokenizerV2"; /** The delimiter character to use. Default is "/". */ @@ -1798,10 +1864,10 @@ export type PathHierarchyTokenizerV2 = LexicalTokenizer & { reverseTokenOrder?: boolean; /** The number of initial tokens to skip. Default is 0. */ numberOfTokensToSkip?: number; -}; +} /** Tokenizer that uses regex pattern matching to construct distinct tokens. This tokenizer is implemented using Apache Lucene. */ -export type PatternTokenizer = LexicalTokenizer & { +export interface PatternTokenizer extends LexicalTokenizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.PatternTokenizer"; /** A regular expression pattern to match token separators. Default is an expression that matches one or more non-word characters. */ @@ -1810,52 +1876,52 @@ export type PatternTokenizer = LexicalTokenizer & { flags?: string; /** The zero-based ordinal of the matching group in the regular expression pattern to extract into tokens. Use -1 if you want to use the entire pattern to split the input into tokens, irrespective of matching groups. Default is -1. */ group?: number; -}; +} /** Breaks text following the Unicode Text Segmentation rules. This tokenizer is implemented using Apache Lucene. */ -export type LuceneStandardTokenizer = LexicalTokenizer & { +export interface LuceneStandardTokenizer extends LexicalTokenizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.StandardTokenizer"; /** The maximum token length. Default is 255. Tokens longer than the maximum length are split. */ maxTokenLength?: number; -}; +} /** Breaks text following the Unicode Text Segmentation rules. This tokenizer is implemented using Apache Lucene. */ -export type LuceneStandardTokenizerV2 = LexicalTokenizer & { +export interface LuceneStandardTokenizerV2 extends LexicalTokenizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.StandardTokenizerV2"; /** The maximum token length. Default is 255. Tokens longer than the maximum length are split. The maximum token length that can be used is 300 characters. */ maxTokenLength?: number; -}; +} /** Tokenizes urls and emails as one token. This tokenizer is implemented using Apache Lucene. */ -export type UaxUrlEmailTokenizer = LexicalTokenizer & { +export interface UaxUrlEmailTokenizer extends LexicalTokenizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.UaxUrlEmailTokenizer"; /** The maximum token length. Default is 255. Tokens longer than the maximum length are split. The maximum token length that can be used is 300 characters. */ maxTokenLength?: number; -}; +} /** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. This token filter is implemented using Apache Lucene. */ -export type AsciiFoldingTokenFilter = TokenFilter & { +export interface AsciiFoldingTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.AsciiFoldingTokenFilter"; /** A value indicating whether the original token will be kept. Default is false. */ preserveOriginal?: boolean; -}; +} /** Forms bigrams of CJK terms that are generated from the standard tokenizer. This token filter is implemented using Apache Lucene. */ -export type CjkBigramTokenFilter = TokenFilter & { +export interface CjkBigramTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.CjkBigramTokenFilter"; /** The scripts to ignore. */ ignoreScripts?: CjkBigramTokenFilterScripts[]; /** A value indicating whether to output both unigrams and bigrams (if true), or just bigrams (if false). Default is false. */ outputUnigrams?: boolean; -}; +} /** Construct bigrams for frequently occurring terms while indexing. Single terms are still indexed too, with bigrams overlaid. This token filter is implemented using Apache Lucene. */ -export type CommonGramTokenFilter = TokenFilter & { +export interface CommonGramTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.CommonGramTokenFilter"; /** The set of common words. */ @@ -1864,10 +1930,10 @@ export type CommonGramTokenFilter = TokenFilter & { ignoreCase?: boolean; /** A value that indicates whether the token filter is in query mode. When in query mode, the token filter generates bigrams and then removes common words and single terms followed by a common word. Default is false. */ useQueryMode?: boolean; -}; +} /** Decomposes compound words found in many Germanic languages. This token filter is implemented using Apache Lucene. */ -export type DictionaryDecompounderTokenFilter = TokenFilter & { +export interface DictionaryDecompounderTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.DictionaryDecompounderTokenFilter"; /** The list of words to match against. */ @@ -1880,10 +1946,10 @@ export type DictionaryDecompounderTokenFilter = TokenFilter & { maxSubwordSize?: number; /** A value indicating whether to add only the longest matching subword to the output. Default is false. */ onlyLongestMatch?: boolean; -}; +} /** Generates n-grams of the given size(s) starting from the front or the back of an input token. This token filter is implemented using Apache Lucene. */ -export type EdgeNGramTokenFilter = TokenFilter & { +export interface EdgeNGramTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.EdgeNGramTokenFilter"; /** The minimum n-gram length. Default is 1. Must be less than the value of maxGram. */ @@ -1892,10 +1958,10 @@ export type EdgeNGramTokenFilter = TokenFilter & { maxGram?: number; /** Specifies which side of the input the n-gram should be generated from. Default is "front". */ side?: EdgeNGramTokenFilterSide; -}; +} /** Generates n-grams of the given size(s) starting from the front or the back of an input token. This token filter is implemented using Apache Lucene. */ -export type EdgeNGramTokenFilterV2 = TokenFilter & { +export interface EdgeNGramTokenFilterV2 extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.EdgeNGramTokenFilterV2"; /** The minimum n-gram length. Default is 1. Maximum is 300. Must be less than the value of maxGram. */ @@ -1904,108 +1970,108 @@ export type EdgeNGramTokenFilterV2 = TokenFilter & { maxGram?: number; /** Specifies which side of the input the n-gram should be generated from. Default is "front". */ side?: EdgeNGramTokenFilterSide; -}; +} /** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). This token filter is implemented using Apache Lucene. */ -export type ElisionTokenFilter = TokenFilter & { +export interface ElisionTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.ElisionTokenFilter"; /** The set of articles to remove. */ articles?: string[]; -}; +} /** A token filter that only keeps tokens with text contained in a specified list of words. This token filter is implemented using Apache Lucene. */ -export type KeepTokenFilter = TokenFilter & { +export interface KeepTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.KeepTokenFilter"; /** The list of words to keep. */ keepWords: string[]; /** A value indicating whether to lower case all words first. Default is false. */ lowerCaseKeepWords?: boolean; -}; +} /** Marks terms as keywords. This token filter is implemented using Apache Lucene. */ -export type KeywordMarkerTokenFilter = TokenFilter & { +export interface KeywordMarkerTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.KeywordMarkerTokenFilter"; /** A list of words to mark as keywords. */ keywords: string[]; /** A value indicating whether to ignore case. If true, all words are converted to lower case first. Default is false. */ ignoreCase?: boolean; -}; +} /** Removes words that are too long or too short. This token filter is implemented using Apache Lucene. */ -export type LengthTokenFilter = TokenFilter & { +export interface LengthTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.LengthTokenFilter"; /** The minimum length in characters. Default is 0. Maximum is 300. Must be less than the value of max. */ minLength?: number; /** The maximum length in characters. Default and maximum is 300. */ maxLength?: number; -}; +} /** Limits the number of tokens while indexing. This token filter is implemented using Apache Lucene. */ -export type LimitTokenFilter = TokenFilter & { +export interface LimitTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.LimitTokenFilter"; /** The maximum number of tokens to produce. Default is 1. */ maxTokenCount?: number; /** A value indicating whether all tokens from the input must be consumed even if maxTokenCount is reached. Default is false. */ consumeAllTokens?: boolean; -}; +} /** Generates n-grams of the given size(s). This token filter is implemented using Apache Lucene. */ -export type NGramTokenFilter = TokenFilter & { +export interface NGramTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.NGramTokenFilter"; /** The minimum n-gram length. Default is 1. Must be less than the value of maxGram. */ minGram?: number; /** The maximum n-gram length. Default is 2. */ maxGram?: number; -}; +} /** Generates n-grams of the given size(s). This token filter is implemented using Apache Lucene. */ -export type NGramTokenFilterV2 = TokenFilter & { +export interface NGramTokenFilterV2 extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.NGramTokenFilterV2"; /** The minimum n-gram length. Default is 1. Maximum is 300. Must be less than the value of maxGram. */ minGram?: number; /** The maximum n-gram length. Default is 2. Maximum is 300. */ maxGram?: number; -}; +} /** Uses Java regexes to emit multiple tokens - one for each capture group in one or more patterns. This token filter is implemented using Apache Lucene. */ -export type PatternCaptureTokenFilter = TokenFilter & { +export interface PatternCaptureTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.PatternCaptureTokenFilter"; /** A list of patterns to match against each token. */ patterns: string[]; /** A value indicating whether to return the original token even if one of the patterns matches. Default is true. */ preserveOriginal?: boolean; -}; +} /** A character filter that replaces characters in the input string. It uses a regular expression to identify character sequences to preserve and a replacement pattern to identify characters to replace. For example, given the input text "aa bb aa bb", pattern "(aa)\s+(bb)", and replacement "$1#$2", the result would be "aa#bb aa#bb". This token filter is implemented using Apache Lucene. */ -export type PatternReplaceTokenFilter = TokenFilter & { +export interface PatternReplaceTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.PatternReplaceTokenFilter"; /** A regular expression pattern. */ pattern: string; /** The replacement text. */ replacement: string; -}; +} /** Create tokens for phonetic matches. This token filter is implemented using Apache Lucene. */ -export type PhoneticTokenFilter = TokenFilter & { +export interface PhoneticTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.PhoneticTokenFilter"; /** The phonetic encoder to use. Default is "metaphone". */ encoder?: PhoneticEncoder; /** A value indicating whether encoded tokens should replace original tokens. If false, encoded tokens are added as synonyms. Default is true. */ replaceOriginalTokens?: boolean; -}; +} /** Creates combinations of tokens as a single token. This token filter is implemented using Apache Lucene. */ -export type ShingleTokenFilter = TokenFilter & { +export interface ShingleTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.ShingleTokenFilter"; /** The maximum shingle size. Default and minimum value is 2. */ @@ -2020,34 +2086,34 @@ export type ShingleTokenFilter = TokenFilter & { tokenSeparator?: string; /** The string to insert for each position at which there is no token. Default is an underscore ("_"). */ filterToken?: string; -}; +} /** A filter that stems words using a Snowball-generated stemmer. This token filter is implemented using Apache Lucene. */ -export type SnowballTokenFilter = TokenFilter & { +export interface SnowballTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.SnowballTokenFilter"; /** The language to use. */ language: SnowballTokenFilterLanguage; -}; +} /** Language specific stemming filter. This token filter is implemented using Apache Lucene. */ -export type StemmerTokenFilter = TokenFilter & { +export interface StemmerTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.StemmerTokenFilter"; /** The language to use. */ language: StemmerTokenFilterLanguage; -}; +} /** Provides the ability to override other stemming filters with custom dictionary-based stemming. Any dictionary-stemmed terms will be marked as keywords so that they will not be stemmed with stemmers down the chain. Must be placed before any stemming filters. This token filter is implemented using Apache Lucene. */ -export type StemmerOverrideTokenFilter = TokenFilter & { +export interface StemmerOverrideTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.StemmerOverrideTokenFilter"; /** A list of stemming rules in the following format: "word => stem", for example: "ran => run". */ rules: string[]; -}; +} /** Removes stop words from a token stream. This token filter is implemented using Apache Lucene. */ -export type StopwordsTokenFilter = TokenFilter & { +export interface StopwordsTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.StopwordsTokenFilter"; /** The list of stopwords. This property and the stopwords list property cannot both be set. */ @@ -2058,10 +2124,10 @@ export type StopwordsTokenFilter = TokenFilter & { ignoreCase?: boolean; /** A value indicating whether to ignore the last search term if it's a stop word. Default is true. */ removeTrailingStopWords?: boolean; -}; +} /** Matches single or multi-word synonyms in a token stream. This token filter is implemented using Apache Lucene. */ -export type SynonymTokenFilter = TokenFilter & { +export interface SynonymTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.SynonymTokenFilter"; /** A list of synonyms in following one of two formats: 1. incredible, unbelievable, fabulous => amazing - all terms on the left side of => symbol will be replaced with all terms on its right side; 2. incredible, unbelievable, fabulous, amazing - comma separated list of equivalent words. Set the expand option to change how this list is interpreted. */ @@ -2070,26 +2136,26 @@ export type SynonymTokenFilter = TokenFilter & { ignoreCase?: boolean; /** A value indicating whether all words in the list of synonyms (if => notation is not used) will map to one another. If true, all words in the list of synonyms (if => notation is not used) will map to one another. The following list: incredible, unbelievable, fabulous, amazing is equivalent to: incredible, unbelievable, fabulous, amazing => incredible, unbelievable, fabulous, amazing. If false, the following list: incredible, unbelievable, fabulous, amazing will be equivalent to: incredible, unbelievable, fabulous, amazing => incredible. Default is true. */ expand?: boolean; -}; +} /** Truncates the terms to a specific length. This token filter is implemented using Apache Lucene. */ -export type TruncateTokenFilter = TokenFilter & { +export interface TruncateTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.TruncateTokenFilter"; /** The length at which terms will be truncated. Default and maximum is 300. */ length?: number; -}; +} /** Filters out tokens with same text as the previous token. This token filter is implemented using Apache Lucene. */ -export type UniqueTokenFilter = TokenFilter & { +export interface UniqueTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.UniqueTokenFilter"; /** A value indicating whether to remove duplicates only at the same position. Default is false. */ onlyOnSamePosition?: boolean; -}; +} /** Splits words into subwords and performs optional transformations on subword groups. This token filter is implemented using Apache Lucene. */ -export type WordDelimiterTokenFilter = TokenFilter & { +export interface WordDelimiterTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.WordDelimiterTokenFilter"; /** A value indicating whether to generate part words. If set, causes parts of words to be generated; for example "AzureSearch" becomes "Azure" "Search". Default is true. */ @@ -2112,104 +2178,117 @@ export type WordDelimiterTokenFilter = TokenFilter & { stemEnglishPossessive?: boolean; /** A list of tokens to protect from being delimited. */ protectedWords?: string[]; -}; +} /** A character filter that applies mappings defined with the mappings option. Matching is greedy (longest pattern matching at a given point wins). Replacement is allowed to be the empty string. This character filter is implemented using Apache Lucene. */ -export type MappingCharFilter = CharFilter & { +export interface MappingCharFilter extends CharFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.MappingCharFilter"; /** A list of mappings of the following format: "a=>b" (all occurrences of the character "a" will be replaced with character "b"). */ mappings: string[]; -}; +} /** A character filter that replaces characters in the input string. It uses a regular expression to identify character sequences to preserve and a replacement pattern to identify characters to replace. For example, given the input text "aa bb aa bb", pattern "(aa)\s+(bb)", and replacement "$1#$2", the result would be "aa#bb aa#bb". This character filter is implemented using Apache Lucene. */ -export type PatternReplaceCharFilter = CharFilter & { +export interface PatternReplaceCharFilter extends CharFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.PatternReplaceCharFilter"; /** A regular expression pattern. */ pattern: string; /** The replacement text. */ replacement: string; -}; +} /** Allows you to configure normalization for filterable, sortable, and facetable fields, which by default operate with strict matching. This is a user-defined configuration consisting of at least one or more filters, which modify the token that is stored. */ -export type CustomNormalizer = LexicalNormalizer & { +export interface CustomNormalizer extends LexicalNormalizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.CustomNormalizer"; /** A list of token filters used to filter out or modify the input token. For example, you can specify a lowercase filter that converts all characters to lowercase. The filters are run in the order in which they are listed. */ tokenFilters?: TokenFilterName[]; /** A list of character filters used to prepare input text before it is processed. For instance, they can replace certain characters or symbols. The filters are run in the order in which they are listed. */ charFilters?: CharFilterName[]; -}; +} /** Legacy similarity algorithm which uses the Lucene TFIDFSimilarity implementation of TF-IDF. This variation of TF-IDF introduces static document length normalization as well as coordinating factors that penalize documents that only partially match the searched queries. */ -export type ClassicSimilarity = Similarity & { +export interface ClassicSimilarity extends Similarity { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.ClassicSimilarity"; -}; +} /** Ranking function based on the Okapi BM25 similarity algorithm. BM25 is a TF-IDF-like algorithm that includes length normalization (controlled by the 'b' parameter) as well as term frequency saturation (controlled by the 'k1' parameter). */ -export type BM25Similarity = Similarity & { +export interface BM25Similarity extends Similarity { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.BM25Similarity"; /** This property controls the scaling function between the term frequency of each matching terms and the final relevance score of a document-query pair. By default, a value of 1.2 is used. A value of 0.0 means the score does not scale with an increase in term frequency. */ k1?: number; /** This property controls how the length of a document affects the relevance score. By default, a value of 0.75 is used. A value of 0.0 means no length normalization is applied, while a value of 1.0 means the score is fully normalized by the length of the document. */ b?: number; -}; +} -/** Contains configuration options specific to the hnsw approximate nearest neighbors algorithm used during indexing and querying. The hnsw algorithm offers a tunable trade-off between search speed and accuracy. */ -export type HnswVectorSearchAlgorithmConfiguration = VectorSearchAlgorithmConfiguration & { +/** Contains configuration options specific to the HNSW approximate nearest neighbors algorithm used during indexing and querying. The HNSW algorithm offers a tunable trade-off between search speed and accuracy. */ +export interface HnswAlgorithmConfiguration + extends VectorSearchAlgorithmConfiguration { /** Polymorphic discriminator, which specifies the different types this object can be */ kind: "hnsw"; - /** Contains the parameters specific to hnsw algorithm. */ + /** Contains the parameters specific to HNSW algorithm. */ parameters?: HnswParameters; -}; +} /** Contains configuration options specific to the exhaustive KNN algorithm used during querying, which will perform brute-force search across the entire vector index. */ -export type ExhaustiveKnnVectorSearchAlgorithmConfiguration = VectorSearchAlgorithmConfiguration & { +export interface ExhaustiveKnnAlgorithmConfiguration + extends VectorSearchAlgorithmConfiguration { /** Polymorphic discriminator, which specifies the different types this object can be */ kind: "exhaustiveKnn"; /** Contains the parameters specific to exhaustive KNN algorithm. */ parameters?: ExhaustiveKnnParameters; -}; +} -/** Contains the parameters specific to using an Azure Open AI service for vectorization at query time. */ -export type AzureOpenAIVectorizer = VectorSearchVectorizer & { +/** Specifies the Azure OpenAI resource used to vectorize a query string. */ +export interface AzureOpenAIVectorizer extends VectorSearchVectorizer { /** Polymorphic discriminator, which specifies the different types this object can be */ kind: "azureOpenAI"; - /** Contains the parameters specific to Azure Open AI embedding vectorization. */ + /** Contains the parameters specific to Azure OpenAI embedding vectorization. */ azureOpenAIParameters?: AzureOpenAIParameters; -}; +} -/** Contains the parameters specific to generating vector embeddings via a custom endpoint. */ -export type CustomVectorizer = VectorSearchVectorizer & { +/** Specifies a user-defined vectorizer for generating the vector embedding of a query string. Integration of an external vectorizer is achieved using the custom Web API interface of a skillset. */ +export interface CustomVectorizer extends VectorSearchVectorizer { /** Polymorphic discriminator, which specifies the different types this object can be */ kind: "customWebApi"; - /** Contains the parameters specific to generating vector embeddings via a custom endpoint. */ - customVectorizerParameters?: CustomVectorizerParameters; -}; + /** Specifies the properties of the user-defined vectorizer. */ + customWebApiParameters?: CustomWebApiParameters; +} + +/** Contains configuration options specific to the scalar quantization compression method used during indexing and querying. */ +export interface ScalarQuantizationCompressionConfiguration + extends BaseVectorSearchCompressionConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "scalarQuantization"; + /** Contains the parameters specific to Scalar Quantization. */ + parameters?: ScalarQuantizationParameters; +} /** Projection definition for what data to store in Azure Blob. */ -export type SearchIndexerKnowledgeStoreObjectProjectionSelector = SearchIndexerKnowledgeStoreBlobProjectionSelector & {}; +export interface SearchIndexerKnowledgeStoreObjectProjectionSelector + extends SearchIndexerKnowledgeStoreBlobProjectionSelector {} /** Projection definition for what data to store in Azure Files. */ -export type SearchIndexerKnowledgeStoreFileProjectionSelector = SearchIndexerKnowledgeStoreBlobProjectionSelector & {}; +export interface SearchIndexerKnowledgeStoreFileProjectionSelector + extends SearchIndexerKnowledgeStoreBlobProjectionSelector {} -/** Known values of {@link ApiVersion20231001Preview} that the service accepts. */ -export enum KnownApiVersion20231001Preview { - /** Api Version '2023-10-01-Preview' */ - TwoThousandTwentyThree1001Preview = "2023-10-01-Preview" +/** Known values of {@link ApiVersion20240301Preview} that the service accepts. */ +export enum KnownApiVersion20240301Preview { + /** Api Version '2024-03-01-Preview' */ + TwoThousandTwentyFour0301Preview = "2024-03-01-Preview", } /** - * Defines values for ApiVersion20231001Preview. \ - * {@link KnownApiVersion20231001Preview} can be used interchangeably with ApiVersion20231001Preview, + * Defines values for ApiVersion20240301Preview. \ + * {@link KnownApiVersion20240301Preview} can be used interchangeably with ApiVersion20240301Preview, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **2023-10-01-Preview**: Api Version '2023-10-01-Preview' + * **2024-03-01-Preview**: Api Version '2024-03-01-Preview' */ -export type ApiVersion20231001Preview = string; +export type ApiVersion20240301Preview = string; /** Known values of {@link SearchIndexerDataSourceType} that the service accepts. */ export enum KnownSearchIndexerDataSourceType { @@ -2224,7 +2303,7 @@ export enum KnownSearchIndexerDataSourceType { /** Indicates a MySql datasource. */ MySql = "mysql", /** Indicates an ADLS Gen2 datasource. */ - AdlsGen2 = "adlsgen2" + AdlsGen2 = "adlsgen2", } /** @@ -2251,10 +2330,10 @@ export enum KnownBlobIndexerParsingMode { DelimitedText = "delimitedText", /** Set to json to extract structured content from JSON files. */ Json = "json", - /** Set to jsonArray to extract individual elements of a JSON array as separate documents in Azure Cognitive Search. */ + /** Set to jsonArray to extract individual elements of a JSON array as separate documents. */ JsonArray = "jsonArray", - /** Set to jsonLines to extract individual JSON entities, separated by a new line, as separate documents in Azure Cognitive Search. */ - JsonLines = "jsonLines" + /** Set to jsonLines to extract individual JSON entities, separated by a new line, as separate documents. */ + JsonLines = "jsonLines", } /** @@ -2266,8 +2345,8 @@ export enum KnownBlobIndexerParsingMode { * **text**: Set to text to improve indexing performance on plain text files in blob storage. \ * **delimitedText**: Set to delimitedText when blobs are plain CSV files. \ * **json**: Set to json to extract structured content from JSON files. \ - * **jsonArray**: Set to jsonArray to extract individual elements of a JSON array as separate documents in Azure Cognitive Search. \ - * **jsonLines**: Set to jsonLines to extract individual JSON entities, separated by a new line, as separate documents in Azure Cognitive Search. + * **jsonArray**: Set to jsonArray to extract individual elements of a JSON array as separate documents. \ + * **jsonLines**: Set to jsonLines to extract individual JSON entities, separated by a new line, as separate documents. */ export type BlobIndexerParsingMode = string; @@ -2278,7 +2357,7 @@ export enum KnownBlobIndexerDataToExtract { /** Extracts metadata provided by the Azure blob storage subsystem and the content-type specific metadata (for example, metadata unique to just .png files are indexed). */ AllMetadata = "allMetadata", /** Extracts all metadata and textual content from each blob. */ - ContentAndMetadata = "contentAndMetadata" + ContentAndMetadata = "contentAndMetadata", } /** @@ -2299,7 +2378,7 @@ export enum KnownBlobIndexerImageAction { /** Extracts text from images (for example, the word "STOP" from a traffic stop sign), and embeds it into the content field. This action requires that "dataToExtract" is set to "contentAndMetadata". A normalized image refers to additional processing resulting in uniform image output, sized and rotated to promote consistent rendering when you include images in visual search results. This information is generated for each image when you use this option. */ GenerateNormalizedImages = "generateNormalizedImages", /** Extracts text from images (for example, the word "STOP" from a traffic stop sign), and embeds it into the content field, but treats PDF files differently in that each page will be rendered as an image and normalized accordingly, instead of extracting embedded images. Non-PDF file types will be treated the same as if "generateNormalizedImages" was set. */ - GenerateNormalizedImagePerPage = "generateNormalizedImagePerPage" + GenerateNormalizedImagePerPage = "generateNormalizedImagePerPage", } /** @@ -2318,7 +2397,7 @@ export enum KnownBlobIndexerPDFTextRotationAlgorithm { /** Leverages normal text extraction. This is the default. */ None = "none", /** May produce better and more readable text extraction from PDF files that have rotated text within them. Note that there may be a small performance speed impact when this parameter is used. This parameter only applies to PDF files, and only to PDFs with embedded text. If the rotated text appears within an embedded image in the PDF, this parameter does not apply. */ - DetectAngles = "detectAngles" + DetectAngles = "detectAngles", } /** @@ -2333,10 +2412,10 @@ export type BlobIndexerPDFTextRotationAlgorithm = string; /** Known values of {@link IndexerExecutionEnvironment} that the service accepts. */ export enum KnownIndexerExecutionEnvironment { - /** Indicates that Azure Cognitive Search can determine where the indexer should execute. This is the default environment when nothing is specified and is the recommended value. */ + /** Indicates that the search service can determine where the indexer should execute. This is the default environment when nothing is specified and is the recommended value. */ Standard = "standard", /** Indicates that the indexer should run with the environment provisioned specifically for the search service. This should only be specified as the execution environment if the indexer needs to access resources securely over shared private link resources. */ - Private = "private" + Private = "private", } /** @@ -2344,7 +2423,7 @@ export enum KnownIndexerExecutionEnvironment { * {@link KnownIndexerExecutionEnvironment} can be used interchangeably with IndexerExecutionEnvironment, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **standard**: Indicates that Azure Cognitive Search can determine where the indexer should execute. This is the default environment when nothing is specified and is the recommended value. \ + * **standard**: Indicates that the search service can determine where the indexer should execute. This is the default environment when nothing is specified and is the recommended value. \ * **private**: Indicates that the indexer should run with the environment provisioned specifically for the search service. This should only be specified as the execution environment if the indexer needs to access resources securely over shared private link resources. */ export type IndexerExecutionEnvironment = string; @@ -2352,7 +2431,7 @@ export type IndexerExecutionEnvironment = string; /** Known values of {@link IndexerExecutionStatusDetail} that the service accepts. */ export enum KnownIndexerExecutionStatusDetail { /** Indicates that the reset that occurred was for a call to ResetDocs. */ - ResetDocs = "resetDocs" + ResetDocs = "resetDocs", } /** @@ -2369,7 +2448,7 @@ export enum KnownIndexingMode { /** The indexer is indexing all documents in the datasource. */ IndexingAllDocs = "indexingAllDocs", /** The indexer is indexing selective, reset documents in the datasource. The documents being indexed are defined on indexer status. */ - IndexingResetDocs = "indexingResetDocs" + IndexingResetDocs = "indexingResetDocs", } /** @@ -2387,7 +2466,7 @@ export enum KnownIndexProjectionMode { /** The source document will be skipped from writing into the indexer's target index. */ SkipIndexingParentDocuments = "skipIndexingParentDocuments", /** The source document will be written into the indexer's target index. This is the default pattern. */ - IncludeIndexingParentDocuments = "includeIndexingParentDocuments" + IncludeIndexingParentDocuments = "includeIndexingParentDocuments", } /** @@ -2412,14 +2491,20 @@ export enum KnownSearchFieldDataType { Double = "Edm.Double", /** Indicates that a field contains a Boolean value (true or false). */ Boolean = "Edm.Boolean", - /** Indicates that a field contains a date/time value, including timezone information. */ + /** Indicates that a field contains a date\/time value, including timezone information. */ DateTimeOffset = "Edm.DateTimeOffset", /** Indicates that a field contains a geo-location in terms of longitude and latitude. */ GeographyPoint = "Edm.GeographyPoint", /** Indicates that a field contains one or more complex objects that in turn have sub-fields of other types. */ Complex = "Edm.ComplexType", /** Indicates that a field contains a single-precision floating point number. This is only valid when used with Collection(Edm.Single). */ - Single = "Edm.Single" + Single = "Edm.Single", + /** Indicates that a field contains a half-precision floating point number. This is only valid when used with Collection(Edm.Half). */ + Half = "Edm.Half", + /** Indicates that a field contains a 16-bit signed integer. This is only valid when used with Collection(Edm.Int16). */ + Int16 = "Edm.Int16", + /** Indicates that a field contains a 8-bit signed integer. This is only valid when used with Collection(Edm.SByte). */ + SByte = "Edm.SByte", } /** @@ -2435,7 +2520,10 @@ export enum KnownSearchFieldDataType { * **Edm.DateTimeOffset**: Indicates that a field contains a date\/time value, including timezone information. \ * **Edm.GeographyPoint**: Indicates that a field contains a geo-location in terms of longitude and latitude. \ * **Edm.ComplexType**: Indicates that a field contains one or more complex objects that in turn have sub-fields of other types. \ - * **Edm.Single**: Indicates that a field contains a single-precision floating point number. This is only valid when used with Collection(Edm.Single). + * **Edm.Single**: Indicates that a field contains a single-precision floating point number. This is only valid when used with Collection(Edm.Single). \ + * **Edm.Half**: Indicates that a field contains a half-precision floating point number. This is only valid when used with Collection(Edm.Half). \ + * **Edm.Int16**: Indicates that a field contains a 16-bit signed integer. This is only valid when used with Collection(Edm.Int16). \ + * **Edm.SByte**: Indicates that a field contains a 8-bit signed integer. This is only valid when used with Collection(Edm.SByte). */ export type SearchFieldDataType = string; @@ -2615,18 +2703,18 @@ export enum KnownLexicalAnalyzerName { ViMicrosoft = "vi.microsoft", /** Standard Lucene analyzer. */ StandardLucene = "standard.lucene", - /** Standard ASCII Folding Lucene analyzer. See https://docs.microsoft.com/rest/api/searchservice/Custom-analyzers-in-Azure-Search#Analyzers */ + /** Standard ASCII Folding Lucene analyzer. See https:\//docs.microsoft.com\/rest\/api\/searchservice\/Custom-analyzers-in-Azure-Search#Analyzers */ StandardAsciiFoldingLucene = "standardasciifolding.lucene", - /** Treats the entire content of a field as a single token. This is useful for data like zip codes, ids, and some product names. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/KeywordAnalyzer.html */ + /** Treats the entire content of a field as a single token. This is useful for data like zip codes, ids, and some product names. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/KeywordAnalyzer.html */ Keyword = "keyword", - /** Flexibly separates text into terms via a regular expression pattern. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/PatternAnalyzer.html */ + /** Flexibly separates text into terms via a regular expression pattern. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/PatternAnalyzer.html */ Pattern = "pattern", - /** Divides text at non-letters and converts them to lower case. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/SimpleAnalyzer.html */ + /** Divides text at non-letters and converts them to lower case. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/SimpleAnalyzer.html */ Simple = "simple", - /** Divides text at non-letters; Applies the lowercase and stopword token filters. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/StopAnalyzer.html */ + /** Divides text at non-letters; Applies the lowercase and stopword token filters. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/StopAnalyzer.html */ Stop = "stop", - /** An analyzer that uses the whitespace tokenizer. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceAnalyzer.html */ - Whitespace = "whitespace" + /** An analyzer that uses the whitespace tokenizer. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/WhitespaceAnalyzer.html */ + Whitespace = "whitespace", } /** @@ -2732,16 +2820,16 @@ export type LexicalAnalyzerName = string; /** Known values of {@link LexicalNormalizerName} that the service accepts. */ export enum KnownLexicalNormalizerName { - /** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilter.html */ + /** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ASCIIFoldingFilter.html */ AsciiFolding = "asciifolding", - /** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/util/ElisionFilter.html */ + /** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/util\/ElisionFilter.html */ Elision = "elision", - /** Normalizes token text to lowercase. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/LowerCaseFilter.html */ + /** Normalizes token text to lowercase. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/LowerCaseFilter.html */ Lowercase = "lowercase", - /** Standard normalizer, which consists of lowercase and asciifolding. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/reverse/ReverseStringFilter.html */ + /** Standard normalizer, which consists of lowercase and asciifolding. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/reverse\/ReverseStringFilter.html */ Standard = "standard", - /** Normalizes token text to uppercase. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html */ - Uppercase = "uppercase" + /** Normalizes token text to uppercase. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/UpperCaseFilter.html */ + Uppercase = "uppercase", } /** @@ -2759,10 +2847,10 @@ export type LexicalNormalizerName = string; /** Known values of {@link VectorSearchAlgorithmKind} that the service accepts. */ export enum KnownVectorSearchAlgorithmKind { - /** Hnsw (Hierarchical Navigable Small World), a type of approximate nearest neighbors algorithm. */ + /** HNSW (Hierarchical Navigable Small World), a type of approximate nearest neighbors algorithm. */ Hnsw = "hnsw", /** Exhaustive KNN algorithm which will perform brute-force search. */ - ExhaustiveKnn = "exhaustiveKnn" + ExhaustiveKnn = "exhaustiveKnn", } /** @@ -2770,17 +2858,17 @@ export enum KnownVectorSearchAlgorithmKind { * {@link KnownVectorSearchAlgorithmKind} can be used interchangeably with VectorSearchAlgorithmKind, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **hnsw**: Hnsw (Hierarchical Navigable Small World), a type of approximate nearest neighbors algorithm. \ + * **hnsw**: HNSW (Hierarchical Navigable Small World), a type of approximate nearest neighbors algorithm. \ * **exhaustiveKnn**: Exhaustive KNN algorithm which will perform brute-force search. */ export type VectorSearchAlgorithmKind = string; /** Known values of {@link VectorSearchVectorizerKind} that the service accepts. */ export enum KnownVectorSearchVectorizerKind { - /** Generate embeddings using an Azure Open AI service at query time. */ + /** Generate embeddings using an Azure OpenAI resource at query time. */ AzureOpenAI = "azureOpenAI", /** Generate embeddings using a custom web endpoint at query time. */ - CustomWebApi = "customWebApi" + CustomWebApi = "customWebApi", } /** @@ -2788,81 +2876,96 @@ export enum KnownVectorSearchVectorizerKind { * {@link KnownVectorSearchVectorizerKind} can be used interchangeably with VectorSearchVectorizerKind, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **azureOpenAI**: Generate embeddings using an Azure Open AI service at query time. \ + * **azureOpenAI**: Generate embeddings using an Azure OpenAI resource at query time. \ * **customWebApi**: Generate embeddings using a custom web endpoint at query time. */ export type VectorSearchVectorizerKind = string; +/** Known values of {@link VectorSearchCompressionKind} that the service accepts. */ +export enum KnownVectorSearchCompressionKind { + /** Scalar Quantization, a type of compression method. In scalar quantization, the original vectors values are compressed to a narrower type by discretizing and representing each component of a vector using a reduced set of quantized values, thereby reducing the overall data size. */ + ScalarQuantization = "scalarQuantization", +} + +/** + * Defines values for VectorSearchCompressionKind. \ + * {@link KnownVectorSearchCompressionKind} can be used interchangeably with VectorSearchCompressionKind, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **scalarQuantization**: Scalar Quantization, a type of compression method. In scalar quantization, the original vectors values are compressed to a narrower type by discretizing and representing each component of a vector using a reduced set of quantized values, thereby reducing the overall data size. + */ +export type VectorSearchCompressionKind = string; + /** Known values of {@link TokenFilterName} that the service accepts. */ export enum KnownTokenFilterName { - /** A token filter that applies the Arabic normalizer to normalize the orthography. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ar/ArabicNormalizationFilter.html */ + /** A token filter that applies the Arabic normalizer to normalize the orthography. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ar\/ArabicNormalizationFilter.html */ ArabicNormalization = "arabic_normalization", - /** Strips all characters after an apostrophe (including the apostrophe itself). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/tr/ApostropheFilter.html */ + /** Strips all characters after an apostrophe (including the apostrophe itself). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/tr\/ApostropheFilter.html */ Apostrophe = "apostrophe", - /** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilter.html */ + /** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ASCIIFoldingFilter.html */ AsciiFolding = "asciifolding", - /** Forms bigrams of CJK terms that are generated from the standard tokenizer. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/cjk/CJKBigramFilter.html */ + /** Forms bigrams of CJK terms that are generated from the standard tokenizer. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/cjk\/CJKBigramFilter.html */ CjkBigram = "cjk_bigram", - /** Normalizes CJK width differences. Folds fullwidth ASCII variants into the equivalent basic Latin, and half-width Katakana variants into the equivalent Kana. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/cjk/CJKWidthFilter.html */ + /** Normalizes CJK width differences. Folds fullwidth ASCII variants into the equivalent basic Latin, and half-width Katakana variants into the equivalent Kana. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/cjk\/CJKWidthFilter.html */ CjkWidth = "cjk_width", - /** Removes English possessives, and dots from acronyms. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/ClassicFilter.html */ + /** Removes English possessives, and dots from acronyms. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/standard\/ClassicFilter.html */ Classic = "classic", - /** Construct bigrams for frequently occurring terms while indexing. Single terms are still indexed too, with bigrams overlaid. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/commongrams/CommonGramsFilter.html */ + /** Construct bigrams for frequently occurring terms while indexing. Single terms are still indexed too, with bigrams overlaid. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/commongrams\/CommonGramsFilter.html */ CommonGram = "common_grams", - /** Generates n-grams of the given size(s) starting from the front or the back of an input token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/EdgeNGramTokenFilter.html */ + /** Generates n-grams of the given size(s) starting from the front or the back of an input token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ngram\/EdgeNGramTokenFilter.html */ EdgeNGram = "edgeNGram_v2", - /** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/util/ElisionFilter.html */ + /** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/util\/ElisionFilter.html */ Elision = "elision", - /** Normalizes German characters according to the heuristics of the German2 snowball algorithm. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/de/GermanNormalizationFilter.html */ + /** Normalizes German characters according to the heuristics of the German2 snowball algorithm. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/de\/GermanNormalizationFilter.html */ GermanNormalization = "german_normalization", - /** Normalizes text in Hindi to remove some differences in spelling variations. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/hi/HindiNormalizationFilter.html */ + /** Normalizes text in Hindi to remove some differences in spelling variations. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/hi\/HindiNormalizationFilter.html */ HindiNormalization = "hindi_normalization", - /** Normalizes the Unicode representation of text in Indian languages. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/in/IndicNormalizationFilter.html */ + /** Normalizes the Unicode representation of text in Indian languages. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/in\/IndicNormalizationFilter.html */ IndicNormalization = "indic_normalization", - /** Emits each incoming token twice, once as keyword and once as non-keyword. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/KeywordRepeatFilter.html */ + /** Emits each incoming token twice, once as keyword and once as non-keyword. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/KeywordRepeatFilter.html */ KeywordRepeat = "keyword_repeat", - /** A high-performance kstem filter for English. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/en/KStemFilter.html */ + /** A high-performance kstem filter for English. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/en\/KStemFilter.html */ KStem = "kstem", - /** Removes words that are too long or too short. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/LengthFilter.html */ + /** Removes words that are too long or too short. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/LengthFilter.html */ Length = "length", - /** Limits the number of tokens while indexing. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/LimitTokenCountFilter.html */ + /** Limits the number of tokens while indexing. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/LimitTokenCountFilter.html */ Limit = "limit", - /** Normalizes token text to lower case. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/LowerCaseFilter.html */ + /** Normalizes token text to lower case. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/LowerCaseFilter.html */ Lowercase = "lowercase", - /** Generates n-grams of the given size(s). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/NGramTokenFilter.html */ + /** Generates n-grams of the given size(s). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ngram\/NGramTokenFilter.html */ NGram = "nGram_v2", - /** Applies normalization for Persian. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/fa/PersianNormalizationFilter.html */ + /** Applies normalization for Persian. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/fa\/PersianNormalizationFilter.html */ PersianNormalization = "persian_normalization", - /** Create tokens for phonetic matches. See https://lucene.apache.org/core/4_10_3/analyzers-phonetic/org/apache/lucene/analysis/phonetic/package-tree.html */ + /** Create tokens for phonetic matches. See https:\//lucene.apache.org\/core\/4_10_3\/analyzers-phonetic\/org\/apache\/lucene\/analysis\/phonetic\/package-tree.html */ Phonetic = "phonetic", - /** Uses the Porter stemming algorithm to transform the token stream. See http://tartarus.org/~martin/PorterStemmer */ + /** Uses the Porter stemming algorithm to transform the token stream. See http:\//tartarus.org\/~martin\/PorterStemmer */ PorterStem = "porter_stem", - /** Reverses the token string. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/reverse/ReverseStringFilter.html */ + /** Reverses the token string. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/reverse\/ReverseStringFilter.html */ Reverse = "reverse", - /** Normalizes use of the interchangeable Scandinavian characters. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ScandinavianNormalizationFilter.html */ + /** Normalizes use of the interchangeable Scandinavian characters. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ScandinavianNormalizationFilter.html */ ScandinavianNormalization = "scandinavian_normalization", - /** Folds Scandinavian characters åÅäæÄÆ->a and öÖøØ->o. It also discriminates against use of double vowels aa, ae, ao, oe and oo, leaving just the first one. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ScandinavianFoldingFilter.html */ + /** Folds Scandinavian characters åÅäæÄÆ->a and öÖøØ->o. It also discriminates against use of double vowels aa, ae, ao, oe and oo, leaving just the first one. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ScandinavianFoldingFilter.html */ ScandinavianFoldingNormalization = "scandinavian_folding", - /** Creates combinations of tokens as a single token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/shingle/ShingleFilter.html */ + /** Creates combinations of tokens as a single token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/shingle\/ShingleFilter.html */ Shingle = "shingle", - /** A filter that stems words using a Snowball-generated stemmer. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/snowball/SnowballFilter.html */ + /** A filter that stems words using a Snowball-generated stemmer. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/snowball\/SnowballFilter.html */ Snowball = "snowball", - /** Normalizes the Unicode representation of Sorani text. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ckb/SoraniNormalizationFilter.html */ + /** Normalizes the Unicode representation of Sorani text. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ckb\/SoraniNormalizationFilter.html */ SoraniNormalization = "sorani_normalization", - /** Language specific stemming filter. See https://docs.microsoft.com/rest/api/searchservice/Custom-analyzers-in-Azure-Search#TokenFilters */ + /** Language specific stemming filter. See https:\//docs.microsoft.com\/rest\/api\/searchservice\/Custom-analyzers-in-Azure-Search#TokenFilters */ Stemmer = "stemmer", - /** Removes stop words from a token stream. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/StopFilter.html */ + /** Removes stop words from a token stream. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/StopFilter.html */ Stopwords = "stopwords", - /** Trims leading and trailing whitespace from tokens. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/TrimFilter.html */ + /** Trims leading and trailing whitespace from tokens. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/TrimFilter.html */ Trim = "trim", - /** Truncates the terms to a specific length. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/TruncateTokenFilter.html */ + /** Truncates the terms to a specific length. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/TruncateTokenFilter.html */ Truncate = "truncate", - /** Filters out tokens with same text as the previous token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/RemoveDuplicatesTokenFilter.html */ + /** Filters out tokens with same text as the previous token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/RemoveDuplicatesTokenFilter.html */ Unique = "unique", - /** Normalizes token text to upper case. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html */ + /** Normalizes token text to upper case. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/UpperCaseFilter.html */ Uppercase = "uppercase", /** Splits words into subwords and performs optional transformations on subword groups. */ - WordDelimiter = "word_delimiter" + WordDelimiter = "word_delimiter", } /** @@ -2909,8 +3012,8 @@ export type TokenFilterName = string; /** Known values of {@link CharFilterName} that the service accepts. */ export enum KnownCharFilterName { - /** A character filter that attempts to strip out HTML constructs. See https://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.html */ - HtmlStrip = "html_strip" + /** A character filter that attempts to strip out HTML constructs. See https:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/charfilter\/HTMLStripCharFilter.html */ + HtmlStrip = "html_strip", } /** @@ -2924,9 +3027,12 @@ export type CharFilterName = string; /** Known values of {@link VectorSearchAlgorithmMetric} that the service accepts. */ export enum KnownVectorSearchAlgorithmMetric { + /** Cosine */ Cosine = "cosine", + /** Euclidean */ Euclidean = "euclidean", - DotProduct = "dotProduct" + /** DotProduct */ + DotProduct = "dotProduct", } /** @@ -2940,6 +3046,21 @@ export enum KnownVectorSearchAlgorithmMetric { */ export type VectorSearchAlgorithmMetric = string; +/** Known values of {@link VectorSearchCompressionTargetDataType} that the service accepts. */ +export enum KnownVectorSearchCompressionTargetDataType { + /** Int8 */ + Int8 = "int8", +} + +/** + * Defines values for VectorSearchCompressionTargetDataType. \ + * {@link KnownVectorSearchCompressionTargetDataType} can be used interchangeably with VectorSearchCompressionTargetDataType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **int8** + */ +export type VectorSearchCompressionTargetDataType = string; + /** Known values of {@link KeyPhraseExtractionSkillLanguage} that the service accepts. */ export enum KnownKeyPhraseExtractionSkillLanguage { /** Danish */ @@ -2973,7 +3094,7 @@ export enum KnownKeyPhraseExtractionSkillLanguage { /** Spanish */ Es = "es", /** Swedish */ - Sv = "sv" + Sv = "sv", } /** @@ -3341,7 +3462,7 @@ export enum KnownOcrSkillLanguage { /** Zulu */ Zu = "zu", /** Unknown (All) */ - Unk = "unk" + Unk = "unk", } /** @@ -3531,7 +3652,7 @@ export enum KnownLineEnding { /** Lines are separated by a single line feed ('\n') character. */ LineFeed = "lineFeed", /** Lines are separated by a carriage return and a line feed ('\r\n') character. */ - CarriageReturnLineFeed = "carriageReturnLineFeed" + CarriageReturnLineFeed = "carriageReturnLineFeed", } /** @@ -3651,7 +3772,7 @@ export enum KnownImageAnalysisSkillLanguage { /** Chinese Simplified */ ZhHans = "zh-Hans", /** Chinese Traditional */ - ZhHant = "zh-Hant" + ZhHant = "zh-Hant", } /** @@ -3729,7 +3850,7 @@ export enum KnownVisualFeature { /** Visual features recognized as objects. */ Objects = "objects", /** Tags. */ - Tags = "tags" + Tags = "tags", } /** @@ -3752,7 +3873,7 @@ export enum KnownImageDetail { /** Details recognized as celebrities. */ Celebrities = "celebrities", /** Details recognized as landmarks. */ - Landmarks = "landmarks" + Landmarks = "landmarks", } /** @@ -3780,7 +3901,7 @@ export enum KnownEntityCategory { /** Entities describing a URL. */ Url = "url", /** Entities describing an email address. */ - Email = "email" + Email = "email", } /** @@ -3845,7 +3966,7 @@ export enum KnownEntityRecognitionSkillLanguage { /** Swedish */ Sv = "sv", /** Turkish */ - Tr = "tr" + Tr = "tr", } /** @@ -3910,7 +4031,7 @@ export enum KnownSentimentSkillLanguage { /** Swedish */ Sv = "sv", /** Turkish */ - Tr = "tr" + Tr = "tr", } /** @@ -3941,7 +4062,7 @@ export enum KnownPIIDetectionSkillMaskingMode { /** No masking occurs and the maskedText output will not be returned. */ None = "none", /** Replaces the detected entities with the character given in the maskingCharacter parameter. The character will be repeated to the length of the detected entity so that the offsets will correctly correspond to both the input text as well as the output maskedText. */ - Replace = "replace" + Replace = "replace", } /** @@ -3956,6 +4077,12 @@ export type PIIDetectionSkillMaskingMode = string; /** Known values of {@link SplitSkillLanguage} that the service accepts. */ export enum KnownSplitSkillLanguage { + /** Amharic */ + Am = "am", + /** Bosnian */ + Bs = "bs", + /** Czech */ + Cs = "cs", /** Danish */ Da = "da", /** German */ @@ -3964,16 +4091,58 @@ export enum KnownSplitSkillLanguage { En = "en", /** Spanish */ Es = "es", + /** Estonian */ + Et = "et", /** Finnish */ Fi = "fi", /** French */ Fr = "fr", + /** Hebrew */ + He = "he", + /** Hindi */ + Hi = "hi", + /** Croatian */ + Hr = "hr", + /** Hungarian */ + Hu = "hu", + /** Indonesian */ + Id = "id", + /** Icelandic */ + Is = "is", /** Italian */ It = "it", + /** Japanese */ + Ja = "ja", /** Korean */ Ko = "ko", - /** Portuguese */ - Pt = "pt" + /** Latvian */ + Lv = "lv", + /** Norwegian */ + Nb = "nb", + /** Dutch */ + Nl = "nl", + /** Polish */ + Pl = "pl", + /** Portuguese (Portugal) */ + Pt = "pt", + /** Portuguese (Brazil) */ + PtBr = "pt-br", + /** Russian */ + Ru = "ru", + /** Slovak */ + Sk = "sk", + /** Slovenian */ + Sl = "sl", + /** Serbian */ + Sr = "sr", + /** Swedish */ + Sv = "sv", + /** Turkish */ + Tr = "tr", + /** Urdu */ + Ur = "ur", + /** Chinese (Simplified) */ + Zh = "zh", } /** @@ -3981,15 +4150,39 @@ export enum KnownSplitSkillLanguage { * {@link KnownSplitSkillLanguage} can be used interchangeably with SplitSkillLanguage, * this enum contains the known values that the service supports. * ### Known values supported by the service + * **am**: Amharic \ + * **bs**: Bosnian \ + * **cs**: Czech \ * **da**: Danish \ * **de**: German \ * **en**: English \ * **es**: Spanish \ + * **et**: Estonian \ * **fi**: Finnish \ * **fr**: French \ + * **he**: Hebrew \ + * **hi**: Hindi \ + * **hr**: Croatian \ + * **hu**: Hungarian \ + * **id**: Indonesian \ + * **is**: Icelandic \ * **it**: Italian \ + * **ja**: Japanese \ * **ko**: Korean \ - * **pt**: Portuguese + * **lv**: Latvian \ + * **nb**: Norwegian \ + * **nl**: Dutch \ + * **pl**: Polish \ + * **pt**: Portuguese (Portugal) \ + * **pt-br**: Portuguese (Brazil) \ + * **ru**: Russian \ + * **sk**: Slovak \ + * **sl**: Slovenian \ + * **sr**: Serbian \ + * **sv**: Swedish \ + * **tr**: Turkish \ + * **ur**: Urdu \ + * **zh**: Chinese (Simplified) */ export type SplitSkillLanguage = string; @@ -3998,7 +4191,7 @@ export enum KnownTextSplitMode { /** Split the text into individual pages. */ Pages = "pages", /** Split the text into individual sentences. */ - Sentences = "sentences" + Sentences = "sentences", } /** @@ -4030,7 +4223,7 @@ export enum KnownCustomEntityLookupSkillLanguage { /** Korean */ Ko = "ko", /** Portuguese */ - Pt = "pt" + Pt = "pt", } /** @@ -4195,7 +4388,7 @@ export enum KnownTextTranslationSkillLanguage { /** Malayalam */ Ml = "ml", /** Punjabi */ - Pa = "pa" + Pa = "pa", } /** @@ -4280,32 +4473,32 @@ export type TextTranslationSkillLanguage = string; /** Known values of {@link LexicalTokenizerName} that the service accepts. */ export enum KnownLexicalTokenizerName { - /** Grammar-based tokenizer that is suitable for processing most European-language documents. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/ClassicTokenizer.html */ + /** Grammar-based tokenizer that is suitable for processing most European-language documents. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/standard\/ClassicTokenizer.html */ Classic = "classic", - /** Tokenizes the input from an edge into n-grams of the given size(s). See https://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/EdgeNGramTokenizer.html */ + /** Tokenizes the input from an edge into n-grams of the given size(s). See https:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ngram\/EdgeNGramTokenizer.html */ EdgeNGram = "edgeNGram", - /** Emits the entire input as a single token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/KeywordTokenizer.html */ + /** Emits the entire input as a single token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/KeywordTokenizer.html */ Keyword = "keyword_v2", - /** Divides text at non-letters. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/LetterTokenizer.html */ + /** Divides text at non-letters. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/LetterTokenizer.html */ Letter = "letter", - /** Divides text at non-letters and converts them to lower case. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/LowerCaseTokenizer.html */ + /** Divides text at non-letters and converts them to lower case. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/LowerCaseTokenizer.html */ Lowercase = "lowercase", /** Divides text using language-specific rules. */ MicrosoftLanguageTokenizer = "microsoft_language_tokenizer", /** Divides text using language-specific rules and reduces words to their base forms. */ MicrosoftLanguageStemmingTokenizer = "microsoft_language_stemming_tokenizer", - /** Tokenizes the input into n-grams of the given size(s). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/NGramTokenizer.html */ + /** Tokenizes the input into n-grams of the given size(s). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ngram\/NGramTokenizer.html */ NGram = "nGram", - /** Tokenizer for path-like hierarchies. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/path/PathHierarchyTokenizer.html */ + /** Tokenizer for path-like hierarchies. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/path\/PathHierarchyTokenizer.html */ PathHierarchy = "path_hierarchy_v2", - /** Tokenizer that uses regex pattern matching to construct distinct tokens. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/pattern/PatternTokenizer.html */ + /** Tokenizer that uses regex pattern matching to construct distinct tokens. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/pattern\/PatternTokenizer.html */ Pattern = "pattern", - /** Standard Lucene analyzer; Composed of the standard tokenizer, lowercase filter and stop filter. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/StandardTokenizer.html */ + /** Standard Lucene analyzer; Composed of the standard tokenizer, lowercase filter and stop filter. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/standard\/StandardTokenizer.html */ Standard = "standard_v2", - /** Tokenizes urls and emails as one token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/UAX29URLEmailTokenizer.html */ + /** Tokenizes urls and emails as one token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/standard\/UAX29URLEmailTokenizer.html */ UaxUrlEmail = "uax_url_email", - /** Divides text at whitespace. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceTokenizer.html */ - Whitespace = "whitespace" + /** Divides text at whitespace. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/WhitespaceTokenizer.html */ + Whitespace = "whitespace", } /** @@ -4346,7 +4539,7 @@ export enum KnownRegexFlags { /** Enables Unicode-aware case folding. */ UnicodeCase = "UNICODE_CASE", /** Enables Unix lines mode. */ - UnixLines = "UNIX_LINES" + UnixLines = "UNIX_LINES", } /** diff --git a/sdk/search/search-documents/src/generated/service/models/mappers.ts b/sdk/search/search-documents/src/generated/service/models/mappers.ts index ec156fac7d8e..3ac093ef6565 100644 --- a/sdk/search/search-documents/src/generated/service/models/mappers.ts +++ b/sdk/search/search-documents/src/generated/service/models/mappers.ts @@ -17,72 +17,72 @@ export const SearchIndexerDataSource: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, credentials: { serializedName: "credentials", type: { name: "Composite", - className: "DataSourceCredentials" - } + className: "DataSourceCredentials", + }, }, container: { serializedName: "container", type: { name: "Composite", - className: "SearchIndexerDataContainer" - } + className: "SearchIndexerDataContainer", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "SearchIndexerDataIdentity" - } + className: "SearchIndexerDataIdentity", + }, }, dataChangeDetectionPolicy: { serializedName: "dataChangeDetectionPolicy", type: { name: "Composite", - className: "DataChangeDetectionPolicy" - } + className: "DataChangeDetectionPolicy", + }, }, dataDeletionDetectionPolicy: { serializedName: "dataDeletionDetectionPolicy", type: { name: "Composite", - className: "DataDeletionDetectionPolicy" - } + className: "DataDeletionDetectionPolicy", + }, }, etag: { serializedName: "@odata\\.etag", type: { - name: "String" - } + name: "String", + }, }, encryptionKey: { serializedName: "encryptionKey", type: { name: "Composite", - className: "SearchResourceEncryptionKey" - } - } - } - } + className: "SearchResourceEncryptionKey", + }, + }, + }, + }, }; export const DataSourceCredentials: coreClient.CompositeMapper = { @@ -93,11 +93,11 @@ export const DataSourceCredentials: coreClient.CompositeMapper = { connectionString: { serializedName: "connectionString", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SearchIndexerDataContainer: coreClient.CompositeMapper = { @@ -109,17 +109,17 @@ export const SearchIndexerDataContainer: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, query: { serializedName: "query", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SearchIndexerDataIdentity: coreClient.CompositeMapper = { @@ -129,18 +129,18 @@ export const SearchIndexerDataIdentity: coreClient.CompositeMapper = { uberParent: "SearchIndexerDataIdentity", polymorphicDiscriminator: { serializedName: "@odata\\.type", - clientName: "odatatype" + clientName: "odatatype", }, modelProperties: { odatatype: { serializedName: "@odata\\.type", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DataChangeDetectionPolicy: coreClient.CompositeMapper = { @@ -150,18 +150,18 @@ export const DataChangeDetectionPolicy: coreClient.CompositeMapper = { uberParent: "DataChangeDetectionPolicy", polymorphicDiscriminator: { serializedName: "@odata\\.type", - clientName: "odatatype" + clientName: "odatatype", }, modelProperties: { odatatype: { serializedName: "@odata\\.type", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DataDeletionDetectionPolicy: coreClient.CompositeMapper = { @@ -171,18 +171,18 @@ export const DataDeletionDetectionPolicy: coreClient.CompositeMapper = { uberParent: "DataDeletionDetectionPolicy", polymorphicDiscriminator: { serializedName: "@odata\\.type", - clientName: "odatatype" + clientName: "odatatype", }, modelProperties: { odatatype: { serializedName: "@odata\\.type", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SearchResourceEncryptionKey: coreClient.CompositeMapper = { @@ -194,82 +194,105 @@ export const SearchResourceEncryptionKey: coreClient.CompositeMapper = { serializedName: "keyVaultKeyName", required: true, type: { - name: "String" - } + name: "String", + }, }, keyVersion: { serializedName: "keyVaultKeyVersion", required: true, type: { - name: "String" - } + name: "String", + }, }, vaultUri: { serializedName: "keyVaultUri", required: true, type: { - name: "String" - } + name: "String", + }, }, accessCredentials: { serializedName: "accessCredentials", type: { name: "Composite", - className: "AzureActiveDirectoryApplicationCredentials" - } + className: "AzureActiveDirectoryApplicationCredentials", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "SearchIndexerDataIdentity" - } - } - } - } -}; + className: "SearchIndexerDataIdentity", + }, + }, + }, + }, +}; + +export const AzureActiveDirectoryApplicationCredentials: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AzureActiveDirectoryApplicationCredentials", + modelProperties: { + applicationId: { + serializedName: "applicationId", + required: true, + type: { + name: "String", + }, + }, + applicationSecret: { + serializedName: "applicationSecret", + type: { + name: "String", + }, + }, + }, + }, + }; -export const AzureActiveDirectoryApplicationCredentials: coreClient.CompositeMapper = { +export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureActiveDirectoryApplicationCredentials", + className: "ErrorResponse", modelProperties: { - applicationId: { - serializedName: "applicationId", - required: true, + error: { + serializedName: "error", type: { - name: "String" - } + name: "Composite", + className: "ErrorDetail", + }, }, - applicationSecret: { - serializedName: "applicationSecret", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const SearchError: coreClient.CompositeMapper = { +export const ErrorDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SearchError", + className: "ErrorDetail", modelProperties: { code: { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", - required: true, readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String", + }, }, details: { serializedName: "details", @@ -279,13 +302,50 @@ export const SearchError: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchError" - } - } - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, +}; + +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + info: { + serializedName: "info", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const ListDataSourcesResult: coreClient.CompositeMapper = { @@ -302,13 +362,13 @@ export const ListDataSourcesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchIndexerDataSource" - } - } - } - } - } - } + className: "SearchIndexerDataSource", + }, + }, + }, + }, + }, + }, }; export const DocumentKeysOrIds: coreClient.CompositeMapper = { @@ -322,10 +382,10 @@ export const DocumentKeysOrIds: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, datasourceDocumentIds: { serializedName: "datasourceDocumentIds", @@ -333,13 +393,13 @@ export const DocumentKeysOrIds: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const SearchIndexer: coreClient.CompositeMapper = { @@ -351,48 +411,48 @@ export const SearchIndexer: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, dataSourceName: { serializedName: "dataSourceName", required: true, type: { - name: "String" - } + name: "String", + }, }, skillsetName: { serializedName: "skillsetName", type: { - name: "String" - } + name: "String", + }, }, targetIndexName: { serializedName: "targetIndexName", required: true, type: { - name: "String" - } + name: "String", + }, }, schedule: { serializedName: "schedule", type: { name: "Composite", - className: "IndexingSchedule" - } + className: "IndexingSchedule", + }, }, parameters: { serializedName: "parameters", type: { name: "Composite", - className: "IndexingParameters" - } + className: "IndexingParameters", + }, }, fieldMappings: { serializedName: "fieldMappings", @@ -401,10 +461,10 @@ export const SearchIndexer: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "FieldMapping" - } - } - } + className: "FieldMapping", + }, + }, + }, }, outputFieldMappings: { serializedName: "outputFieldMappings", @@ -413,41 +473,41 @@ export const SearchIndexer: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "FieldMapping" - } - } - } + className: "FieldMapping", + }, + }, + }, }, isDisabled: { defaultValue: false, serializedName: "disabled", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, etag: { serializedName: "@odata\\.etag", type: { - name: "String" - } + name: "String", + }, }, encryptionKey: { serializedName: "encryptionKey", type: { name: "Composite", - className: "SearchResourceEncryptionKey" - } + className: "SearchResourceEncryptionKey", + }, }, cache: { serializedName: "cache", type: { name: "Composite", - className: "SearchIndexerCache" - } - } - } - } + className: "SearchIndexerCache", + }, + }, + }, + }, }; export const IndexingSchedule: coreClient.CompositeMapper = { @@ -459,17 +519,17 @@ export const IndexingSchedule: coreClient.CompositeMapper = { serializedName: "interval", required: true, type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, startTime: { serializedName: "startTime", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const IndexingParameters: coreClient.CompositeMapper = { @@ -481,34 +541,34 @@ export const IndexingParameters: coreClient.CompositeMapper = { serializedName: "batchSize", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, maxFailedItems: { defaultValue: 0, serializedName: "maxFailedItems", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, maxFailedItemsPerBatch: { defaultValue: 0, serializedName: "maxFailedItemsPerBatch", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, configuration: { serializedName: "configuration", type: { name: "Composite", - className: "IndexingParametersConfiguration" - } - } - } - } + className: "IndexingParametersConfiguration", + }, + }, + }, + }, }; export const IndexingParametersConfiguration: coreClient.CompositeMapper = { @@ -521,113 +581,113 @@ export const IndexingParametersConfiguration: coreClient.CompositeMapper = { defaultValue: "default", serializedName: "parsingMode", type: { - name: "String" - } + name: "String", + }, }, excludedFileNameExtensions: { defaultValue: "", serializedName: "excludedFileNameExtensions", type: { - name: "String" - } + name: "String", + }, }, indexedFileNameExtensions: { defaultValue: "", serializedName: "indexedFileNameExtensions", type: { - name: "String" - } + name: "String", + }, }, failOnUnsupportedContentType: { defaultValue: false, serializedName: "failOnUnsupportedContentType", type: { - name: "Boolean" - } + name: "Boolean", + }, }, failOnUnprocessableDocument: { defaultValue: false, serializedName: "failOnUnprocessableDocument", type: { - name: "Boolean" - } + name: "Boolean", + }, }, indexStorageMetadataOnlyForOversizedDocuments: { defaultValue: false, serializedName: "indexStorageMetadataOnlyForOversizedDocuments", type: { - name: "Boolean" - } + name: "Boolean", + }, }, delimitedTextHeaders: { serializedName: "delimitedTextHeaders", type: { - name: "String" - } + name: "String", + }, }, delimitedTextDelimiter: { serializedName: "delimitedTextDelimiter", type: { - name: "String" - } + name: "String", + }, }, firstLineContainsHeaders: { defaultValue: true, serializedName: "firstLineContainsHeaders", type: { - name: "Boolean" - } + name: "Boolean", + }, }, documentRoot: { serializedName: "documentRoot", type: { - name: "String" - } + name: "String", + }, }, dataToExtract: { defaultValue: "contentAndMetadata", serializedName: "dataToExtract", type: { - name: "String" - } + name: "String", + }, }, imageAction: { defaultValue: "none", serializedName: "imageAction", type: { - name: "String" - } + name: "String", + }, }, allowSkillsetToReadFileData: { defaultValue: false, serializedName: "allowSkillsetToReadFileData", type: { - name: "Boolean" - } + name: "Boolean", + }, }, pdfTextRotationAlgorithm: { defaultValue: "none", serializedName: "pdfTextRotationAlgorithm", type: { - name: "String" - } + name: "String", + }, }, executionEnvironment: { defaultValue: "standard", serializedName: "executionEnvironment", type: { - name: "String" - } + name: "String", + }, }, queryTimeout: { defaultValue: "00:05:00", serializedName: "queryTimeout", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const FieldMapping: coreClient.CompositeMapper = { @@ -639,24 +699,24 @@ export const FieldMapping: coreClient.CompositeMapper = { serializedName: "sourceFieldName", required: true, type: { - name: "String" - } + name: "String", + }, }, targetFieldName: { serializedName: "targetFieldName", type: { - name: "String" - } + name: "String", + }, }, mappingFunction: { serializedName: "mappingFunction", type: { name: "Composite", - className: "FieldMappingFunction" - } - } - } - } + className: "FieldMappingFunction", + }, + }, + }, + }, }; export const FieldMappingFunction: coreClient.CompositeMapper = { @@ -668,19 +728,19 @@ export const FieldMappingFunction: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, parameters: { serializedName: "parameters", nullable: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const SearchIndexerCache: coreClient.CompositeMapper = { @@ -691,25 +751,25 @@ export const SearchIndexerCache: coreClient.CompositeMapper = { storageConnectionString: { serializedName: "storageConnectionString", type: { - name: "String" - } + name: "String", + }, }, enableReprocessing: { serializedName: "enableReprocessing", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "SearchIndexerDataIdentity" - } - } - } - } + className: "SearchIndexerDataIdentity", + }, + }, + }, + }, }; export const ListIndexersResult: coreClient.CompositeMapper = { @@ -726,13 +786,13 @@ export const ListIndexersResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchIndexer" - } - } - } - } - } - } + className: "SearchIndexer", + }, + }, + }, + }, + }, + }, }; export const SearchIndexerStatus: coreClient.CompositeMapper = { @@ -746,15 +806,15 @@ export const SearchIndexerStatus: coreClient.CompositeMapper = { readOnly: true, type: { name: "Enum", - allowedValues: ["unknown", "error", "running"] - } + allowedValues: ["unknown", "error", "running"], + }, }, lastResult: { serializedName: "lastResult", type: { name: "Composite", - className: "IndexerExecutionResult" - } + className: "IndexerExecutionResult", + }, }, executionHistory: { serializedName: "executionHistory", @@ -765,20 +825,20 @@ export const SearchIndexerStatus: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IndexerExecutionResult" - } - } - } + className: "IndexerExecutionResult", + }, + }, + }, }, limits: { serializedName: "limits", type: { name: "Composite", - className: "SearchIndexerLimits" - } - } - } - } + className: "SearchIndexerLimits", + }, + }, + }, + }, }; export const IndexerExecutionResult: coreClient.CompositeMapper = { @@ -792,44 +852,44 @@ export const IndexerExecutionResult: coreClient.CompositeMapper = { readOnly: true, type: { name: "Enum", - allowedValues: ["transientFailure", "success", "inProgress", "reset"] - } + allowedValues: ["transientFailure", "success", "inProgress", "reset"], + }, }, statusDetail: { serializedName: "statusDetail", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, currentState: { serializedName: "currentState", type: { name: "Composite", - className: "IndexerState" - } + className: "IndexerState", + }, }, errorMessage: { serializedName: "errorMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, startTime: { serializedName: "startTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, endTime: { serializedName: "endTime", readOnly: true, nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, errors: { serializedName: "errors", @@ -840,10 +900,10 @@ export const IndexerExecutionResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchIndexerError" - } - } - } + className: "SearchIndexerError", + }, + }, + }, }, warnings: { serializedName: "warnings", @@ -854,43 +914,43 @@ export const IndexerExecutionResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchIndexerWarning" - } - } - } + className: "SearchIndexerWarning", + }, + }, + }, }, itemCount: { serializedName: "itemsProcessed", required: true, readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, failedItemCount: { serializedName: "itemsFailed", required: true, readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, initialTrackingState: { serializedName: "initialTrackingState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, finalTrackingState: { serializedName: "finalTrackingState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IndexerState: coreClient.CompositeMapper = { @@ -902,36 +962,36 @@ export const IndexerState: coreClient.CompositeMapper = { serializedName: "mode", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, allDocumentsInitialChangeTrackingState: { serializedName: "allDocsInitialChangeTrackingState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, allDocumentsFinalChangeTrackingState: { serializedName: "allDocsFinalChangeTrackingState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resetDocumentsInitialChangeTrackingState: { serializedName: "resetDocsInitialChangeTrackingState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resetDocumentsFinalChangeTrackingState: { serializedName: "resetDocsFinalChangeTrackingState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resetDocumentKeys: { serializedName: "resetDocumentKeys", @@ -940,10 +1000,10 @@ export const IndexerState: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, resetDatasourceDocumentIds: { serializedName: "resetDatasourceDocumentIds", @@ -952,13 +1012,13 @@ export const IndexerState: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const SearchIndexerError: coreClient.CompositeMapper = { @@ -970,48 +1030,48 @@ export const SearchIndexerError: coreClient.CompositeMapper = { serializedName: "key", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, errorMessage: { serializedName: "errorMessage", required: true, readOnly: true, type: { - name: "String" - } + name: "String", + }, }, statusCode: { serializedName: "statusCode", required: true, readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, documentationLink: { serializedName: "documentationLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SearchIndexerWarning: coreClient.CompositeMapper = { @@ -1023,40 +1083,40 @@ export const SearchIndexerWarning: coreClient.CompositeMapper = { serializedName: "key", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", required: true, readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, documentationLink: { serializedName: "documentationLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SearchIndexerLimits: coreClient.CompositeMapper = { @@ -1068,25 +1128,25 @@ export const SearchIndexerLimits: coreClient.CompositeMapper = { serializedName: "maxRunTime", readOnly: true, type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, maxDocumentExtractionSize: { serializedName: "maxDocumentExtractionSize", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, maxDocumentContentCharactersToExtract: { serializedName: "maxDocumentContentCharactersToExtract", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const SearchIndexerSkillset: coreClient.CompositeMapper = { @@ -1098,14 +1158,14 @@ export const SearchIndexerSkillset: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, skills: { serializedName: "skills", @@ -1115,47 +1175,47 @@ export const SearchIndexerSkillset: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchIndexerSkill" - } - } - } + className: "SearchIndexerSkill", + }, + }, + }, }, cognitiveServicesAccount: { serializedName: "cognitiveServices", type: { name: "Composite", - className: "CognitiveServicesAccount" - } + className: "CognitiveServicesAccount", + }, }, knowledgeStore: { serializedName: "knowledgeStore", type: { name: "Composite", - className: "SearchIndexerKnowledgeStore" - } + className: "SearchIndexerKnowledgeStore", + }, }, indexProjections: { serializedName: "indexProjections", type: { name: "Composite", - className: "SearchIndexerIndexProjections" - } + className: "SearchIndexerIndexProjections", + }, }, etag: { serializedName: "@odata\\.etag", type: { - name: "String" - } + name: "String", + }, }, encryptionKey: { serializedName: "encryptionKey", type: { name: "Composite", - className: "SearchResourceEncryptionKey" - } - } - } - } + className: "SearchResourceEncryptionKey", + }, + }, + }, + }, }; export const SearchIndexerSkill: coreClient.CompositeMapper = { @@ -1165,33 +1225,33 @@ export const SearchIndexerSkill: coreClient.CompositeMapper = { uberParent: "SearchIndexerSkill", polymorphicDiscriminator: { serializedName: "@odata\\.type", - clientName: "odatatype" + clientName: "odatatype", }, modelProperties: { odatatype: { serializedName: "@odata\\.type", required: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, context: { serializedName: "context", type: { - name: "String" - } + name: "String", + }, }, inputs: { serializedName: "inputs", @@ -1201,10 +1261,10 @@ export const SearchIndexerSkill: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InputFieldMappingEntry" - } - } - } + className: "InputFieldMappingEntry", + }, + }, + }, }, outputs: { serializedName: "outputs", @@ -1214,13 +1274,13 @@ export const SearchIndexerSkill: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OutputFieldMappingEntry" - } - } - } - } - } - } + className: "OutputFieldMappingEntry", + }, + }, + }, + }, + }, + }, }; export const InputFieldMappingEntry: coreClient.CompositeMapper = { @@ -1232,20 +1292,20 @@ export const InputFieldMappingEntry: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, source: { serializedName: "source", type: { - name: "String" - } + name: "String", + }, }, sourceContext: { serializedName: "sourceContext", type: { - name: "String" - } + name: "String", + }, }, inputs: { serializedName: "inputs", @@ -1254,13 +1314,13 @@ export const InputFieldMappingEntry: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InputFieldMappingEntry" - } - } - } - } - } - } + className: "InputFieldMappingEntry", + }, + }, + }, + }, + }, + }, }; export const OutputFieldMappingEntry: coreClient.CompositeMapper = { @@ -1272,17 +1332,17 @@ export const OutputFieldMappingEntry: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, targetName: { serializedName: "targetName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CognitiveServicesAccount: coreClient.CompositeMapper = { @@ -1292,24 +1352,24 @@ export const CognitiveServicesAccount: coreClient.CompositeMapper = { uberParent: "CognitiveServicesAccount", polymorphicDiscriminator: { serializedName: "@odata\\.type", - clientName: "odatatype" + clientName: "odatatype", }, modelProperties: { odatatype: { serializedName: "@odata\\.type", required: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SearchIndexerKnowledgeStore: coreClient.CompositeMapper = { @@ -1321,8 +1381,8 @@ export const SearchIndexerKnowledgeStore: coreClient.CompositeMapper = { serializedName: "storageConnectionString", required: true, type: { - name: "String" - } + name: "String", + }, }, projections: { serializedName: "projections", @@ -1332,223 +1392,229 @@ export const SearchIndexerKnowledgeStore: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchIndexerKnowledgeStoreProjection" - } - } - } + className: "SearchIndexerKnowledgeStoreProjection", + }, + }, + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "SearchIndexerDataIdentity" - } + className: "SearchIndexerDataIdentity", + }, }, parameters: { serializedName: "parameters", type: { name: "Composite", - className: "SearchIndexerKnowledgeStoreParameters" - } - } - } - } -}; + className: "SearchIndexerKnowledgeStoreParameters", + }, + }, + }, + }, +}; + +export const SearchIndexerKnowledgeStoreProjection: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SearchIndexerKnowledgeStoreProjection", + modelProperties: { + tables: { + serializedName: "tables", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SearchIndexerKnowledgeStoreTableProjectionSelector", + }, + }, + }, + }, + objects: { + serializedName: "objects", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: + "SearchIndexerKnowledgeStoreObjectProjectionSelector", + }, + }, + }, + }, + files: { + serializedName: "files", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SearchIndexerKnowledgeStoreFileProjectionSelector", + }, + }, + }, + }, + }, + }, + }; + +export const SearchIndexerKnowledgeStoreProjectionSelector: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SearchIndexerKnowledgeStoreProjectionSelector", + modelProperties: { + referenceKeyName: { + serializedName: "referenceKeyName", + type: { + name: "String", + }, + }, + generatedKeyName: { + serializedName: "generatedKeyName", + type: { + name: "String", + }, + }, + source: { + serializedName: "source", + type: { + name: "String", + }, + }, + sourceContext: { + serializedName: "sourceContext", + type: { + name: "String", + }, + }, + inputs: { + serializedName: "inputs", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InputFieldMappingEntry", + }, + }, + }, + }, + }, + }, + }; + +export const SearchIndexerKnowledgeStoreParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SearchIndexerKnowledgeStoreParameters", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + synthesizeGeneratedKeyName: { + defaultValue: false, + serializedName: "synthesizeGeneratedKeyName", + type: { + name: "Boolean", + }, + }, + }, + }, + }; -export const SearchIndexerKnowledgeStoreProjection: coreClient.CompositeMapper = { +export const SearchIndexerIndexProjections: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SearchIndexerKnowledgeStoreProjection", + className: "SearchIndexerIndexProjections", modelProperties: { - tables: { - serializedName: "tables", + selectors: { + serializedName: "selectors", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SearchIndexerKnowledgeStoreTableProjectionSelector" - } - } - } - }, - objects: { - serializedName: "objects", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SearchIndexerKnowledgeStoreObjectProjectionSelector" - } - } - } - }, - files: { - serializedName: "files", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SearchIndexerKnowledgeStoreFileProjectionSelector" - } - } - } - } - } - } -}; - -export const SearchIndexerKnowledgeStoreProjectionSelector: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SearchIndexerKnowledgeStoreProjectionSelector", - modelProperties: { - referenceKeyName: { - serializedName: "referenceKeyName", - type: { - name: "String" - } - }, - generatedKeyName: { - serializedName: "generatedKeyName", - type: { - name: "String" - } - }, - source: { - serializedName: "source", - type: { - name: "String" - } - }, - sourceContext: { - serializedName: "sourceContext", - type: { - name: "String" - } - }, - inputs: { - serializedName: "inputs", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InputFieldMappingEntry" - } - } - } - } - } - } -}; - -export const SearchIndexerKnowledgeStoreParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SearchIndexerKnowledgeStoreParameters", - additionalProperties: { type: { name: "Object" } }, - modelProperties: { - synthesizeGeneratedKeyName: { - defaultValue: false, - serializedName: "synthesizeGeneratedKeyName", - type: { - name: "Boolean" - } - } - } - } -}; - -export const SearchIndexerIndexProjections: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SearchIndexerIndexProjections", - modelProperties: { - selectors: { - serializedName: "selectors", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SearchIndexerIndexProjectionSelector" - } - } - } + className: "SearchIndexerIndexProjectionSelector", + }, + }, + }, }, parameters: { serializedName: "parameters", type: { name: "Composite", - className: "SearchIndexerIndexProjectionsParameters" - } - } - } - } -}; - -export const SearchIndexerIndexProjectionSelector: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SearchIndexerIndexProjectionSelector", - modelProperties: { - targetIndexName: { - serializedName: "targetIndexName", - required: true, - type: { - name: "String" - } + className: "SearchIndexerIndexProjectionsParameters", + }, }, - parentKeyFieldName: { - serializedName: "parentKeyFieldName", - required: true, - type: { - name: "String" - } + }, + }, +}; + +export const SearchIndexerIndexProjectionSelector: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SearchIndexerIndexProjectionSelector", + modelProperties: { + targetIndexName: { + serializedName: "targetIndexName", + required: true, + type: { + name: "String", + }, + }, + parentKeyFieldName: { + serializedName: "parentKeyFieldName", + required: true, + type: { + name: "String", + }, + }, + sourceContext: { + serializedName: "sourceContext", + required: true, + type: { + name: "String", + }, + }, + mappings: { + serializedName: "mappings", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InputFieldMappingEntry", + }, + }, + }, + }, }, - sourceContext: { - serializedName: "sourceContext", - required: true, - type: { - name: "String" - } + }, + }; + +export const SearchIndexerIndexProjectionsParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SearchIndexerIndexProjectionsParameters", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + projectionMode: { + serializedName: "projectionMode", + type: { + name: "String", + }, + }, }, - mappings: { - serializedName: "mappings", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InputFieldMappingEntry" - } - } - } - } - } - } -}; - -export const SearchIndexerIndexProjectionsParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SearchIndexerIndexProjectionsParameters", - additionalProperties: { type: { name: "Object" } }, - modelProperties: { - projectionMode: { - serializedName: "projectionMode", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const ListSkillsetsResult: coreClient.CompositeMapper = { type: { @@ -1564,13 +1630,13 @@ export const ListSkillsetsResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchIndexerSkillset" - } - } - } - } - } - } + className: "SearchIndexerSkillset", + }, + }, + }, + }, + }, + }, }; export const SkillNames: coreClient.CompositeMapper = { @@ -1584,13 +1650,13 @@ export const SkillNames: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const SynonymMap: coreClient.CompositeMapper = { @@ -1602,39 +1668,39 @@ export const SynonymMap: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, format: { defaultValue: "solr", isConstant: true, serializedName: "format", type: { - name: "String" - } + name: "String", + }, }, synonyms: { serializedName: "synonyms", required: true, type: { - name: "String" - } + name: "String", + }, }, encryptionKey: { serializedName: "encryptionKey", type: { name: "Composite", - className: "SearchResourceEncryptionKey" - } + className: "SearchResourceEncryptionKey", + }, }, etag: { serializedName: "@odata\\.etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ListSynonymMapsResult: coreClient.CompositeMapper = { @@ -1651,13 +1717,13 @@ export const ListSynonymMapsResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SynonymMap" - } - } - } - } - } - } + className: "SynonymMap", + }, + }, + }, + }, + }, + }, }; export const SearchIndex: coreClient.CompositeMapper = { @@ -1669,8 +1735,8 @@ export const SearchIndex: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, fields: { serializedName: "fields", @@ -1680,10 +1746,10 @@ export const SearchIndex: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchField" - } - } - } + className: "SearchField", + }, + }, + }, }, scoringProfiles: { serializedName: "scoringProfiles", @@ -1692,23 +1758,23 @@ export const SearchIndex: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ScoringProfile" - } - } - } + className: "ScoringProfile", + }, + }, + }, }, defaultScoringProfile: { serializedName: "defaultScoringProfile", type: { - name: "String" - } + name: "String", + }, }, corsOptions: { serializedName: "corsOptions", type: { name: "Composite", - className: "CorsOptions" - } + className: "CorsOptions", + }, }, suggesters: { serializedName: "suggesters", @@ -1717,10 +1783,10 @@ export const SearchIndex: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Suggester" - } - } - } + className: "Suggester", + }, + }, + }, }, analyzers: { serializedName: "analyzers", @@ -1729,10 +1795,10 @@ export const SearchIndex: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LexicalAnalyzer" - } - } - } + className: "LexicalAnalyzer", + }, + }, + }, }, tokenizers: { serializedName: "tokenizers", @@ -1741,10 +1807,10 @@ export const SearchIndex: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LexicalTokenizer" - } - } - } + className: "LexicalTokenizer", + }, + }, + }, }, tokenFilters: { serializedName: "tokenFilters", @@ -1753,10 +1819,10 @@ export const SearchIndex: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TokenFilter" - } - } - } + className: "TokenFilter", + }, + }, + }, }, charFilters: { serializedName: "charFilters", @@ -1765,10 +1831,10 @@ export const SearchIndex: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CharFilter" - } - } - } + className: "CharFilter", + }, + }, + }, }, normalizers: { serializedName: "normalizers", @@ -1777,47 +1843,47 @@ export const SearchIndex: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LexicalNormalizer" - } - } - } + className: "LexicalNormalizer", + }, + }, + }, }, encryptionKey: { serializedName: "encryptionKey", type: { name: "Composite", - className: "SearchResourceEncryptionKey" - } + className: "SearchResourceEncryptionKey", + }, }, similarity: { serializedName: "similarity", type: { name: "Composite", - className: "Similarity" - } + className: "Similarity", + }, }, - semanticSettings: { + semanticSearch: { serializedName: "semantic", type: { name: "Composite", - className: "SemanticSettings" - } + className: "SemanticSearch", + }, }, vectorSearch: { serializedName: "vectorSearch", type: { name: "Composite", - className: "VectorSearch" - } + className: "VectorSearch", + }, }, etag: { serializedName: "@odata\\.etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SearchField: coreClient.CompositeMapper = { @@ -1829,97 +1895,103 @@ export const SearchField: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, key: { serializedName: "key", type: { - name: "Boolean" - } + name: "Boolean", + }, }, retrievable: { serializedName: "retrievable", type: { - name: "Boolean" - } + name: "Boolean", + }, + }, + stored: { + serializedName: "stored", + type: { + name: "Boolean", + }, }, searchable: { serializedName: "searchable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, filterable: { serializedName: "filterable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, sortable: { serializedName: "sortable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, facetable: { serializedName: "facetable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, analyzer: { serializedName: "analyzer", nullable: true, type: { - name: "String" - } + name: "String", + }, }, searchAnalyzer: { serializedName: "searchAnalyzer", nullable: true, type: { - name: "String" - } + name: "String", + }, }, indexAnalyzer: { serializedName: "indexAnalyzer", nullable: true, type: { - name: "String" - } + name: "String", + }, }, normalizer: { serializedName: "normalizer", nullable: true, type: { - name: "String" - } + name: "String", + }, }, vectorSearchDimensions: { constraints: { InclusiveMaximum: 2048, - InclusiveMinimum: 2 + InclusiveMinimum: 2, }, serializedName: "dimensions", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, - vectorSearchProfile: { + vectorSearchProfileName: { serializedName: "vectorSearchProfile", nullable: true, type: { - name: "String" - } + name: "String", + }, }, synonymMaps: { serializedName: "synonymMaps", @@ -1927,10 +1999,10 @@ export const SearchField: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, fields: { serializedName: "fields", @@ -1939,13 +2011,13 @@ export const SearchField: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchField" - } - } - } - } - } - } + className: "SearchField", + }, + }, + }, + }, + }, + }, }; export const ScoringProfile: coreClient.CompositeMapper = { @@ -1957,15 +2029,15 @@ export const ScoringProfile: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, textWeights: { serializedName: "text", type: { name: "Composite", - className: "TextWeights" - } + className: "TextWeights", + }, }, functions: { serializedName: "functions", @@ -1974,10 +2046,10 @@ export const ScoringProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ScoringFunction" - } - } - } + className: "ScoringFunction", + }, + }, + }, }, functionAggregation: { serializedName: "functionAggregation", @@ -1988,12 +2060,12 @@ export const ScoringProfile: coreClient.CompositeMapper = { "average", "minimum", "maximum", - "firstMatching" - ] - } - } - } - } + "firstMatching", + ], + }, + }, + }, + }, }; export const TextWeights: coreClient.CompositeMapper = { @@ -2006,11 +2078,11 @@ export const TextWeights: coreClient.CompositeMapper = { required: true, type: { name: "Dictionary", - value: { type: { name: "Number" } } - } - } - } - } + value: { type: { name: "Number" } }, + }, + }, + }, + }, }; export const ScoringFunction: coreClient.CompositeMapper = { @@ -2020,39 +2092,39 @@ export const ScoringFunction: coreClient.CompositeMapper = { uberParent: "ScoringFunction", polymorphicDiscriminator: { serializedName: "type", - clientName: "type" + clientName: "type", }, modelProperties: { type: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, fieldName: { serializedName: "fieldName", required: true, type: { - name: "String" - } + name: "String", + }, }, boost: { serializedName: "boost", required: true, type: { - name: "Number" - } + name: "Number", + }, }, interpolation: { serializedName: "interpolation", type: { name: "Enum", - allowedValues: ["linear", "constant", "quadratic", "logarithmic"] - } - } - } - } + allowedValues: ["linear", "constant", "quadratic", "logarithmic"], + }, + }, + }, + }, }; export const CorsOptions: coreClient.CompositeMapper = { @@ -2067,20 +2139,20 @@ export const CorsOptions: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, maxAgeInSeconds: { serializedName: "maxAgeInSeconds", nullable: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const Suggester: coreClient.CompositeMapper = { @@ -2092,16 +2164,16 @@ export const Suggester: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, searchMode: { defaultValue: "analyzingInfixMatching", isConstant: true, serializedName: "searchMode", type: { - name: "String" - } + name: "String", + }, }, sourceFields: { serializedName: "sourceFields", @@ -2110,13 +2182,13 @@ export const Suggester: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const LexicalAnalyzer: coreClient.CompositeMapper = { @@ -2126,25 +2198,25 @@ export const LexicalAnalyzer: coreClient.CompositeMapper = { uberParent: "LexicalAnalyzer", polymorphicDiscriminator: { serializedName: "@odata\\.type", - clientName: "odatatype" + clientName: "odatatype", }, modelProperties: { odatatype: { serializedName: "@odata\\.type", required: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LexicalTokenizer: coreClient.CompositeMapper = { @@ -2154,25 +2226,25 @@ export const LexicalTokenizer: coreClient.CompositeMapper = { uberParent: "LexicalTokenizer", polymorphicDiscriminator: { serializedName: "@odata\\.type", - clientName: "odatatype" + clientName: "odatatype", }, modelProperties: { odatatype: { serializedName: "@odata\\.type", required: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TokenFilter: coreClient.CompositeMapper = { @@ -2182,25 +2254,25 @@ export const TokenFilter: coreClient.CompositeMapper = { uberParent: "TokenFilter", polymorphicDiscriminator: { serializedName: "@odata\\.type", - clientName: "odatatype" + clientName: "odatatype", }, modelProperties: { odatatype: { serializedName: "@odata\\.type", required: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CharFilter: coreClient.CompositeMapper = { @@ -2210,25 +2282,25 @@ export const CharFilter: coreClient.CompositeMapper = { uberParent: "CharFilter", polymorphicDiscriminator: { serializedName: "@odata\\.type", - clientName: "odatatype" + clientName: "odatatype", }, modelProperties: { odatatype: { serializedName: "@odata\\.type", required: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LexicalNormalizer: coreClient.CompositeMapper = { @@ -2238,25 +2310,25 @@ export const LexicalNormalizer: coreClient.CompositeMapper = { uberParent: "LexicalNormalizer", polymorphicDiscriminator: { serializedName: "@odata\\.type", - clientName: "odatatype" + clientName: "odatatype", }, modelProperties: { odatatype: { serializedName: "@odata\\.type", required: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Similarity: coreClient.CompositeMapper = { @@ -2266,30 +2338,30 @@ export const Similarity: coreClient.CompositeMapper = { uberParent: "Similarity", polymorphicDiscriminator: { serializedName: "@odata\\.type", - clientName: "odatatype" + clientName: "odatatype", }, modelProperties: { odatatype: { serializedName: "@odata\\.type", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SemanticSettings: coreClient.CompositeMapper = { +export const SemanticSearch: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SemanticSettings", + className: "SemanticSearch", modelProperties: { - defaultConfiguration: { + defaultConfigurationName: { serializedName: "defaultConfiguration", type: { - name: "String" - } + name: "String", + }, }, configurations: { serializedName: "configurations", @@ -2298,13 +2370,13 @@ export const SemanticSettings: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SemanticConfiguration" - } - } - } - } - } - } + className: "SemanticConfiguration", + }, + }, + }, + }, + }, + }, }; export const SemanticConfiguration: coreClient.CompositeMapper = { @@ -2316,58 +2388,58 @@ export const SemanticConfiguration: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, prioritizedFields: { serializedName: "prioritizedFields", type: { name: "Composite", - className: "PrioritizedFields" - } - } - } - } + className: "SemanticPrioritizedFields", + }, + }, + }, + }, }; -export const PrioritizedFields: coreClient.CompositeMapper = { +export const SemanticPrioritizedFields: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrioritizedFields", + className: "SemanticPrioritizedFields", modelProperties: { titleField: { serializedName: "titleField", type: { name: "Composite", - className: "SemanticField" - } + className: "SemanticField", + }, }, - prioritizedContentFields: { + contentFields: { serializedName: "prioritizedContentFields", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SemanticField" - } - } - } + className: "SemanticField", + }, + }, + }, }, - prioritizedKeywordsFields: { + keywordsFields: { serializedName: "prioritizedKeywordsFields", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SemanticField" - } - } - } - } - } - } + className: "SemanticField", + }, + }, + }, + }, + }, + }, }; export const SemanticField: coreClient.CompositeMapper = { @@ -2377,12 +2449,13 @@ export const SemanticField: coreClient.CompositeMapper = { modelProperties: { name: { serializedName: "fieldName", + required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VectorSearch: coreClient.CompositeMapper = { @@ -2397,10 +2470,10 @@ export const VectorSearch: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VectorSearchProfile" - } - } - } + className: "VectorSearchProfile", + }, + }, + }, }, algorithms: { serializedName: "algorithms", @@ -2409,10 +2482,10 @@ export const VectorSearch: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VectorSearchAlgorithmConfiguration" - } - } - } + className: "VectorSearchAlgorithmConfiguration", + }, + }, + }, }, vectorizers: { serializedName: "vectorizers", @@ -2421,13 +2494,25 @@ export const VectorSearch: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VectorSearchVectorizer" - } - } - } - } - } - } + className: "VectorSearchVectorizer", + }, + }, + }, + }, + compressions: { + serializedName: "compressions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BaseVectorSearchCompressionConfiguration", + }, + }, + }, + }, + }, + }, }; export const VectorSearchProfile: coreClient.CompositeMapper = { @@ -2439,24 +2524,30 @@ export const VectorSearchProfile: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, - algorithm: { + algorithmConfigurationName: { serializedName: "algorithm", required: true, type: { - name: "String" - } + name: "String", + }, }, vectorizer: { serializedName: "vectorizer", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + compressionConfigurationName: { + serializedName: "compression", + type: { + name: "String", + }, + }, + }, + }, }; export const VectorSearchAlgorithmConfiguration: coreClient.CompositeMapper = { @@ -2466,25 +2557,25 @@ export const VectorSearchAlgorithmConfiguration: coreClient.CompositeMapper = { uberParent: "VectorSearchAlgorithmConfiguration", polymorphicDiscriminator: { serializedName: "kind", - clientName: "kind" + clientName: "kind", }, modelProperties: { name: { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, kind: { serializedName: "kind", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VectorSearchVectorizer: coreClient.CompositeMapper = { @@ -2494,27 +2585,70 @@ export const VectorSearchVectorizer: coreClient.CompositeMapper = { uberParent: "VectorSearchVectorizer", polymorphicDiscriminator: { serializedName: "kind", - clientName: "kind" + clientName: "kind", }, modelProperties: { name: { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, kind: { serializedName: "kind", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; +export const BaseVectorSearchCompressionConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BaseVectorSearchCompressionConfiguration", + uberParent: "BaseVectorSearchCompressionConfiguration", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind", + }, + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + kind: { + serializedName: "kind", + required: true, + type: { + name: "String", + }, + }, + rerankWithOriginalVectors: { + defaultValue: true, + serializedName: "rerankWithOriginalVectors", + type: { + name: "Boolean", + }, + }, + defaultOversampling: { + serializedName: "defaultOversampling", + nullable: true, + type: { + name: "Number", + }, + }, + }, + }, + }; + export const ListIndexesResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2529,13 +2663,13 @@ export const ListIndexesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchIndex" - } - } - } - } - } - } + className: "SearchIndex", + }, + }, + }, + }, + }, + }, }; export const GetIndexStatisticsResult: coreClient.CompositeMapper = { @@ -2548,27 +2682,27 @@ export const GetIndexStatisticsResult: coreClient.CompositeMapper = { required: true, readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, storageSize: { serializedName: "storageSize", required: true, readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, vectorIndexSize: { serializedName: "vectorIndexSize", required: true, readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const AnalyzeRequest: coreClient.CompositeMapper = { @@ -2580,26 +2714,26 @@ export const AnalyzeRequest: coreClient.CompositeMapper = { serializedName: "text", required: true, type: { - name: "String" - } + name: "String", + }, }, analyzer: { serializedName: "analyzer", type: { - name: "String" - } + name: "String", + }, }, tokenizer: { serializedName: "tokenizer", type: { - name: "String" - } + name: "String", + }, }, normalizer: { serializedName: "normalizer", type: { - name: "String" - } + name: "String", + }, }, tokenFilters: { serializedName: "tokenFilters", @@ -2607,10 +2741,10 @@ export const AnalyzeRequest: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, charFilters: { serializedName: "charFilters", @@ -2618,13 +2752,13 @@ export const AnalyzeRequest: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const AnalyzeResult: coreClient.CompositeMapper = { @@ -2640,13 +2774,13 @@ export const AnalyzeResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AnalyzedTokenInfo" - } - } - } - } - } - } + className: "AnalyzedTokenInfo", + }, + }, + }, + }, + }, + }, }; export const AnalyzedTokenInfo: coreClient.CompositeMapper = { @@ -2659,35 +2793,35 @@ export const AnalyzedTokenInfo: coreClient.CompositeMapper = { required: true, readOnly: true, type: { - name: "String" - } + name: "String", + }, }, startOffset: { serializedName: "startOffset", required: true, readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, endOffset: { serializedName: "endOffset", required: true, readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, position: { serializedName: "position", required: true, readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const SearchAlias: coreClient.CompositeMapper = { @@ -2699,8 +2833,8 @@ export const SearchAlias: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, indexes: { serializedName: "indexes", @@ -2709,19 +2843,19 @@ export const SearchAlias: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, etag: { serializedName: "@odata\\.etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ListAliasesResult: coreClient.CompositeMapper = { @@ -2738,13 +2872,13 @@ export const ListAliasesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchAlias" - } - } - } - } - } - } + className: "SearchAlias", + }, + }, + }, + }, + }, + }, }; export const ServiceStatistics: coreClient.CompositeMapper = { @@ -2756,18 +2890,18 @@ export const ServiceStatistics: coreClient.CompositeMapper = { serializedName: "counters", type: { name: "Composite", - className: "ServiceCounters" - } + className: "ServiceCounters", + }, }, limits: { serializedName: "limits", type: { name: "Composite", - className: "ServiceLimits" - } - } - } - } + className: "ServiceLimits", + }, + }, + }, + }, }; export const ServiceCounters: coreClient.CompositeMapper = { @@ -2779,67 +2913,67 @@ export const ServiceCounters: coreClient.CompositeMapper = { serializedName: "aliasesCount", type: { name: "Composite", - className: "ResourceCounter" - } + className: "ResourceCounter", + }, }, documentCounter: { serializedName: "documentCount", type: { name: "Composite", - className: "ResourceCounter" - } + className: "ResourceCounter", + }, }, indexCounter: { serializedName: "indexesCount", type: { name: "Composite", - className: "ResourceCounter" - } + className: "ResourceCounter", + }, }, indexerCounter: { serializedName: "indexersCount", type: { name: "Composite", - className: "ResourceCounter" - } + className: "ResourceCounter", + }, }, dataSourceCounter: { serializedName: "dataSourcesCount", type: { name: "Composite", - className: "ResourceCounter" - } + className: "ResourceCounter", + }, }, storageSizeCounter: { serializedName: "storageSize", type: { name: "Composite", - className: "ResourceCounter" - } + className: "ResourceCounter", + }, }, synonymMapCounter: { serializedName: "synonymMaps", type: { name: "Composite", - className: "ResourceCounter" - } + className: "ResourceCounter", + }, }, skillsetCounter: { serializedName: "skillsetCount", type: { name: "Composite", - className: "ResourceCounter" - } + className: "ResourceCounter", + }, }, vectorIndexSizeCounter: { serializedName: "vectorIndexSize", type: { name: "Composite", - className: "ResourceCounter" - } - } - } - } + className: "ResourceCounter", + }, + }, + }, + }, }; export const ResourceCounter: coreClient.CompositeMapper = { @@ -2851,18 +2985,18 @@ export const ResourceCounter: coreClient.CompositeMapper = { serializedName: "usage", required: true, type: { - name: "Number" - } + name: "Number", + }, }, quota: { serializedName: "quota", nullable: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ServiceLimits: coreClient.CompositeMapper = { @@ -2874,32 +3008,32 @@ export const ServiceLimits: coreClient.CompositeMapper = { serializedName: "maxFieldsPerIndex", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, maxFieldNestingDepthPerIndex: { serializedName: "maxFieldNestingDepthPerIndex", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, maxComplexCollectionFieldsPerIndex: { serializedName: "maxComplexCollectionFieldsPerIndex", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, maxComplexObjectsInCollectionsPerDocument: { serializedName: "maxComplexObjectsInCollectionsPerDocument", nullable: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const HnswParameters: coreClient.CompositeMapper = { @@ -2911,47 +3045,47 @@ export const HnswParameters: coreClient.CompositeMapper = { defaultValue: 4, constraints: { InclusiveMaximum: 10, - InclusiveMinimum: 4 + InclusiveMinimum: 4, }, serializedName: "m", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, efConstruction: { defaultValue: 400, constraints: { InclusiveMaximum: 1000, - InclusiveMinimum: 100 + InclusiveMinimum: 100, }, serializedName: "efConstruction", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, efSearch: { defaultValue: 500, constraints: { InclusiveMaximum: 1000, - InclusiveMinimum: 100 + InclusiveMinimum: 100, }, serializedName: "efSearch", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, metric: { serializedName: "metric", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ExhaustiveKnnParameters: coreClient.CompositeMapper = { @@ -2963,11 +3097,27 @@ export const ExhaustiveKnnParameters: coreClient.CompositeMapper = { serializedName: "metric", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const ScalarQuantizationParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScalarQuantizationParameters", + modelProperties: { + quantizedDataType: { + serializedName: "quantizedDataType", + nullable: true, + type: { + name: "String", + }, + }, + }, + }, }; export const AzureOpenAIParameters: coreClient.CompositeMapper = { @@ -2978,78 +3128,78 @@ export const AzureOpenAIParameters: coreClient.CompositeMapper = { resourceUri: { serializedName: "resourceUri", type: { - name: "String" - } + name: "String", + }, }, deploymentId: { serializedName: "deploymentId", type: { - name: "String" - } + name: "String", + }, }, apiKey: { serializedName: "apiKey", type: { - name: "String" - } + name: "String", + }, }, authIdentity: { serializedName: "authIdentity", type: { name: "Composite", - className: "SearchIndexerDataIdentity" - } - } - } - } + className: "SearchIndexerDataIdentity", + }, + }, + }, + }, }; -export const CustomVectorizerParameters: coreClient.CompositeMapper = { +export const CustomWebApiParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomVectorizerParameters", + className: "CustomWebApiParameters", modelProperties: { uri: { serializedName: "uri", type: { - name: "String" - } + name: "String", + }, }, httpHeaders: { serializedName: "httpHeaders", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, httpMethod: { serializedName: "httpMethod", type: { - name: "String" - } + name: "String", + }, }, timeout: { serializedName: "timeout", type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, authResourceId: { serializedName: "authResourceId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, authIdentity: { serializedName: "authIdentity", type: { name: "Composite", - className: "SearchIndexerDataIdentity" - } - } - } - } + className: "SearchIndexerDataIdentity", + }, + }, + }, + }, }; export const DistanceScoringParameters: coreClient.CompositeMapper = { @@ -3061,18 +3211,18 @@ export const DistanceScoringParameters: coreClient.CompositeMapper = { serializedName: "referencePointParameter", required: true, type: { - name: "String" - } + name: "String", + }, }, boostingDistance: { serializedName: "boostingDistance", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const FreshnessScoringParameters: coreClient.CompositeMapper = { @@ -3084,11 +3234,11 @@ export const FreshnessScoringParameters: coreClient.CompositeMapper = { serializedName: "boostingDuration", required: true, type: { - name: "TimeSpan" - } - } - } - } + name: "TimeSpan", + }, + }, + }, + }, }; export const MagnitudeScoringParameters: coreClient.CompositeMapper = { @@ -3100,24 +3250,24 @@ export const MagnitudeScoringParameters: coreClient.CompositeMapper = { serializedName: "boostingRangeStart", required: true, type: { - name: "Number" - } + name: "Number", + }, }, boostingRangeEnd: { serializedName: "boostingRangeEnd", required: true, type: { - name: "Number" - } + name: "Number", + }, }, shouldBoostBeyondRangeByConstant: { serializedName: "constantBoostBeyondRange", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const TagScoringParameters: coreClient.CompositeMapper = { @@ -3129,11 +3279,11 @@ export const TagScoringParameters: coreClient.CompositeMapper = { serializedName: "tagsParameter", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CustomEntity: coreClient.CompositeMapper = { @@ -3145,78 +3295,78 @@ export const CustomEntity: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", nullable: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", nullable: true, type: { - name: "String" - } + name: "String", + }, }, subtype: { serializedName: "subtype", nullable: true, type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", nullable: true, type: { - name: "String" - } + name: "String", + }, }, caseSensitive: { serializedName: "caseSensitive", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, accentSensitive: { serializedName: "accentSensitive", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, fuzzyEditDistance: { serializedName: "fuzzyEditDistance", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, defaultCaseSensitive: { serializedName: "defaultCaseSensitive", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, defaultAccentSensitive: { serializedName: "defaultAccentSensitive", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, defaultFuzzyEditDistance: { serializedName: "defaultFuzzyEditDistance", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, aliases: { serializedName: "aliases", @@ -3226,13 +3376,13 @@ export const CustomEntity: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CustomEntityAlias" - } - } - } - } - } - } + className: "CustomEntityAlias", + }, + }, + }, + }, + }, + }, }; export const CustomEntityAlias: coreClient.CompositeMapper = { @@ -3244,32 +3394,32 @@ export const CustomEntityAlias: coreClient.CompositeMapper = { serializedName: "text", required: true, type: { - name: "String" - } + name: "String", + }, }, caseSensitive: { serializedName: "caseSensitive", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, accentSensitive: { serializedName: "accentSensitive", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, fuzzyEditDistance: { serializedName: "fuzzyEditDistance", nullable: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const SearchIndexerDataNoneIdentity: coreClient.CompositeMapper = { @@ -3278,34 +3428,35 @@ export const SearchIndexerDataNoneIdentity: coreClient.CompositeMapper = { name: "Composite", className: "SearchIndexerDataNoneIdentity", uberParent: "SearchIndexerDataIdentity", - polymorphicDiscriminator: - SearchIndexerDataIdentity.type.polymorphicDiscriminator, - modelProperties: { - ...SearchIndexerDataIdentity.type.modelProperties - } - } -}; - -export const SearchIndexerDataUserAssignedIdentity: coreClient.CompositeMapper = { - serializedName: "#Microsoft.Azure.Search.DataUserAssignedIdentity", - type: { - name: "Composite", - className: "SearchIndexerDataUserAssignedIdentity", - uberParent: "SearchIndexerDataIdentity", polymorphicDiscriminator: SearchIndexerDataIdentity.type.polymorphicDiscriminator, modelProperties: { ...SearchIndexerDataIdentity.type.modelProperties, - userAssignedIdentity: { - serializedName: "userAssignedIdentity", - required: true, - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const SearchIndexerDataUserAssignedIdentity: coreClient.CompositeMapper = + { + serializedName: "#Microsoft.Azure.Search.DataUserAssignedIdentity", + type: { + name: "Composite", + className: "SearchIndexerDataUserAssignedIdentity", + uberParent: "SearchIndexerDataIdentity", + polymorphicDiscriminator: + SearchIndexerDataIdentity.type.polymorphicDiscriminator, + modelProperties: { + ...SearchIndexerDataIdentity.type.modelProperties, + userAssignedIdentity: { + serializedName: "userAssignedIdentity", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const HighWaterMarkChangeDetectionPolicy: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy", @@ -3321,11 +3472,11 @@ export const HighWaterMarkChangeDetectionPolicy: coreClient.CompositeMapper = { serializedName: "highWaterMarkColumnName", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SqlIntegratedChangeTrackingPolicy: coreClient.CompositeMapper = { @@ -3337,52 +3488,54 @@ export const SqlIntegratedChangeTrackingPolicy: coreClient.CompositeMapper = { polymorphicDiscriminator: DataChangeDetectionPolicy.type.polymorphicDiscriminator, modelProperties: { - ...DataChangeDetectionPolicy.type.modelProperties - } - } -}; - -export const SoftDeleteColumnDeletionDetectionPolicy: coreClient.CompositeMapper = { - serializedName: - "#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy", - type: { - name: "Composite", - className: "SoftDeleteColumnDeletionDetectionPolicy", - uberParent: "DataDeletionDetectionPolicy", - polymorphicDiscriminator: - DataDeletionDetectionPolicy.type.polymorphicDiscriminator, - modelProperties: { - ...DataDeletionDetectionPolicy.type.modelProperties, - softDeleteColumnName: { - serializedName: "softDeleteColumnName", - type: { - name: "String" - } + ...DataChangeDetectionPolicy.type.modelProperties, + }, + }, +}; + +export const SoftDeleteColumnDeletionDetectionPolicy: coreClient.CompositeMapper = + { + serializedName: + "#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy", + type: { + name: "Composite", + className: "SoftDeleteColumnDeletionDetectionPolicy", + uberParent: "DataDeletionDetectionPolicy", + polymorphicDiscriminator: + DataDeletionDetectionPolicy.type.polymorphicDiscriminator, + modelProperties: { + ...DataDeletionDetectionPolicy.type.modelProperties, + softDeleteColumnName: { + serializedName: "softDeleteColumnName", + type: { + name: "String", + }, + }, + softDeleteMarkerValue: { + serializedName: "softDeleteMarkerValue", + type: { + name: "String", + }, + }, }, - softDeleteMarkerValue: { - serializedName: "softDeleteMarkerValue", - type: { - name: "String" - } - } - } - } -}; - -export const NativeBlobSoftDeleteDeletionDetectionPolicy: coreClient.CompositeMapper = { - serializedName: - "#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy", - type: { - name: "Composite", - className: "NativeBlobSoftDeleteDeletionDetectionPolicy", - uberParent: "DataDeletionDetectionPolicy", - polymorphicDiscriminator: - DataDeletionDetectionPolicy.type.polymorphicDiscriminator, - modelProperties: { - ...DataDeletionDetectionPolicy.type.modelProperties - } - } -}; + }, + }; + +export const NativeBlobSoftDeleteDeletionDetectionPolicy: coreClient.CompositeMapper = + { + serializedName: + "#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy", + type: { + name: "Composite", + className: "NativeBlobSoftDeleteDeletionDetectionPolicy", + uberParent: "DataDeletionDetectionPolicy", + polymorphicDiscriminator: + DataDeletionDetectionPolicy.type.polymorphicDiscriminator, + modelProperties: { + ...DataDeletionDetectionPolicy.type.modelProperties, + }, + }, + }; export const ConditionalSkill: coreClient.CompositeMapper = { serializedName: "#Microsoft.Skills.Util.ConditionalSkill", @@ -3392,9 +3545,9 @@ export const ConditionalSkill: coreClient.CompositeMapper = { uberParent: "SearchIndexerSkill", polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator, modelProperties: { - ...SearchIndexerSkill.type.modelProperties - } - } + ...SearchIndexerSkill.type.modelProperties, + }, + }, }; export const KeyPhraseExtractionSkill: coreClient.CompositeMapper = { @@ -3409,25 +3562,25 @@ export const KeyPhraseExtractionSkill: coreClient.CompositeMapper = { defaultLanguageCode: { serializedName: "defaultLanguageCode", type: { - name: "String" - } + name: "String", + }, }, maxKeyPhraseCount: { serializedName: "maxKeyPhraseCount", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, modelVersion: { serializedName: "modelVersion", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OcrSkill: coreClient.CompositeMapper = { @@ -3442,24 +3595,24 @@ export const OcrSkill: coreClient.CompositeMapper = { defaultLanguageCode: { serializedName: "defaultLanguageCode", type: { - name: "String" - } + name: "String", + }, }, shouldDetectOrientation: { defaultValue: false, serializedName: "detectOrientation", type: { - name: "Boolean" - } + name: "Boolean", + }, }, lineEnding: { serializedName: "lineEnding", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ImageAnalysisSkill: coreClient.CompositeMapper = { @@ -3474,8 +3627,8 @@ export const ImageAnalysisSkill: coreClient.CompositeMapper = { defaultLanguageCode: { serializedName: "defaultLanguageCode", type: { - name: "String" - } + name: "String", + }, }, visualFeatures: { serializedName: "visualFeatures", @@ -3483,10 +3636,10 @@ export const ImageAnalysisSkill: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, details: { serializedName: "details", @@ -3494,13 +3647,13 @@ export const ImageAnalysisSkill: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const LanguageDetectionSkill: coreClient.CompositeMapper = { @@ -3516,18 +3669,18 @@ export const LanguageDetectionSkill: coreClient.CompositeMapper = { serializedName: "defaultCountryHint", nullable: true, type: { - name: "String" - } + name: "String", + }, }, modelVersion: { serializedName: "modelVersion", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ShaperSkill: coreClient.CompositeMapper = { @@ -3538,9 +3691,9 @@ export const ShaperSkill: coreClient.CompositeMapper = { uberParent: "SearchIndexerSkill", polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator, modelProperties: { - ...SearchIndexerSkill.type.modelProperties - } - } + ...SearchIndexerSkill.type.modelProperties, + }, + }, }; export const MergeSkill: coreClient.CompositeMapper = { @@ -3556,18 +3709,18 @@ export const MergeSkill: coreClient.CompositeMapper = { defaultValue: " ", serializedName: "insertPreTag", type: { - name: "String" - } + name: "String", + }, }, insertPostTag: { defaultValue: " ", serializedName: "insertPostTag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EntityRecognitionSkill: coreClient.CompositeMapper = { @@ -3585,33 +3738,33 @@ export const EntityRecognitionSkill: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, defaultLanguageCode: { serializedName: "defaultLanguageCode", type: { - name: "String" - } + name: "String", + }, }, includeTypelessEntities: { serializedName: "includeTypelessEntities", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, minimumPrecision: { serializedName: "minimumPrecision", nullable: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const SentimentSkill: coreClient.CompositeMapper = { @@ -3626,11 +3779,11 @@ export const SentimentSkill: coreClient.CompositeMapper = { defaultLanguageCode: { serializedName: "defaultLanguageCode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SentimentSkillV3: coreClient.CompositeMapper = { @@ -3646,25 +3799,25 @@ export const SentimentSkillV3: coreClient.CompositeMapper = { serializedName: "defaultLanguageCode", nullable: true, type: { - name: "String" - } + name: "String", + }, }, includeOpinionMining: { defaultValue: false, serializedName: "includeOpinionMining", type: { - name: "Boolean" - } + name: "Boolean", + }, }, modelVersion: { serializedName: "modelVersion", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EntityLinkingSkill: coreClient.CompositeMapper = { @@ -3680,29 +3833,29 @@ export const EntityLinkingSkill: coreClient.CompositeMapper = { serializedName: "defaultLanguageCode", nullable: true, type: { - name: "String" - } + name: "String", + }, }, minimumPrecision: { constraints: { InclusiveMaximum: 1, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "minimumPrecision", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, modelVersion: { serializedName: "modelVersion", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EntityRecognitionSkillV3: coreClient.CompositeMapper = { @@ -3720,38 +3873,38 @@ export const EntityRecognitionSkillV3: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, defaultLanguageCode: { serializedName: "defaultLanguageCode", nullable: true, type: { - name: "String" - } + name: "String", + }, }, minimumPrecision: { constraints: { InclusiveMaximum: 1, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "minimumPrecision", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, modelVersion: { serializedName: "modelVersion", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PIIDetectionSkill: coreClient.CompositeMapper = { @@ -3767,63 +3920,63 @@ export const PIIDetectionSkill: coreClient.CompositeMapper = { serializedName: "defaultLanguageCode", nullable: true, type: { - name: "String" - } + name: "String", + }, }, minimumPrecision: { constraints: { InclusiveMaximum: 1, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "minimumPrecision", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, maskingMode: { serializedName: "maskingMode", type: { - name: "String" - } + name: "String", + }, }, maskingCharacter: { constraints: { - MaxLength: 1 + MaxLength: 1, }, serializedName: "maskingCharacter", nullable: true, type: { - name: "String" - } + name: "String", + }, }, modelVersion: { serializedName: "modelVersion", nullable: true, type: { - name: "String" - } + name: "String", + }, }, - piiCategories: { + categories: { serializedName: "piiCategories", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, domain: { serializedName: "domain", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SplitSkill: coreClient.CompositeMapper = { @@ -3838,38 +3991,38 @@ export const SplitSkill: coreClient.CompositeMapper = { defaultLanguageCode: { serializedName: "defaultLanguageCode", type: { - name: "String" - } + name: "String", + }, }, textSplitMode: { serializedName: "textSplitMode", type: { - name: "String" - } + name: "String", + }, }, maxPageLength: { serializedName: "maximumPageLength", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, pageOverlapLength: { serializedName: "pageOverlapLength", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, maximumPagesToTake: { serializedName: "maximumPagesToTake", nullable: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const CustomEntityLookupSkill: coreClient.CompositeMapper = { @@ -3885,15 +4038,15 @@ export const CustomEntityLookupSkill: coreClient.CompositeMapper = { serializedName: "defaultLanguageCode", nullable: true, type: { - name: "String" - } + name: "String", + }, }, entitiesDefinitionUri: { serializedName: "entitiesDefinitionUri", nullable: true, type: { - name: "String" - } + name: "String", + }, }, inlineEntitiesDefinition: { serializedName: "inlineEntitiesDefinition", @@ -3903,34 +4056,34 @@ export const CustomEntityLookupSkill: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CustomEntity" - } - } - } + className: "CustomEntity", + }, + }, + }, }, globalDefaultCaseSensitive: { serializedName: "globalDefaultCaseSensitive", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, globalDefaultAccentSensitive: { serializedName: "globalDefaultAccentSensitive", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, globalDefaultFuzzyEditDistance: { serializedName: "globalDefaultFuzzyEditDistance", nullable: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const TextTranslationSkill: coreClient.CompositeMapper = { @@ -3946,24 +4099,24 @@ export const TextTranslationSkill: coreClient.CompositeMapper = { serializedName: "defaultToLanguageCode", required: true, type: { - name: "String" - } + name: "String", + }, }, defaultFromLanguageCode: { serializedName: "defaultFromLanguageCode", type: { - name: "String" - } + name: "String", + }, }, suggestedFrom: { serializedName: "suggestedFrom", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DocumentExtractionSkill: coreClient.CompositeMapper = { @@ -3979,26 +4132,26 @@ export const DocumentExtractionSkill: coreClient.CompositeMapper = { serializedName: "parsingMode", nullable: true, type: { - name: "String" - } + name: "String", + }, }, dataToExtract: { serializedName: "dataToExtract", nullable: true, type: { - name: "String" - } + name: "String", + }, }, configuration: { serializedName: "configuration", nullable: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const WebApiSkill: coreClient.CompositeMapper = { @@ -4014,58 +4167,58 @@ export const WebApiSkill: coreClient.CompositeMapper = { serializedName: "uri", required: true, type: { - name: "String" - } + name: "String", + }, }, httpHeaders: { serializedName: "httpHeaders", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, httpMethod: { serializedName: "httpMethod", type: { - name: "String" - } + name: "String", + }, }, timeout: { serializedName: "timeout", type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, batchSize: { serializedName: "batchSize", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, degreeOfParallelism: { serializedName: "degreeOfParallelism", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, authResourceId: { serializedName: "authResourceId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, authIdentity: { serializedName: "authIdentity", type: { name: "Composite", - className: "SearchIndexerDataIdentity" - } - } - } - } + className: "SearchIndexerDataIdentity", + }, + }, + }, + }, }; export const AzureMachineLearningSkill: coreClient.CompositeMapper = { @@ -4081,46 +4234,46 @@ export const AzureMachineLearningSkill: coreClient.CompositeMapper = { serializedName: "uri", nullable: true, type: { - name: "String" - } + name: "String", + }, }, authenticationKey: { serializedName: "key", nullable: true, type: { - name: "String" - } + name: "String", + }, }, resourceId: { serializedName: "resourceId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, timeout: { serializedName: "timeout", nullable: true, type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, region: { serializedName: "region", nullable: true, type: { - name: "String" - } + name: "String", + }, }, degreeOfParallelism: { serializedName: "degreeOfParallelism", nullable: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const AzureOpenAIEmbeddingSkill: coreClient.CompositeMapper = { @@ -4135,30 +4288,30 @@ export const AzureOpenAIEmbeddingSkill: coreClient.CompositeMapper = { resourceUri: { serializedName: "resourceUri", type: { - name: "String" - } + name: "String", + }, }, deploymentId: { serializedName: "deploymentId", type: { - name: "String" - } + name: "String", + }, }, apiKey: { serializedName: "apiKey", type: { - name: "String" - } + name: "String", + }, }, authIdentity: { serializedName: "authIdentity", type: { name: "Composite", - className: "SearchIndexerDataIdentity" - } - } - } - } + className: "SearchIndexerDataIdentity", + }, + }, + }, + }, }; export const DefaultCognitiveServicesAccount: coreClient.CompositeMapper = { @@ -4170,9 +4323,9 @@ export const DefaultCognitiveServicesAccount: coreClient.CompositeMapper = { polymorphicDiscriminator: CognitiveServicesAccount.type.polymorphicDiscriminator, modelProperties: { - ...CognitiveServicesAccount.type.modelProperties - } - } + ...CognitiveServicesAccount.type.modelProperties, + }, + }, }; export const CognitiveServicesAccountKey: coreClient.CompositeMapper = { @@ -4184,51 +4337,53 @@ export const CognitiveServicesAccountKey: coreClient.CompositeMapper = { polymorphicDiscriminator: CognitiveServicesAccount.type.polymorphicDiscriminator, modelProperties: { - ...CognitiveServicesAccount.type.modelProperties, - key: { - serializedName: "key", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const SearchIndexerKnowledgeStoreTableProjectionSelector: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SearchIndexerKnowledgeStoreTableProjectionSelector", - modelProperties: { - ...SearchIndexerKnowledgeStoreProjectionSelector.type.modelProperties, - tableName: { - serializedName: "tableName", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const SearchIndexerKnowledgeStoreBlobProjectionSelector: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SearchIndexerKnowledgeStoreBlobProjectionSelector", - modelProperties: { - ...SearchIndexerKnowledgeStoreProjectionSelector.type.modelProperties, - storageContainer: { - serializedName: "storageContainer", + ...CognitiveServicesAccount.type.modelProperties, + key: { + serializedName: "key", required: true, type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const SearchIndexerKnowledgeStoreTableProjectionSelector: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SearchIndexerKnowledgeStoreTableProjectionSelector", + modelProperties: { + ...SearchIndexerKnowledgeStoreProjectionSelector.type.modelProperties, + tableName: { + serializedName: "tableName", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const SearchIndexerKnowledgeStoreBlobProjectionSelector: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SearchIndexerKnowledgeStoreBlobProjectionSelector", + modelProperties: { + ...SearchIndexerKnowledgeStoreProjectionSelector.type.modelProperties, + storageContainer: { + serializedName: "storageContainer", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const DistanceScoringFunction: coreClient.CompositeMapper = { serializedName: "distance", @@ -4243,11 +4398,11 @@ export const DistanceScoringFunction: coreClient.CompositeMapper = { serializedName: "distance", type: { name: "Composite", - className: "DistanceScoringParameters" - } - } - } - } + className: "DistanceScoringParameters", + }, + }, + }, + }, }; export const FreshnessScoringFunction: coreClient.CompositeMapper = { @@ -4263,11 +4418,11 @@ export const FreshnessScoringFunction: coreClient.CompositeMapper = { serializedName: "freshness", type: { name: "Composite", - className: "FreshnessScoringParameters" - } - } - } - } + className: "FreshnessScoringParameters", + }, + }, + }, + }, }; export const MagnitudeScoringFunction: coreClient.CompositeMapper = { @@ -4283,11 +4438,11 @@ export const MagnitudeScoringFunction: coreClient.CompositeMapper = { serializedName: "magnitude", type: { name: "Composite", - className: "MagnitudeScoringParameters" - } - } - } - } + className: "MagnitudeScoringParameters", + }, + }, + }, + }, }; export const TagScoringFunction: coreClient.CompositeMapper = { @@ -4303,11 +4458,11 @@ export const TagScoringFunction: coreClient.CompositeMapper = { serializedName: "tag", type: { name: "Composite", - className: "TagScoringParameters" - } - } - } - } + className: "TagScoringParameters", + }, + }, + }, + }, }; export const CustomAnalyzer: coreClient.CompositeMapper = { @@ -4323,8 +4478,8 @@ export const CustomAnalyzer: coreClient.CompositeMapper = { serializedName: "tokenizer", required: true, type: { - name: "String" - } + name: "String", + }, }, tokenFilters: { serializedName: "tokenFilters", @@ -4332,10 +4487,10 @@ export const CustomAnalyzer: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, charFilters: { serializedName: "charFilters", @@ -4343,13 +4498,13 @@ export const CustomAnalyzer: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const PatternAnalyzer: coreClient.CompositeMapper = { @@ -4365,21 +4520,21 @@ export const PatternAnalyzer: coreClient.CompositeMapper = { defaultValue: true, serializedName: "lowercase", type: { - name: "Boolean" - } + name: "Boolean", + }, }, pattern: { defaultValue: "W+", serializedName: "pattern", type: { - name: "String" - } + name: "String", + }, }, flags: { serializedName: "flags", type: { - name: "String" - } + name: "String", + }, }, stopwords: { serializedName: "stopwords", @@ -4387,13 +4542,13 @@ export const PatternAnalyzer: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const LuceneStandardAnalyzer: coreClient.CompositeMapper = { @@ -4408,12 +4563,12 @@ export const LuceneStandardAnalyzer: coreClient.CompositeMapper = { maxTokenLength: { defaultValue: 255, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxTokenLength", type: { - name: "Number" - } + name: "Number", + }, }, stopwords: { serializedName: "stopwords", @@ -4421,13 +4576,13 @@ export const LuceneStandardAnalyzer: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const StopAnalyzer: coreClient.CompositeMapper = { @@ -4445,13 +4600,13 @@ export const StopAnalyzer: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ClassicTokenizer: coreClient.CompositeMapper = { @@ -4466,15 +4621,15 @@ export const ClassicTokenizer: coreClient.CompositeMapper = { maxTokenLength: { defaultValue: 255, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxTokenLength", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const EdgeNGramTokenizer: coreClient.CompositeMapper = { @@ -4489,22 +4644,22 @@ export const EdgeNGramTokenizer: coreClient.CompositeMapper = { minGram: { defaultValue: 1, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "minGram", type: { - name: "Number" - } + name: "Number", + }, }, maxGram: { defaultValue: 2, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxGram", type: { - name: "Number" - } + name: "Number", + }, }, tokenChars: { serializedName: "tokenChars", @@ -4518,14 +4673,14 @@ export const EdgeNGramTokenizer: coreClient.CompositeMapper = { "digit", "whitespace", "punctuation", - "symbol" - ] - } - } - } - } - } - } + "symbol", + ], + }, + }, + }, + }, + }, + }, }; export const KeywordTokenizer: coreClient.CompositeMapper = { @@ -4541,11 +4696,11 @@ export const KeywordTokenizer: coreClient.CompositeMapper = { defaultValue: 256, serializedName: "bufferSize", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const KeywordTokenizerV2: coreClient.CompositeMapper = { @@ -4560,15 +4715,15 @@ export const KeywordTokenizerV2: coreClient.CompositeMapper = { maxTokenLength: { defaultValue: 256, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxTokenLength", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const MicrosoftLanguageTokenizer: coreClient.CompositeMapper = { @@ -4583,19 +4738,19 @@ export const MicrosoftLanguageTokenizer: coreClient.CompositeMapper = { maxTokenLength: { defaultValue: 255, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxTokenLength", type: { - name: "Number" - } + name: "Number", + }, }, isSearchTokenizer: { defaultValue: false, serializedName: "isSearchTokenizer", type: { - name: "Boolean" - } + name: "Boolean", + }, }, language: { serializedName: "language", @@ -4643,12 +4798,12 @@ export const MicrosoftLanguageTokenizer: coreClient.CompositeMapper = { "thai", "ukrainian", "urdu", - "vietnamese" - ] - } - } - } - } + "vietnamese", + ], + }, + }, + }, + }, }; export const MicrosoftLanguageStemmingTokenizer: coreClient.CompositeMapper = { @@ -4663,19 +4818,19 @@ export const MicrosoftLanguageStemmingTokenizer: coreClient.CompositeMapper = { maxTokenLength: { defaultValue: 255, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxTokenLength", type: { - name: "Number" - } + name: "Number", + }, }, isSearchTokenizer: { defaultValue: false, serializedName: "isSearchTokenizer", type: { - name: "Boolean" - } + name: "Boolean", + }, }, language: { serializedName: "language", @@ -4726,12 +4881,12 @@ export const MicrosoftLanguageStemmingTokenizer: coreClient.CompositeMapper = { "telugu", "turkish", "ukrainian", - "urdu" - ] - } - } - } - } + "urdu", + ], + }, + }, + }, + }, }; export const NGramTokenizer: coreClient.CompositeMapper = { @@ -4746,22 +4901,22 @@ export const NGramTokenizer: coreClient.CompositeMapper = { minGram: { defaultValue: 1, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "minGram", type: { - name: "Number" - } + name: "Number", + }, }, maxGram: { defaultValue: 2, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxGram", type: { - name: "Number" - } + name: "Number", + }, }, tokenChars: { serializedName: "tokenChars", @@ -4775,14 +4930,14 @@ export const NGramTokenizer: coreClient.CompositeMapper = { "digit", "whitespace", "punctuation", - "symbol" - ] - } - } - } - } - } - } + "symbol", + ], + }, + }, + }, + }, + }, + }, }; export const PathHierarchyTokenizerV2: coreClient.CompositeMapper = { @@ -4798,42 +4953,42 @@ export const PathHierarchyTokenizerV2: coreClient.CompositeMapper = { defaultValue: "/", serializedName: "delimiter", type: { - name: "String" - } + name: "String", + }, }, replacement: { defaultValue: "/", serializedName: "replacement", type: { - name: "String" - } + name: "String", + }, }, maxTokenLength: { defaultValue: 300, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxTokenLength", type: { - name: "Number" - } + name: "Number", + }, }, reverseTokenOrder: { defaultValue: false, serializedName: "reverse", type: { - name: "Boolean" - } + name: "Boolean", + }, }, numberOfTokensToSkip: { defaultValue: 0, serializedName: "skip", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const PatternTokenizer: coreClient.CompositeMapper = { @@ -4849,24 +5004,24 @@ export const PatternTokenizer: coreClient.CompositeMapper = { defaultValue: "W+", serializedName: "pattern", type: { - name: "String" - } + name: "String", + }, }, flags: { serializedName: "flags", type: { - name: "String" - } + name: "String", + }, }, group: { defaultValue: -1, serializedName: "group", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const LuceneStandardTokenizer: coreClient.CompositeMapper = { @@ -4882,11 +5037,11 @@ export const LuceneStandardTokenizer: coreClient.CompositeMapper = { defaultValue: 255, serializedName: "maxTokenLength", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const LuceneStandardTokenizerV2: coreClient.CompositeMapper = { @@ -4901,15 +5056,15 @@ export const LuceneStandardTokenizerV2: coreClient.CompositeMapper = { maxTokenLength: { defaultValue: 255, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxTokenLength", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const UaxUrlEmailTokenizer: coreClient.CompositeMapper = { @@ -4924,15 +5079,15 @@ export const UaxUrlEmailTokenizer: coreClient.CompositeMapper = { maxTokenLength: { defaultValue: 255, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxTokenLength", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const AsciiFoldingTokenFilter: coreClient.CompositeMapper = { @@ -4948,11 +5103,11 @@ export const AsciiFoldingTokenFilter: coreClient.CompositeMapper = { defaultValue: false, serializedName: "preserveOriginal", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const CjkBigramTokenFilter: coreClient.CompositeMapper = { @@ -4971,20 +5126,20 @@ export const CjkBigramTokenFilter: coreClient.CompositeMapper = { element: { type: { name: "Enum", - allowedValues: ["han", "hiragana", "katakana", "hangul"] - } - } - } + allowedValues: ["han", "hiragana", "katakana", "hangul"], + }, + }, + }, }, outputUnigrams: { defaultValue: false, serializedName: "outputUnigrams", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const CommonGramTokenFilter: coreClient.CompositeMapper = { @@ -5003,27 +5158,27 @@ export const CommonGramTokenFilter: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, ignoreCase: { defaultValue: false, serializedName: "ignoreCase", type: { - name: "Boolean" - } + name: "Boolean", + }, }, useQueryMode: { defaultValue: false, serializedName: "queryMode", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const DictionaryDecompounderTokenFilter: coreClient.CompositeMapper = { @@ -5042,50 +5197,50 @@ export const DictionaryDecompounderTokenFilter: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, minWordSize: { defaultValue: 5, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "minWordSize", type: { - name: "Number" - } + name: "Number", + }, }, minSubwordSize: { defaultValue: 2, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "minSubwordSize", type: { - name: "Number" - } + name: "Number", + }, }, maxSubwordSize: { defaultValue: 15, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxSubwordSize", type: { - name: "Number" - } + name: "Number", + }, }, onlyLongestMatch: { defaultValue: false, serializedName: "onlyLongestMatch", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const EdgeNGramTokenFilter: coreClient.CompositeMapper = { @@ -5101,25 +5256,25 @@ export const EdgeNGramTokenFilter: coreClient.CompositeMapper = { defaultValue: 1, serializedName: "minGram", type: { - name: "Number" - } + name: "Number", + }, }, maxGram: { defaultValue: 2, serializedName: "maxGram", type: { - name: "Number" - } + name: "Number", + }, }, side: { serializedName: "side", type: { name: "Enum", - allowedValues: ["front", "back"] - } - } - } - } + allowedValues: ["front", "back"], + }, + }, + }, + }, }; export const EdgeNGramTokenFilterV2: coreClient.CompositeMapper = { @@ -5134,32 +5289,32 @@ export const EdgeNGramTokenFilterV2: coreClient.CompositeMapper = { minGram: { defaultValue: 1, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "minGram", type: { - name: "Number" - } + name: "Number", + }, }, maxGram: { defaultValue: 2, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxGram", type: { - name: "Number" - } + name: "Number", + }, }, side: { serializedName: "side", type: { name: "Enum", - allowedValues: ["front", "back"] - } - } - } - } + allowedValues: ["front", "back"], + }, + }, + }, + }, }; export const ElisionTokenFilter: coreClient.CompositeMapper = { @@ -5177,13 +5332,13 @@ export const ElisionTokenFilter: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const KeepTokenFilter: coreClient.CompositeMapper = { @@ -5202,20 +5357,20 @@ export const KeepTokenFilter: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, lowerCaseKeepWords: { defaultValue: false, serializedName: "keepWordsCase", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const KeywordMarkerTokenFilter: coreClient.CompositeMapper = { @@ -5234,20 +5389,20 @@ export const KeywordMarkerTokenFilter: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, ignoreCase: { defaultValue: false, serializedName: "ignoreCase", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const LengthTokenFilter: coreClient.CompositeMapper = { @@ -5262,25 +5417,25 @@ export const LengthTokenFilter: coreClient.CompositeMapper = { minLength: { defaultValue: 0, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "min", type: { - name: "Number" - } + name: "Number", + }, }, maxLength: { defaultValue: 300, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "max", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const LimitTokenFilter: coreClient.CompositeMapper = { @@ -5296,18 +5451,18 @@ export const LimitTokenFilter: coreClient.CompositeMapper = { defaultValue: 1, serializedName: "maxTokenCount", type: { - name: "Number" - } + name: "Number", + }, }, consumeAllTokens: { defaultValue: false, serializedName: "consumeAllTokens", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const NGramTokenFilter: coreClient.CompositeMapper = { @@ -5323,18 +5478,18 @@ export const NGramTokenFilter: coreClient.CompositeMapper = { defaultValue: 1, serializedName: "minGram", type: { - name: "Number" - } + name: "Number", + }, }, maxGram: { defaultValue: 2, serializedName: "maxGram", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const NGramTokenFilterV2: coreClient.CompositeMapper = { @@ -5349,25 +5504,25 @@ export const NGramTokenFilterV2: coreClient.CompositeMapper = { minGram: { defaultValue: 1, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "minGram", type: { - name: "Number" - } + name: "Number", + }, }, maxGram: { defaultValue: 2, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxGram", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const PatternCaptureTokenFilter: coreClient.CompositeMapper = { @@ -5386,20 +5541,20 @@ export const PatternCaptureTokenFilter: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, preserveOriginal: { defaultValue: true, serializedName: "preserveOriginal", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const PatternReplaceTokenFilter: coreClient.CompositeMapper = { @@ -5415,18 +5570,18 @@ export const PatternReplaceTokenFilter: coreClient.CompositeMapper = { serializedName: "pattern", required: true, type: { - name: "String" - } + name: "String", + }, }, replacement: { serializedName: "replacement", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PhoneticTokenFilter: coreClient.CompositeMapper = { @@ -5453,19 +5608,19 @@ export const PhoneticTokenFilter: coreClient.CompositeMapper = { "nysiis", "koelnerPhonetik", "haasePhonetik", - "beiderMorse" - ] - } + "beiderMorse", + ], + }, }, replaceOriginalTokens: { defaultValue: true, serializedName: "replace", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ShingleTokenFilter: coreClient.CompositeMapper = { @@ -5480,53 +5635,53 @@ export const ShingleTokenFilter: coreClient.CompositeMapper = { maxShingleSize: { defaultValue: 2, constraints: { - InclusiveMinimum: 2 + InclusiveMinimum: 2, }, serializedName: "maxShingleSize", type: { - name: "Number" - } + name: "Number", + }, }, minShingleSize: { defaultValue: 2, constraints: { - InclusiveMinimum: 2 + InclusiveMinimum: 2, }, serializedName: "minShingleSize", type: { - name: "Number" - } + name: "Number", + }, }, outputUnigrams: { defaultValue: true, serializedName: "outputUnigrams", type: { - name: "Boolean" - } + name: "Boolean", + }, }, outputUnigramsIfNoShingles: { defaultValue: false, serializedName: "outputUnigramsIfNoShingles", type: { - name: "Boolean" - } + name: "Boolean", + }, }, tokenSeparator: { defaultValue: " ", serializedName: "tokenSeparator", type: { - name: "String" - } + name: "String", + }, }, filterToken: { defaultValue: "_", serializedName: "filterToken", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SnowballTokenFilter: coreClient.CompositeMapper = { @@ -5565,12 +5720,12 @@ export const SnowballTokenFilter: coreClient.CompositeMapper = { "russian", "spanish", "swedish", - "turkish" - ] - } - } - } - } + "turkish", + ], + }, + }, + }, + }, }; export const StemmerTokenFilter: coreClient.CompositeMapper = { @@ -5641,12 +5796,12 @@ export const StemmerTokenFilter: coreClient.CompositeMapper = { "lightSpanish", "swedish", "lightSwedish", - "turkish" - ] - } - } - } - } + "turkish", + ], + }, + }, + }, + }, }; export const StemmerOverrideTokenFilter: coreClient.CompositeMapper = { @@ -5665,13 +5820,13 @@ export const StemmerOverrideTokenFilter: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const StopwordsTokenFilter: coreClient.CompositeMapper = { @@ -5689,10 +5844,10 @@ export const StopwordsTokenFilter: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, stopwordsList: { serializedName: "stopwordsList", @@ -5729,26 +5884,26 @@ export const StopwordsTokenFilter: coreClient.CompositeMapper = { "spanish", "swedish", "thai", - "turkish" - ] - } + "turkish", + ], + }, }, ignoreCase: { defaultValue: false, serializedName: "ignoreCase", type: { - name: "Boolean" - } + name: "Boolean", + }, }, removeTrailingStopWords: { defaultValue: true, serializedName: "removeTrailing", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SynonymTokenFilter: coreClient.CompositeMapper = { @@ -5767,27 +5922,27 @@ export const SynonymTokenFilter: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, ignoreCase: { defaultValue: false, serializedName: "ignoreCase", type: { - name: "Boolean" - } + name: "Boolean", + }, }, expand: { defaultValue: true, serializedName: "expand", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const TruncateTokenFilter: coreClient.CompositeMapper = { @@ -5802,15 +5957,15 @@ export const TruncateTokenFilter: coreClient.CompositeMapper = { length: { defaultValue: 300, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "length", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const UniqueTokenFilter: coreClient.CompositeMapper = { @@ -5826,11 +5981,11 @@ export const UniqueTokenFilter: coreClient.CompositeMapper = { defaultValue: false, serializedName: "onlyOnSamePosition", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const WordDelimiterTokenFilter: coreClient.CompositeMapper = { @@ -5846,64 +6001,64 @@ export const WordDelimiterTokenFilter: coreClient.CompositeMapper = { defaultValue: true, serializedName: "generateWordParts", type: { - name: "Boolean" - } + name: "Boolean", + }, }, generateNumberParts: { defaultValue: true, serializedName: "generateNumberParts", type: { - name: "Boolean" - } + name: "Boolean", + }, }, catenateWords: { defaultValue: false, serializedName: "catenateWords", type: { - name: "Boolean" - } + name: "Boolean", + }, }, catenateNumbers: { defaultValue: false, serializedName: "catenateNumbers", type: { - name: "Boolean" - } + name: "Boolean", + }, }, catenateAll: { defaultValue: false, serializedName: "catenateAll", type: { - name: "Boolean" - } + name: "Boolean", + }, }, splitOnCaseChange: { defaultValue: true, serializedName: "splitOnCaseChange", type: { - name: "Boolean" - } + name: "Boolean", + }, }, preserveOriginal: { defaultValue: false, serializedName: "preserveOriginal", type: { - name: "Boolean" - } + name: "Boolean", + }, }, splitOnNumerics: { defaultValue: true, serializedName: "splitOnNumerics", type: { - name: "Boolean" - } + name: "Boolean", + }, }, stemEnglishPossessive: { defaultValue: true, serializedName: "stemEnglishPossessive", type: { - name: "Boolean" - } + name: "Boolean", + }, }, protectedWords: { serializedName: "protectedWords", @@ -5911,13 +6066,13 @@ export const WordDelimiterTokenFilter: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const MappingCharFilter: coreClient.CompositeMapper = { @@ -5936,13 +6091,13 @@ export const MappingCharFilter: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const PatternReplaceCharFilter: coreClient.CompositeMapper = { @@ -5958,18 +6113,18 @@ export const PatternReplaceCharFilter: coreClient.CompositeMapper = { serializedName: "pattern", required: true, type: { - name: "String" - } + name: "String", + }, }, replacement: { serializedName: "replacement", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CustomNormalizer: coreClient.CompositeMapper = { @@ -5987,10 +6142,10 @@ export const CustomNormalizer: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, charFilters: { serializedName: "charFilters", @@ -5998,13 +6153,13 @@ export const CustomNormalizer: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ClassicSimilarity: coreClient.CompositeMapper = { @@ -6015,9 +6170,9 @@ export const ClassicSimilarity: coreClient.CompositeMapper = { uberParent: "Similarity", polymorphicDiscriminator: Similarity.type.polymorphicDiscriminator, modelProperties: { - ...Similarity.type.modelProperties - } - } + ...Similarity.type.modelProperties, + }, + }, }; export const BM25Similarity: coreClient.CompositeMapper = { @@ -6033,25 +6188,25 @@ export const BM25Similarity: coreClient.CompositeMapper = { serializedName: "k1", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, b: { serializedName: "b", nullable: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; -export const HnswVectorSearchAlgorithmConfiguration: coreClient.CompositeMapper = { +export const HnswAlgorithmConfiguration: coreClient.CompositeMapper = { serializedName: "hnsw", type: { name: "Composite", - className: "HnswVectorSearchAlgorithmConfiguration", + className: "HnswAlgorithmConfiguration", uberParent: "VectorSearchAlgorithmConfiguration", polymorphicDiscriminator: VectorSearchAlgorithmConfiguration.type.polymorphicDiscriminator, @@ -6061,18 +6216,18 @@ export const HnswVectorSearchAlgorithmConfiguration: coreClient.CompositeMapper serializedName: "hnswParameters", type: { name: "Composite", - className: "HnswParameters" - } - } - } - } + className: "HnswParameters", + }, + }, + }, + }, }; -export const ExhaustiveKnnVectorSearchAlgorithmConfiguration: coreClient.CompositeMapper = { +export const ExhaustiveKnnAlgorithmConfiguration: coreClient.CompositeMapper = { serializedName: "exhaustiveKnn", type: { name: "Composite", - className: "ExhaustiveKnnVectorSearchAlgorithmConfiguration", + className: "ExhaustiveKnnAlgorithmConfiguration", uberParent: "VectorSearchAlgorithmConfiguration", polymorphicDiscriminator: VectorSearchAlgorithmConfiguration.type.polymorphicDiscriminator, @@ -6082,11 +6237,11 @@ export const ExhaustiveKnnVectorSearchAlgorithmConfiguration: coreClient.Composi serializedName: "exhaustiveKnnParameters", type: { name: "Composite", - className: "ExhaustiveKnnParameters" - } - } - } - } + className: "ExhaustiveKnnParameters", + }, + }, + }, + }, }; export const AzureOpenAIVectorizer: coreClient.CompositeMapper = { @@ -6103,11 +6258,11 @@ export const AzureOpenAIVectorizer: coreClient.CompositeMapper = { serializedName: "azureOpenAIParameters", type: { name: "Composite", - className: "AzureOpenAIParameters" - } - } - } - } + className: "AzureOpenAIParameters", + }, + }, + }, + }, }; export const CustomVectorizer: coreClient.CompositeMapper = { @@ -6120,36 +6275,62 @@ export const CustomVectorizer: coreClient.CompositeMapper = { VectorSearchVectorizer.type.polymorphicDiscriminator, modelProperties: { ...VectorSearchVectorizer.type.modelProperties, - customVectorizerParameters: { - serializedName: "customVectorizerParameters", + customWebApiParameters: { + serializedName: "customWebApiParameters", type: { name: "Composite", - className: "CustomVectorizerParameters" - } - } - } - } -}; + className: "CustomWebApiParameters", + }, + }, + }, + }, +}; + +export const ScalarQuantizationCompressionConfiguration: coreClient.CompositeMapper = + { + serializedName: "scalarQuantization", + type: { + name: "Composite", + className: "ScalarQuantizationCompressionConfiguration", + uberParent: "BaseVectorSearchCompressionConfiguration", + polymorphicDiscriminator: + BaseVectorSearchCompressionConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...BaseVectorSearchCompressionConfiguration.type.modelProperties, + parameters: { + serializedName: "scalarQuantizationParameters", + type: { + name: "Composite", + className: "ScalarQuantizationParameters", + }, + }, + }, + }, + }; -export const SearchIndexerKnowledgeStoreObjectProjectionSelector: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SearchIndexerKnowledgeStoreObjectProjectionSelector", - modelProperties: { - ...SearchIndexerKnowledgeStoreBlobProjectionSelector.type.modelProperties - } - } -}; +export const SearchIndexerKnowledgeStoreObjectProjectionSelector: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SearchIndexerKnowledgeStoreObjectProjectionSelector", + modelProperties: { + ...SearchIndexerKnowledgeStoreBlobProjectionSelector.type + .modelProperties, + }, + }, + }; -export const SearchIndexerKnowledgeStoreFileProjectionSelector: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SearchIndexerKnowledgeStoreFileProjectionSelector", - modelProperties: { - ...SearchIndexerKnowledgeStoreBlobProjectionSelector.type.modelProperties - } - } -}; +export const SearchIndexerKnowledgeStoreFileProjectionSelector: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SearchIndexerKnowledgeStoreFileProjectionSelector", + modelProperties: { + ...SearchIndexerKnowledgeStoreBlobProjectionSelector.type + .modelProperties, + }, + }, + }; export let discriminators = { SearchIndexerDataIdentity: SearchIndexerDataIdentity, @@ -6166,86 +6347,139 @@ export let discriminators = { Similarity: Similarity, VectorSearchAlgorithmConfiguration: VectorSearchAlgorithmConfiguration, VectorSearchVectorizer: VectorSearchVectorizer, - "SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataNoneIdentity": SearchIndexerDataNoneIdentity, - "SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataUserAssignedIdentity": SearchIndexerDataUserAssignedIdentity, - "DataChangeDetectionPolicy.#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy": HighWaterMarkChangeDetectionPolicy, - "DataChangeDetectionPolicy.#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy": SqlIntegratedChangeTrackingPolicy, - "DataDeletionDetectionPolicy.#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy": SoftDeleteColumnDeletionDetectionPolicy, - "DataDeletionDetectionPolicy.#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy": NativeBlobSoftDeleteDeletionDetectionPolicy, - "SearchIndexerSkill.#Microsoft.Skills.Util.ConditionalSkill": ConditionalSkill, - "SearchIndexerSkill.#Microsoft.Skills.Text.KeyPhraseExtractionSkill": KeyPhraseExtractionSkill, + BaseVectorSearchCompressionConfiguration: + BaseVectorSearchCompressionConfiguration, + "SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataNoneIdentity": + SearchIndexerDataNoneIdentity, + "SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataUserAssignedIdentity": + SearchIndexerDataUserAssignedIdentity, + "DataChangeDetectionPolicy.#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy": + HighWaterMarkChangeDetectionPolicy, + "DataChangeDetectionPolicy.#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy": + SqlIntegratedChangeTrackingPolicy, + "DataDeletionDetectionPolicy.#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy": + SoftDeleteColumnDeletionDetectionPolicy, + "DataDeletionDetectionPolicy.#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy": + NativeBlobSoftDeleteDeletionDetectionPolicy, + "SearchIndexerSkill.#Microsoft.Skills.Util.ConditionalSkill": + ConditionalSkill, + "SearchIndexerSkill.#Microsoft.Skills.Text.KeyPhraseExtractionSkill": + KeyPhraseExtractionSkill, "SearchIndexerSkill.#Microsoft.Skills.Vision.OcrSkill": OcrSkill, - "SearchIndexerSkill.#Microsoft.Skills.Vision.ImageAnalysisSkill": ImageAnalysisSkill, - "SearchIndexerSkill.#Microsoft.Skills.Text.LanguageDetectionSkill": LanguageDetectionSkill, + "SearchIndexerSkill.#Microsoft.Skills.Vision.ImageAnalysisSkill": + ImageAnalysisSkill, + "SearchIndexerSkill.#Microsoft.Skills.Text.LanguageDetectionSkill": + LanguageDetectionSkill, "SearchIndexerSkill.#Microsoft.Skills.Util.ShaperSkill": ShaperSkill, "SearchIndexerSkill.#Microsoft.Skills.Text.MergeSkill": MergeSkill, - "SearchIndexerSkill.#Microsoft.Skills.Text.EntityRecognitionSkill": EntityRecognitionSkill, + "SearchIndexerSkill.#Microsoft.Skills.Text.EntityRecognitionSkill": + EntityRecognitionSkill, "SearchIndexerSkill.#Microsoft.Skills.Text.SentimentSkill": SentimentSkill, - "SearchIndexerSkill.#Microsoft.Skills.Text.V3.SentimentSkill": SentimentSkillV3, - "SearchIndexerSkill.#Microsoft.Skills.Text.V3.EntityLinkingSkill": EntityLinkingSkill, - "SearchIndexerSkill.#Microsoft.Skills.Text.V3.EntityRecognitionSkill": EntityRecognitionSkillV3, - "SearchIndexerSkill.#Microsoft.Skills.Text.PIIDetectionSkill": PIIDetectionSkill, + "SearchIndexerSkill.#Microsoft.Skills.Text.V3.SentimentSkill": + SentimentSkillV3, + "SearchIndexerSkill.#Microsoft.Skills.Text.V3.EntityLinkingSkill": + EntityLinkingSkill, + "SearchIndexerSkill.#Microsoft.Skills.Text.V3.EntityRecognitionSkill": + EntityRecognitionSkillV3, + "SearchIndexerSkill.#Microsoft.Skills.Text.PIIDetectionSkill": + PIIDetectionSkill, "SearchIndexerSkill.#Microsoft.Skills.Text.SplitSkill": SplitSkill, - "SearchIndexerSkill.#Microsoft.Skills.Text.CustomEntityLookupSkill": CustomEntityLookupSkill, - "SearchIndexerSkill.#Microsoft.Skills.Text.TranslationSkill": TextTranslationSkill, - "SearchIndexerSkill.#Microsoft.Skills.Util.DocumentExtractionSkill": DocumentExtractionSkill, + "SearchIndexerSkill.#Microsoft.Skills.Text.CustomEntityLookupSkill": + CustomEntityLookupSkill, + "SearchIndexerSkill.#Microsoft.Skills.Text.TranslationSkill": + TextTranslationSkill, + "SearchIndexerSkill.#Microsoft.Skills.Util.DocumentExtractionSkill": + DocumentExtractionSkill, "SearchIndexerSkill.#Microsoft.Skills.Custom.WebApiSkill": WebApiSkill, - "SearchIndexerSkill.#Microsoft.Skills.Custom.AmlSkill": AzureMachineLearningSkill, - "SearchIndexerSkill.#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill": AzureOpenAIEmbeddingSkill, - "CognitiveServicesAccount.#Microsoft.Azure.Search.DefaultCognitiveServices": DefaultCognitiveServicesAccount, - "CognitiveServicesAccount.#Microsoft.Azure.Search.CognitiveServicesByKey": CognitiveServicesAccountKey, + "SearchIndexerSkill.#Microsoft.Skills.Custom.AmlSkill": + AzureMachineLearningSkill, + "SearchIndexerSkill.#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill": + AzureOpenAIEmbeddingSkill, + "CognitiveServicesAccount.#Microsoft.Azure.Search.DefaultCognitiveServices": + DefaultCognitiveServicesAccount, + "CognitiveServicesAccount.#Microsoft.Azure.Search.CognitiveServicesByKey": + CognitiveServicesAccountKey, "ScoringFunction.distance": DistanceScoringFunction, "ScoringFunction.freshness": FreshnessScoringFunction, "ScoringFunction.magnitude": MagnitudeScoringFunction, "ScoringFunction.tag": TagScoringFunction, "LexicalAnalyzer.#Microsoft.Azure.Search.CustomAnalyzer": CustomAnalyzer, "LexicalAnalyzer.#Microsoft.Azure.Search.PatternAnalyzer": PatternAnalyzer, - "LexicalAnalyzer.#Microsoft.Azure.Search.StandardAnalyzer": LuceneStandardAnalyzer, + "LexicalAnalyzer.#Microsoft.Azure.Search.StandardAnalyzer": + LuceneStandardAnalyzer, "LexicalAnalyzer.#Microsoft.Azure.Search.StopAnalyzer": StopAnalyzer, "LexicalTokenizer.#Microsoft.Azure.Search.ClassicTokenizer": ClassicTokenizer, - "LexicalTokenizer.#Microsoft.Azure.Search.EdgeNGramTokenizer": EdgeNGramTokenizer, + "LexicalTokenizer.#Microsoft.Azure.Search.EdgeNGramTokenizer": + EdgeNGramTokenizer, "LexicalTokenizer.#Microsoft.Azure.Search.KeywordTokenizer": KeywordTokenizer, - "LexicalTokenizer.#Microsoft.Azure.Search.KeywordTokenizerV2": KeywordTokenizerV2, - "LexicalTokenizer.#Microsoft.Azure.Search.MicrosoftLanguageTokenizer": MicrosoftLanguageTokenizer, - "LexicalTokenizer.#Microsoft.Azure.Search.MicrosoftLanguageStemmingTokenizer": MicrosoftLanguageStemmingTokenizer, + "LexicalTokenizer.#Microsoft.Azure.Search.KeywordTokenizerV2": + KeywordTokenizerV2, + "LexicalTokenizer.#Microsoft.Azure.Search.MicrosoftLanguageTokenizer": + MicrosoftLanguageTokenizer, + "LexicalTokenizer.#Microsoft.Azure.Search.MicrosoftLanguageStemmingTokenizer": + MicrosoftLanguageStemmingTokenizer, "LexicalTokenizer.#Microsoft.Azure.Search.NGramTokenizer": NGramTokenizer, - "LexicalTokenizer.#Microsoft.Azure.Search.PathHierarchyTokenizerV2": PathHierarchyTokenizerV2, + "LexicalTokenizer.#Microsoft.Azure.Search.PathHierarchyTokenizerV2": + PathHierarchyTokenizerV2, "LexicalTokenizer.#Microsoft.Azure.Search.PatternTokenizer": PatternTokenizer, - "LexicalTokenizer.#Microsoft.Azure.Search.StandardTokenizer": LuceneStandardTokenizer, - "LexicalTokenizer.#Microsoft.Azure.Search.StandardTokenizerV2": LuceneStandardTokenizerV2, - "LexicalTokenizer.#Microsoft.Azure.Search.UaxUrlEmailTokenizer": UaxUrlEmailTokenizer, - "TokenFilter.#Microsoft.Azure.Search.AsciiFoldingTokenFilter": AsciiFoldingTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.CjkBigramTokenFilter": CjkBigramTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.CommonGramTokenFilter": CommonGramTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.DictionaryDecompounderTokenFilter": DictionaryDecompounderTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.EdgeNGramTokenFilter": EdgeNGramTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.EdgeNGramTokenFilterV2": EdgeNGramTokenFilterV2, + "LexicalTokenizer.#Microsoft.Azure.Search.StandardTokenizer": + LuceneStandardTokenizer, + "LexicalTokenizer.#Microsoft.Azure.Search.StandardTokenizerV2": + LuceneStandardTokenizerV2, + "LexicalTokenizer.#Microsoft.Azure.Search.UaxUrlEmailTokenizer": + UaxUrlEmailTokenizer, + "TokenFilter.#Microsoft.Azure.Search.AsciiFoldingTokenFilter": + AsciiFoldingTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.CjkBigramTokenFilter": + CjkBigramTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.CommonGramTokenFilter": + CommonGramTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.DictionaryDecompounderTokenFilter": + DictionaryDecompounderTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.EdgeNGramTokenFilter": + EdgeNGramTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.EdgeNGramTokenFilterV2": + EdgeNGramTokenFilterV2, "TokenFilter.#Microsoft.Azure.Search.ElisionTokenFilter": ElisionTokenFilter, "TokenFilter.#Microsoft.Azure.Search.KeepTokenFilter": KeepTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.KeywordMarkerTokenFilter": KeywordMarkerTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.KeywordMarkerTokenFilter": + KeywordMarkerTokenFilter, "TokenFilter.#Microsoft.Azure.Search.LengthTokenFilter": LengthTokenFilter, "TokenFilter.#Microsoft.Azure.Search.LimitTokenFilter": LimitTokenFilter, "TokenFilter.#Microsoft.Azure.Search.NGramTokenFilter": NGramTokenFilter, "TokenFilter.#Microsoft.Azure.Search.NGramTokenFilterV2": NGramTokenFilterV2, - "TokenFilter.#Microsoft.Azure.Search.PatternCaptureTokenFilter": PatternCaptureTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.PatternReplaceTokenFilter": PatternReplaceTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.PhoneticTokenFilter": PhoneticTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.PatternCaptureTokenFilter": + PatternCaptureTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.PatternReplaceTokenFilter": + PatternReplaceTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.PhoneticTokenFilter": + PhoneticTokenFilter, "TokenFilter.#Microsoft.Azure.Search.ShingleTokenFilter": ShingleTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.SnowballTokenFilter": SnowballTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.SnowballTokenFilter": + SnowballTokenFilter, "TokenFilter.#Microsoft.Azure.Search.StemmerTokenFilter": StemmerTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.StemmerOverrideTokenFilter": StemmerOverrideTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.StopwordsTokenFilter": StopwordsTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.StemmerOverrideTokenFilter": + StemmerOverrideTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.StopwordsTokenFilter": + StopwordsTokenFilter, "TokenFilter.#Microsoft.Azure.Search.SynonymTokenFilter": SynonymTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.TruncateTokenFilter": TruncateTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.TruncateTokenFilter": + TruncateTokenFilter, "TokenFilter.#Microsoft.Azure.Search.UniqueTokenFilter": UniqueTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.WordDelimiterTokenFilter": WordDelimiterTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.WordDelimiterTokenFilter": + WordDelimiterTokenFilter, "CharFilter.#Microsoft.Azure.Search.MappingCharFilter": MappingCharFilter, - "CharFilter.#Microsoft.Azure.Search.PatternReplaceCharFilter": PatternReplaceCharFilter, - "LexicalNormalizer.#Microsoft.Azure.Search.CustomNormalizer": CustomNormalizer, + "CharFilter.#Microsoft.Azure.Search.PatternReplaceCharFilter": + PatternReplaceCharFilter, + "LexicalNormalizer.#Microsoft.Azure.Search.CustomNormalizer": + CustomNormalizer, "Similarity.#Microsoft.Azure.Search.ClassicSimilarity": ClassicSimilarity, "Similarity.#Microsoft.Azure.Search.BM25Similarity": BM25Similarity, - "VectorSearchAlgorithmConfiguration.hnsw": HnswVectorSearchAlgorithmConfiguration, - "VectorSearchAlgorithmConfiguration.exhaustiveKnn": ExhaustiveKnnVectorSearchAlgorithmConfiguration, + "VectorSearchAlgorithmConfiguration.hnsw": HnswAlgorithmConfiguration, + "VectorSearchAlgorithmConfiguration.exhaustiveKnn": + ExhaustiveKnnAlgorithmConfiguration, "VectorSearchVectorizer.azureOpenAI": AzureOpenAIVectorizer, - "VectorSearchVectorizer.customWebApi": CustomVectorizer + "VectorSearchVectorizer.customWebApi": CustomVectorizer, + "BaseVectorSearchCompressionConfiguration.scalarQuantization": + ScalarQuantizationCompressionConfiguration, }; diff --git a/sdk/search/search-documents/src/generated/service/models/parameters.ts b/sdk/search/search-documents/src/generated/service/models/parameters.ts index 0b86642a816d..6e88bb7c4e73 100644 --- a/sdk/search/search-documents/src/generated/service/models/parameters.ts +++ b/sdk/search/search-documents/src/generated/service/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { SearchIndexerDataSource as SearchIndexerDataSourceMapper, @@ -20,7 +20,7 @@ import { SynonymMap as SynonymMapMapper, SearchIndex as SearchIndexMapper, AnalyzeRequest as AnalyzeRequestMapper, - SearchAlias as SearchAliasMapper + SearchAlias as SearchAliasMapper, } from "../models/mappers"; export const contentType: OperationParameter = { @@ -30,14 +30,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const dataSource: OperationParameter = { parameterPath: "dataSource", - mapper: SearchIndexerDataSourceMapper + mapper: SearchIndexerDataSourceMapper, }; export const accept: OperationParameter = { @@ -47,9 +47,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const endpoint: OperationURLParameter = { @@ -58,10 +58,10 @@ export const endpoint: OperationURLParameter = { serializedName: "endpoint", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const dataSourceName: OperationURLParameter = { @@ -70,9 +70,9 @@ export const dataSourceName: OperationURLParameter = { serializedName: "dataSourceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const ifMatch: OperationParameter = { @@ -80,9 +80,9 @@ export const ifMatch: OperationParameter = { mapper: { serializedName: "If-Match", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const ifNoneMatch: OperationParameter = { @@ -90,9 +90,9 @@ export const ifNoneMatch: OperationParameter = { mapper: { serializedName: "If-None-Match", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const prefer: OperationParameter = { @@ -102,9 +102,9 @@ export const prefer: OperationParameter = { isConstant: true, serializedName: "Prefer", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion: OperationQueryParameter = { @@ -113,9 +113,9 @@ export const apiVersion: OperationQueryParameter = { serializedName: "api-version", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const skipIndexerResetRequirementForCache: OperationQueryParameter = { @@ -123,9 +123,9 @@ export const skipIndexerResetRequirementForCache: OperationQueryParameter = { mapper: { serializedName: "ignoreResetRequirements", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const select: OperationQueryParameter = { @@ -133,9 +133,9 @@ export const select: OperationQueryParameter = { mapper: { serializedName: "$select", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const indexerName: OperationURLParameter = { @@ -144,14 +144,14 @@ export const indexerName: OperationURLParameter = { serializedName: "indexerName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const keysOrIds: OperationParameter = { parameterPath: ["options", "keysOrIds"], - mapper: DocumentKeysOrIdsMapper + mapper: DocumentKeysOrIdsMapper, }; export const overwrite: OperationQueryParameter = { @@ -160,29 +160,30 @@ export const overwrite: OperationQueryParameter = { defaultValue: false, serializedName: "overwrite", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const indexer: OperationParameter = { parameterPath: "indexer", - mapper: SearchIndexerMapper + mapper: SearchIndexerMapper, }; -export const disableCacheReprocessingChangeDetection: OperationQueryParameter = { - parameterPath: ["options", "disableCacheReprocessingChangeDetection"], - mapper: { - serializedName: "disableCacheReprocessingChangeDetection", - type: { - name: "Boolean" - } - } -}; +export const disableCacheReprocessingChangeDetection: OperationQueryParameter = + { + parameterPath: ["options", "disableCacheReprocessingChangeDetection"], + mapper: { + serializedName: "disableCacheReprocessingChangeDetection", + type: { + name: "Boolean", + }, + }, + }; export const skillset: OperationParameter = { parameterPath: "skillset", - mapper: SearchIndexerSkillsetMapper + mapper: SearchIndexerSkillsetMapper, }; export const skillsetName: OperationURLParameter = { @@ -191,19 +192,19 @@ export const skillsetName: OperationURLParameter = { serializedName: "skillsetName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const skillNames: OperationParameter = { parameterPath: "skillNames", - mapper: SkillNamesMapper + mapper: SkillNamesMapper, }; export const synonymMap: OperationParameter = { parameterPath: "synonymMap", - mapper: SynonymMapMapper + mapper: SynonymMapMapper, }; export const synonymMapName: OperationURLParameter = { @@ -212,14 +213,14 @@ export const synonymMapName: OperationURLParameter = { serializedName: "synonymMapName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const index: OperationParameter = { parameterPath: "index", - mapper: SearchIndexMapper + mapper: SearchIndexMapper, }; export const indexName: OperationURLParameter = { @@ -228,9 +229,9 @@ export const indexName: OperationURLParameter = { serializedName: "indexName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const allowIndexDowntime: OperationQueryParameter = { @@ -238,19 +239,19 @@ export const allowIndexDowntime: OperationQueryParameter = { mapper: { serializedName: "allowIndexDowntime", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const request: OperationParameter = { parameterPath: "request", - mapper: AnalyzeRequestMapper + mapper: AnalyzeRequestMapper, }; export const alias: OperationParameter = { parameterPath: "alias", - mapper: SearchAliasMapper + mapper: SearchAliasMapper, }; export const aliasName: OperationURLParameter = { @@ -259,7 +260,7 @@ export const aliasName: OperationURLParameter = { serializedName: "aliasName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; diff --git a/sdk/search/search-documents/src/generated/service/operations/aliases.ts b/sdk/search/search-documents/src/generated/service/operations/aliases.ts index f57ba73176cf..cd858260b466 100644 --- a/sdk/search/search-documents/src/generated/service/operations/aliases.ts +++ b/sdk/search/search-documents/src/generated/service/operations/aliases.ts @@ -21,7 +21,7 @@ import { AliasesCreateOrUpdateResponse, AliasesDeleteOptionalParams, AliasesGetOptionalParams, - AliasesGetResponse + AliasesGetResponse, } from "../models"; /** Class containing Aliases operations. */ @@ -43,11 +43,11 @@ export class AliasesImpl implements Aliases { */ create( alias: SearchAlias, - options?: AliasesCreateOptionalParams + options?: AliasesCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { alias, options }, - createOperationSpec + createOperationSpec, ); } @@ -68,11 +68,11 @@ export class AliasesImpl implements Aliases { createOrUpdate( aliasName: string, alias: SearchAlias, - options?: AliasesCreateOrUpdateOptionalParams + options?: AliasesCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { aliasName, alias, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -84,11 +84,11 @@ export class AliasesImpl implements Aliases { */ delete( aliasName: string, - options?: AliasesDeleteOptionalParams + options?: AliasesDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { aliasName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -99,11 +99,11 @@ export class AliasesImpl implements Aliases { */ get( aliasName: string, - options?: AliasesGetOptionalParams + options?: AliasesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { aliasName, options }, - getOperationSpec + getOperationSpec, ); } } @@ -115,48 +115,48 @@ const createOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 201: { - bodyMapper: Mappers.SearchAlias + bodyMapper: Mappers.SearchAlias, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.alias, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/aliases", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListAliasesResult + bodyMapper: Mappers.ListAliasesResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/aliases('{aliasName}')", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SearchAlias + bodyMapper: Mappers.SearchAlias, }, 201: { - bodyMapper: Mappers.SearchAlias + bodyMapper: Mappers.SearchAlias, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.alias, queryParameters: [Parameters.apiVersion], @@ -166,10 +166,10 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.accept, Parameters.ifMatch, Parameters.ifNoneMatch, - Parameters.prefer + Parameters.prefer, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { path: "/aliases('{aliasName}')", @@ -178,31 +178,31 @@ const deleteOperationSpec: coreClient.OperationSpec = { 204: {}, 404: {}, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.aliasName], headerParameters: [ Parameters.accept, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { path: "/aliases('{aliasName}')", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SearchAlias + bodyMapper: Mappers.SearchAlias, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.aliasName], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/search/search-documents/src/generated/service/operations/dataSources.ts b/sdk/search/search-documents/src/generated/service/operations/dataSources.ts index 40e1c9531a6c..fb0129f8b837 100644 --- a/sdk/search/search-documents/src/generated/service/operations/dataSources.ts +++ b/sdk/search/search-documents/src/generated/service/operations/dataSources.ts @@ -21,7 +21,7 @@ import { DataSourcesListOptionalParams, DataSourcesListResponse, DataSourcesCreateOptionalParams, - DataSourcesCreateResponse + DataSourcesCreateResponse, } from "../models"; /** Class containing DataSources operations. */ @@ -45,11 +45,11 @@ export class DataSourcesImpl implements DataSources { createOrUpdate( dataSourceName: string, dataSource: SearchIndexerDataSource, - options?: DataSourcesCreateOrUpdateOptionalParams + options?: DataSourcesCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { dataSourceName, dataSource, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -60,11 +60,11 @@ export class DataSourcesImpl implements DataSources { */ delete( dataSourceName: string, - options?: DataSourcesDeleteOptionalParams + options?: DataSourcesDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { dataSourceName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -75,11 +75,11 @@ export class DataSourcesImpl implements DataSources { */ get( dataSourceName: string, - options?: DataSourcesGetOptionalParams + options?: DataSourcesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { dataSourceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -88,7 +88,7 @@ export class DataSourcesImpl implements DataSources { * @param options The options parameters. */ list( - options?: DataSourcesListOptionalParams + options?: DataSourcesListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -100,11 +100,11 @@ export class DataSourcesImpl implements DataSources { */ create( dataSource: SearchIndexerDataSource, - options?: DataSourcesCreateOptionalParams + options?: DataSourcesCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { dataSource, options }, - createOperationSpec + createOperationSpec, ); } } @@ -116,19 +116,19 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SearchIndexerDataSource + bodyMapper: Mappers.SearchIndexerDataSource, }, 201: { - bodyMapper: Mappers.SearchIndexerDataSource + bodyMapper: Mappers.SearchIndexerDataSource, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.dataSource, queryParameters: [ Parameters.apiVersion, - Parameters.skipIndexerResetRequirementForCache + Parameters.skipIndexerResetRequirementForCache, ], urlParameters: [Parameters.endpoint, Parameters.dataSourceName], headerParameters: [ @@ -136,10 +136,10 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.accept, Parameters.ifMatch, Parameters.ifNoneMatch, - Parameters.prefer + Parameters.prefer, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { path: "/datasources('{dataSourceName}')", @@ -148,65 +148,65 @@ const deleteOperationSpec: coreClient.OperationSpec = { 204: {}, 404: {}, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.dataSourceName], headerParameters: [ Parameters.accept, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { path: "/datasources('{dataSourceName}')", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SearchIndexerDataSource + bodyMapper: Mappers.SearchIndexerDataSource, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.dataSourceName], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/datasources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListDataSourcesResult + bodyMapper: Mappers.ListDataSourcesResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.select], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { path: "/datasources", httpMethod: "POST", responses: { 201: { - bodyMapper: Mappers.SearchIndexerDataSource + bodyMapper: Mappers.SearchIndexerDataSource, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.dataSource, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/search/search-documents/src/generated/service/operations/indexers.ts b/sdk/search/search-documents/src/generated/service/operations/indexers.ts index 5a2dad5839d3..e8895a6dd85c 100644 --- a/sdk/search/search-documents/src/generated/service/operations/indexers.ts +++ b/sdk/search/search-documents/src/generated/service/operations/indexers.ts @@ -26,7 +26,7 @@ import { IndexersCreateOptionalParams, IndexersCreateResponse, IndexersGetStatusOptionalParams, - IndexersGetStatusResponse + IndexersGetStatusResponse, } from "../models"; /** Class containing Indexers operations. */ @@ -48,11 +48,11 @@ export class IndexersImpl implements Indexers { */ reset( indexerName: string, - options?: IndexersResetOptionalParams + options?: IndexersResetOptionalParams, ): Promise { return this.client.sendOperationRequest( { indexerName, options }, - resetOperationSpec + resetOperationSpec, ); } @@ -63,11 +63,11 @@ export class IndexersImpl implements Indexers { */ resetDocs( indexerName: string, - options?: IndexersResetDocsOptionalParams + options?: IndexersResetDocsOptionalParams, ): Promise { return this.client.sendOperationRequest( { indexerName, options }, - resetDocsOperationSpec + resetDocsOperationSpec, ); } @@ -79,7 +79,7 @@ export class IndexersImpl implements Indexers { run(indexerName: string, options?: IndexersRunOptionalParams): Promise { return this.client.sendOperationRequest( { indexerName, options }, - runOperationSpec + runOperationSpec, ); } @@ -92,11 +92,11 @@ export class IndexersImpl implements Indexers { createOrUpdate( indexerName: string, indexer: SearchIndexer, - options?: IndexersCreateOrUpdateOptionalParams + options?: IndexersCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { indexerName, indexer, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -107,11 +107,11 @@ export class IndexersImpl implements Indexers { */ delete( indexerName: string, - options?: IndexersDeleteOptionalParams + options?: IndexersDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { indexerName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -122,11 +122,11 @@ export class IndexersImpl implements Indexers { */ get( indexerName: string, - options?: IndexersGetOptionalParams + options?: IndexersGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { indexerName, options }, - getOperationSpec + getOperationSpec, ); } @@ -145,11 +145,11 @@ export class IndexersImpl implements Indexers { */ create( indexer: SearchIndexer, - options?: IndexersCreateOptionalParams + options?: IndexersCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { indexer, options }, - createOperationSpec + createOperationSpec, ); } @@ -160,11 +160,11 @@ export class IndexersImpl implements Indexers { */ getStatus( indexerName: string, - options?: IndexersGetStatusOptionalParams + options?: IndexersGetStatusOptionalParams, ): Promise { return this.client.sendOperationRequest( { indexerName, options }, - getStatusOperationSpec + getStatusOperationSpec, ); } } @@ -177,13 +177,13 @@ const resetOperationSpec: coreClient.OperationSpec = { responses: { 204: {}, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexerName], headerParameters: [Parameters.accept], - serializer + serializer, }; const resetDocsOperationSpec: coreClient.OperationSpec = { path: "/indexers('{indexerName}')/search.resetdocs", @@ -191,15 +191,15 @@ const resetDocsOperationSpec: coreClient.OperationSpec = { responses: { 204: {}, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.keysOrIds, queryParameters: [Parameters.apiVersion, Parameters.overwrite], urlParameters: [Parameters.endpoint, Parameters.indexerName], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const runOperationSpec: coreClient.OperationSpec = { path: "/indexers('{indexerName}')/search.run", @@ -207,33 +207,33 @@ const runOperationSpec: coreClient.OperationSpec = { responses: { 202: {}, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexerName], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/indexers('{indexerName}')", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SearchIndexer + bodyMapper: Mappers.SearchIndexer, }, 201: { - bodyMapper: Mappers.SearchIndexer + bodyMapper: Mappers.SearchIndexer, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.indexer, queryParameters: [ Parameters.apiVersion, Parameters.skipIndexerResetRequirementForCache, - Parameters.disableCacheReprocessingChangeDetection + Parameters.disableCacheReprocessingChangeDetection, ], urlParameters: [Parameters.endpoint, Parameters.indexerName], headerParameters: [ @@ -241,10 +241,10 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.accept, Parameters.ifMatch, Parameters.ifNoneMatch, - Parameters.prefer + Parameters.prefer, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { path: "/indexers('{indexerName}')", @@ -253,81 +253,81 @@ const deleteOperationSpec: coreClient.OperationSpec = { 204: {}, 404: {}, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexerName], headerParameters: [ Parameters.accept, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { path: "/indexers('{indexerName}')", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SearchIndexer + bodyMapper: Mappers.SearchIndexer, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexerName], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/indexers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListIndexersResult + bodyMapper: Mappers.ListIndexersResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.select], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { path: "/indexers", httpMethod: "POST", responses: { 201: { - bodyMapper: Mappers.SearchIndexer + bodyMapper: Mappers.SearchIndexer, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.indexer, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const getStatusOperationSpec: coreClient.OperationSpec = { path: "/indexers('{indexerName}')/search.status", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SearchIndexerStatus + bodyMapper: Mappers.SearchIndexerStatus, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexerName], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/search/search-documents/src/generated/service/operations/indexes.ts b/sdk/search/search-documents/src/generated/service/operations/indexes.ts index c38c2ec54b2c..c456c969db12 100644 --- a/sdk/search/search-documents/src/generated/service/operations/indexes.ts +++ b/sdk/search/search-documents/src/generated/service/operations/indexes.ts @@ -26,7 +26,7 @@ import { IndexesGetStatisticsResponse, AnalyzeRequest, IndexesAnalyzeOptionalParams, - IndexesAnalyzeResponse + IndexesAnalyzeResponse, } from "../models"; /** Class containing Indexes operations. */ @@ -48,11 +48,11 @@ export class IndexesImpl implements Indexes { */ create( index: SearchIndex, - options?: IndexesCreateOptionalParams + options?: IndexesCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { index, options }, - createOperationSpec + createOperationSpec, ); } @@ -73,11 +73,11 @@ export class IndexesImpl implements Indexes { createOrUpdate( indexName: string, index: SearchIndex, - options?: IndexesCreateOrUpdateOptionalParams + options?: IndexesCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { indexName, index, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -90,11 +90,11 @@ export class IndexesImpl implements Indexes { */ delete( indexName: string, - options?: IndexesDeleteOptionalParams + options?: IndexesDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { indexName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -105,11 +105,11 @@ export class IndexesImpl implements Indexes { */ get( indexName: string, - options?: IndexesGetOptionalParams + options?: IndexesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { indexName, options }, - getOperationSpec + getOperationSpec, ); } @@ -120,11 +120,11 @@ export class IndexesImpl implements Indexes { */ getStatistics( indexName: string, - options?: IndexesGetStatisticsOptionalParams + options?: IndexesGetStatisticsOptionalParams, ): Promise { return this.client.sendOperationRequest( { indexName, options }, - getStatisticsOperationSpec + getStatisticsOperationSpec, ); } @@ -137,11 +137,11 @@ export class IndexesImpl implements Indexes { analyze( indexName: string, request: AnalyzeRequest, - options?: IndexesAnalyzeOptionalParams + options?: IndexesAnalyzeOptionalParams, ): Promise { return this.client.sendOperationRequest( { indexName, request, options }, - analyzeOperationSpec + analyzeOperationSpec, ); } } @@ -153,48 +153,48 @@ const createOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 201: { - bodyMapper: Mappers.SearchIndex + bodyMapper: Mappers.SearchIndex, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.index, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/indexes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListIndexesResult + bodyMapper: Mappers.ListIndexesResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.select], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/indexes('{indexName}')", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SearchIndex + bodyMapper: Mappers.SearchIndex, }, 201: { - bodyMapper: Mappers.SearchIndex + bodyMapper: Mappers.SearchIndex, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.index, queryParameters: [Parameters.apiVersion, Parameters.allowIndexDowntime], @@ -204,10 +204,10 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.accept, Parameters.ifMatch, Parameters.ifNoneMatch, - Parameters.prefer + Parameters.prefer, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { path: "/indexes('{indexName}')", @@ -216,65 +216,65 @@ const deleteOperationSpec: coreClient.OperationSpec = { 204: {}, 404: {}, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexName], headerParameters: [ Parameters.accept, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { path: "/indexes('{indexName}')", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SearchIndex + bodyMapper: Mappers.SearchIndex, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexName], headerParameters: [Parameters.accept], - serializer + serializer, }; const getStatisticsOperationSpec: coreClient.OperationSpec = { path: "/indexes('{indexName}')/search.stats", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GetIndexStatisticsResult + bodyMapper: Mappers.GetIndexStatisticsResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexName], headerParameters: [Parameters.accept], - serializer + serializer, }; const analyzeOperationSpec: coreClient.OperationSpec = { path: "/indexes('{indexName}')/search.analyze", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AnalyzeResult + bodyMapper: Mappers.AnalyzeResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.request, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexName], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/search/search-documents/src/generated/service/operations/skillsets.ts b/sdk/search/search-documents/src/generated/service/operations/skillsets.ts index cf156dbb34d3..59a4347a6c09 100644 --- a/sdk/search/search-documents/src/generated/service/operations/skillsets.ts +++ b/sdk/search/search-documents/src/generated/service/operations/skillsets.ts @@ -23,7 +23,7 @@ import { SkillsetsCreateOptionalParams, SkillsetsCreateResponse, SkillNames, - SkillsetsResetSkillsOptionalParams + SkillsetsResetSkillsOptionalParams, } from "../models"; /** Class containing Skillsets operations. */ @@ -47,11 +47,11 @@ export class SkillsetsImpl implements Skillsets { createOrUpdate( skillsetName: string, skillset: SearchIndexerSkillset, - options?: SkillsetsCreateOrUpdateOptionalParams + options?: SkillsetsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { skillsetName, skillset, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -62,11 +62,11 @@ export class SkillsetsImpl implements Skillsets { */ delete( skillsetName: string, - options?: SkillsetsDeleteOptionalParams + options?: SkillsetsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { skillsetName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -77,11 +77,11 @@ export class SkillsetsImpl implements Skillsets { */ get( skillsetName: string, - options?: SkillsetsGetOptionalParams + options?: SkillsetsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { skillsetName, options }, - getOperationSpec + getOperationSpec, ); } @@ -100,11 +100,11 @@ export class SkillsetsImpl implements Skillsets { */ create( skillset: SearchIndexerSkillset, - options?: SkillsetsCreateOptionalParams + options?: SkillsetsCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { skillset, options }, - createOperationSpec + createOperationSpec, ); } @@ -117,11 +117,11 @@ export class SkillsetsImpl implements Skillsets { resetSkills( skillsetName: string, skillNames: SkillNames, - options?: SkillsetsResetSkillsOptionalParams + options?: SkillsetsResetSkillsOptionalParams, ): Promise { return this.client.sendOperationRequest( { skillsetName, skillNames, options }, - resetSkillsOperationSpec + resetSkillsOperationSpec, ); } } @@ -133,20 +133,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SearchIndexerSkillset + bodyMapper: Mappers.SearchIndexerSkillset, }, 201: { - bodyMapper: Mappers.SearchIndexerSkillset + bodyMapper: Mappers.SearchIndexerSkillset, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.skillset, queryParameters: [ Parameters.apiVersion, Parameters.skipIndexerResetRequirementForCache, - Parameters.disableCacheReprocessingChangeDetection + Parameters.disableCacheReprocessingChangeDetection, ], urlParameters: [Parameters.endpoint, Parameters.skillsetName], headerParameters: [ @@ -154,10 +154,10 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.accept, Parameters.ifMatch, Parameters.ifNoneMatch, - Parameters.prefer + Parameters.prefer, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { path: "/skillsets('{skillsetName}')", @@ -166,67 +166,67 @@ const deleteOperationSpec: coreClient.OperationSpec = { 204: {}, 404: {}, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.skillsetName], headerParameters: [ Parameters.accept, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { path: "/skillsets('{skillsetName}')", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SearchIndexerSkillset + bodyMapper: Mappers.SearchIndexerSkillset, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.skillsetName], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/skillsets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListSkillsetsResult + bodyMapper: Mappers.ListSkillsetsResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.select], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { path: "/skillsets", httpMethod: "POST", responses: { 201: { - bodyMapper: Mappers.SearchIndexerSkillset + bodyMapper: Mappers.SearchIndexerSkillset, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.skillset, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const resetSkillsOperationSpec: coreClient.OperationSpec = { path: "/skillsets('{skillsetName}')/search.resetskills", @@ -234,13 +234,13 @@ const resetSkillsOperationSpec: coreClient.OperationSpec = { responses: { 204: {}, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.skillNames, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.skillsetName], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/search/search-documents/src/generated/service/operations/synonymMaps.ts b/sdk/search/search-documents/src/generated/service/operations/synonymMaps.ts index d4e23f498e70..afde7649c7d9 100644 --- a/sdk/search/search-documents/src/generated/service/operations/synonymMaps.ts +++ b/sdk/search/search-documents/src/generated/service/operations/synonymMaps.ts @@ -21,7 +21,7 @@ import { SynonymMapsListOptionalParams, SynonymMapsListResponse, SynonymMapsCreateOptionalParams, - SynonymMapsCreateResponse + SynonymMapsCreateResponse, } from "../models"; /** Class containing SynonymMaps operations. */ @@ -45,11 +45,11 @@ export class SynonymMapsImpl implements SynonymMaps { createOrUpdate( synonymMapName: string, synonymMap: SynonymMap, - options?: SynonymMapsCreateOrUpdateOptionalParams + options?: SynonymMapsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { synonymMapName, synonymMap, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -60,11 +60,11 @@ export class SynonymMapsImpl implements SynonymMaps { */ delete( synonymMapName: string, - options?: SynonymMapsDeleteOptionalParams + options?: SynonymMapsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { synonymMapName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -75,11 +75,11 @@ export class SynonymMapsImpl implements SynonymMaps { */ get( synonymMapName: string, - options?: SynonymMapsGetOptionalParams + options?: SynonymMapsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { synonymMapName, options }, - getOperationSpec + getOperationSpec, ); } @@ -88,7 +88,7 @@ export class SynonymMapsImpl implements SynonymMaps { * @param options The options parameters. */ list( - options?: SynonymMapsListOptionalParams + options?: SynonymMapsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -100,11 +100,11 @@ export class SynonymMapsImpl implements SynonymMaps { */ create( synonymMap: SynonymMap, - options?: SynonymMapsCreateOptionalParams + options?: SynonymMapsCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { synonymMap, options }, - createOperationSpec + createOperationSpec, ); } } @@ -116,14 +116,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SynonymMap + bodyMapper: Mappers.SynonymMap, }, 201: { - bodyMapper: Mappers.SynonymMap + bodyMapper: Mappers.SynonymMap, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.synonymMap, queryParameters: [Parameters.apiVersion], @@ -133,10 +133,10 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.accept, Parameters.ifMatch, Parameters.ifNoneMatch, - Parameters.prefer + Parameters.prefer, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { path: "/synonymmaps('{synonymMapName}')", @@ -145,65 +145,65 @@ const deleteOperationSpec: coreClient.OperationSpec = { 204: {}, 404: {}, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.synonymMapName], headerParameters: [ Parameters.accept, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { path: "/synonymmaps('{synonymMapName}')", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SynonymMap + bodyMapper: Mappers.SynonymMap, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.synonymMapName], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/synonymmaps", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListSynonymMapsResult + bodyMapper: Mappers.ListSynonymMapsResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.select], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { path: "/synonymmaps", httpMethod: "POST", responses: { 201: { - bodyMapper: Mappers.SynonymMap + bodyMapper: Mappers.SynonymMap, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.synonymMap, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/search/search-documents/src/generated/service/operationsInterfaces/aliases.ts b/sdk/search/search-documents/src/generated/service/operationsInterfaces/aliases.ts index 6248725ff47f..ae616f642590 100644 --- a/sdk/search/search-documents/src/generated/service/operationsInterfaces/aliases.ts +++ b/sdk/search/search-documents/src/generated/service/operationsInterfaces/aliases.ts @@ -16,7 +16,7 @@ import { AliasesCreateOrUpdateResponse, AliasesDeleteOptionalParams, AliasesGetOptionalParams, - AliasesGetResponse + AliasesGetResponse, } from "../models"; /** Interface representing a Aliases. */ @@ -28,7 +28,7 @@ export interface Aliases { */ create( alias: SearchAlias, - options?: AliasesCreateOptionalParams + options?: AliasesCreateOptionalParams, ): Promise; /** * Lists all aliases available for a search service. @@ -44,7 +44,7 @@ export interface Aliases { createOrUpdate( aliasName: string, alias: SearchAlias, - options?: AliasesCreateOrUpdateOptionalParams + options?: AliasesCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a search alias and its associated mapping to an index. This operation is permanent, with no @@ -54,7 +54,7 @@ export interface Aliases { */ delete( aliasName: string, - options?: AliasesDeleteOptionalParams + options?: AliasesDeleteOptionalParams, ): Promise; /** * Retrieves an alias definition. @@ -63,6 +63,6 @@ export interface Aliases { */ get( aliasName: string, - options?: AliasesGetOptionalParams + options?: AliasesGetOptionalParams, ): Promise; } diff --git a/sdk/search/search-documents/src/generated/service/operationsInterfaces/dataSources.ts b/sdk/search/search-documents/src/generated/service/operationsInterfaces/dataSources.ts index 89c09ec35f54..801ff187e26a 100644 --- a/sdk/search/search-documents/src/generated/service/operationsInterfaces/dataSources.ts +++ b/sdk/search/search-documents/src/generated/service/operationsInterfaces/dataSources.ts @@ -16,7 +16,7 @@ import { DataSourcesListOptionalParams, DataSourcesListResponse, DataSourcesCreateOptionalParams, - DataSourcesCreateResponse + DataSourcesCreateResponse, } from "../models"; /** Interface representing a DataSources. */ @@ -30,7 +30,7 @@ export interface DataSources { createOrUpdate( dataSourceName: string, dataSource: SearchIndexerDataSource, - options?: DataSourcesCreateOrUpdateOptionalParams + options?: DataSourcesCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a datasource. @@ -39,7 +39,7 @@ export interface DataSources { */ delete( dataSourceName: string, - options?: DataSourcesDeleteOptionalParams + options?: DataSourcesDeleteOptionalParams, ): Promise; /** * Retrieves a datasource definition. @@ -48,14 +48,14 @@ export interface DataSources { */ get( dataSourceName: string, - options?: DataSourcesGetOptionalParams + options?: DataSourcesGetOptionalParams, ): Promise; /** * Lists all datasources available for a search service. * @param options The options parameters. */ list( - options?: DataSourcesListOptionalParams + options?: DataSourcesListOptionalParams, ): Promise; /** * Creates a new datasource. @@ -64,6 +64,6 @@ export interface DataSources { */ create( dataSource: SearchIndexerDataSource, - options?: DataSourcesCreateOptionalParams + options?: DataSourcesCreateOptionalParams, ): Promise; } diff --git a/sdk/search/search-documents/src/generated/service/operationsInterfaces/indexers.ts b/sdk/search/search-documents/src/generated/service/operationsInterfaces/indexers.ts index 146e9f669225..95e8c3bac62e 100644 --- a/sdk/search/search-documents/src/generated/service/operationsInterfaces/indexers.ts +++ b/sdk/search/search-documents/src/generated/service/operationsInterfaces/indexers.ts @@ -21,7 +21,7 @@ import { IndexersCreateOptionalParams, IndexersCreateResponse, IndexersGetStatusOptionalParams, - IndexersGetStatusResponse + IndexersGetStatusResponse, } from "../models"; /** Interface representing a Indexers. */ @@ -33,7 +33,7 @@ export interface Indexers { */ reset( indexerName: string, - options?: IndexersResetOptionalParams + options?: IndexersResetOptionalParams, ): Promise; /** * Resets specific documents in the datasource to be selectively re-ingested by the indexer. @@ -42,7 +42,7 @@ export interface Indexers { */ resetDocs( indexerName: string, - options?: IndexersResetDocsOptionalParams + options?: IndexersResetDocsOptionalParams, ): Promise; /** * Runs an indexer on-demand. @@ -59,7 +59,7 @@ export interface Indexers { createOrUpdate( indexerName: string, indexer: SearchIndexer, - options?: IndexersCreateOrUpdateOptionalParams + options?: IndexersCreateOrUpdateOptionalParams, ): Promise; /** * Deletes an indexer. @@ -68,7 +68,7 @@ export interface Indexers { */ delete( indexerName: string, - options?: IndexersDeleteOptionalParams + options?: IndexersDeleteOptionalParams, ): Promise; /** * Retrieves an indexer definition. @@ -77,7 +77,7 @@ export interface Indexers { */ get( indexerName: string, - options?: IndexersGetOptionalParams + options?: IndexersGetOptionalParams, ): Promise; /** * Lists all indexers available for a search service. @@ -91,7 +91,7 @@ export interface Indexers { */ create( indexer: SearchIndexer, - options?: IndexersCreateOptionalParams + options?: IndexersCreateOptionalParams, ): Promise; /** * Returns the current status and execution history of an indexer. @@ -100,6 +100,6 @@ export interface Indexers { */ getStatus( indexerName: string, - options?: IndexersGetStatusOptionalParams + options?: IndexersGetStatusOptionalParams, ): Promise; } diff --git a/sdk/search/search-documents/src/generated/service/operationsInterfaces/indexes.ts b/sdk/search/search-documents/src/generated/service/operationsInterfaces/indexes.ts index 3c1135daeb43..dc88a3a325d4 100644 --- a/sdk/search/search-documents/src/generated/service/operationsInterfaces/indexes.ts +++ b/sdk/search/search-documents/src/generated/service/operationsInterfaces/indexes.ts @@ -21,7 +21,7 @@ import { IndexesGetStatisticsResponse, AnalyzeRequest, IndexesAnalyzeOptionalParams, - IndexesAnalyzeResponse + IndexesAnalyzeResponse, } from "../models"; /** Interface representing a Indexes. */ @@ -33,7 +33,7 @@ export interface Indexes { */ create( index: SearchIndex, - options?: IndexesCreateOptionalParams + options?: IndexesCreateOptionalParams, ): Promise; /** * Lists all indexes available for a search service. @@ -49,7 +49,7 @@ export interface Indexes { createOrUpdate( indexName: string, index: SearchIndex, - options?: IndexesCreateOrUpdateOptionalParams + options?: IndexesCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a search index and all the documents it contains. This operation is permanent, with no @@ -60,7 +60,7 @@ export interface Indexes { */ delete( indexName: string, - options?: IndexesDeleteOptionalParams + options?: IndexesDeleteOptionalParams, ): Promise; /** * Retrieves an index definition. @@ -69,7 +69,7 @@ export interface Indexes { */ get( indexName: string, - options?: IndexesGetOptionalParams + options?: IndexesGetOptionalParams, ): Promise; /** * Returns statistics for the given index, including a document count and storage usage. @@ -78,7 +78,7 @@ export interface Indexes { */ getStatistics( indexName: string, - options?: IndexesGetStatisticsOptionalParams + options?: IndexesGetStatisticsOptionalParams, ): Promise; /** * Shows how an analyzer breaks text into tokens. @@ -89,6 +89,6 @@ export interface Indexes { analyze( indexName: string, request: AnalyzeRequest, - options?: IndexesAnalyzeOptionalParams + options?: IndexesAnalyzeOptionalParams, ): Promise; } diff --git a/sdk/search/search-documents/src/generated/service/operationsInterfaces/skillsets.ts b/sdk/search/search-documents/src/generated/service/operationsInterfaces/skillsets.ts index 70f61999d669..96aa1e923598 100644 --- a/sdk/search/search-documents/src/generated/service/operationsInterfaces/skillsets.ts +++ b/sdk/search/search-documents/src/generated/service/operationsInterfaces/skillsets.ts @@ -18,7 +18,7 @@ import { SkillsetsCreateOptionalParams, SkillsetsCreateResponse, SkillNames, - SkillsetsResetSkillsOptionalParams + SkillsetsResetSkillsOptionalParams, } from "../models"; /** Interface representing a Skillsets. */ @@ -32,7 +32,7 @@ export interface Skillsets { createOrUpdate( skillsetName: string, skillset: SearchIndexerSkillset, - options?: SkillsetsCreateOrUpdateOptionalParams + options?: SkillsetsCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a skillset in a search service. @@ -41,7 +41,7 @@ export interface Skillsets { */ delete( skillsetName: string, - options?: SkillsetsDeleteOptionalParams + options?: SkillsetsDeleteOptionalParams, ): Promise; /** * Retrieves a skillset in a search service. @@ -50,7 +50,7 @@ export interface Skillsets { */ get( skillsetName: string, - options?: SkillsetsGetOptionalParams + options?: SkillsetsGetOptionalParams, ): Promise; /** * List all skillsets in a search service. @@ -64,7 +64,7 @@ export interface Skillsets { */ create( skillset: SearchIndexerSkillset, - options?: SkillsetsCreateOptionalParams + options?: SkillsetsCreateOptionalParams, ): Promise; /** * Reset an existing skillset in a search service. @@ -75,6 +75,6 @@ export interface Skillsets { resetSkills( skillsetName: string, skillNames: SkillNames, - options?: SkillsetsResetSkillsOptionalParams + options?: SkillsetsResetSkillsOptionalParams, ): Promise; } diff --git a/sdk/search/search-documents/src/generated/service/operationsInterfaces/synonymMaps.ts b/sdk/search/search-documents/src/generated/service/operationsInterfaces/synonymMaps.ts index b9000aafb98b..b26e83a49d74 100644 --- a/sdk/search/search-documents/src/generated/service/operationsInterfaces/synonymMaps.ts +++ b/sdk/search/search-documents/src/generated/service/operationsInterfaces/synonymMaps.ts @@ -16,7 +16,7 @@ import { SynonymMapsListOptionalParams, SynonymMapsListResponse, SynonymMapsCreateOptionalParams, - SynonymMapsCreateResponse + SynonymMapsCreateResponse, } from "../models"; /** Interface representing a SynonymMaps. */ @@ -30,7 +30,7 @@ export interface SynonymMaps { createOrUpdate( synonymMapName: string, synonymMap: SynonymMap, - options?: SynonymMapsCreateOrUpdateOptionalParams + options?: SynonymMapsCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a synonym map. @@ -39,7 +39,7 @@ export interface SynonymMaps { */ delete( synonymMapName: string, - options?: SynonymMapsDeleteOptionalParams + options?: SynonymMapsDeleteOptionalParams, ): Promise; /** * Retrieves a synonym map definition. @@ -48,14 +48,14 @@ export interface SynonymMaps { */ get( synonymMapName: string, - options?: SynonymMapsGetOptionalParams + options?: SynonymMapsGetOptionalParams, ): Promise; /** * Lists all synonym maps available for a search service. * @param options The options parameters. */ list( - options?: SynonymMapsListOptionalParams + options?: SynonymMapsListOptionalParams, ): Promise; /** * Creates a new synonym map. @@ -64,6 +64,6 @@ export interface SynonymMaps { */ create( synonymMap: SynonymMap, - options?: SynonymMapsCreateOptionalParams + options?: SynonymMapsCreateOptionalParams, ): Promise; } diff --git a/sdk/search/search-documents/src/generated/service/searchServiceClient.ts b/sdk/search/search-documents/src/generated/service/searchServiceClient.ts index 9155188a8a7d..5aa9cded0b4a 100644 --- a/sdk/search/search-documents/src/generated/service/searchServiceClient.ts +++ b/sdk/search/search-documents/src/generated/service/searchServiceClient.ts @@ -8,13 +8,18 @@ import * as coreClient from "@azure/core-client"; import * as coreHttpCompat from "@azure/core-http-compat"; +import { + PipelineRequest, + PipelineResponse, + SendRequest, +} from "@azure/core-rest-pipeline"; import { DataSourcesImpl, IndexersImpl, SkillsetsImpl, SynonymMapsImpl, IndexesImpl, - AliasesImpl + AliasesImpl, } from "./operations"; import { DataSources, @@ -22,21 +27,21 @@ import { Skillsets, SynonymMaps, Indexes, - Aliases + Aliases, } from "./operationsInterfaces"; import * as Parameters from "./models/parameters"; import * as Mappers from "./models/mappers"; import { - ApiVersion20231001Preview, + ApiVersion20240301Preview, SearchServiceClientOptionalParams, GetServiceStatisticsOptionalParams, - GetServiceStatisticsResponse + GetServiceStatisticsResponse, } from "./models"; /** @internal */ export class SearchServiceClient extends coreHttpCompat.ExtendedServiceClient { endpoint: string; - apiVersion: ApiVersion20231001Preview; + apiVersion: ApiVersion20240301Preview; /** * Initializes a new instance of the SearchServiceClient class. @@ -46,8 +51,8 @@ export class SearchServiceClient extends coreHttpCompat.ExtendedServiceClient { */ constructor( endpoint: string, - apiVersion: ApiVersion20231001Preview, - options?: SearchServiceClientOptionalParams + apiVersion: ApiVersion20240301Preview, + options?: SearchServiceClientOptionalParams, ) { if (endpoint === undefined) { throw new Error("'endpoint' cannot be null"); @@ -61,10 +66,10 @@ export class SearchServiceClient extends coreHttpCompat.ExtendedServiceClient { options = {}; } const defaults: SearchServiceClientOptionalParams = { - requestContentType: "application/json; charset=utf-8" + requestContentType: "application/json; charset=utf-8", }; - const packageDetails = `azsdk-js-search-documents/12.0.0-beta.4`; + const packageDetails = `azsdk-js-search-documents/12.1.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -74,9 +79,9 @@ export class SearchServiceClient extends coreHttpCompat.ExtendedServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, - baseUri: options.endpoint ?? options.baseUri ?? "{endpoint}" + endpoint: options.endpoint ?? options.baseUri ?? "{endpoint}", }; super(optionsWithDefaults); // Parameter assignments @@ -88,6 +93,35 @@ export class SearchServiceClient extends coreHttpCompat.ExtendedServiceClient { this.synonymMaps = new SynonymMapsImpl(this); this.indexes = new IndexesImpl(this); this.aliases = new AliasesImpl(this); + this.addCustomApiVersionPolicy(apiVersion); + } + + /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ + private addCustomApiVersionPolicy(apiVersion?: string) { + if (!apiVersion) { + return; + } + const apiVersionPolicy = { + name: "CustomApiVersionPolicy", + async sendRequest( + request: PipelineRequest, + next: SendRequest, + ): Promise { + const param = request.url.split("?"); + if (param.length > 1) { + const newParams = param[1].split("&").map((item) => { + if (item.indexOf("api-version") > -1) { + return "api-version=" + apiVersion; + } else { + return item; + } + }); + request.url = param[0] + "?" + newParams.join("&"); + } + return next(request); + }, + }; + this.pipeline.addPolicy(apiVersionPolicy); } /** @@ -95,11 +129,11 @@ export class SearchServiceClient extends coreHttpCompat.ExtendedServiceClient { * @param options The options parameters. */ getServiceStatistics( - options?: GetServiceStatisticsOptionalParams + options?: GetServiceStatisticsOptionalParams, ): Promise { return this.sendOperationRequest( { options }, - getServiceStatisticsOperationSpec + getServiceStatisticsOperationSpec, ); } @@ -118,14 +152,14 @@ const getServiceStatisticsOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServiceStatistics + bodyMapper: Mappers.ServiceStatistics, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/search/search-documents/src/generatedStringLiteralUnions.ts b/sdk/search/search-documents/src/generatedStringLiteralUnions.ts new file mode 100644 index 000000000000..b41fce75648e --- /dev/null +++ b/sdk/search/search-documents/src/generatedStringLiteralUnions.ts @@ -0,0 +1,458 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +export type BlobIndexerDataToExtract = "storageMetadata" | "allMetadata" | "contentAndMetadata"; +export type BlobIndexerImageAction = + | "none" + | "generateNormalizedImages" + | "generateNormalizedImagePerPage"; +export type BlobIndexerParsingMode = + | "default" + | "text" + | "delimitedText" + | "json" + | "jsonArray" + | "jsonLines"; +export type BlobIndexerPDFTextRotationAlgorithm = "none" | "detectAngles"; +export type CustomEntityLookupSkillLanguage = + | "da" + | "de" + | "en" + | "es" + | "fi" + | "fr" + | "it" + | "ko" + | "pt"; +export type EntityCategory = + | "location" + | "organization" + | "person" + | "quantity" + | "datetime" + | "url" + | "email"; +export type EntityRecognitionSkillLanguage = + | "ar" + | "cs" + | "zh-Hans" + | "zh-Hant" + | "da" + | "nl" + | "en" + | "fi" + | "fr" + | "de" + | "el" + | "hu" + | "it" + | "ja" + | "ko" + | "no" + | "pl" + | "pt-PT" + | "pt-BR" + | "ru" + | "es" + | "sv" + | "tr"; +export type ImageAnalysisSkillLanguage = + | "ar" + | "az" + | "bg" + | "bs" + | "ca" + | "cs" + | "cy" + | "da" + | "de" + | "el" + | "en" + | "es" + | "et" + | "eu" + | "fi" + | "fr" + | "ga" + | "gl" + | "he" + | "hi" + | "hr" + | "hu" + | "id" + | "it" + | "ja" + | "kk" + | "ko" + | "lt" + | "lv" + | "mk" + | "ms" + | "nb" + | "nl" + | "pl" + | "prs" + | "pt-BR" + | "pt" + | "pt-PT" + | "ro" + | "ru" + | "sk" + | "sl" + | "sr-Cyrl" + | "sr-Latn" + | "sv" + | "th" + | "tr" + | "uk" + | "vi" + | "zh" + | "zh-Hans" + | "zh-Hant"; +export type ImageDetail = "celebrities" | "landmarks"; +export type IndexerExecutionEnvironment = "standard" | "private"; +export type KeyPhraseExtractionSkillLanguage = + | "da" + | "nl" + | "en" + | "fi" + | "fr" + | "de" + | "it" + | "ja" + | "ko" + | "no" + | "pl" + | "pt-PT" + | "pt-BR" + | "ru" + | "es" + | "sv"; +export type OcrSkillLanguage = + | "af" + | "sq" + | "anp" + | "ar" + | "ast" + | "awa" + | "az" + | "bfy" + | "eu" + | "be" + | "be-cyrl" + | "be-latn" + | "bho" + | "bi" + | "brx" + | "bs" + | "bra" + | "br" + | "bg" + | "bns" + | "bua" + | "ca" + | "ceb" + | "rab" + | "ch" + | "hne" + | "zh-Hans" + | "zh-Hant" + | "kw" + | "co" + | "crh" + | "hr" + | "cs" + | "da" + | "prs" + | "dhi" + | "doi" + | "nl" + | "en" + | "myv" + | "et" + | "fo" + | "fj" + | "fil" + | "fi" + | "fr" + | "fur" + | "gag" + | "gl" + | "de" + | "gil" + | "gon" + | "el" + | "kl" + | "gvr" + | "ht" + | "hlb" + | "hni" + | "bgc" + | "haw" + | "hi" + | "mww" + | "hoc" + | "hu" + | "is" + | "smn" + | "id" + | "ia" + | "iu" + | "ga" + | "it" + | "ja" + | "Jns" + | "jv" + | "kea" + | "kac" + | "xnr" + | "krc" + | "kaa-cyrl" + | "kaa" + | "csb" + | "kk-cyrl" + | "kk-latn" + | "klr" + | "kha" + | "quc" + | "ko" + | "kfq" + | "kpy" + | "kos" + | "kum" + | "ku-arab" + | "ku-latn" + | "kru" + | "ky" + | "lkt" + | "la" + | "lt" + | "dsb" + | "smj" + | "lb" + | "bfz" + | "ms" + | "mt" + | "kmj" + | "gv" + | "mi" + | "mr" + | "mn" + | "cnr-cyrl" + | "cnr-latn" + | "nap" + | "ne" + | "niu" + | "nog" + | "sme" + | "nb" + | "no" + | "oc" + | "os" + | "ps" + | "fa" + | "pl" + | "pt" + | "pa" + | "ksh" + | "ro" + | "rm" + | "ru" + | "sck" + | "sm" + | "sa" + | "sat" + | "sco" + | "gd" + | "sr" + | "sr-Cyrl" + | "sr-Latn" + | "xsr" + | "srx" + | "sms" + | "sk" + | "sl" + | "so" + | "sma" + | "es" + | "sw" + | "sv" + | "tg" + | "tt" + | "tet" + | "thf" + | "to" + | "tr" + | "tk" + | "tyv" + | "hsb" + | "ur" + | "ug" + | "uz-arab" + | "uz-cyrl" + | "uz" + | "vo" + | "wae" + | "cy" + | "fy" + | "yua" + | "za" + | "zu" + | "unk"; +export type PIIDetectionSkillMaskingMode = "none" | "replace"; +export type RegexFlags = + | "CANON_EQ" + | "CASE_INSENSITIVE" + | "COMMENTS" + | "DOTALL" + | "LITERAL" + | "MULTILINE" + | "UNICODE_CASE" + | "UNIX_LINES"; +export type SearchIndexerDataSourceType = + | "azuresql" + | "cosmosdb" + | "azureblob" + | "azuretable" + | "mysql" + | "adlsgen2"; +export type SemanticErrorMode = "partial" | "fail"; +export type SemanticErrorReason = "maxWaitExceeded" | "capacityOverloaded" | "transient"; +export type SemanticSearchResultsType = "baseResults" | "rerankedResults"; +export type SentimentSkillLanguage = + | "da" + | "nl" + | "en" + | "fi" + | "fr" + | "de" + | "el" + | "it" + | "no" + | "pl" + | "pt-PT" + | "ru" + | "es" + | "sv" + | "tr"; +export type SplitSkillLanguage = + | "am" + | "bs" + | "cs" + | "da" + | "de" + | "en" + | "es" + | "et" + | "fi" + | "fr" + | "he" + | "hi" + | "hr" + | "hu" + | "id" + | "is" + | "it" + | "ja" + | "ko" + | "lv" + | "nb" + | "nl" + | "pl" + | "pt" + | "pt-br" + | "ru" + | "sk" + | "sl" + | "sr" + | "sv" + | "tr" + | "ur" + | "zh"; +export type TextSplitMode = "pages" | "sentences"; +export type TextTranslationSkillLanguage = + | "af" + | "ar" + | "bn" + | "bs" + | "bg" + | "yue" + | "ca" + | "zh-Hans" + | "zh-Hant" + | "hr" + | "cs" + | "da" + | "nl" + | "en" + | "et" + | "fj" + | "fil" + | "fi" + | "fr" + | "de" + | "el" + | "ht" + | "he" + | "hi" + | "mww" + | "hu" + | "is" + | "id" + | "it" + | "ja" + | "sw" + | "tlh" + | "tlh-Latn" + | "tlh-Piqd" + | "ko" + | "lv" + | "lt" + | "mg" + | "ms" + | "mt" + | "nb" + | "fa" + | "pl" + | "pt" + | "pt-br" + | "pt-PT" + | "otq" + | "ro" + | "ru" + | "sm" + | "sr-Cyrl" + | "sr-Latn" + | "sk" + | "sl" + | "es" + | "sv" + | "ty" + | "ta" + | "te" + | "th" + | "to" + | "tr" + | "uk" + | "ur" + | "vi" + | "cy" + | "yua" + | "ga" + | "kn" + | "mi" + | "ml" + | "pa"; +export type VectorFilterMode = "postFilter" | "preFilter"; +export type VectorQueryKind = "vector" | "text"; +export type VectorSearchAlgorithmKind = "hnsw" | "exhaustiveKnn"; +export type VectorSearchAlgorithmMetric = "cosine" | "euclidean" | "dotProduct"; +export type VectorSearchVectorizerKind = "azureOpenAI" | "customWebApi"; +export type VisualFeature = + | "adult" + | "brands" + | "categories" + | "description" + | "faces" + | "objects" + | "tags"; diff --git a/sdk/search/search-documents/src/index.ts b/sdk/search/search-documents/src/index.ts index c01feec4ab04..b008c9568869 100644 --- a/sdk/search/search-documents/src/index.ts +++ b/sdk/search/search-documents/src/index.ts @@ -1,394 +1,416 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -export { SearchClient, SearchClientOptions } from "./searchClient"; +export { AzureKeyCredential } from "@azure/core-auth"; export { - DEFAULT_BATCH_SIZE, - DEFAULT_FLUSH_WINDOW, - DEFAULT_RETRY_COUNT, -} from "./searchIndexingBufferedSender"; + AutocompleteItem, + AutocompleteMode, + AutocompleteResult, + FacetResult, + IndexActionType, + IndexDocumentsResult, + IndexingResult, + KnownQueryDebugMode, + KnownQueryLanguage, + KnownQuerySpellerType, + KnownSemanticErrorMode, + KnownSemanticErrorReason, + KnownSemanticFieldState, + KnownSemanticSearchResultsType, + KnownSpeller, + KnownVectorQueryKind, + QueryAnswerResult, + QueryCaptionResult, + QueryDebugMode, + QueryLanguage, + QueryResultDocumentRerankerInput, + QuerySpellerType, + QueryType, + ScoringStatistics, + SearchMode, + SemanticFieldState, + Speller, +} from "./generated/data/models"; +export { + AnalyzedTokenInfo, + AnalyzeResult, + AsciiFoldingTokenFilter, + AzureActiveDirectoryApplicationCredentials, + AzureMachineLearningSkill, + BaseVectorSearchCompressionConfiguration, + BM25Similarity, + CharFilter as BaseCharFilter, + CharFilterName, + CjkBigramTokenFilter, + CjkBigramTokenFilterScripts, + ClassicSimilarity, + ClassicTokenizer, + CognitiveServicesAccount as BaseCognitiveServicesAccount, + CognitiveServicesAccountKey, + CommonGramTokenFilter, + ConditionalSkill, + CorsOptions, + CustomEntity, + CustomEntityAlias, + CustomNormalizer, + DataChangeDetectionPolicy as BaseDataChangeDetectionPolicy, + DataDeletionDetectionPolicy as BaseDataDeletionDetectionPolicy, + DefaultCognitiveServicesAccount, + DictionaryDecompounderTokenFilter, + DistanceScoringFunction, + DistanceScoringParameters, + DocumentExtractionSkill, + EdgeNGramTokenFilterSide, + EdgeNGramTokenizer, + ElisionTokenFilter, + EntityLinkingSkill, + EntityRecognitionSkillV3, + FieldMapping, + FieldMappingFunction, + FreshnessScoringFunction, + FreshnessScoringParameters, + HighWaterMarkChangeDetectionPolicy, + IndexerExecutionResult, + IndexerExecutionStatus, + IndexerExecutionStatusDetail, + IndexerState, + IndexerStatus, + IndexingMode, + IndexingSchedule, + IndexProjectionMode, + InputFieldMappingEntry, + KeepTokenFilter, + KeywordMarkerTokenFilter, + KnownBlobIndexerDataToExtract, + KnownBlobIndexerImageAction, + KnownBlobIndexerParsingMode, + KnownBlobIndexerPDFTextRotationAlgorithm, + KnownCharFilterName, + KnownCustomEntityLookupSkillLanguage, + KnownEntityCategory, + KnownEntityRecognitionSkillLanguage, + KnownImageAnalysisSkillLanguage, + KnownImageDetail, + KnownIndexerExecutionEnvironment, + KnownIndexerExecutionStatusDetail, + KnownIndexingMode, + KnownIndexProjectionMode, + KnownKeyPhraseExtractionSkillLanguage, + KnownLexicalAnalyzerName, + KnownLexicalNormalizerName, + KnownLexicalNormalizerName as KnownNormalizerNames, + KnownLexicalTokenizerName, + KnownLineEnding, + KnownOcrSkillLanguage, + KnownPIIDetectionSkillMaskingMode, + KnownRegexFlags, + KnownSearchIndexerDataSourceType, + KnownSentimentSkillLanguage, + KnownSplitSkillLanguage, + KnownTextSplitMode, + KnownTextTranslationSkillLanguage, + KnownTokenFilterName, + KnownVectorSearchCompressionKind, + KnownVectorSearchCompressionTargetDataType, + KnownVectorSearchVectorizerKind, + KnownVisualFeature, + LanguageDetectionSkill, + LengthTokenFilter, + LexicalAnalyzer as BaseLexicalAnalyzer, + LexicalAnalyzerName, + LexicalNormalizer as BaseLexicalNormalizer, + LexicalNormalizerName, + LexicalTokenizer as BaseLexicalTokenizer, + LexicalTokenizerName, + LimitTokenFilter, + LineEnding, + LuceneStandardAnalyzer, + MagnitudeScoringFunction, + MagnitudeScoringParameters, + MappingCharFilter, + MergeSkill, + MicrosoftLanguageStemmingTokenizer, + MicrosoftLanguageTokenizer, + MicrosoftStemmingTokenizerLanguage, + MicrosoftTokenizerLanguage, + NativeBlobSoftDeleteDeletionDetectionPolicy, + NGramTokenizer, + OutputFieldMappingEntry, + PathHierarchyTokenizerV2 as PathHierarchyTokenizer, + PatternCaptureTokenFilter, + PatternReplaceCharFilter, + PatternReplaceTokenFilter, + PhoneticEncoder, + PhoneticTokenFilter, + ResourceCounter, + ScalarQuantizationCompressionConfiguration, + ScalarQuantizationParameters, + ScoringFunction as BaseScoringFunction, + ScoringFunctionAggregation, + ScoringFunctionInterpolation, + SearchAlias, + SearchIndexerDataContainer, + SearchIndexerDataIdentity as BaseSearchIndexerDataIdentity, + SearchIndexerDataNoneIdentity, + SearchIndexerDataUserAssignedIdentity, + SearchIndexerError, + SearchIndexerIndexProjectionSelector, + SearchIndexerKnowledgeStoreBlobProjectionSelector, + SearchIndexerKnowledgeStoreFileProjectionSelector, + SearchIndexerKnowledgeStoreObjectProjectionSelector, + SearchIndexerKnowledgeStoreProjection, + SearchIndexerKnowledgeStoreProjectionSelector, + SearchIndexerKnowledgeStoreTableProjectionSelector, + SearchIndexerLimits, + SearchIndexerSkill as BaseSearchIndexerSkill, + SearchIndexerStatus, + SearchIndexerWarning, + SemanticConfiguration, + SemanticField, + SemanticPrioritizedFields, + SemanticSearch, + SentimentSkillV3, + ServiceCounters, + ServiceLimits, + ShaperSkill, + ShingleTokenFilter, + Similarity, + SnowballTokenFilter, + SnowballTokenFilterLanguage, + SoftDeleteColumnDeletionDetectionPolicy, + SqlIntegratedChangeTrackingPolicy, + StemmerOverrideTokenFilter, + StemmerTokenFilter, + StemmerTokenFilterLanguage, + StopAnalyzer, + StopwordsList, + StopwordsTokenFilter, + Suggester as SearchSuggester, + SynonymTokenFilter, + TagScoringFunction, + TagScoringParameters, + TextWeights, + TokenCharacterKind, + TokenFilter as BaseTokenFilter, + TokenFilterName, + TruncateTokenFilter, + UaxUrlEmailTokenizer, + UniqueTokenFilter, + VectorSearchCompressionKind, + VectorSearchCompressionTargetDataType, + VectorSearchProfile, + WordDelimiterTokenFilter, +} from "./generated/service/models"; +export { + BlobIndexerDataToExtract, + BlobIndexerImageAction, + BlobIndexerParsingMode, + BlobIndexerPDFTextRotationAlgorithm, + CustomEntityLookupSkillLanguage, + EntityCategory, + EntityRecognitionSkillLanguage, + ImageAnalysisSkillLanguage, + ImageDetail, + IndexerExecutionEnvironment, + KeyPhraseExtractionSkillLanguage, + OcrSkillLanguage, + PIIDetectionSkillMaskingMode, + RegexFlags, + SearchIndexerDataSourceType, + SemanticErrorMode, + SemanticErrorReason, + SemanticSearchResultsType, + SentimentSkillLanguage, + SplitSkillLanguage, + TextSplitMode, + TextTranslationSkillLanguage, + VectorFilterMode, + VectorQueryKind, + VectorSearchAlgorithmKind, + VectorSearchAlgorithmMetric, + VectorSearchVectorizerKind, + VisualFeature, +} from "./generatedStringLiteralUnions"; +export { default as GeographyPoint } from "./geographyPoint"; +export { IndexDocumentsBatch } from "./indexDocumentsBatch"; export { - AutocompleteRequest, AutocompleteOptions, + AutocompleteRequest, + BaseSearchRequestOptions, + BaseVectorQuery, CountDocumentsOptions, DeleteDocumentsOptions, + DocumentDebugInfo, ExcludedODataTypes, ExtractDocumentKey, + ExtractiveQueryAnswer, + ExtractiveQueryCaption, GetDocumentOptions, IndexDocumentsAction, - ListSearchResultsPageSettings, IndexDocumentsOptions, - SearchDocumentsResultBase, - SearchDocumentsResult, - SearchDocumentsPageResult, - SearchIterator, - SearchOptions, - SearchRequestOptions, - SearchRequest, - SearchResult, - SuggestDocumentsResult, - SuggestRequest, - SuggestResult, - SuggestOptions, + ListSearchResultsPageSettings, MergeDocumentsOptions, MergeOrUploadDocumentsOptions, NarrowedModel, - UploadDocumentsOptions, - SearchIndexingBufferedSenderOptions, + QueryAnswer, + QueryCaption, + QueryResultDocumentSemanticField, + SearchDocumentsPageResult, + SearchDocumentsResult, + SearchDocumentsResultBase, + SearchFieldArray, SearchIndexingBufferedSenderDeleteDocumentsOptions, SearchIndexingBufferedSenderFlushDocumentsOptions, SearchIndexingBufferedSenderMergeDocumentsOptions, SearchIndexingBufferedSenderMergeOrUploadDocumentsOptions, + SearchIndexingBufferedSenderOptions, SearchIndexingBufferedSenderUploadDocumentsOptions, + SearchIterator, + SearchOptions, SearchPick, - SearchFieldArray, + SearchRequestOptions, + SearchRequestQueryTypeOptions, + SearchResult, SelectArray, SelectFields, + SemanticDebugInfo, + SemanticSearchOptions, + SuggestDocumentsResult, SuggestNarrowedModel, + SuggestOptions, + SuggestRequest, + SuggestResult, UnionToIntersection, - SemanticPartialResponseReason, - SemanticPartialResponseType, - QueryDebugMode, - SemanticErrorHandlingMode, - SemanticFieldState, - AnswersOptions, - DocumentDebugInfo, - SemanticDebugInfo, - QueryResultDocumentSemanticField, - Answers, - VectorQuery, - BaseVectorQuery, - RawVectorQuery, + UploadDocumentsOptions, VectorizableTextQuery, - VectorQueryKind, - VectorFilterMode, + VectorizedQuery, + VectorQuery, + VectorSearchOptions, } from "./indexModels"; -export { SearchIndexingBufferedSender, IndexDocumentsClient } from "./searchIndexingBufferedSender"; -export { SearchIndexClient, SearchIndexClientOptions } from "./searchIndexClient"; +export { odata } from "./odata"; +export { KnownSearchAudience } from "./searchAudience"; +export { SearchClient, SearchClientOptions } from "./searchClient"; +export { SearchIndexClient, SearchIndexClientOptions } from "./searchIndexClient"; export { SearchIndexerClient, SearchIndexerClientOptions } from "./searchIndexerClient"; export { - SearchIndex, - LexicalAnalyzer, - TokenFilter, - LexicalTokenizer, + DEFAULT_BATCH_SIZE, + DEFAULT_FLUSH_WINDOW, + DEFAULT_RETRY_COUNT, + IndexDocumentsClient, + SearchIndexingBufferedSender, +} from "./searchIndexingBufferedSender"; +export { + AliasIterator, + AnalyzeRequest, + AnalyzeTextOptions, + AzureOpenAIEmbeddingSkill, + AzureOpenAIParameters, + AzureOpenAIVectorizer, + BaseVectorSearchAlgorithmConfiguration, + BaseVectorSearchVectorizer, CharFilter, - ListIndexesOptions, + CognitiveServicesAccount, + ComplexDataType, + ComplexField, + CreateAliasOptions, + CreateDataSourceConnectionOptions, + CreateIndexerOptions, CreateIndexOptions, + CreateOrUpdateAliasOptions, + CreateorUpdateDataSourceConnectionOptions, + CreateorUpdateIndexerOptions, CreateOrUpdateIndexOptions, CreateOrUpdateSkillsetOptions, CreateOrUpdateSynonymMapOptions, CreateSkillsetOptions, CreateSynonymMapOptions, + CustomAnalyzer, + CustomEntityLookupSkill, + CustomVectorizer, + CustomVectorizerParameters, + DataChangeDetectionPolicy, + DataDeletionDetectionPolicy, + DeleteAliasOptions, + DeleteDataSourceConnectionOptions, + DeleteIndexerOptions, + DeleteIndexOptions, DeleteSkillsetOptions, DeleteSynonymMapOptions, - GetSkillSetOptions, - GetSynonymMapsOptions, - ListSkillsetsOptions, - SearchIndexerSkillset, - ListSynonymMapsOptions, - DeleteIndexOptions, - AnalyzeTextOptions, + EdgeNGramTokenFilter, + EntityRecognitionSkill, + ExhaustiveKnnAlgorithmConfiguration, + ExhaustiveKnnParameters, + GetAliasOptions, + GetDataSourceConnectionOptions, + GetIndexerOptions, + GetIndexerStatusOptions, GetIndexOptions, GetIndexStatisticsOptions, + GetServiceStatisticsOptions, + GetSkillSetOptions, + GetSynonymMapsOptions, + HnswAlgorithmConfiguration, + HnswParameters, + ImageAnalysisSkill, + IndexingParameters, + IndexingParametersConfiguration, + IndexIterator, + IndexNameIterator, + KeyPhraseExtractionSkill, + KeywordTokenizer, KnownAnalyzerNames, KnownCharFilterNames, KnownTokenFilterNames, KnownTokenizerNames, - ScoringFunction, - ScoringProfile, - CustomAnalyzer, - PatternAnalyzer, - PatternTokenizer, - SearchField, - SimpleField, - ComplexField, - SearchFieldDataType, - ComplexDataType, - CognitiveServicesAccount, - SearchIndexerSkill, - SynonymMap, - ListIndexersOptions, - CreateIndexerOptions, - GetIndexerOptions, - CreateorUpdateIndexerOptions, - DeleteIndexerOptions, - GetIndexerStatusOptions, - ResetIndexerOptions, - RunIndexerOptions, - CreateDataSourceConnectionOptions, - CreateorUpdateDataSourceConnectionOptions, - DeleteDataSourceConnectionOptions, - GetDataSourceConnectionOptions, + LexicalAnalyzer, + LexicalNormalizer, + LexicalTokenizer, + ListAliasesOptions, ListDataSourceConnectionsOptions, - SearchIndexerDataSourceConnection, - DataChangeDetectionPolicy, - DataDeletionDetectionPolicy, - GetServiceStatisticsOptions, - IndexIterator, - IndexNameIterator, - SimilarityAlgorithm, - NGramTokenFilter, + ListIndexersOptions, + ListIndexesOptions, + ListSkillsetsOptions, + ListSynonymMapsOptions, LuceneStandardTokenizer, - EdgeNGramTokenFilter, - KeywordTokenizer, - AnalyzeRequest, - SearchResourceEncryptionKey, - SearchIndexStatistics, - SearchServiceStatistics, - SearchIndexer, - LexicalNormalizer, - SearchIndexerDataIdentity, + NGramTokenFilter, + OcrSkill, + PatternAnalyzer, + PatternTokenizer, + PIIDetectionSkill, ResetDocumentsOptions, + ResetIndexerOptions, ResetSkillsOptions, + RunIndexerOptions, + ScoringFunction, + ScoringProfile, + SearchField, + SearchFieldDataType, + SearchIndex, SearchIndexAlias, - CreateAliasOptions, - CreateOrUpdateAliasOptions, - DeleteAliasOptions, - GetAliasOptions, - ListAliasesOptions, - AliasIterator, - VectorSearchAlgorithmConfiguration, - VectorSearchAlgorithmMetric, - VectorSearch, + SearchIndexer, SearchIndexerCache, - SearchIndexerKnowledgeStore, - WebApiSkill, - HnswParameters, - HnswVectorSearchAlgorithmConfiguration, + SearchIndexerDataIdentity, + SearchIndexerDataSourceConnection, SearchIndexerIndexProjections, SearchIndexerIndexProjectionsParameters, - VectorSearchVectorizer, - ExhaustiveKnnParameters, - AzureOpenAIParameters, - CustomVectorizerParameters, - VectorSearchAlgorithmKind, - VectorSearchVectorizerKind, - AzureOpenAIEmbeddingSkill, - AzureOpenAIVectorizer, - CustomVectorizer, - ExhaustiveKnnVectorSearchAlgorithmConfiguration, - IndexProjectionMode, - BaseVectorSearchAlgorithmConfiguration, - BaseVectorSearchVectorizer, + SearchIndexerKnowledgeStore, SearchIndexerKnowledgeStoreParameters, -} from "./serviceModels"; -export { default as GeographyPoint } from "./geographyPoint"; -export { odata } from "./odata"; -export { IndexDocumentsBatch } from "./indexDocumentsBatch"; -export { - AutocompleteResult, - AutocompleteMode, - AutocompleteItem, - FacetResult, - IndexActionType, - IndexDocumentsResult, - IndexingResult, - QueryType, - SearchMode, - ScoringStatistics, - KnownAnswers, - QueryLanguage, - KnownQueryLanguage, - Speller, - KnownSpeller, - CaptionResult, - AnswerResult, - Captions, - QueryAnswerType, - QueryCaptionType, - QuerySpellerType, - KnownQuerySpellerType, - KnownQueryAnswerType, - KnownQueryCaptionType, - QueryResultDocumentRerankerInput, -} from "./generated/data/models"; -export { - RegexFlags, - KnownRegexFlags, - LuceneStandardAnalyzer, - StopAnalyzer, - MappingCharFilter, - PatternReplaceCharFilter, - CorsOptions, - AzureActiveDirectoryApplicationCredentials, - ScoringFunctionAggregation, - ScoringFunctionInterpolation, - DistanceScoringParameters, - DistanceScoringFunction, - FreshnessScoringParameters, - FreshnessScoringFunction, - MagnitudeScoringParameters, - MagnitudeScoringFunction, - TagScoringParameters, - TagScoringFunction, - TextWeights, - AsciiFoldingTokenFilter, - CjkBigramTokenFilterScripts, - CjkBigramTokenFilter, - CommonGramTokenFilter, - DictionaryDecompounderTokenFilter, - EdgeNGramTokenFilterSide, - ElisionTokenFilter, - KeepTokenFilter, - KeywordMarkerTokenFilter, - LengthTokenFilter, - LimitTokenFilter, - PatternCaptureTokenFilter, - PatternReplaceTokenFilter, - PhoneticEncoder, - PhoneticTokenFilter, - ShingleTokenFilter, - SnowballTokenFilterLanguage, - SnowballTokenFilter, - StemmerTokenFilterLanguage, - StemmerTokenFilter, - StemmerOverrideTokenFilter, - StopwordsList, - StopwordsTokenFilter, - SynonymTokenFilter, - TruncateTokenFilter, - UniqueTokenFilter, - WordDelimiterTokenFilter, - ClassicTokenizer, - TokenCharacterKind, - EdgeNGramTokenizer, - MicrosoftTokenizerLanguage, - MicrosoftLanguageTokenizer, - MicrosoftStemmingTokenizerLanguage, - MicrosoftLanguageStemmingTokenizer, - NGramTokenizer, - PathHierarchyTokenizerV2 as PathHierarchyTokenizer, - UaxUrlEmailTokenizer, - Suggester as SearchSuggester, - AnalyzeResult, - AnalyzedTokenInfo, - ConditionalSkill, - KeyPhraseExtractionSkill, - OcrSkill, - ImageAnalysisSkill, - LanguageDetectionSkill, - ShaperSkill, - MergeSkill, - EntityRecognitionSkill, + SearchIndexerSkill, + SearchIndexerSkillset, + SearchIndexStatistics, + SearchResourceEncryptionKey, + SearchServiceStatistics, SentimentSkill, - CustomEntityLookupSkill, - CustomEntityLookupSkillLanguage, - KnownCustomEntityLookupSkillLanguage, - DocumentExtractionSkill, - CustomEntity, - CustomEntityAlias, + SimilarityAlgorithm, + SimpleField, SplitSkill, - PIIDetectionSkill, - EntityRecognitionSkillV3, - EntityLinkingSkill, - SentimentSkillV3, + SynonymMap, TextTranslationSkill, - AzureMachineLearningSkill, - SentimentSkillLanguage, - KnownSentimentSkillLanguage, - SplitSkillLanguage, - KnownSplitSkillLanguage, - TextSplitMode, - KnownTextSplitMode, - TextTranslationSkillLanguage, - KnownTextTranslationSkillLanguage, - DefaultCognitiveServicesAccount, - CognitiveServicesAccountKey, - InputFieldMappingEntry, - OutputFieldMappingEntry, - EntityCategory, - KnownEntityCategory, - EntityRecognitionSkillLanguage, - KnownEntityRecognitionSkillLanguage, - ImageAnalysisSkillLanguage, - KnownImageAnalysisSkillLanguage, - ImageDetail, - KnownImageDetail, - VisualFeature, - KnownVisualFeature, - KeyPhraseExtractionSkillLanguage, - KnownKeyPhraseExtractionSkillLanguage, - OcrSkillLanguage, - KnownOcrSkillLanguage, - FieldMapping, - IndexingParameters, - IndexingSchedule, - FieldMappingFunction, - SearchIndexerStatus, - IndexerExecutionResult, - SearchIndexerLimits, - IndexerStatus, - SearchIndexerError, - IndexerExecutionStatus, - SearchIndexerWarning, - SearchIndexerDataContainer, - SearchIndexerDataSourceType, - KnownSearchIndexerDataSourceType, - SoftDeleteColumnDeletionDetectionPolicy, - SqlIntegratedChangeTrackingPolicy, - HighWaterMarkChangeDetectionPolicy, - SearchIndexerDataUserAssignedIdentity, - SearchIndexerDataNoneIdentity, - ServiceCounters, - ServiceLimits, - ResourceCounter, - LexicalAnalyzerName, - KnownLexicalAnalyzerName, - ClassicSimilarity, - BM25Similarity, - IndexingParametersConfiguration, - BlobIndexerDataToExtract, - KnownBlobIndexerDataToExtract, - IndexerExecutionEnvironment, - BlobIndexerImageAction, - KnownBlobIndexerImageAction, - BlobIndexerParsingMode, - KnownBlobIndexerParsingMode, - BlobIndexerPDFTextRotationAlgorithm, - KnownBlobIndexerPDFTextRotationAlgorithm, - TokenFilter as BaseTokenFilter, - Similarity, - LexicalTokenizer as BaseLexicalTokenizer, - CognitiveServicesAccount as BaseCognitiveServicesAccount, - SearchIndexerSkill as BaseSearchIndexerSkill, - ScoringFunction as BaseScoringFunction, - DataChangeDetectionPolicy as BaseDataChangeDetectionPolicy, - LexicalAnalyzer as BaseLexicalAnalyzer, - CharFilter as BaseCharFilter, - DataDeletionDetectionPolicy as BaseDataDeletionDetectionPolicy, - LexicalNormalizerName, - KnownLexicalNormalizerName, - CustomNormalizer, - TokenFilterName, - KnownTokenFilterName, - CharFilterName, - KnownCharFilterName, - LexicalNormalizer as BaseLexicalNormalizer, - SearchIndexerKnowledgeStoreProjection, - SearchIndexerKnowledgeStoreFileProjectionSelector, - SearchIndexerKnowledgeStoreBlobProjectionSelector, - SearchIndexerKnowledgeStoreProjectionSelector, - SearchIndexerKnowledgeStoreObjectProjectionSelector, - SearchIndexerKnowledgeStoreTableProjectionSelector, - PIIDetectionSkillMaskingMode, - KnownPIIDetectionSkillMaskingMode, - LineEnding, - KnownLineEnding, - SearchIndexerDataIdentity as BaseSearchIndexerDataIdentity, - IndexerState, - IndexerExecutionStatusDetail, - KnownIndexerExecutionStatusDetail, - IndexingMode, - KnownIndexingMode, - SemanticSettings, - SemanticConfiguration, - PrioritizedFields, - SemanticField, - SearchAlias, - NativeBlobSoftDeleteDeletionDetectionPolicy, - SearchIndexerIndexProjectionSelector, - VectorSearchProfile, -} from "./generated/service/models"; -export { AzureKeyCredential } from "@azure/core-auth"; + TokenFilter, + VectorSearch, + VectorSearchAlgorithmConfiguration, + VectorSearchCompressionConfiguration, + VectorSearchVectorizer, + WebApiSkill, +} from "./serviceModels"; export { createSynonymMapFromFile } from "./synonymMapHelper"; -export { KnownSearchAudience } from "./searchAudience"; diff --git a/sdk/search/search-documents/src/indexDocumentsBatch.ts b/sdk/search/search-documents/src/indexDocumentsBatch.ts index 28910ac384f3..1122943bb701 100644 --- a/sdk/search/search-documents/src/indexDocumentsBatch.ts +++ b/sdk/search/search-documents/src/indexDocumentsBatch.ts @@ -7,13 +7,13 @@ import { IndexDocumentsAction } from "./indexModels"; * Class used to perform batch operations * with multiple documents to the index. */ -export class IndexDocumentsBatch { +export class IndexDocumentsBatch { /** * The set of actions taken in this batch. */ - public readonly actions: IndexDocumentsAction[]; + public readonly actions: IndexDocumentsAction[]; - constructor(actions: IndexDocumentsAction[] = []) { + constructor(actions: IndexDocumentsAction[] = []) { this.actions = actions; } @@ -21,8 +21,8 @@ export class IndexDocumentsBatch { * Upload an array of documents to the index. * @param documents - The documents to upload. */ - public upload(documents: T[]): void { - const batch = documents.map>((doc) => { + public upload(documents: TModel[]): void { + const batch = documents.map>((doc) => { return { ...doc, __actionType: "upload", @@ -37,8 +37,8 @@ export class IndexDocumentsBatch { * For more details about how merging works, see https://docs.microsoft.com/en-us/rest/api/searchservice/AddUpdate-or-Delete-Documents * @param documents - The updated documents. */ - public merge(documents: T[]): void { - const batch = documents.map>((doc) => { + public merge(documents: TModel[]): void { + const batch = documents.map>((doc) => { return { ...doc, __actionType: "merge", @@ -53,8 +53,8 @@ export class IndexDocumentsBatch { * For more details about how merging works, see https://docs.microsoft.com/en-us/rest/api/searchservice/AddUpdate-or-Delete-Documents * @param documents - The new/updated documents. */ - public mergeOrUpload(documents: T[]): void { - const batch = documents.map>((doc) => { + public mergeOrUpload(documents: TModel[]): void { + const batch = documents.map>((doc) => { return { ...doc, __actionType: "mergeOrUpload", @@ -69,34 +69,34 @@ export class IndexDocumentsBatch { * @param keyName - The name of their primary key in the index. * @param keyValues - The primary key values of documents to delete. */ - public delete(keyName: keyof T, keyValues: string[]): void; + public delete(keyName: keyof TModel, keyValues: string[]): void; /** * Delete a set of documents. * @param documents - Documents to be deleted. */ - public delete(documents: T[]): void; + public delete(documents: TModel[]): void; - public delete(keyNameOrDocuments: keyof T | T[], keyValues?: string[]): void { + public delete(keyNameOrDocuments: keyof TModel | TModel[], keyValues?: string[]): void { if (keyValues) { - const keyName = keyNameOrDocuments as keyof T; + const keyName = keyNameOrDocuments as keyof TModel; - const batch = keyValues.map>((keyValue) => { + const batch = keyValues.map>((keyValue) => { return { __actionType: "delete", [keyName]: keyValue, - } as IndexDocumentsAction; + } as IndexDocumentsAction; }); this.actions.push(...batch); } else { - const documents = keyNameOrDocuments as T[]; + const documents = keyNameOrDocuments as TModel[]; - const batch = documents.map>((document) => { + const batch = documents.map>((document) => { return { __actionType: "delete", ...document, - } as IndexDocumentsAction; + } as IndexDocumentsAction; }); this.actions.push(...batch); diff --git a/sdk/search/search-documents/src/indexModels.ts b/sdk/search/search-documents/src/indexModels.ts index 713b4180c024..14907ea0110d 100644 --- a/sdk/search/search-documents/src/indexModels.ts +++ b/sdk/search/search-documents/src/indexModels.ts @@ -2,24 +2,29 @@ // Licensed under the MIT license. import { OperationOptions } from "@azure/core-client"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { - AnswerResult, AutocompleteMode, - CaptionResult, - Captions, FacetResult, IndexActionType, - QueryAnswerType, - QueryCaptionType, + QueryAnswerResult, + QueryCaptionResult, + QueryDebugMode, QueryLanguage, QueryResultDocumentRerankerInput, - QuerySpellerType, QueryType, ScoringStatistics, SearchMode, + SemanticFieldState, Speller, } from "./generated/data/models"; -import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + SemanticErrorMode, + SemanticErrorReason, + SemanticSearchResultsType, + VectorFilterMode, + VectorQueryKind, +} from "./generatedStringLiteralUnions"; import GeographyPoint from "./geographyPoint"; /** @@ -180,16 +185,9 @@ export type SearchIterator< ListSearchResultsPageSettings >; -export type VectorQueryKind = "vector" | "text"; - -/** - * Determines whether or not filters are applied before or after the vector search is performed. - */ -export type VectorFilterMode = "postFilter" | "preFilter"; - /** The query parameters for vector and hybrid search queries. */ export type VectorQuery = - | RawVectorQuery + | VectorizedQuery | VectorizableTextQuery; /** The query parameters for vector and hybrid search queries. */ @@ -200,16 +198,27 @@ export interface BaseVectorQuery { kNearestNeighborsCount?: number; /** Vector Fields of type Collection(Edm.Single) to be included in the vector searched. */ fields?: SearchFieldArray; - /** When true, triggers an exhaustive k-nearest neighbor search across all vectors within the vector index. Useful for scenarios where exact matches are critical, such as determining ground truth values. */ + /** + * When true, triggers an exhaustive k-nearest neighbor search across all vectors within the + * vector index. Useful for scenarios where exact matches are critical, such as determining ground + * truth values. + */ exhaustive?: boolean; + /** + * Oversampling factor. Minimum value is 1. It overrides the 'defaultOversampling' parameter + * configured in the index definition. It can be set only when 'rerankWithOriginalVectors' is + * true. This parameter is only permitted when a compression method is used on the underlying + * vector field. + */ + oversampling?: number; } /** The query parameters to use for vector search when a raw vector value is provided. */ -export interface RawVectorQuery extends BaseVectorQuery { +export interface VectorizedQuery extends BaseVectorQuery { /** Polymorphic discriminator, which specifies the different types this object can be */ kind: "vector"; /** The vector representation of a search query. */ - vector?: number[]; + vector: number[]; } /** The query parameters to use for vector search when a text value that needs to be vectorized is provided. */ @@ -223,179 +232,7 @@ export interface VectorizableTextQuery extends BaseVector /** * Parameters for filtering, sorting, faceting, paging, and other search query behaviors. */ -export interface SearchRequest { - /** - * A value that specifies whether to fetch the total count of results. Default is false. Setting - * this value to true may have a performance impact. Note that the count returned is an - * approximation. - */ - includeTotalCount?: boolean; - /** - * The list of facet expressions to apply to the search query. Each facet expression contains a - * field name, optionally followed by a comma-separated list of name:value pairs. - */ - facets?: string[]; - /** - * The OData $filter expression to apply to the search query. - */ - filter?: string; - /** - * The comma-separated list of field names to use for hit highlights. Only searchable fields can - * be used for hit highlighting. - */ - highlightFields?: string; - /** - * A string tag that is appended to hit highlights. Must be set with highlightPreTag. Default is - * </em>. - */ - highlightPostTag?: string; - /** - * A string tag that is prepended to hit highlights. Must be set with highlightPostTag. Default - * is <em>. - */ - highlightPreTag?: string; - /** - * A number between 0 and 100 indicating the percentage of the index that must be covered by a - * search query in order for the query to be reported as a success. This parameter can be useful - * for ensuring search availability even for services with only one replica. The default is 100. - */ - minimumCoverage?: number; - /** - * The comma-separated list of OData $orderby expressions by which to sort the results. Each - * expression can be either a field name or a call to either the geo.distance() or the - * search.score() functions. Each expression can be followed by asc to indicate ascending, or - * desc to indicate descending. The default is ascending order. Ties will be broken by the match - * scores of documents. If no $orderby is specified, the default sort order is descending by - * document match score. There can be at most 32 $orderby clauses. - */ - orderBy?: string; - /** - * A value that specifies the syntax of the search query. The default is 'simple'. Use 'full' if - * your query uses the Lucene query syntax. Possible values include: 'Simple', 'Full' - */ - queryType?: QueryType; - /** - * A value that specifies whether we want to calculate scoring statistics (such as document - * frequency) globally for more consistent scoring, or locally, for lower latency. The default is - * 'local'. Use 'global' to aggregate scoring statistics globally before scoring. Using global - * scoring statistics can increase latency of search queries. Possible values include: 'Local', - * 'Global' - */ - scoringStatistics?: ScoringStatistics; - /** - * A value to be used to create a sticky session, which can help getting more consistent results. - * As long as the same sessionId is used, a best-effort attempt will be made to target the same - * replica set. Be wary that reusing the same sessionID values repeatedly can interfere with the - * load balancing of the requests across replicas and adversely affect the performance of the - * search service. The value used as sessionId cannot start with a '_' character. - */ - sessionId?: string; - /** - * The list of parameter values to be used in scoring functions (for example, - * referencePointParameter) using the format name-values. For example, if the scoring profile - * defines a function with a parameter called 'mylocation' the parameter string would be - * "mylocation--122.2,44.8" (without the quotes). - */ - scoringParameters?: string[]; - /** - * The name of a scoring profile to evaluate match scores for matching documents in order to sort - * the results. - */ - scoringProfile?: string; - /** - * Allows setting a separate search query that will be solely used for semantic reranking, - * semantic captions and semantic answers. Is useful for scenarios where there is a need to use - * different queries between the base retrieval and ranking phase, and the L2 semantic phase. - */ - semanticQuery?: string; - /** - * The name of a semantic configuration that will be used when processing documents for queries of - * type semantic. - */ - semanticConfiguration?: string; - /** - * Allows the user to choose whether a semantic call should fail completely, or to return partial - * results (default). - */ - semanticErrorHandlingMode?: SemanticErrorHandlingMode; - /** - * Allows the user to set an upper bound on the amount of time it takes for semantic enrichment - * to finish processing before the request fails. - */ - semanticMaxWaitInMilliseconds?: number; - /** - * Enables a debugging tool that can be used to further explore your Semantic search results. - */ - debugMode?: QueryDebugMode; - /** - * A full-text search query expression; Use "*" or omit this parameter to match all documents. - */ - searchText?: string; - /** - * The comma-separated list of field names to which to scope the full-text search. When using - * fielded search (fieldName:searchExpression) in a full Lucene query, the field names of each - * fielded search expression take precedence over any field names listed in this parameter. - */ - searchFields?: string; - /** - * A value that specifies whether any or all of the search terms must be matched in order to - * count the document as a match. Possible values include: 'Any', 'All' - */ - searchMode?: SearchMode; - /** - * A value that specifies the language of the search query. - */ - queryLanguage?: QueryLanguage; - /** - * A value that specified the type of the speller to use to spell-correct individual search - * query terms. - */ - speller?: QuerySpellerType; - /** - * A value that specifies whether answers should be returned as part of the search response. - */ - answers?: QueryAnswerType; - /** - * The comma-separated list of fields to retrieve. If unspecified, all fields marked as - * retrievable in the schema are included. - */ - select?: string; - /** - * The number of search results to skip. This value cannot be greater than 100,000. If you need - * to scan documents in sequence, but cannot use skip due to this limitation, consider using - * orderby on a totally-ordered key and filter with a range query instead. - */ - skip?: number; - /** - * The number of search results to retrieve. This can be used in conjunction with $skip to - * implement client-side paging of search results. If results are truncated due to server-side - * paging, the response will include a continuation token that can be used to issue another - * Search request for the next page of results. - */ - top?: number; - /** - * A value that specifies whether captions should be returned as part of the search response. - */ - captions?: QueryCaptionType; - /** - * The comma-separated list of field names used for semantic search. - */ - semanticFields?: string; - /** - * The query parameters for vector, hybrid, and multi-vector search queries. - */ - vectorQueries?: VectorQuery[]; - /** - * Determines whether or not filters are applied before or after the vector search is performed. - * Default is 'preFilter'. - */ - vectorFilterMode?: VectorFilterMode; -} - -/** - * Parameters for filtering, sorting, faceting, paging, and other search query behaviors. - */ -export interface SearchRequestOptions< +export interface BaseSearchRequestOptions< TModel extends object, TFields extends SelectFields = SelectFields, > { @@ -461,31 +298,6 @@ export interface SearchRequestOptions< * the results. */ scoringProfile?: string; - /** - * Allows setting a separate search query that will be solely used for semantic reranking, - * semantic captions and semantic answers. Is useful for scenarios where there is a need to use - * different queries between the base retrieval and ranking phase, and the L2 semantic phase. - */ - semanticQuery?: string; - /** - * The name of a semantic configuration that will be used when processing documents for queries of - * type semantic. - */ - semanticConfiguration?: string; - /** - * Allows the user to choose whether a semantic call should fail completely, or to return - * partial results (default). - */ - semanticErrorHandlingMode?: SemanticErrorHandlingMode; - /** - * Allows the user to set an upper bound on the amount of time it takes for semantic enrichment to finish - * processing before the request fails. - */ - semanticMaxWaitInMilliseconds?: number; - /** - * Enables a debugging tool that can be used to further explore your search results. - */ - debugMode?: QueryDebugMode; /** * The comma-separated list of field names to which to scope the full-text search. When using * fielded search (fieldName:searchExpression) in a full Lucene query, the field names of each @@ -500,11 +312,6 @@ export interface SearchRequestOptions< * Improve search recall by spell-correcting individual search query terms. */ speller?: Speller; - /** - * This parameter is only valid if the query type is 'semantic'. If set, the query returns answers - * extracted from key passages in the highest ranked documents. - */ - answers?: Answers | AnswersOptions; /** * A value that specifies whether any or all of the search terms must be matched in order to * count the document as a match. Possible values include: 'any', 'all' @@ -543,27 +350,29 @@ export interface SearchRequestOptions< */ top?: number; /** - * This parameter is only valid if the query type is 'semantic'. If set, the query returns captions - * extracted from key passages in the highest ranked documents. When Captions is set to 'extractive', - * highlighting is enabled by default, and can be configured by appending the pipe character '|' - * followed by the 'highlight-true'/'highlight-false' option, such as 'extractive|highlight-true'. Defaults to 'None'. - */ - captions?: Captions; - /** - * The list of field names used for semantic search. - */ - semanticFields?: string[]; - /** - * The query parameters for vector and hybrid search queries. - */ - vectorQueries?: VectorQuery[]; - /** - * Determines whether or not filters are applied before or after the vector search is performed. - * Default is 'preFilter'. + * Defines options for vector search queries */ - vectorFilterMode?: VectorFilterMode; + vectorSearchOptions?: VectorSearchOptions; } +/** + * Parameters for filtering, sorting, faceting, paging, and other search query behaviors. + */ +export type SearchRequestOptions< + TModel extends object, + TFields extends SelectFields = SelectFields, +> = BaseSearchRequestOptions & SearchRequestQueryTypeOptions; + +export type SearchRequestQueryTypeOptions = + | { + queryType: "semantic"; + /** + * Defines options for semantic search queries + */ + semanticSearchOptions: SemanticSearchOptions; + } + | { queryType?: "simple" | "full" }; + /** * Contains a document found by a search query, plus associated metadata. */ @@ -591,7 +400,7 @@ export type SearchResult< * Captions are the most representative passages from the document relatively to the search query. They are often used as document summary. Captions are only returned for queries of type 'semantic'. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly captions?: CaptionResult[]; + readonly captions?: QueryCaptionResult[]; document: NarrowedModel; @@ -631,17 +440,17 @@ export interface SearchDocumentsResultBase { * not specified or set to 'none'. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly answers?: AnswerResult[]; + readonly answers?: QueryAnswerResult[]; /** * Reason that a partial response was returned for a semantic search request. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly semanticPartialResponseReason?: SemanticPartialResponseReason; + readonly semanticErrorReason?: SemanticErrorReason; /** * Type of partial response that was returned for a semantic search request. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly semanticPartialResponseType?: SemanticPartialResponseType; + readonly semanticSearchResultsType?: SemanticSearchResultsType; } /** @@ -830,13 +639,13 @@ export interface AutocompleteRequest { /** * Represents an index action that operates on a document. */ -export type IndexDocumentsAction = { +export type IndexDocumentsAction = { /** * The operation to perform on a document in an indexing batch. Possible values include: * 'upload', 'merge', 'mergeOrUpload', 'delete' */ __actionType: IndexActionType; -} & Partial; +} & Partial; // END manually modified generated interfaces @@ -1090,83 +899,98 @@ export interface SemanticDebugInfo { } /** - * This parameter is only valid if the query type is 'semantic'. If set, the query returns answers - * extracted from key passages in the highest ranked documents. The number of answers returned can - * be configured by appending the pipe character '|' followed by the 'count-\' option - * after the answers parameter value, such as 'extractive|count-3'. Default count is 1. The - * confidence threshold can be configured by appending the pipe character '|' followed by the - * 'threshold-\' option after the answers parameter value, such as - * 'extractive|threshold-0.9'. Default threshold is 0.7. + * Extracts answer candidates from the contents of the documents returned in response to a query + * expressed as a question in natural language. */ -export type Answers = string; +export interface ExtractiveQueryAnswer { + answerType: "extractive"; + /** + * The number of answers returned. Default count is 1 + */ + count?: number; + /** + * The confidence threshold. Default threshold is 0.7 + */ + threshold?: number; +} /** * A value that specifies whether answers should be returned as part of the search response. * This parameter is only valid if the query type is 'semantic'. If set to `extractive`, the query * returns answers extracted from key passages in the highest ranked documents. */ -export type AnswersOptions = - | { - /** - * Extracts answer candidates from the contents of the documents returned in response to a - * query expressed as a question in natural language. - */ - answers: "extractive"; - /** - * The number of answers returned. Default count is 1 - */ - count?: number; - /** - * The confidence threshold. Default threshold is 0.7 - */ - threshold?: number; - } - | { - /** - * Do not return answers for the query. - */ - answers: "none"; - }; - -/** - * maxWaitExceeded: If 'semanticMaxWaitInMilliseconds' was set and the semantic processing duration - * exceeded that value. Only the base results were returned. - * - * capacityOverloaded: The request was throttled. Only the base results were returned. - * - * transient: At least one step of the semantic process failed. - */ -export type SemanticPartialResponseReason = "maxWaitExceeded" | "capacityOverloaded" | "transient"; +export type QueryAnswer = ExtractiveQueryAnswer; -/** - * baseResults: Results without any semantic enrichment or reranking. - * - * rerankedResults: Results have been reranked with the reranker model and will include semantic - * captions. They will not include any answers, answers highlights or caption highlights. - */ -export type SemanticPartialResponseType = "baseResults" | "rerankedResults"; +/** Extracts captions from the matching documents that contain passages relevant to the search query. */ +export interface ExtractiveQueryCaption { + captionType: "extractive"; + highlight?: boolean; +} /** - * disabled: No query debugging information will be returned. - * - * semantic: Allows the user to further explore their Semantic search results. + * A value that specifies whether captions should be returned as part of the search response. + * This parameter is only valid if the query type is 'semantic'. If set, the query returns captions + * extracted from key passages in the highest ranked documents. When Captions is 'extractive', + * highlighting is enabled by default. Defaults to 'none'. */ -export type QueryDebugMode = "disabled" | "semantic"; +export type QueryCaption = ExtractiveQueryCaption; /** - * partial: If the semantic processing fails, partial results still return. The definition of - * partial results depends on what semantic step failed and what was the reason for failure. - * - * fail: If there is an exception during the semantic processing step, the query will fail and - * return the appropriate HTTP code depending on the error. + * Defines options for semantic search queries */ -export type SemanticErrorHandlingMode = "partial" | "fail"; +export interface SemanticSearchOptions { + /** + * The name of a semantic configuration that will be used when processing documents for queries of + * type semantic. + */ + configurationName?: string; + /** + * Allows the user to choose whether a semantic call should fail completely, or to return partial + * results (default). + */ + errorMode?: SemanticErrorMode; + /** + * Allows the user to set an upper bound on the amount of time it takes for semantic enrichment + * to finish processing before the request fails. + */ + maxWaitInMilliseconds?: number; + /** + * If set, the query returns answers extracted from key passages in the highest ranked documents. + */ + answers?: QueryAnswer; + /** + * If set, the query returns captions extracted from key passages in the highest ranked + * documents. When Captions is set to 'extractive', highlighting is enabled by default. Defaults + * to 'None'. + */ + captions?: QueryCaption; + /** + * Allows setting a separate search query that will be solely used for semantic reranking, + * semantic captions and semantic answers. Is useful for scenarios where there is a need to use + * different queries between the base retrieval and ranking phase, and the L2 semantic phase. + */ + semanticQuery?: string; + /** + * The list of field names used for semantic search. + */ + semanticFields?: string[]; + /** + * Enables a debugging tool that can be used to further explore your search results. + */ + debugMode?: QueryDebugMode; +} /** - * used: The field was fully used for semantic enrichment. - * - * unused: The field was not used for semantic enrichment. - * - * partial: The field was partially used for semantic enrichment. + * Defines options for vector search queries */ -export type SemanticFieldState = "used" | "unused" | "partial"; +export interface VectorSearchOptions { + /** + * The query parameters for vector, hybrid, and multi-vector search queries. + */ + queries: VectorQuery[]; + /** + * Determines whether or not filters are applied before or after the vector search is performed. + * Default is 'preFilter'. + */ + filterMode?: VectorFilterMode; +} diff --git a/sdk/search/search-documents/src/odataMetadataPolicy.ts b/sdk/search/search-documents/src/odataMetadataPolicy.ts index c3854981db6c..c6b873ee83c1 100644 --- a/sdk/search/search-documents/src/odataMetadataPolicy.ts +++ b/sdk/search/search-documents/src/odataMetadataPolicy.ts @@ -10,7 +10,7 @@ import { const AcceptHeaderName = "Accept"; -export type MetadataLevel = "none" | "minimal"; +type MetadataLevel = "none" | "minimal"; const odataMetadataPolicy = "OdataMetadataPolicy"; /** diff --git a/sdk/search/search-documents/src/searchClient.ts b/sdk/search/search-documents/src/searchClient.ts index 6a724e9c87a8..a10bbcf7a139 100644 --- a/sdk/search/search-documents/src/searchClient.ts +++ b/sdk/search/search-documents/src/searchClient.ts @@ -3,29 +3,26 @@ /// +import { isTokenCredential, KeyCredential, TokenCredential } from "@azure/core-auth"; import { InternalClientPipelineOptions } from "@azure/core-client"; -import { bearerTokenAuthenticationPolicy } from "@azure/core-rest-pipeline"; -import { SearchClient as GeneratedClient } from "./generated/data/searchClient"; -import { KeyCredential, TokenCredential, isTokenCredential } from "@azure/core-auth"; -import { createSearchApiKeyCredentialPolicy } from "./searchApiKeyCredentialPolicy"; -import { logger } from "./logger"; +import { ExtendedCommonClientOptions } from "@azure/core-http-compat"; +import { bearerTokenAuthenticationPolicy, Pipeline } from "@azure/core-rest-pipeline"; +import { decode, encode } from "./base64"; import { AutocompleteRequest, AutocompleteResult, IndexDocumentsResult, - KnownSemanticPartialResponseReason, - KnownSemanticPartialResponseType, - SuggestRequest, + QueryAnswerType as BaseAnswers, + QueryCaptionType as BaseCaptions, SearchRequest as GeneratedSearchRequest, - Answers, - QueryAnswerType, - VectorQueryUnion as GeneratedVectorQuery, - VectorQuery as GeneratedBaseVectorQuery, - RawVectorQuery as GeneratedRawVectorQuery, + SuggestRequest, VectorizableTextQuery as GeneratedVectorizableTextQuery, + VectorizedQuery as GeneratedVectorizedQuery, + VectorQueryUnion as GeneratedVectorQuery, } from "./generated/data/models"; -import { createSpan } from "./tracing"; -import { deserialize, serialize } from "./serialization"; +import { SearchClient as GeneratedClient } from "./generated/data/searchClient"; +import { SemanticErrorReason, SemanticSearchResultsType } from "./generatedStringLiteralUnions"; +import { IndexDocumentsBatch } from "./indexDocumentsBatch"; import { AutocompleteOptions, CountDocumentsOptions, @@ -35,32 +32,32 @@ import { ListSearchResultsPageSettings, MergeDocumentsOptions, MergeOrUploadDocumentsOptions, + NarrowedModel, + QueryAnswer, + QueryCaption, SearchDocumentsPageResult, SearchDocumentsResult, + SearchFieldArray, SearchIterator, SearchOptions, - SearchRequest, - SelectFields, SearchResult, + SelectArray, + SelectFields, SuggestDocumentsResult, SuggestOptions, UploadDocumentsOptions, - NarrowedModel, - SelectArray, - SearchFieldArray, - AnswersOptions, - BaseVectorQuery, - RawVectorQuery, VectorizableTextQuery, + VectorizedQuery, VectorQuery, } from "./indexModels"; +import { logger } from "./logger"; import { createOdataMetadataPolicy } from "./odataMetadataPolicy"; -import { IndexDocumentsBatch } from "./indexDocumentsBatch"; -import { decode, encode } from "./base64"; -import * as utils from "./serviceUtils"; -import { IndexDocumentsClient } from "./searchIndexingBufferedSender"; -import { ExtendedCommonClientOptions } from "@azure/core-http-compat"; +import { createSearchApiKeyCredentialPolicy } from "./searchApiKeyCredentialPolicy"; import { KnownSearchAudience } from "./searchAudience"; +import { IndexDocumentsClient } from "./searchIndexingBufferedSender"; +import { deserialize, serialize } from "./serialization"; +import * as utils from "./serviceUtils"; +import { createSpan } from "./tracing"; /** * Client options used to configure Cognitive Search API requests. @@ -116,12 +113,16 @@ export class SearchClient implements IndexDocumentsClient public readonly indexName: string; /** - * @internal * @hidden * A reference to the auto-generated SearchClient */ private readonly client: GeneratedClient; + /** + * A reference to the internal HTTP pipeline for use with raw requests + */ + public readonly pipeline: Pipeline; + /** * Creates an instance of SearchClient. * @@ -195,6 +196,7 @@ export class SearchClient implements IndexDocumentsClient this.serviceVersion, internalClientPipelineOptions, ); + this.pipeline = this.client.pipeline; if (isTokenCredential(credential)) { const scope: string = options.audience @@ -315,21 +317,32 @@ export class SearchClient implements IndexDocumentsClient private async searchDocuments>( searchText?: string, options: SearchOptions = {}, - nextPageParameters: SearchRequest = {}, + nextPageParameters: GeneratedSearchRequest = {}, ): Promise> { const { + includeTotalCount, + orderBy, searchFields, - semanticFields, select, - orderBy, - includeTotalCount, - vectorQueries, + vectorSearchOptions, + semanticSearchOptions, + ...restOptions + } = options as typeof options & { queryType: "semantic" }; + + const { + semanticFields, + configurationName, + errorMode, answers, - semanticErrorHandlingMode, + captions, debugMode, - ...restOptions - } = options; + ...restSemanticOptions + } = semanticSearchOptions ?? {}; + const { queries, filterMode, ...restVectorOptions } = vectorSearchOptions ?? {}; + const fullOptions: GeneratedSearchRequest = { + ...restSemanticOptions, + ...restVectorOptions, ...restOptions, ...nextPageParameters, searchFields: this.convertSearchFields(searchFields), @@ -337,10 +350,13 @@ export class SearchClient implements IndexDocumentsClient select: this.convertSelect(select) || "*", orderBy: this.convertOrderBy(orderBy), includeTotalResultCount: includeTotalCount, - vectorQueries: vectorQueries?.map(this.convertVectorQuery.bind(this)), - answers: this.convertAnswers(answers), - semanticErrorHandling: semanticErrorHandlingMode, + vectorQueries: queries?.map(this.convertVectorQuery.bind(this)), + answers: this.convertQueryAnswers(answers), + captions: this.convertQueryCaptions(captions), + semanticErrorHandling: errorMode, + semanticConfigurationName: configurationName, debug: debugMode, + vectorFilterMode: filterMode, }; const { span, updatedOptions } = createSpan("SearchClient-searchDocuments", options); @@ -358,10 +374,13 @@ export class SearchClient implements IndexDocumentsClient results, nextLink, nextPageParameters: resultNextPageParameters, - semanticPartialResponseReason, - semanticPartialResponseType, + semanticPartialResponseReason: semanticErrorReason, + semanticPartialResponseType: semanticSearchResultsType, ...restResult - } = result; + } = result as typeof result & { + semanticPartialResponseReason: SemanticErrorReason | undefined; + semanticPartialResponseType: SemanticSearchResultsType | undefined; + }; const modifiedResults = utils.generatedSearchResultToPublicSearchResult( results, @@ -370,16 +389,9 @@ export class SearchClient implements IndexDocumentsClient const converted: SearchDocumentsPageResult = { ...restResult, results: modifiedResults, - semanticPartialResponseReason: - semanticPartialResponseReason as `${KnownSemanticPartialResponseReason}`, - semanticPartialResponseType: - semanticPartialResponseType as `${KnownSemanticPartialResponseType}`, - continuationToken: this.encodeContinuationToken( - nextLink, - resultNextPageParameters - ? utils.generatedSearchRequestToPublicSearchRequest(resultNextPageParameters) - : resultNextPageParameters, - ), + semanticErrorReason, + semanticSearchResultsType, + continuationToken: this.encodeContinuationToken(nextLink, resultNextPageParameters), }; return deserialize>(converted); @@ -605,7 +617,7 @@ export class SearchClient implements IndexDocumentsClient try { const result = await this.client.documents.get(key, { ...updatedOptions, - selectedFields: updatedOptions.selectedFields as string[], + selectedFields: updatedOptions.selectedFields as string[] | undefined, }); return deserialize>(result); } catch (e: any) { @@ -798,7 +810,7 @@ export class SearchClient implements IndexDocumentsClient private encodeContinuationToken( nextLink: string | undefined, - nextPageParameters: SearchRequest | undefined, + nextPageParameters: GeneratedSearchRequest | undefined, ): string | undefined { if (!nextLink || !nextPageParameters) { return undefined; @@ -813,7 +825,7 @@ export class SearchClient implements IndexDocumentsClient private decodeContinuationToken( token?: string, - ): { nextPageParameters: SearchRequest; nextLink: string } | undefined { + ): { nextPageParameters: GeneratedSearchRequest; nextLink: string } | undefined { if (!token) { return undefined; } @@ -824,7 +836,7 @@ export class SearchClient implements IndexDocumentsClient const result: { apiVersion: string; nextLink: string; - nextPageParameters: SearchRequest; + nextPageParameters: GeneratedSearchRequest; } = JSON.parse(decodedToken); if (result.apiVersion !== this.apiVersion) { @@ -877,16 +889,13 @@ export class SearchClient implements IndexDocumentsClient return orderBy; } - private convertAnswers(answers?: Answers | AnswersOptions): QueryAnswerType | undefined { - if (!answers || typeof answers === "string") { + private convertQueryAnswers(answers?: QueryAnswer): BaseAnswers | undefined { + if (!answers) { return answers; } - if (answers.answers === "none") { - return answers.answers; - } const config = []; - const { answers: output, count, threshold } = answers; + const { answerType: output, count, threshold } = answers; if (count) { config.push(`count-${count}`); @@ -903,12 +912,30 @@ export class SearchClient implements IndexDocumentsClient return output; } + private convertQueryCaptions(captions?: QueryCaption): BaseCaptions | undefined { + if (!captions) { + return captions; + } + + const config = []; + const { captionType: output, highlight } = captions; + + if (highlight !== undefined) { + config.push(`highlight-${highlight}`); + } + + if (config.length) { + return output + `|${config.join(",")}`; + } + + return output; + } + private convertVectorQuery(): undefined; - private convertVectorQuery(vectorQuery: RawVectorQuery): GeneratedRawVectorQuery; + private convertVectorQuery(vectorQuery: VectorizedQuery): GeneratedVectorizedQuery; private convertVectorQuery( vectorQuery: VectorizableTextQuery, ): GeneratedVectorizableTextQuery; - private convertVectorQuery(vectorQuery: BaseVectorQuery): GeneratedBaseVectorQuery; private convertVectorQuery(vectorQuery: VectorQuery): GeneratedVectorQuery; private convertVectorQuery(vectorQuery?: VectorQuery): GeneratedVectorQuery | undefined { if (!vectorQuery) { diff --git a/sdk/search/search-documents/src/searchIndexClient.ts b/sdk/search/search-documents/src/searchIndexClient.ts index 4b19a6793b25..229c672a65f0 100644 --- a/sdk/search/search-documents/src/searchIndexClient.ts +++ b/sdk/search/search-documents/src/searchIndexClient.ts @@ -3,13 +3,17 @@ /// -import { KeyCredential, TokenCredential, isTokenCredential } from "@azure/core-auth"; +import { isTokenCredential, KeyCredential, TokenCredential } from "@azure/core-auth"; import { InternalClientPipelineOptions } from "@azure/core-client"; -import { bearerTokenAuthenticationPolicy } from "@azure/core-rest-pipeline"; +import { ExtendedCommonClientOptions } from "@azure/core-http-compat"; +import { bearerTokenAuthenticationPolicy, Pipeline } from "@azure/core-rest-pipeline"; import { AnalyzeResult } from "./generated/service/models"; import { SearchServiceClient as GeneratedClient } from "./generated/service/searchServiceClient"; import { logger } from "./logger"; +import { createOdataMetadataPolicy } from "./odataMetadataPolicy"; import { createSearchApiKeyCredentialPolicy } from "./searchApiKeyCredentialPolicy"; +import { KnownSearchAudience } from "./searchAudience"; +import { SearchClient, SearchClientOptions as GetSearchClientOptions } from "./searchClient"; import { AliasIterator, AnalyzeTextOptions, @@ -40,10 +44,6 @@ import { } from "./serviceModels"; import * as utils from "./serviceUtils"; import { createSpan } from "./tracing"; -import { createOdataMetadataPolicy } from "./odataMetadataPolicy"; -import { SearchClientOptions as GetSearchClientOptions, SearchClient } from "./searchClient"; -import { ExtendedCommonClientOptions } from "@azure/core-http-compat"; -import { KnownSearchAudience } from "./searchAudience"; /** * Client options used to configure Cognitive Search API requests. @@ -91,12 +91,16 @@ export class SearchIndexClient { public readonly endpoint: string; /** - * @internal * @hidden * A reference to the auto-generated SearchServiceClient */ private readonly client: GeneratedClient; + /** + * A reference to the internal HTTP pipeline for use with raw requests + */ + public readonly pipeline: Pipeline; + /** * Used to authenticate requests to the service. */ @@ -158,6 +162,7 @@ export class SearchIndexClient { this.serviceVersion, internalClientPipelineOptions, ); + this.pipeline = this.client.pipeline; if (isTokenCredential(credential)) { const scope: string = this.options.audience @@ -732,7 +737,15 @@ export class SearchIndexClient { * @param options - Additional arguments */ public async analyzeText(indexName: string, options: AnalyzeTextOptions): Promise { - const { abortSignal, requestOptions, tracingOptions, ...restOptions } = options; + const { + abortSignal, + requestOptions, + tracingOptions, + analyzerName: analyzer, + tokenizerName: tokenizer, + ...restOptions + } = options; + const operationOptions = { abortSignal, requestOptions, @@ -740,15 +753,11 @@ export class SearchIndexClient { }; const { span, updatedOptions } = createSpan("SearchIndexClient-analyzeText", operationOptions); + try { const result = await this.client.indexes.analyze( indexName, - { - ...restOptions, - analyzer: restOptions.analyzerName, - tokenizer: restOptions.tokenizerName, - normalizer: restOptions.normalizerName, - }, + { ...restOptions, analyzer, tokenizer }, updatedOptions, ); return result; diff --git a/sdk/search/search-documents/src/searchIndexerClient.ts b/sdk/search/search-documents/src/searchIndexerClient.ts index ecd8a5d2c641..12cae27c57f0 100644 --- a/sdk/search/search-documents/src/searchIndexerClient.ts +++ b/sdk/search/search-documents/src/searchIndexerClient.ts @@ -1,20 +1,23 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { KeyCredential, TokenCredential, isTokenCredential } from "@azure/core-auth"; +import { isTokenCredential, KeyCredential, TokenCredential } from "@azure/core-auth"; import { InternalClientPipelineOptions } from "@azure/core-client"; -import { bearerTokenAuthenticationPolicy } from "@azure/core-rest-pipeline"; +import { ExtendedCommonClientOptions } from "@azure/core-http-compat"; +import { bearerTokenAuthenticationPolicy, Pipeline } from "@azure/core-rest-pipeline"; import { SearchIndexerStatus } from "./generated/service/models"; import { SearchServiceClient as GeneratedClient } from "./generated/service/searchServiceClient"; import { logger } from "./logger"; +import { createOdataMetadataPolicy } from "./odataMetadataPolicy"; import { createSearchApiKeyCredentialPolicy } from "./searchApiKeyCredentialPolicy"; +import { KnownSearchAudience } from "./searchAudience"; import { CreateDataSourceConnectionOptions, CreateIndexerOptions, - CreateOrUpdateSkillsetOptions, - CreateSkillsetOptions, CreateorUpdateDataSourceConnectionOptions, CreateorUpdateIndexerOptions, + CreateOrUpdateSkillsetOptions, + CreateSkillsetOptions, DeleteDataSourceConnectionOptions, DeleteIndexerOptions, DeleteSkillsetOptions, @@ -35,9 +38,6 @@ import { } from "./serviceModels"; import * as utils from "./serviceUtils"; import { createSpan } from "./tracing"; -import { createOdataMetadataPolicy } from "./odataMetadataPolicy"; -import { ExtendedCommonClientOptions } from "@azure/core-http-compat"; -import { KnownSearchAudience } from "./searchAudience"; /** * Client options used to configure Cognitive Search API requests. @@ -85,12 +85,16 @@ export class SearchIndexerClient { public readonly endpoint: string; /** - * @internal * @hidden * A reference to the auto-generated SearchServiceClient */ private readonly client: GeneratedClient; + /** + * A reference to the internal HTTP pipeline for use with raw requests + */ + public readonly pipeline: Pipeline; + /** * Creates an instance of SearchIndexerClient. * @@ -140,6 +144,7 @@ export class SearchIndexerClient { this.serviceVersion, internalClientPipelineOptions, ); + this.pipeline = this.client.pipeline; if (isTokenCredential(credential)) { const scope: string = options.audience @@ -469,17 +474,17 @@ export class SearchIndexerClient { "SearchIndexerClient-createOrUpdateIndexer", options, ); + + const { onlyIfUnchanged, ...restOptions } = updatedOptions; try { - const etag = options.onlyIfUnchanged ? indexer.etag : undefined; + const etag = onlyIfUnchanged ? indexer.etag : undefined; const result = await this.client.indexers.createOrUpdate( indexer.name, utils.publicSearchIndexerToGeneratedSearchIndexer(indexer), { - ...updatedOptions, + ...restOptions, ifMatch: etag, - skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache, - disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection, }, ); return utils.generatedSearchIndexerToPublicSearchIndexer(result); @@ -516,7 +521,6 @@ export class SearchIndexerClient { { ...updatedOptions, ifMatch: etag, - skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache, }, ); return utils.generatedDataSourceToPublicDataSource(result); @@ -553,8 +557,6 @@ export class SearchIndexerClient { { ...updatedOptions, ifMatch: etag, - skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache, - disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection, }, ); diff --git a/sdk/search/search-documents/src/searchIndexingBufferedSender.ts b/sdk/search/search-documents/src/searchIndexingBufferedSender.ts index 87f36a355085..9be346a46b09 100644 --- a/sdk/search/search-documents/src/searchIndexingBufferedSender.ts +++ b/sdk/search/search-documents/src/searchIndexingBufferedSender.ts @@ -1,6 +1,10 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. +import { OperationOptions } from "@azure/core-client"; +import { RestError } from "@azure/core-rest-pipeline"; +import EventEmitter from "events"; +import { IndexDocumentsResult } from "./generated/data/models"; import { IndexDocumentsBatch } from "./indexDocumentsBatch"; import { IndexDocumentsAction, @@ -12,18 +16,13 @@ import { SearchIndexingBufferedSenderOptions, SearchIndexingBufferedSenderUploadDocumentsOptions, } from "./indexModels"; -import { IndexDocumentsResult } from "./generated/data/models"; -import { OperationOptions } from "@azure/core-client"; -import EventEmitter from "events"; +import { delay, getRandomIntegerInclusive } from "./serviceUtils"; import { createSpan } from "./tracing"; -import { delay } from "./serviceUtils"; -import { getRandomIntegerInclusive } from "./serviceUtils"; -import { RestError } from "@azure/core-rest-pipeline"; /** * Index Documents Client */ -export interface IndexDocumentsClient { +export interface IndexDocumentsClient { /** * Perform a set of index modifications (upload, merge, mergeOrUpload, delete) * for the given set of documents. @@ -32,7 +31,7 @@ export interface IndexDocumentsClient { * @param options - Additional options. */ indexDocuments( - batch: IndexDocumentsBatch, + batch: IndexDocumentsBatch, options: IndexDocumentsOptions, ): Promise; } @@ -49,14 +48,10 @@ export const DEFAULT_FLUSH_WINDOW: number = 60000; * Default number of times to retry. */ export const DEFAULT_RETRY_COUNT: number = 3; -/** - * Default retry delay. - */ -export const DEFAULT_RETRY_DELAY: number = 800; /** * Default Max Delay between retries. */ -export const DEFAULT_MAX_RETRY_DELAY: number = 60000; +const DEFAULT_MAX_RETRY_DELAY: number = 60000; /** * Class used to perform buffered operations against a search index, diff --git a/sdk/search/search-documents/src/serviceModels.ts b/sdk/search/search-documents/src/serviceModels.ts index 4605d13741e0..853c7569afd9 100644 --- a/sdk/search/search-documents/src/serviceModels.ts +++ b/sdk/search/search-documents/src/serviceModels.ts @@ -6,6 +6,7 @@ import { AsciiFoldingTokenFilter, AzureMachineLearningSkill, BM25Similarity, + CharFilterName, CjkBigramTokenFilter, ClassicSimilarity, ClassicTokenizer, @@ -13,7 +14,7 @@ import { CommonGramTokenFilter, ConditionalSkill, CorsOptions, - CustomEntityLookupSkill, + CustomEntity, CustomNormalizer, DefaultCognitiveServicesAccount, DictionaryDecompounderTokenFilter, @@ -23,21 +24,19 @@ import { EdgeNGramTokenizer, ElisionTokenFilter, EntityLinkingSkill, - EntityRecognitionSkill, EntityRecognitionSkillV3, FieldMapping, FreshnessScoringFunction, HighWaterMarkChangeDetectionPolicy, - ImageAnalysisSkill, - IndexingParameters, IndexingSchedule, + IndexProjectionMode, KeepTokenFilter, - KeyPhraseExtractionSkill, KeywordMarkerTokenFilter, LanguageDetectionSkill, LengthTokenFilter, LexicalAnalyzerName, LexicalNormalizerName, + LexicalTokenizerName, LimitTokenFilter, LuceneStandardAnalyzer, MagnitudeScoringFunction, @@ -45,25 +44,23 @@ import { MergeSkill, MicrosoftLanguageStemmingTokenizer, MicrosoftLanguageTokenizer, + NativeBlobSoftDeleteDeletionDetectionPolicy, NGramTokenizer, - OcrSkill, - PIIDetectionSkill, PathHierarchyTokenizerV2 as PathHierarchyTokenizer, PatternCaptureTokenFilter, PatternReplaceCharFilter, PatternReplaceTokenFilter, PhoneticTokenFilter, - RegexFlags, + ScalarQuantizationCompressionConfiguration, ScoringFunctionAggregation, SearchAlias, SearchIndexerDataContainer, SearchIndexerDataNoneIdentity, - SearchIndexerDataSourceType, SearchIndexerDataUserAssignedIdentity, - Suggester as SearchSuggester, + SearchIndexerIndexProjectionSelector, + SearchIndexerKnowledgeStoreProjection, SearchIndexerSkill as BaseSearchIndexerSkill, - SemanticSettings, - SentimentSkill, + SemanticSearch, SentimentSkillV3, ServiceCounters, ServiceLimits, @@ -71,25 +68,47 @@ import { ShingleTokenFilter, SnowballTokenFilter, SoftDeleteColumnDeletionDetectionPolicy, - SplitSkill, SqlIntegratedChangeTrackingPolicy, StemmerOverrideTokenFilter, StemmerTokenFilter, StopAnalyzer, StopwordsTokenFilter, + Suggester as SearchSuggester, SynonymTokenFilter, TagScoringFunction, - TextTranslationSkill, TextWeights, + TokenFilterName, TruncateTokenFilter, UaxUrlEmailTokenizer, UniqueTokenFilter, - WordDelimiterTokenFilter, - SearchIndexerKnowledgeStoreProjection, - SearchIndexerIndexProjectionSelector, - NativeBlobSoftDeleteDeletionDetectionPolicy, VectorSearchProfile, + WordDelimiterTokenFilter, } from "./generated/service/models"; +import { + BlobIndexerDataToExtract, + BlobIndexerImageAction, + BlobIndexerParsingMode, + BlobIndexerPDFTextRotationAlgorithm, + CustomEntityLookupSkillLanguage, + EntityCategory, + EntityRecognitionSkillLanguage, + ImageAnalysisSkillLanguage, + ImageDetail, + IndexerExecutionEnvironment, + KeyPhraseExtractionSkillLanguage, + OcrSkillLanguage, + PIIDetectionSkillMaskingMode, + RegexFlags, + SearchIndexerDataSourceType, + SentimentSkillLanguage, + SplitSkillLanguage, + TextSplitMode, + TextTranslationSkillLanguage, + VectorSearchAlgorithmKind, + VectorSearchAlgorithmMetric, + VectorSearchVectorizerKind, + VisualFeature, +} from "./generatedStringLiteralUnions"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; @@ -167,7 +186,7 @@ export interface SearchIndexStatistics { * The amount of memory in bytes consumed by vectors in the index. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly vectorIndexSize?: number; + readonly vectorIndexSize: number; } /** @@ -424,31 +443,32 @@ export interface AnalyzeRequest { /** * The name of the analyzer to use to break the given text. If this parameter is not specified, * you must specify a tokenizer instead. The tokenizer and analyzer parameters are mutually - * exclusive. KnownAnalyzerNames is an enum containing known values. + * exclusive. {@link KnownAnalyzerNames} is an enum containing built-in analyzer names. * NOTE: Either analyzerName or tokenizerName is required in an AnalyzeRequest. */ - analyzerName?: string; + analyzerName?: LexicalAnalyzerName; /** * The name of the tokenizer to use to break the given text. If this parameter is not specified, * you must specify an analyzer instead. The tokenizer and analyzer parameters are mutually - * exclusive. KnownTokenizerNames is an enum containing known values. + * exclusive. {@link KnownTokenizerNames} is an enum containing built-in tokenizer names. * NOTE: Either analyzerName or tokenizerName is required in an AnalyzeRequest. */ - tokenizerName?: string; + tokenizerName?: LexicalTokenizerName; /** - * The name of the normalizer to use to normalize the given text. + * The name of the normalizer to use to normalize the given text. {@link KnownNormalizerNames} is + * an enum containing built-in analyzer names. */ normalizerName?: LexicalNormalizerName; /** * An optional list of token filters to use when breaking the given text. This parameter can only * be set when using the tokenizer parameter. */ - tokenFilters?: string[]; + tokenFilters?: TokenFilterName[]; /** * An optional list of character filters to use when breaking the given text. This parameter can * only be set when using the tokenizer parameter. */ - charFilters?: string[]; + charFilters?: CharFilterName[]; } /** @@ -515,21 +535,21 @@ export interface CustomAnalyzer { name: string; /** * The name of the tokenizer to use to divide continuous text into a sequence of tokens, such as - * breaking a sentence into words. KnownTokenizerNames is an enum containing known values. + * breaking a sentence into words. {@link KnownTokenizerNames} is an enum containing built-in tokenizer names. */ - tokenizerName: string; + tokenizerName: LexicalTokenizerName; /** * A list of token filters used to filter out or modify the tokens generated by a tokenizer. For * example, you can specify a lowercase filter that converts all characters to lowercase. The * filters are run in the order in which they are listed. */ - tokenFilters?: string[]; + tokenFilters?: TokenFilterName[]; /** * A list of character filters used to prepare input text before it is processed by the * tokenizer. For instance, they can replace certain characters or symbols. The filters are run * in the order in which they are listed. */ - charFilters?: string[]; + charFilters?: CharFilterName[]; } /** @@ -596,26 +616,26 @@ export interface WebApiSkill extends BaseSearchIndexerSkill { * Contains the possible cases for Skill. */ export type SearchIndexerSkill = + | AzureMachineLearningSkill + | AzureOpenAIEmbeddingSkill | ConditionalSkill - | KeyPhraseExtractionSkill - | OcrSkill + | CustomEntityLookupSkill + | DocumentExtractionSkill + | EntityLinkingSkill + | EntityRecognitionSkill + | EntityRecognitionSkillV3 | ImageAnalysisSkill + | KeyPhraseExtractionSkill | LanguageDetectionSkill - | ShaperSkill | MergeSkill - | EntityRecognitionSkill - | SentimentSkill - | SplitSkill + | OcrSkill | PIIDetectionSkill - | EntityRecognitionSkillV3 - | EntityLinkingSkill + | SentimentSkill | SentimentSkillV3 - | CustomEntityLookupSkill + | ShaperSkill + | SplitSkill | TextTranslationSkill - | DocumentExtractionSkill - | WebApiSkill - | AzureMachineLearningSkill - | AzureOpenAIEmbeddingSkill; + | WebApiSkill; /** * Contains the possible cases for CognitiveServicesAccount. @@ -856,7 +876,8 @@ export type ScoringFunction = * Possible values include: 'Edm.String', 'Edm.Int32', 'Edm.Int64', 'Edm.Double', 'Edm.Boolean', * 'Edm.DateTimeOffset', 'Edm.GeographyPoint', 'Collection(Edm.String)', 'Collection(Edm.Int32)', * 'Collection(Edm.Int64)', 'Collection(Edm.Double)', 'Collection(Edm.Boolean)', - * 'Collection(Edm.DateTimeOffset)', 'Collection(Edm.GeographyPoint)', 'Collection(Edm.Single)' + * 'Collection(Edm.DateTimeOffset)', 'Collection(Edm.GeographyPoint)', 'Collection(Edm.Single)', + * 'Collection(Edm.Half)', 'Collection(Edm.Int16)', 'Collection(Edm.SByte)' * * NB: `Edm.Single` alone is not a valid data type. It must be used as part of a collection type. * @readonly @@ -876,7 +897,10 @@ export type SearchFieldDataType = | "Collection(Edm.Boolean)" | "Collection(Edm.DateTimeOffset)" | "Collection(Edm.GeographyPoint)" - | "Collection(Edm.Single)"; + | "Collection(Edm.Single)" + | "Collection(Edm.Half)" + | "Collection(Edm.Int16)" + | "Collection(Edm.SByte)"; /** * Defines values for ComplexDataType. @@ -917,14 +941,25 @@ export interface SimpleField { */ key?: boolean; /** - * A value indicating whether the field can be returned in a search result. You can enable this + * A value indicating whether the field can be returned in a search result. You can disable this * option if you want to use a field (for example, margin) as a filter, sorting, or scoring - * mechanism but do not want the field to be visible to the end user. This property must be false - * for key fields. This property can be changed on existing fields. - * Disabling this property does not cause any increase in index storage requirements. - * Default is false. + * mechanism but do not want the field to be visible to the end user. This property must be true + * for key fields. This property can be changed on existing fields. Enabling this property does + * not cause any increase in index storage requirements. Default is true for simple fields and + * false for vector fields. */ hidden?: boolean; + /** + * An immutable value indicating whether the field will be persisted separately on disk to be + * returned in a search result. You can disable this option if you don't plan to return the field + * contents in a search response to save on storage overhead. This can only be set during index + * creation and only for vector fields. This property cannot be changed for existing fields or set + * as false for new fields. If this property is set as false, the property `hidden` must be set as + * true. This property must be true or unset for key fields, for new fields, and for non-vector + * fields, and it must be null for complex fields. Disabling this property will reduce index + * storage requirements. The default is true for vector fields. + */ + stored?: boolean; /** * A value indicating whether the field is full-text searchable. This means it will undergo * analysis such as word-breaking during indexing. If you set a searchable field to a value like @@ -1004,7 +1039,7 @@ export interface SimpleField { * The name of the vector search algorithm configuration that specifies the algorithm and * optional parameters for searching the vector field. */ - vectorSearchProfile?: string; + vectorSearchProfileName?: string; } export function isComplexField(field: SearchField): field is ComplexField { @@ -1156,7 +1191,7 @@ export interface SearchIndex { /** * Defines parameters for a search index that influence semantic capabilities. */ - semanticSettings?: SemanticSettings; + semanticSearch?: SemanticSearch; /** * Contains configuration options related to vector search. */ @@ -2094,12 +2129,17 @@ export interface VectorSearch { algorithms?: VectorSearchAlgorithmConfiguration[]; /** Contains configuration options on how to vectorize text vector queries. */ vectorizers?: VectorSearchVectorizer[]; + /** + * Contains configuration options specific to the compression method used during indexing or + * querying. + */ + compressions?: VectorSearchCompressionConfiguration[]; } /** Contains configuration options specific to the algorithm used during indexing and/or querying. */ export type VectorSearchAlgorithmConfiguration = - | HnswVectorSearchAlgorithmConfiguration - | ExhaustiveKnnVectorSearchAlgorithmConfiguration; + | HnswAlgorithmConfiguration + | ExhaustiveKnnAlgorithmConfiguration; /** Contains configuration options specific to the algorithm used during indexing and/or querying. */ export interface BaseVectorSearchAlgorithmConfiguration { @@ -2113,7 +2153,7 @@ export interface BaseVectorSearchAlgorithmConfiguration { * Contains configuration options specific to the hnsw approximate nearest neighbors algorithm * used during indexing time. */ -export type HnswVectorSearchAlgorithmConfiguration = BaseVectorSearchAlgorithmConfiguration & { +export type HnswAlgorithmConfiguration = BaseVectorSearchAlgorithmConfiguration & { /** * Polymorphic discriminator, which specifies the different types this object can be */ @@ -2155,13 +2195,12 @@ export interface HnswParameters { } /** Contains configuration options specific to the exhaustive KNN algorithm used during querying, which will perform brute-force search across the entire vector index. */ -export type ExhaustiveKnnVectorSearchAlgorithmConfiguration = - BaseVectorSearchAlgorithmConfiguration & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "exhaustiveKnn"; - /** Contains the parameters specific to exhaustive KNN algorithm. */ - parameters?: ExhaustiveKnnParameters; - }; +export type ExhaustiveKnnAlgorithmConfiguration = BaseVectorSearchAlgorithmConfiguration & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "exhaustiveKnn"; + /** Contains the parameters specific to exhaustive KNN algorithm. */ + parameters?: ExhaustiveKnnParameters; +}; /** Contains the parameters specific to exhaustive KNN algorithm. */ export interface ExhaustiveKnnParameters { @@ -2262,16 +2301,198 @@ export interface SearchIndexerKnowledgeStoreParameters { synthesizeGeneratedKeyName?: boolean; } -/** The similarity metric to use for vector comparisons. */ -export type VectorSearchAlgorithmMetric = "cosine" | "euclidean" | "dotProduct"; +/** A dictionary of indexer-specific configuration properties. Each name is the name of a specific property. Each value must be of a primitive type. */ +export interface IndexingParametersConfiguration { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** Represents the parsing mode for indexing from an Azure blob data source. */ + parsingMode?: BlobIndexerParsingMode; + /** Comma-delimited list of filename extensions to ignore when processing from Azure blob storage. For example, you could exclude ".png, .mp4" to skip over those files during indexing. */ + excludedFileNameExtensions?: string; + /** Comma-delimited list of filename extensions to select when processing from Azure blob storage. For example, you could focus indexing on specific application files ".docx, .pptx, .msg" to specifically include those file types. */ + indexedFileNameExtensions?: string; + /** For Azure blobs, set to false if you want to continue indexing when an unsupported content type is encountered, and you don't know all the content types (file extensions) in advance. */ + failOnUnsupportedContentType?: boolean; + /** For Azure blobs, set to false if you want to continue indexing if a document fails indexing. */ + failOnUnprocessableDocument?: boolean; + /** For Azure blobs, set this property to true to still index storage metadata for blob content that is too large to process. Oversized blobs are treated as errors by default. For limits on blob size, see https://docs.microsoft.com/azure/search/search-limits-quotas-capacity. */ + indexStorageMetadataOnlyForOversizedDocuments?: boolean; + /** For CSV blobs, specifies a comma-delimited list of column headers, useful for mapping source fields to destination fields in an index. */ + delimitedTextHeaders?: string; + /** For CSV blobs, specifies the end-of-line single-character delimiter for CSV files where each line starts a new document (for example, "|"). */ + delimitedTextDelimiter?: string; + /** For CSV blobs, indicates that the first (non-blank) line of each blob contains headers. */ + firstLineContainsHeaders?: boolean; + /** For JSON arrays, given a structured or semi-structured document, you can specify a path to the array using this property. */ + documentRoot?: string; + /** Specifies the data to extract from Azure blob storage and tells the indexer which data to extract from image content when "imageAction" is set to a value other than "none". This applies to embedded image content in a .PDF or other application, or image files such as .jpg and .png, in Azure blobs. */ + dataToExtract?: BlobIndexerDataToExtract; + /** Determines how to process embedded images and image files in Azure blob storage. Setting the "imageAction" configuration to any value other than "none" requires that a skillset also be attached to that indexer. */ + imageAction?: BlobIndexerImageAction; + /** If true, will create a path //document//file_data that is an object representing the original file data downloaded from your blob data source. This allows you to pass the original file data to a custom skill for processing within the enrichment pipeline, or to the Document Extraction skill. */ + allowSkillsetToReadFileData?: boolean; + /** Determines algorithm for text extraction from PDF files in Azure blob storage. */ + pdfTextRotationAlgorithm?: BlobIndexerPDFTextRotationAlgorithm; + /** Specifies the environment in which the indexer should execute. */ + executionEnvironment?: IndexerExecutionEnvironment; + /** Increases the timeout beyond the 5-minute default for Azure SQL database data sources, specified in the format "hh:mm:ss". */ + queryTimeout?: string; +} + +/** Represents parameters for indexer execution. */ +export interface IndexingParameters { + /** The number of items that are read from the data source and indexed as a single batch in order to improve performance. The default depends on the data source type. */ + batchSize?: number; + /** The maximum number of items that can fail indexing for indexer execution to still be considered successful. -1 means no limit. Default is 0. */ + maxFailedItems?: number; + /** The maximum number of items in a single batch that can fail indexing for the batch to still be considered successful. -1 means no limit. Default is 0. */ + maxFailedItemsPerBatch?: number; + /** A dictionary of indexer-specific configuration properties. Each name is the name of a specific property. Each value must be of a primitive type. */ + configuration?: IndexingParametersConfiguration; +} + +/** A skill looks for text from a custom, user-defined list of words and phrases. */ +export interface CustomEntityLookupSkill extends BaseSearchIndexerSkill { + /** Polymorphic discriminator, which specifies the different types this object can be */ + odatatype: "#Microsoft.Skills.Text.CustomEntityLookupSkill"; + /** A value indicating which language code to use. Default is en. */ + defaultLanguageCode?: CustomEntityLookupSkillLanguage; + /** Path to a JSON or CSV file containing all the target text to match against. This entity definition is read at the beginning of an indexer run. Any updates to this file during an indexer run will not take effect until subsequent runs. This config must be accessible over HTTPS. */ + entitiesDefinitionUri?: string; + /** The inline CustomEntity definition. */ + inlineEntitiesDefinition?: CustomEntity[]; + /** A global flag for CaseSensitive. If CaseSensitive is not set in CustomEntity, this value will be the default value. */ + globalDefaultCaseSensitive?: boolean; + /** A global flag for AccentSensitive. If AccentSensitive is not set in CustomEntity, this value will be the default value. */ + globalDefaultAccentSensitive?: boolean; + /** A global flag for FuzzyEditDistance. If FuzzyEditDistance is not set in CustomEntity, this value will be the default value. */ + globalDefaultFuzzyEditDistance?: number; +} + +/** + * Text analytics entity recognition. + * + * @deprecated This skill has been deprecated. + */ +export interface EntityRecognitionSkill extends BaseSearchIndexerSkill { + /** Polymorphic discriminator, which specifies the different types this object can be */ + odatatype: "#Microsoft.Skills.Text.EntityRecognitionSkill"; + /** A list of entity categories that should be extracted. */ + categories?: EntityCategory[]; + /** A value indicating which language code to use. Default is en. */ + defaultLanguageCode?: EntityRecognitionSkillLanguage; + /** Determines whether or not to include entities which are well known but don't conform to a pre-defined type. If this configuration is not set (default), set to null or set to false, entities which don't conform to one of the pre-defined types will not be surfaced. */ + includeTypelessEntities?: boolean; + /** A value between 0 and 1 that be used to only include entities whose confidence score is greater than the value specified. If not set (default), or if explicitly set to null, all entities will be included. */ + minimumPrecision?: number; +} + +/** A skill that analyzes image files. It extracts a rich set of visual features based on the image content. */ +export interface ImageAnalysisSkill extends BaseSearchIndexerSkill { + /** Polymorphic discriminator, which specifies the different types this object can be */ + odatatype: "#Microsoft.Skills.Vision.ImageAnalysisSkill"; + /** A value indicating which language code to use. Default is en. */ + defaultLanguageCode?: ImageAnalysisSkillLanguage; + /** A list of visual features. */ + visualFeatures?: VisualFeature[]; + /** A string indicating which domain-specific details to return. */ + details?: ImageDetail[]; +} + +/** A skill that uses text analytics for key phrase extraction. */ +export interface KeyPhraseExtractionSkill extends BaseSearchIndexerSkill { + /** Polymorphic discriminator, which specifies the different types this object can be */ + odatatype: "#Microsoft.Skills.Text.KeyPhraseExtractionSkill"; + /** A value indicating which language code to use. Default is en. */ + defaultLanguageCode?: KeyPhraseExtractionSkillLanguage; + /** A number indicating how many key phrases to return. If absent, all identified key phrases will be returned. */ + maxKeyPhraseCount?: number; + /** The version of the model to use when calling the Text Analytics service. It will default to the latest available when not specified. We recommend you do not specify this value unless absolutely necessary. */ + modelVersion?: string; +} -export type VectorSearchAlgorithmKind = "hnsw" | "exhaustiveKnn"; +/** A skill that extracts text from image files. */ +export interface OcrSkill extends BaseSearchIndexerSkill { + /** Polymorphic discriminator, which specifies the different types this object can be */ + odatatype: "#Microsoft.Skills.Vision.OcrSkill"; + /** A value indicating which language code to use. Default is en. */ + defaultLanguageCode?: OcrSkillLanguage; + /** A value indicating to turn orientation detection on or not. Default is false. */ + shouldDetectOrientation?: boolean; +} + +/** Using the Text Analytics API, extracts personal information from an input text and gives you the option of masking it. */ +export interface PIIDetectionSkill extends BaseSearchIndexerSkill { + /** Polymorphic discriminator, which specifies the different types this object can be */ + odatatype: "#Microsoft.Skills.Text.PIIDetectionSkill"; + /** A value indicating which language code to use. Default is en. */ + defaultLanguageCode?: string; + /** A value between 0 and 1 that be used to only include entities whose confidence score is greater than the value specified. If not set (default), or if explicitly set to null, all entities will be included. */ + minimumPrecision?: number; + /** A parameter that provides various ways to mask the personal information detected in the input text. Default is 'none'. */ + maskingMode?: PIIDetectionSkillMaskingMode; + /** The character used to mask the text if the maskingMode parameter is set to replace. Default is '*'. */ + maskingCharacter?: string; + /** The version of the model to use when calling the Text Analytics service. It will default to the latest available when not specified. We recommend you do not specify this value unless absolutely necessary. */ + modelVersion?: string; + /** A list of PII entity categories that should be extracted and masked. */ + categories?: string[]; + /** If specified, will set the PII domain to include only a subset of the entity categories. Possible values include: 'phi', 'none'. Default is 'none'. */ + domain?: string; +} /** - * Defines behavior of the index projections in relation to the rest of the indexer. + * Text analytics positive-negative sentiment analysis, scored as a floating point value in a range of zero to 1. + * + * @deprecated This skill has been deprecated. */ -export type IndexProjectionMode = "skipIndexingParentDocuments" | "includeIndexingParentDocuments"; +export interface SentimentSkill extends BaseSearchIndexerSkill { + /** Polymorphic discriminator, which specifies the different types this object can be */ + odatatype: "#Microsoft.Skills.Text.SentimentSkill"; + /** A value indicating which language code to use. Default is en. */ + defaultLanguageCode?: SentimentSkillLanguage; +} -export type VectorSearchVectorizerKind = "azureOpenAI" | "customWebApi"; +/** A skill to split a string into chunks of text. */ +export interface SplitSkill extends BaseSearchIndexerSkill { + /** Polymorphic discriminator, which specifies the different types this object can be */ + odatatype: "#Microsoft.Skills.Text.SplitSkill"; + /** A value indicating which language code to use. Default is en. */ + defaultLanguageCode?: SplitSkillLanguage; + /** A value indicating which split mode to perform. */ + textSplitMode?: TextSplitMode; + /** The desired maximum page length. Default is 10000. */ + maxPageLength?: number; +} + +/** A skill to translate text from one language to another. */ +export interface TextTranslationSkill extends BaseSearchIndexerSkill { + /** Polymorphic discriminator, which specifies the different types this object can be */ + odatatype: "#Microsoft.Skills.Text.TranslationSkill"; + /** The language code to translate documents into for documents that don't specify the to language explicitly. */ + defaultToLanguageCode: TextTranslationSkillLanguage; + /** The language code to translate documents from for documents that don't specify the from language explicitly. */ + defaultFromLanguageCode?: TextTranslationSkillLanguage; + /** The language code to translate documents from when neither the fromLanguageCode input nor the defaultFromLanguageCode parameter are provided, and the automatic language detection is unsuccessful. Default is en. */ + suggestedFrom?: TextTranslationSkillLanguage; +} + +/** A skill that analyzes image files. It extracts a rich set of visual features based on the image content. */ +export interface ImageAnalysisSkill extends BaseSearchIndexerSkill { + /** Polymorphic discriminator, which specifies the different types this object can be */ + odatatype: "#Microsoft.Skills.Vision.ImageAnalysisSkill"; + /** A value indicating which language code to use. Default is en. */ + defaultLanguageCode?: ImageAnalysisSkillLanguage; + /** A list of visual features. */ + visualFeatures?: VisualFeature[]; + /** A string indicating which domain-specific details to return. */ + details?: ImageDetail[]; +} + +/** + * Contains configuration options specific to the compression method used during indexing or + * querying. + */ +export type VectorSearchCompressionConfiguration = ScalarQuantizationCompressionConfiguration; // END manually modified generated interfaces diff --git a/sdk/search/search-documents/src/serviceUtils.ts b/sdk/search/search-documents/src/serviceUtils.ts index ec47fabf2186..625479e538d0 100644 --- a/sdk/search/search-documents/src/serviceUtils.ts +++ b/sdk/search/search-documents/src/serviceUtils.ts @@ -1,80 +1,92 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. +import { + SearchResult as GeneratedSearchResult, + SuggestDocumentsResult as GeneratedSuggestDocumentsResult, +} from "./generated/data/models"; import { AzureMachineLearningSkill, + AzureOpenAIVectorizer as GeneratedAzureOpenAIVectorizer, BM25Similarity, ClassicSimilarity, CognitiveServicesAccountKey, CognitiveServicesAccountUnion, ConditionalSkill, - CustomAnalyzer, - CustomEntityLookupSkill, + CustomAnalyzer as BaseCustomAnalyzer, + CustomVectorizer as GeneratedCustomVectorizer, DataChangeDetectionPolicyUnion, DataDeletionDetectionPolicyUnion, DefaultCognitiveServicesAccount, DocumentExtractionSkill, EntityLinkingSkill, - EntityRecognitionSkill, EntityRecognitionSkillV3, - PatternAnalyzer as GeneratedPatternAnalyzer, - SearchField as GeneratedSearchField, - SearchIndex as GeneratedSearchIndex, - SearchIndexer as GeneratedSearchIndexer, - SearchIndexerDataSource as GeneratedSearchIndexerDataSourceConnection, - SearchIndexerSkillset as GeneratedSearchIndexerSkillset, - SearchResourceEncryptionKey as GeneratedSearchResourceEncryptionKey, - SynonymMap as GeneratedSynonymMap, + ExhaustiveKnnAlgorithmConfiguration as GeneratedExhaustiveKnnAlgorithmConfiguration, HighWaterMarkChangeDetectionPolicy, - ImageAnalysisSkill, - KeyPhraseExtractionSkill, + HnswAlgorithmConfiguration as GeneratedHnswAlgorithmConfiguration, LanguageDetectionSkill, - LexicalAnalyzerName, LexicalAnalyzerUnion, - LexicalNormalizerName, LexicalTokenizerUnion, LuceneStandardAnalyzer, MergeSkill, - OcrSkill, - PIIDetectionSkill, + PatternAnalyzer as GeneratedPatternAnalyzer, PatternTokenizer, - RegexFlags, + SearchField as GeneratedSearchField, + SearchIndex as GeneratedSearchIndex, + SearchIndexer as GeneratedSearchIndexer, + SearchIndexerCache as GeneratedSearchIndexerCache, SearchIndexerDataIdentityUnion, SearchIndexerDataNoneIdentity, + SearchIndexerDataSource as GeneratedSearchIndexerDataSourceConnection, SearchIndexerDataUserAssignedIdentity, SearchIndexerKnowledgeStore as BaseSearchIndexerKnowledgeStore, + SearchIndexerSkillset as GeneratedSearchIndexerSkillset, SearchIndexerSkillUnion, - SentimentSkill, + SearchResourceEncryptionKey as GeneratedSearchResourceEncryptionKey, SentimentSkillV3, ShaperSkill, SimilarityUnion, SoftDeleteColumnDeletionDetectionPolicy, - SplitSkill, SqlIntegratedChangeTrackingPolicy, StopAnalyzer, - TextTranslationSkill, + SynonymMap as GeneratedSynonymMap, TokenFilterUnion, - SearchIndexerCache as GeneratedSearchIndexerCache, VectorSearch as GeneratedVectorSearch, - CustomVectorizer as GeneratedCustomVectorizer, - AzureOpenAIVectorizer as GeneratedAzureOpenAIVectorizer, - VectorSearchVectorizerUnion as GeneratedVectorSearchVectorizer, VectorSearchAlgorithmConfigurationUnion as GeneratedVectorSearchAlgorithmConfiguration, - HnswVectorSearchAlgorithmConfiguration as GeneratedHnswVectorSearchAlgorithmConfiguration, - ExhaustiveKnnVectorSearchAlgorithmConfiguration as GeneratedExhaustiveKnnVectorSearchAlgorithmConfiguration, + VectorSearchVectorizerUnion as GeneratedVectorSearchVectorizer, } from "./generated/service/models"; +import { + BlobIndexerDataToExtract, + BlobIndexerImageAction, + BlobIndexerParsingMode, + BlobIndexerPDFTextRotationAlgorithm, + IndexerExecutionEnvironment, + RegexFlags, + SearchIndexerDataSourceType, + VectorSearchAlgorithmMetric, +} from "./generatedStringLiteralUnions"; +import { SearchResult, SelectFields, SuggestDocumentsResult, SuggestResult } from "./indexModels"; import { AzureOpenAIVectorizer, CharFilter, CognitiveServicesAccount, ComplexField, + CustomEntityLookupSkill, CustomVectorizer, DataChangeDetectionPolicy, DataDeletionDetectionPolicy, + EntityRecognitionSkill, + ImageAnalysisSkill, + IndexingParameters, + IndexingParametersConfiguration, + isComplexField, + KeyPhraseExtractionSkill, LexicalAnalyzer, LexicalNormalizer, LexicalTokenizer, + OcrSkill, PatternAnalyzer, + PIIDetectionSkill, ScoringProfile, SearchField, SearchFieldDataType, @@ -83,39 +95,23 @@ import { SearchIndexerCache, SearchIndexerDataIdentity, SearchIndexerDataSourceConnection, + SearchIndexerIndexProjections, SearchIndexerKnowledgeStore, SearchIndexerSkill, SearchIndexerSkillset, SearchResourceEncryptionKey, + SentimentSkill, SimilarityAlgorithm, SimpleField, + SplitSkill, SynonymMap, + TextTranslationSkill, TokenFilter, VectorSearch, VectorSearchAlgorithmConfiguration, - VectorSearchAlgorithmMetric, VectorSearchVectorizer, WebApiSkill, - isComplexField, } from "./serviceModels"; -import { - QueryDebugMode, - SearchFieldArray, - SearchRequest, - SearchResult, - SelectFields, - SemanticErrorHandlingMode, - SuggestDocumentsResult, - SuggestResult, - VectorFilterMode, - VectorQuery, -} from "./indexModels"; -import { - SearchResult as GeneratedSearchResult, - SuggestDocumentsResult as GeneratedSuggestDocumentsResult, - SearchRequest as GeneratedSearchRequest, - VectorQueryUnion as GeneratedVectorQuery, -} from "./generated/data/models"; export function convertSkillsToPublic(skills: SearchIndexerSkillUnion[]): SearchIndexerSkill[] { if (!skills) { @@ -226,7 +222,7 @@ export function convertTokenFiltersToGenerated( return result; } -export function convertAnalyzersToGenerated( +function convertAnalyzersToGenerated( analyzers?: LexicalAnalyzer[], ): LexicalAnalyzerUnion[] | undefined { if (!analyzers) { @@ -257,7 +253,7 @@ export function convertAnalyzersToGenerated( return result; } -export function convertAnalyzersToPublic( +function convertAnalyzersToPublic( analyzers?: LexicalAnalyzerUnion[], ): LexicalAnalyzer[] | undefined { if (!analyzers) { @@ -282,10 +278,7 @@ export function convertAnalyzersToPublic( } as PatternAnalyzer); break; case "#Microsoft.Azure.Search.CustomAnalyzer": - result.push({ - ...analyzer, - tokenizerName: (analyzer as CustomAnalyzer).tokenizerName, - } as CustomAnalyzer); + result.push(analyzer as BaseCustomAnalyzer); break; } } @@ -307,24 +300,21 @@ export function convertFieldsToPublic(fields: GeneratedSearchField[]): SearchFie return result; } else { const type: SearchFieldDataType = field.type as SearchFieldDataType; - const analyzerName: LexicalAnalyzerName | undefined = field.analyzer; - const searchAnalyzerName: LexicalAnalyzerName | undefined = field.searchAnalyzer; - const indexAnalyzerName: LexicalAnalyzerName | undefined = field.indexAnalyzer; const synonymMapNames: string[] | undefined = field.synonymMaps; - const normalizerName: LexicalNormalizerName | undefined = field.normalizer; - const { retrievable, ...restField } = field; + const { retrievable, analyzer, searchAnalyzer, indexAnalyzer, normalizer, ...restField } = + field; const hidden = typeof retrievable === "boolean" ? !retrievable : retrievable; const result: SimpleField = { ...restField, type, hidden, - analyzerName, - searchAnalyzerName, - indexAnalyzerName, + analyzerName: analyzer, + searchAnalyzerName: searchAnalyzer, + indexAnalyzerName: indexAnalyzer, + normalizerName: normalizer, synonymMapNames, - normalizerName, }; return result; } @@ -360,7 +350,7 @@ export function convertFieldsToGenerated(fields: SearchField[]): GeneratedSearch }); } -export function convertTokenizersToGenerated( +function convertTokenizersToGenerated( tokenizers?: LexicalTokenizer[], ): LexicalTokenizerUnion[] | undefined { if (!tokenizers) { @@ -381,7 +371,7 @@ export function convertTokenizersToGenerated( return result; } -export function convertTokenizersToPublic( +function convertTokenizersToPublic( tokenizers?: LexicalTokenizerUnion[], ): LexicalTokenizer[] | undefined { if (!tokenizers) { @@ -391,11 +381,11 @@ export function convertTokenizersToPublic( const result: LexicalTokenizer[] = []; for (const tokenizer of tokenizers) { if (tokenizer.odatatype === "#Microsoft.Azure.Search.PatternTokenizer") { + const patternTokenizer = tokenizer as PatternTokenizer; + const flags = patternTokenizer.flags?.split("|") as RegexFlags[] | undefined; result.push({ ...tokenizer, - flags: (tokenizer as PatternTokenizer).flags - ? ((tokenizer as PatternTokenizer).flags!.split("|") as RegexFlags[]) - : undefined, + flags, }); } else { result.push(tokenizer); @@ -428,7 +418,7 @@ export function convertSimilarityToPublic( } } -export function convertEncryptionKeyToPublic( +function convertEncryptionKeyToPublic( encryptionKey?: GeneratedSearchResourceEncryptionKey, ): SearchResourceEncryptionKey | undefined { if (!encryptionKey) { @@ -450,7 +440,7 @@ export function convertEncryptionKeyToPublic( return result; } -export function convertEncryptionKeyToGenerated( +function convertEncryptionKeyToGenerated( encryptionKey?: SearchResourceEncryptionKey, ): GeneratedSearchResourceEncryptionKey | undefined { if (!encryptionKey) { @@ -490,7 +480,7 @@ export function generatedIndexToPublicIndex(generatedIndex: GeneratedSearchIndex scoringProfiles: generatedIndex.scoringProfiles as ScoringProfile[], fields: convertFieldsToPublic(generatedIndex.fields), similarity: convertSimilarityToPublic(generatedIndex.similarity), - semanticSettings: generatedIndex.semanticSettings, + semanticSearch: generatedIndex.semanticSearch, vectorSearch: generatedVectorSearchToPublicVectorSearch(generatedIndex.vectorSearch), }; } @@ -506,31 +496,32 @@ export function generatedVectorSearchVectorizerToPublicVectorizer( return generatedVectorizer; } - if (generatedVectorizer.kind === "azureOpenAI") { - const { azureOpenAIParameters } = generatedVectorizer as GeneratedAzureOpenAIVectorizer; - const authIdentity = convertSearchIndexerDataIdentityToPublic( - azureOpenAIParameters?.authIdentity, - ); - const vectorizer: AzureOpenAIVectorizer = { - ...(generatedVectorizer as GeneratedAzureOpenAIVectorizer), - azureOpenAIParameters: { ...azureOpenAIParameters, authIdentity }, - }; - return vectorizer; - } - - if (generatedVectorizer.kind === "customWebApi") { - const { customVectorizerParameters } = generatedVectorizer as GeneratedCustomVectorizer; - const authIdentity = convertSearchIndexerDataIdentityToPublic( - customVectorizerParameters?.authIdentity, - ); - const vectorizer: CustomVectorizer = { - ...(generatedVectorizer as GeneratedCustomVectorizer), - customVectorizerParameters: { ...customVectorizerParameters, authIdentity }, - }; - return vectorizer; + switch (generatedVectorizer.kind) { + case "azureOpenAI": { + const { azureOpenAIParameters } = generatedVectorizer as GeneratedAzureOpenAIVectorizer; + const authIdentity = convertSearchIndexerDataIdentityToPublic( + azureOpenAIParameters?.authIdentity, + ); + const vectorizer: AzureOpenAIVectorizer = { + ...(generatedVectorizer as GeneratedAzureOpenAIVectorizer), + azureOpenAIParameters: { ...azureOpenAIParameters, authIdentity }, + }; + return vectorizer; + } + case "customWebApi": { + const { customWebApiParameters } = generatedVectorizer as GeneratedCustomVectorizer; + const authIdentity = convertSearchIndexerDataIdentityToPublic( + customWebApiParameters?.authIdentity, + ); + const vectorizer: CustomVectorizer = { + ...(generatedVectorizer as GeneratedCustomVectorizer), + customVectorizerParameters: { ...customWebApiParameters, authIdentity }, + }; + return vectorizer; + } + default: + throw Error("Unsupported vectorizer"); } - - throw Error("Unsupported vectorizer"); } export function generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration(): undefined; @@ -546,8 +537,8 @@ export function generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchA if (["hnsw", "exhaustiveKnn"].includes(generatedAlgorithmConfiguration.kind)) { const algorithmConfiguration = generatedAlgorithmConfiguration as - | GeneratedHnswVectorSearchAlgorithmConfiguration - | GeneratedExhaustiveKnnVectorSearchAlgorithmConfiguration; + | GeneratedHnswAlgorithmConfiguration + | GeneratedExhaustiveKnnAlgorithmConfiguration; const metric = algorithmConfiguration.parameters?.metric as VectorSearchAlgorithmMetric; return { ...algorithmConfiguration, @@ -580,18 +571,21 @@ export function generatedSearchResultToPublicSearchResult< >(results: GeneratedSearchResult[]): SearchResult[] { const returnValues: SearchResult[] = results.map>( (result) => { - const { _score, _highlights, rerankerScore, captions, documentDebugInfo, ...restProps } = - result; - const doc: { [key: string]: any } = { - ...restProps, - }; + const { + _score: score, + _highlights: highlights, + _rerankerScore: rerankerScore, + _captions: captions, + documentDebugInfo: documentDebugInfo, + ...restProps + } = result; const obj = { - score: _score, - highlights: _highlights, + score, + highlights, rerankerScore, captions, - document: doc, documentDebugInfo, + document: restProps, }; return obj as SearchResult; }, @@ -606,13 +600,9 @@ export function generatedSuggestDocumentsResultToPublicSuggestDocumentsResult< const results = searchDocumentsResult.results.map>((element) => { const { _text, ...restProps } = element; - const doc: { [key: string]: any } = { - ...restProps, - }; - const obj = { text: _text, - document: doc, + document: restProps, }; return obj as SuggestResult; @@ -643,16 +633,21 @@ export function publicIndexToGeneratedIndex(index: SearchIndex): GeneratedSearch export function generatedSkillsetToPublicSkillset( generatedSkillset: GeneratedSearchIndexerSkillset, ): SearchIndexerSkillset { + const { + skills, + cognitiveServicesAccount, + knowledgeStore, + encryptionKey, + indexProjections, + ...props + } = generatedSkillset; return { - name: generatedSkillset.name, - description: generatedSkillset.description, - skills: convertSkillsToPublic(generatedSkillset.skills), - cognitiveServicesAccount: convertCognitiveServicesAccountToPublic( - generatedSkillset.cognitiveServicesAccount, - ), - knowledgeStore: convertKnowledgeStoreToPublic(generatedSkillset.knowledgeStore), - etag: generatedSkillset.etag, - encryptionKey: convertEncryptionKeyToPublic(generatedSkillset.encryptionKey), + ...props, + skills: convertSkillsToPublic(skills), + cognitiveServicesAccount: convertCognitiveServicesAccountToPublic(cognitiveServicesAccount), + knowledgeStore: convertKnowledgeStoreToPublic(knowledgeStore), + encryptionKey: convertEncryptionKeyToPublic(encryptionKey), + indexProjections: indexProjections as SearchIndexerIndexProjections, }; } @@ -713,30 +708,38 @@ export function publicSearchIndexerToGeneratedSearchIndexer( export function generatedSearchIndexerToPublicSearchIndexer( indexer: GeneratedSearchIndexer, ): SearchIndexer { + const { + parsingMode, + dataToExtract, + imageAction, + pdfTextRotationAlgorithm, + executionEnvironment, + } = indexer.parameters?.configuration ?? {}; + + const configuration: IndexingParametersConfiguration | undefined = indexer.parameters + ?.configuration && { + ...indexer.parameters?.configuration, + parsingMode: parsingMode as BlobIndexerParsingMode | undefined, + dataToExtract: dataToExtract as BlobIndexerDataToExtract | undefined, + imageAction: imageAction as BlobIndexerImageAction | undefined, + pdfTextRotationAlgorithm: pdfTextRotationAlgorithm as + | BlobIndexerPDFTextRotationAlgorithm + | undefined, + executionEnvironment: executionEnvironment as IndexerExecutionEnvironment | undefined, + }; + const parameters: IndexingParameters = { + ...indexer.parameters, + configuration, + }; + return { ...indexer, + parameters, encryptionKey: convertEncryptionKeyToPublic(indexer.encryptionKey), cache: convertSearchIndexerCacheToPublic(indexer.cache), }; } -export function generatedSearchRequestToPublicSearchRequest( - request: GeneratedSearchRequest, -): SearchRequest { - const { semanticErrorHandling, debug, vectorQueries, vectorFilterMode, ...props } = request; - const publicRequest: SearchRequest = { - semanticErrorHandlingMode: semanticErrorHandling as SemanticErrorHandlingMode | undefined, - debugMode: debug as QueryDebugMode | undefined, - vectorFilterMode: vectorFilterMode as VectorFilterMode | undefined, - vectorQueries: vectorQueries - ?.map(convertVectorQueryToPublic) - .filter((v): v is VectorQuery => v !== undefined), - ...props, - }; - - return publicRequest; -} - export function publicDataSourceToGeneratedDataSource( dataSource: SearchIndexerDataSourceConnection, ): GeneratedSearchIndexerDataSourceConnection { @@ -762,7 +765,7 @@ export function generatedDataSourceToPublicDataSource( return { name: dataSource.name, description: dataSource.name, - type: dataSource.type, + type: dataSource.type as SearchIndexerDataSourceType, connectionString: dataSource.credentials.connectionString, container: dataSource.container, identity: convertSearchIndexerDataIdentityToPublic(dataSource.identity), @@ -818,20 +821,6 @@ export function convertDataDeletionDetectionPolicyToPublic( return dataDeletionDetectionPolicy as SoftDeleteColumnDeletionDetectionPolicy; } -function convertVectorQueryToPublic( - vector: GeneratedVectorQuery | undefined, -): VectorQuery | undefined { - if (!vector) { - return vector; - } - - const fields: SearchFieldArray | undefined = vector.fields?.split(",") as - | SearchFieldArray - | undefined; - - return { ...vector, fields }; -} - export function getRandomIntegerInclusive(min: number, max: number): number { // Make sure inputs are integers. min = Math.ceil(min); @@ -852,9 +841,9 @@ export function delay(timeInMs: number): Promise { return new Promise((resolve) => setTimeout(() => resolve(), timeInMs)); } -export const serviceVersions = ["2020-06-30", "2023-10-01-Preview"]; +export const serviceVersions = ["2023-11-01", "2024-03-01-Preview"]; -export const defaultServiceVersion = "2023-10-01-Preview"; +export const defaultServiceVersion = "2024-03-01-Preview"; function convertKnowledgeStoreToPublic( knowledgeStore: BaseSearchIndexerKnowledgeStore | undefined, @@ -869,7 +858,7 @@ function convertKnowledgeStoreToPublic( }; } -function convertSearchIndexerCacheToPublic( +export function convertSearchIndexerCacheToPublic( cache?: GeneratedSearchIndexerCache, ): SearchIndexerCache | undefined { if (!cache) { diff --git a/sdk/search/search-documents/src/synonymMapHelper.ts b/sdk/search/search-documents/src/synonymMapHelper.ts index 873eee754119..6e002f2a7fbc 100644 --- a/sdk/search/search-documents/src/synonymMapHelper.ts +++ b/sdk/search/search-documents/src/synonymMapHelper.ts @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { SynonymMap } from "./serviceModels"; -import { promisify } from "util"; import * as fs from "fs"; +import { promisify } from "util"; +import { SynonymMap } from "./serviceModels"; const readFileAsync = promisify(fs.readFile); /** diff --git a/sdk/search/search-documents/src/tracing.ts b/sdk/search/search-documents/src/tracing.ts index 4f40e2d0cf45..38bff4bae880 100644 --- a/sdk/search/search-documents/src/tracing.ts +++ b/sdk/search/search-documents/src/tracing.ts @@ -7,7 +7,7 @@ import { createTracingClient } from "@azure/core-tracing"; * Creates a tracing client using the global tracer. * @internal */ -export const tracingClient = createTracingClient({ +const tracingClient = createTracingClient({ namespace: "Microsoft.Search", packageName: "Azure.Search", }); diff --git a/sdk/search/search-documents/swagger/Data.md b/sdk/search/search-documents/swagger/Data.md index 693d413016d0..7185711271cb 100644 --- a/sdk/search/search-documents/swagger/Data.md +++ b/sdk/search/search-documents/swagger/Data.md @@ -10,13 +10,13 @@ generate-metadata: false license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../ source-code-folder-path: ./src/generated/data -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/b62ddd0ffb844fbfb688a04546800d60645a18ef/specification/search/data-plane/Azure.Search/preview/2023-10-01-Preview/searchindex.json +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/a0151afd7cd14913fc86cb793bde49c71122eb1e/specification/search/data-plane/Azure.Search/preview/2024-03-01-Preview/searchindex.json add-credentials: false title: SearchClient use-extension: - "@autorest/typescript": "6.0.0-alpha.17.20220318.1" + "@autorest/typescript": "6.0.14" core-http-compat-mode: true -package-version: 12.0.0-beta.4 +package-version: 12.1.0-beta.1 disable-async-iterators: true api-version-parameter: choice v3: true @@ -79,7 +79,7 @@ modelerfour: Text: $DO_NOT_NORMALIZE$_text ``` -### Change score to \_score & highlights to \_highlights in SuggestResult +### Preserve underscore prefix in some result type properties ```yaml modelerfour: @@ -87,6 +87,8 @@ modelerfour: override: Score: $DO_NOT_NORMALIZE$_score Highlights: $DO_NOT_NORMALIZE$_highlights + RerankerScore: $DO_NOT_NORMALIZE$_rerankerScore + Captions: $DO_NOT_NORMALIZE$_captions ``` ### Mark score, key and text fields as required in AnswerResult Object @@ -99,7 +101,7 @@ directive: $.required = ['score', 'key', 'text']; ``` -### Rename Vector property `K` +### Renames ```yaml directive: @@ -108,9 +110,19 @@ directive: transform: $["x-ms-client-name"] = "KNearestNeighborsCount"; ``` -### Rename QueryResultDocumentSemanticFieldState +```yaml +directive: + - from: swagger-document + where: $.definitions.SearchRequest.properties.semanticConfiguration + transform: $["x-ms-client-name"] = "semanticConfigurationName"; +``` -Simplify `QueryResultDocumentSemanticFieldState` name by renaming it to `SemanticFieldState` +```yaml +directive: + - from: swagger-document + where: $.definitions.RawVectorQuery + transform: $["x-ms-client-name"] = "VectorizedQuery"; +``` ```yaml directive: @@ -118,3 +130,17 @@ directive: where: $.definitions.QueryResultDocumentSemanticFieldState transform: $["x-ms-enum"].name = "SemanticFieldState"; ``` + +```yaml +directive: + - from: swagger-document + where: $.definitions.AnswerResult + transform: $["x-ms-client-name"] = "QueryAnswerResult"; +``` + +```yaml +directive: + - from: swagger-document + where: $.definitions.CaptionResult + transform: $["x-ms-client-name"] = "QueryCaptionResult"; +``` diff --git a/sdk/search/search-documents/swagger/Service.md b/sdk/search/search-documents/swagger/Service.md index f531d95e7938..f1c287e8f862 100644 --- a/sdk/search/search-documents/swagger/Service.md +++ b/sdk/search/search-documents/swagger/Service.md @@ -10,12 +10,12 @@ generate-metadata: false license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../ source-code-folder-path: ./src/generated/service -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/b62ddd0ffb844fbfb688a04546800d60645a18ef/specification/search/data-plane/Azure.Search/preview/2023-10-01-Preview/searchservice.json +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/a0151afd7cd14913fc86cb793bde49c71122eb1e/specification/search/data-plane/Azure.Search/preview/2024-03-01-Preview/searchservice.json add-credentials: false use-extension: - "@autorest/typescript": "6.0.0-alpha.17.20220318.1" + "@autorest/typescript": "6.0.14" core-http-compat-mode: true -package-version: 12.0.0-beta.4 +package-version: 12.1.0-beta.1 disable-async-iterators: true api-version-parameter: choice v3: true @@ -290,6 +290,83 @@ directive: $["x-ms-client-name"] = "name"; ``` +```yaml +directive: + - from: swagger-document + where: $.definitions.SearchField.properties.dimensions + transform: $["x-ms-client-name"] = "vectorSearchDimensions"; +``` + +```yaml +directive: + - from: swagger-document + where: $.definitions.HnswVectorSearchAlgorithmConfiguration + transform: $["x-ms-client-name"] = "HnswAlgorithmConfiguration"; +``` + +```yaml +directive: + - from: swagger-document + where: $.definitions.ExhaustiveKnnVectorSearchAlgorithmConfiguration + transform: $["x-ms-client-name"] = "ExhaustiveKnnAlgorithmConfiguration"; +``` + +```yaml +directive: + - from: swagger-document + where: $.definitions.PIIDetectionSkill.properties.piiCategories + transform: $["x-ms-client-name"] = "categories"; +``` + +```yaml +directive: + - from: swagger-document + where: $.definitions.SearchField.properties.vectorSearchProfile + transform: $["x-ms-client-name"] = "vectorSearchProfileName"; +``` + +```yaml +directive: + - from: swagger-document + where: $.definitions.SemanticSettings.defaultConfiguration + transform: $["x-ms-client-name"] = "defaultConfigurationName"; +``` + +```yaml +directive: + - from: swagger-document + where: $.definitions.SearchIndex.properties.semantic + transform: $["x-ms-client-name"] = "semanticSearch"; +``` + +```yaml +directive: + - from: swagger-document + where: $.definitions.SemanticSettings + transform: $["x-ms-client-name"] = "SemanticSearch"; +``` + +```yaml +directive: + - from: swagger-document + where: $.definitions.VectorSearchProfile.properties.algorithm + transform: $["x-ms-client-name"] = "algorithmConfigurationName"; +``` + +```yaml +directive: + - from: swagger-document + where: $.definitions.PIIDetectionSkill.properties.maskingCharacter + transform: $["x-ms-client-name"] = undefined; +``` + +```yaml +directive: + - from: swagger-document + where: $.definitions.VectorSearchCompressionConfiguration + transform: $["x-ms-client-name"] = "BaseVectorSearchCompressionConfiguration"; +``` + ### Deprecations ```yaml @@ -313,17 +390,6 @@ directive: transform: $.description += "\n\n@deprecated"; ``` -### Rename Dimensions - -To ensure alignment with `VectorSearchConfiguration` in intellisense and documentation, rename the `Dimensions` to `VectorSearchDimensions`. - -```yaml -directive: - - from: swagger-document - where: $.definitions.SearchField.properties.dimensions - transform: $["x-ms-client-name"] = "vectorSearchDimensions"; -``` - ### Add `arm-id` format for `AuthResourceId` Add `"format": "arm-id"` for `AuthResourceId` to generate as [Azure.Core.ResourceIdentifier] diff --git a/sdk/search/search-documents/test/compressionDisabled.ts b/sdk/search/search-documents/test/compressionDisabled.ts new file mode 100644 index 000000000000..dc8c1a022a78 --- /dev/null +++ b/sdk/search/search-documents/test/compressionDisabled.ts @@ -0,0 +1,4 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +export const COMPRESSION_DISABLED = true; diff --git a/sdk/search/search-documents/test/internal/serialization.spec.ts b/sdk/search/search-documents/test/internal/serialization.spec.ts index 092973935e7b..d1411fb1ce7a 100644 --- a/sdk/search/search-documents/test/internal/serialization.spec.ts +++ b/sdk/search/search-documents/test/internal/serialization.spec.ts @@ -3,8 +3,8 @@ import { assert } from "chai"; import * as sinon from "sinon"; -import { deserialize, serialize } from "../../src/serialization"; import GeographyPoint from "../../src/geographyPoint"; +import { deserialize, serialize } from "../../src/serialization"; describe("serialization.serialize", function () { it("nested", function () { diff --git a/sdk/search/search-documents/test/internal/serviceUtils.spec.ts b/sdk/search/search-documents/test/internal/serviceUtils.spec.ts index 8040b7b79758..bda81ef1557b 100644 --- a/sdk/search/search-documents/test/internal/serviceUtils.spec.ts +++ b/sdk/search/search-documents/test/internal/serviceUtils.spec.ts @@ -2,10 +2,10 @@ // Licensed under the MIT license. import { assert } from "chai"; -import { convertFieldsToGenerated, convertFieldsToPublic } from "../../src/serviceUtils"; import { SearchField as GeneratedSearchField } from "../../src/generated/service/models/index"; -import { KnownLexicalAnalyzerName } from "../../src/index"; +import { KnownAnalyzerNames } from "../../src/index"; import { ComplexField, SearchField } from "../../src/serviceModels"; +import { convertFieldsToGenerated, convertFieldsToPublic } from "../../src/serviceUtils"; describe("serviceUtils", function () { it("convert generated fields to public fields", function () { @@ -19,10 +19,10 @@ describe("serviceUtils", function () { filterable: true, facetable: true, retrievable: false, - analyzer: KnownLexicalAnalyzerName.ArMicrosoft, - indexAnalyzer: KnownLexicalAnalyzerName.ArLucene, - normalizer: KnownLexicalAnalyzerName.BgLucene, - searchAnalyzer: KnownLexicalAnalyzerName.CaLucene, + analyzer: KnownAnalyzerNames.ArMicrosoft, + indexAnalyzer: KnownAnalyzerNames.ArLucene, + normalizer: KnownAnalyzerNames.BgLucene, + searchAnalyzer: KnownAnalyzerNames.CaLucene, synonymMaps: undefined, }, ]); @@ -36,10 +36,10 @@ describe("serviceUtils", function () { filterable: true, facetable: true, hidden: true, - analyzerName: KnownLexicalAnalyzerName.ArMicrosoft, - indexAnalyzerName: KnownLexicalAnalyzerName.ArLucene, - normalizerName: KnownLexicalAnalyzerName.BgLucene, - searchAnalyzerName: KnownLexicalAnalyzerName.CaLucene, + analyzerName: KnownAnalyzerNames.ArMicrosoft, + indexAnalyzerName: KnownAnalyzerNames.ArLucene, + normalizerName: KnownAnalyzerNames.BgLucene, + searchAnalyzerName: KnownAnalyzerNames.CaLucene, synonymMapNames: undefined, }); }); @@ -59,10 +59,10 @@ describe("serviceUtils", function () { filterable: true, facetable: true, retrievable: false, - analyzer: KnownLexicalAnalyzerName.ArMicrosoft, - indexAnalyzer: KnownLexicalAnalyzerName.ArLucene, - normalizer: KnownLexicalAnalyzerName.BgLucene, - searchAnalyzer: KnownLexicalAnalyzerName.CaLucene, + analyzer: KnownAnalyzerNames.ArMicrosoft, + indexAnalyzer: KnownAnalyzerNames.ArLucene, + normalizer: KnownAnalyzerNames.BgLucene, + searchAnalyzer: KnownAnalyzerNames.CaLucene, synonymMaps: undefined, }, ], @@ -83,10 +83,10 @@ describe("serviceUtils", function () { filterable: true, facetable: true, hidden: true, - analyzerName: KnownLexicalAnalyzerName.ArMicrosoft, - indexAnalyzerName: KnownLexicalAnalyzerName.ArLucene, - normalizerName: KnownLexicalAnalyzerName.BgLucene, - searchAnalyzerName: KnownLexicalAnalyzerName.CaLucene, + analyzerName: KnownAnalyzerNames.ArMicrosoft, + indexAnalyzerName: KnownAnalyzerNames.ArLucene, + normalizerName: KnownAnalyzerNames.BgLucene, + searchAnalyzerName: KnownAnalyzerNames.CaLucene, synonymMapNames: undefined, }); }); @@ -102,10 +102,10 @@ describe("serviceUtils", function () { filterable: true, facetable: true, hidden: true, - analyzerName: KnownLexicalAnalyzerName.ArMicrosoft, - indexAnalyzerName: KnownLexicalAnalyzerName.ArLucene, - normalizerName: KnownLexicalAnalyzerName.BgLucene, - searchAnalyzerName: KnownLexicalAnalyzerName.CaLucene, + analyzerName: KnownAnalyzerNames.ArMicrosoft, + indexAnalyzerName: KnownAnalyzerNames.ArLucene, + normalizerName: KnownAnalyzerNames.BgLucene, + searchAnalyzerName: KnownAnalyzerNames.CaLucene, synonymMapNames: undefined, }, ]); @@ -119,10 +119,10 @@ describe("serviceUtils", function () { filterable: true, facetable: true, retrievable: false, - analyzer: KnownLexicalAnalyzerName.ArMicrosoft, - indexAnalyzer: KnownLexicalAnalyzerName.ArLucene, - normalizer: KnownLexicalAnalyzerName.BgLucene, - searchAnalyzer: KnownLexicalAnalyzerName.CaLucene, + analyzer: KnownAnalyzerNames.ArMicrosoft, + indexAnalyzer: KnownAnalyzerNames.ArLucene, + normalizer: KnownAnalyzerNames.BgLucene, + searchAnalyzer: KnownAnalyzerNames.CaLucene, synonymMaps: undefined, }); }); @@ -142,10 +142,10 @@ describe("serviceUtils", function () { filterable: true, facetable: true, hidden: true, - analyzerName: KnownLexicalAnalyzerName.ArMicrosoft, - indexAnalyzerName: KnownLexicalAnalyzerName.ArLucene, - normalizerName: KnownLexicalAnalyzerName.BgLucene, - searchAnalyzerName: KnownLexicalAnalyzerName.CaLucene, + analyzerName: KnownAnalyzerNames.ArMicrosoft, + indexAnalyzerName: KnownAnalyzerNames.ArLucene, + normalizerName: KnownAnalyzerNames.BgLucene, + searchAnalyzerName: KnownAnalyzerNames.CaLucene, synonymMapNames: undefined, }, ], @@ -166,10 +166,10 @@ describe("serviceUtils", function () { filterable: true, facetable: true, retrievable: false, - analyzer: KnownLexicalAnalyzerName.ArMicrosoft, - indexAnalyzer: KnownLexicalAnalyzerName.ArLucene, - normalizer: KnownLexicalAnalyzerName.BgLucene, - searchAnalyzer: KnownLexicalAnalyzerName.CaLucene, + analyzer: KnownAnalyzerNames.ArMicrosoft, + indexAnalyzer: KnownAnalyzerNames.ArLucene, + normalizer: KnownAnalyzerNames.BgLucene, + searchAnalyzer: KnownAnalyzerNames.CaLucene, synonymMaps: undefined, }); }); diff --git a/sdk/search/search-documents/test/narrowedTypes.ts b/sdk/search/search-documents/test/narrowedTypes.ts index d30449b2f156..47f2e86a5db2 100644 --- a/sdk/search/search-documents/test/narrowedTypes.ts +++ b/sdk/search/search-documents/test/narrowedTypes.ts @@ -9,10 +9,10 @@ import { SearchClient, SelectFields } from "../src/index"; import { + NarrowedModel as GenericNarrowedModel, SearchFieldArray, SearchPick, SelectArray, - NarrowedModel as GenericNarrowedModel, SuggestNarrowedModel, } from "../src/indexModels"; @@ -246,7 +246,9 @@ function testNarrowedClient() { async () => { type VectorFields = NonNullable< NonNullable< - NonNullable[1]>["vectorQueries"] + NonNullable< + NonNullable[1]>["vectorSearchOptions"] + >["queries"] >[number]["fields"] >; const a: Equals = "pass"; @@ -379,7 +381,9 @@ function testWideClient() { async () => { type VectorFields = NonNullable< NonNullable< - NonNullable[1]>["vectorQueries"] + NonNullable< + NonNullable[1]>["vectorSearchOptions"] + >["queries"] >[number]["fields"] >; const a: Equals = "pass"; diff --git a/sdk/search/search-documents/test/public/generated/typeDefinitions.ts b/sdk/search/search-documents/test/public/generated/typeDefinitions.ts new file mode 100755 index 000000000000..046e933bd0e3 --- /dev/null +++ b/sdk/search/search-documents/test/public/generated/typeDefinitions.ts @@ -0,0 +1,157 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +/* eslint-disable no-unused-expressions */ +/* eslint-disable no-constant-condition */ +/* eslint-disable @typescript-eslint/ban-ts-comment */ +/* eslint-disable @typescript-eslint/explicit-function-return-type */ +/* eslint-disable @typescript-eslint/no-unused-vars */ + +import { + KnownSemanticErrorMode, + KnownSemanticErrorReason, + KnownSemanticSearchResultsType, + KnownVectorFilterMode, + KnownVectorQueryKind, +} from "../../../src/generated/data"; + +import { + KnownBlobIndexerDataToExtract, + KnownBlobIndexerImageAction, + KnownBlobIndexerPDFTextRotationAlgorithm, + KnownBlobIndexerParsingMode, + KnownCustomEntityLookupSkillLanguage, + KnownEntityCategory, + KnownEntityRecognitionSkillLanguage, + KnownImageAnalysisSkillLanguage, + KnownImageDetail, + KnownIndexerExecutionEnvironment, + KnownKeyPhraseExtractionSkillLanguage, + KnownOcrSkillLanguage, + KnownPIIDetectionSkillMaskingMode, + KnownRegexFlags, + KnownSearchFieldDataType, + KnownSearchIndexerDataSourceType, + KnownSentimentSkillLanguage, + KnownSplitSkillLanguage, + KnownTextSplitMode, + KnownTextTranslationSkillLanguage, + KnownVectorSearchAlgorithmKind, + KnownVectorSearchAlgorithmMetric, + KnownVectorSearchVectorizerKind, + KnownVisualFeature, +} from "../../../src/generated/service"; + +import { + BlobIndexerDataToExtract, + BlobIndexerImageAction, + BlobIndexerPDFTextRotationAlgorithm, + BlobIndexerParsingMode, + CustomEntityLookupSkillLanguage, + EntityCategory, + EntityRecognitionSkillLanguage, + ImageAnalysisSkillLanguage, + ImageDetail, + IndexerExecutionEnvironment, + KeyPhraseExtractionSkillLanguage, + OcrSkillLanguage, + PIIDetectionSkillMaskingMode, + RegexFlags, + SearchFieldDataType, + SearchIndexerDataSourceType, + SemanticErrorMode, + SemanticErrorReason, + SemanticSearchResultsType, + SentimentSkillLanguage, + SplitSkillLanguage, + TextSplitMode, + TextTranslationSkillLanguage, + VectorFilterMode, + VectorQueryKind, + VectorSearchAlgorithmKind, + VectorSearchAlgorithmMetric, + VectorSearchVectorizerKind, + VisualFeature, +} from "../../../src/index"; + +type IsIdentical = + (() => T extends T1 ? true : false) extends () => T extends T2 ? true : false ? any : never; + +type ExpectBlobIndexerDataToExtract = `${KnownBlobIndexerDataToExtract}`; +type ExpectBlobIndexerImageAction = `${KnownBlobIndexerImageAction}`; +type ExpectBlobIndexerParsingMode = `${KnownBlobIndexerParsingMode}`; +type ExpectBlobIndexerPDFTextRotationAlgorithm = `${KnownBlobIndexerPDFTextRotationAlgorithm}`; +type ExpectCustomEntityLookupSkillLanguage = `${KnownCustomEntityLookupSkillLanguage}`; +type ExpectEntityCategory = `${KnownEntityCategory}`; +type ExpectEntityRecognitionSkillLanguage = `${KnownEntityRecognitionSkillLanguage}`; +type ExpectImageAnalysisSkillLanguage = `${KnownImageAnalysisSkillLanguage}`; +type ExpectImageDetail = `${KnownImageDetail}`; +type ExpectIndexerExecutionEnvironment = `${KnownIndexerExecutionEnvironment}`; +type ExpectKeyPhraseExtractionSkillLanguage = `${KnownKeyPhraseExtractionSkillLanguage}`; +type ExpectOcrSkillLanguage = `${KnownOcrSkillLanguage}`; +type ExpectPIIDetectionSkillMaskingMode = `${KnownPIIDetectionSkillMaskingMode}`; +type ExpectRegexFlags = `${KnownRegexFlags}`; +type ExpectSearchFieldDataType = Exclude< + `${KnownSearchFieldDataType}` | `Collection(${KnownSearchFieldDataType})`, + | "Edm.ComplexType" + | "Collection(Edm.ComplexType)" + | "Edm.Single" + | "Edm.Half" + | "Edm.Int16" + | "Edm.SByte" +>; +type ExpectSearchIndexerDataSourceType = `${KnownSearchIndexerDataSourceType}`; +type ExpectSemanticErrorMode = `${KnownSemanticErrorMode}`; +type ExpectSemanticErrorReason = `${KnownSemanticErrorReason}`; +type ExpectSemanticSearchResultsType = `${KnownSemanticSearchResultsType}`; +type ExpectSentimentSkillLanguage = `${KnownSentimentSkillLanguage}`; +type ExpectSplitSkillLanguage = `${KnownSplitSkillLanguage}`; +type ExpectTextSplitMode = `${KnownTextSplitMode}`; +type ExpectTextTranslationSkillLanguage = `${KnownTextTranslationSkillLanguage}`; +type ExpectVectorFilterMode = `${KnownVectorFilterMode}`; +type ExpectVectorQueryKind = `${KnownVectorQueryKind}`; +type ExpectVectorSearchAlgorithmKind = `${KnownVectorSearchAlgorithmKind}`; +type ExpectVectorSearchAlgorithmMetric = `${KnownVectorSearchAlgorithmMetric}`; +type ExpectVectorSearchVectorizerKind = `${KnownVectorSearchVectorizerKind}`; +type ExpectVisualFeature = `${KnownVisualFeature}`; + +// eslint-disable-next-line @typescript-eslint/ban-ts-comment +// @ts-ignore +function fun() { + const a: IsIdentical = "pass"; + const b: IsIdentical = "pass"; + const c: IsIdentical = "pass"; + const d: IsIdentical< + ExpectBlobIndexerPDFTextRotationAlgorithm, + BlobIndexerPDFTextRotationAlgorithm + > = "pass"; + const e: IsIdentical = + "pass"; + const f: IsIdentical = "pass"; + const g: IsIdentical = + "pass"; + const h: IsIdentical = "pass"; + const i: IsIdentical = "pass"; + const j: IsIdentical = "pass"; + const k: IsIdentical = + "pass"; + const l: IsIdentical = "pass"; + const m: IsIdentical = "pass"; + const n: IsIdentical = "pass"; + const o: IsIdentical = "pass"; + const p: IsIdentical = "pass"; + const q: IsIdentical = "pass"; + const r: IsIdentical = "pass"; + const s: IsIdentical = "pass"; + const t: IsIdentical = "pass"; + const u: IsIdentical = "pass"; + const v: IsIdentical = "pass"; + const w: IsIdentical = "pass"; + const x: IsIdentical = "pass"; + const y: IsIdentical = "pass"; + const z: IsIdentical = "pass"; + const aa: IsIdentical = "pass"; + const ab: IsIdentical = "pass"; + const ac: IsIdentical = "pass"; + return [a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, aa, ab, ac]; +} diff --git a/sdk/search/search-documents/test/public/node/searchClient.spec.ts b/sdk/search/search-documents/test/public/node/searchClient.spec.ts index e783131e065d..997ff3dffe05 100644 --- a/sdk/search/search-documents/test/public/node/searchClient.spec.ts +++ b/sdk/search/search-documents/test/public/node/searchClient.spec.ts @@ -1,12 +1,12 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. +import { env, isLiveMode, Recorder } from "@azure-tools/test-recorder"; import { assert } from "chai"; -import { Context } from "mocha"; -import { Suite } from "mocha"; -import { Recorder, env, isLiveMode } from "@azure-tools/test-recorder"; +import { Context, Suite } from "mocha"; -import { createClients } from "../utils/recordedClient"; +import { OpenAIClient } from "@azure/openai"; +import { versionsToTest } from "@azure/test-utils"; import { AutocompleteResult, AzureKeyCredential, @@ -17,15 +17,15 @@ import { SearchIndexClient, SelectFields, } from "../../../src"; -import { Hotel } from "../utils/interfaces"; -import { WAIT_TIME, createIndex, createRandomIndexName, populateIndex } from "../utils/setup"; -import { delay, serviceVersions } from "../../../src/serviceUtils"; -import { versionsToTest } from "@azure/test-utils"; import { SearchFieldArray, SelectArray } from "../../../src/indexModels"; -import { OpenAIClient } from "@azure/openai"; +import { delay, serviceVersions } from "../../../src/serviceUtils"; +import { COMPRESSION_DISABLED } from "../../compressionDisabled"; +import { Hotel } from "../utils/interfaces"; +import { createClients } from "../utils/recordedClient"; +import { createIndex, createRandomIndexName, populateIndex, WAIT_TIME } from "../utils/setup"; versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { - onVersions({ minVer: "2020-06-30" }).describe("SearchClient tests", function (this: Suite) { + onVersions({ minVer: "2023-11-01" }).describe("SearchClient tests", function (this: Suite) { let recorder: Recorder; let searchClient: SearchClient; let indexClient: SearchIndexClient; @@ -45,7 +45,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { } = await createClients(serviceVersion, recorder, TEST_INDEX_NAME)); await createIndex(indexClient, TEST_INDEX_NAME, serviceVersion); await delay(WAIT_TIME); - await populateIndex(searchClient, openAIClient, serviceVersion); + await populateIndex(searchClient, openAIClient); }); afterEach(async function () { @@ -80,6 +80,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { skip: 0, top: 5, includeTotalCount: true, + select: ["address/streetAddress"], }); assert.equal(searchResults.count, 6); }); @@ -379,7 +380,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { }); }); - onVersions({ minVer: "2023-10-01-Preview" }).describe( + onVersions({ minVer: "2024-03-01-Preview" }).describe( "SearchClient tests", function (this: Suite) { let recorder: Recorder; @@ -401,7 +402,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { } = await createClients(serviceVersion, recorder, TEST_INDEX_NAME)); await createIndex(indexClient, TEST_INDEX_NAME, serviceVersion); await delay(WAIT_TIME); - await populateIndex(searchClient, openAIClient, serviceVersion); + await populateIndex(searchClient, openAIClient); }); afterEach(async function () { @@ -430,7 +431,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { includeTotalCount: true, queryLanguage: KnownQueryLanguage.EnUs, queryType: "semantic", - semanticConfiguration: "semantic-configuration-name", + semanticSearchOptions: { configurationName: "semantic-configuration-name" }, }); assert.equal(searchResults.count, 1); }); @@ -439,9 +440,11 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { const searchResults = await searchClient.search("luxury", { queryLanguage: KnownQueryLanguage.EnUs, queryType: "semantic", - semanticConfiguration: "semantic-configuration-name", - semanticErrorHandlingMode: "fail", - debugMode: "semantic", + semanticSearchOptions: { + configurationName: "semantic-configuration-name", + errorMode: "fail", + debugMode: "semantic", + }, }); for await (const result of searchResults.results) { assert.deepEqual( @@ -457,13 +460,13 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { keywordFields: [ { name: "tags", - state: "unused", + state: "used", }, ], rerankerInput: { content: "Best hotel in town if you like luxury hotels. They have an amazing infinity pool, a spa, and a really helpful concierge. The location is perfect -- right downtown, close to all the tourist attractions. We highly recommend this hotel.", - keywords: "", + keywords: "pool\r\nview\r\nwifi\r\nconcierge", title: "Fancy Stay", }, titleField: { @@ -482,8 +485,10 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { const searchResults = await searchClient.search("What are the most luxurious hotels?", { queryLanguage: KnownQueryLanguage.EnUs, queryType: "semantic", - semanticConfiguration: "semantic-configuration-name", - answers: { answers: "extractive", count: 3, threshold: 0.7 }, + semanticSearchOptions: { + configurationName: "semantic-configuration-name", + answers: { answerType: "extractive", count: 3, threshold: 0.7 }, + }, top: 3, select: ["hotelId"], }); @@ -492,15 +497,17 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { for await (const result of searchResults.results) { resultIds.push(result.document.hotelId); } - assert.deepEqual(["3", "9", "1"], resultIds); + assert.deepEqual(["1", "9", "3"], resultIds); }); it("search with semantic error handling", async function () { const searchResults = await searchClient.search("luxury", { queryLanguage: KnownQueryLanguage.EnUs, queryType: "semantic", - semanticConfiguration: "semantic-configuration-name", - semanticErrorHandlingMode: "partial", + semanticSearchOptions: { + configurationName: "semantic-configuration-name", + errorMode: "partial", + }, select: ["hotelId"], }); @@ -517,21 +524,23 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { this.skip(); } const embeddings = await openAIClient.getEmbeddings( - env.OPENAI_DEPLOYMENT_NAME ?? "deployment-name", + env.AZURE_OPENAI_DEPLOYMENT_NAME ?? "deployment-name", ["What are the most luxurious hotels?"], ); const embedding = embeddings.data[0].embedding; const searchResults = await searchClient.search("*", { - vectorQueries: [ - { - kind: "vector", - vector: embedding, - kNearestNeighborsCount: 3, - fields: ["vectorDescription"], - }, - ], + vectorSearchOptions: { + queries: [ + { + kind: "vector", + vector: embedding, + kNearestNeighborsCount: 3, + fields: ["vectorDescription"], + }, + ], + }, top: 3, select: ["hotelId"], }); @@ -549,27 +558,67 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { this.skip(); } const embeddings = await openAIClient.getEmbeddings( - env.OPENAI_DEPLOYMENT_NAME ?? "deployment-name", + env.AZURE_OPENAI_DEPLOYMENT_NAME ?? "deployment-name", ["What are the most luxurious hotels?"], ); const embedding = embeddings.data[0].embedding; const searchResults = await searchClient.search("*", { - vectorQueries: [ - { - kind: "vector", - vector: embedding, - kNearestNeighborsCount: 3, - fields: ["vectorDescription"], - }, - { - kind: "vector", - vector: embedding, - kNearestNeighborsCount: 3, - fields: ["vectorDescription"], - }, - ], + vectorSearchOptions: { + queries: [ + { + kind: "vector", + vector: embedding, + kNearestNeighborsCount: 3, + fields: ["vectorDescription"], + }, + { + kind: "vector", + vector: embedding, + kNearestNeighborsCount: 3, + fields: ["vectorDescription"], + }, + ], + }, + top: 3, + select: ["hotelId"], + }); + + const resultIds = []; + for await (const result of searchResults.results) { + resultIds.push(result.document.hotelId); + } + assert.deepEqual(["1", "3", "4"], resultIds); + }); + + it("oversampling compressed vectors", async function () { + // This live test is disabled due to temporary limitations with the new OpenAI service + if (isLiveMode()) { + this.skip(); + } + // Currently unable to create a compression resource + if (COMPRESSION_DISABLED) { + this.skip(); + } + const embeddings = await openAIClient.getEmbeddings( + env.AZURE_OPENAI_DEPLOYMENT_NAME ?? "deployment-name", + ["What are the most luxurious hotels?"], + ); + + const embedding = embeddings.data[0].embedding; + const searchResults = await searchClient.search("*", { + vectorSearchOptions: { + queries: [ + { + kind: "vector", + vector: embedding, + kNearestNeighborsCount: 3, + fields: ["compressedVectorDescription"], + oversampling: 2, + }, + ], + }, top: 3, select: ["hotelId"], }); @@ -585,7 +634,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { }); versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { - onVersions({ minVer: "2020-06-30" }).describe("SearchClient tests", function (this: Suite) { + onVersions({ minVer: "2023-11-01" }).describe("SearchClient tests", function (this: Suite) { const credential = new AzureKeyCredential("key"); describe("Passing serviceVersion", () => { @@ -607,8 +656,8 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { it("defaults to the current apiVersion", () => { const client = new SearchClient("", "", credential); - assert.equal("2023-10-01-Preview", client.serviceVersion); - assert.equal("2023-10-01-Preview", client.apiVersion); + assert.equal("2024-03-01-Preview", client.serviceVersion); + assert.equal("2024-03-01-Preview", client.apiVersion); }); }); }); diff --git a/sdk/search/search-documents/test/public/node/searchIndexClient.spec.ts b/sdk/search/search-documents/test/public/node/searchIndexClient.spec.ts index dd53050e556d..b2b1bb70d514 100644 --- a/sdk/search/search-documents/test/public/node/searchIndexClient.spec.ts +++ b/sdk/search/search-documents/test/public/node/searchIndexClient.spec.ts @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { Recorder, isLiveMode, env } from "@azure-tools/test-recorder"; -import { Context } from "mocha"; -import { Suite } from "mocha"; +import { env, isLiveMode, Recorder } from "@azure-tools/test-recorder"; +import { versionsToTest } from "@azure/test-utils"; import { assert } from "chai"; +import { Context, Suite } from "mocha"; import { AzureOpenAIVectorizer, SearchIndex, @@ -13,20 +13,19 @@ import { VectorSearchAlgorithmConfiguration, VectorSearchProfile, } from "../../../src"; +import { delay, serviceVersions } from "../../../src/serviceUtils"; import { Hotel } from "../utils/interfaces"; import { createClients } from "../utils/recordedClient"; import { - WAIT_TIME, createRandomIndexName, createSimpleIndex, createSynonymMaps, deleteSynonymMaps, + WAIT_TIME, } from "../utils/setup"; -import { delay, serviceVersions } from "../../../src/serviceUtils"; -import { versionsToTest } from "@azure/test-utils"; versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { - onVersions({ minVer: "2020-06-30" }).describe("SearchIndexClient", function (this: Suite) { + onVersions({ minVer: "2023-11-01" }).describe("SearchIndexClient", function (this: Suite) { let recorder: Recorder; let indexClient: SearchIndexClient; let TEST_INDEX_NAME: string; @@ -232,7 +231,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { }); }); }); - onVersions({ minVer: "2023-10-01-Preview" }).describe( + onVersions({ minVer: "2024-03-01-Preview" }).describe( "SearchIndexClient", function (this: Suite) { let recorder: Recorder; @@ -276,14 +275,14 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { kind: "azureOpenAI", name: "vectorizer", azureOpenAIParameters: { - apiKey: env.OPENAI_KEY, - deploymentId: env.OPENAI_DEPLOYMENT_NAME, - resourceUri: env.OPENAI_ENDPOINT, + apiKey: env.AZURE_OPENAI_KEY, + deploymentId: env.AZURE_OPENAI_DEPLOYMENT_NAME, + resourceUri: env.AZURE_OPENAI_ENDPOINT, }, }; const profile: VectorSearchProfile = { name: "profile", - algorithm: algorithm.name, + algorithmConfigurationName: algorithm.name, vectorizer: vectorizer.name, }; @@ -300,7 +299,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { name: "descriptionVector", vectorSearchDimensions: 1536, searchable: true, - vectorSearchProfile: profile.name, + vectorSearchProfileName: profile.name, }, ], vectorSearch: { @@ -309,8 +308,8 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { profiles: [profile], }, }; - await indexClient.createOrUpdateIndex(index); try { + await indexClient.createOrUpdateIndex(index); index = await indexClient.getIndex(indexName); assert.deepEqual(index.vectorSearch?.algorithms?.[0].name, algorithm.name); assert.deepEqual(index.vectorSearch?.vectorizers?.[0].name, vectorizer.name); diff --git a/sdk/search/search-documents/test/public/typeDefinitions.ts b/sdk/search/search-documents/test/public/typeDefinitions.ts index febc839df32c..f9540063b7d7 100644 --- a/sdk/search/search-documents/test/public/typeDefinitions.ts +++ b/sdk/search/search-documents/test/public/typeDefinitions.ts @@ -8,71 +8,47 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ import { - KnownSearchFieldDataType, - KnownVectorSearchAlgorithmMetric, + KnownCharFilterName, + KnownLexicalAnalyzerName, + KnownLexicalTokenizerName, + KnownTokenFilterName, KnownVectorSearchAlgorithmKind, - KnownIndexProjectionMode, - KnownVectorSearchVectorizerKind, + KnownVectorSearchAlgorithmMetric, } from "../../src/generated/service"; + +import { KnownVectorFilterMode } from "../../src/generated/data"; + import { - KnownSemanticPartialResponseReason, - KnownSemanticPartialResponseType, - KnownQueryDebugMode, - KnownSemanticErrorHandling, - KnownSemanticFieldState, - KnownVectorQueryKind, - KnownVectorFilterMode, -} from "../../src/generated/data"; -import { - ComplexDataType, - SearchFieldDataType, - SemanticPartialResponseReason, - SemanticPartialResponseType, - QueryDebugMode, - SemanticErrorHandlingMode, - SemanticFieldState, - VectorSearchAlgorithmMetric, - VectorSearchAlgorithmKind, - IndexProjectionMode, - VectorSearchVectorizerKind, - VectorQueryKind, + KnownAnalyzerNames, + KnownCharFilterNames, + KnownTokenFilterNames, + KnownTokenizerNames, VectorFilterMode, + VectorSearchAlgorithmKind, + VectorSearchAlgorithmMetric, } from "../../src/index"; type IsIdentical = (() => T extends T1 ? true : false) extends () => T extends T2 ? true : false ? any : never; -type ExpectSearchFieldDataType = Exclude< - `${KnownSearchFieldDataType}` | `Collection(${KnownSearchFieldDataType})`, - ComplexDataType | "Edm.Single" ->; -type ExpectSemanticPartialResponseReason = `${KnownSemanticPartialResponseReason}`; -type ExpectSemanticPartialResponseType = `${KnownSemanticPartialResponseType}`; -type ExpectQueryDebugMode = `${KnownQueryDebugMode}`; -type ExpectSemanticErrorHandlingMode = `${KnownSemanticErrorHandling}`; -type ExpectSemanticFieldState = `${KnownSemanticFieldState}`; type ExpectVectorSearchAlgorithmMetric = `${KnownVectorSearchAlgorithmMetric}`; type ExpectVectorSearchAlgorithmKind = `${KnownVectorSearchAlgorithmKind}`; -type ExpectIndexProjectionMode = `${KnownIndexProjectionMode}`; -type ExpectVectorSearchVectorizerKind = `${KnownVectorSearchVectorizerKind}`; -type ExpectVectorQueryKind = `${KnownVectorQueryKind}`; type ExpectVectorFilterMode = `${KnownVectorFilterMode}`; +type ExpectKnownCharFilterNames = `${KnownCharFilterName}`; +type ExpectKnownAnalyzerNames = `${KnownLexicalAnalyzerName}`; +type ExpectKnownTokenizerNames = `${KnownLexicalTokenizerName}`; +type ExpectKnownTokenFilterNames = `${KnownTokenFilterName}`; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore function fun() { - const a: IsIdentical = "pass"; - const b: IsIdentical = "pass"; - const c: IsIdentical = "pass"; - const d: IsIdentical = "pass"; - const e: IsIdentical = "pass"; - const f: IsIdentical = "pass"; - const g: IsIdentical = "pass"; - const h: IsIdentical = "pass"; - const i: IsIdentical = "pass"; - const j: IsIdentical = "pass"; - const k: IsIdentical = "pass"; - const l: IsIdentical = "pass"; + const a: IsIdentical = "pass"; + const b: IsIdentical = "pass"; + const c: IsIdentical = "pass"; + const d: IsIdentical = "pass"; + const e: IsIdentical = "pass"; + const f: IsIdentical = "pass"; + const g: IsIdentical = "pass"; - return [a, b, c, d, e, f, g, h, i, j, k, l]; + return [a, b, c, d, e, f, g]; } diff --git a/sdk/search/search-documents/test/public/utils/interfaces.ts b/sdk/search/search-documents/test/public/utils/interfaces.ts index 8cfe01cf2cb0..cbf59ad1d666 100644 --- a/sdk/search/search-documents/test/public/utils/interfaces.ts +++ b/sdk/search/search-documents/test/public/utils/interfaces.ts @@ -8,6 +8,7 @@ export interface Hotel { hotelName?: string | null; description?: string | null; vectorDescription?: number[] | null; + compressedVectorDescription?: number[] | null; descriptionFr?: string | null; category?: string | null; tags?: string[] | null; diff --git a/sdk/search/search-documents/test/public/utils/recordedClient.ts b/sdk/search/search-documents/test/public/utils/recordedClient.ts index d6df77d22847..f36302708e55 100644 --- a/sdk/search/search-documents/test/public/utils/recordedClient.ts +++ b/sdk/search/search-documents/test/public/utils/recordedClient.ts @@ -1,15 +1,21 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { Recorder, RecorderStartOptions, env } from "@azure-tools/test-recorder"; - +import { + assertEnvironmentVariable, + env, + Recorder, + RecorderStartOptions, +} from "@azure-tools/test-recorder"; +import { FindReplaceSanitizer } from "@azure-tools/test-recorder/types/src/utils/utils"; +import { isDefined } from "@azure/core-util"; +import { OpenAIClient } from "@azure/openai"; import { AzureKeyCredential, SearchClient, SearchIndexClient, SearchIndexerClient, } from "../../../src"; -import { OpenAIClient } from "@azure/openai"; export interface Clients { searchClient: SearchClient; @@ -19,58 +25,88 @@ export interface Clients { openAIClient: OpenAIClient; } -const envSetupForPlayback: { [k: string]: string } = { - SEARCH_API_ADMIN_KEY: "admin_key", - SEARCH_API_ADMIN_KEY_ALT: "admin_key_alt", - ENDPOINT: "https://endpoint", - OPENAI_DEPLOYMENT_NAME: "deployment-name", - OPENAI_ENDPOINT: "https://openai.endpoint", - OPENAI_KEY: "openai-key", -}; - -export const testEnv = new Proxy(envSetupForPlayback, { - get: (target, key: string) => { - return env[key] || target[key]; - }, -}); - -const generalSanitizers = []; - -if (env.ENDPOINT) { - generalSanitizers.push({ - regex: false, - value: "subdomain", - target: env.ENDPOINT.match(/:\/\/(.*).search.windows.net/)![1], - }); +interface Env { + SEARCH_API_ADMIN_KEY: string; + SEARCH_API_ADMIN_KEY_ALT: string; + ENDPOINT: string; + AZURE_OPENAI_DEPLOYMENT_NAME: string; + AZURE_OPENAI_ENDPOINT: string; + AZURE_OPENAI_KEY: string; } -if (env.OPENAI_ENDPOINT) { - generalSanitizers.push({ - regex: false, - value: "subdomain", - target: env.OPENAI_ENDPOINT.match(/:\/\/(.*).openai.azure.com/)![1], - }); +// modifies URIs in the environment to end in a trailing slash +const uriEnvVars = ["ENDPOINT", "AZURE_OPENAI_ENDPOINT"] as const; + +function fixEnvironment(): RecorderStartOptions { + const envSetupForPlayback = { + SEARCH_API_ADMIN_KEY: "admin_key", + SEARCH_API_ADMIN_KEY_ALT: "admin_key_alt", + ENDPOINT: "https://subdomain.search.windows.net/", + AZURE_OPENAI_DEPLOYMENT_NAME: "deployment-name", + AZURE_OPENAI_ENDPOINT: "https://subdomain.openai.azure.com/", + AZURE_OPENAI_KEY: "openai-key", + }; + + appendTrailingSlashesToEnvironment(envSetupForPlayback); + const generalSanitizers = getSubdomainSanitizers(); + + return { + envSetupForPlayback, + sanitizerOptions: { + generalSanitizers, + }, + }; +} + +function appendTrailingSlashesToEnvironment(envSetupForPlayback: Env): void { + for (const envBag of [env, envSetupForPlayback]) { + for (const name of uriEnvVars) { + const value = envBag[name]; + if (value) { + envBag[name] = value.endsWith("/") ? value : `${value}/`; + } + } + } } -const recorderOptions: RecorderStartOptions = { - envSetupForPlayback, - sanitizerOptions: { - generalSanitizers, - }, -}; +function getSubdomainSanitizers(): FindReplaceSanitizer[] { + const uriDomainMap: Pick = { + ENDPOINT: "search.windows.net", + AZURE_OPENAI_ENDPOINT: "openai.azure.com", + }; + + const subdomains = Object.entries(uriDomainMap) + .map(([name, domain]) => { + const uri = env[name]; + const subdomain = uri?.match(String.raw`\/\/(.*?)\.` + domain)?.[1]; + + return subdomain; + }) + .filter(isDefined); + + const generalSanitizers = subdomains.map((target) => { + return { + target, + value: "subdomain", + }; + }); + + return generalSanitizers; +} export async function createClients( serviceVersion: string, recorder: Recorder, indexName: string, ): Promise> { + const recorderOptions = fixEnvironment(); await recorder.start(recorderOptions); indexName = recorder.variable("TEST_INDEX_NAME", indexName); - const endPoint: string = env.ENDPOINT ?? "https://endpoint"; - const credential = new AzureKeyCredential(testEnv.SEARCH_API_ADMIN_KEY); - const openAIEndpoint = env.OPENAI_ENDPOINT ?? "https://openai.endpoint"; - const openAIKey = new AzureKeyCredential(env.OPENAI_KEY ?? "openai-key"); + const endPoint: string = assertEnvironmentVariable("ENDPOINT"); + const credential = new AzureKeyCredential(assertEnvironmentVariable("SEARCH_API_ADMIN_KEY")); + const openAIEndpoint = assertEnvironmentVariable("AZURE_OPENAI_ENDPOINT"); + const openAIKey = new AzureKeyCredential(assertEnvironmentVariable("AZURE_OPENAI_KEY")); const searchClient = new SearchClient( endPoint, indexName, diff --git a/sdk/search/search-documents/test/public/utils/setup.ts b/sdk/search/search-documents/test/public/utils/setup.ts index bd7f5580a900..49d3266b0356 100644 --- a/sdk/search/search-documents/test/public/utils/setup.ts +++ b/sdk/search/search-documents/test/public/utils/setup.ts @@ -1,6 +1,9 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. +import { env, isLiveMode, isPlaybackMode } from "@azure-tools/test-recorder"; +import { OpenAIClient } from "@azure/openai"; +import { assert } from "chai"; import { GeographyPoint, KnownAnalyzerNames, @@ -9,11 +12,9 @@ import { SearchIndexClient, SearchIndexerClient, } from "../../../src"; -import { Hotel } from "./interfaces"; import { delay } from "../../../src/serviceUtils"; -import { assert } from "chai"; -import { env, isLiveMode, isPlaybackMode } from "@azure-tools/test-recorder"; -import { OpenAIClient } from "@azure/openai"; +import { COMPRESSION_DISABLED } from "../../compressionDisabled"; +import { Hotel } from "./interfaces"; export const WAIT_TIME = isPlaybackMode() ? 0 : 4000; @@ -23,6 +24,12 @@ export async function createIndex( name: string, serviceVersion: string, ): Promise { + const algorithmConfigurationName = "algorithm-configuration-name"; + const vectorizerName = "vectorizer-name"; + const vectorSearchProfileName = "profile-name"; + const compressedVectorSearchProfileName = "compressed-profile-name"; + const compressionConfigurationName = "compression-configuration-name"; + const hotelIndex: SearchIndex = { name, fields: [ @@ -201,6 +208,23 @@ export async function createIndex( }, ], }, + { + type: "Collection(Edm.Single)", + name: "vectorDescription", + searchable: true, + vectorSearchDimensions: 1536, + hidden: true, + vectorSearchProfileName, + }, + { + type: "Collection(Edm.Half)", + name: "compressedVectorDescription", + searchable: true, + hidden: true, + vectorSearchDimensions: 1536, + vectorSearchProfileName: compressedVectorSearchProfileName, + stored: false, + }, ], suggesters: [ { @@ -230,57 +254,77 @@ export async function createIndex( // for browser tests allowedOrigins: ["*"], }, - }; - - if (serviceVersion.includes("Preview")) { - const algorithm = "algorithm-configuration"; - const vectorizer = "vectorizer"; - const profile = "profile"; - - hotelIndex.fields.push({ - type: "Collection(Edm.Single)", - name: "vectorDescription", - searchable: true, - vectorSearchDimensions: 1536, - hidden: true, - vectorSearchProfile: profile, - }); - - hotelIndex.vectorSearch = { + vectorSearch: { algorithms: [ { - name: algorithm, - kind: "exhaustiveKnn", + name: algorithmConfigurationName, + kind: "hnsw", parameters: { metric: "dotProduct", }, }, ], - vectorizers: [ + vectorizers: serviceVersion.includes("Preview") + ? [ + { + kind: "azureOpenAI", + name: vectorizerName, + azureOpenAIParameters: { + apiKey: env.AZURE_OPENAI_KEY, + deploymentId: env.AZURE_OPENAI_DEPLOYMENT_NAME, + resourceUri: env.AZURE_OPENAI_ENDPOINT, + }, + }, + ] + : undefined, + compressions: [ { - kind: "azureOpenAI", - name: vectorizer, - azureOpenAIParameters: { - apiKey: env.OPENAI_KEY, - deploymentId: env.OPENAI_DEPLOYMENT_NAME, - resourceUri: env.OPENAI_ENDPOINT, - }, + name: compressionConfigurationName, + kind: "scalarQuantization", + parameters: { quantizedDataType: "int8" }, + rerankWithOriginalVectors: true, }, ], - profiles: [{ name: profile, vectorizer, algorithm }], - }; - hotelIndex.semanticSettings = { + profiles: [ + { + name: vectorSearchProfileName, + vectorizer: serviceVersion.includes("Preview") ? vectorizerName : undefined, + algorithmConfigurationName, + }, + { + name: compressedVectorSearchProfileName, + vectorizer: serviceVersion.includes("Preview") ? vectorizerName : undefined, + algorithmConfigurationName, + compressionConfigurationName, + }, + ], + }, + semanticSearch: { configurations: [ { name: "semantic-configuration-name", prioritizedFields: { titleField: { name: "hotelName" }, - prioritizedContentFields: [{ name: "description" }], - prioritizedKeywordsFields: [{ name: "tags" }], + contentFields: [{ name: "description" }], + keywordsFields: [{ name: "tags" }], }, }, ], - }; + }, + }; + + // This feature isn't publically available yet + if (COMPRESSION_DISABLED) { + hotelIndex.fields = hotelIndex.fields.filter( + (field) => field.name !== "compressedVectorDescription", + ); + const vs = hotelIndex.vectorSearch; + if (vs) { + delete vs.compressions; + vs.profiles = vs.profiles?.filter( + (profile) => profile.name !== compressedVectorSearchProfileName, + ); + } } await client.createIndex(hotelIndex); @@ -290,7 +334,6 @@ export async function createIndex( export async function populateIndex( client: SearchClient, openAIClient: OpenAIClient, - serviceVersion: string, ): Promise { // test data from https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/search/Azure.Search.Documents/tests/Utilities/SearchResources.Data.cs const testDocuments: Hotel[] = [ @@ -495,7 +538,7 @@ export async function populateIndex( }, ]; - if (serviceVersion.includes("Preview") && !isLiveMode()) { + if (!isLiveMode()) { await addVectorDescriptions(testDocuments, openAIClient); } @@ -514,29 +557,22 @@ async function addVectorDescriptions( documents: Hotel[], openAIClient: OpenAIClient, ): Promise { - const deploymentName = process.env.OPENAI_DEPLOYMENT_NAME ?? "deployment-name"; - - const descriptionMap: Map = documents.reduce((map, document, i) => { - map.set(i, document); - return map; - }, new Map()); + const deploymentName = process.env.AZURE_OPENAI_DEPLOYMENT_NAME ?? "deployment-name"; const descriptions = documents .filter(({ description }) => description) .map(({ description }) => description!); - // OpenAI only supports one description at a time at the moment - const embeddingsArray = await Promise.all( - descriptions.map((description) => openAIClient.getEmbeddings(deploymentName, [description])), - ); + const embeddingsArray = await openAIClient.getEmbeddings(deploymentName, descriptions); - embeddingsArray.forEach((embeddings, i) => - embeddings.data.forEach((embeddingItem) => { - const { embedding, index: j } = embeddingItem; - const document = descriptionMap.get(i + j)!; - document.vectorDescription = embedding; - }), - ); + embeddingsArray.data.forEach((embeddingItem) => { + const { embedding, index } = embeddingItem; + const document = documents[index]; + document.vectorDescription = embedding; + if (!COMPRESSION_DISABLED) { + document.compressedVectorDescription = embedding; + } + }); } // eslint-disable-next-line @azure/azure-sdk/ts-use-interface-parameters diff --git a/sdk/search/search-documents/tests.yml b/sdk/search/search-documents/tests.yml index 07457a9365c4..750a4fb8a5fb 100644 --- a/sdk/search/search-documents/tests.yml +++ b/sdk/search/search-documents/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/search-documents" ServiceDirectory: search diff --git a/sdk/search/search-documents/tsconfig.json b/sdk/search/search-documents/tsconfig.json index 2249af41759a..5b2c1fce7aa9 100644 --- a/sdk/search/search-documents/tsconfig.json +++ b/sdk/search/search-documents/tsconfig.json @@ -1,11 +1,11 @@ { "extends": "../../../tsconfig.package", "compilerOptions": { - "outDir": "./dist-esm", "declarationDir": "./types", + "outDir": "./dist-esm", "paths": { "@azure/search-documents": ["./src/index"] } }, - "include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"] + "include": ["samples-dev/**/*.ts", "src/**/*.ts", "test/**/*.ts"] } diff --git a/sdk/servicebus/service-bus/tests.yml b/sdk/servicebus/service-bus/tests.yml index ca5884b8a610..c806ccc4b630 100644 --- a/sdk/servicebus/service-bus/tests.yml +++ b/sdk/servicebus/service-bus/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/service-bus" ServiceDirectory: servicebus diff --git a/sdk/storage/storage-blob/tests.yml b/sdk/storage/storage-blob/tests.yml index 296394432f09..6b787eb75c3d 100644 --- a/sdk/storage/storage-blob/tests.yml +++ b/sdk/storage/storage-blob/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/storage-blob" ServiceDirectory: storage diff --git a/sdk/storage/storage-file-datalake/tests.yml b/sdk/storage/storage-file-datalake/tests.yml index 8c3caf64e197..c364eaac6d4b 100644 --- a/sdk/storage/storage-file-datalake/tests.yml +++ b/sdk/storage/storage-file-datalake/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/storage-file-datalake" ServiceDirectory: storage diff --git a/sdk/storage/storage-file-share/tests.yml b/sdk/storage/storage-file-share/tests.yml index b779b995d798..e47b9e031cd6 100644 --- a/sdk/storage/storage-file-share/tests.yml +++ b/sdk/storage/storage-file-share/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/storage-file-share" ServiceDirectory: storage diff --git a/sdk/storage/storage-queue/tests.yml b/sdk/storage/storage-queue/tests.yml index f73e3f940e10..051dfd4500b2 100644 --- a/sdk/storage/storage-queue/tests.yml +++ b/sdk/storage/storage-queue/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/storage-queue" ServiceDirectory: storage diff --git a/sdk/storage/test-resources.json b/sdk/storage/test-resources.json index 119f9e132b7b..fd4d1b6c1eb4 100644 --- a/sdk/storage/test-resources.json +++ b/sdk/storage/test-resources.json @@ -216,7 +216,8 @@ "supportsHttpsTrafficOnly": true, "encryption": "[variables('encryption')]", "accessTier": "Hot", - "minimumTlsVersion": "TLS1_2" + "minimumTlsVersion": "TLS1_2", + "allowBlobPublicAccess": true } }, { diff --git a/sdk/tables/data-tables/tests.yml b/sdk/tables/data-tables/tests.yml index 4540355e6ed1..4ae1957c6bc1 100644 --- a/sdk/tables/data-tables/tests.yml +++ b/sdk/tables/data-tables/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/data-tables" ServiceDirectory: tables diff --git a/sdk/template/template/tests.yml b/sdk/template/template/tests.yml index 030c35cad2d3..4866820c28c0 100644 --- a/sdk/template/template/tests.yml +++ b/sdk/template/template/tests.yml @@ -1,12 +1,13 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml - parameters: - PackageName: "@azure/template" - ServiceDirectory: template - EnvVars: - AZURE_CLIENT_ID: $(TEMPLATE_CLIENT_ID) - AZURE_CLIENT_SECRET: $(TEMPLATE_CLIENT_SECRET) - AZURE_TENANT_ID: $(TEMPLATE_TENANT_ID) - AZURE_SUBSCRIPTION_ID: $(TEMPLATE_SUBSCRIPTION_ID) + +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml + parameters: + PackageName: "@azure/template" + ServiceDirectory: template + EnvVars: + AZURE_CLIENT_ID: $(TEMPLATE_CLIENT_ID) + AZURE_CLIENT_SECRET: $(TEMPLATE_CLIENT_SECRET) + AZURE_TENANT_ID: $(TEMPLATE_TENANT_ID) + AZURE_SUBSCRIPTION_ID: $(TEMPLATE_SUBSCRIPTION_ID) diff --git a/sdk/test-utils/recorder/CHANGELOG.md b/sdk/test-utils/recorder/CHANGELOG.md index 381f7c7be42d..23c9a2ea8af1 100644 --- a/sdk/test-utils/recorder/CHANGELOG.md +++ b/sdk/test-utils/recorder/CHANGELOG.md @@ -1,14 +1,12 @@ # Release History -## 3.1.0 (Unreleased) +## 3.1.0 (2023-03-14) ### Features Added - Add support for setting `TLSValidationCert` in the Test Proxy Transport. - Add a `testPollingOptions` that allow skip polling wait in playback mode. -### Breaking Changes - ### Bugs Fixed - Fixed a bug where environment variables were not being sanitized correctly when one's original value is a substring of another. [#27187](https://github.com/Azure/azure-sdk-for-js/pull/27187) @@ -20,6 +18,7 @@ - Forward mismatch error when recording file cannot be found during `start` call in playback mode - Add more descriptive message in the case that the test proxy has not been started before running the tests - Ignore `Accept-Language` header for browsers in Playback mode. + ## 3.0.0 (2023-03-07) ### Features Added diff --git a/sdk/textanalytics/ai-text-analytics/tests.yml b/sdk/textanalytics/ai-text-analytics/tests.yml index e2624130e546..d5a321e9cd92 100644 --- a/sdk/textanalytics/ai-text-analytics/tests.yml +++ b/sdk/textanalytics/ai-text-analytics/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/ai-text-analytics" ServiceDirectory: textanalytics diff --git a/sdk/translation/ai-translation-text-rest/tests.yml b/sdk/translation/ai-translation-text-rest/tests.yml index 9829c998c29f..644998cef57d 100644 --- a/sdk/translation/ai-translation-text-rest/tests.yml +++ b/sdk/translation/ai-translation-text-rest/tests.yml @@ -6,8 +6,8 @@ parameters: trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-rest/ai-translation-text" ServiceDirectory: translation diff --git a/sdk/web-pubsub/web-pubsub-client-protobuf/package.json b/sdk/web-pubsub/web-pubsub-client-protobuf/package.json index 9fec3b14abf6..f9a5be63de6e 100644 --- a/sdk/web-pubsub/web-pubsub-client-protobuf/package.json +++ b/sdk/web-pubsub/web-pubsub-client-protobuf/package.json @@ -33,7 +33,7 @@ "test:node": "npm run build:test && npm run unit-test:node && npm run integration-test:node", "test": "npm run build:test && npm run unit-test && npm run integration-test", "unit-test:browser": "echo skipped", - "unit-test:node": "dev-tool run test:node-js-input --use-esm-workaround=true --no-test-proxy=true", + "unit-test:node": "dev-tool run test:node-js-input --no-test-proxy=true", "unit-test": "npm run unit-test:node && npm run unit-test:browser" }, "files": [ diff --git a/sdk/web-pubsub/web-pubsub/tests.yml b/sdk/web-pubsub/web-pubsub/tests.yml index de5ece863981..24ce5c56fc52 100644 --- a/sdk/web-pubsub/web-pubsub/tests.yml +++ b/sdk/web-pubsub/web-pubsub/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/web-pubsub" ServiceDirectory: web-pubsub